Profiling results ----------------- Total cpu time observed: 75796ms (out of 76972ms) Number of samples taken: 315 (once every 241ms) (Hiding functions with self<1.0% and local<2.0%: 1 of 105 hidden) ======================================================================== Caller Idx Total Self Name+src Local% ms(pct) ms(pct) Callee ======================================================================== ??? [41] 100.0% [1] 75584(99.7%) 0(0.0%) profile-thunk14 ...t/pkgs/profile-lib/main.rkt:9:0 run [8] 100.0% ------------------------------------------------------------------------ ??? [41] 100.0% [2] 10122(13.4%) 0(0.0%) run-improve58 ...ock/herbie/src/mainloop.rkt:242:0 for-loop [10] 43.8% loop [9] 28.9% get-final-combination [11] 27.3% ------------------------------------------------------------------------ ??? [41] 100.0% [3] 3110(4.1%) 0(0.0%) simplify ...lock/herbie/src/core/simplify.rkt:39:0 iterate-egraph!5 [18] 54.1% simplify-expr [12] 22.6% loop [13] 15.4% for-loop [14] 7.8% ------------------------------------------------------------------------ hash-ref! [79] 100.0% [4] 906(1.2%) 0(0.0%) ??? /home/ztatlock/herbie/src/programs.rkt:197:5 loop [42] 100.0% ------------------------------------------------------------------------ copying-mergesort [59] 100.0% [5] 722(1.0%) 0(0.0%) jloop ...et/collects/racket/private/sort.rkt:85:19 ??? [72] 100.0% ------------------------------------------------------------------------ loop [42] 100.0% [6] 440(0.6%) 0(0.0%) ??? ...ket/collects/racket/private/list.rkt:323:18 hash-ref! [79] 100.0% ------------------------------------------------------------------------ hash-ref! [79] 100.0% [7] 220(0.3%) 0(0.0%) simplify ...atlock/herbie/src/core/reduce.rkt:18:0 parse-loop12 [87] 100.0% ------------------------------------------------------------------------ profile-thunk14 [1] 100.0% [8] 75584(99.7%) 0(0.0%) run ...share/racket/pkgs/profile-lib/main.rkt:31:2 ??? [41] 100.0% ------------------------------------------------------------------------ run-improve58 [2] 4.3% ??? [41] 95.7% [9] 68596(90.5%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:122:2 loop [15] 43.2% make-exacts* [21] 38.4% loop [22] 18.1% for-loop [20] 0.3% ------------------------------------------------------------------------ run-improve58 [2] 100.0% [10] 4432(5.8%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:253:8 run-iter! [16] 100.0% ------------------------------------------------------------------------ run-improve58 [2] 100.0% [11] 2768(3.7%) 0(0.0%) get-final-combination ...ie/src/mainloop.rkt:269:0 split-table [17] 100.0% ------------------------------------------------------------------------ simplify [3] 100.0% [12] 704(0.9%) 0(0.0%) simplify-expr ...herbie/src/core/simplify.rkt:68:0 iterate-egraph!5 [18] 100.0% ------------------------------------------------------------------------ simplify [3] 100.0% [13] 480(0.6%) 0(0.0%) loop ...tatlock/herbie/src/core/simplify.rkt:203:2 pass [19] 100.0% ------------------------------------------------------------------------ simplify [3] 100.0% [14] 242(0.3%) 0(0.0%) for-loop ...ock/herbie/src/core/simplify.rkt:61:12 iterate-egraph!5 [18] 100.0% ------------------------------------------------------------------------ loop [9] 100.0% [15] 29602(39.1%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:93:2 loop [22] 49.3% make-exacts* [21] 46.0% eval-prog [76] 4.7% ------------------------------------------------------------------------ for-loop [10] 100.0% [16] 4432(5.8%) 0(0.0%) run-iter! ...tatlock/herbie/src/mainloop.rkt:223:0 simplify! [23] 70.2% finalize-iter! [26] 15.4% gen-series! [28] 9.5% localize-error [54] 5.0% ------------------------------------------------------------------------ get-final-combination [11] 100.0% [17] 2768(3.7%) 0(0.0%) split-table .../ztatlock/herbie/src/glue.rkt:171:0 infer-splitpoints4 [24] 100.0% ------------------------------------------------------------------------ for-loop [14] 9.2% simplify-expr [12] 26.8% simplify [3] 64.0% [18] 2630(3.5%) 0(0.0%) iterate-egraph!5 ...bie/src/core/simplify.rkt:95:0 one-iter [25] 100.0% ------------------------------------------------------------------------ loop [13] 100.0% [19] 480(0.6%) 0(0.0%) pass ...tatlock/herbie/src/core/simplify.rkt:193:2 for-loop [27] 100.0% ------------------------------------------------------------------------ loop [9] 100.0% [20] 222(0.3%) 0(0.0%) for-loop .../ztatlock/herbie/src/points.rkt:128:18 for-loop [29] 100.0% ------------------------------------------------------------------------ loop [15] 34.1% loop [9] 65.9% [21] 39956(52.7%) 0(0.0%) make-exacts* ...tatlock/herbie/src/points.rkt:80:0 map [30] 51.9% loop [42] 45.2% eval-prog [76] 2.9% ------------------------------------------------------------------------ loop [9] 46.0% loop [15] 54.0% [22] 27032(35.7%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:83:4 map [30] 100.0% ------------------------------------------------------------------------ run-iter! [16] 100.0% [23] 3110(4.1%) 0(0.0%) simplify! ...tatlock/herbie/src/mainloop.rkt:162:0 for-loop [31] 100.0% ------------------------------------------------------------------------ split-table [17] 100.0% [24] 2768(3.7%) 0(0.0%) infer-splitpoints4 ...ie/src/core/regimes.rkt:19:0 option-on-expr [32] 92.1% exprs-to-branch-on [40] 7.9% ------------------------------------------------------------------------ iterate-egraph!5 [18] 100.0% [25] 2630(3.5%) 240(0.3%) one-iter ...ock/herbie/src/core/simplify.rkt:106:0 for-loop [33] 54.9% loop [34] 36.0% ------------------------------------------------------------------------ run-iter! [16] 100.0% [26] 682(0.9%) 0(0.0%) finalize-iter! ...ck/herbie/src/mainloop.rkt:177:0 ??? [35] 100.0% ------------------------------------------------------------------------ pass [19] 100.0% [27] 480(0.6%) 0(0.0%) for-loop ...ck/herbie/src/core/simplify.rkt:196:29 for-loop [37] 50.0% loop [38] 50.0% ------------------------------------------------------------------------ run-iter! [16] 100.0% [28] 420(0.6%) 0(0.0%) gen-series! ...tlock/herbie/src/mainloop.rkt:134:0 for-loop [36] 100.0% ------------------------------------------------------------------------ for-loop [20] 100.0% [29] 222(0.3%) 0(0.0%) for-loop .../ztatlock/herbie/src/points.rkt:129:20 sample-double [39] 100.0% ------------------------------------------------------------------------ f6 [89] 0.9% make-exacts* [21] 43.0% loop [22] 56.1% [30] 48202(63.6%) 0(0.0%) map ...acket/collects/racket/private/map.rkt:21:13 loop [42] 97.2% ??? [75] 2.8% ------------------------------------------------------------------------ simplify! [23] 100.0% [31] 3110(4.1%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:166:6 ??? [41] 100.0% ------------------------------------------------------------------------ infer-splitpoints4 [24] 100.0% [32] 2548(3.4%) 0(0.0%) option-on-expr ...erbie/src/core/regimes.rkt:106:0 sort-context-on-expr [43] 92.2% errors [69] 7.8% ------------------------------------------------------------------------ for-loop [33] 50.0% one-iter [25] 50.0% [33] 1444(1.9%) 480(0.6%) for-loop ...ck/herbie/src/core/simplify.rkt:116:12 for-loop [33] 50.0% match-e [51] 33.4% ------------------------------------------------------------------------ one-iter [25] 100.0% [34] 946(1.2%) 0(0.0%) loop ...cket/collects/racket/private/map.rkt:53:19 apply-match [44] 100.0% ------------------------------------------------------------------------ finalize-iter! [26] 100.0% [35] 682(0.9%) 0(0.0%) ??? ...contract/private/arrow-val-first.rkt:357:18 for-loop [45] 100.0% ------------------------------------------------------------------------ gen-series! [28] 100.0% [36] 420(0.6%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:140:7 taylor-alt [48] 52.4% debug-print [49] 47.6% ------------------------------------------------------------------------ for-loop [27] 100.0% [37] 240(0.3%) 240(0.3%) for-loop ...ck/herbie/src/core/simplify.rkt:183:13 ------------------------------------------------------------------------ for-loop [27] 100.0% [38] 240(0.3%) 240(0.3%) loop ...hare/racket/collects/racket/list.rkt:729:4 ------------------------------------------------------------------------ for-loop [29] 100.0% [39] 222(0.3%) 0(0.0%) sample-double .../src/syntax/distributions.rkt:8:0 random-exp [46] 100.0% ------------------------------------------------------------------------ infer-splitpoints4 [24] 100.0% [40] 220(0.3%) 0(0.0%) exprs-to-branch-on ...ie/src/core/regimes.rkt:41:0 critical-subexpression [47] 100.0% ------------------------------------------------------------------------ for-loop [31] 1.4% run [8] 49.2% [41] 75796(100.0%) 0(0.0%) ??? ...lects/racket/private/more-scheme.rkt:261:28 profile-thunk14 [1] 49.2% loop [9] 43.5% run-improve58 [2] 6.0% simplify [3] 1.4% ------------------------------------------------------------------------ parse-loop12 [87] 0.0% make-exacts* [21] 0.5% ??? [4] 1.4% map [30] 2.3% loop [42] 95.9% [42] 65810(86.8%) 0(0.0%) loop ...cket/collects/racket/private/map.rkt:26:19 loop [42] 95.9% ??? [75] 2.7% hash-ref! [79] 1.4% ??? [6] 0.0% ??? [84] 0.0% ->flonum [52] 0.0% ------------------------------------------------------------------------ option-on-expr [32] 100.0% [43] 2348(3.1%) 0(0.0%) sort-context-on-expr ...herbie/src/points.rkt:50:0 sort [50] 100.0% ------------------------------------------------------------------------ loop [34] 100.0% [44] 946(1.2%) 0(0.0%) apply-match .../herbie/src/core/simplify.rkt:122:2 match-e [51] 49.0% merge-egraph-nodes! [55] 25.6% mk-enode! [56] 25.4% ------------------------------------------------------------------------ ??? [35] 100.0% [45] 682(0.9%) 0(0.0%) for-loop ...ock/herbie/src/core/alt-table.rkt:51:2 atab-add-altn [53] 100.0% ------------------------------------------------------------------------ sample-double [39] 100.0% [46] 222(0.3%) 222(0.3%) random-exp ...ztatlock/herbie/src/common.rkt:153:0 ------------------------------------------------------------------------ exprs-to-branch-on [40] 100.0% [47] 220(0.3%) 0(0.0%) critical-subexpression ...rc/core/regimes.rkt:49:0 localize-error [54] 100.0% ------------------------------------------------------------------------ for-loop [36] 100.0% [48] 220(0.3%) 0(0.0%) taylor-alt ...e/ztatlock/herbie/src/glue.rkt:142:0 for-loop [57] 100.0% ------------------------------------------------------------------------ for-loop [36] 100.0% [49] 200(0.3%) 0(0.0%) debug-print ...ztatlock/herbie/src/debug.rkt:107:0 for-loop [58] 100.0% ------------------------------------------------------------------------ sort-context-on-expr [43] 100.0% [50] 2348(3.1%) 0(0.0%) sort ...ket/collects/racket/private/sort.rkt:213:0 copying-mergesort [59] 80.6% loop [68] 19.4% ------------------------------------------------------------------------ for-loop [64] 8.5% apply-match [44] 24.0% for-loop [33] 67.5% [51] 1428(1.9%) 724(1.0%) match-e ...tatlock/herbie/src/core/ematch.rkt:46:0 for-loop [60] 24.0% constant? [65] 16.8% for-loop [64] 8.5% ------------------------------------------------------------------------ loop [42] 100.0% [52] 718(0.9%) 240(0.3%) ->flonum ...ock/herbie/src/syntax/syntax.rkt:224:0 ??? [62] 33.7% ??? [101] 32.9% ------------------------------------------------------------------------ for-loop [45] 100.0% [53] 682(0.9%) 0(0.0%) atab-add-altn ...rbie/src/core/alt-table.rkt:208:0 best-and-tied-at-points [61] 64.8% override-at-pnts [66] 35.2% ------------------------------------------------------------------------ run-iter! [16] 50.0% critical-subexpression [47] 50.0% [54] 440(0.6%) 0(0.0%) localize-error ...erbie/src/core/localize.rkt:47:0 hash-ref! [79] 100.0% ------------------------------------------------------------------------ apply-match [44] 100.0% [55] 242(0.3%) 0(0.0%) merge-egraph-nodes! ...e/src/core/egraph.rkt:152:0 for-loop [63] 100.0% ------------------------------------------------------------------------ apply-match [44] 100.0% [56] 240(0.3%) 240(0.3%) mk-enode! ...lock/herbie/src/core/egraph.rkt:101:0 ------------------------------------------------------------------------ taylor-alt [48] 100.0% [57] 220(0.3%) 0(0.0%) for-loop /home/ztatlock/herbie/src/glue.rkt:144:2 location-do [67] 100.0% ------------------------------------------------------------------------ debug-print [49] 100.0% [58] 200(0.3%) 200(0.3%) for-loop /home/ztatlock/herbie/src/debug.rkt:113:2 ------------------------------------------------------------------------ sort [50] 48.5% copying-mergesort [59] 51.5% [59] 1892(2.5%) 0(0.0%) copying-mergesort .../racket/private/sort.rkt:91:4 copying-mergesort [59] 51.5% loop [68] 39.0% jloop [5] 9.5% ------------------------------------------------------------------------ match-e [51] 100.0% [60] 464(0.6%) 242(0.3%) for-loop ...tlock/herbie/src/core/ematch.rkt:59:11 list-cartesian-product [70] 47.8% ------------------------------------------------------------------------ atab-add-altn [53] 100.0% [61] 442(0.6%) 0(0.0%) best-and-tied-at-points ...ore/alt-table.rkt:122:0 errors [69] 100.0% ------------------------------------------------------------------------ ->flonum [52] 100.0% [62] 242(0.3%) 242(0.3%) ??? /home/ztatlock/herbie/src/config.rkt:29:0 ------------------------------------------------------------------------ merge-egraph-nodes! [55] 100.0% [63] 242(0.3%) 242(0.3%) for-loop ...tlock/herbie/src/core/egraph.rkt:232:6 ------------------------------------------------------------------------ match-e [51] 100.0% [64] 242(0.3%) 0(0.0%) for-loop ...tlock/herbie/src/core/ematch.rkt:65:37 match-e [51] 100.0% ------------------------------------------------------------------------ match-e [51] 100.0% [65] 240(0.3%) 240(0.3%) constant? ...ck/herbie/src/syntax/syntax.rkt:221:0 ------------------------------------------------------------------------ atab-add-altn [53] 100.0% [66] 240(0.3%) 0(0.0%) override-at-pnts ...e/src/core/alt-table.rkt:145:0 errors [69] 100.0% ------------------------------------------------------------------------ for-loop [57] 100.0% [67] 220(0.3%) 0(0.0%) location-do ...tlock/herbie/src/programs.rkt:129:0 approximate9 [71] 100.0% ------------------------------------------------------------------------ sort [50] 28.0% copying-mergesort [59] 72.0% [68] 1626(2.1%) 0(0.0%) loop ...cket/collects/racket/private/sort.rkt:64:8 ??? [72] 100.0% ------------------------------------------------------------------------ option-on-expr [32] 22.7% override-at-pnts [66] 27.2% best-and-tied-at-points [61] 50.1% [69] 882(1.2%) 0(0.0%) errors /home/ztatlock/herbie/src/points.rkt:144:0 for-loop [73] 100.0% ------------------------------------------------------------------------ list-cartesian-product [70] 50.0% for-loop [60] 50.0% [70] 222(0.3%) 222(0.3%) list-cartesian-product ...src/core/ematch.rkt:20:0 list-cartesian-product [70] 50.0% ------------------------------------------------------------------------ location-do [67] 100.0% [71] 220(0.3%) 0(0.0%) approximate9 ...ck/herbie/src/core/taylor.rkt:11:0 loop [74] 100.0% ------------------------------------------------------------------------ jloop [5] 30.7% loop [68] 69.3% [72] 2348(3.1%) 0(0.0%) ??? /home/ztatlock/herbie/src/points.rkt:52:27 eval-prog [76] 100.0% ------------------------------------------------------------------------ errors [69] 100.0% [73] 882(1.2%) 0(0.0%) for-loop ...e/ztatlock/herbie/src/points.rkt:147:4 ??? [75] 75.1% ??? [77] 24.9% ------------------------------------------------------------------------ approximate9 [71] 100.0% [74] 220(0.3%) 0(0.0%) loop ...e/ztatlock/herbie/src/core/taylor.rkt:82:4 hash-ref! [79] 100.0% ------------------------------------------------------------------------ for-loop [73] 1.0% map [30] 2.1% loop [42] 96.9% [75] 65778(86.8%) 1422(1.9%) ??? /home/ztatlock/herbie/src/programs.rkt:168:4 ??? [78] 93.2% real->bigfloat [80] 4.3% ??? [100] 0.4% ------------------------------------------------------------------------ make-exacts* [21] 23.6% loop [15] 28.4% ??? [72] 48.0% [76] 4888(6.4%) 1866(2.5%) eval-prog ...tatlock/herbie/src/programs.rkt:162:0 hash-ref! [79] 46.8% inductor [81] 5.2% new-lambda [82] 5.0% go [83] 4.9% ------------------------------------------------------------------------ for-loop [73] 100.0% [77] 220(0.3%) 220(0.3%) ??? ...tract/private/arrow-higher-order.rkt:369:33 ------------------------------------------------------------------------ ??? [75] 100.0% [78] 61312(80.9%) 1354(1.8%) ??? ...acket/collects/racket/private/kw.rkt:400:14 ??? [84] 92.9% ...higher-order.rkt:369:33 [85] 3.8% bf< [88] 0.7% ...higher-order.rkt:373:33 [92] 0.4% ------------------------------------------------------------------------ ??? [93] 2.5% ??? [94] 2.5% loop [74] 2.5% ??? [6] 7.5% localize-error [54] 7.5% loop [42] 21.0% eval-prog [76] 56.6% [79] 2948(3.9%) 0(0.0%) hash-ref! ...racket/private/more-scheme.rkt:373:13 bigfloat-hash [86] 56.6% ??? [4] 21.0% parse-loop12 [87] 7.5% f6 [89] 7.5% ??? [94] 2.5% ??? [93] 2.5% simplify [7] 2.5% ------------------------------------------------------------------------ ??? [75] 100.0% [80] 2806(3.7%) 1374(1.8%) real->bigfloat .../private/bigfloat/mpfr.rkt:451:0 ??? [99] 51.0% ------------------------------------------------------------------------ eval-prog [76] 33.3% inductor [81] 66.7% [81] 252(0.3%) 0(0.0%) inductor .../ztatlock/herbie/src/programs.rkt:73:2 inductor [81] 66.7% integer->bigfloat [90] 33.3% ------------------------------------------------------------------------ eval-prog [76] 100.0% [82] 242(0.3%) 242(0.3%) new-lambda ...ollects/racket/private/kw.rkt:631:11 ------------------------------------------------------------------------ eval-prog [76] 100.0% [83] 240(0.3%) 0(0.0%) go .../collects/racket/private/qq-and-or.rkt:50:20 loop [91] 100.0% ------------------------------------------------------------------------ loop [42] 0.8% ??? [78] 99.2% [84] 57392(75.7%) 48200(63.6%) ??? ...-racket/utils/simple-result-arrow.rkt:26:12 bfneg [95] 8.3% ??? [101] 6.9% ------------------------------------------------------------------------ ??? [78] 100.0% [85] 2316(3.1%) 0(0.0%) ...higher-order.rkt:369:33 (unknown source) ??? [96] 79.4% ??? [100] 20.6% ------------------------------------------------------------------------ hash-ref! [79] 100.0% [86] 2288(3.0%) 0(0.0%) bigfloat-hash ...h/private/bigfloat/mpfr.rkt:165:0 bfcanonicalize [97] 58.0% sig+exp->bigfloat [98] 42.0% ------------------------------------------------------------------------ simplify [7] 33.3% hash-ref! [79] 66.7% [87] 660(0.9%) 220(0.3%) parse-loop12 ...s/racket/match/compiler.rkt:410:15 loop [42] 66.7% ------------------------------------------------------------------------ ??? [78] 100.0% [88] 452(0.6%) 0(0.0%) bf< ...th/private/bigfloat/bigfloat-mpfr.rkt:127:4 ??? [101] 100.0% ------------------------------------------------------------------------ hash-ref! [79] 100.0% [89] 440(0.6%) 0(0.0%) f6 ...et/collects/racket/match/compiler.rkt:499:40 map [30] 100.0% ------------------------------------------------------------------------ inductor [81] 100.0% [90] 252(0.3%) 252(0.3%) integer->bigfloat ...ivate/bigfloat/mpfr.rkt:399:0 ------------------------------------------------------------------------ go [83] 100.0% [91] 240(0.3%) 240(0.3%) loop ...llects/racket/private/qq-and-or.rkt:101:61 ------------------------------------------------------------------------ ??? [78] 100.0% [92] 238(0.3%) 0(0.0%) ...higher-order.rkt:373:33 (unknown source) ??? [96] 100.0% ------------------------------------------------------------------------ hash-ref! [79] 100.0% [93] 220(0.3%) 0(0.0%) ??? .../ztatlock/herbie/src/core/taylor.rkt:338:33 hash-ref! [79] 100.0% ------------------------------------------------------------------------ hash-ref! [79] 100.0% [94] 220(0.3%) 0(0.0%) ??? ...e/ztatlock/herbie/src/core/taylor.rkt:42:15 hash-ref! [79] 100.0% ------------------------------------------------------------------------ ??? [84] 100.0% [95] 4736(6.2%) 2856(3.8%) bfneg ...-lib/math/private/bigfloat/mpfr.rkt:616:4 ??? [99] 39.7% ------------------------------------------------------------------------ ...higher-order.rkt:373:33 [92] 11.5% ...higher-order.rkt:369:33 [85] 88.5% [96] 2078(2.7%) 0(0.0%) ??? ...cts/racket/contract/private/list.rkt:187:10 ??? [100] 100.0% ------------------------------------------------------------------------ bigfloat-hash [86] 100.0% [97] 1328(1.8%) 1328(1.8%) bfcanonicalize .../private/bigfloat/mpfr.rkt:155:0 ------------------------------------------------------------------------ bigfloat-hash [86] 100.0% [98] 960(1.3%) 960(1.3%) sig+exp->bigfloat ...ivate/bigfloat/mpfr.rkt:385:0 ------------------------------------------------------------------------ real->bigfloat [80] 43.2% bfneg [95] 56.8% [99] 3312(4.4%) 3312(4.4%) ??? .../share/racket/collects/ffi/unsafe.rkt:861:4 ------------------------------------------------------------------------ ??? [75] 8.5% ...higher-order.rkt:369:33 [85] 17.0% ??? [96] 74.4% [100] 2792(3.7%) 0(0.0%) ??? ...ects/racket/contract/private/guts.rkt:638:8 ??? [101] 100.0% ------------------------------------------------------------------------ ->flonum [52] 3.2% bf< [88] 6.1% ??? [100] 37.7% ??? [84] 53.0% [101] 7412(9.8%) 2972(3.9%) ??? ...tract/private/arrow-higher-order.rkt:373:33 ??? [102] 56.7% ??? [103] 3.2% ------------------------------------------------------------------------ ??? [101] 100.0% [102] 4200(5.5%) 1384(1.8%) ??? ...llects/racket/contract/combinator.rkt:178:4 any-wrap/traverse [104] 67.0% ------------------------------------------------------------------------ ??? [101] 100.0% [103] 240(0.3%) 240(0.3%) ??? ...ects/racket/contract/private/prop.rkt:489:4 ------------------------------------------------------------------------ ??? [102] 100.0% [104] 2816(3.7%) 2816(3.7%) any-wrap/traverse ...cket/utils/any-wrap.rkt:106:2 ------------------------------------------------------------------------