Profiling results ----------------- Total cpu time observed: 12782ms (out of 13108ms) Number of samples taken: 57 (once every 224ms) ======================================================================= Caller Idx Total Self Name+src Local% ms(pct) ms(pct) Callee ======================================================================= ??? [40] 100.0% [1] 12232(95.7%) 0(0.0%) profile-thunk14 ...t/pkgs/profile-lib/main.rkt:9:0 run [9] 100.0% ----------------------------------------------------------------------- ??? [40] 100.0% [2] 5248(41.1%) 0(0.0%) run-improve58 ...ock/herbie/src/mainloop.rkt:242:0 for-loop [10] 67.9% get-final-combination [11] 32.1% ----------------------------------------------------------------------- loop [84] 9.5% ??? [40] 90.5% [3] 2306(18.0%) 0(0.0%) simplify ...lock/herbie/src/core/simplify.rkt:39:0 simplify-expr [12] 63.4% for-loop [13] 36.6% ----------------------------------------------------------------------- hash-ref! [90] 100.0% [4] 410(3.2%) 0(0.0%) ??? /home/ztatlock/herbie/src/programs.rkt:197:5 hash-ref! [90] 53.7% loop [84] 46.3% ----------------------------------------------------------------------- copying-mergesort [56] 100.0% [5] 406(3.2%) 0(0.0%) jloop ...et/collects/racket/private/sort.rkt:85:19 ??? [74] 100.0% ----------------------------------------------------------------------- map [79] 100.0% [6] 220(1.7%) 0(0.0%) taylor-invert .../herbie/src/core/taylor.rkt:312:0 first-nonzero-exp [14] 100.0% ----------------------------------------------------------------------- hash-ref! [90] 100.0% [7] 200(1.6%) 0(0.0%) ??? .../ztatlock/herbie/src/core/taylor.rkt:285:26 for-loop [16] 100.0% ----------------------------------------------------------------------- hash-ref! [90] 100.0% [8] 200(1.6%) 0(0.0%) ??? .../ztatlock/herbie/src/core/taylor.rkt:322:33 for-loop [15] 100.0% ----------------------------------------------------------------------- profile-thunk14 [1] 100.0% [9] 12232(95.7%) 0(0.0%) run ...share/racket/pkgs/profile-lib/main.rkt:31:2 ??? [40] 100.0% ----------------------------------------------------------------------- run-improve58 [2] 100.0% [10] 3564(27.9%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:253:8 run-iter! [17] 100.0% ----------------------------------------------------------------------- run-improve58 [2] 100.0% [11] 1684(13.2%) 0(0.0%) get-final-combination ...ie/src/mainloop.rkt:269:0 split-table [19] 86.9% extract-alt [22] 13.1% ----------------------------------------------------------------------- simplify [3] 100.0% [12] 1462(11.4%) 0(0.0%) simplify-expr ...herbie/src/core/simplify.rkt:68:0 iterate-egraph!5 [18] 69.9% debug-print [21] 15.0% loop [23] 15.0% ----------------------------------------------------------------------- simplify [3] 100.0% [13] 844(6.6%) 0(0.0%) for-loop ...ock/herbie/src/core/simplify.rkt:61:12 iterate-egraph!5 [18] 100.0% ----------------------------------------------------------------------- taylor-invert [6] 100.0% [14] 220(1.7%) 0(0.0%) first-nonzero-exp ...bie/src/core/taylor.rkt:260:0 simplify [20] 100.0% ----------------------------------------------------------------------- ??? [8] 100.0% [15] 200(1.6%) 0(0.0%) for-loop ...lock/herbie/src/core/taylor.rkt:324:46 hash-ref! [90] 100.0% ----------------------------------------------------------------------- ??? [7] 100.0% [16] 200(1.6%) 0(0.0%) for-loop ...lock/herbie/src/core/taylor.rkt:285:52 hash-ref! [90] 100.0% ----------------------------------------------------------------------- for-loop [10] 100.0% [17] 3564(27.9%) 0(0.0%) run-iter! ...tatlock/herbie/src/mainloop.rkt:223:0 simplify! [24] 58.5% finalize-iter! [27] 17.9% gen-series! [28] 17.4% gen-rewrites! [30] 6.2% ----------------------------------------------------------------------- for-loop [13] 45.2% simplify-expr [12] 54.8% [18] 1866(14.6%) 0(0.0%) iterate-egraph!5 ...bie/src/core/simplify.rkt:95:0 one-iter [25] 100.0% ----------------------------------------------------------------------- get-final-combination [11] 100.0% [19] 1464(11.5%) 0(0.0%) split-table .../ztatlock/herbie/src/glue.rkt:171:0 infer-splitpoints4 [26] 100.0% ----------------------------------------------------------------------- taylor-sqrt [88] 32.3% hash-ref! [90] 32.3% first-nonzero-exp [14] 35.5% [20] 620(4.9%) 0(0.0%) simplify ...atlock/herbie/src/core/reduce.rkt:18:0 parse-loop50 [29] 64.5% f94 [75] 35.5% ----------------------------------------------------------------------- simplify-expr [12] 100.0% [21] 220(1.7%) 220(1.7%) debug-print ...ztatlock/herbie/src/debug.rkt:107:0 ----------------------------------------------------------------------- get-final-combination [11] 100.0% [22] 220(1.7%) 0(0.0%) extract-alt ...e/ztatlock/herbie/src/glue.rkt:57:0 loop [84] 100.0% ----------------------------------------------------------------------- simplify-expr [12] 100.0% [23] 220(1.7%) 0(0.0%) loop ...tatlock/herbie/src/core/simplify.rkt:203:2 pass [31] 100.0% ----------------------------------------------------------------------- run-iter! [17] 100.0% [24] 2086(16.3%) 0(0.0%) simplify! ...tatlock/herbie/src/mainloop.rkt:162:0 for-loop [32] 100.0% ----------------------------------------------------------------------- iterate-egraph!5 [18] 100.0% [25] 1866(14.6%) 0(0.0%) one-iter ...ock/herbie/src/core/simplify.rkt:106:0 for-loop [34] 76.4% apply-match [44] 12.9% loop [39] 10.7% ----------------------------------------------------------------------- split-table [19] 100.0% [26] 1464(11.5%) 0(0.0%) infer-splitpoints4 ...ie/src/core/regimes.rkt:19:0 option-on-expr [33] 100.0% ----------------------------------------------------------------------- run-iter! [17] 100.0% [27] 638(5.0%) 0(0.0%) finalize-iter! ...ck/herbie/src/mainloop.rkt:177:0 ??? [35] 100.0% ----------------------------------------------------------------------- run-iter! [17] 100.0% [28] 620(4.9%) 0(0.0%) gen-series! ...tlock/herbie/src/mainloop.rkt:134:0 for-loop [36] 100.0% ----------------------------------------------------------------------- simplify [20] 100.0% [29] 400(3.1%) 200(1.6%) parse-loop50 ...s/racket/match/compiler.rkt:410:15 f94 [75] 50.0% ----------------------------------------------------------------------- run-iter! [17] 100.0% [30] 220(1.7%) 0(0.0%) gen-rewrites! ...ock/herbie/src/mainloop.rkt:148:0 for-loop [37] 100.0% ----------------------------------------------------------------------- loop [23] 100.0% [31] 220(1.7%) 0(0.0%) pass ...tatlock/herbie/src/core/simplify.rkt:193:2 for-loop [38] 100.0% ----------------------------------------------------------------------- simplify! [24] 100.0% [32] 2086(16.3%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:166:6 ??? [40] 100.0% ----------------------------------------------------------------------- infer-splitpoints4 [26] 100.0% [33] 1464(11.5%) 0(0.0%) option-on-expr ...erbie/src/core/regimes.rkt:106:0 sort-context-on-expr [41] 100.0% ----------------------------------------------------------------------- for-loop [34] 50.0% one-iter [25] 50.0% [34] 1426(11.2%) 200(1.6%) for-loop ...ck/herbie/src/core/simplify.rkt:116:12 for-loop [34] 50.0% match-e [49] 43.0% ----------------------------------------------------------------------- finalize-iter! [27] 100.0% [35] 638(5.0%) 0(0.0%) ??? ...contract/private/arrow-val-first.rkt:357:18 for-loop [42] 100.0% ----------------------------------------------------------------------- gen-series! [28] 100.0% [36] 620(4.9%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:140:7 taylor-alt [43] 100.0% ----------------------------------------------------------------------- gen-rewrites! [30] 100.0% [37] 220(1.7%) 0(0.0%) for-loop ...tatlock/herbie/src/mainloop.rkt:153:11 ??? [45] 100.0% ----------------------------------------------------------------------- pass [31] 100.0% [38] 220(1.7%) 0(0.0%) for-loop ...ck/herbie/src/core/simplify.rkt:196:29 argmin [46] 100.0% ----------------------------------------------------------------------- one-iter [25] 100.0% [39] 200(1.6%) 0(0.0%) loop ...cket/collects/racket/private/map.rkt:53:19 apply-match [44] 100.0% ----------------------------------------------------------------------- for-loop [32] 5.7% run [9] 45.4% [40] 12782(100.0%) 0(0.0%) ??? ...lects/racket/private/more-scheme.rkt:261:28 profile-thunk14 [1] 45.4% loop [47] 30.8% run-improve58 [2] 18.1% simplify [3] 5.7% ----------------------------------------------------------------------- option-on-expr [33] 100.0% [41] 1464(11.5%) 0(0.0%) sort-context-on-expr ...herbie/src/points.rkt:50:0 sort [48] 100.0% ----------------------------------------------------------------------- ??? [35] 100.0% [42] 638(5.0%) 0(0.0%) for-loop ...ock/herbie/src/core/alt-table.rkt:51:2 atab-add-altn [50] 100.0% ----------------------------------------------------------------------- for-loop [36] 100.0% [43] 620(4.9%) 0(0.0%) taylor-alt ...e/ztatlock/herbie/src/glue.rkt:142:0 for-loop [51] 100.0% ----------------------------------------------------------------------- loop [39] 45.5% one-iter [25] 54.5% [44] 440(3.4%) 0(0.0%) apply-match .../herbie/src/core/simplify.rkt:122:2 merge-egraph-nodes! [52] 54.5% match-e [49] 45.5% ----------------------------------------------------------------------- for-loop [37] 100.0% [45] 220(1.7%) 0(0.0%) ??? /home/ztatlock/herbie/src/alternative.rkt:90:0 rewriter [53] 100.0% ----------------------------------------------------------------------- for-loop [38] 100.0% [46] 220(1.7%) 0(0.0%) argmin ...re/racket/collects/racket/list.rkt:743:0 expression-cost [54] 100.0% ----------------------------------------------------------------------- ??? [40] 100.0% [47] 7534(58.9%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:122:2 loop [55] 56.9% make-exacts* [65] 25.6% loop [64] 17.5% ----------------------------------------------------------------------- sort-context-on-expr [41] 100.0% [48] 1464(11.5%) 0(0.0%) sort ...ket/collects/racket/private/sort.rkt:213:0 copying-mergesort [56] 69.9% loop [66] 30.1% ----------------------------------------------------------------------- for-loop [68] 9.4% apply-match [44] 14.0% for-loop [34] 76.5% [49] 1426(11.2%) 1024(8.0%) match-e ...tatlock/herbie/src/core/ematch.rkt:46:0 for-loop [68] 18.7% list-cartesian-product [62] 14.2% for-loop [63] 4.7% ----------------------------------------------------------------------- for-loop [42] 100.0% [50] 638(5.0%) 0(0.0%) atab-add-altn ...rbie/src/core/alt-table.rkt:208:0 best-and-tied-at-points [57] 100.0% ----------------------------------------------------------------------- taylor-alt [43] 100.0% [51] 620(4.9%) 0(0.0%) for-loop /home/ztatlock/herbie/src/glue.rkt:144:2 location-do [58] 100.0% ----------------------------------------------------------------------- apply-match [44] 100.0% [52] 240(1.9%) 0(0.0%) merge-egraph-nodes! ...e/src/core/egraph.rkt:152:0 enode-merge! [59] 100.0% ----------------------------------------------------------------------- matcher [71] 50.0% ??? [45] 50.0% [53] 220(1.7%) 0(0.0%) rewriter ...lock/herbie/src/core/matcher.rkt:123:2 for-loop [60] 100.0% ----------------------------------------------------------------------- argmin [46] 100.0% [54] 220(1.7%) 0(0.0%) expression-cost ...k/herbie/src/programs.rkt:212:0 compile [61] 100.0% ----------------------------------------------------------------------- loop [47] 100.0% [55] 4290(33.6%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:93:2 loop [64] 53.7% make-exacts* [65] 38.2% eval-prog [80] 8.1% ----------------------------------------------------------------------- sort [48] 46.1% copying-mergesort [56] 53.9% [56] 1024(8.0%) 0(0.0%) copying-mergesort .../racket/private/sort.rkt:91:4 copying-mergesort [56] 53.9% loop [66] 36.2% jloop [5] 9.9% ----------------------------------------------------------------------- atab-add-altn [50] 100.0% [57] 638(5.0%) 0(0.0%) best-and-tied-at-points ...ore/alt-table.rkt:122:0 loop [70] 34.5% errors [72] 33.9% for-loop [73] 31.7% ----------------------------------------------------------------------- for-loop [51] 100.0% [58] 620(4.9%) 0(0.0%) location-do ...tlock/herbie/src/programs.rkt:129:0 approximate9 [67] 100.0% ----------------------------------------------------------------------- merge-egraph-nodes! [52] 100.0% [59] 240(1.9%) 0(0.0%) enode-merge! ...ck/herbie/src/core/enode.rkt:100:0 adopt-enode! [69] 100.0% ----------------------------------------------------------------------- rewriter [53] 100.0% [60] 220(1.7%) 0(0.0%) for-loop ...ock/herbie/src/core/matcher.rkt:126:10 matcher [71] 100.0% ----------------------------------------------------------------------- expression-cost [54] 100.0% [61] 220(1.7%) 0(0.0%) compile .../ztatlock/herbie/src/programs.rkt:189:0 hash-ref! [90] 100.0% ----------------------------------------------------------------------- match-e [49] 100.0% [62] 202(1.6%) 202(1.6%) list-cartesian-product ...src/core/ematch.rkt:20:0 ----------------------------------------------------------------------- match-e [49] 100.0% [63] 202(1.6%) 0(0.0%) for-loop ...tlock/herbie/src/core/ematch.rkt:59:11 for-loop [68] 100.0% ----------------------------------------------------------------------- loop [47] 36.4% loop [55] 63.6% [64] 3618(28.3%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:83:4 map [79] 100.0% ----------------------------------------------------------------------- loop [55] 46.0% loop [47] 54.0% [65] 3568(27.9%) 0(0.0%) make-exacts* ...tatlock/herbie/src/points.rkt:80:0 loop [84] 56.8% map [79] 43.2% ----------------------------------------------------------------------- sort [48] 41.6% copying-mergesort [56] 58.4% [66] 1058(8.3%) 0(0.0%) loop ...cket/collects/racket/private/sort.rkt:64:8 ??? [74] 100.0% ----------------------------------------------------------------------- location-do [58] 100.0% [67] 620(4.9%) 0(0.0%) approximate9 ...ck/herbie/src/core/taylor.rkt:11:0 f94 [75] 100.0% ----------------------------------------------------------------------- for-loop [63] 25.1% match-e [49] 74.9% [68] 402(3.1%) 200(1.6%) for-loop ...tlock/herbie/src/core/ematch.rkt:65:37 match-e [49] 50.2% ----------------------------------------------------------------------- enode-merge! [59] 100.0% [69] 240(1.9%) 240(1.9%) adopt-enode! ...ock/herbie/src/core/enode.rkt:76:0 ----------------------------------------------------------------------- best-and-tied-at-points [57] 100.0% [70] 220(1.7%) 220(1.7%) loop ...ket/collects/racket/private/list.rkt:264:4 ----------------------------------------------------------------------- matcher [71] 25.0% for-loop [77] 25.0% for-loop [60] 50.0% [71] 220(1.7%) 0(0.0%) matcher ...tlock/herbie/src/core/matcher.rkt:159:2 for-loop [77] 25.0% rewriter [53] 25.0% matcher [71] 25.0% for-loop [76] 25.0% ----------------------------------------------------------------------- best-and-tied-at-points [57] 100.0% [72] 216(1.7%) 0(0.0%) errors /home/ztatlock/herbie/src/points.rkt:144:0 for-loop [78] 100.0% ----------------------------------------------------------------------- best-and-tied-at-points [57] 100.0% [73] 202(1.6%) 202(1.6%) for-loop ...k/herbie/src/core/alt-table.rkt:124:16 ----------------------------------------------------------------------- jloop [5] 27.7% loop [66] 72.3% [74] 1464(11.5%) 0(0.0%) ??? /home/ztatlock/herbie/src/points.rkt:52:27 eval-prog [80] 100.0% ----------------------------------------------------------------------- simplify [20] 7.1% map [79] 7.1% composed [83] 10.8% parse-loop50 [29] 10.8% f94 [75] 14.2% approximate9 [67] 50.1% [75] 620(4.9%) 220(1.7%) f94 ...t/collects/racket/match/compiler.rkt:499:40 map [79] 46.5% f94 [75] 14.2% taylor-sqrt [88] 10.8% composed [83] 10.8% append-map [82] 10.8% ----------------------------------------------------------------------- matcher [71] 100.0% [76] 220(1.7%) 0(0.0%) for-loop ...lock/herbie/src/core/matcher.rkt:151:6 pattern-substitute [81] 100.0% ----------------------------------------------------------------------- matcher [71] 100.0% [77] 220(1.7%) 0(0.0%) for-loop ...ock/herbie/src/core/matcher.rkt:175:21 matcher [71] 100.0% ----------------------------------------------------------------------- errors [72] 100.0% [78] 216(1.7%) 0(0.0%) for-loop ...e/ztatlock/herbie/src/points.rkt:147:4 ->flonum [87] 100.0% ----------------------------------------------------------------------- f94 [75] 7.5% make-exacts* [65] 27.6% loop [64] 64.9% [79] 5578(43.6%) 0(0.0%) map ...acket/collects/racket/private/map.rkt:21:13 loop [84] 89.0% ??? [85] 3.6% ??? [86] 3.5% f94 [75] 2.0% taylor-invert [6] 2.0% ----------------------------------------------------------------------- loop [55] 19.2% ??? [74] 80.8% [80] 1812(14.2%) 1464(11.5%) eval-prog ...tatlock/herbie/src/programs.rkt:162:0 hash-ref! [90] 19.2% ----------------------------------------------------------------------- for-loop [76] 100.0% [81] 220(1.7%) 220(1.7%) pattern-substitute ...ie/src/core/matcher.rkt:72:0 ----------------------------------------------------------------------- f94 [75] 100.0% [82] 200(1.6%) 200(1.6%) append-map ...acket/collects/racket/list.rkt:565:2 ----------------------------------------------------------------------- f94 [75] 100.0% [83] 200(1.6%) 0(0.0%) composed ...ollects/racket/private/list.rkt:321:16 f94 [75] 100.0% ----------------------------------------------------------------------- make-exacts* [65] 0.1% map [79] 0.8% extract-alt [22] 1.0% ??? [4] 2.6% loop [84] 95.5% [84] 7400(57.9%) 0(0.0%) loop ...cket/collects/racket/private/map.rkt:26:19 loop [84] 95.5% hash-ref! [90] 2.6% simplify [3] 1.0% ??? [86] 0.4% ->flonum [87] 0.4% ----------------------------------------------------------------------- map [79] 100.0% [85] 200(1.6%) 0(0.0%) ??? ...ket/collects/racket/private/list.rkt:323:18 taylor-sqrt [88] 100.0% ----------------------------------------------------------------------- map [79] 3.0% loop [84] 97.0% [86] 6622(51.8%) 1028(8.0%) ??? /home/ztatlock/herbie/src/programs.rkt:168:4 ??? [89] 71.8% real->bigfloat [91] 10.3% ??? [100] 2.4% ----------------------------------------------------------------------- for-loop [78] 27.7% loop [84] 72.3% [87] 780(6.1%) 0(0.0%) ->flonum ...ock/herbie/src/syntax/syntax.rkt:224:0 ??? [92] 75.1% ??? [102] 24.9% ----------------------------------------------------------------------- ??? [85] 50.0% f94 [75] 50.0% [88] 400(3.1%) 0(0.0%) taylor-sqrt ...ck/herbie/src/core/taylor.rkt:346:0 hash-ref! [90] 50.0% simplify [20] 50.0% ----------------------------------------------------------------------- ??? [86] 100.0% [89] 4754(37.2%) 488(3.8%) ??? ...acket/collects/racket/private/kw.rkt:400:14 ??? [93] 73.5% ...higher-order.rkt:373:33 [94] 16.2% ----------------------------------------------------------------------- compile [61] 7.2% for-loop [16] 8.7% for-loop [15] 8.7% taylor-sqrt [88] 8.7% loop [84] 12.4% ??? [4] 21.5% eval-prog [80] 32.9% [90] 768(6.0%) 220(1.7%) hash-ref! ...racket/private/more-scheme.rkt:373:13 ??? [4] 33.9% bigfloat-hash [95] 32.9% ??? [8] 8.7% ??? [7] 8.7% simplify [20] 8.7% ----------------------------------------------------------------------- ??? [86] 100.0% [91] 684(5.4%) 502(3.9%) real->bigfloat .../private/bigfloat/mpfr.rkt:451:0 ??? [101] 26.6% ----------------------------------------------------------------------- ->flonum [87] 100.0% [92] 586(4.6%) 586(4.6%) ??? /home/ztatlock/herbie/src/config.rkt:29:0 ----------------------------------------------------------------------- ??? [89] 100.0% [93] 3494(27.3%) 364(2.8%) ??? ...-racket/utils/simple-result-arrow.rkt:26:12 bfadd [96] 49.6% bfsqrt [97] 35.0% ??? [102] 5.0% ----------------------------------------------------------------------- ??? [89] 100.0% [94] 772(6.0%) 0(0.0%) ...higher-order.rkt:373:33 (unknown source) ??? [98] 79.0% ??? [100] 21.0% ----------------------------------------------------------------------- hash-ref! [90] 100.0% [95] 348(2.7%) 0(0.0%) bigfloat-hash ...h/private/bigfloat/mpfr.rkt:165:0 bfcanonicalize [99] 100.0% ----------------------------------------------------------------------- ??? [93] 100.0% [96] 1734(13.6%) 1542(12.1%) bfadd ...-lib/math/private/bigfloat/mpfr.rkt:819:4 ??? [101] 11.1% ----------------------------------------------------------------------- ??? [93] 100.0% [97] 1222(9.6%) 680(5.3%) bfsqrt ...lib/math/private/bigfloat/mpfr.rkt:616:4 ??? [101] 44.4% ----------------------------------------------------------------------- ...higher-order.rkt:373:33 [94]100.0% [98] 610(4.8%) 0(0.0%) ??? ...cts/racket/contract/private/list.rkt:187:10 ??? [100] 100.0% ----------------------------------------------------------------------- bigfloat-hash [95] 100.0% [99] 348(2.7%) 348(2.7%) bfcanonicalize .../private/bigfloat/mpfr.rkt:155:0 ----------------------------------------------------------------------- ??? [86] 16.8% ...higher-order.rkt:373:33 [94] 17.5% ??? [98] 65.7% [100] 928(7.3%) 176(1.4%) ??? ...ects/racket/contract/private/guts.rkt:638:8 ??? [102] 81.0% ----------------------------------------------------------------------- real->bigfloat [91] 19.9% bfadd [96] 21.0% bfsqrt [97] 59.2% [101] 916(7.2%) 916(7.2%) ??? .../share/racket/collects/ffi/unsafe.rkt:861:4 ----------------------------------------------------------------------- ??? [93] 15.5% ->flonum [87] 17.3% ??? [100] 67.1% [102] 1120(8.8%) 466(3.6%) ??? ...tract/private/arrow-higher-order.rkt:373:33 ??? [103] 58.4% ----------------------------------------------------------------------- ??? [102] 100.0% [103] 654(5.1%) 336(2.6%) ??? ...llects/racket/contract/combinator.rkt:178:4 any-wrap/traverse [104] 48.6% ----------------------------------------------------------------------- ??? [103] 100.0% [104] 318(2.5%) 318(2.5%) any-wrap/traverse ...cket/utils/any-wrap.rkt:106:2 -----------------------------------------------------------------------