Skip to content

Commit

Permalink
fix: ensure non-zero UInt64 values that are explicitly converted to b…
Browse files Browse the repository at this point in the history
…ool are handled correctly (issue #194)
  • Loading branch information
achidlow committed Aug 6, 2024
1 parent 234bd9b commit faf3ea4
Show file tree
Hide file tree
Showing 390 changed files with 11,605 additions and 10,133 deletions.
62 changes: 31 additions & 31 deletions examples/sizes.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Name O0 size O1 size O1 ⏷ O2 size O2 ⏷
abi_routing/MinimumARC4 55 43 12 43 0
abi_routing/Reference 1241 1072 169 1072 0
abi_routing/Reference 1247 1072 175 1072 0
amm/ConstantProductAMM 1230 1098 132 1098 0
application/Reference 176 168 8 168 0
application/Reference 180 168 12 168 0
arc4_dynamic_arrays/DynamicArray 2976 1959 1017 1959 0
arc4_numeric_comparisons/UIntNOrdering 1118 908 210 908 0
arc4_types/Arc4Address 91 62 29 62 0
arc4_types/Arc4Arrays 670 376 294 376 0
arc4_types/Arc4BoolEval 761 14 747 14 0
arc4_types/Arc4BoolType 412 76 336 76 0
arc4_types/Arc4DynamicBytes 389 190 199 190 0
arc4_types/Arc4BoolType 414 76 338 76 0
arc4_types/Arc4DynamicBytes 393 190 203 190 0
arc4_types/Arc4DynamicStringArray 285 112 173 112 0
arc4_types/Arc4MutableParams 501 295 206 292 3
arc4_types/Arc4Mutation 3254 1462 1792 1462 0
arc4_types/Arc4NumericTypes 767 201 566 201 0
arc4_types/Arc4NumericTypes 773 201 572 201 0
arc4_types/Arc4RefTypes 94 47 47 47 0
arc4_types/Arc4StringTypes 469 35 434 35 0
arc4_types/Arc4StringTypes 472 35 437 35 0
arc4_types/Arc4StructsFromAnotherModule 73 12 61 12 0
arc4_types/Arc4StructsType 318 239 79 239 0
arc4_types/Arc4TuplesType 886 138 748 138 0
Expand All @@ -25,7 +25,7 @@
augmented_assignment/Augmented 159 156 3 156 0
avm_types_in_abi/Test 402 336 66 336 0
biguint_binary_ops/BiguintBinaryOps 154 8 146 8 0
boolean_binary_ops/BooleanBinaryOps 350 292 58 292 0
boolean_binary_ops/BooleanBinaryOps 356 292 64 292 0
box_storage/Box 1802 1431 371 1431 0
bytes_ops/BiguintBinaryOps 139 139 0 139 0
calculator 349 317 32 315 2
Expand All @@ -40,13 +40,13 @@
compile/LargeProgram 4213 4196 17 4196 0
compile/always_approve_sig 4 4 0 4 0
conditional_execution/ConditionalExecution 368 348 20 348 0
conditional_expressions 225 185 40 185 0
conditional_expressions/Literals 127 114 13 114 0
conditional_expressions 237 185 52 185 0
conditional_expressions/Literals 129 116 13 116 0
constants/AddressConstant 70 47 23 47 0
constants/ByteConstants 92 76 16 76 0
contains 158 160 -2 160 0
control_op_simplification 48 44 4 38 6
dup2_optimization_bug 26 22 4 22 0
dup2_optimization_bug 30 22 8 22 0
edverify/Verify 43 37 6 37 0
enumeration/Enumeration 523 479 44 479 0
everything 495 445 50 445 0
Expand All @@ -57,7 +57,7 @@
inheritance/GrandParent 51 51 0 51 0
inheritance/GreatGrandParent 51 51 0 51 0
inheritance/Parent 89 89 0 89 0
inner_transactions 1257 1191 66 1191 0
inner_transactions 1261 1191 70 1191 0
inner_transactions/ArrayAccess 214 195 19 195 0
inner_transactions/CreateAndTransfer 139 123 16 123 0
inner_transactions/FieldTuple 653 537 116 537 0
Expand All @@ -69,11 +69,11 @@
iteration/TupleIterationTest 552 485 67 485 0
iteration/URangeIterationTest 1034 651 383 651 0
koopman 16 9 7 9 0
less_simple 169 148 21 148 0
less_simple 171 148 23 148 0
literals/LiteralFolding 318 149 169 149 0
local_state/LocalState 371 360 11 348 12
local_state/LocalStateWithOffsets 323 309 14 297 12
log 175 167 8 167 0
log 183 167 16 167 0
logic_signature/always_allow 4 4 0 4 0
logic_signature/pre_approved_sale 162 162 0 162 0
loop_else/LoopElse 322 230 92 230 0
Expand All @@ -82,37 +82,37 @@
merkle/MerkleTree 206 197 9 197 0
module_consts 52 50 2 50 0
nested_loops/Nested 217 200 17 200 0
regression_tests/Issue118 148 100 48 100 0
regression_tests/Issue194 27 12 15 12 0
reinterpret_cast 127 109 18 109 0
regression_tests/Issue118 150 104 46 104 0
regression_tests/Issue194 35 22 13 22 0
reinterpret_cast 129 109 20 109 0
scratch_slots 105 94 11 94 0
scratch_slots/2 105 94 11 94 0
scratch_slots/MyOther 8 8 0 8 0
simple 85 29 56 29 0
simple 88 29 59 29 0
simplish/Simplish 760 713 47 714 -1
ssa 291 230 61 230 0
ssa 294 230 64 230 0
ssa2 97 86 11 86 0
state_proxies/StateProxy 112 107 5 107 0
state_proxies/StateProxy 114 107 7 107 0
state_totals 39 27 12 27 0
stress_tests/BruteForceRotationSearch 254 175 79 175 0
string_ops 164 154 10 154 0
struct_in_box/Example 220 194 26 194 0
stubs/BigUInt 218 127 91 127 0
stubs/Bytes 976 282 694 282 0
stubs/String 708 167 541 167 0
stubs/Uint64 327 24 303 24 0
template_variables/TemplateVariables 168 154 14 154 0
tictactoe/TicTacToe 833 680 153 668 12
too_many_permutations 112 106 6 106 0
transaction/Transaction 955 890 65 890 0
stubs/BigUInt 221 127 94 127 0
stubs/Bytes 999 282 717 282 0
stubs/String 713 167 546 167 0
stubs/Uint64 348 24 324 24 0
template_variables/TemplateVariables 170 154 16 154 0
tictactoe/TicTacToe 837 680 157 668 12
too_many_permutations 114 106 8 106 0
transaction/Transaction 1031 890 141 890 0
tuple_support/NestedTuples 993 658 335 658 0
tuple_support/TupleComparisons 136 75 61 75 0
tuple_support/TupleSupport 693 423 270 423 0
tuple_support/TupleSupport 696 423 273 423 0
typed_abi_call/Greeter 2852 2437 415 2437 0
typed_abi_call/Logger 885 751 134 751 0
unary/Unary 128 81 47 81 0
unary/Unary 130 81 49 81 0
unassigned_expression/Unassigned 132 114 18 114 0
undefined_phi_args/Baddie 324 284 40 284 0
unssa/UnSSA 445 369 76 369 0
voting/VotingRoundApp 1621 1474 147 1474 0
unssa/UnSSA 449 369 80 369 0
voting/VotingRoundApp 1623 1474 149 1474 0
with_reentrancy/WithReentrancy 273 242 31 242 0
Loading

0 comments on commit faf3ea4

Please sign in to comment.