Profiling results ----------------- Total cpu time observed: 12186ms (out of 12492ms) Number of samples taken: 72 (once every 169ms) (Hiding functions with self<1.0% and local<2.0%: 1 of 100 hidden) ====================================================================== Caller Idx Total Self Name+src Local% ms(pct) ms(pct) Callee ====================================================================== ??? [36] 100.0% [1] 11402(93.6%) 0(0.0%) profile-thunk14 ...t/pkgs/profile-lib/main.rkt:9:0 run [8] 100.0% ---------------------------------------------------------------------- ??? [36] 100.0% [2] 5764(47.3%) 0(0.0%) run-improve58 ...ock/herbie/src/mainloop.rkt:242:0 for-loop [10] 45.0% finalize-table! [11] 40.0% get-final-combination [13] 10.8% setup-prog [16] 4.2% ---------------------------------------------------------------------- loop [70] 23.9% ??? [36] 76.1% [3] 2598(21.3%) 0(0.0%) simplify ...lock/herbie/src/core/simplify.rkt:39:0 simplify-expr [9] 88.3% for-loop [15] 11.7% ---------------------------------------------------------------------- hash-ref! [76] 100.0% [4] 776(6.4%) 152(1.2%) ??? .../ztatlock/herbie/src/core/taylor.rkt:285:26 for-loop [12] 80.4% ---------------------------------------------------------------------- loop [70] 100.0% [5] 600(4.9%) 0(0.0%) completely-simplify-alt ...erbie/src/glue.rkt:87:0 simplify-expr [9] 100.0% ---------------------------------------------------------------------- hash-ref! [76] 100.0% [6] 466(3.8%) 0(0.0%) ??? /home/ztatlock/herbie/src/programs.rkt:197:5 loop [70] 100.0% ---------------------------------------------------------------------- hash-ref! [76] 100.0% [7] 456(3.7%) 0(0.0%) ??? .../ztatlock/herbie/src/core/taylor.rkt:322:33 for-loop [14] 100.0% ---------------------------------------------------------------------- profile-thunk14 [1] 100.0% [8] 11402(93.6%) 0(0.0%) run ...share/racket/pkgs/profile-lib/main.rkt:31:2 ??? [36] 100.0% ---------------------------------------------------------------------- completely-simplify-alt [5] 20.7% simplify [3] 79.3% [9] 2894(23.7%) 0(0.0%) simplify-expr ...herbie/src/core/simplify.rkt:68:0 iterate-egraph!5 [17] 100.0% ---------------------------------------------------------------------- run-improve58 [2] 100.0% [10] 2592(21.3%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:253:8 run-iter! [18] 100.0% ---------------------------------------------------------------------- run-improve58 [2] 100.0% [11] 2308(18.9%) 0(0.0%) finalize-table! ...k/herbie/src/mainloop.rkt:264:0 post-process [19] 100.0% ---------------------------------------------------------------------- ??? [4] 100.0% [12] 624(5.1%) 0(0.0%) for-loop ...lock/herbie/src/core/taylor.rkt:285:52 hash-ref! [76] 100.0% ---------------------------------------------------------------------- run-improve58 [2] 100.0% [13] 620(5.1%) 0(0.0%) get-final-combination ...ie/src/mainloop.rkt:269:0 extract-alt [20] 100.0% ---------------------------------------------------------------------- ??? [7] 100.0% [14] 456(3.7%) 0(0.0%) for-loop ...lock/herbie/src/core/taylor.rkt:324:46 hash-ref! [76] 100.0% ---------------------------------------------------------------------- simplify [3] 100.0% [15] 304(2.5%) 0(0.0%) for-loop ...ock/herbie/src/core/simplify.rkt:61:12 iterate-egraph!5 [17] 50.0% debug7 [21] 50.0% ---------------------------------------------------------------------- run-improve58 [2] 100.0% [16] 244(2.0%) 0(0.0%) setup-prog /home/ztatlock/herbie/src/glue.rkt:46:0 ??? [32] 100.0% ---------------------------------------------------------------------- for-loop [15] 5.0% simplify-expr [9] 95.0% [17] 3046(25.0%) 0(0.0%) iterate-egraph!5 ...bie/src/core/simplify.rkt:95:0 one-iter [22] 95.1% *simplify-rules* [28] 4.9% ---------------------------------------------------------------------- for-loop [10] 100.0% [18] 2592(21.3%) 0(0.0%) run-iter! ...tatlock/herbie/src/mainloop.rkt:223:0 simplify! [23] 76.3% gen-series! [25] 12.1% finalize-iter! [27] 11.6% ---------------------------------------------------------------------- finalize-table! [11] 100.0% [19] 2308(18.9%) 0(0.0%) post-process .../ztatlock/herbie/src/glue.rkt:95:0 for-loop [24] 53.3% loop [70] 33.0% ??? [32] 7.2% localize-error [26] 6.5% ---------------------------------------------------------------------- get-final-combination [13] 100.0% [20] 620(5.1%) 0(0.0%) extract-alt ...e/ztatlock/herbie/src/glue.rkt:57:0 loop [70] 100.0% ---------------------------------------------------------------------- for-loop [15] 100.0% [21] 152(1.2%) 152(1.2%) debug7 /home/ztatlock/herbie/src/debug.rkt:102:0 ---------------------------------------------------------------------- iterate-egraph!5 [17] 100.0% [22] 2896(23.8%) 0(0.0%) one-iter ...ock/herbie/src/core/simplify.rkt:106:0 for-loop [29] 83.4% loop [33] 16.6% ---------------------------------------------------------------------- run-iter! [18] 100.0% [23] 1978(16.2%) 0(0.0%) simplify! ...tatlock/herbie/src/mainloop.rkt:162:0 for-loop [30] 100.0% ---------------------------------------------------------------------- post-process [19] 100.0% [24] 1230(10.1%) 0(0.0%) for-loop /home/ztatlock/herbie/src/glue.rkt:119:17 append-map [31] 100.0% ---------------------------------------------------------------------- run-iter! [18] 100.0% [25] 314(2.6%) 0(0.0%) gen-series! ...tlock/herbie/src/mainloop.rkt:134:0 for-loop [34] 100.0% ---------------------------------------------------------------------- post-process [19] 48.1% loop [70] 51.9% [26] 312(2.6%) 0(0.0%) localize-error ...erbie/src/core/localize.rkt:47:0 hash-ref! [76] 100.0% ---------------------------------------------------------------------- run-iter! [18] 100.0% [27] 300(2.5%) 0(0.0%) finalize-iter! ...ck/herbie/src/mainloop.rkt:177:0 ??? [32] 100.0% ---------------------------------------------------------------------- iterate-egraph!5 [17] 100.0% [28] 150(1.2%) 0(0.0%) *simplify-rules* ...bie/src/syntax/rules.rkt:300:0 ormap [35] 100.0% ---------------------------------------------------------------------- for-loop [29] 50.0% one-iter [22] 50.0% [29] 2414(19.8%) 652(5.4%) for-loop ...ck/herbie/src/core/simplify.rkt:116:12 for-loop [29] 50.0% match-e [37] 36.5% ---------------------------------------------------------------------- simplify! [23] 100.0% [30] 1978(16.2%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:166:6 ??? [36] 100.0% ---------------------------------------------------------------------- for-loop [24] 100.0% [31] 1230(10.1%) 0(0.0%) append-map ...acket/collects/racket/list.rkt:565:2 taylor-alt [38] 86.5% loop [70] 13.5% ---------------------------------------------------------------------- post-process [19] 23.4% setup-prog [16] 34.4% finalize-iter! [27] 42.3% [32] 710(5.8%) 0(0.0%) ??? ...contract/private/arrow-val-first.rkt:357:18 for-loop [40] 65.6% make-alt-table [41] 34.4% ---------------------------------------------------------------------- one-iter [22] 100.0% [33] 482(4.0%) 0(0.0%) loop ...cket/collects/racket/private/map.rkt:53:19 apply-match [39] 100.0% ---------------------------------------------------------------------- gen-series! [25] 100.0% [34] 314(2.6%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:140:7 taylor-alt [38] 100.0% ---------------------------------------------------------------------- *simplify-rules* [28] 100.0% [35] 150(1.2%) 0(0.0%) ormap ...et/collects/racket/private/map.rkt:106:13 ??? [95] 100.0% ---------------------------------------------------------------------- for-loop [30] 5.6% run [8] 44.3% [36] 12186(100.0%) 0(0.0%) ??? ...lects/racket/private/more-scheme.rkt:261:28 profile-thunk14 [1] 44.3% loop [42] 28.3% run-improve58 [2] 21.8% simplify [3] 5.6% ---------------------------------------------------------------------- for-loop [51] 9.0% for-loop [29] 91.0% [37] 1762(14.5%) 1128(9.3%) match-e ...tatlock/herbie/src/core/ematch.rkt:46:0 for-loop [51] 13.6% for-loop [45] 13.3% list-cartesian-product [48] 8.6% loop [70] 4.7% ---------------------------------------------------------------------- loop [70] 10.8% for-loop [34] 20.3% append-map [31] 68.9% [38] 1544(12.7%) 0(0.0%) taylor-alt ...e/ztatlock/herbie/src/glue.rkt:142:0 for-loop [43] 100.0% ---------------------------------------------------------------------- loop [33] 100.0% [39] 482(4.0%) 0(0.0%) apply-match .../herbie/src/core/simplify.rkt:122:2 merge-egraph-nodes! [46] 65.6% substitute-e [47] 34.4% ---------------------------------------------------------------------- ??? [32] 100.0% [40] 466(3.8%) 0(0.0%) for-loop ...ock/herbie/src/core/alt-table.rkt:51:2 atab-add-altn [44] 100.0% ---------------------------------------------------------------------- ??? [32] 100.0% [41] 244(2.0%) 0(0.0%) make-alt-table ...rbie/src/core/alt-table.rkt:32:0 errors [59] 100.0% ---------------------------------------------------------------------- ??? [36] 100.0% [42] 6422(52.7%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:122:2 loop [49] 62.2% make-exacts* [56] 27.4% loop [57] 10.4% ---------------------------------------------------------------------- taylor-alt [38] 100.0% [43] 1544(12.7%) 0(0.0%) for-loop /home/ztatlock/herbie/src/glue.rkt:144:2 location-do [50] 100.0% ---------------------------------------------------------------------- for-loop [40] 100.0% [44] 466(3.8%) 0(0.0%) atab-add-altn ...rbie/src/core/alt-table.rkt:208:0 best-and-tied-at-points [52] 67.8% override-at-pnts [55] 32.2% ---------------------------------------------------------------------- match-e [37] 100.0% [45] 318(2.6%) 152(1.2%) for-loop ...tlock/herbie/src/core/ematch.rkt:59:11 for-loop [51] 52.2% ---------------------------------------------------------------------- apply-match [39] 100.0% [46] 316(2.6%) 0(0.0%) merge-egraph-nodes! ...e/src/core/egraph.rkt:152:0 loop! [72] 100.0% ---------------------------------------------------------------------- apply-match [39] 100.0% [47] 166(1.4%) 0(0.0%) substitute-e ...ck/herbie/src/core/ematch.rkt:71:0 mk-enode! [53] 100.0% ---------------------------------------------------------------------- list-cartesian-product [48] 50.0% match-e [37] 50.0% [48] 152(1.2%) 0(0.0%) list-cartesian-product ...src/core/ematch.rkt:20:0 list-cartesian-product [48] 50.0% for-loop [54] 50.0% ---------------------------------------------------------------------- loop [42] 100.0% [49] 3996(32.8%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:93:2 loop [57] 49.1% make-exacts* [56] 39.3% eval-prog [61] 11.6% ---------------------------------------------------------------------- location-do [50] 26.2% for-loop [43] 73.8% [50] 1544(12.7%) 0(0.0%) location-do ...tlock/herbie/src/programs.rkt:129:0 approximate9 [58] 73.8% location-do [50] 26.2% ---------------------------------------------------------------------- for-loop [45] 34.6% match-e [37] 65.4% [51] 480(3.9%) 164(1.3%) for-loop ...tlock/herbie/src/core/ematch.rkt:65:37 match-e [37] 65.8% ---------------------------------------------------------------------- atab-add-altn [44] 100.0% [52] 316(2.6%) 0(0.0%) best-and-tied-at-points ...ore/alt-table.rkt:122:0 errors [59] 100.0% ---------------------------------------------------------------------- substitute-e [47] 100.0% [53] 166(1.4%) 0(0.0%) mk-enode! ...lock/herbie/src/core/egraph.rkt:101:0 hash-has-key? [60] 100.0% ---------------------------------------------------------------------- list-cartesian-product [48] 100.0% [54] 152(1.2%) 152(1.2%) for-loop ...atlock/herbie/src/core/ematch.rkt:24:8 ---------------------------------------------------------------------- atab-add-altn [44] 100.0% [55] 150(1.2%) 0(0.0%) override-at-pnts ...e/src/core/alt-table.rkt:145:0 errors [59] 100.0% ---------------------------------------------------------------------- loop [49] 47.1% loop [42] 52.9% [56] 3330(27.3%) 0(0.0%) make-exacts* ...tatlock/herbie/src/points.rkt:80:0 map [69] 48.9% loop [70] 29.0% eval-prog [61] 22.0% ---------------------------------------------------------------------- loop [42] 25.3% loop [49] 74.7% [57] 2628(21.6%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:83:4 map [69] 100.0% ---------------------------------------------------------------------- location-do [50] 100.0% [58] 1544(12.7%) 0(0.0%) approximate9 ...ck/herbie/src/core/taylor.rkt:11:0 loop [62] 49.7% f94 [67] 30.3% taylor-sqrt [63] 19.9% ---------------------------------------------------------------------- override-at-pnts [55] 21.1% make-alt-table [41] 34.4% best-and-tied-at-points [52] 44.5% [59] 710(5.8%) 0(0.0%) errors /home/ztatlock/herbie/src/points.rkt:144:0 for-loop [64] 76.6% eval-prog [61] 23.4% ---------------------------------------------------------------------- mk-enode! [53] 100.0% [60] 166(1.4%) 166(1.4%) hash-has-key? ...et/private/more-scheme.rkt:368:13 ---------------------------------------------------------------------- errors [59] 12.2% loop [49] 34.0% make-exacts* [56] 53.8% [61] 1364(11.2%) 166(1.4%) eval-prog ...tatlock/herbie/src/programs.rkt:162:0 hash-ref! [76] 87.8% ---------------------------------------------------------------------- approximate9 [58] 100.0% [62] 768(6.3%) 0(0.0%) loop ...e/ztatlock/herbie/src/core/taylor.rkt:82:4 hash-ref! [76] 100.0% ---------------------------------------------------------------------- f94 [67] 49.7% approximate9 [58] 50.3% [63] 612(5.0%) 0(0.0%) taylor-sqrt ...ck/herbie/src/core/taylor.rkt:346:0 hash-ref! [76] 50.3% first-nonzero-exp [66] 24.8% simplify [65] 24.8% ---------------------------------------------------------------------- errors [59] 100.0% [64] 544(4.5%) 150(1.2%) for-loop ...e/ztatlock/herbie/src/points.rkt:147:4 ->flonum [92] 44.9% ??? [71] 27.6% ---------------------------------------------------------------------- taylor-sqrt [63] 12.4% hash-ref! [76] 87.6% [65] 1228(10.1%) 0(0.0%) simplify ...atlock/herbie/src/core/reduce.rkt:18:0 parse-loop50 [80] 74.9% debug-print [68] 12.7% f94 [67] 12.4% ---------------------------------------------------------------------- taylor-sqrt [63] 100.0% [66] 152(1.2%) 0(0.0%) first-nonzero-exp ...bie/src/core/taylor.rkt:260:0 hash-ref! [76] 100.0% ---------------------------------------------------------------------- loop [70] 5.4% hash-ref! [76] 16.0% simplify [65] 16.2% parse-loop50 [80] 17.7% f94 [67] 22.3% approximate9 [58] 22.3% [67] 936(7.7%) 152(1.2%) f94 ...t/collects/racket/match/compiler.rkt:499:40 map [69] 58.8% f94 [67] 22.3% taylor-sqrt [63] 13.5% ---------------------------------------------------------------------- simplify [65] 100.0% [68] 156(1.3%) 156(1.3%) debug-print ...ztatlock/herbie/src/debug.rkt:107:0 ---------------------------------------------------------------------- f94 [67] 12.9% make-exacts* [56] 33.3% loop [57] 53.7% [69] 4890(40.1%) 164(1.3%) map ...acket/collects/racket/private/map.rkt:21:13 loop [70] 90.1% parse-loop50 [80] 6.5% ---------------------------------------------------------------------- make-exacts* [56] 0.1% loop! [72] 0.9% post-process [19] 1.1% map [69] 1.2% match-e [37] 2.1% append-map [31] 2.1% parse-loop50 [80] 2.2% extract-alt [20] 4.3% ??? [6] 5.9% loop [70] 80.1% [70] 7870(64.6%) 150(1.2%) loop ...cket/collects/racket/private/map.rkt:26:19 loop [70] 80.1% hash-ref! [76] 5.9% simplify [3] 4.3% taylor-alt [38] 2.1% curried [73] 2.1% ??? [71] 1.3% ??? [74] 1.2% f94 [67] 1.0% loop! [72] 0.9% completely-simplify-alt [5] 0.7% localize-error [26] 0.4% ---------------------------------------------------------------------- for-loop [64] 2.8% loop [70] 97.2% [71] 5374(44.1%) 334(2.7%) ??? /home/ztatlock/herbie/src/programs.rkt:168:4 ??? [75] 63.3% real->bigfloat [77] 24.1% ??? [91] 6.4% ---------------------------------------------------------------------- loop [70] 50.0% merge-egraph-nodes! [46] 50.0% [72] 316(2.6%) 0(0.0%) loop! .../ztatlock/herbie/src/core/enode.rkt:163:2 loop [70] 50.0% set [78] 50.0% ---------------------------------------------------------------------- loop [70] 100.0% [73] 166(1.4%) 166(1.4%) curried ...cket/collects/racket/function.rkt:71:18 ---------------------------------------------------------------------- loop [70] 100.0% [74] 162(1.3%) 0(0.0%) ??? ...ket/collects/racket/private/list.rkt:323:18 hash-ref! [76] 100.0% ---------------------------------------------------------------------- ??? [71] 100.0% [75] 3400(27.9%) 168(1.4%) ??? ...acket/collects/racket/private/kw.rkt:400:14 ??? [79] 81.8% ...higher-order.rkt:373:33 [83] 8.9% ??? [95] 4.4% ---------------------------------------------------------------------- taylor-sqrt [63] 4.2% ??? [74] 4.4% for-loop [14] 4.6% first-nonzero-exp [66] 5.6% localize-error [26] 7.0% for-loop [12] 7.6% loop [70] 10.3% ??? [82] 10.7% loop [62] 10.7% eval-prog [61] 33.4% [76] 2738(22.5%) 0(0.0%) hash-ref! ...racket/private/more-scheme.rkt:373:13 bigfloat-hash [81] 33.4% simplify [65] 14.9% ??? [4] 13.1% ??? [82] 10.7% ??? [6] 10.3% parse-loop50 [80] 5.9% f94 [67] 5.5% ??? [7] 4.6% ---------------------------------------------------------------------- ??? [71] 100.0% [77] 1294(10.6%) 792(6.5%) real->bigfloat .../private/bigfloat/mpfr.rkt:451:0 ??? [90] 38.8% ---------------------------------------------------------------------- loop! [72] 100.0% [78] 316(2.6%) 316(2.6%) set ...collects/racket/private/set-types.rkt:982:0 ---------------------------------------------------------------------- ??? [75] 100.0% [79] 2780(22.8%) 104(0.9%) ??? ...-racket/utils/simple-result-arrow.rkt:26:12 bfadd [84] 73.4% bfsqrt [87] 16.5% ??? [94] 6.4% ---------------------------------------------------------------------- hash-ref! [76] 13.1% map [69] 15.7% parse-loop50 [80] 19.0% simplify [65] 52.2% [80] 1234(10.1%) 920(7.5%) parse-loop50 ...s/racket/match/compiler.rkt:410:15 parse-loop50 [80] 19.0% loop [70] 16.0% f94 [67] 3.4% loop [88] 3.3% ---------------------------------------------------------------------- hash-ref! [76] 100.0% [81] 1198(9.8%) 0(0.0%) bigfloat-hash ...h/private/bigfloat/mpfr.rkt:165:0 bfcanonicalize [85] 54.9% sig+exp->bigfloat [86] 45.1% ---------------------------------------------------------------------- hash-ref! [76] 100.0% [82] 768(6.3%) 0(0.0%) ??? ...e/ztatlock/herbie/src/core/taylor.rkt:42:15 hash-ref! [76] 100.0% ---------------------------------------------------------------------- ??? [75] 100.0% [83] 302(2.5%) 192(1.6%) ...higher-order.rkt:373:33 (unknown source) ??? [89] 36.4% ---------------------------------------------------------------------- ??? [79] 100.0% [84] 2040(16.7%) 1518(12.5%) bfadd ...-lib/math/private/bigfloat/mpfr.rkt:819:4 ??? [90] 25.6% ---------------------------------------------------------------------- bigfloat-hash [81] 100.0% [85] 658(5.4%) 658(5.4%) bfcanonicalize .../private/bigfloat/mpfr.rkt:155:0 ---------------------------------------------------------------------- bigfloat-hash [81] 100.0% [86] 540(4.4%) 368(3.0%) sig+exp->bigfloat ...ivate/bigfloat/mpfr.rkt:385:0 integer->mpz [93] 31.9% ---------------------------------------------------------------------- ??? [79] 100.0% [87] 458(3.8%) 458(3.8%) bfsqrt ...lib/math/private/bigfloat/mpfr.rkt:616:4 ---------------------------------------------------------------------- parse-loop50 [80] 25.0% loop [88] 75.0% [88] 162(1.3%) 0(0.0%) loop ...cket/collects/racket/private/map.rkt:37:19 loop [88] 75.0% ->flonum [92] 25.0% ---------------------------------------------------------------------- ...higher-order.rkt:373:33 [83]100.0% [89] 110(0.9%) 0(0.0%) ??? ...cts/racket/contract/private/list.rkt:187:10 ??? [91] 100.0% ---------------------------------------------------------------------- real->bigfloat [77] 49.0% bfadd [84] 51.0% [90] 1024(8.4%) 1024(8.4%) ??? .../share/racket/collects/ffi/unsafe.rkt:861:4 ---------------------------------------------------------------------- ??? [89] 24.1% ??? [71] 75.9% [91] 456(3.7%) 0(0.0%) ??? ...ects/racket/contract/private/guts.rkt:638:8 ??? [94] 100.0% ---------------------------------------------------------------------- loop [88] 39.9% for-loop [64] 60.1% [92] 406(3.3%) 0(0.0%) ->flonum ...ock/herbie/src/syntax/syntax.rkt:224:0 ??? [95] 60.1% ??? [94] 39.9% ---------------------------------------------------------------------- sig+exp->bigfloat [86] 100.0% [93] 172(1.4%) 172(1.4%) integer->mpz ...math/private/bigfloat/gmp.rkt:87:0 ---------------------------------------------------------------------- ->flonum [92] 20.4% ??? [79] 22.4% ??? [91] 57.3% [94] 796(6.5%) 110(0.9%) ??? ...tract/private/arrow-higher-order.rkt:373:33 ??? [96] 63.8% ??? [97] 22.4% ---------------------------------------------------------------------- ??? [75] 27.6% ormap [35] 27.6% ->flonum [92] 44.9% [95] 544(4.5%) 544(4.5%) ??? /home/ztatlock/herbie/src/config.rkt:29:0 ---------------------------------------------------------------------- ??? [94] 100.0% [96] 508(4.2%) 346(2.8%) ??? ...llects/racket/contract/combinator.rkt:178:4 any-wrap/traverse [99] 31.9% ---------------------------------------------------------------------- ??? [94] 100.0% [97] 178(1.5%) 0(0.0%) ??? ...ects/racket/contract/private/prop.rkt:489:4 ??? [98] 100.0% ---------------------------------------------------------------------- ??? [97] 100.0% [98] 178(1.5%) 178(1.5%) ??? ...lects/racket/contract/private/orc.rkt:73:14 ---------------------------------------------------------------------- ??? [96] 100.0% [99] 162(1.3%) 162(1.3%) any-wrap/traverse ...cket/utils/any-wrap.rkt:106:2 ----------------------------------------------------------------------