### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. Original: { print 2 * g1, tbl_c_of_c[2]; print benign(4); print 2 * g1, tbl_c_of_c[2]; print safe_bif(); print 2 * g1, tbl_c_of_c[2]; print dangerous_bif(); print 2 * g1, tbl_c_of_c[2]; print 2 * g1, tbl_c_of_c[2]; } <...>/AST-side-effects.zeek, lines 90-106 Transformed: { ::#0 = 2 * g1; ::#1 = tbl_c_of_c[2]; print ::#0, ::#1; ::#2 = benign(4); print ::#2; ::#3 = 2 * g1; ::#4 = tbl_c_of_c[2]; print ::#3, ::#4; ::#5 = safe_bif(); print ::#5; ::#6 = 2 * g1; ::#7 = tbl_c_of_c[2]; print ::#6, ::#7; ::#8 = dangerous_bif(); print ::#8; ::#9 = 2 * g1; ::#10 = tbl_c_of_c[2]; print ::#9, ::#10; ::#11 = 2 * g1; ::#12 = tbl_c_of_c[2]; print ::#11, ::#12; } <...>/AST-side-effects.zeek, lines 90-106 Optimized: { ::#0 = 2 * g1; ::#1 = tbl_c_of_c[2]; print ::#0, ::#1; ::#2 = benign(4); print ::#2; print ::#0, ::#1; ::#5 = safe_bif(); print ::#5; print ::#0, ::#1; ::#8 = dangerous_bif(); print ::#8; ::#9 = 2 * g1; ::#10 = tbl_c_of_c[2]; print ::#9, ::#10; print ::#9, ::#10; } <...>/AST-side-effects.zeek, lines 90-106 Post removal of unused: { ::#0 = 2 * g1; ::#1 = tbl_c_of_c[2]; print ::#0, ::#1; ::#2 = benign(4); print ::#2; print ::#0, ::#1; ::#5 = safe_bif(); print ::#5; print ::#0, ::#1; ::#8 = dangerous_bif(); print ::#8; ::#9 = 2 * g1; ::#10 = tbl_c_of_c[2]; print ::#9, ::#10; print ::#9, ::#10; } <...>/AST-side-effects.zeek, lines 90-106 Original: { print 2 * g1, 3 * g2, tbl_c_of_c[2]; print tbl_addr_of_count[1.2.3.4]; print 2 * g1, 3 * g2, tbl_c_of_c[2]; print tbl_addr_of_count[127.0.0.1]; print 2 * g1, 3 * g2, tbl_c_of_c[2]; } <...>/AST-side-effects.zeek, lines 119-128 Transformed: { ::#0 = 2 * g1; ::#1 = 3 * g2; ::#2 = tbl_c_of_c[2]; print ::#0, ::#1, ::#2; ::#3 = tbl_addr_of_count[1.2.3.4]; print ::#3; ::#4 = 2 * g1; ::#5 = 3 * g2; ::#6 = tbl_c_of_c[2]; print ::#4, ::#5, ::#6; ::#7 = tbl_addr_of_count[127.0.0.1]; print ::#7; ::#8 = 2 * g1; ::#9 = 3 * g2; ::#10 = tbl_c_of_c[2]; print ::#8, ::#9, ::#10; } <...>/AST-side-effects.zeek, lines 119-128 Optimized: { ::#0 = 2 * g1; ::#1 = 3 * g2; ::#2 = tbl_c_of_c[2]; print ::#0, ::#1, ::#2; ::#3 = tbl_addr_of_count[1.2.3.4]; print ::#3; ::#4 = 2 * g1; print ::#4, ::#1, ::#2; ::#7 = tbl_addr_of_count[127.0.0.1]; print ::#7; ::#8 = 2 * g1; print ::#8, ::#1, ::#2; } <...>/AST-side-effects.zeek, lines 119-128 Post removal of unused: { ::#0 = 2 * g1; ::#1 = 3 * g2; ::#2 = tbl_c_of_c[2]; print ::#0, ::#1, ::#2; ::#3 = tbl_addr_of_count[1.2.3.4]; print ::#3; ::#4 = 2 * g1; print ::#4, ::#1, ::#2; ::#7 = tbl_addr_of_count[127.0.0.1]; print ::#7; ::#8 = 2 * g1; print ::#8, ::#1, ::#2; } <...>/AST-side-effects.zeek, lines 119-128 Original: { print tbl_c_of_c[2]; print tbl_c_of_c[2]; tcc_mod[F] = 33; print tbl_c_of_c[2]; print tbl_c_of_c[2]; mess_is_active = T; tcc_mod[T] = 66; print tbl_c_of_c[2]; print tbl_c_of_c[2]; } <...>/AST-side-effects.zeek, lines 153-170 Transformed: { ::#0 = tbl_c_of_c[2]; print ::#0; ::#1 = tbl_c_of_c[2]; print ::#1; tcc_mod[F] []= 33; ::#2 = tbl_c_of_c[2]; print ::#2; ::#3 = tbl_c_of_c[2]; print ::#3; mess_is_active = T; tcc_mod[T] []= 66; ::#4 = tbl_c_of_c[2]; print ::#4; ::#5 = tbl_c_of_c[2]; print ::#5; } <...>/AST-side-effects.zeek, lines 153-170 Optimized: { ::#0 = tbl_c_of_c[2]; print ::#0; print ::#0; tcc_mod[F] []= 33; ::#2 = tbl_c_of_c[2]; print ::#2; print ::#2; mess_is_active = T; tcc_mod[T] []= 66; ::#4 = tbl_c_of_c[2]; print ::#4; print ::#4; } <...>/AST-side-effects.zeek, lines 153-170 Post removal of unused: { ::#0 = tbl_c_of_c[2]; print ::#0; print ::#0; tcc_mod[F] []= 33; ::#2 = tbl_c_of_c[2]; print ::#2; print ::#2; mess_is_active = T; tcc_mod[T] []= 66; ::#4 = tbl_c_of_c[2]; print ::#4; print ::#4; } <...>/AST-side-effects.zeek, lines 153-170 Original: { print 2 * g1, tbl_c_of_c[2], tbl_c_of_c2[1], tbl_c_of_c2[10]; print 2 * g1, tbl_c_of_c[2], tbl_c_of_c2[1], tbl_c_of_c2[10]; local_tbl_c_of_c3 = table(4 = 1, 12 = 0)&default=function(c:count) : count{ return (benign(c + 7) - 2); }, &optional; print local_tbl_c_of_c3[12]; print 2 * g1, tbl_c_of_c[2], tbl_c_of_c2[1], local_tbl_c_of_c3[12]; print local_tbl_c_of_c3[10]; print 2 * g1, tbl_c_of_c[2], tbl_c_of_c2[1], local_tbl_c_of_c3[10]; print 2 * g1, tbl_c_of_c[2], tbl_c_of_c2[1], local_tbl_c_of_c3[10]; print dangerous_bif(); print 2 * g1, tbl_c_of_c[2], tbl_c_of_c2[1], local_tbl_c_of_c3[12]; print 2 * g1, tbl_c_of_c[2], tbl_c_of_c2[1], local_tbl_c_of_c3[12], local_tbl_c_of_c3[10]; } <...>/AST-side-effects.zeek, lines 178-204 Transformed: { ::#0 = 2 * g1; ::#1 = tbl_c_of_c[2]; ::#2 = tbl_c_of_c2[1]; ::#3 = tbl_c_of_c2[10]; print ::#0, ::#1, ::#2, ::#3; ::#4 = 2 * g1; ::#5 = tbl_c_of_c[2]; ::#6 = tbl_c_of_c2[1]; ::#7 = tbl_c_of_c2[10]; print ::#4, ::#5, ::#6, ::#7; local_tbl_c_of_c3 = table(4 = 1, 12 = 0)&default=function(c:count) : count{ return (benign(c + 7) - 2); }, &optional; ::#8 = local_tbl_c_of_c3[12]; print ::#8; ::#9 = 2 * g1; ::#10 = tbl_c_of_c[2]; ::#11 = tbl_c_of_c2[1]; ::#12 = local_tbl_c_of_c3[12]; print ::#9, ::#10, ::#11, ::#12; ::#13 = local_tbl_c_of_c3[10]; print ::#13; ::#14 = 2 * g1; ::#15 = tbl_c_of_c[2]; ::#16 = tbl_c_of_c2[1]; ::#17 = local_tbl_c_of_c3[10]; print ::#14, ::#15, ::#16, ::#17; ::#18 = 2 * g1; ::#19 = tbl_c_of_c[2]; ::#20 = tbl_c_of_c2[1]; ::#21 = local_tbl_c_of_c3[10]; print ::#18, ::#19, ::#20, ::#21; ::#22 = dangerous_bif(); print ::#22; ::#23 = 2 * g1; ::#24 = tbl_c_of_c[2]; ::#25 = tbl_c_of_c2[1]; ::#26 = local_tbl_c_of_c3[12]; print ::#23, ::#24, ::#25, ::#26; ::#27 = 2 * g1; ::#28 = tbl_c_of_c[2]; ::#29 = tbl_c_of_c2[1]; ::#30 = local_tbl_c_of_c3[12]; ::#31 = local_tbl_c_of_c3[10]; print ::#27, ::#28, ::#29, ::#30, ::#31; } <...>/AST-side-effects.zeek, lines 178-204 Optimized: { ::#0 = 2 * g1; ::#1 = tbl_c_of_c[2]; ::#2 = tbl_c_of_c2[1]; ::#3 = tbl_c_of_c2[10]; print ::#0, ::#1, ::#2, ::#3; print ::#0, ::#1, ::#2, ::#3; local_tbl_c_of_c3 = table(4 = 1, 12 = 0)&default=function(c:count) : count{ return (benign(c + 7) - 2); }, &optional; ::#8 = local_tbl_c_of_c3[12]; print ::#8; print ::#0, ::#1, ::#2, ::#8; ::#13 = local_tbl_c_of_c3[10]; print ::#13; print ::#0, ::#1, ::#2, ::#13; print ::#0, ::#1, ::#2, ::#13; ::#22 = dangerous_bif(); print ::#22; ::#23 = 2 * g1; ::#24 = tbl_c_of_c[2]; ::#25 = tbl_c_of_c2[1]; ::#26 = local_tbl_c_of_c3[12]; print ::#23, ::#24, ::#25, ::#26; ::#31 = local_tbl_c_of_c3[10]; print ::#23, ::#24, ::#25, ::#26, ::#31; } <...>/AST-side-effects.zeek, lines 178-204 Post removal of unused: { ::#0 = 2 * g1; ::#1 = tbl_c_of_c[2]; ::#2 = tbl_c_of_c2[1]; ::#3 = tbl_c_of_c2[10]; print ::#0, ::#1, ::#2, ::#3; print ::#0, ::#1, ::#2, ::#3; local_tbl_c_of_c3 = table(4 = 1, 12 = 0)&default=function(c:count) : count{ return (benign(c + 7) - 2); }, &optional; ::#8 = local_tbl_c_of_c3[12]; print ::#8; print ::#0, ::#1, ::#2, ::#8; ::#13 = local_tbl_c_of_c3[10]; print ::#13; print ::#0, ::#1, ::#2, ::#13; print ::#0, ::#1, ::#2, ::#13; ::#22 = dangerous_bif(); print ::#22; ::#23 = 2 * g1; ::#24 = tbl_c_of_c[2]; ::#25 = tbl_c_of_c2[1]; ::#26 = local_tbl_c_of_c3[12]; print ::#23, ::#24, ::#25, ::#26; ::#31 = local_tbl_c_of_c3[10]; print ::#23, ::#24, ::#25, ::#26, ::#31; } <...>/AST-side-effects.zeek, lines 178-204 Original: { side_effect_free = table(0 = 0.5, 1 = 1.5); print side_effect_free[1]; print side_effect_free[1]; has_side_effects = table(0 = -0.5, 1 = -1.5)&default_insert=function(c:count) : double{ my_exponential = my_exponential * my_exponential; return (my_exponential); }; print side_effect_free[1], has_side_effects[2]; print side_effect_free[1], has_side_effects[2]; } <...>/AST-side-effects.zeek, lines 213-238 Transformed: { side_effect_free = table(0 = 0.5, 1 = 1.5); ::#0 = side_effect_free[1]; print ::#0; ::#1 = side_effect_free[1]; print ::#1; has_side_effects = table(0 = -0.5, 1 = -1.5)&default_insert=function(c:count) : double{ my_exponential = my_exponential * my_exponential; return (my_exponential); }; ::#2 = side_effect_free[1]; ::#3 = has_side_effects[2]; print ::#2, ::#3; ::#4 = side_effect_free[1]; ::#5 = has_side_effects[2]; print ::#4, ::#5; } <...>/AST-side-effects.zeek, lines 213-238 Optimized: { side_effect_free = table(0 = 0.5, 1 = 1.5); ::#0 = side_effect_free[1]; print ::#0; ::#1 = side_effect_free[1]; print ::#1; has_side_effects = table(0 = -0.5, 1 = -1.5)&default_insert=function(c:count) : double{ my_exponential = my_exponential * my_exponential; return (my_exponential); }; ::#2 = side_effect_free[1]; ::#3 = has_side_effects[2]; print ::#2, ::#3; ::#4 = side_effect_free[1]; ::#5 = has_side_effects[2]; print ::#4, ::#5; } <...>/AST-side-effects.zeek, lines 213-238 Post removal of unused: { side_effect_free = table(0 = 0.5, 1 = 1.5); ::#0 = side_effect_free[1]; print ::#0; ::#1 = side_effect_free[1]; print ::#1; has_side_effects = table(0 = -0.5, 1 = -1.5)&default_insert=function(c:count) : double{ my_exponential = my_exponential * my_exponential; return (my_exponential); }; ::#2 = side_effect_free[1]; ::#3 = has_side_effects[2]; print ::#2, ::#3; ::#4 = side_effect_free[1]; ::#5 = has_side_effects[2]; print ::#4, ::#5; } <...>/AST-side-effects.zeek, lines 213-238 Original: { print 2 * g1, tbl_c_of_c[2], tbl_c_of_c2[1], tbl_c_of_b[100], tbl_s_of_s[4]; print 2 * g1, tbl_c_of_c[2], tbl_c_of_c2[1], tbl_c_of_b[100], tbl_s_of_s[4]; print table(11 = F)&default=function(c:count) : bool{ tbl_s_of_s2[2] = two; return (sizeof tbl_s_of_s2 < 9); }, &optional; } <...>/AST-side-effects.zeek, lines 247-261 Transformed: { ::#0 = 2 * g1; ::#1 = tbl_c_of_c[2]; ::#2 = tbl_c_of_c2[1]; ::#3 = tbl_c_of_b[100]; ::#4 = tbl_s_of_s[4]; print ::#0, ::#1, ::#2, ::#3, ::#4; ::#5 = 2 * g1; ::#6 = tbl_c_of_c[2]; ::#7 = tbl_c_of_c2[1]; ::#8 = tbl_c_of_b[100]; ::#9 = tbl_s_of_s[4]; print ::#5, ::#6, ::#7, ::#8, ::#9; ::#10 = table(11 = F)&default=function(c:count) : bool{ tbl_s_of_s2[2] = two; return (sizeof tbl_s_of_s2 < 9); }, &optional; print ::#10; } <...>/AST-side-effects.zeek, lines 247-261 Optimized: { ::#0 = 2 * g1; ::#1 = tbl_c_of_c[2]; ::#2 = tbl_c_of_c2[1]; ::#3 = tbl_c_of_b[100]; ::#4 = tbl_s_of_s[4]; print ::#0, ::#1, ::#2, ::#3, ::#4; ::#8 = tbl_c_of_b[100]; ::#9 = tbl_s_of_s[4]; print ::#0, ::#1, ::#2, ::#8, ::#9; ::#10 = table(11 = F)&default=function(c:count) : bool{ tbl_s_of_s2[2] = two; return (sizeof tbl_s_of_s2 < 9); }, &optional; print ::#10; } <...>/AST-side-effects.zeek, lines 247-261 Post removal of unused: { ::#0 = 2 * g1; ::#1 = tbl_c_of_c[2]; ::#2 = tbl_c_of_c2[1]; ::#3 = tbl_c_of_b[100]; ::#4 = tbl_s_of_s[4]; print ::#0, ::#1, ::#2, ::#3, ::#4; ::#8 = tbl_c_of_b[100]; ::#9 = tbl_s_of_s[4]; print ::#0, ::#1, ::#2, ::#8, ::#9; ::#10 = table(11 = F)&default=function(c:count) : bool{ tbl_s_of_s2[2] = two; return (sizeof tbl_s_of_s2 < 9); }, &optional; print ::#10; } <...>/AST-side-effects.zeek, lines 247-261 Original: { print tbl_s_of_s[4]; print tbl_s_of_s[4]; force_tbl_c_of_c_str_reload = R1($b=match-on-type-of-tbl_c_of_c); print force_tbl_c_of_c_str_reload; print tbl_s_of_s[4]; print tbl_s_of_s[4]; problem_r2 = R2($b=hello); print tbl_s_of_s[4], problem_r2$b; problem_r3 = R3($b=hello again); print tbl_s_of_s[4], problem_r3$b; } <...>/AST-side-effects.zeek, lines 306-336 Transformed: { ::#0 = tbl_s_of_s[4]; print ::#0; ::#1 = tbl_s_of_s[4]; print ::#1; force_tbl_c_of_c_str_reload = R1($b=match-on-type-of-tbl_c_of_c); print force_tbl_c_of_c_str_reload; ::#2 = tbl_s_of_s[4]; print ::#2; ::#3 = tbl_s_of_s[4]; print ::#3; problem_r2 = R2($b=hello); ::#4 = tbl_s_of_s[4]; ::#5 = problem_r2$b; print ::#4, ::#5; problem_r3 = R3($b=hello again); ::#6 = tbl_s_of_s[4]; ::#7 = problem_r3$b; print ::#6, ::#7; } <...>/AST-side-effects.zeek, lines 306-336 Optimized: { ::#0 = tbl_s_of_s[4]; print ::#0; print ::#0; force_tbl_c_of_c_str_reload = R1($b=match-on-type-of-tbl_c_of_c); print force_tbl_c_of_c_str_reload; ::#2 = tbl_s_of_s[4]; print ::#2; print ::#2; problem_r2 = R2($b=hello); ::#4 = tbl_s_of_s[4]; ::#5 = problem_r2$b; print ::#4, ::#5; problem_r3 = R3($b=hello again); ::#7 = problem_r3$b; print ::#4, ::#7; } <...>/AST-side-effects.zeek, lines 306-336 Post removal of unused: { ::#0 = tbl_s_of_s[4]; print ::#0; print ::#0; force_tbl_c_of_c_str_reload = R1($b=match-on-type-of-tbl_c_of_c); print force_tbl_c_of_c_str_reload; ::#2 = tbl_s_of_s[4]; print ::#2; print ::#2; problem_r2 = R2($b=hello); ::#4 = tbl_s_of_s[4]; ::#5 = problem_r2$b; print ::#4, ::#5; problem_r3 = R3($b=hello again); ::#7 = problem_r3$b; print ::#4, ::#7; } <...>/AST-side-effects.zeek, lines 306-336 Original: { print 5 * g2; print 5 * g2; l1 = table(1, 3 = 4, 2, 5 = 6)&default=function(i1:count, i2:count) : count{ my_tbl = table(1.0, 3.0 = 10000.0); return (double_to_count(my_tbl[1.0, 3.0])); }, &optional; l2 = table(1.0, 3.0 = 4.0, 2.0, 5.0 = 6.0)&default=function(d1:double, d2:double) : double{ my_tbl = table(1, 3 = 1000); return ((coerce my_tbl[1, 3] to double)); }, &optional; print 5 * g2; print 5 * g2; print l1[3, 8]; print 5 * g2; print 5 * g2; print l2[2.0, 5.0]; print 5 * g2; print 5 * g2; } <...>/AST-side-effects.zeek, lines 341-390 Transformed: { ::#0 = 5 * g2; print ::#0; ::#1 = 5 * g2; print ::#1; l1 = table(1, 3 = 4, 2, 5 = 6)&default=function(i1:count, i2:count) : count{ my_tbl = table(1.0, 3.0 = 10000.0); return (double_to_count(my_tbl[1.0, 3.0])); }, &optional; l2 = table(1.0, 3.0 = 4.0, 2.0, 5.0 = 6.0)&default=function(d1:double, d2:double) : double{ my_tbl = table(1, 3 = 1000); return ((coerce my_tbl[1, 3] to double)); }, &optional; ::#2 = 5 * g2; print ::#2; ::#3 = 5 * g2; print ::#3; ::#4 = l1[3, 8]; print ::#4; ::#5 = 5 * g2; print ::#5; ::#6 = 5 * g2; print ::#6; ::#7 = l2[2.0, 5.0]; print ::#7; ::#8 = 5 * g2; print ::#8; ::#9 = 5 * g2; print ::#9; } <...>/AST-side-effects.zeek, lines 341-390 Optimized: { ::#0 = 5 * g2; print ::#0; print ::#0; l1 = table(1, 3 = 4, 2, 5 = 6)&default=function(i1:count, i2:count) : count{ my_tbl = table(1.0, 3.0 = 10000.0); return (double_to_count(my_tbl[1.0, 3.0])); }, &optional; l2 = table(1.0, 3.0 = 4.0, 2.0, 5.0 = 6.0)&default=function(d1:double, d2:double) : double{ my_tbl = table(1, 3 = 1000); return ((coerce my_tbl[1, 3] to double)); }, &optional; print ::#0; print ::#0; ::#4 = l1[3, 8]; print ::#4; ::#5 = 5 * g2; print ::#5; print ::#5; ::#7 = l2[2.0, 5.0]; print ::#7; ::#8 = 5 * g2; print ::#8; print ::#8; } <...>/AST-side-effects.zeek, lines 341-390 Post removal of unused: { ::#0 = 5 * g2; print ::#0; print ::#0; l1 = table(1, 3 = 4, 2, 5 = 6)&default=function(i1:count, i2:count) : count{ my_tbl = table(1.0, 3.0 = 10000.0); return (double_to_count(my_tbl[1.0, 3.0])); }, &optional; l2 = table(1.0, 3.0 = 4.0, 2.0, 5.0 = 6.0)&default=function(d1:double, d2:double) : double{ my_tbl = table(1, 3 = 1000); return ((coerce my_tbl[1, 3] to double)); }, &optional; print ::#0; print ::#0; ::#4 = l1[3, 8]; print ::#4; ::#5 = 5 * g2; print ::#5; print ::#5; ::#7 = l2[2.0, 5.0]; print ::#7; ::#8 = 5 * g2; print ::#8; print ::#8; } <...>/AST-side-effects.zeek, lines 341-390 8, 3 7 8, 3 28 8, 3 3 8, 456 8, 456 8, 132, 456 1001 8, 132, 456 5 10, 132, 456 456 456 456 456 999 999 10, 999, 4, 13 10, 999, 4, 13 0 10, 999, 4, 0 18 10, 999, 4, 18 10, 999, 4, 18 999 10, 456, 4, 0 10, 456, 4, 0, 18 1.5 1.5 1.5, 4.0 1.5, 4.0 10, 456, 4, F, 8 10, 456, 4, F, 8 { [11] = F } 8 8 [a=3, b=match-on-type-of-tbl_c_of_c] 8 8 8, hello 8, hello again 220 220 220 220 10000 220 220 6.0 220 220