diff --git a/examples/global_state/out/AppStateContract.destructured.ir b/examples/global_state/out/AppStateContract.destructured.ir index f471e14379..ced7a14790 100644 --- a/examples/global_state/out/AppStateContract.destructured.ir +++ b/examples/global_state/out/AppStateContract.destructured.ir @@ -12,17 +12,17 @@ contract examples.global_state.contract.AppStateContract: (assert global_int_simplified_exists%0#0) // check global_int_simplified exists let tmp%0#0: uint64 = (== global_int_simplified_value%0#0 33u) (assert tmp%0#0) - let (global_int_full_exists%0#0: any, global_int_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_full") + let (global_int_full_exists%0#0: uint64, global_int_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_full") (assert global_int_full_exists%1#0) let (global_int_full_value%0#0: uint64, global_int_full_exists%2#0: uint64) = (app_global_get_ex 0u "global_int_full") (assert global_int_full_exists%2#0) // check global_int_full exists let tmp%1#0: uint64 = (== global_int_full_value%0#0 55u) (assert tmp%1#0) - let (global_int_no_default_exists%0#0: any, global_int_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_no_default") + let (global_int_no_default_exists%0#0: uint64, global_int_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_no_default") let tmp%2#0: uint64 = (! global_int_no_default_exists%1#0) (assert tmp%2#0) (app_global_put "global_int_no_default" 44u) - let (i_value#0: any, i_exists#0: uint64) = (app_global_get_ex 0u "global_int_no_default") + let (i_value#0: uint64, i_exists#0: uint64) = (app_global_get_ex 0u "global_int_no_default") (assert i_exists#0) let tmp%3#0: uint64 = (== i_value#0 44u) (assert tmp%3#0) @@ -30,35 +30,35 @@ contract examples.global_state.contract.AppStateContract: (assert global_bytes_simplified_exists%0#0) // check global_bytes_simplified exists let tmp%4#0: uint64 = (== global_bytes_simplified_value%0#0 "Hello") (assert tmp%4#0) - let (global_bytes_full_exists%0#0: any, global_bytes_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") + let (global_bytes_full_exists%0#0: bytes, global_bytes_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") (assert global_bytes_full_exists%1#0) let (global_bytes_full_value%0#0: bytes, global_bytes_full_exists%2#0: uint64) = (app_global_get_ex 0u "global_bytes_full") (assert global_bytes_full_exists%2#0) // check global_bytes_full exists let tmp%5#0: uint64 = (== global_bytes_full_value%0#0 "Hello") (assert tmp%5#0) - let (global_bytes_full_get_ex%0#0: any, global_bytes_full_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") - let tmp%6#0: any = (select "default" global_bytes_full_get_ex%0#0 global_bytes_full_get_ex%1#0) + let (global_bytes_full_get_ex%0#0: bytes, global_bytes_full_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") + let tmp%6#0: bytes = (select "default" global_bytes_full_get_ex%0#0 global_bytes_full_get_ex%1#0) let tmp%7#0: uint64 = (== tmp%6#0 "Hello") (assert tmp%7#0) - let (global_bytes_no_default_exists%0#0: any, global_bytes_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let (global_bytes_no_default_exists%0#0: bytes, global_bytes_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") let tmp%8#0: uint64 = (! global_bytes_no_default_exists%1#0) (assert tmp%8#0) (app_global_put "global_bytes_no_default" "World") - let (b_value#0: any, b_exists#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let (b_value#0: bytes, b_exists#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") (assert b_exists#0) let tmp%9#0: uint64 = (== b_value#0 "World") (assert tmp%9#0) (app_global_del "global_bytes_no_default") - let (b_value#0: any, b_exists#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let (b_value#0: bytes, b_exists#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") let tmp%10#0: uint64 = (! b_exists#0) (assert tmp%10#0) - let (global_bytes_no_default_get_ex%0#0: any, global_bytes_no_default_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") - let tmp%11#0: any = (select "default" global_bytes_no_default_get_ex%0#0 global_bytes_no_default_get_ex%1#0) + let (global_bytes_no_default_get_ex%0#0: bytes, global_bytes_no_default_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let tmp%11#0: bytes = (select "default" global_bytes_no_default_get_ex%0#0 global_bytes_no_default_get_ex%1#0) let tmp%12#0: uint64 = (== tmp%11#0 "default") (assert tmp%12#0) - let (global_bool_full_exists%0#0: any, global_bool_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_full") + let (global_bool_full_exists%0#0: uint64, global_bool_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_full") (assert global_bool_full_exists%1#0) - let (global_bool_no_default_exists%0#0: any, global_bool_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_no_default") + let (global_bool_no_default_exists%0#0: uint64, global_bool_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_no_default") let tmp%13#0: uint64 = (! global_bool_no_default_exists%1#0) (assert tmp%13#0) (app_global_put "global_bool_no_default" 1u) diff --git a/examples/global_state/out/AppStateContract.ssa.ir b/examples/global_state/out/AppStateContract.ssa.ir index 119239d856..dfba432f0b 100644 --- a/examples/global_state/out/AppStateContract.ssa.ir +++ b/examples/global_state/out/AppStateContract.ssa.ir @@ -12,18 +12,18 @@ contract examples.global_state.contract.AppStateContract: (assert global_int_simplified_exists%0#0) // check global_int_simplified exists let tmp%0#0: uint64 = (== global_int_simplified_value%0#0 33u) (assert tmp%0#0) - let (global_int_full_exists%0#0: any, global_int_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_full") + let (global_int_full_exists%0#0: uint64, global_int_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_full") (assert global_int_full_exists%1#0) let (global_int_full_value%0#0: uint64, global_int_full_exists%2#0: uint64) = (app_global_get_ex 0u "global_int_full") (assert global_int_full_exists%2#0) // check global_int_full exists let tmp%1#0: uint64 = (== global_int_full_value%0#0 55u) (assert tmp%1#0) - let (global_int_no_default_exists%0#0: any, global_int_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_no_default") + let (global_int_no_default_exists%0#0: uint64, global_int_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_no_default") let tmp%2#0: uint64 = (! global_int_no_default_exists%1#0) (assert tmp%2#0) (app_global_put "global_int_no_default" 44u) - let (tuple_assignment%0#0: any, tuple_assignment%1#0: uint64) = (app_global_get_ex 0u "global_int_no_default") - let i_value#0: any = tuple_assignment%0#0 + let (tuple_assignment%0#0: uint64, tuple_assignment%1#0: uint64) = (app_global_get_ex 0u "global_int_no_default") + let i_value#0: uint64 = tuple_assignment%0#0 let i_exists#0: uint64 = tuple_assignment%1#0 (assert i_exists#0) let tmp%3#0: uint64 = (== i_value#0 44u) @@ -32,39 +32,39 @@ contract examples.global_state.contract.AppStateContract: (assert global_bytes_simplified_exists%0#0) // check global_bytes_simplified exists let tmp%4#0: uint64 = (== global_bytes_simplified_value%0#0 "Hello") (assert tmp%4#0) - let (global_bytes_full_exists%0#0: any, global_bytes_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") + let (global_bytes_full_exists%0#0: bytes, global_bytes_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") (assert global_bytes_full_exists%1#0) let (global_bytes_full_value%0#0: bytes, global_bytes_full_exists%2#0: uint64) = (app_global_get_ex 0u "global_bytes_full") (assert global_bytes_full_exists%2#0) // check global_bytes_full exists let tmp%5#0: uint64 = (== global_bytes_full_value%0#0 "Hello") (assert tmp%5#0) - let (global_bytes_full_get_ex%0#0: any, global_bytes_full_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") - let tmp%6#0: any = (select "default" global_bytes_full_get_ex%0#0 global_bytes_full_get_ex%1#0) + let (global_bytes_full_get_ex%0#0: bytes, global_bytes_full_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") + let tmp%6#0: bytes = (select "default" global_bytes_full_get_ex%0#0 global_bytes_full_get_ex%1#0) let tmp%7#0: uint64 = (== tmp%6#0 "Hello") (assert tmp%7#0) - let (global_bytes_no_default_exists%0#0: any, global_bytes_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let (global_bytes_no_default_exists%0#0: bytes, global_bytes_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") let tmp%8#0: uint64 = (! global_bytes_no_default_exists%1#0) (assert tmp%8#0) (app_global_put "global_bytes_no_default" "World") - let (tuple_assignment%2#0: any, tuple_assignment%3#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") - let b_value#0: any = tuple_assignment%2#0 + let (tuple_assignment%2#0: bytes, tuple_assignment%3#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let b_value#0: bytes = tuple_assignment%2#0 let b_exists#0: uint64 = tuple_assignment%3#0 (assert b_exists#0) let tmp%9#0: uint64 = (== b_value#0 "World") (assert tmp%9#0) (app_global_del "global_bytes_no_default") - let (tuple_assignment%4#0: any, tuple_assignment%5#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") - let b_value#1: any = tuple_assignment%4#0 + let (tuple_assignment%4#0: bytes, tuple_assignment%5#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let b_value#1: bytes = tuple_assignment%4#0 let b_exists#1: uint64 = tuple_assignment%5#0 let tmp%10#0: uint64 = (! b_exists#1) (assert tmp%10#0) - let (global_bytes_no_default_get_ex%0#0: any, global_bytes_no_default_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") - let tmp%11#0: any = (select "default" global_bytes_no_default_get_ex%0#0 global_bytes_no_default_get_ex%1#0) + let (global_bytes_no_default_get_ex%0#0: bytes, global_bytes_no_default_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let tmp%11#0: bytes = (select "default" global_bytes_no_default_get_ex%0#0 global_bytes_no_default_get_ex%1#0) let tmp%12#0: uint64 = (== tmp%11#0 "default") (assert tmp%12#0) - let (global_bool_full_exists%0#0: any, global_bool_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_full") + let (global_bool_full_exists%0#0: uint64, global_bool_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_full") (assert global_bool_full_exists%1#0) - let (global_bool_no_default_exists%0#0: any, global_bool_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_no_default") + let (global_bool_no_default_exists%0#0: uint64, global_bool_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_no_default") let tmp%13#0: uint64 = (! global_bool_no_default_exists%1#0) (assert tmp%13#0) (app_global_put "global_bool_no_default" 1u) diff --git a/examples/global_state/out/AppStateContract.ssa.opt_pass_1.ir b/examples/global_state/out/AppStateContract.ssa.opt_pass_1.ir index 1148e8c45a..5e6919f5bc 100644 --- a/examples/global_state/out/AppStateContract.ssa.opt_pass_1.ir +++ b/examples/global_state/out/AppStateContract.ssa.opt_pass_1.ir @@ -12,17 +12,17 @@ contract examples.global_state.contract.AppStateContract: (assert global_int_simplified_exists%0#0) // check global_int_simplified exists let tmp%0#0: uint64 = (== global_int_simplified_value%0#0 33u) (assert tmp%0#0) - let (global_int_full_exists%0#0: any, global_int_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_full") + let (global_int_full_exists%0#0: uint64, global_int_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_full") (assert global_int_full_exists%1#0) let (global_int_full_value%0#0: uint64, global_int_full_exists%2#0: uint64) = (app_global_get_ex 0u "global_int_full") (assert global_int_full_exists%2#0) // check global_int_full exists let tmp%1#0: uint64 = (== global_int_full_value%0#0 55u) (assert tmp%1#0) - let (global_int_no_default_exists%0#0: any, global_int_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_no_default") + let (global_int_no_default_exists%0#0: uint64, global_int_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_no_default") let tmp%2#0: uint64 = (! global_int_no_default_exists%1#0) (assert tmp%2#0) (app_global_put "global_int_no_default" 44u) - let (i_value#0: any, i_exists#0: uint64) = (app_global_get_ex 0u "global_int_no_default") + let (i_value#0: uint64, i_exists#0: uint64) = (app_global_get_ex 0u "global_int_no_default") (assert i_exists#0) let tmp%3#0: uint64 = (== i_value#0 44u) (assert tmp%3#0) @@ -30,35 +30,35 @@ contract examples.global_state.contract.AppStateContract: (assert global_bytes_simplified_exists%0#0) // check global_bytes_simplified exists let tmp%4#0: uint64 = (== global_bytes_simplified_value%0#0 "Hello") (assert tmp%4#0) - let (global_bytes_full_exists%0#0: any, global_bytes_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") + let (global_bytes_full_exists%0#0: bytes, global_bytes_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") (assert global_bytes_full_exists%1#0) let (global_bytes_full_value%0#0: bytes, global_bytes_full_exists%2#0: uint64) = (app_global_get_ex 0u "global_bytes_full") (assert global_bytes_full_exists%2#0) // check global_bytes_full exists let tmp%5#0: uint64 = (== global_bytes_full_value%0#0 "Hello") (assert tmp%5#0) - let (global_bytes_full_get_ex%0#0: any, global_bytes_full_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") - let tmp%6#0: any = (select "default" global_bytes_full_get_ex%0#0 global_bytes_full_get_ex%1#0) + let (global_bytes_full_get_ex%0#0: bytes, global_bytes_full_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") + let tmp%6#0: bytes = (select "default" global_bytes_full_get_ex%0#0 global_bytes_full_get_ex%1#0) let tmp%7#0: uint64 = (== tmp%6#0 "Hello") (assert tmp%7#0) - let (global_bytes_no_default_exists%0#0: any, global_bytes_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let (global_bytes_no_default_exists%0#0: bytes, global_bytes_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") let tmp%8#0: uint64 = (! global_bytes_no_default_exists%1#0) (assert tmp%8#0) (app_global_put "global_bytes_no_default" "World") - let (b_value#0: any, b_exists#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let (b_value#0: bytes, b_exists#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") (assert b_exists#0) let tmp%9#0: uint64 = (== b_value#0 "World") (assert tmp%9#0) (app_global_del "global_bytes_no_default") - let (b_value#1: any, b_exists#1: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let (b_value#1: bytes, b_exists#1: uint64) = (app_global_get_ex 0u "global_bytes_no_default") let tmp%10#0: uint64 = (! b_exists#1) (assert tmp%10#0) - let (global_bytes_no_default_get_ex%0#0: any, global_bytes_no_default_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") - let tmp%11#0: any = (select "default" global_bytes_no_default_get_ex%0#0 global_bytes_no_default_get_ex%1#0) + let (global_bytes_no_default_get_ex%0#0: bytes, global_bytes_no_default_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let tmp%11#0: bytes = (select "default" global_bytes_no_default_get_ex%0#0 global_bytes_no_default_get_ex%1#0) let tmp%12#0: uint64 = (== tmp%11#0 "default") (assert tmp%12#0) - let (global_bool_full_exists%0#0: any, global_bool_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_full") + let (global_bool_full_exists%0#0: uint64, global_bool_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_full") (assert global_bool_full_exists%1#0) - let (global_bool_no_default_exists%0#0: any, global_bool_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_no_default") + let (global_bool_no_default_exists%0#0: uint64, global_bool_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_no_default") let tmp%13#0: uint64 = (! global_bool_no_default_exists%1#0) (assert tmp%13#0) (app_global_put "global_bool_no_default" 1u) diff --git a/examples/global_state/out_O2/AppStateContract.destructured.ir b/examples/global_state/out_O2/AppStateContract.destructured.ir index f471e14379..ced7a14790 100644 --- a/examples/global_state/out_O2/AppStateContract.destructured.ir +++ b/examples/global_state/out_O2/AppStateContract.destructured.ir @@ -12,17 +12,17 @@ contract examples.global_state.contract.AppStateContract: (assert global_int_simplified_exists%0#0) // check global_int_simplified exists let tmp%0#0: uint64 = (== global_int_simplified_value%0#0 33u) (assert tmp%0#0) - let (global_int_full_exists%0#0: any, global_int_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_full") + let (global_int_full_exists%0#0: uint64, global_int_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_full") (assert global_int_full_exists%1#0) let (global_int_full_value%0#0: uint64, global_int_full_exists%2#0: uint64) = (app_global_get_ex 0u "global_int_full") (assert global_int_full_exists%2#0) // check global_int_full exists let tmp%1#0: uint64 = (== global_int_full_value%0#0 55u) (assert tmp%1#0) - let (global_int_no_default_exists%0#0: any, global_int_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_no_default") + let (global_int_no_default_exists%0#0: uint64, global_int_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_no_default") let tmp%2#0: uint64 = (! global_int_no_default_exists%1#0) (assert tmp%2#0) (app_global_put "global_int_no_default" 44u) - let (i_value#0: any, i_exists#0: uint64) = (app_global_get_ex 0u "global_int_no_default") + let (i_value#0: uint64, i_exists#0: uint64) = (app_global_get_ex 0u "global_int_no_default") (assert i_exists#0) let tmp%3#0: uint64 = (== i_value#0 44u) (assert tmp%3#0) @@ -30,35 +30,35 @@ contract examples.global_state.contract.AppStateContract: (assert global_bytes_simplified_exists%0#0) // check global_bytes_simplified exists let tmp%4#0: uint64 = (== global_bytes_simplified_value%0#0 "Hello") (assert tmp%4#0) - let (global_bytes_full_exists%0#0: any, global_bytes_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") + let (global_bytes_full_exists%0#0: bytes, global_bytes_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") (assert global_bytes_full_exists%1#0) let (global_bytes_full_value%0#0: bytes, global_bytes_full_exists%2#0: uint64) = (app_global_get_ex 0u "global_bytes_full") (assert global_bytes_full_exists%2#0) // check global_bytes_full exists let tmp%5#0: uint64 = (== global_bytes_full_value%0#0 "Hello") (assert tmp%5#0) - let (global_bytes_full_get_ex%0#0: any, global_bytes_full_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") - let tmp%6#0: any = (select "default" global_bytes_full_get_ex%0#0 global_bytes_full_get_ex%1#0) + let (global_bytes_full_get_ex%0#0: bytes, global_bytes_full_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") + let tmp%6#0: bytes = (select "default" global_bytes_full_get_ex%0#0 global_bytes_full_get_ex%1#0) let tmp%7#0: uint64 = (== tmp%6#0 "Hello") (assert tmp%7#0) - let (global_bytes_no_default_exists%0#0: any, global_bytes_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let (global_bytes_no_default_exists%0#0: bytes, global_bytes_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") let tmp%8#0: uint64 = (! global_bytes_no_default_exists%1#0) (assert tmp%8#0) (app_global_put "global_bytes_no_default" "World") - let (b_value#0: any, b_exists#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let (b_value#0: bytes, b_exists#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") (assert b_exists#0) let tmp%9#0: uint64 = (== b_value#0 "World") (assert tmp%9#0) (app_global_del "global_bytes_no_default") - let (b_value#0: any, b_exists#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let (b_value#0: bytes, b_exists#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") let tmp%10#0: uint64 = (! b_exists#0) (assert tmp%10#0) - let (global_bytes_no_default_get_ex%0#0: any, global_bytes_no_default_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") - let tmp%11#0: any = (select "default" global_bytes_no_default_get_ex%0#0 global_bytes_no_default_get_ex%1#0) + let (global_bytes_no_default_get_ex%0#0: bytes, global_bytes_no_default_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let tmp%11#0: bytes = (select "default" global_bytes_no_default_get_ex%0#0 global_bytes_no_default_get_ex%1#0) let tmp%12#0: uint64 = (== tmp%11#0 "default") (assert tmp%12#0) - let (global_bool_full_exists%0#0: any, global_bool_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_full") + let (global_bool_full_exists%0#0: uint64, global_bool_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_full") (assert global_bool_full_exists%1#0) - let (global_bool_no_default_exists%0#0: any, global_bool_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_no_default") + let (global_bool_no_default_exists%0#0: uint64, global_bool_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_no_default") let tmp%13#0: uint64 = (! global_bool_no_default_exists%1#0) (assert tmp%13#0) (app_global_put "global_bool_no_default" 1u) diff --git a/examples/global_state/out_unoptimized/AppStateContract.destructured.ir b/examples/global_state/out_unoptimized/AppStateContract.destructured.ir index 2d5ca4280b..a87c2d9ea7 100644 --- a/examples/global_state/out_unoptimized/AppStateContract.destructured.ir +++ b/examples/global_state/out_unoptimized/AppStateContract.destructured.ir @@ -12,18 +12,18 @@ contract examples.global_state.contract.AppStateContract: (assert global_int_simplified_exists%0#0) // check global_int_simplified exists let tmp%0#0: uint64 = (== global_int_simplified_value%0#0 33u) (assert tmp%0#0) - let (global_int_full_exists%0#0: any, global_int_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_full") + let (global_int_full_exists%0#0: uint64, global_int_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_full") (assert global_int_full_exists%1#0) let (global_int_full_value%0#0: uint64, global_int_full_exists%2#0: uint64) = (app_global_get_ex 0u "global_int_full") (assert global_int_full_exists%2#0) // check global_int_full exists let tmp%1#0: uint64 = (== global_int_full_value%0#0 55u) (assert tmp%1#0) - let (global_int_no_default_exists%0#0: any, global_int_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_no_default") + let (global_int_no_default_exists%0#0: uint64, global_int_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_int_no_default") let tmp%2#0: uint64 = (! global_int_no_default_exists%1#0) (assert tmp%2#0) (app_global_put "global_int_no_default" 44u) - let (tuple_assignment%0#0: any, tuple_assignment%1#0: uint64) = (app_global_get_ex 0u "global_int_no_default") - let i_value#0: any = tuple_assignment%0#0 + let (tuple_assignment%0#0: uint64, tuple_assignment%1#0: uint64) = (app_global_get_ex 0u "global_int_no_default") + let i_value#0: uint64 = tuple_assignment%0#0 let i_exists#0: uint64 = tuple_assignment%1#0 (assert i_exists#0) let tmp%3#0: uint64 = (== i_value#0 44u) @@ -32,38 +32,38 @@ contract examples.global_state.contract.AppStateContract: (assert global_bytes_simplified_exists%0#0) // check global_bytes_simplified exists let tmp%4#0: uint64 = (== global_bytes_simplified_value%0#0 "Hello") (assert tmp%4#0) - let (global_bytes_full_exists%0#0: any, global_bytes_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") + let (global_bytes_full_exists%0#0: bytes, global_bytes_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") (assert global_bytes_full_exists%1#0) let (global_bytes_full_value%0#0: bytes, global_bytes_full_exists%2#0: uint64) = (app_global_get_ex 0u "global_bytes_full") (assert global_bytes_full_exists%2#0) // check global_bytes_full exists let tmp%5#0: uint64 = (== global_bytes_full_value%0#0 "Hello") (assert tmp%5#0) - let (global_bytes_full_get_ex%0#0: any, global_bytes_full_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") - let tmp%6#0: any = (select "default" global_bytes_full_get_ex%0#0 global_bytes_full_get_ex%1#0) + let (global_bytes_full_get_ex%0#0: bytes, global_bytes_full_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_full") + let tmp%6#0: bytes = (select "default" global_bytes_full_get_ex%0#0 global_bytes_full_get_ex%1#0) let tmp%7#0: uint64 = (== tmp%6#0 "Hello") (assert tmp%7#0) - let (global_bytes_no_default_exists%0#0: any, global_bytes_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let (global_bytes_no_default_exists%0#0: bytes, global_bytes_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") let tmp%8#0: uint64 = (! global_bytes_no_default_exists%1#0) (assert tmp%8#0) (app_global_put "global_bytes_no_default" "World") - let (tuple_assignment%2#0: any, tuple_assignment%3#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") - let b_value#0: any = tuple_assignment%2#0 + let (tuple_assignment%2#0: bytes, tuple_assignment%3#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let b_value#0: bytes = tuple_assignment%2#0 let b_exists#0: uint64 = tuple_assignment%3#0 (assert b_exists#0) let tmp%9#0: uint64 = (== b_value#0 "World") (assert tmp%9#0) (app_global_del "global_bytes_no_default") - let (tuple_assignment%4#0: any, tuple_assignment%5#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let (tuple_assignment%4#0: bytes, tuple_assignment%5#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") let b_exists#0: uint64 = tuple_assignment%5#0 let tmp%10#0: uint64 = (! b_exists#0) (assert tmp%10#0) - let (global_bytes_no_default_get_ex%0#0: any, global_bytes_no_default_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") - let tmp%11#0: any = (select "default" global_bytes_no_default_get_ex%0#0 global_bytes_no_default_get_ex%1#0) + let (global_bytes_no_default_get_ex%0#0: bytes, global_bytes_no_default_get_ex%1#0: uint64) = (app_global_get_ex 0u "global_bytes_no_default") + let tmp%11#0: bytes = (select "default" global_bytes_no_default_get_ex%0#0 global_bytes_no_default_get_ex%1#0) let tmp%12#0: uint64 = (== tmp%11#0 "default") (assert tmp%12#0) - let (global_bool_full_exists%0#0: any, global_bool_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_full") + let (global_bool_full_exists%0#0: uint64, global_bool_full_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_full") (assert global_bool_full_exists%1#0) - let (global_bool_no_default_exists%0#0: any, global_bool_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_no_default") + let (global_bool_no_default_exists%0#0: uint64, global_bool_no_default_exists%1#0: uint64) = (app_global_get_ex 0u "global_bool_no_default") let tmp%13#0: uint64 = (! global_bool_no_default_exists%1#0) (assert tmp%13#0) (app_global_put "global_bool_no_default" 1u) diff --git a/examples/local_state/out/LocalStateContract.destructured.ir b/examples/local_state/out/LocalStateContract.destructured.ir index 88d733f33e..3d2d550f6e 100644 --- a/examples/local_state/out/LocalStateContract.destructured.ir +++ b/examples/local_state/out/LocalStateContract.destructured.ir @@ -88,7 +88,7 @@ contract examples.local_state.local_state_contract.LocalStateContract: subroutine examples.local_state.local_state_contract.LocalStateContract.get_data_or_assert(for_account: bytes) -> bytes: block@0: // L60 - let (result#0: any, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let (result#0: bytes, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") (assert exists#0) // no data for account return result#0 @@ -104,8 +104,8 @@ contract examples.local_state.local_state_contract.LocalStateContract: subroutine examples.local_state.local_state_contract.LocalStateContract.get_data_with_default(for_account: bytes, default: bytes) -> bytes: block@0: // L56 - let (local_get_ex%0#0: any, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let tmp%0#0: any = (select default#0 local_get_ex%0#0 local_get_ex%1#0) + let (local_get_ex%0#0: bytes, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let tmp%0#0: bytes = (select default#0 local_get_ex%0#0 local_get_ex%1#0) return tmp%0#0 program clear-state: diff --git a/examples/local_state/out/LocalStateContract.ssa.ir b/examples/local_state/out/LocalStateContract.ssa.ir index 82d46e7dad..7c22c84331 100644 --- a/examples/local_state/out/LocalStateContract.ssa.ir +++ b/examples/local_state/out/LocalStateContract.ssa.ir @@ -96,8 +96,8 @@ contract examples.local_state.local_state_contract.LocalStateContract: subroutine examples.local_state.local_state_contract.LocalStateContract.get_data_or_assert(for_account: bytes) -> bytes: block@0: // L60 - let (tuple_assignment%0#0: any, tuple_assignment%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let result#0: any = tuple_assignment%0#0 + let (tuple_assignment%0#0: bytes, tuple_assignment%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let result#0: bytes = tuple_assignment%0#0 let exists#0: uint64 = tuple_assignment%1#0 (assert exists#0) // no data for account return result#0 @@ -114,8 +114,8 @@ contract examples.local_state.local_state_contract.LocalStateContract: subroutine examples.local_state.local_state_contract.LocalStateContract.get_data_with_default(for_account: bytes, default: bytes) -> bytes: block@0: // L56 - let (local_get_ex%0#0: any, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let tmp%0#0: any = (select default#0 local_get_ex%0#0 local_get_ex%1#0) + let (local_get_ex%0#0: bytes, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let tmp%0#0: bytes = (select default#0 local_get_ex%0#0 local_get_ex%1#0) return tmp%0#0 program clear-state: diff --git a/examples/local_state/out/LocalStateContract.ssa.opt_pass_1.ir b/examples/local_state/out/LocalStateContract.ssa.opt_pass_1.ir index af4484334b..b22df3cf3b 100644 --- a/examples/local_state/out/LocalStateContract.ssa.opt_pass_1.ir +++ b/examples/local_state/out/LocalStateContract.ssa.opt_pass_1.ir @@ -90,7 +90,7 @@ contract examples.local_state.local_state_contract.LocalStateContract: subroutine examples.local_state.local_state_contract.LocalStateContract.get_data_or_assert(for_account: bytes) -> bytes: block@0: // L60 - let (result#0: any, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let (result#0: bytes, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") (assert exists#0) // no data for account return result#0 @@ -106,8 +106,8 @@ contract examples.local_state.local_state_contract.LocalStateContract: subroutine examples.local_state.local_state_contract.LocalStateContract.get_data_with_default(for_account: bytes, default: bytes) -> bytes: block@0: // L56 - let (local_get_ex%0#0: any, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let tmp%0#0: any = (select default#0 local_get_ex%0#0 local_get_ex%1#0) + let (local_get_ex%0#0: bytes, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let tmp%0#0: bytes = (select default#0 local_get_ex%0#0 local_get_ex%1#0) return tmp%0#0 program clear-state: diff --git a/examples/local_state/out/LocalStateContract.ssa.opt_pass_2.ir b/examples/local_state/out/LocalStateContract.ssa.opt_pass_2.ir index 88d733f33e..3d2d550f6e 100644 --- a/examples/local_state/out/LocalStateContract.ssa.opt_pass_2.ir +++ b/examples/local_state/out/LocalStateContract.ssa.opt_pass_2.ir @@ -88,7 +88,7 @@ contract examples.local_state.local_state_contract.LocalStateContract: subroutine examples.local_state.local_state_contract.LocalStateContract.get_data_or_assert(for_account: bytes) -> bytes: block@0: // L60 - let (result#0: any, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let (result#0: bytes, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") (assert exists#0) // no data for account return result#0 @@ -104,8 +104,8 @@ contract examples.local_state.local_state_contract.LocalStateContract: subroutine examples.local_state.local_state_contract.LocalStateContract.get_data_with_default(for_account: bytes, default: bytes) -> bytes: block@0: // L56 - let (local_get_ex%0#0: any, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let tmp%0#0: any = (select default#0 local_get_ex%0#0 local_get_ex%1#0) + let (local_get_ex%0#0: bytes, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let tmp%0#0: bytes = (select default#0 local_get_ex%0#0 local_get_ex%1#0) return tmp%0#0 program clear-state: diff --git a/examples/local_state/out/LocalStateWithOffsets.destructured.ir b/examples/local_state/out/LocalStateWithOffsets.destructured.ir index 38e54062b9..04d4f3471a 100644 --- a/examples/local_state/out/LocalStateWithOffsets.destructured.ir +++ b/examples/local_state/out/LocalStateWithOffsets.destructured.ir @@ -86,7 +86,7 @@ contract examples.local_state.local_state_with_offsets.LocalStateContract: subroutine examples.local_state.local_state_with_offsets.LocalStateContract.get_data_or_assert(for_account: uint64) -> bytes: block@0: // L61 - let (result#0: any, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let (result#0: bytes, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") (assert exists#0) // no data for account return result#0 @@ -102,8 +102,8 @@ contract examples.local_state.local_state_with_offsets.LocalStateContract: subroutine examples.local_state.local_state_with_offsets.LocalStateContract.get_data_with_default(for_account: uint64, default: bytes) -> bytes: block@0: // L57 - let (local_get_ex%0#0: any, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let tmp%0#0: any = (select default#0 local_get_ex%0#0 local_get_ex%1#0) + let (local_get_ex%0#0: bytes, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let tmp%0#0: bytes = (select default#0 local_get_ex%0#0 local_get_ex%1#0) return tmp%0#0 program clear-state: diff --git a/examples/local_state/out/LocalStateWithOffsets.ssa.ir b/examples/local_state/out/LocalStateWithOffsets.ssa.ir index 4f5638d48d..f12213770a 100644 --- a/examples/local_state/out/LocalStateWithOffsets.ssa.ir +++ b/examples/local_state/out/LocalStateWithOffsets.ssa.ir @@ -93,8 +93,8 @@ contract examples.local_state.local_state_with_offsets.LocalStateContract: subroutine examples.local_state.local_state_with_offsets.LocalStateContract.get_data_or_assert(for_account: uint64) -> bytes: block@0: // L61 - let (tuple_assignment%0#0: any, tuple_assignment%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let result#0: any = tuple_assignment%0#0 + let (tuple_assignment%0#0: bytes, tuple_assignment%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let result#0: bytes = tuple_assignment%0#0 let exists#0: uint64 = tuple_assignment%1#0 (assert exists#0) // no data for account return result#0 @@ -111,8 +111,8 @@ contract examples.local_state.local_state_with_offsets.LocalStateContract: subroutine examples.local_state.local_state_with_offsets.LocalStateContract.get_data_with_default(for_account: uint64, default: bytes) -> bytes: block@0: // L57 - let (local_get_ex%0#0: any, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let tmp%0#0: any = (select default#0 local_get_ex%0#0 local_get_ex%1#0) + let (local_get_ex%0#0: bytes, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let tmp%0#0: bytes = (select default#0 local_get_ex%0#0 local_get_ex%1#0) return tmp%0#0 program clear-state: diff --git a/examples/local_state/out/LocalStateWithOffsets.ssa.opt_pass_1.ir b/examples/local_state/out/LocalStateWithOffsets.ssa.opt_pass_1.ir index b47507e329..8305476e64 100644 --- a/examples/local_state/out/LocalStateWithOffsets.ssa.opt_pass_1.ir +++ b/examples/local_state/out/LocalStateWithOffsets.ssa.opt_pass_1.ir @@ -87,7 +87,7 @@ contract examples.local_state.local_state_with_offsets.LocalStateContract: subroutine examples.local_state.local_state_with_offsets.LocalStateContract.get_data_or_assert(for_account: uint64) -> bytes: block@0: // L61 - let (result#0: any, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let (result#0: bytes, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") (assert exists#0) // no data for account return result#0 @@ -103,8 +103,8 @@ contract examples.local_state.local_state_with_offsets.LocalStateContract: subroutine examples.local_state.local_state_with_offsets.LocalStateContract.get_data_with_default(for_account: uint64, default: bytes) -> bytes: block@0: // L57 - let (local_get_ex%0#0: any, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let tmp%0#0: any = (select default#0 local_get_ex%0#0 local_get_ex%1#0) + let (local_get_ex%0#0: bytes, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let tmp%0#0: bytes = (select default#0 local_get_ex%0#0 local_get_ex%1#0) return tmp%0#0 program clear-state: diff --git a/examples/local_state/out/LocalStateWithOffsets.ssa.opt_pass_2.ir b/examples/local_state/out/LocalStateWithOffsets.ssa.opt_pass_2.ir index 38e54062b9..04d4f3471a 100644 --- a/examples/local_state/out/LocalStateWithOffsets.ssa.opt_pass_2.ir +++ b/examples/local_state/out/LocalStateWithOffsets.ssa.opt_pass_2.ir @@ -86,7 +86,7 @@ contract examples.local_state.local_state_with_offsets.LocalStateContract: subroutine examples.local_state.local_state_with_offsets.LocalStateContract.get_data_or_assert(for_account: uint64) -> bytes: block@0: // L61 - let (result#0: any, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let (result#0: bytes, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") (assert exists#0) // no data for account return result#0 @@ -102,8 +102,8 @@ contract examples.local_state.local_state_with_offsets.LocalStateContract: subroutine examples.local_state.local_state_with_offsets.LocalStateContract.get_data_with_default(for_account: uint64, default: bytes) -> bytes: block@0: // L57 - let (local_get_ex%0#0: any, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let tmp%0#0: any = (select default#0 local_get_ex%0#0 local_get_ex%1#0) + let (local_get_ex%0#0: bytes, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let tmp%0#0: bytes = (select default#0 local_get_ex%0#0 local_get_ex%1#0) return tmp%0#0 program clear-state: diff --git a/examples/local_state/out_O2/LocalStateContract.destructured.ir b/examples/local_state/out_O2/LocalStateContract.destructured.ir index 18d12b6ccd..4dcfcef408 100644 --- a/examples/local_state/out_O2/LocalStateContract.destructured.ir +++ b/examples/local_state/out_O2/LocalStateContract.destructured.ir @@ -76,7 +76,7 @@ contract examples.local_state.local_state_contract.LocalStateContract: subroutine examples.local_state.local_state_contract.LocalStateContract.get_data_or_assert(for_account: bytes) -> bytes: block@0: // L60 - let (result#0: any, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let (result#0: bytes, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") (assert exists#0) // no data for account return result#0 @@ -92,8 +92,8 @@ contract examples.local_state.local_state_contract.LocalStateContract: subroutine examples.local_state.local_state_contract.LocalStateContract.get_data_with_default(for_account: bytes, default: bytes) -> bytes: block@0: // L56 - let (local_get_ex%0#0: any, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let tmp%0#0: any = (select default#0 local_get_ex%0#0 local_get_ex%1#0) + let (local_get_ex%0#0: bytes, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let tmp%0#0: bytes = (select default#0 local_get_ex%0#0 local_get_ex%1#0) return tmp%0#0 program clear-state: diff --git a/examples/local_state/out_O2/LocalStateWithOffsets.destructured.ir b/examples/local_state/out_O2/LocalStateWithOffsets.destructured.ir index e67656130c..512337c50f 100644 --- a/examples/local_state/out_O2/LocalStateWithOffsets.destructured.ir +++ b/examples/local_state/out_O2/LocalStateWithOffsets.destructured.ir @@ -74,7 +74,7 @@ contract examples.local_state.local_state_with_offsets.LocalStateContract: subroutine examples.local_state.local_state_with_offsets.LocalStateContract.get_data_or_assert(for_account: uint64) -> bytes: block@0: // L61 - let (result#0: any, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let (result#0: bytes, exists#0: uint64) = (app_local_get_ex for_account#0 0u "local") (assert exists#0) // no data for account return result#0 @@ -90,8 +90,8 @@ contract examples.local_state.local_state_with_offsets.LocalStateContract: subroutine examples.local_state.local_state_with_offsets.LocalStateContract.get_data_with_default(for_account: uint64, default: bytes) -> bytes: block@0: // L57 - let (local_get_ex%0#0: any, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let tmp%0#0: any = (select default#0 local_get_ex%0#0 local_get_ex%1#0) + let (local_get_ex%0#0: bytes, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let tmp%0#0: bytes = (select default#0 local_get_ex%0#0 local_get_ex%1#0) return tmp%0#0 program clear-state: diff --git a/examples/local_state/out_unoptimized/LocalStateContract.destructured.ir b/examples/local_state/out_unoptimized/LocalStateContract.destructured.ir index 82d46e7dad..7c22c84331 100644 --- a/examples/local_state/out_unoptimized/LocalStateContract.destructured.ir +++ b/examples/local_state/out_unoptimized/LocalStateContract.destructured.ir @@ -96,8 +96,8 @@ contract examples.local_state.local_state_contract.LocalStateContract: subroutine examples.local_state.local_state_contract.LocalStateContract.get_data_or_assert(for_account: bytes) -> bytes: block@0: // L60 - let (tuple_assignment%0#0: any, tuple_assignment%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let result#0: any = tuple_assignment%0#0 + let (tuple_assignment%0#0: bytes, tuple_assignment%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let result#0: bytes = tuple_assignment%0#0 let exists#0: uint64 = tuple_assignment%1#0 (assert exists#0) // no data for account return result#0 @@ -114,8 +114,8 @@ contract examples.local_state.local_state_contract.LocalStateContract: subroutine examples.local_state.local_state_contract.LocalStateContract.get_data_with_default(for_account: bytes, default: bytes) -> bytes: block@0: // L56 - let (local_get_ex%0#0: any, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let tmp%0#0: any = (select default#0 local_get_ex%0#0 local_get_ex%1#0) + let (local_get_ex%0#0: bytes, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let tmp%0#0: bytes = (select default#0 local_get_ex%0#0 local_get_ex%1#0) return tmp%0#0 program clear-state: diff --git a/examples/local_state/out_unoptimized/LocalStateWithOffsets.destructured.ir b/examples/local_state/out_unoptimized/LocalStateWithOffsets.destructured.ir index 4f5638d48d..f12213770a 100644 --- a/examples/local_state/out_unoptimized/LocalStateWithOffsets.destructured.ir +++ b/examples/local_state/out_unoptimized/LocalStateWithOffsets.destructured.ir @@ -93,8 +93,8 @@ contract examples.local_state.local_state_with_offsets.LocalStateContract: subroutine examples.local_state.local_state_with_offsets.LocalStateContract.get_data_or_assert(for_account: uint64) -> bytes: block@0: // L61 - let (tuple_assignment%0#0: any, tuple_assignment%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let result#0: any = tuple_assignment%0#0 + let (tuple_assignment%0#0: bytes, tuple_assignment%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let result#0: bytes = tuple_assignment%0#0 let exists#0: uint64 = tuple_assignment%1#0 (assert exists#0) // no data for account return result#0 @@ -111,8 +111,8 @@ contract examples.local_state.local_state_with_offsets.LocalStateContract: subroutine examples.local_state.local_state_with_offsets.LocalStateContract.get_data_with_default(for_account: uint64, default: bytes) -> bytes: block@0: // L57 - let (local_get_ex%0#0: any, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") - let tmp%0#0: any = (select default#0 local_get_ex%0#0 local_get_ex%1#0) + let (local_get_ex%0#0: bytes, local_get_ex%1#0: uint64) = (app_local_get_ex for_account#0 0u "local") + let tmp%0#0: bytes = (select default#0 local_get_ex%0#0 local_get_ex%1#0) return tmp%0#0 program clear-state: diff --git a/examples/merkle/out/MerkleTree.approval.mir b/examples/merkle/out/MerkleTree.approval.mir index c40c0115b1..f25b700a5b 100644 --- a/examples/merkle/out/MerkleTree.approval.mir +++ b/examples/merkle/out/MerkleTree.approval.mir @@ -55,7 +55,7 @@ main_verify_route@2: callsub verify // {verify} arc4.abimethod merkle/contract.py:14 // virtual: store tmp%11#0 to l-stack (no copy) tmp%11#0 arc4.abimethod merkle/contract.py:14 byte 0x00 // tmp%11#0,0x00 arc4.abimethod merkle/contract.py:14 - int 0 // tmp%11#0,0x00,0 + int 0 // tmp%11#0,0x00,0 arc4.abimethod merkle/contract.py:14 uncover 2 // load tmp%11#0 from l-stack (no copy) 0x00,0,tmp%11#0 arc4.abimethod merkle/contract.py:14 setbit // {setbit} arc4.abimethod merkle/contract.py:14 // virtual: store tmp%12#0 to l-stack (no copy) tmp%12#0 arc4.abimethod merkle/contract.py:14 diff --git a/examples/merkle/out/MerkleTree.destructured.ir b/examples/merkle/out/MerkleTree.destructured.ir index 5dea0ad114..849fff5c38 100644 --- a/examples/merkle/out/MerkleTree.destructured.ir +++ b/examples/merkle/out/MerkleTree.destructured.ir @@ -23,7 +23,7 @@ contract examples.merkle.contract.MerkleTree: let tmp%9#0: bytes = (txna ApplicationArgs 1) let tmp%10#0: bytes = (txna ApplicationArgs 2) let tmp%11#0: uint64 = examples.merkle.contract.MerkleTree.verify(tmp%9#0, tmp%10#0) - let tmp%12#0: any = (setbit 0x00 0u tmp%11#0) + let tmp%12#0: bytes = (setbit 0x00 0u tmp%11#0) let tmp%13#0: bytes = (concat 0x151f7c75 tmp%12#0) (log tmp%13#0) return 1u diff --git a/examples/merkle/out/MerkleTree.ssa.ir b/examples/merkle/out/MerkleTree.ssa.ir index 584e3bc99a..c38574c696 100644 --- a/examples/merkle/out/MerkleTree.ssa.ir +++ b/examples/merkle/out/MerkleTree.ssa.ir @@ -23,7 +23,7 @@ contract examples.merkle.contract.MerkleTree: let tmp%9#0: bytes = (txna ApplicationArgs 1) let tmp%10#0: bytes = (txna ApplicationArgs 2) let tmp%11#0: uint64 = examples.merkle.contract.MerkleTree.verify(tmp%9#0, tmp%10#0) - let tmp%12#0: any = (setbit 0x00 0u tmp%11#0) + let tmp%12#0: bytes = (setbit 0x00 0u tmp%11#0) let tmp%13#0: bytes = (concat 0x151f7c75 tmp%12#0) (log tmp%13#0) return 1u diff --git a/examples/merkle/out/MerkleTree.ssa.opt_pass_1.ir b/examples/merkle/out/MerkleTree.ssa.opt_pass_1.ir index 78ed5ec552..e70b901dc1 100644 --- a/examples/merkle/out/MerkleTree.ssa.opt_pass_1.ir +++ b/examples/merkle/out/MerkleTree.ssa.opt_pass_1.ir @@ -23,7 +23,7 @@ contract examples.merkle.contract.MerkleTree: let tmp%9#0: bytes = (txna ApplicationArgs 1) let tmp%10#0: bytes = (txna ApplicationArgs 2) let tmp%11#0: uint64 = examples.merkle.contract.MerkleTree.verify(tmp%9#0, tmp%10#0) - let tmp%12#0: any = (setbit 0x00 0u tmp%11#0) + let tmp%12#0: bytes = (setbit 0x00 0u tmp%11#0) let tmp%13#0: bytes = (concat 0x151f7c75 tmp%12#0) (log tmp%13#0) return 1u diff --git a/examples/merkle/out_O2/MerkleTree.destructured.ir b/examples/merkle/out_O2/MerkleTree.destructured.ir index 5dea0ad114..849fff5c38 100644 --- a/examples/merkle/out_O2/MerkleTree.destructured.ir +++ b/examples/merkle/out_O2/MerkleTree.destructured.ir @@ -23,7 +23,7 @@ contract examples.merkle.contract.MerkleTree: let tmp%9#0: bytes = (txna ApplicationArgs 1) let tmp%10#0: bytes = (txna ApplicationArgs 2) let tmp%11#0: uint64 = examples.merkle.contract.MerkleTree.verify(tmp%9#0, tmp%10#0) - let tmp%12#0: any = (setbit 0x00 0u tmp%11#0) + let tmp%12#0: bytes = (setbit 0x00 0u tmp%11#0) let tmp%13#0: bytes = (concat 0x151f7c75 tmp%12#0) (log tmp%13#0) return 1u diff --git a/examples/merkle/out_unoptimized/MerkleTree.destructured.ir b/examples/merkle/out_unoptimized/MerkleTree.destructured.ir index 9183782815..ccd1d0a4b2 100644 --- a/examples/merkle/out_unoptimized/MerkleTree.destructured.ir +++ b/examples/merkle/out_unoptimized/MerkleTree.destructured.ir @@ -23,7 +23,7 @@ contract examples.merkle.contract.MerkleTree: let tmp%9#0: bytes = (txna ApplicationArgs 1) let tmp%10#0: bytes = (txna ApplicationArgs 2) let tmp%11#0: uint64 = examples.merkle.contract.MerkleTree.verify(tmp%9#0, tmp%10#0) - let tmp%12#0: any = (setbit 0x00 0u tmp%11#0) + let tmp%12#0: bytes = (setbit 0x00 0u tmp%11#0) let tmp%13#0: bytes = (concat 0x151f7c75 tmp%12#0) (log tmp%13#0) return 1u diff --git a/examples/tictactoe/out/TicTacToeContract.destructured.ir b/examples/tictactoe/out/TicTacToeContract.destructured.ir index 8ab7ec57cd..79265968e6 100644 --- a/examples/tictactoe/out/TicTacToeContract.destructured.ir +++ b/examples/tictactoe/out/TicTacToeContract.destructured.ir @@ -57,10 +57,10 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: let tmp%0#0: uint64 = (txn ApplicationID) goto tmp%0#0 ? block@1 : block@4 block@1: // if_body_L22 - let (challenger_exists%0#0: any, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") + let (challenger_exists%0#0: bytes, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") goto challenger_exists%1#0 ? block@2 : block@3 block@2: // if_body_L23 - let (winner_exists%0#0: any, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") + let (winner_exists%0#0: bytes, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") (assert winner_exists%1#0) // Game isn't over goto block@3 block@3: // after_if_else_L23 @@ -102,7 +102,7 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: subroutine examples.tictactoe.tictactoe.TicTacToeContract.join_game(move.0: uint64, move.1: uint64) -> void: block@0: // L37 - let (challenger_exists%0#0: any, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") + let (challenger_exists%0#0: bytes, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") let tmp%0#0: uint64 = (! challenger_exists%1#0) (assert tmp%0#0) // Host already has a challenger let new_state_value%0#0: bytes = (txn Sender) @@ -243,7 +243,7 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: subroutine examples.tictactoe.tictactoe.TicTacToeContract.play(move.0: uint64, move.1: uint64) -> void: block@0: // L47 - let (winner_exists%0#0: any, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") + let (winner_exists%0#0: bytes, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") let tmp%0#0: uint64 = (! winner_exists%1#0) (assert tmp%0#0) // Game is already finished let (turns_value%0#0: uint64, turns_exists%0#0: uint64) = (app_global_get_ex 0u "turns") @@ -261,8 +261,8 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: block@2: // else_body_L50 let tmp%4#0: bytes = (txn Sender) let tmp%5#0: bytes = (global ZeroAddress) - let (challenger_get_ex%0#0: any, challenger_get_ex%1#0: uint64) = (app_global_get_ex 0u "challenger") - let tmp%6#0: any = (select tmp%5#0 challenger_get_ex%0#0 challenger_get_ex%1#0) + let (challenger_get_ex%0#0: bytes, challenger_get_ex%1#0: uint64) = (app_global_get_ex 0u "challenger") + let tmp%6#0: bytes = (select tmp%5#0 challenger_get_ex%0#0 challenger_get_ex%1#0) let tmp%7#0: uint64 = (== tmp%4#0 tmp%6#0) (assert tmp%7#0) // It is the challenger's turn let player#0: bytes = 0x02 diff --git a/examples/tictactoe/out/TicTacToeContract.ssa.ir b/examples/tictactoe/out/TicTacToeContract.ssa.ir index c9f47bbe85..d3373ca900 100644 --- a/examples/tictactoe/out/TicTacToeContract.ssa.ir +++ b/examples/tictactoe/out/TicTacToeContract.ssa.ir @@ -64,10 +64,10 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: let tmp%0#0: uint64 = (txn ApplicationID) goto tmp%0#0 ? block@1 : block@4 block@1: // if_body_L22 - let (challenger_exists%0#0: any, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") + let (challenger_exists%0#0: bytes, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") goto challenger_exists%1#0 ? block@2 : block@3 block@2: // if_body_L23 - let (winner_exists%0#0: any, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") + let (winner_exists%0#0: bytes, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") (assert winner_exists%1#0) // Game isn't over goto block@3 block@3: // after_if_else_L23 @@ -122,7 +122,7 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: subroutine examples.tictactoe.tictactoe.TicTacToeContract.join_game(move.0: uint64, move.1: uint64) -> void: block@0: // L37 - let (challenger_exists%0#0: any, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") + let (challenger_exists%0#0: bytes, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") let tmp%0#0: uint64 = (! challenger_exists%1#0) (assert tmp%0#0) // Host already has a challenger let new_state_value%0#0: bytes = (txn Sender) @@ -331,7 +331,7 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: subroutine examples.tictactoe.tictactoe.TicTacToeContract.play(move.0: uint64, move.1: uint64) -> void: block@0: // L47 - let (winner_exists%0#0: any, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") + let (winner_exists%0#0: bytes, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") let tmp%0#0: uint64 = (! winner_exists%1#0) (assert tmp%0#0) // Game is already finished let (turns_value%0#0: uint64, turns_exists%0#0: uint64) = (app_global_get_ex 0u "turns") @@ -349,8 +349,8 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: block@2: // else_body_L50 let tmp%4#0: bytes = (txn Sender) let tmp%5#0: bytes = (global ZeroAddress) - let (challenger_get_ex%0#0: any, challenger_get_ex%1#0: uint64) = (app_global_get_ex 0u "challenger") - let tmp%6#0: any = (select tmp%5#0 challenger_get_ex%0#0 challenger_get_ex%1#0) + let (challenger_get_ex%0#0: bytes, challenger_get_ex%1#0: uint64) = (app_global_get_ex 0u "challenger") + let tmp%6#0: bytes = (select tmp%5#0 challenger_get_ex%0#0 challenger_get_ex%1#0) let tmp%7#0: uint64 = (== tmp%4#0 tmp%6#0) (assert tmp%7#0) // It is the challenger's turn let player#1: bytes = 0x02 diff --git a/examples/tictactoe/out/TicTacToeContract.ssa.opt_pass_1.ir b/examples/tictactoe/out/TicTacToeContract.ssa.opt_pass_1.ir index c622e0a9c5..3f689b779f 100644 --- a/examples/tictactoe/out/TicTacToeContract.ssa.opt_pass_1.ir +++ b/examples/tictactoe/out/TicTacToeContract.ssa.opt_pass_1.ir @@ -57,10 +57,10 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: let tmp%0#0: uint64 = (txn ApplicationID) goto tmp%0#0 ? block@1 : block@4 block@1: // if_body_L22 - let (challenger_exists%0#0: any, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") + let (challenger_exists%0#0: bytes, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") goto challenger_exists%1#0 ? block@2 : block@3 block@2: // if_body_L23 - let (winner_exists%0#0: any, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") + let (winner_exists%0#0: bytes, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") (assert winner_exists%1#0) // Game isn't over goto block@3 block@3: // after_if_else_L23 @@ -103,7 +103,7 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: subroutine examples.tictactoe.tictactoe.TicTacToeContract.join_game(move.0: uint64, move.1: uint64) -> void: block@0: // L37 - let (challenger_exists%0#0: any, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") + let (challenger_exists%0#0: bytes, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") let tmp%0#0: uint64 = (! challenger_exists%1#0) (assert tmp%0#0) // Host already has a challenger let new_state_value%0#0: bytes = (txn Sender) @@ -265,7 +265,7 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: subroutine examples.tictactoe.tictactoe.TicTacToeContract.play(move.0: uint64, move.1: uint64) -> void: block@0: // L47 - let (winner_exists%0#0: any, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") + let (winner_exists%0#0: bytes, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") let tmp%0#0: uint64 = (! winner_exists%1#0) (assert tmp%0#0) // Game is already finished let (turns_value%0#0: uint64, turns_exists%0#0: uint64) = (app_global_get_ex 0u "turns") @@ -283,8 +283,8 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: block@2: // else_body_L50 let tmp%4#0: bytes = (txn Sender) let tmp%5#0: bytes = (global ZeroAddress) - let (challenger_get_ex%0#0: any, challenger_get_ex%1#0: uint64) = (app_global_get_ex 0u "challenger") - let tmp%6#0: any = (select tmp%5#0 challenger_get_ex%0#0 challenger_get_ex%1#0) + let (challenger_get_ex%0#0: bytes, challenger_get_ex%1#0: uint64) = (app_global_get_ex 0u "challenger") + let tmp%6#0: bytes = (select tmp%5#0 challenger_get_ex%0#0 challenger_get_ex%1#0) let tmp%7#0: uint64 = (== tmp%4#0 tmp%6#0) (assert tmp%7#0) // It is the challenger's turn let player#1: bytes = 0x02 diff --git a/examples/tictactoe/out/TicTacToeContract.ssa.opt_pass_2.ir b/examples/tictactoe/out/TicTacToeContract.ssa.opt_pass_2.ir index 72b4cacd17..0241649179 100644 --- a/examples/tictactoe/out/TicTacToeContract.ssa.opt_pass_2.ir +++ b/examples/tictactoe/out/TicTacToeContract.ssa.opt_pass_2.ir @@ -57,10 +57,10 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: let tmp%0#0: uint64 = (txn ApplicationID) goto tmp%0#0 ? block@1 : block@4 block@1: // if_body_L22 - let (challenger_exists%0#0: any, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") + let (challenger_exists%0#0: bytes, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") goto challenger_exists%1#0 ? block@2 : block@3 block@2: // if_body_L23 - let (winner_exists%0#0: any, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") + let (winner_exists%0#0: bytes, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") (assert winner_exists%1#0) // Game isn't over goto block@3 block@3: // after_if_else_L23 @@ -103,7 +103,7 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: subroutine examples.tictactoe.tictactoe.TicTacToeContract.join_game(move.0: uint64, move.1: uint64) -> void: block@0: // L37 - let (challenger_exists%0#0: any, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") + let (challenger_exists%0#0: bytes, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") let tmp%0#0: uint64 = (! challenger_exists%1#0) (assert tmp%0#0) // Host already has a challenger let new_state_value%0#0: bytes = (txn Sender) @@ -246,7 +246,7 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: subroutine examples.tictactoe.tictactoe.TicTacToeContract.play(move.0: uint64, move.1: uint64) -> void: block@0: // L47 - let (winner_exists%0#0: any, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") + let (winner_exists%0#0: bytes, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") let tmp%0#0: uint64 = (! winner_exists%1#0) (assert tmp%0#0) // Game is already finished let (turns_value%0#0: uint64, turns_exists%0#0: uint64) = (app_global_get_ex 0u "turns") @@ -264,8 +264,8 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: block@2: // else_body_L50 let tmp%4#0: bytes = (txn Sender) let tmp%5#0: bytes = (global ZeroAddress) - let (challenger_get_ex%0#0: any, challenger_get_ex%1#0: uint64) = (app_global_get_ex 0u "challenger") - let tmp%6#0: any = (select tmp%5#0 challenger_get_ex%0#0 challenger_get_ex%1#0) + let (challenger_get_ex%0#0: bytes, challenger_get_ex%1#0: uint64) = (app_global_get_ex 0u "challenger") + let tmp%6#0: bytes = (select tmp%5#0 challenger_get_ex%0#0 challenger_get_ex%1#0) let tmp%7#0: uint64 = (== tmp%4#0 tmp%6#0) (assert tmp%7#0) // It is the challenger's turn let player#1: bytes = 0x02 diff --git a/examples/tictactoe/out_O2/TicTacToeContract.destructured.ir b/examples/tictactoe/out_O2/TicTacToeContract.destructured.ir index d6a875daab..f87517d8e4 100644 --- a/examples/tictactoe/out_O2/TicTacToeContract.destructured.ir +++ b/examples/tictactoe/out_O2/TicTacToeContract.destructured.ir @@ -57,10 +57,10 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: let tmp%0#0: uint64 = (txn ApplicationID) goto tmp%0#0 ? block@1 : block@4 block@1: // if_body_L22 - let (challenger_exists%0#0: any, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") + let (challenger_exists%0#0: bytes, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") goto challenger_exists%1#0 ? block@2 : block@3 block@2: // if_body_L23 - let (winner_exists%0#0: any, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") + let (winner_exists%0#0: bytes, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") (assert winner_exists%1#0) // Game isn't over goto block@3 block@3: // after_if_else_L23 @@ -102,7 +102,7 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: subroutine examples.tictactoe.tictactoe.TicTacToeContract.join_game(move.0: uint64, move.1: uint64) -> void: block@0: // L37 - let (challenger_exists%0#0: any, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") + let (challenger_exists%0#0: bytes, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") let tmp%0#0: uint64 = (! challenger_exists%1#0) (assert tmp%0#0) // Host already has a challenger let new_state_value%0#0: bytes = (txn Sender) @@ -237,7 +237,7 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: subroutine examples.tictactoe.tictactoe.TicTacToeContract.play(move.0: uint64, move.1: uint64) -> void: block@0: // L47 - let (winner_exists%0#0: any, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") + let (winner_exists%0#0: bytes, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") let tmp%0#0: uint64 = (! winner_exists%1#0) (assert tmp%0#0) // Game is already finished let (turns_value%0#0: uint64, turns_exists%0#0: uint64) = (app_global_get_ex 0u "turns") @@ -255,8 +255,8 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: block@2: // else_body_L50 let tmp%4#0: bytes = (txn Sender) let tmp%5#0: bytes = (global ZeroAddress) - let (challenger_get_ex%0#0: any, challenger_get_ex%1#0: uint64) = (app_global_get_ex 0u "challenger") - let tmp%6#0: any = (select tmp%5#0 challenger_get_ex%0#0 challenger_get_ex%1#0) + let (challenger_get_ex%0#0: bytes, challenger_get_ex%1#0: uint64) = (app_global_get_ex 0u "challenger") + let tmp%6#0: bytes = (select tmp%5#0 challenger_get_ex%0#0 challenger_get_ex%1#0) let tmp%7#0: uint64 = (== tmp%4#0 tmp%6#0) (assert tmp%7#0) // It is the challenger's turn let player#0: bytes = 0x02 diff --git a/examples/tictactoe/out_unoptimized/TicTacToeContract.destructured.ir b/examples/tictactoe/out_unoptimized/TicTacToeContract.destructured.ir index 9c86dc25d7..7d3fd79dec 100644 --- a/examples/tictactoe/out_unoptimized/TicTacToeContract.destructured.ir +++ b/examples/tictactoe/out_unoptimized/TicTacToeContract.destructured.ir @@ -67,10 +67,10 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: let tmp%0#0: uint64 = (txn ApplicationID) goto tmp%0#0 ? block@1 : block@4 block@1: // if_body_L22 - let (challenger_exists%0#0: any, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") + let (challenger_exists%0#0: bytes, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") goto challenger_exists%1#0 ? block@2 : block@3 block@2: // if_body_L23 - let (winner_exists%0#0: any, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") + let (winner_exists%0#0: bytes, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") (assert winner_exists%1#0) // Game isn't over goto block@3 block@3: // after_if_else_L23 @@ -124,7 +124,7 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: subroutine examples.tictactoe.tictactoe.TicTacToeContract.join_game(move.0: uint64, move.1: uint64) -> void: block@0: // L37 - let (challenger_exists%0#0: any, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") + let (challenger_exists%0#0: bytes, challenger_exists%1#0: uint64) = (app_global_get_ex 0u "challenger") let tmp%0#0: uint64 = (! challenger_exists%1#0) (assert tmp%0#0) // Host already has a challenger let new_state_value%0#0: bytes = (txn Sender) @@ -331,7 +331,7 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: subroutine examples.tictactoe.tictactoe.TicTacToeContract.play(move.0: uint64, move.1: uint64) -> void: block@0: // L47 - let (winner_exists%0#0: any, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") + let (winner_exists%0#0: bytes, winner_exists%1#0: uint64) = (app_global_get_ex 0u "winner") let tmp%0#0: uint64 = (! winner_exists%1#0) (assert tmp%0#0) // Game is already finished let (turns_value%0#0: uint64, turns_exists%0#0: uint64) = (app_global_get_ex 0u "turns") @@ -349,8 +349,8 @@ contract examples.tictactoe.tictactoe.TicTacToeContract: block@2: // else_body_L50 let tmp%4#0: bytes = (txn Sender) let tmp%5#0: bytes = (global ZeroAddress) - let (challenger_get_ex%0#0: any, challenger_get_ex%1#0: uint64) = (app_global_get_ex 0u "challenger") - let tmp%6#0: any = (select tmp%5#0 challenger_get_ex%0#0 challenger_get_ex%1#0) + let (challenger_get_ex%0#0: bytes, challenger_get_ex%1#0: uint64) = (app_global_get_ex 0u "challenger") + let tmp%6#0: bytes = (select tmp%5#0 challenger_get_ex%0#0 challenger_get_ex%1#0) let tmp%7#0: uint64 = (== tmp%4#0 tmp%6#0) (assert tmp%7#0) // It is the challenger's turn let player#0: bytes = 0x02 diff --git a/examples/voting/out/VotingRoundApp.destructured.ir b/examples/voting/out/VotingRoundApp.destructured.ir index a397a9d7af..4a98280aff 100644 --- a/examples/voting/out/VotingRoundApp.destructured.ir +++ b/examples/voting/out/VotingRoundApp.destructured.ir @@ -155,7 +155,7 @@ contract examples.voting.voting.VotingRoundApp: subroutine examples.voting.voting.VotingRoundApp.close() -> void: block@0: // L108 algopy.ensure_budget(20000u, 0u) - let (close_time_exists%0#0: any, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") + let (close_time_exists%0#0: uint64, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") let tmp%0#0: uint64 = (! close_time_exists%1#0) (assert tmp%0#0) // Already closed let new_state_value%0#0: uint64 = (global LatestTimestamp) @@ -338,7 +338,7 @@ contract examples.voting.voting.VotingRoundApp: (assert is_bootstrapped_exists%0#0) // check is_bootstrapped exists goto is_bootstrapped_value%0#0 ? block@1 : block@5 block@1: // and_contd_L205 - let (close_time_exists%0#0: any, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") + let (close_time_exists%0#0: uint64, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") goto close_time_exists%1#0 ? block@5 : block@2 block@2: // and_contd_L205 let (start_time_value%0#0: uint64, start_time_exists%0#0: uint64) = (app_global_get_ex 0u "start_time") diff --git a/examples/voting/out/VotingRoundApp.ssa.ir b/examples/voting/out/VotingRoundApp.ssa.ir index 2b2c0b480e..7590ee1884 100644 --- a/examples/voting/out/VotingRoundApp.ssa.ir +++ b/examples/voting/out/VotingRoundApp.ssa.ir @@ -172,7 +172,7 @@ contract examples.voting.voting.VotingRoundApp: subroutine examples.voting.voting.VotingRoundApp.close() -> void: block@0: // L108 algopy.ensure_budget(20000u, 0u) - let (close_time_exists%0#0: any, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") + let (close_time_exists%0#0: uint64, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") let tmp%0#0: uint64 = (! close_time_exists%1#0) (assert tmp%0#0) // Already closed let new_state_value%0#0: uint64 = (global LatestTimestamp) @@ -492,7 +492,7 @@ contract examples.voting.voting.VotingRoundApp: (assert is_bootstrapped_exists%0#0) // check is_bootstrapped exists goto is_bootstrapped_value%0#0 ? block@1 : block@5 block@1: // and_contd_L205 - let (close_time_exists%0#0: any, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") + let (close_time_exists%0#0: uint64, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") goto close_time_exists%1#0 ? block@5 : block@2 block@2: // and_contd_L205 let (start_time_value%0#0: uint64, start_time_exists%0#0: uint64) = (app_global_get_ex 0u "start_time") diff --git a/examples/voting/out/VotingRoundApp.ssa.opt_pass_1.ir b/examples/voting/out/VotingRoundApp.ssa.opt_pass_1.ir index 106f73cfe3..57242196a9 100644 --- a/examples/voting/out/VotingRoundApp.ssa.opt_pass_1.ir +++ b/examples/voting/out/VotingRoundApp.ssa.opt_pass_1.ir @@ -157,7 +157,7 @@ contract examples.voting.voting.VotingRoundApp: subroutine examples.voting.voting.VotingRoundApp.close() -> void: block@0: // L108 algopy.ensure_budget(20000u, 0u) - let (close_time_exists%0#0: any, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") + let (close_time_exists%0#0: uint64, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") let tmp%0#0: uint64 = (! close_time_exists%1#0) (assert tmp%0#0) // Already closed let new_state_value%0#0: uint64 = (global LatestTimestamp) @@ -337,7 +337,7 @@ contract examples.voting.voting.VotingRoundApp: (assert is_bootstrapped_exists%0#0) // check is_bootstrapped exists goto is_bootstrapped_value%0#0 ? block@1 : block@5 block@1: // and_contd_L205 - let (close_time_exists%0#0: any, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") + let (close_time_exists%0#0: uint64, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") goto close_time_exists%1#0 ? block@5 : block@2 block@2: // and_contd_L205 let (start_time_value%0#0: uint64, start_time_exists%0#0: uint64) = (app_global_get_ex 0u "start_time") diff --git a/examples/voting/out/VotingRoundApp.ssa.opt_pass_2.ir b/examples/voting/out/VotingRoundApp.ssa.opt_pass_2.ir index e465bd20eb..457bcec115 100644 --- a/examples/voting/out/VotingRoundApp.ssa.opt_pass_2.ir +++ b/examples/voting/out/VotingRoundApp.ssa.opt_pass_2.ir @@ -157,7 +157,7 @@ contract examples.voting.voting.VotingRoundApp: subroutine examples.voting.voting.VotingRoundApp.close() -> void: block@0: // L108 algopy.ensure_budget(20000u, 0u) - let (close_time_exists%0#0: any, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") + let (close_time_exists%0#0: uint64, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") let tmp%0#0: uint64 = (! close_time_exists%1#0) (assert tmp%0#0) // Already closed let new_state_value%0#0: uint64 = (global LatestTimestamp) @@ -334,7 +334,7 @@ contract examples.voting.voting.VotingRoundApp: (assert is_bootstrapped_exists%0#0) // check is_bootstrapped exists goto is_bootstrapped_value%0#0 ? block@1 : block@5 block@1: // and_contd_L205 - let (close_time_exists%0#0: any, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") + let (close_time_exists%0#0: uint64, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") goto close_time_exists%1#0 ? block@5 : block@2 block@2: // and_contd_L205 let (start_time_value%0#0: uint64, start_time_exists%0#0: uint64) = (app_global_get_ex 0u "start_time") diff --git a/examples/voting/out_O2/VotingRoundApp.destructured.ir b/examples/voting/out_O2/VotingRoundApp.destructured.ir index a397a9d7af..4a98280aff 100644 --- a/examples/voting/out_O2/VotingRoundApp.destructured.ir +++ b/examples/voting/out_O2/VotingRoundApp.destructured.ir @@ -155,7 +155,7 @@ contract examples.voting.voting.VotingRoundApp: subroutine examples.voting.voting.VotingRoundApp.close() -> void: block@0: // L108 algopy.ensure_budget(20000u, 0u) - let (close_time_exists%0#0: any, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") + let (close_time_exists%0#0: uint64, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") let tmp%0#0: uint64 = (! close_time_exists%1#0) (assert tmp%0#0) // Already closed let new_state_value%0#0: uint64 = (global LatestTimestamp) @@ -338,7 +338,7 @@ contract examples.voting.voting.VotingRoundApp: (assert is_bootstrapped_exists%0#0) // check is_bootstrapped exists goto is_bootstrapped_value%0#0 ? block@1 : block@5 block@1: // and_contd_L205 - let (close_time_exists%0#0: any, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") + let (close_time_exists%0#0: uint64, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") goto close_time_exists%1#0 ? block@5 : block@2 block@2: // and_contd_L205 let (start_time_value%0#0: uint64, start_time_exists%0#0: uint64) = (app_global_get_ex 0u "start_time") diff --git a/examples/voting/out_unoptimized/VotingRoundApp.destructured.ir b/examples/voting/out_unoptimized/VotingRoundApp.destructured.ir index 9a14b83a4f..9ea82181e2 100644 --- a/examples/voting/out_unoptimized/VotingRoundApp.destructured.ir +++ b/examples/voting/out_unoptimized/VotingRoundApp.destructured.ir @@ -170,7 +170,7 @@ contract examples.voting.voting.VotingRoundApp: subroutine examples.voting.voting.VotingRoundApp.close() -> void: block@0: // L108 algopy.ensure_budget(20000u, 0u) - let (close_time_exists%0#0: any, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") + let (close_time_exists%0#0: uint64, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") let tmp%0#0: uint64 = (! close_time_exists%1#0) (assert tmp%0#0) // Already closed let new_state_value%0#0: uint64 = (global LatestTimestamp) @@ -378,7 +378,7 @@ contract examples.voting.voting.VotingRoundApp: (assert is_bootstrapped_exists%0#0) // check is_bootstrapped exists goto is_bootstrapped_value%0#0 ? block@1 : block@5 block@1: // and_contd_L205 - let (close_time_exists%0#0: any, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") + let (close_time_exists%0#0: uint64, close_time_exists%1#0: uint64) = (app_global_get_ex 0u "close_time") goto close_time_exists%1#0 ? block@5 : block@2 block@2: // and_contd_L205 let (start_time_value%0#0: uint64, start_time_exists%0#0: uint64) = (app_global_get_ex 0u "start_time") diff --git a/src/puya/ir/builder/_utils.py b/src/puya/ir/builder/_utils.py index 630302c1b8..8623d385ff 100644 --- a/src/puya/ir/builder/_utils.py +++ b/src/puya/ir/builder/_utils.py @@ -1,6 +1,8 @@ import typing from collections.abc import Iterator, Sequence +import attrs + from puya.avm_type import AVMType from puya.awst import nodes as awst_nodes from puya.errors import InternalError @@ -148,6 +150,7 @@ def assign_intrinsic_op( args: Sequence[int | bytes | Value], source_location: SourceLocation | None, immediates: list[int | str] | None = None, + return_type: Sequence[AVMType] | None = None, ) -> Sequence[Register]: def map_arg(arg: int | bytes | Value) -> Value: match arg: @@ -156,35 +159,36 @@ def map_arg(arg: int | bytes | Value) -> Value: case bytes(b_val): return BytesConstant( value=b_val, - source_location=source_location, encoding=AVMBytesEncoding.base16, + source_location=source_location, ) case _: return arg + intrinsic = Intrinsic( + op=op, + immediates=immediates or [], + args=[map_arg(a) for a in args], + types=( + return_type + if return_type is not None + else typing.cast(Sequence[AVMType], attrs.NOTHING) + ), + source_location=source_location, + ) if isinstance(target, str): return assign( context, temp_description=target, + source=intrinsic, source_location=source_location, - source=Intrinsic( - op=op, - immediates=immediates or list[int | str](), - args=[map_arg(a) for a in args], - source_location=source_location, - ), ) else: return assign( context, names=[(target.name, source_location)], + source=intrinsic, source_location=source_location, - source=Intrinsic( - op=op, - immediates=immediates or list[int | str](), - args=[map_arg(a) for a in args], - source_location=source_location, - ), ) diff --git a/src/puya/ir/builder/arc4.py b/src/puya/ir/builder/arc4.py index 692ef822d3..fc6ce23673 100644 --- a/src/puya/ir/builder/arc4.py +++ b/src/puya/ir/builder/arc4.py @@ -330,13 +330,10 @@ def append_to_buffer(item: Value) -> None: ) assign_buffer( - Intrinsic( - op=AVMOp.setbit, - args=[ - encoded_tuple_buffer, - UInt64Constant(value=before_header, source_location=expr_loc), - is_true, - ], + _set_bit( + value=encoded_tuple_buffer, + index=before_header, + bit=is_true, source_location=expr_loc, ) ) @@ -369,6 +366,18 @@ def append_to_buffer(item: Value) -> None: return encoded_tuple_buffer +def _set_bit( + *, value: Value, index: int, bit: Value, source_location: SourceLocation | None +) -> Intrinsic: + index_const = UInt64Constant(value=index, source_location=source_location) + return Intrinsic( + op=AVMOp.setbit, + args=[value, index_const, bit], + types=[value.atype], + source_location=source_location, + ) + + def encode_arc4_array(context: IRFunctionBuildContext, expr: awst_nodes.NewArray) -> ValueProvider: len_prefix = ( len(expr.values).to_bytes(2, "big") @@ -410,16 +419,10 @@ def encode_arc4_array(context: IRFunctionBuildContext, expr: awst_nodes.NewArray ), source_location=expr_loc, ) - new_array_data_value = Intrinsic( - op=AVMOp.setbit, - args=[ - array_data, - UInt64Constant( - value=index + (len(len_prefix) * 8), - source_location=expr_loc, - ), - is_true, - ], + new_array_data_value = _set_bit( + value=array_data, + index=index + 8 * len(len_prefix), + bit=is_true, source_location=expr_loc, ) array_data = reassign(context, array_data, new_array_data_value, expr_loc) @@ -673,7 +676,8 @@ def _arc4_replace_struct_item( target="updated_data", source_location=source_location, op=AVMOp.setbit, - args=[base, header_up_to_item, is_true], + args=(base, header_up_to_item, is_true), + return_type=[base.atype], ) return updated_data else: @@ -1334,11 +1338,8 @@ def _arc4_replace_array_item( target="updated_target", source_location=source_location, op=AVMOp.setbit, - args=[ - base, - write_offset, - is_true, - ], + args=(base, write_offset, is_true), + return_type=[base.atype], ) else: (updated_target,) = assign_intrinsic_op( @@ -1640,17 +1641,10 @@ def _assert_index_in_bounds( ) -def encode_arc4_bool(value: Value, source_location: SourceLocation) -> ValueProvider: - return Intrinsic( - op=AVMOp.setbit, - args=[ - BytesConstant( - value=0x00.to_bytes(1, "big"), - source_location=source_location, - encoding=AVMBytesEncoding.base16, - ), - UInt64Constant(value=0, source_location=None), - value, - ], +def encode_arc4_bool(bit: Value, source_location: SourceLocation) -> ValueProvider: + value = BytesConstant( + value=0x00.to_bytes(1, "big"), source_location=source_location, + encoding=AVMBytesEncoding.base16, ) + return _set_bit(value=value, index=0, bit=bit, source_location=source_location) diff --git a/src/puya/ir/builder/main.py b/src/puya/ir/builder/main.py index 6c540fdf48..a48443ec94 100644 --- a/src/puya/ir/builder/main.py +++ b/src/puya/ir/builder/main.py @@ -8,18 +8,11 @@ nodes as awst_nodes, wtypes, ) -from puya.awst.nodes import ( - BigUIntBinaryOperator, - UInt64BinaryOperator, -) +from puya.awst.nodes import BigUIntBinaryOperator, UInt64BinaryOperator from puya.errors import CodeError, InternalError from puya.ir.avm_ops import AVMOp from puya.ir.builder import arc4, flow_control, state -from puya.ir.builder._utils import ( - assert_value, - assign, - mkblocks, -) +from puya.ir.builder._utils import assert_value, assign, mkblocks from puya.ir.builder.assignment import handle_assignment, handle_assignment_expr from puya.ir.builder.callsub import visit_subroutine_call_expression from puya.ir.builder.iteration import handle_for_in_loop @@ -250,18 +243,12 @@ def visit_numeric_comparison_expression( ) -> TExpression: left = self.visit_and_materialise_single(expr.lhs) right = self.visit_and_materialise_single(expr.rhs) - if not (left.atype & right.atype): + if left.atype != right.atype: raise InternalError( "Numeric comparison between different numeric types", expr.source_location ) - if left.atype != AVMType.any: - atype = left.atype - elif right.atype != AVMType.any: - atype = right.atype - else: - raise InternalError("Numeric comparison mapped to any type", expr.source_location) op_code = expr.operator.value - if atype == AVMType.bytes: + if left.atype == AVMType.bytes: op_code = "b" + op_code try: @@ -754,12 +741,7 @@ def visit_return_statement(self, statement: awst_nodes.ReturnStatement) -> TStat ) ) return_types = [r.atype for r in result] - if not ( - len(return_types) == len(self.context.subroutine.returns) - and all( - a & b for a, b in zip(return_types, self.context.subroutine.returns, strict=True) - ) - ): + if return_types != self.context.subroutine.returns: raise CodeError( f"Invalid return type {return_types} in {self.context.function.full_name}," f" should be {self.context.subroutine.returns}", diff --git a/src/puya/ir/builder/state.py b/src/puya/ir/builder/state.py index e0de774d20..5e11523931 100644 --- a/src/puya/ir/builder/state.py +++ b/src/puya/ir/builder/state.py @@ -63,6 +63,7 @@ def visit_state_get(context: IRFunctionBuildContext, expr: awst_nodes.StateGet) return Intrinsic( op=AVMOp.select, args=[default, maybe_value, exists], + types=[wtype_to_avm_type(expr.wtype)], source_location=expr.source_location, ) @@ -132,4 +133,12 @@ def _build_state_get_ex( op = AVMOp.app_local_get_ex account = context.visitor.visit_and_materialise_single(expr.account) args.insert(0, account) - return Intrinsic(op=op, args=args, source_location=source_location) + return Intrinsic( + op=op, + args=args, + source_location=source_location, + types=[ + wtype_to_avm_type(state_def.storage_wtype), + AVMType.uint64, + ], + ) diff --git a/src/puya/ir/models.py b/src/puya/ir/models.py index e0e3cbb24d..b80e3aedb6 100644 --- a/src/puya/ir/models.py +++ b/src/puya/ir/models.py @@ -4,35 +4,20 @@ import attrs +from puya import log from puya.avm_type import AVMType from puya.errors import CodeError, InternalError from puya.ir.avm_ops import AVMOp -from puya.ir.avm_ops_models import OpSignature, Variant +from puya.ir.avm_ops_models import OpSignature, StackType, Variant from puya.ir.types_ import AVMBytesEncoding, stack_type_to_avm_type from puya.ir.visitor import IRVisitor from puya.models import ContractMetaData, LogicSignatureMetaData from puya.parse import SourceLocation from puya.utils import unique -T = t.TypeVar("T") - +logger = log.get_logger(__name__) -def _check_stack_types( - error_format: str, - target_types: Sequence[AVMType], - source_types: Sequence[AVMType], - source_location: SourceLocation | None, -) -> None: - if len(target_types) != len(source_types) or not all( - a & b for a, b in zip(target_types, source_types, strict=True) - ): - raise CodeError( - error_format.format( - source_types=f"({', '.join(map(str, source_types))})", - target_types=f"({', '.join(map(str, target_types))})", - ), - source_location, - ) +T = t.TypeVar("T") class Context(t.Protocol): @@ -89,6 +74,11 @@ class Value(ValueProvider, abc.ABC): atype: AVMType = attrs.field(repr=lambda x: x.name) + @atype.validator + def _validate_not_any(self, _attribute: object, atype: AVMType) -> None: + if atype is AVMType.any: + raise InternalError(f"Register has type any: {self}", self.source_location) + @property def types(self) -> Sequence[AVMType]: return (self.atype,) @@ -191,7 +181,7 @@ def _frozen_data(self) -> object: @args.validator def check_args(self, _attribute: object, args: Sequence[PhiArgument]) -> None: - bad_args = [arg for arg in args if not (arg.value.atype & self.atype)] + bad_args = [arg for arg in args if arg.value.atype != self.atype] if bad_args: raise InternalError(f"Phi node received arguments with unexpected type(s): {bad_args}") seen_blocks = set[BasicBlock]() @@ -291,20 +281,6 @@ class Intrinsic(Op, ValueProvider): def _default_types(self) -> tuple[AVMType, ...]: return tuple(map(stack_type_to_avm_type, self.op_signature.returns)) - @_types.validator - def _validate_types(self, _attribute: object, types: Sequence[AVMType]) -> None: - expected_types = self._default_types() - received_types = tuple(types) - desc = f"({self.op} {' '.join(map(str, self.immediates))}): " - _check_stack_types( - "Incompatible return types on Intrinsic" - + desc - + " received = {source_types}, expected = {target_types}", - expected_types, - received_types, - self.source_location, - ) - def _frozen_data(self) -> object: return self.op, tuple(self.immediates), tuple(self.args), self.comment @@ -323,19 +299,39 @@ def op_signature(self) -> OpSignature: def op_variant(self) -> Variant: return self.op.get_variant(self.immediates) + @_types.validator + def _validate_types(self, _attribute: object, types: Sequence[AVMType]) -> None: + if AVMType.any in types: + raise InternalError( + f"Intrinsic op {self.op.name} requires return type information", + self.source_location, + ) + self._check_stack_types("return", self.op_signature.returns, types) + @args.validator def _validate_args(self, _attribute: object, args: list[Value]) -> None: - expected_args = [stack_type_to_avm_type(a) for a in self.op_signature.args] - received_args = [a.atype for a in args] - desc = f"({self.op} {' '.join(map(str, self.immediates))}): " - _check_stack_types( - "Incompatible argument types on Intrinsic" - + desc - + " received = {source_types}, expected = {target_types}", - expected_args, - received_args, - self.source_location, - ) + arg_types = [a.atype for a in args] + self._check_stack_types("argument", self.op_signature.args, arg_types) + + def _check_stack_types( + self, + context: str, + expected_types: Sequence[StackType], + source_types: Sequence[AVMType], + ) -> None: + target_types = [stack_type_to_avm_type(a) for a in expected_types] + if len(target_types) != len(source_types) or not all( + a & b for a, b in zip(target_types, source_types, strict=True) + ): + logger.error( + ( + f"Incompatible {context} types on Intrinsic" + f"({self.op} {' '.join(map(str, self.immediates))}): " + f" received = ({', '.join(map(str, source_types))})," + f" expected = ({', '.join(map(str, target_types))})" + ), + location=self.source_location, + ) @attrs.define(eq=False) @@ -389,13 +385,14 @@ def _frozen_data(self) -> object: @source.validator def _check_types(self, _attribute: object, source: ValueProvider) -> None: - _check_stack_types( - "Incompatible types on assignment: " - "source = {source_types}, target = {target_types}", - [target.atype for target in self.targets], - list(source.types), - self.source_location, - ) + target_type = [target.atype for target in self.targets] + source_type = list(source.types) + if target_type != source_type: + raise CodeError( + f"Incompatible types on assignment:" + f" source = {source_type}, target = {target_type}", + self.source_location, + ) def accept(self, visitor: IRVisitor[T]) -> T: return visitor.visit_assignment(self) @@ -566,7 +563,7 @@ class Switch(ControlOp): @cases.validator def _check_cases(self, _attribute: object, cases: dict[Value, BasicBlock]) -> None: - if not all(case.atype & self.value.atype for case in cases): + if any(case.atype != self.value.atype for case in cases): raise CodeError( "Switch cases types mismatch with value to match", self.source_location ) @@ -684,7 +681,7 @@ class Subroutine(Context): body: list[BasicBlock] = attrs.field() @property - def returns(self) -> Sequence[AVMType]: + def returns(self) -> list[AVMType]: return [*self._returns, *(p.atype for p in self.parameters if p.implicit_return)] @body.validator diff --git a/src/puya/ir/optimize/intrinsic_simplification.py b/src/puya/ir/optimize/intrinsic_simplification.py index 41c352364d..181db010bb 100644 --- a/src/puya/ir/optimize/intrinsic_simplification.py +++ b/src/puya/ir/optimize/intrinsic_simplification.py @@ -187,7 +187,9 @@ def _try_convert_stack_args_to_immediates(intrinsic: Intrinsic) -> Intrinsic | N def _try_fold_intrinsic( subroutine: models.Subroutine, intrinsic: models.Intrinsic ) -> models.ValueProvider | None: - if intrinsic.op in (AVMOp.loads, AVMOp.gloads) or (intrinsic.op.code.startswith("box_")): + if intrinsic.op in (AVMOp.loads, AVMOp.gloads) or ( + intrinsic.op.code.startswith(("box_", "app_global_", "app_local_")) + ): # can't simplify these return None elif intrinsic.op in (AVMOp.itob, AVMOp.bzero): diff --git a/src/puya/mir/models.py b/src/puya/mir/models.py index 5af875214d..a5fdfce24b 100644 --- a/src/puya/mir/models.py +++ b/src/puya/mir/models.py @@ -121,7 +121,12 @@ class StoreOp(MemoryOp, abc.ABC): """An op for storing values""" local_id: str - atype: AVMType + atype: AVMType = attrs.field() + + @atype.validator + def _validate_not_any(self, _attribute: object, atype: AVMType) -> None: + if atype is AVMType.any: + raise InternalError(f"Register has type any: {self}", self.source_location) @attrs.frozen(kw_only=True, eq=False) @@ -129,7 +134,12 @@ class LoadOp(MemoryOp, abc.ABC): """An op for loading values""" local_id: str - atype: AVMType + atype: AVMType = attrs.field() + + @atype.validator + def _validate_not_any(self, _attribute: object, atype: AVMType) -> None: + if atype is AVMType.any: + raise InternalError(f"Register has type any: {self}", self.source_location) @attrs.frozen(eq=False) diff --git a/src/puya/mir/stack_allocation/frame_allocation.py b/src/puya/mir/stack_allocation/frame_allocation.py index 24b92c8ac4..a813a31ab3 100644 --- a/src/puya/mir/stack_allocation/frame_allocation.py +++ b/src/puya/mir/stack_allocation/frame_allocation.py @@ -49,11 +49,15 @@ def get_allocate_op( variable_type_mapping = get_local_id_types(subroutine) for variable in all_variables: match variable_type_mapping.get(variable): - # treat any as uint when pre-allocating - case AVMType.uint64 | AVMType.any: + case AVMType.uint64: uint64_vars.append(variable) case AVMType.bytes: byte_vars.append(variable) + case AVMType.any: + raise InternalError( + "Encountered AVM type any on preamble construction", + subroutine.preamble.source_location, + ) case None: raise CodeError( f"Undefined register: {variable}." diff --git a/templates/.macros.j2 b/templates/.macros.j2 index eb90675311..b03f6592e0 100644 --- a/templates/.macros.j2 +++ b/templates/.macros.j2 @@ -4,12 +4,12 @@ ### {{ type_ | capitalize }} {% for commit in type_commits[type_] %} * {{ commit["descriptions"][0] }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }})) -{% set skip_line = false -%} +{% set ns = namespace(skip_line=false) -%} {%- for line in commit["descriptions"][1:] -%} -{# skip co-author annotations in commit messages #} -{%- if "Co-authored-by:" in line -%} -{%- set skip_line = true -%} -{%- elif not skip_line %} +{# skip co-author annotations in commit messages and internal notes #} +{%- if "---------" in line -%} +{%- set ns.skip_line = true -%} +{%- elif not ns.skip_line %} {{ line | indent(2, first=True, blank=True)}} {% endif -%} {%- endfor %} diff --git a/test_cases/arc4_types/out/Arc4BoolEvalContract.ssa.ir b/test_cases/arc4_types/out/Arc4BoolEvalContract.ssa.ir index c01318ae11..c014fddfa3 100644 --- a/test_cases/arc4_types/out/Arc4BoolEvalContract.ssa.ir +++ b/test_cases/arc4_types/out/Arc4BoolEvalContract.ssa.ir @@ -2,10 +2,10 @@ contract test_cases.arc4_types.bool_eval.Arc4BoolEvalContract: program approval: subroutine test_cases.arc4_types.bool_eval.Arc4BoolEvalContract.approval_program() -> uint64: block@0: // L12 - let tmp%0#0: any = (setbit 0x00 0u 0u) + let tmp%0#0: bytes = (setbit 0x00 0u 0u) let tmp%1#0: uint64 = (== tmp%0#0 0x00) (assert tmp%1#0) - let tmp%2#0: any = (setbit 0x00 0u 1u) + let tmp%2#0: bytes = (setbit 0x00 0u 1u) let tmp%3#0: uint64 = (!= tmp%2#0 0x00) (assert tmp%3#0) let tmp%4#0: uint64 = (== "\x00\x00" 0x0000) @@ -79,8 +79,8 @@ contract test_cases.arc4_types.bool_eval.Arc4BoolEvalContract: let dynamic_arr#1: bytes = concat_result%0#0 let tmp%35#0: uint64 = (!= dynamic_arr#1 0x0000) (assert tmp%35#0) - let tmp%36#0: any = (setbit 0x00 0u 0u) - let tmp%37#0: any = (setbit 0x00 0u 0u) + let tmp%36#0: bytes = (setbit 0x00 0u 0u) + let tmp%37#0: bytes = (setbit 0x00 0u 0u) let tmp%38#0: uint64 = (== tmp%36#0 tmp%37#0) (assert tmp%38#0) return 1u diff --git a/test_cases/arc4_types/out/Arc4BoolEvalContract.ssa.opt_pass_1.ir b/test_cases/arc4_types/out/Arc4BoolEvalContract.ssa.opt_pass_1.ir index e23e5f7b9c..aea8609c2a 100644 --- a/test_cases/arc4_types/out/Arc4BoolEvalContract.ssa.opt_pass_1.ir +++ b/test_cases/arc4_types/out/Arc4BoolEvalContract.ssa.opt_pass_1.ir @@ -2,10 +2,10 @@ contract test_cases.arc4_types.bool_eval.Arc4BoolEvalContract: program approval: subroutine test_cases.arc4_types.bool_eval.Arc4BoolEvalContract.approval_program() -> uint64: block@0: // L12 - let tmp%0#0: any = 0x00 + let tmp%0#0: bytes = 0x00 let tmp%1#0: uint64 = (== tmp%0#0 0x00) (assert tmp%1#0) - let tmp%2#0: any = 0x80 + let tmp%2#0: bytes = 0x80 let tmp%3#0: uint64 = (!= tmp%2#0 0x00) (assert tmp%3#0) let tmp%4#0: uint64 = 1u @@ -74,8 +74,8 @@ contract test_cases.arc4_types.bool_eval.Arc4BoolEvalContract: let dynamic_arr#1: bytes = (concat len_16_bit%0#0 concatenated%0#0) let tmp%35#0: uint64 = (!= dynamic_arr#1 0x0000) (assert tmp%35#0) - let tmp%36#0: any = 0x00 - let tmp%37#0: any = 0x00 + let tmp%36#0: bytes = 0x00 + let tmp%37#0: bytes = 0x00 let tmp%38#0: uint64 = (== tmp%36#0 tmp%37#0) (assert tmp%38#0) return 1u diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.approval.mir b/test_cases/arc4_types/out/Arc4BoolTypeContract.approval.mir index 85fe07da69..8712167aaf 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.approval.mir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.approval.mir @@ -32,7 +32,7 @@ test_stuff_block@0: // virtual: load tmp%2#0 from l-stack (no copy) (𝕡) true#0,false#0 | tmp%0#0,tmp%1#0,tmp%2#0 assert not false.native arc4_types/bool.py:50 assert // (𝕡) true#0,false#0 | tmp%0#0,tmp%1#0 assert not false.native arc4_types/bool.py:50 byte 0x00 // (𝕡) true#0,false#0 | tmp%0#0,tmp%1#0,0x00 ARC4Bool(true.native) arc4_types/bool.py:52 - int 0 // (𝕡) true#0,false#0 | tmp%0#0,tmp%1#0,0x00,0 + int 0 // (𝕡) true#0,false#0 | tmp%0#0,tmp%1#0,0x00,0 ARC4Bool(true.native) arc4_types/bool.py:52 uncover 3 // load tmp%0#0 from l-stack (no copy) (𝕡) true#0,false#0 | tmp%1#0,0x00,0,tmp%0#0 ARC4Bool(true.native) arc4_types/bool.py:52 setbit // (𝕡) true#0,false#0 | tmp%1#0,{setbit} ARC4Bool(true.native) arc4_types/bool.py:52 // virtual: store tmp%4#0 to l-stack (no copy) (𝕡) true#0,false#0 | tmp%1#0,tmp%4#0 ARC4Bool(true.native) arc4_types/bool.py:52 @@ -43,7 +43,7 @@ test_stuff_block@0: // virtual: load tmp%5#0 from l-stack (no copy) (𝕡) true#0,false#0 | tmp%1#0,tmp%5#0 assert true == ARC4Bool(true.native) arc4_types/bool.py:52 assert // (𝕡) true#0,false#0 | tmp%1#0 assert true == ARC4Bool(true.native) arc4_types/bool.py:52 byte 0x00 // (𝕡) true#0,false#0 | tmp%1#0,0x00 ARC4Bool(false.native) arc4_types/bool.py:53 - int 0 // (𝕡) true#0,false#0 | tmp%1#0,0x00,0 + int 0 // (𝕡) true#0,false#0 | tmp%1#0,0x00,0 ARC4Bool(false.native) arc4_types/bool.py:53 uncover 2 // load tmp%1#0 from l-stack (no copy) (𝕡) true#0,false#0 | 0x00,0,tmp%1#0 ARC4Bool(false.native) arc4_types/bool.py:53 setbit // (𝕡) true#0,false#0 | {setbit} ARC4Bool(false.native) arc4_types/bool.py:53 // virtual: store tmp%7#0 to l-stack (no copy) (𝕡) true#0,false#0 | tmp%7#0 ARC4Bool(false.native) arc4_types/bool.py:53 diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.destructured.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.destructured.ir index 8428fd8dfc..1554ca7754 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.destructured.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.destructured.ir @@ -12,10 +12,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.ir index 5623e656ed..ee8ecd8ace 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.ir @@ -2,51 +2,51 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: program approval: subroutine test_cases.arc4_types.bool.Arc4BoolTypeContract.approval_program() -> uint64: block@0: // L12 - let tmp%0#0: any = (setbit 0x00 0u 1u) - let tmp%1#0: any = (setbit 0x00 0u 0u) + let tmp%0#0: bytes = (setbit 0x00 0u 1u) + let tmp%1#0: bytes = (setbit 0x00 0u 0u) test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(tmp%0#0, tmp%1#0) - let tmp%2#0: any = (setbit 0x00 0u 1u) - let tmp%3#0: any = (setbit 0x00 0u 1u) - let tmp%4#0: any = (setbit 0x00 0u 1u) - let tmp%5#0: any = (setbit 0x00 0u 1u) - let tmp%6#0: any = (setbit 0x00 0u 1u) - let tmp%7#0: any = (setbit 0x00 0u 1u) - let tmp%8#0: any = (setbit 0x00 0u 1u) - let tmp%9#0: any = (setbit 0x00 0u 1u) - let tmp%10#0: any = (setbit 0x00 0u 1u) - let tmp%11#0: any = (setbit 0x00 0u 1u) - let tmp%12#0: any = (setbit 0x00 0u 1u) - let tmp%13#0: any = (setbit 0x00 0u 1u) + let tmp%2#0: bytes = (setbit 0x00 0u 1u) + let tmp%3#0: bytes = (setbit 0x00 0u 1u) + let tmp%4#0: bytes = (setbit 0x00 0u 1u) + let tmp%5#0: bytes = (setbit 0x00 0u 1u) + let tmp%6#0: bytes = (setbit 0x00 0u 1u) + let tmp%7#0: bytes = (setbit 0x00 0u 1u) + let tmp%8#0: bytes = (setbit 0x00 0u 1u) + let tmp%9#0: bytes = (setbit 0x00 0u 1u) + let tmp%10#0: bytes = (setbit 0x00 0u 1u) + let tmp%11#0: bytes = (setbit 0x00 0u 1u) + let tmp%12#0: bytes = (setbit 0x00 0u 1u) + let tmp%13#0: bytes = (setbit 0x00 0u 1u) let array_data%0#0: bytes = 0x let array_data%0#1: bytes = (concat array_data%0#0 tmp%2#0) let is_true%0#0: uint64 = (getbit tmp%3#0 0u) - let array_data%0#2: any = (setbit array_data%0#1 1u is_true%0#0) + let array_data%0#2: bytes = (setbit array_data%0#1 1u is_true%0#0) let is_true%1#0: uint64 = (getbit tmp%4#0 0u) - let array_data%0#3: any = (setbit array_data%0#2 2u is_true%1#0) + let array_data%0#3: bytes = (setbit array_data%0#2 2u is_true%1#0) let is_true%2#0: uint64 = (getbit tmp%5#0 0u) - let array_data%0#4: any = (setbit array_data%0#3 3u is_true%2#0) + let array_data%0#4: bytes = (setbit array_data%0#3 3u is_true%2#0) let is_true%3#0: uint64 = (getbit tmp%6#0 0u) - let array_data%0#5: any = (setbit array_data%0#4 4u is_true%3#0) + let array_data%0#5: bytes = (setbit array_data%0#4 4u is_true%3#0) let is_true%4#0: uint64 = (getbit tmp%7#0 0u) - let array_data%0#6: any = (setbit array_data%0#5 5u is_true%4#0) + let array_data%0#6: bytes = (setbit array_data%0#5 5u is_true%4#0) let is_true%5#0: uint64 = (getbit tmp%8#0 0u) - let array_data%0#7: any = (setbit array_data%0#6 6u is_true%5#0) + let array_data%0#7: bytes = (setbit array_data%0#6 6u is_true%5#0) let is_true%6#0: uint64 = (getbit tmp%9#0 0u) - let array_data%0#8: any = (setbit array_data%0#7 7u is_true%6#0) + let array_data%0#8: bytes = (setbit array_data%0#7 7u is_true%6#0) let array_data%0#9: bytes = (concat array_data%0#8 tmp%10#0) let is_true%7#0: uint64 = (getbit tmp%11#0 0u) - let array_data%0#10: any = (setbit array_data%0#9 9u is_true%7#0) + let array_data%0#10: bytes = (setbit array_data%0#9 9u is_true%7#0) let is_true%8#0: uint64 = (getbit tmp%12#0 0u) - let array_data%0#11: any = (setbit array_data%0#10 10u is_true%8#0) + let array_data%0#11: bytes = (setbit array_data%0#10 10u is_true%8#0) let is_true%9#0: uint64 = (getbit tmp%13#0 0u) - let array_data%0#12: any = (setbit array_data%0#11 11u is_true%9#0) - let static_boolean_array#0: any = array_data%0#12 + let array_data%0#12: bytes = (setbit array_data%0#11 11u is_true%9#0) + let static_boolean_array#0: bytes = array_data%0#12 let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let item_index%0#0: uint64 = (* 0u 1u) let is_true%10#0: uint64 = (getbit static_boolean_array#0 item_index%0#0) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) - let tmp%16#0: any = (setbit 0x00 0u 1u) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) + let tmp%16#0: bytes = (setbit 0x00 0u 1u) let tmp%17#0: uint64 = (== tmp%15#0 tmp%16#0) (assert tmp%17#0) // Single boolean can be unpacked let tmp%18#0: uint64 = (- 12u 1u) @@ -55,20 +55,20 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: (assert index_is_in_bounds%0#0) // Index access is out of bounds let item_index%1#0: uint64 = (* tmp%18#0 1u) let is_true%11#0: uint64 = (getbit static_boolean_array#0 item_index%1#0) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) - let tmp%20#0: any = (setbit 0x00 0u 1u) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) + let tmp%20#0: bytes = (setbit 0x00 0u 1u) let tmp%21#0: uint64 = (== tmp%19#0 tmp%20#0) (assert tmp%21#0) // Single boolean can be unpacked - let tmp%22#0: any = (setbit 0x00 0u 1u) - let tmp%23#0: any = (setbit 0x00 0u 0u) - let tmp%24#0: any = (setbit 0x00 0u 1u) + let tmp%22#0: bytes = (setbit 0x00 0u 1u) + let tmp%23#0: bytes = (setbit 0x00 0u 0u) + let tmp%24#0: bytes = (setbit 0x00 0u 1u) let array_data%1#0: bytes = 0x0003 let array_data%1#1: bytes = (concat array_data%1#0 tmp%22#0) let is_true%12#0: uint64 = (getbit tmp%23#0 0u) - let array_data%1#2: any = (setbit array_data%1#1 17u is_true%12#0) + let array_data%1#2: bytes = (setbit array_data%1#1 17u is_true%12#0) let is_true%13#0: uint64 = (getbit tmp%24#0 0u) - let array_data%1#3: any = (setbit array_data%1#2 18u is_true%13#0) - let dynamic_boolean_array#0: any = array_data%1#3 + let array_data%1#3: bytes = (setbit array_data%1#2 18u is_true%13#0) + let dynamic_boolean_array#0: bytes = array_data%1#3 let tmp%25#0: uint64 = (== dynamic_boolean_array#0 0x0003a0) (assert tmp%25#0) return 1u @@ -81,11 +81,11 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) let tmp%3#0: uint64 = (getbit true#0 0u) - let tmp%4#0: any = (setbit 0x00 0u tmp%3#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%3#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) let tmp%6#0: uint64 = (getbit false#0 0u) - let tmp%7#0: any = (setbit 0x00 0u tmp%6#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%6#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_1.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_1.ir index 3a4499c390..52fcc82fbc 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_1.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_1.ir @@ -2,49 +2,49 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: program approval: subroutine test_cases.arc4_types.bool.Arc4BoolTypeContract.approval_program() -> uint64: block@0: // L12 - let tmp%0#0: any = 0x80 - let tmp%1#0: any = 0x00 + let tmp%0#0: bytes = 0x80 + let tmp%1#0: bytes = 0x00 test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(tmp%0#0, tmp%1#0) - let tmp%2#0: any = 0x80 - let tmp%3#0: any = 0x80 - let tmp%4#0: any = 0x80 - let tmp%5#0: any = 0x80 - let tmp%6#0: any = 0x80 - let tmp%7#0: any = 0x80 - let tmp%8#0: any = 0x80 - let tmp%9#0: any = 0x80 - let tmp%10#0: any = 0x80 - let tmp%11#0: any = 0x80 - let tmp%12#0: any = 0x80 - let tmp%13#0: any = 0x80 + let tmp%2#0: bytes = 0x80 + let tmp%3#0: bytes = 0x80 + let tmp%4#0: bytes = 0x80 + let tmp%5#0: bytes = 0x80 + let tmp%6#0: bytes = 0x80 + let tmp%7#0: bytes = 0x80 + let tmp%8#0: bytes = 0x80 + let tmp%9#0: bytes = 0x80 + let tmp%10#0: bytes = 0x80 + let tmp%11#0: bytes = 0x80 + let tmp%12#0: bytes = 0x80 + let tmp%13#0: bytes = 0x80 let array_data%0#1: bytes = tmp%2#0 let is_true%0#0: uint64 = (getbit tmp%3#0 0u) - let array_data%0#2: any = (setbit array_data%0#1 1u is_true%0#0) + let array_data%0#2: bytes = (setbit array_data%0#1 1u is_true%0#0) let is_true%1#0: uint64 = (getbit tmp%4#0 0u) - let array_data%0#3: any = (setbit array_data%0#2 2u is_true%1#0) + let array_data%0#3: bytes = (setbit array_data%0#2 2u is_true%1#0) let is_true%2#0: uint64 = (getbit tmp%5#0 0u) - let array_data%0#4: any = (setbit array_data%0#3 3u is_true%2#0) + let array_data%0#4: bytes = (setbit array_data%0#3 3u is_true%2#0) let is_true%3#0: uint64 = (getbit tmp%6#0 0u) - let array_data%0#5: any = (setbit array_data%0#4 4u is_true%3#0) + let array_data%0#5: bytes = (setbit array_data%0#4 4u is_true%3#0) let is_true%4#0: uint64 = (getbit tmp%7#0 0u) - let array_data%0#6: any = (setbit array_data%0#5 5u is_true%4#0) + let array_data%0#6: bytes = (setbit array_data%0#5 5u is_true%4#0) let is_true%5#0: uint64 = (getbit tmp%8#0 0u) - let array_data%0#7: any = (setbit array_data%0#6 6u is_true%5#0) + let array_data%0#7: bytes = (setbit array_data%0#6 6u is_true%5#0) let is_true%6#0: uint64 = (getbit tmp%9#0 0u) - let array_data%0#8: any = (setbit array_data%0#7 7u is_true%6#0) + let array_data%0#8: bytes = (setbit array_data%0#7 7u is_true%6#0) let array_data%0#9: bytes = (concat array_data%0#8 tmp%10#0) let is_true%7#0: uint64 = (getbit tmp%11#0 0u) - let array_data%0#10: any = (setbit array_data%0#9 9u is_true%7#0) + let array_data%0#10: bytes = (setbit array_data%0#9 9u is_true%7#0) let is_true%8#0: uint64 = (getbit tmp%12#0 0u) - let array_data%0#11: any = (setbit array_data%0#10 10u is_true%8#0) + let array_data%0#11: bytes = (setbit array_data%0#10 10u is_true%8#0) let is_true%9#0: uint64 = (getbit tmp%13#0 0u) - let static_boolean_array#0: any = (setbit array_data%0#11 11u is_true%9#0) + let static_boolean_array#0: bytes = (setbit array_data%0#11 11u is_true%9#0) let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let item_index%0#0: uint64 = 0u let is_true%10#0: uint64 = (getbit static_boolean_array#0 item_index%0#0) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) - let tmp%16#0: any = 0x80 + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) + let tmp%16#0: bytes = 0x80 let tmp%17#0: uint64 = (== tmp%15#0 tmp%16#0) (assert tmp%17#0) // Single boolean can be unpacked let tmp%18#0: uint64 = 11u @@ -52,18 +52,18 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: (assert index_is_in_bounds%0#0) // Index access is out of bounds let item_index%1#0: uint64 = tmp%18#0 let is_true%11#0: uint64 = (getbit static_boolean_array#0 item_index%1#0) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) - let tmp%20#0: any = 0x80 + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) + let tmp%20#0: bytes = 0x80 let tmp%21#0: uint64 = (== tmp%19#0 tmp%20#0) (assert tmp%21#0) // Single boolean can be unpacked - let tmp%22#0: any = 0x80 - let tmp%23#0: any = 0x00 - let tmp%24#0: any = 0x80 + let tmp%22#0: bytes = 0x80 + let tmp%23#0: bytes = 0x00 + let tmp%24#0: bytes = 0x80 let array_data%1#1: bytes = (concat 0x0003 tmp%22#0) let is_true%12#0: uint64 = (getbit tmp%23#0 0u) - let array_data%1#2: any = (setbit array_data%1#1 17u is_true%12#0) + let array_data%1#2: bytes = (setbit array_data%1#1 17u is_true%12#0) let is_true%13#0: uint64 = (getbit tmp%24#0 0u) - let dynamic_boolean_array#0: any = (setbit array_data%1#2 18u is_true%13#0) + let dynamic_boolean_array#0: bytes = (setbit array_data%1#2 18u is_true%13#0) let tmp%25#0: uint64 = (== dynamic_boolean_array#0 0x0003a0) (assert tmp%25#0) return 1u @@ -75,10 +75,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_10.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_10.ir index 61e2286d3a..618cec50ce 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_10.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_10.ir @@ -4,17 +4,17 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: block@0: // L12 test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(0x80, 0x00) let array_data%0#9: bytes = 0xff80 - let array_data%0#10: any = (setbit array_data%0#9 9u 1u) - let array_data%0#11: any = (setbit array_data%0#10 10u 1u) - let static_boolean_array#0: any = (setbit array_data%0#11 11u 1u) + let array_data%0#10: bytes = (setbit array_data%0#9 9u 1u) + let array_data%0#11: bytes = (setbit array_data%0#10 10u 1u) + let static_boolean_array#0: bytes = (setbit array_data%0#11 11u 1u) let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let is_true%10#0: uint64 = (getbit static_boolean_array#0 0u) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) let tmp%17#0: uint64 = (== tmp%15#0 0x80) (assert tmp%17#0) // Single boolean can be unpacked let is_true%11#0: uint64 = (getbit static_boolean_array#0 11u) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) let tmp%21#0: uint64 = (== tmp%19#0 0x80) (assert tmp%21#0) // Single boolean can be unpacked return 1u @@ -26,10 +26,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_11.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_11.ir index ebb0e8db90..e480892774 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_11.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_11.ir @@ -3,17 +3,17 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: subroutine test_cases.arc4_types.bool.Arc4BoolTypeContract.approval_program() -> uint64: block@0: // L12 test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(0x80, 0x00) - let array_data%0#10: any = 0xffc0 - let array_data%0#11: any = (setbit array_data%0#10 10u 1u) - let static_boolean_array#0: any = (setbit array_data%0#11 11u 1u) + let array_data%0#10: bytes = 0xffc0 + let array_data%0#11: bytes = (setbit array_data%0#10 10u 1u) + let static_boolean_array#0: bytes = (setbit array_data%0#11 11u 1u) let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let is_true%10#0: uint64 = (getbit static_boolean_array#0 0u) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) let tmp%17#0: uint64 = (== tmp%15#0 0x80) (assert tmp%17#0) // Single boolean can be unpacked let is_true%11#0: uint64 = (getbit static_boolean_array#0 11u) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) let tmp%21#0: uint64 = (== tmp%19#0 0x80) (assert tmp%21#0) // Single boolean can be unpacked return 1u @@ -25,10 +25,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_12.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_12.ir index f90d37f733..905af9105e 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_12.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_12.ir @@ -3,16 +3,16 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: subroutine test_cases.arc4_types.bool.Arc4BoolTypeContract.approval_program() -> uint64: block@0: // L12 test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(0x80, 0x00) - let array_data%0#11: any = 0xffe0 - let static_boolean_array#0: any = (setbit array_data%0#11 11u 1u) + let array_data%0#11: bytes = 0xffe0 + let static_boolean_array#0: bytes = (setbit array_data%0#11 11u 1u) let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let is_true%10#0: uint64 = (getbit static_boolean_array#0 0u) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) let tmp%17#0: uint64 = (== tmp%15#0 0x80) (assert tmp%17#0) // Single boolean can be unpacked let is_true%11#0: uint64 = (getbit static_boolean_array#0 11u) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) let tmp%21#0: uint64 = (== tmp%19#0 0x80) (assert tmp%21#0) // Single boolean can be unpacked return 1u @@ -24,10 +24,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_13.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_13.ir index c3c8055f5f..774746959a 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_13.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_13.ir @@ -3,15 +3,15 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: subroutine test_cases.arc4_types.bool.Arc4BoolTypeContract.approval_program() -> uint64: block@0: // L12 test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(0x80, 0x00) - let static_boolean_array#0: any = 0xfff0 + let static_boolean_array#0: bytes = 0xfff0 let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let is_true%10#0: uint64 = (getbit static_boolean_array#0 0u) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) let tmp%17#0: uint64 = (== tmp%15#0 0x80) (assert tmp%17#0) // Single boolean can be unpacked let is_true%11#0: uint64 = (getbit static_boolean_array#0 11u) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) let tmp%21#0: uint64 = (== tmp%19#0 0x80) (assert tmp%21#0) // Single boolean can be unpacked return 1u @@ -23,10 +23,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_14.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_14.ir index 79d439f0f8..1f977df6fc 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_14.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_14.ir @@ -6,11 +6,11 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%14#0: uint64 = 1u (assert tmp%14#0) let is_true%10#0: uint64 = 1u - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) let tmp%17#0: uint64 = (== tmp%15#0 0x80) (assert tmp%17#0) // Single boolean can be unpacked let is_true%11#0: uint64 = 1u - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) let tmp%21#0: uint64 = (== tmp%19#0 0x80) (assert tmp%21#0) // Single boolean can be unpacked return 1u @@ -22,10 +22,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_15.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_15.ir index 051093d29f..987d4dbaf7 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_15.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_15.ir @@ -3,10 +3,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: subroutine test_cases.arc4_types.bool.Arc4BoolTypeContract.approval_program() -> uint64: block@0: // L12 test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(0x80, 0x00) - let tmp%15#0: any = 0x80 + let tmp%15#0: bytes = 0x80 let tmp%17#0: uint64 = (== tmp%15#0 0x80) (assert tmp%17#0) // Single boolean can be unpacked - let tmp%19#0: any = 0x80 + let tmp%19#0: bytes = 0x80 let tmp%21#0: uint64 = (== tmp%19#0 0x80) (assert tmp%21#0) // Single boolean can be unpacked return 1u @@ -18,10 +18,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_16.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_16.ir index 31594d13ec..8c1c815b92 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_16.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_16.ir @@ -16,10 +16,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_17.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_17.ir index 8428fd8dfc..1554ca7754 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_17.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_17.ir @@ -12,10 +12,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_2.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_2.ir index 81c9d722c8..fbc53bc2e5 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_2.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_2.ir @@ -4,43 +4,43 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: block@0: // L12 test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(0x80, 0x00) let is_true%0#0: uint64 = 1u - let array_data%0#2: any = (setbit 0x80 1u is_true%0#0) + let array_data%0#2: bytes = (setbit 0x80 1u is_true%0#0) let is_true%1#0: uint64 = 1u - let array_data%0#3: any = (setbit array_data%0#2 2u is_true%1#0) + let array_data%0#3: bytes = (setbit array_data%0#2 2u is_true%1#0) let is_true%2#0: uint64 = 1u - let array_data%0#4: any = (setbit array_data%0#3 3u is_true%2#0) + let array_data%0#4: bytes = (setbit array_data%0#3 3u is_true%2#0) let is_true%3#0: uint64 = 1u - let array_data%0#5: any = (setbit array_data%0#4 4u is_true%3#0) + let array_data%0#5: bytes = (setbit array_data%0#4 4u is_true%3#0) let is_true%4#0: uint64 = 1u - let array_data%0#6: any = (setbit array_data%0#5 5u is_true%4#0) + let array_data%0#6: bytes = (setbit array_data%0#5 5u is_true%4#0) let is_true%5#0: uint64 = 1u - let array_data%0#7: any = (setbit array_data%0#6 6u is_true%5#0) + let array_data%0#7: bytes = (setbit array_data%0#6 6u is_true%5#0) let is_true%6#0: uint64 = 1u - let array_data%0#8: any = (setbit array_data%0#7 7u is_true%6#0) + let array_data%0#8: bytes = (setbit array_data%0#7 7u is_true%6#0) let array_data%0#9: bytes = (concat array_data%0#8 0x80) let is_true%7#0: uint64 = 1u - let array_data%0#10: any = (setbit array_data%0#9 9u is_true%7#0) + let array_data%0#10: bytes = (setbit array_data%0#9 9u is_true%7#0) let is_true%8#0: uint64 = 1u - let array_data%0#11: any = (setbit array_data%0#10 10u is_true%8#0) + let array_data%0#11: bytes = (setbit array_data%0#10 10u is_true%8#0) let is_true%9#0: uint64 = 1u - let static_boolean_array#0: any = (setbit array_data%0#11 11u is_true%9#0) + let static_boolean_array#0: bytes = (setbit array_data%0#11 11u is_true%9#0) let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let is_true%10#0: uint64 = (getbit static_boolean_array#0 0u) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) let tmp%17#0: uint64 = (== tmp%15#0 0x80) (assert tmp%17#0) // Single boolean can be unpacked let index_is_in_bounds%0#0: uint64 = 1u (assert index_is_in_bounds%0#0) // Index access is out of bounds let is_true%11#0: uint64 = (getbit static_boolean_array#0 11u) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) let tmp%21#0: uint64 = (== tmp%19#0 0x80) (assert tmp%21#0) // Single boolean can be unpacked let array_data%1#1: bytes = 0x000380 let is_true%12#0: uint64 = 0u - let array_data%1#2: any = (setbit array_data%1#1 17u is_true%12#0) + let array_data%1#2: bytes = (setbit array_data%1#1 17u is_true%12#0) let is_true%13#0: uint64 = 1u - let dynamic_boolean_array#0: any = (setbit array_data%1#2 18u is_true%13#0) + let dynamic_boolean_array#0: bytes = (setbit array_data%1#2 18u is_true%13#0) let tmp%25#0: uint64 = (== dynamic_boolean_array#0 0x0003a0) (assert tmp%25#0) return 1u @@ -52,10 +52,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_3.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_3.ir index f8db298d75..66aced9b20 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_3.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_3.ir @@ -3,29 +3,29 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: subroutine test_cases.arc4_types.bool.Arc4BoolTypeContract.approval_program() -> uint64: block@0: // L12 test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(0x80, 0x00) - let array_data%0#2: any = 0xc0 - let array_data%0#3: any = (setbit array_data%0#2 2u 1u) - let array_data%0#4: any = (setbit array_data%0#3 3u 1u) - let array_data%0#5: any = (setbit array_data%0#4 4u 1u) - let array_data%0#6: any = (setbit array_data%0#5 5u 1u) - let array_data%0#7: any = (setbit array_data%0#6 6u 1u) - let array_data%0#8: any = (setbit array_data%0#7 7u 1u) + let array_data%0#2: bytes = 0xc0 + let array_data%0#3: bytes = (setbit array_data%0#2 2u 1u) + let array_data%0#4: bytes = (setbit array_data%0#3 3u 1u) + let array_data%0#5: bytes = (setbit array_data%0#4 4u 1u) + let array_data%0#6: bytes = (setbit array_data%0#5 5u 1u) + let array_data%0#7: bytes = (setbit array_data%0#6 6u 1u) + let array_data%0#8: bytes = (setbit array_data%0#7 7u 1u) let array_data%0#9: bytes = (concat array_data%0#8 0x80) - let array_data%0#10: any = (setbit array_data%0#9 9u 1u) - let array_data%0#11: any = (setbit array_data%0#10 10u 1u) - let static_boolean_array#0: any = (setbit array_data%0#11 11u 1u) + let array_data%0#10: bytes = (setbit array_data%0#9 9u 1u) + let array_data%0#11: bytes = (setbit array_data%0#10 10u 1u) + let static_boolean_array#0: bytes = (setbit array_data%0#11 11u 1u) let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let is_true%10#0: uint64 = (getbit static_boolean_array#0 0u) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) let tmp%17#0: uint64 = (== tmp%15#0 0x80) (assert tmp%17#0) // Single boolean can be unpacked let is_true%11#0: uint64 = (getbit static_boolean_array#0 11u) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) let tmp%21#0: uint64 = (== tmp%19#0 0x80) (assert tmp%21#0) // Single boolean can be unpacked - let array_data%1#2: any = 0x000380 - let dynamic_boolean_array#0: any = (setbit array_data%1#2 18u 1u) + let array_data%1#2: bytes = 0x000380 + let dynamic_boolean_array#0: bytes = (setbit array_data%1#2 18u 1u) let tmp%25#0: uint64 = (== dynamic_boolean_array#0 0x0003a0) (assert tmp%25#0) return 1u @@ -37,10 +37,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_4.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_4.ir index d4cecb7a38..1dc13c84e4 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_4.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_4.ir @@ -3,27 +3,27 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: subroutine test_cases.arc4_types.bool.Arc4BoolTypeContract.approval_program() -> uint64: block@0: // L12 test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(0x80, 0x00) - let array_data%0#3: any = 0xe0 - let array_data%0#4: any = (setbit array_data%0#3 3u 1u) - let array_data%0#5: any = (setbit array_data%0#4 4u 1u) - let array_data%0#6: any = (setbit array_data%0#5 5u 1u) - let array_data%0#7: any = (setbit array_data%0#6 6u 1u) - let array_data%0#8: any = (setbit array_data%0#7 7u 1u) + let array_data%0#3: bytes = 0xe0 + let array_data%0#4: bytes = (setbit array_data%0#3 3u 1u) + let array_data%0#5: bytes = (setbit array_data%0#4 4u 1u) + let array_data%0#6: bytes = (setbit array_data%0#5 5u 1u) + let array_data%0#7: bytes = (setbit array_data%0#6 6u 1u) + let array_data%0#8: bytes = (setbit array_data%0#7 7u 1u) let array_data%0#9: bytes = (concat array_data%0#8 0x80) - let array_data%0#10: any = (setbit array_data%0#9 9u 1u) - let array_data%0#11: any = (setbit array_data%0#10 10u 1u) - let static_boolean_array#0: any = (setbit array_data%0#11 11u 1u) + let array_data%0#10: bytes = (setbit array_data%0#9 9u 1u) + let array_data%0#11: bytes = (setbit array_data%0#10 10u 1u) + let static_boolean_array#0: bytes = (setbit array_data%0#11 11u 1u) let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let is_true%10#0: uint64 = (getbit static_boolean_array#0 0u) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) let tmp%17#0: uint64 = (== tmp%15#0 0x80) (assert tmp%17#0) // Single boolean can be unpacked let is_true%11#0: uint64 = (getbit static_boolean_array#0 11u) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) let tmp%21#0: uint64 = (== tmp%19#0 0x80) (assert tmp%21#0) // Single boolean can be unpacked - let dynamic_boolean_array#0: any = 0x0003a0 + let dynamic_boolean_array#0: bytes = 0x0003a0 let tmp%25#0: uint64 = (== dynamic_boolean_array#0 0x0003a0) (assert tmp%25#0) return 1u @@ -35,10 +35,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_5.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_5.ir index 8a2a75a7b6..9d1499ff95 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_5.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_5.ir @@ -3,23 +3,23 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: subroutine test_cases.arc4_types.bool.Arc4BoolTypeContract.approval_program() -> uint64: block@0: // L12 test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(0x80, 0x00) - let array_data%0#4: any = 0xf0 - let array_data%0#5: any = (setbit array_data%0#4 4u 1u) - let array_data%0#6: any = (setbit array_data%0#5 5u 1u) - let array_data%0#7: any = (setbit array_data%0#6 6u 1u) - let array_data%0#8: any = (setbit array_data%0#7 7u 1u) + let array_data%0#4: bytes = 0xf0 + let array_data%0#5: bytes = (setbit array_data%0#4 4u 1u) + let array_data%0#6: bytes = (setbit array_data%0#5 5u 1u) + let array_data%0#7: bytes = (setbit array_data%0#6 6u 1u) + let array_data%0#8: bytes = (setbit array_data%0#7 7u 1u) let array_data%0#9: bytes = (concat array_data%0#8 0x80) - let array_data%0#10: any = (setbit array_data%0#9 9u 1u) - let array_data%0#11: any = (setbit array_data%0#10 10u 1u) - let static_boolean_array#0: any = (setbit array_data%0#11 11u 1u) + let array_data%0#10: bytes = (setbit array_data%0#9 9u 1u) + let array_data%0#11: bytes = (setbit array_data%0#10 10u 1u) + let static_boolean_array#0: bytes = (setbit array_data%0#11 11u 1u) let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let is_true%10#0: uint64 = (getbit static_boolean_array#0 0u) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) let tmp%17#0: uint64 = (== tmp%15#0 0x80) (assert tmp%17#0) // Single boolean can be unpacked let is_true%11#0: uint64 = (getbit static_boolean_array#0 11u) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) let tmp%21#0: uint64 = (== tmp%19#0 0x80) (assert tmp%21#0) // Single boolean can be unpacked let tmp%25#0: uint64 = 1u @@ -33,10 +33,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_6.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_6.ir index f3d5189b9d..f0275cd489 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_6.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_6.ir @@ -3,22 +3,22 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: subroutine test_cases.arc4_types.bool.Arc4BoolTypeContract.approval_program() -> uint64: block@0: // L12 test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(0x80, 0x00) - let array_data%0#5: any = 0xf8 - let array_data%0#6: any = (setbit array_data%0#5 5u 1u) - let array_data%0#7: any = (setbit array_data%0#6 6u 1u) - let array_data%0#8: any = (setbit array_data%0#7 7u 1u) + let array_data%0#5: bytes = 0xf8 + let array_data%0#6: bytes = (setbit array_data%0#5 5u 1u) + let array_data%0#7: bytes = (setbit array_data%0#6 6u 1u) + let array_data%0#8: bytes = (setbit array_data%0#7 7u 1u) let array_data%0#9: bytes = (concat array_data%0#8 0x80) - let array_data%0#10: any = (setbit array_data%0#9 9u 1u) - let array_data%0#11: any = (setbit array_data%0#10 10u 1u) - let static_boolean_array#0: any = (setbit array_data%0#11 11u 1u) + let array_data%0#10: bytes = (setbit array_data%0#9 9u 1u) + let array_data%0#11: bytes = (setbit array_data%0#10 10u 1u) + let static_boolean_array#0: bytes = (setbit array_data%0#11 11u 1u) let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let is_true%10#0: uint64 = (getbit static_boolean_array#0 0u) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) let tmp%17#0: uint64 = (== tmp%15#0 0x80) (assert tmp%17#0) // Single boolean can be unpacked let is_true%11#0: uint64 = (getbit static_boolean_array#0 11u) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) let tmp%21#0: uint64 = (== tmp%19#0 0x80) (assert tmp%21#0) // Single boolean can be unpacked return 1u @@ -30,10 +30,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_7.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_7.ir index b90407dc46..4abf665471 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_7.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_7.ir @@ -3,21 +3,21 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: subroutine test_cases.arc4_types.bool.Arc4BoolTypeContract.approval_program() -> uint64: block@0: // L12 test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(0x80, 0x00) - let array_data%0#6: any = 0xfc - let array_data%0#7: any = (setbit array_data%0#6 6u 1u) - let array_data%0#8: any = (setbit array_data%0#7 7u 1u) + let array_data%0#6: bytes = 0xfc + let array_data%0#7: bytes = (setbit array_data%0#6 6u 1u) + let array_data%0#8: bytes = (setbit array_data%0#7 7u 1u) let array_data%0#9: bytes = (concat array_data%0#8 0x80) - let array_data%0#10: any = (setbit array_data%0#9 9u 1u) - let array_data%0#11: any = (setbit array_data%0#10 10u 1u) - let static_boolean_array#0: any = (setbit array_data%0#11 11u 1u) + let array_data%0#10: bytes = (setbit array_data%0#9 9u 1u) + let array_data%0#11: bytes = (setbit array_data%0#10 10u 1u) + let static_boolean_array#0: bytes = (setbit array_data%0#11 11u 1u) let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let is_true%10#0: uint64 = (getbit static_boolean_array#0 0u) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) let tmp%17#0: uint64 = (== tmp%15#0 0x80) (assert tmp%17#0) // Single boolean can be unpacked let is_true%11#0: uint64 = (getbit static_boolean_array#0 11u) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) let tmp%21#0: uint64 = (== tmp%19#0 0x80) (assert tmp%21#0) // Single boolean can be unpacked return 1u @@ -29,10 +29,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_8.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_8.ir index e64291d60d..87eebaac66 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_8.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_8.ir @@ -3,20 +3,20 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: subroutine test_cases.arc4_types.bool.Arc4BoolTypeContract.approval_program() -> uint64: block@0: // L12 test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(0x80, 0x00) - let array_data%0#7: any = 0xfe - let array_data%0#8: any = (setbit array_data%0#7 7u 1u) + let array_data%0#7: bytes = 0xfe + let array_data%0#8: bytes = (setbit array_data%0#7 7u 1u) let array_data%0#9: bytes = (concat array_data%0#8 0x80) - let array_data%0#10: any = (setbit array_data%0#9 9u 1u) - let array_data%0#11: any = (setbit array_data%0#10 10u 1u) - let static_boolean_array#0: any = (setbit array_data%0#11 11u 1u) + let array_data%0#10: bytes = (setbit array_data%0#9 9u 1u) + let array_data%0#11: bytes = (setbit array_data%0#10 10u 1u) + let static_boolean_array#0: bytes = (setbit array_data%0#11 11u 1u) let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let is_true%10#0: uint64 = (getbit static_boolean_array#0 0u) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) let tmp%17#0: uint64 = (== tmp%15#0 0x80) (assert tmp%17#0) // Single boolean can be unpacked let is_true%11#0: uint64 = (getbit static_boolean_array#0 11u) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) let tmp%21#0: uint64 = (== tmp%19#0 0x80) (assert tmp%21#0) // Single boolean can be unpacked return 1u @@ -28,10 +28,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_9.ir b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_9.ir index 7dfd81935d..b12035634a 100644 --- a/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_9.ir +++ b/test_cases/arc4_types/out/Arc4BoolTypeContract.ssa.opt_pass_9.ir @@ -3,19 +3,19 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: subroutine test_cases.arc4_types.bool.Arc4BoolTypeContract.approval_program() -> uint64: block@0: // L12 test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(0x80, 0x00) - let array_data%0#8: any = 0xff + let array_data%0#8: bytes = 0xff let array_data%0#9: bytes = (concat array_data%0#8 0x80) - let array_data%0#10: any = (setbit array_data%0#9 9u 1u) - let array_data%0#11: any = (setbit array_data%0#10 10u 1u) - let static_boolean_array#0: any = (setbit array_data%0#11 11u 1u) + let array_data%0#10: bytes = (setbit array_data%0#9 9u 1u) + let array_data%0#11: bytes = (setbit array_data%0#10 10u 1u) + let static_boolean_array#0: bytes = (setbit array_data%0#11 11u 1u) let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let is_true%10#0: uint64 = (getbit static_boolean_array#0 0u) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) let tmp%17#0: uint64 = (== tmp%15#0 0x80) (assert tmp%17#0) // Single boolean can be unpacked let is_true%11#0: uint64 = (getbit static_boolean_array#0 11u) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) let tmp%21#0: uint64 = (== tmp%19#0 0x80) (assert tmp%21#0) // Single boolean can be unpacked return 1u @@ -27,10 +27,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.ir b/test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.ir index 81dfe43c48..3f8a8061b4 100644 --- a/test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.ir +++ b/test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.ir @@ -13,7 +13,7 @@ contract test_cases.arc4_types.mutable_params.Arc4MutableParamsContract: let array_data%0#3: bytes = (concat array_data%0#2 0x03) let array_data%0#4: bytes = (concat array_data%0#3 0x04) let my_array#0: bytes = array_data%0#4 - let tmp%0#0: any = (setbit 0x00 0u 1u) + let tmp%0#0: bytes = (setbit 0x00 0u 1u) let current_tail_offset%0#0: uint64 = 6u let encoded_tuple_buffer%0#0: bytes = 0x let encoded_tuple_buffer%0#1: bytes = (concat encoded_tuple_buffer%0#0 tmp%0#0) diff --git a/test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_1.ir b/test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_1.ir index b2657746ed..992cb21817 100644 --- a/test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_1.ir +++ b/test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_1.ir @@ -11,7 +11,7 @@ contract test_cases.arc4_types.mutable_params.Arc4MutableParamsContract: let array_data%0#2: bytes = (concat array_data%0#1 0x02) let array_data%0#3: bytes = (concat array_data%0#2 0x03) let my_array#0: bytes = (concat array_data%0#3 0x04) - let tmp%0#0: any = 0x80 + let tmp%0#0: bytes = 0x80 let encoded_tuple_buffer%0#1: bytes = tmp%0#0 let encoded_tuple_buffer%0#2: bytes = (concat encoded_tuple_buffer%0#1 0x32) let value_as_uint16%0#0: bytes = 0x0006 diff --git a/test_cases/arc4_types/out/Arc4MutationContract.ssa.ir b/test_cases/arc4_types/out/Arc4MutationContract.ssa.ir index e2a51b5243..a75670a905 100644 --- a/test_cases/arc4_types/out/Arc4MutationContract.ssa.ir +++ b/test_cases/arc4_types/out/Arc4MutationContract.ssa.ir @@ -90,17 +90,17 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: subroutine test_cases.arc4_types.mutation.Arc4MutationContract.dynamic_array_bool() -> void: block@0: // L166 - let tmp%0#0: any = (setbit 0x00 0u 1u) - let tmp%1#0: any = (setbit 0x00 0u 0u) + let tmp%0#0: bytes = (setbit 0x00 0u 1u) + let tmp%1#0: bytes = (setbit 0x00 0u 0u) let array_data%0#0: bytes = 0x0002 let array_data%0#1: bytes = (concat array_data%0#0 tmp%0#0) let is_true%0#0: uint64 = (getbit tmp%1#0 0u) - let array_data%0#2: any = (setbit array_data%0#1 17u is_true%0#0) - let dynamic_bool_array#0: any = array_data%0#2 + let array_data%0#2: bytes = (setbit array_data%0#1 17u is_true%0#0) + let dynamic_bool_array#0: bytes = array_data%0#2 let tmp%2#0: uint64 = (== dynamic_bool_array#0 0x000280) (assert tmp%2#0) - let tmp%3#0: any = (setbit 0x00 0u 1u) - let tmp%4#0: any = (setbit 0x00 0u 0u) + let tmp%3#0: bytes = (setbit 0x00 0u 1u) + let tmp%4#0: bytes = (setbit 0x00 0u 0u) let data%0#0: bytes = 0x let data%0#1: bytes = (concat data%0#0 tmp%3#0) let data%0#2: bytes = (concat data%0#1 tmp%4#0) @@ -108,114 +108,114 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let dynamic_bool_array#1: bytes = concat_result%0#0 let tmp%5#0: uint64 = (== dynamic_bool_array#1 0x0004a0) (assert tmp%5#0) - let tmp%6#0: any = (setbit 0x00 0u 1u) - let tmp%7#0: any = (setbit 0x00 0u 0u) - let tmp%8#0: any = (setbit 0x00 0u 1u) - let tmp%9#0: any = (setbit 0x00 0u 0u) + let tmp%6#0: bytes = (setbit 0x00 0u 1u) + let tmp%7#0: bytes = (setbit 0x00 0u 0u) + let tmp%8#0: bytes = (setbit 0x00 0u 1u) + let tmp%9#0: bytes = (setbit 0x00 0u 0u) let array_data%1#0: bytes = 0x0004 let array_data%1#1: bytes = (concat array_data%1#0 tmp%6#0) let is_true%1#0: uint64 = (getbit tmp%7#0 0u) - let array_data%1#2: any = (setbit array_data%1#1 17u is_true%1#0) + let array_data%1#2: bytes = (setbit array_data%1#1 17u is_true%1#0) let is_true%2#0: uint64 = (getbit tmp%8#0 0u) - let array_data%1#3: any = (setbit array_data%1#2 18u is_true%2#0) + let array_data%1#3: bytes = (setbit array_data%1#2 18u is_true%2#0) let is_true%3#0: uint64 = (getbit tmp%9#0 0u) - let array_data%1#4: any = (setbit array_data%1#3 19u is_true%3#0) + let array_data%1#4: bytes = (setbit array_data%1#3 19u is_true%3#0) let tmp%10#0: uint64 = (== dynamic_bool_array#1 array_data%1#4) (assert tmp%10#0) let array_length%0#0: uint64 = (extract_uint16 dynamic_bool_array#1 0u) let data%1#0: bytes = ((extract 2 0) dynamic_bool_array#1) let concat_result%1#0: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#1, data%1#0, array_length%0#0, 1u) let dynamic_bool_array#2: bytes = concat_result%1#0 - let tmp%11#0: any = (setbit 0x00 0u 1u) - let tmp%12#0: any = (setbit 0x00 0u 0u) - let tmp%13#0: any = (setbit 0x00 0u 1u) - let tmp%14#0: any = (setbit 0x00 0u 0u) - let tmp%15#0: any = (setbit 0x00 0u 1u) - let tmp%16#0: any = (setbit 0x00 0u 0u) - let tmp%17#0: any = (setbit 0x00 0u 1u) - let tmp%18#0: any = (setbit 0x00 0u 0u) + let tmp%11#0: bytes = (setbit 0x00 0u 1u) + let tmp%12#0: bytes = (setbit 0x00 0u 0u) + let tmp%13#0: bytes = (setbit 0x00 0u 1u) + let tmp%14#0: bytes = (setbit 0x00 0u 0u) + let tmp%15#0: bytes = (setbit 0x00 0u 1u) + let tmp%16#0: bytes = (setbit 0x00 0u 0u) + let tmp%17#0: bytes = (setbit 0x00 0u 1u) + let tmp%18#0: bytes = (setbit 0x00 0u 0u) let array_data%2#0: bytes = 0x0008 let array_data%2#1: bytes = (concat array_data%2#0 tmp%11#0) let is_true%4#0: uint64 = (getbit tmp%12#0 0u) - let array_data%2#2: any = (setbit array_data%2#1 17u is_true%4#0) + let array_data%2#2: bytes = (setbit array_data%2#1 17u is_true%4#0) let is_true%5#0: uint64 = (getbit tmp%13#0 0u) - let array_data%2#3: any = (setbit array_data%2#2 18u is_true%5#0) + let array_data%2#3: bytes = (setbit array_data%2#2 18u is_true%5#0) let is_true%6#0: uint64 = (getbit tmp%14#0 0u) - let array_data%2#4: any = (setbit array_data%2#3 19u is_true%6#0) + let array_data%2#4: bytes = (setbit array_data%2#3 19u is_true%6#0) let is_true%7#0: uint64 = (getbit tmp%15#0 0u) - let array_data%2#5: any = (setbit array_data%2#4 20u is_true%7#0) + let array_data%2#5: bytes = (setbit array_data%2#4 20u is_true%7#0) let is_true%8#0: uint64 = (getbit tmp%16#0 0u) - let array_data%2#6: any = (setbit array_data%2#5 21u is_true%8#0) + let array_data%2#6: bytes = (setbit array_data%2#5 21u is_true%8#0) let is_true%9#0: uint64 = (getbit tmp%17#0 0u) - let array_data%2#7: any = (setbit array_data%2#6 22u is_true%9#0) + let array_data%2#7: bytes = (setbit array_data%2#6 22u is_true%9#0) let is_true%10#0: uint64 = (getbit tmp%18#0 0u) - let array_data%2#8: any = (setbit array_data%2#7 23u is_true%10#0) + let array_data%2#8: bytes = (setbit array_data%2#7 23u is_true%10#0) let tmp%19#0: uint64 = (== dynamic_bool_array#2 array_data%2#8) (assert tmp%19#0) - let tmp%20#0: any = (setbit 0x00 0u 1u) + let tmp%20#0: bytes = (setbit 0x00 0u 1u) let data%2#0: bytes = 0x let data%2#1: bytes = (concat data%2#0 tmp%20#0) let concat_result%2#0: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#2, data%2#1, 1u, 0u) let dynamic_bool_array#3: bytes = concat_result%2#0 - let tmp%21#0: any = (setbit 0x00 0u 1u) - let tmp%22#0: any = (setbit 0x00 0u 0u) - let tmp%23#0: any = (setbit 0x00 0u 1u) - let tmp%24#0: any = (setbit 0x00 0u 0u) - let tmp%25#0: any = (setbit 0x00 0u 1u) - let tmp%26#0: any = (setbit 0x00 0u 0u) - let tmp%27#0: any = (setbit 0x00 0u 1u) - let tmp%28#0: any = (setbit 0x00 0u 0u) - let tmp%29#0: any = (setbit 0x00 0u 1u) + let tmp%21#0: bytes = (setbit 0x00 0u 1u) + let tmp%22#0: bytes = (setbit 0x00 0u 0u) + let tmp%23#0: bytes = (setbit 0x00 0u 1u) + let tmp%24#0: bytes = (setbit 0x00 0u 0u) + let tmp%25#0: bytes = (setbit 0x00 0u 1u) + let tmp%26#0: bytes = (setbit 0x00 0u 0u) + let tmp%27#0: bytes = (setbit 0x00 0u 1u) + let tmp%28#0: bytes = (setbit 0x00 0u 0u) + let tmp%29#0: bytes = (setbit 0x00 0u 1u) let array_data%3#0: bytes = 0x0009 let array_data%3#1: bytes = (concat array_data%3#0 tmp%21#0) let is_true%11#0: uint64 = (getbit tmp%22#0 0u) - let array_data%3#2: any = (setbit array_data%3#1 17u is_true%11#0) + let array_data%3#2: bytes = (setbit array_data%3#1 17u is_true%11#0) let is_true%12#0: uint64 = (getbit tmp%23#0 0u) - let array_data%3#3: any = (setbit array_data%3#2 18u is_true%12#0) + let array_data%3#3: bytes = (setbit array_data%3#2 18u is_true%12#0) let is_true%13#0: uint64 = (getbit tmp%24#0 0u) - let array_data%3#4: any = (setbit array_data%3#3 19u is_true%13#0) + let array_data%3#4: bytes = (setbit array_data%3#3 19u is_true%13#0) let is_true%14#0: uint64 = (getbit tmp%25#0 0u) - let array_data%3#5: any = (setbit array_data%3#4 20u is_true%14#0) + let array_data%3#5: bytes = (setbit array_data%3#4 20u is_true%14#0) let is_true%15#0: uint64 = (getbit tmp%26#0 0u) - let array_data%3#6: any = (setbit array_data%3#5 21u is_true%15#0) + let array_data%3#6: bytes = (setbit array_data%3#5 21u is_true%15#0) let is_true%16#0: uint64 = (getbit tmp%27#0 0u) - let array_data%3#7: any = (setbit array_data%3#6 22u is_true%16#0) + let array_data%3#7: bytes = (setbit array_data%3#6 22u is_true%16#0) let is_true%17#0: uint64 = (getbit tmp%28#0 0u) - let array_data%3#8: any = (setbit array_data%3#7 23u is_true%17#0) + let array_data%3#8: bytes = (setbit array_data%3#7 23u is_true%17#0) let array_data%3#9: bytes = (concat array_data%3#8 tmp%29#0) let tmp%30#0: uint64 = (== dynamic_bool_array#3 array_data%3#9) (assert tmp%30#0) let (popped%0#1: bytes, data%3#1: bytes) = algopy_lib_arc4.dynamic_array_pop_bit(dynamic_bool_array#3) let dynamic_bool_array#4: bytes = data%3#1 - let tmp%31#0: any = (setbit 0x00 0u 1u) + let tmp%31#0: bytes = (setbit 0x00 0u 1u) let tmp%32#0: uint64 = (== popped%0#1 tmp%31#0) (assert tmp%32#0) let (popped%1#1: bytes, data%4#1: bytes) = algopy_lib_arc4.dynamic_array_pop_bit(dynamic_bool_array#4) let dynamic_bool_array#5: bytes = data%4#1 - let tmp%33#0: any = (setbit 0x00 0u 0u) + let tmp%33#0: bytes = (setbit 0x00 0u 0u) let tmp%34#0: uint64 = (== popped%1#1 tmp%33#0) (assert tmp%34#0) - let tmp%35#0: any = (setbit 0x00 0u 1u) - let tmp%36#0: any = (setbit 0x00 0u 0u) - let tmp%37#0: any = (setbit 0x00 0u 1u) - let tmp%38#0: any = (setbit 0x00 0u 0u) - let tmp%39#0: any = (setbit 0x00 0u 1u) - let tmp%40#0: any = (setbit 0x00 0u 0u) - let tmp%41#0: any = (setbit 0x00 0u 1u) + let tmp%35#0: bytes = (setbit 0x00 0u 1u) + let tmp%36#0: bytes = (setbit 0x00 0u 0u) + let tmp%37#0: bytes = (setbit 0x00 0u 1u) + let tmp%38#0: bytes = (setbit 0x00 0u 0u) + let tmp%39#0: bytes = (setbit 0x00 0u 1u) + let tmp%40#0: bytes = (setbit 0x00 0u 0u) + let tmp%41#0: bytes = (setbit 0x00 0u 1u) let array_data%4#0: bytes = 0x0007 let array_data%4#1: bytes = (concat array_data%4#0 tmp%35#0) let is_true%18#0: uint64 = (getbit tmp%36#0 0u) - let array_data%4#2: any = (setbit array_data%4#1 17u is_true%18#0) + let array_data%4#2: bytes = (setbit array_data%4#1 17u is_true%18#0) let is_true%19#0: uint64 = (getbit tmp%37#0 0u) - let array_data%4#3: any = (setbit array_data%4#2 18u is_true%19#0) + let array_data%4#3: bytes = (setbit array_data%4#2 18u is_true%19#0) let is_true%20#0: uint64 = (getbit tmp%38#0 0u) - let array_data%4#4: any = (setbit array_data%4#3 19u is_true%20#0) + let array_data%4#4: bytes = (setbit array_data%4#3 19u is_true%20#0) let is_true%21#0: uint64 = (getbit tmp%39#0 0u) - let array_data%4#5: any = (setbit array_data%4#4 20u is_true%21#0) + let array_data%4#5: bytes = (setbit array_data%4#4 20u is_true%21#0) let is_true%22#0: uint64 = (getbit tmp%40#0 0u) - let array_data%4#6: any = (setbit array_data%4#5 21u is_true%22#0) + let array_data%4#6: bytes = (setbit array_data%4#5 21u is_true%22#0) let is_true%23#0: uint64 = (getbit tmp%41#0 0u) - let array_data%4#7: any = (setbit array_data%4#6 22u is_true%23#0) + let array_data%4#7: bytes = (setbit array_data%4#6 22u is_true%23#0) let tmp%42#0: uint64 = (== dynamic_bool_array#5 array_data%4#7) (assert tmp%42#0) return @@ -588,40 +588,40 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let static_uint8_array#1: bytes = updated_target%1#0 let tmp%1#0: uint64 = (== static_uint8_array#1 0x01ff) (assert tmp%1#0) - let tmp%2#0: any = (setbit 0x00 0u 1u) - let tmp%3#0: any = (setbit 0x00 0u 0u) + let tmp%2#0: bytes = (setbit 0x00 0u 1u) + let tmp%3#0: bytes = (setbit 0x00 0u 0u) let array_data%2#0: bytes = 0x0002 let array_data%2#1: bytes = (concat array_data%2#0 tmp%2#0) let is_true%0#0: uint64 = (getbit tmp%3#0 0u) - let array_data%2#2: any = (setbit array_data%2#1 17u is_true%0#0) - let dynamic_bool_array#0: any = array_data%2#2 - let assigned_value%2#0: any = (setbit 0x00 0u 0u) + let array_data%2#2: bytes = (setbit array_data%2#1 17u is_true%0#0) + let dynamic_bool_array#0: bytes = array_data%2#2 + let assigned_value%2#0: bytes = (setbit 0x00 0u 0u) let array_length%1#0: uint64 = (extract_uint16 dynamic_bool_array#0 0u) let index_is_in_bounds%1#0: uint64 = (< 0u array_length%1#0) (assert index_is_in_bounds%1#0) // Index access is out of bounds let is_true%1#0: uint64 = (getbit assigned_value%2#0 0u) - let updated_target%2#0: any = (setbit dynamic_bool_array#0 16u is_true%1#0) - let dynamic_bool_array#1: any = updated_target%2#0 + let updated_target%2#0: bytes = (setbit dynamic_bool_array#0 16u is_true%1#0) + let dynamic_bool_array#1: bytes = updated_target%2#0 let tmp%4#0: uint64 = (== dynamic_bool_array#1 0x000200) (assert tmp%4#0) - let tmp%5#0: any = (setbit 0x00 0u 1u) - let tmp%6#0: any = (setbit 0x00 0u 1u) + let tmp%5#0: bytes = (setbit 0x00 0u 1u) + let tmp%6#0: bytes = (setbit 0x00 0u 1u) let array_data%3#0: bytes = 0x let array_data%3#1: bytes = (concat array_data%3#0 tmp%5#0) let is_true%2#0: uint64 = (getbit tmp%6#0 0u) - let array_data%3#2: any = (setbit array_data%3#1 1u is_true%2#0) - let static_bool_array#0: any = array_data%3#2 - let assigned_value%3#0: any = (setbit 0x00 0u 0u) + let array_data%3#2: bytes = (setbit array_data%3#1 1u is_true%2#0) + let static_bool_array#0: bytes = array_data%3#2 + let assigned_value%3#0: bytes = (setbit 0x00 0u 0u) let is_true%3#0: uint64 = (getbit assigned_value%3#0 0u) - let updated_target%3#0: any = (setbit static_bool_array#0 1u is_true%3#0) - let static_bool_array#1: any = updated_target%3#0 + let updated_target%3#0: bytes = (setbit static_bool_array#0 1u is_true%3#0) + let static_bool_array#1: bytes = updated_target%3#0 let tmp%7#0: uint64 = (== static_bool_array#1 0x80) (assert tmp%7#0) return subroutine test_cases.arc4_types.mutation.Arc4MutationContract.struct_assign() -> void: block@0: // L116 - let tmp%0#0: any = (setbit 0x00 0u 1u) + let tmp%0#0: bytes = (setbit 0x00 0u 1u) let current_tail_offset%0#0: uint64 = 6u let encoded_tuple_buffer%0#0: bytes = 0x let encoded_tuple_buffer%0#1: bytes = (concat encoded_tuple_buffer%0#0 tmp%0#0) @@ -639,14 +639,14 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let encoded_tuple_buffer%0#5: bytes = (concat encoded_tuple_buffer%0#4 "\x00\x05Happy") let encoded_tuple_buffer%0#6: bytes = (concat encoded_tuple_buffer%0#5 "\x00\x04Days") let test_struct#0: bytes = encoded_tuple_buffer%0#6 - let assigned_value%0#0: any = (setbit 0x00 0u 0u) + let assigned_value%0#0: bytes = (setbit 0x00 0u 0u) let is_true%0#0: uint64 = (getbit assigned_value%0#0 0u) - let updated_data%0#0: any = (setbit test_struct#0 0u is_true%0#0) - let test_struct#1: any = updated_data%0#0 + let updated_data%0#0: bytes = (setbit test_struct#0 0u is_true%0#0) + let test_struct#1: bytes = updated_data%0#0 let assigned_value%1#0: bytes = 0x0c let updated_data%1#0: bytes = ((replace2 1) test_struct#1 assigned_value%1#0) let test_struct#2: bytes = updated_data%1#0 - let tmp%1#0: any = (setbit 0x00 0u 0u) + let tmp%1#0: bytes = (setbit 0x00 0u 0u) let current_tail_offset%1#0: uint64 = 6u let encoded_tuple_buffer%1#0: bytes = 0x let encoded_tuple_buffer%1#1: bytes = (concat encoded_tuple_buffer%1#0 tmp%1#0) @@ -684,7 +684,7 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let data_up_to_item%1#0: bytes = (extract3 test_struct#3 0u item_offset%1#0) let updated_data%3#0: bytes = (concat data_up_to_item%1#0 assigned_value%3#0) let test_struct#4: bytes = updated_data%3#0 - let tmp%3#0: any = (setbit 0x00 0u 0u) + let tmp%3#0: bytes = (setbit 0x00 0u 0u) let current_tail_offset%2#0: uint64 = 6u let encoded_tuple_buffer%2#0: bytes = 0x let encoded_tuple_buffer%2#1: bytes = (concat encoded_tuple_buffer%2#0 tmp%3#0) diff --git a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_1.ir b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_1.ir index 5bcee66633..7c477c2ffa 100644 --- a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_1.ir +++ b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_1.ir @@ -76,119 +76,119 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: subroutine test_cases.arc4_types.mutation.Arc4MutationContract.dynamic_array_bool() -> void: block@0: // L166 - let tmp%0#0: any = 0x80 - let tmp%1#0: any = 0x00 + let tmp%0#0: bytes = 0x80 + let tmp%1#0: bytes = 0x00 let array_data%0#1: bytes = (concat 0x0002 tmp%0#0) let is_true%0#0: uint64 = (getbit tmp%1#0 0u) - let dynamic_bool_array#0: any = (setbit array_data%0#1 17u is_true%0#0) + let dynamic_bool_array#0: bytes = (setbit array_data%0#1 17u is_true%0#0) let tmp%2#0: uint64 = (== dynamic_bool_array#0 0x000280) (assert tmp%2#0) - let tmp%3#0: any = 0x80 - let tmp%4#0: any = 0x00 + let tmp%3#0: bytes = 0x80 + let tmp%4#0: bytes = 0x00 let data%0#1: bytes = tmp%3#0 let data%0#2: bytes = (concat data%0#1 tmp%4#0) let dynamic_bool_array#1: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#0, data%0#2, 2u, 0u) let tmp%5#0: uint64 = (== dynamic_bool_array#1 0x0004a0) (assert tmp%5#0) - let tmp%6#0: any = 0x80 - let tmp%7#0: any = 0x00 - let tmp%8#0: any = 0x80 - let tmp%9#0: any = 0x00 + let tmp%6#0: bytes = 0x80 + let tmp%7#0: bytes = 0x00 + let tmp%8#0: bytes = 0x80 + let tmp%9#0: bytes = 0x00 let array_data%1#1: bytes = (concat 0x0004 tmp%6#0) let is_true%1#0: uint64 = (getbit tmp%7#0 0u) - let array_data%1#2: any = (setbit array_data%1#1 17u is_true%1#0) + let array_data%1#2: bytes = (setbit array_data%1#1 17u is_true%1#0) let is_true%2#0: uint64 = (getbit tmp%8#0 0u) - let array_data%1#3: any = (setbit array_data%1#2 18u is_true%2#0) + let array_data%1#3: bytes = (setbit array_data%1#2 18u is_true%2#0) let is_true%3#0: uint64 = (getbit tmp%9#0 0u) - let array_data%1#4: any = (setbit array_data%1#3 19u is_true%3#0) + let array_data%1#4: bytes = (setbit array_data%1#3 19u is_true%3#0) let tmp%10#0: uint64 = (== dynamic_bool_array#1 array_data%1#4) (assert tmp%10#0) let array_length%0#0: uint64 = (extract_uint16 dynamic_bool_array#1 0u) let data%1#0: bytes = ((extract 2 0) dynamic_bool_array#1) let dynamic_bool_array#2: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#1, data%1#0, array_length%0#0, 1u) - let tmp%11#0: any = 0x80 - let tmp%12#0: any = 0x00 - let tmp%13#0: any = 0x80 - let tmp%14#0: any = 0x00 - let tmp%15#0: any = 0x80 - let tmp%16#0: any = 0x00 - let tmp%17#0: any = 0x80 - let tmp%18#0: any = 0x00 + let tmp%11#0: bytes = 0x80 + let tmp%12#0: bytes = 0x00 + let tmp%13#0: bytes = 0x80 + let tmp%14#0: bytes = 0x00 + let tmp%15#0: bytes = 0x80 + let tmp%16#0: bytes = 0x00 + let tmp%17#0: bytes = 0x80 + let tmp%18#0: bytes = 0x00 let array_data%2#1: bytes = (concat 0x0008 tmp%11#0) let is_true%4#0: uint64 = (getbit tmp%12#0 0u) - let array_data%2#2: any = (setbit array_data%2#1 17u is_true%4#0) + let array_data%2#2: bytes = (setbit array_data%2#1 17u is_true%4#0) let is_true%5#0: uint64 = (getbit tmp%13#0 0u) - let array_data%2#3: any = (setbit array_data%2#2 18u is_true%5#0) + let array_data%2#3: bytes = (setbit array_data%2#2 18u is_true%5#0) let is_true%6#0: uint64 = (getbit tmp%14#0 0u) - let array_data%2#4: any = (setbit array_data%2#3 19u is_true%6#0) + let array_data%2#4: bytes = (setbit array_data%2#3 19u is_true%6#0) let is_true%7#0: uint64 = (getbit tmp%15#0 0u) - let array_data%2#5: any = (setbit array_data%2#4 20u is_true%7#0) + let array_data%2#5: bytes = (setbit array_data%2#4 20u is_true%7#0) let is_true%8#0: uint64 = (getbit tmp%16#0 0u) - let array_data%2#6: any = (setbit array_data%2#5 21u is_true%8#0) + let array_data%2#6: bytes = (setbit array_data%2#5 21u is_true%8#0) let is_true%9#0: uint64 = (getbit tmp%17#0 0u) - let array_data%2#7: any = (setbit array_data%2#6 22u is_true%9#0) + let array_data%2#7: bytes = (setbit array_data%2#6 22u is_true%9#0) let is_true%10#0: uint64 = (getbit tmp%18#0 0u) - let array_data%2#8: any = (setbit array_data%2#7 23u is_true%10#0) + let array_data%2#8: bytes = (setbit array_data%2#7 23u is_true%10#0) let tmp%19#0: uint64 = (== dynamic_bool_array#2 array_data%2#8) (assert tmp%19#0) - let tmp%20#0: any = 0x80 + let tmp%20#0: bytes = 0x80 let data%2#1: bytes = tmp%20#0 let dynamic_bool_array#3: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#2, data%2#1, 1u, 0u) - let tmp%21#0: any = 0x80 - let tmp%22#0: any = 0x00 - let tmp%23#0: any = 0x80 - let tmp%24#0: any = 0x00 - let tmp%25#0: any = 0x80 - let tmp%26#0: any = 0x00 - let tmp%27#0: any = 0x80 - let tmp%28#0: any = 0x00 - let tmp%29#0: any = 0x80 + let tmp%21#0: bytes = 0x80 + let tmp%22#0: bytes = 0x00 + let tmp%23#0: bytes = 0x80 + let tmp%24#0: bytes = 0x00 + let tmp%25#0: bytes = 0x80 + let tmp%26#0: bytes = 0x00 + let tmp%27#0: bytes = 0x80 + let tmp%28#0: bytes = 0x00 + let tmp%29#0: bytes = 0x80 let array_data%3#1: bytes = (concat 0x0009 tmp%21#0) let is_true%11#0: uint64 = (getbit tmp%22#0 0u) - let array_data%3#2: any = (setbit array_data%3#1 17u is_true%11#0) + let array_data%3#2: bytes = (setbit array_data%3#1 17u is_true%11#0) let is_true%12#0: uint64 = (getbit tmp%23#0 0u) - let array_data%3#3: any = (setbit array_data%3#2 18u is_true%12#0) + let array_data%3#3: bytes = (setbit array_data%3#2 18u is_true%12#0) let is_true%13#0: uint64 = (getbit tmp%24#0 0u) - let array_data%3#4: any = (setbit array_data%3#3 19u is_true%13#0) + let array_data%3#4: bytes = (setbit array_data%3#3 19u is_true%13#0) let is_true%14#0: uint64 = (getbit tmp%25#0 0u) - let array_data%3#5: any = (setbit array_data%3#4 20u is_true%14#0) + let array_data%3#5: bytes = (setbit array_data%3#4 20u is_true%14#0) let is_true%15#0: uint64 = (getbit tmp%26#0 0u) - let array_data%3#6: any = (setbit array_data%3#5 21u is_true%15#0) + let array_data%3#6: bytes = (setbit array_data%3#5 21u is_true%15#0) let is_true%16#0: uint64 = (getbit tmp%27#0 0u) - let array_data%3#7: any = (setbit array_data%3#6 22u is_true%16#0) + let array_data%3#7: bytes = (setbit array_data%3#6 22u is_true%16#0) let is_true%17#0: uint64 = (getbit tmp%28#0 0u) - let array_data%3#8: any = (setbit array_data%3#7 23u is_true%17#0) + let array_data%3#8: bytes = (setbit array_data%3#7 23u is_true%17#0) let array_data%3#9: bytes = (concat array_data%3#8 tmp%29#0) let tmp%30#0: uint64 = (== dynamic_bool_array#3 array_data%3#9) (assert tmp%30#0) let (popped%0#1: bytes, dynamic_bool_array#4: bytes) = algopy_lib_arc4.dynamic_array_pop_bit(dynamic_bool_array#3) - let tmp%31#0: any = 0x80 + let tmp%31#0: bytes = 0x80 let tmp%32#0: uint64 = (== popped%0#1 tmp%31#0) (assert tmp%32#0) let (popped%1#1: bytes, dynamic_bool_array#5: bytes) = algopy_lib_arc4.dynamic_array_pop_bit(dynamic_bool_array#4) - let tmp%33#0: any = 0x00 + let tmp%33#0: bytes = 0x00 let tmp%34#0: uint64 = (== popped%1#1 tmp%33#0) (assert tmp%34#0) - let tmp%35#0: any = 0x80 - let tmp%36#0: any = 0x00 - let tmp%37#0: any = 0x80 - let tmp%38#0: any = 0x00 - let tmp%39#0: any = 0x80 - let tmp%40#0: any = 0x00 - let tmp%41#0: any = 0x80 + let tmp%35#0: bytes = 0x80 + let tmp%36#0: bytes = 0x00 + let tmp%37#0: bytes = 0x80 + let tmp%38#0: bytes = 0x00 + let tmp%39#0: bytes = 0x80 + let tmp%40#0: bytes = 0x00 + let tmp%41#0: bytes = 0x80 let array_data%4#1: bytes = (concat 0x0007 tmp%35#0) let is_true%18#0: uint64 = (getbit tmp%36#0 0u) - let array_data%4#2: any = (setbit array_data%4#1 17u is_true%18#0) + let array_data%4#2: bytes = (setbit array_data%4#1 17u is_true%18#0) let is_true%19#0: uint64 = (getbit tmp%37#0 0u) - let array_data%4#3: any = (setbit array_data%4#2 18u is_true%19#0) + let array_data%4#3: bytes = (setbit array_data%4#2 18u is_true%19#0) let is_true%20#0: uint64 = (getbit tmp%38#0 0u) - let array_data%4#4: any = (setbit array_data%4#3 19u is_true%20#0) + let array_data%4#4: bytes = (setbit array_data%4#3 19u is_true%20#0) let is_true%21#0: uint64 = (getbit tmp%39#0 0u) - let array_data%4#5: any = (setbit array_data%4#4 20u is_true%21#0) + let array_data%4#5: bytes = (setbit array_data%4#4 20u is_true%21#0) let is_true%22#0: uint64 = (getbit tmp%40#0 0u) - let array_data%4#6: any = (setbit array_data%4#5 21u is_true%22#0) + let array_data%4#6: bytes = (setbit array_data%4#5 21u is_true%22#0) let is_true%23#0: uint64 = (getbit tmp%41#0 0u) - let array_data%4#7: any = (setbit array_data%4#6 22u is_true%23#0) + let array_data%4#7: bytes = (setbit array_data%4#6 22u is_true%23#0) let tmp%42#0: uint64 = (== dynamic_bool_array#5 array_data%4#7) (assert tmp%42#0) return @@ -492,33 +492,33 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let static_uint8_array#1: bytes = ((replace2 1) static_uint8_array#0 0xff) let tmp%1#0: uint64 = (== static_uint8_array#1 0x01ff) (assert tmp%1#0) - let tmp%2#0: any = 0x80 - let tmp%3#0: any = 0x00 + let tmp%2#0: bytes = 0x80 + let tmp%3#0: bytes = 0x00 let array_data%2#1: bytes = (concat 0x0002 tmp%2#0) let is_true%0#0: uint64 = (getbit tmp%3#0 0u) - let dynamic_bool_array#0: any = (setbit array_data%2#1 17u is_true%0#0) - let assigned_value%2#0: any = 0x00 + let dynamic_bool_array#0: bytes = (setbit array_data%2#1 17u is_true%0#0) + let assigned_value%2#0: bytes = 0x00 let array_length%1#0: uint64 = (extract_uint16 dynamic_bool_array#0 0u) (assert array_length%1#0) // Index access is out of bounds let is_true%1#0: uint64 = (getbit assigned_value%2#0 0u) - let dynamic_bool_array#1: any = (setbit dynamic_bool_array#0 16u is_true%1#0) + let dynamic_bool_array#1: bytes = (setbit dynamic_bool_array#0 16u is_true%1#0) let tmp%4#0: uint64 = (== dynamic_bool_array#1 0x000200) (assert tmp%4#0) - let tmp%5#0: any = 0x80 - let tmp%6#0: any = 0x80 + let tmp%5#0: bytes = 0x80 + let tmp%6#0: bytes = 0x80 let array_data%3#1: bytes = tmp%5#0 let is_true%2#0: uint64 = (getbit tmp%6#0 0u) - let static_bool_array#0: any = (setbit array_data%3#1 1u is_true%2#0) - let assigned_value%3#0: any = 0x00 + let static_bool_array#0: bytes = (setbit array_data%3#1 1u is_true%2#0) + let assigned_value%3#0: bytes = 0x00 let is_true%3#0: uint64 = (getbit assigned_value%3#0 0u) - let static_bool_array#1: any = (setbit static_bool_array#0 1u is_true%3#0) + let static_bool_array#1: bytes = (setbit static_bool_array#0 1u is_true%3#0) let tmp%7#0: uint64 = (== static_bool_array#1 0x80) (assert tmp%7#0) return subroutine test_cases.arc4_types.mutation.Arc4MutationContract.struct_assign() -> void: block@0: // L116 - let tmp%0#0: any = 0x80 + let tmp%0#0: bytes = 0x80 let encoded_tuple_buffer%0#1: bytes = tmp%0#0 let encoded_tuple_buffer%0#2: bytes = (concat encoded_tuple_buffer%0#1 0x32) let value_as_uint16%0#0: bytes = 0x0006 @@ -531,11 +531,11 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let data_length%1#0: uint64 = 6u let encoded_tuple_buffer%0#5: bytes = (concat encoded_tuple_buffer%0#4 "\x00\x05Happy") let test_struct#0: bytes = (concat encoded_tuple_buffer%0#5 "\x00\x04Days") - let assigned_value%0#0: any = 0x00 + let assigned_value%0#0: bytes = 0x00 let is_true%0#0: uint64 = (getbit assigned_value%0#0 0u) - let test_struct#1: any = (setbit test_struct#0 0u is_true%0#0) + let test_struct#1: bytes = (setbit test_struct#0 0u is_true%0#0) let test_struct#2: bytes = ((replace2 1) test_struct#1 0x0c) - let tmp%1#0: any = 0x00 + let tmp%1#0: bytes = 0x00 let encoded_tuple_buffer%1#1: bytes = tmp%1#0 let encoded_tuple_buffer%1#2: bytes = (concat encoded_tuple_buffer%1#1 0x0c) let value_as_uint16%2#0: bytes = 0x0006 @@ -565,7 +565,7 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let item_offset%1#0: uint64 = (extract_uint16 test_struct#3 4u) let data_up_to_item%1#0: bytes = (extract3 test_struct#3 0u item_offset%1#0) let test_struct#4: bytes = (concat data_up_to_item%1#0 "\x00\x07Oh well") - let tmp%3#0: any = 0x00 + let tmp%3#0: bytes = 0x00 let encoded_tuple_buffer%2#1: bytes = tmp%3#0 let encoded_tuple_buffer%2#2: bytes = (concat encoded_tuple_buffer%2#1 0x0c) let value_as_uint16%4#0: bytes = 0x0006 diff --git a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_2.ir b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_2.ir index bff998b894..962d6afc7d 100644 --- a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_2.ir +++ b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_2.ir @@ -71,7 +71,7 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: block@0: // L166 let array_data%0#1: bytes = 0x000280 let is_true%0#0: uint64 = 0u - let dynamic_bool_array#0: any = (setbit array_data%0#1 17u is_true%0#0) + let dynamic_bool_array#0: bytes = (setbit array_data%0#1 17u is_true%0#0) let tmp%2#0: uint64 = (== dynamic_bool_array#0 0x000280) (assert tmp%2#0) let data%0#2: bytes = 0x8000 @@ -80,11 +80,11 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: (assert tmp%5#0) let array_data%1#1: bytes = 0x000480 let is_true%1#0: uint64 = 0u - let array_data%1#2: any = (setbit array_data%1#1 17u is_true%1#0) + let array_data%1#2: bytes = (setbit array_data%1#1 17u is_true%1#0) let is_true%2#0: uint64 = 1u - let array_data%1#3: any = (setbit array_data%1#2 18u is_true%2#0) + let array_data%1#3: bytes = (setbit array_data%1#2 18u is_true%2#0) let is_true%3#0: uint64 = 0u - let array_data%1#4: any = (setbit array_data%1#3 19u is_true%3#0) + let array_data%1#4: bytes = (setbit array_data%1#3 19u is_true%3#0) let tmp%10#0: uint64 = (== dynamic_bool_array#1 array_data%1#4) (assert tmp%10#0) let array_length%0#0: uint64 = (extract_uint16 dynamic_bool_array#1 0u) @@ -92,37 +92,37 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let dynamic_bool_array#2: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#1, data%1#0, array_length%0#0, 1u) let array_data%2#1: bytes = 0x000880 let is_true%4#0: uint64 = 0u - let array_data%2#2: any = (setbit array_data%2#1 17u is_true%4#0) + let array_data%2#2: bytes = (setbit array_data%2#1 17u is_true%4#0) let is_true%5#0: uint64 = 1u - let array_data%2#3: any = (setbit array_data%2#2 18u is_true%5#0) + let array_data%2#3: bytes = (setbit array_data%2#2 18u is_true%5#0) let is_true%6#0: uint64 = 0u - let array_data%2#4: any = (setbit array_data%2#3 19u is_true%6#0) + let array_data%2#4: bytes = (setbit array_data%2#3 19u is_true%6#0) let is_true%7#0: uint64 = 1u - let array_data%2#5: any = (setbit array_data%2#4 20u is_true%7#0) + let array_data%2#5: bytes = (setbit array_data%2#4 20u is_true%7#0) let is_true%8#0: uint64 = 0u - let array_data%2#6: any = (setbit array_data%2#5 21u is_true%8#0) + let array_data%2#6: bytes = (setbit array_data%2#5 21u is_true%8#0) let is_true%9#0: uint64 = 1u - let array_data%2#7: any = (setbit array_data%2#6 22u is_true%9#0) + let array_data%2#7: bytes = (setbit array_data%2#6 22u is_true%9#0) let is_true%10#0: uint64 = 0u - let array_data%2#8: any = (setbit array_data%2#7 23u is_true%10#0) + let array_data%2#8: bytes = (setbit array_data%2#7 23u is_true%10#0) let tmp%19#0: uint64 = (== dynamic_bool_array#2 array_data%2#8) (assert tmp%19#0) let dynamic_bool_array#3: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#2, 0x80, 1u, 0u) let array_data%3#1: bytes = 0x000980 let is_true%11#0: uint64 = 0u - let array_data%3#2: any = (setbit array_data%3#1 17u is_true%11#0) + let array_data%3#2: bytes = (setbit array_data%3#1 17u is_true%11#0) let is_true%12#0: uint64 = 1u - let array_data%3#3: any = (setbit array_data%3#2 18u is_true%12#0) + let array_data%3#3: bytes = (setbit array_data%3#2 18u is_true%12#0) let is_true%13#0: uint64 = 0u - let array_data%3#4: any = (setbit array_data%3#3 19u is_true%13#0) + let array_data%3#4: bytes = (setbit array_data%3#3 19u is_true%13#0) let is_true%14#0: uint64 = 1u - let array_data%3#5: any = (setbit array_data%3#4 20u is_true%14#0) + let array_data%3#5: bytes = (setbit array_data%3#4 20u is_true%14#0) let is_true%15#0: uint64 = 0u - let array_data%3#6: any = (setbit array_data%3#5 21u is_true%15#0) + let array_data%3#6: bytes = (setbit array_data%3#5 21u is_true%15#0) let is_true%16#0: uint64 = 1u - let array_data%3#7: any = (setbit array_data%3#6 22u is_true%16#0) + let array_data%3#7: bytes = (setbit array_data%3#6 22u is_true%16#0) let is_true%17#0: uint64 = 0u - let array_data%3#8: any = (setbit array_data%3#7 23u is_true%17#0) + let array_data%3#8: bytes = (setbit array_data%3#7 23u is_true%17#0) let array_data%3#9: bytes = (concat array_data%3#8 0x80) let tmp%30#0: uint64 = (== dynamic_bool_array#3 array_data%3#9) (assert tmp%30#0) @@ -134,17 +134,17 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: (assert tmp%34#0) let array_data%4#1: bytes = 0x000780 let is_true%18#0: uint64 = 0u - let array_data%4#2: any = (setbit array_data%4#1 17u is_true%18#0) + let array_data%4#2: bytes = (setbit array_data%4#1 17u is_true%18#0) let is_true%19#0: uint64 = 1u - let array_data%4#3: any = (setbit array_data%4#2 18u is_true%19#0) + let array_data%4#3: bytes = (setbit array_data%4#2 18u is_true%19#0) let is_true%20#0: uint64 = 0u - let array_data%4#4: any = (setbit array_data%4#3 19u is_true%20#0) + let array_data%4#4: bytes = (setbit array_data%4#3 19u is_true%20#0) let is_true%21#0: uint64 = 1u - let array_data%4#5: any = (setbit array_data%4#4 20u is_true%21#0) + let array_data%4#5: bytes = (setbit array_data%4#4 20u is_true%21#0) let is_true%22#0: uint64 = 0u - let array_data%4#6: any = (setbit array_data%4#5 21u is_true%22#0) + let array_data%4#6: bytes = (setbit array_data%4#5 21u is_true%22#0) let is_true%23#0: uint64 = 1u - let array_data%4#7: any = (setbit array_data%4#6 22u is_true%23#0) + let array_data%4#7: bytes = (setbit array_data%4#6 22u is_true%23#0) let tmp%42#0: uint64 = (== dynamic_bool_array#5 array_data%4#7) (assert tmp%42#0) return @@ -396,17 +396,17 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: (assert tmp%1#0) let array_data%2#1: bytes = 0x000280 let is_true%0#0: uint64 = 0u - let dynamic_bool_array#0: any = (setbit array_data%2#1 17u is_true%0#0) + let dynamic_bool_array#0: bytes = (setbit array_data%2#1 17u is_true%0#0) let array_length%1#0: uint64 = (extract_uint16 dynamic_bool_array#0 0u) (assert array_length%1#0) // Index access is out of bounds let is_true%1#0: uint64 = 0u - let dynamic_bool_array#1: any = (setbit dynamic_bool_array#0 16u is_true%1#0) + let dynamic_bool_array#1: bytes = (setbit dynamic_bool_array#0 16u is_true%1#0) let tmp%4#0: uint64 = (== dynamic_bool_array#1 0x000200) (assert tmp%4#0) let is_true%2#0: uint64 = 1u - let static_bool_array#0: any = (setbit 0x80 1u is_true%2#0) + let static_bool_array#0: bytes = (setbit 0x80 1u is_true%2#0) let is_true%3#0: uint64 = 0u - let static_bool_array#1: any = (setbit static_bool_array#0 1u is_true%3#0) + let static_bool_array#1: bytes = (setbit static_bool_array#0 1u is_true%3#0) let tmp%7#0: uint64 = (== static_bool_array#1 0x80) (assert tmp%7#0) return @@ -422,7 +422,7 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let encoded_tuple_buffer%0#5: bytes = (concat encoded_tuple_buffer%0#4 "\x00\x05Happy") let test_struct#0: bytes = (concat encoded_tuple_buffer%0#5 "\x00\x04Days") let is_true%0#0: uint64 = 0u - let test_struct#1: any = (setbit test_struct#0 0u is_true%0#0) + let test_struct#1: bytes = (setbit test_struct#0 0u is_true%0#0) let test_struct#2: bytes = ((replace2 1) test_struct#1 0x0c) let encoded_tuple_buffer%1#2: bytes = 0x000c let encoded_tuple_buffer%1#3: bytes = (concat encoded_tuple_buffer%1#2 0x0006) diff --git a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_3.ir b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_3.ir index c387df331d..b81f7985da 100644 --- a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_3.ir +++ b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_3.ir @@ -63,37 +63,37 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: subroutine test_cases.arc4_types.mutation.Arc4MutationContract.dynamic_array_bool() -> void: block@0: // L166 - let dynamic_bool_array#0: any = 0x000280 + let dynamic_bool_array#0: bytes = 0x000280 let tmp%2#0: uint64 = (== dynamic_bool_array#0 0x000280) (assert tmp%2#0) let dynamic_bool_array#1: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#0, 0x8000, 2u, 0u) let tmp%5#0: uint64 = (== dynamic_bool_array#1 0x0004a0) (assert tmp%5#0) - let array_data%1#2: any = 0x000480 - let array_data%1#3: any = (setbit array_data%1#2 18u 1u) - let array_data%1#4: any = (setbit array_data%1#3 19u 0u) + let array_data%1#2: bytes = 0x000480 + let array_data%1#3: bytes = (setbit array_data%1#2 18u 1u) + let array_data%1#4: bytes = (setbit array_data%1#3 19u 0u) let tmp%10#0: uint64 = (== dynamic_bool_array#1 array_data%1#4) (assert tmp%10#0) let array_length%0#0: uint64 = (extract_uint16 dynamic_bool_array#1 0u) let data%1#0: bytes = ((extract 2 0) dynamic_bool_array#1) let dynamic_bool_array#2: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#1, data%1#0, array_length%0#0, 1u) - let array_data%2#2: any = 0x000880 - let array_data%2#3: any = (setbit array_data%2#2 18u 1u) - let array_data%2#4: any = (setbit array_data%2#3 19u 0u) - let array_data%2#5: any = (setbit array_data%2#4 20u 1u) - let array_data%2#6: any = (setbit array_data%2#5 21u 0u) - let array_data%2#7: any = (setbit array_data%2#6 22u 1u) - let array_data%2#8: any = (setbit array_data%2#7 23u 0u) + let array_data%2#2: bytes = 0x000880 + let array_data%2#3: bytes = (setbit array_data%2#2 18u 1u) + let array_data%2#4: bytes = (setbit array_data%2#3 19u 0u) + let array_data%2#5: bytes = (setbit array_data%2#4 20u 1u) + let array_data%2#6: bytes = (setbit array_data%2#5 21u 0u) + let array_data%2#7: bytes = (setbit array_data%2#6 22u 1u) + let array_data%2#8: bytes = (setbit array_data%2#7 23u 0u) let tmp%19#0: uint64 = (== dynamic_bool_array#2 array_data%2#8) (assert tmp%19#0) let dynamic_bool_array#3: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#2, 0x80, 1u, 0u) - let array_data%3#2: any = 0x000980 - let array_data%3#3: any = (setbit array_data%3#2 18u 1u) - let array_data%3#4: any = (setbit array_data%3#3 19u 0u) - let array_data%3#5: any = (setbit array_data%3#4 20u 1u) - let array_data%3#6: any = (setbit array_data%3#5 21u 0u) - let array_data%3#7: any = (setbit array_data%3#6 22u 1u) - let array_data%3#8: any = (setbit array_data%3#7 23u 0u) + let array_data%3#2: bytes = 0x000980 + let array_data%3#3: bytes = (setbit array_data%3#2 18u 1u) + let array_data%3#4: bytes = (setbit array_data%3#3 19u 0u) + let array_data%3#5: bytes = (setbit array_data%3#4 20u 1u) + let array_data%3#6: bytes = (setbit array_data%3#5 21u 0u) + let array_data%3#7: bytes = (setbit array_data%3#6 22u 1u) + let array_data%3#8: bytes = (setbit array_data%3#7 23u 0u) let array_data%3#9: bytes = (concat array_data%3#8 0x80) let tmp%30#0: uint64 = (== dynamic_bool_array#3 array_data%3#9) (assert tmp%30#0) @@ -103,12 +103,12 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let (popped%1#1: bytes, dynamic_bool_array#5: bytes) = algopy_lib_arc4.dynamic_array_pop_bit(dynamic_bool_array#4) let tmp%34#0: uint64 = (== popped%1#1 0x00) (assert tmp%34#0) - let array_data%4#2: any = 0x000780 - let array_data%4#3: any = (setbit array_data%4#2 18u 1u) - let array_data%4#4: any = (setbit array_data%4#3 19u 0u) - let array_data%4#5: any = (setbit array_data%4#4 20u 1u) - let array_data%4#6: any = (setbit array_data%4#5 21u 0u) - let array_data%4#7: any = (setbit array_data%4#6 22u 1u) + let array_data%4#2: bytes = 0x000780 + let array_data%4#3: bytes = (setbit array_data%4#2 18u 1u) + let array_data%4#4: bytes = (setbit array_data%4#3 19u 0u) + let array_data%4#5: bytes = (setbit array_data%4#4 20u 1u) + let array_data%4#6: bytes = (setbit array_data%4#5 21u 0u) + let array_data%4#7: bytes = (setbit array_data%4#6 22u 1u) let tmp%42#0: uint64 = (== dynamic_bool_array#5 array_data%4#7) (assert tmp%42#0) return @@ -337,14 +337,14 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let static_uint8_array#1: bytes = ((replace2 1) 0x0102 0xff) let tmp%1#0: uint64 = (== static_uint8_array#1 0x01ff) (assert tmp%1#0) - let dynamic_bool_array#0: any = 0x000280 + let dynamic_bool_array#0: bytes = 0x000280 let array_length%1#0: uint64 = (extract_uint16 dynamic_bool_array#0 0u) (assert array_length%1#0) // Index access is out of bounds - let dynamic_bool_array#1: any = (setbit dynamic_bool_array#0 16u 0u) + let dynamic_bool_array#1: bytes = (setbit dynamic_bool_array#0 16u 0u) let tmp%4#0: uint64 = (== dynamic_bool_array#1 0x000200) (assert tmp%4#0) - let static_bool_array#0: any = 0xc0 - let static_bool_array#1: any = (setbit static_bool_array#0 1u 0u) + let static_bool_array#0: bytes = 0xc0 + let static_bool_array#1: bytes = (setbit static_bool_array#0 1u 0u) let tmp%7#0: uint64 = (== static_bool_array#1 0x80) (assert tmp%7#0) return @@ -356,7 +356,7 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let encoded_tuple_buffer%0#4: bytes = (concat encoded_tuple_buffer%0#3 value_as_uint16%1#0) let encoded_tuple_buffer%0#5: bytes = (concat encoded_tuple_buffer%0#4 "\x00\x05Happy") let test_struct#0: bytes = (concat encoded_tuple_buffer%0#5 "\x00\x04Days") - let test_struct#1: any = (setbit test_struct#0 0u 0u) + let test_struct#1: bytes = (setbit test_struct#0 0u 0u) let test_struct#2: bytes = ((replace2 1) test_struct#1 0x0c) let encoded_tuple_buffer%1#3: bytes = 0x000c0006 let value_as_uint16%3#0: bytes = 0x000d diff --git a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_4.ir b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_4.ir index 4628596e16..de9edaa352 100644 --- a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_4.ir +++ b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_4.ir @@ -63,28 +63,28 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let dynamic_bool_array#1: bytes = algopy_lib_arc4.dynamic_array_concat_bits(0x000280, 0x8000, 2u, 0u) let tmp%5#0: uint64 = (== dynamic_bool_array#1 0x0004a0) (assert tmp%5#0) - let array_data%1#3: any = 0x0004a0 - let array_data%1#4: any = (setbit array_data%1#3 19u 0u) + let array_data%1#3: bytes = 0x0004a0 + let array_data%1#4: bytes = (setbit array_data%1#3 19u 0u) let tmp%10#0: uint64 = (== dynamic_bool_array#1 array_data%1#4) (assert tmp%10#0) let array_length%0#0: uint64 = (extract_uint16 dynamic_bool_array#1 0u) let data%1#0: bytes = ((extract 2 0) dynamic_bool_array#1) let dynamic_bool_array#2: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#1, data%1#0, array_length%0#0, 1u) - let array_data%2#3: any = 0x0008a0 - let array_data%2#4: any = (setbit array_data%2#3 19u 0u) - let array_data%2#5: any = (setbit array_data%2#4 20u 1u) - let array_data%2#6: any = (setbit array_data%2#5 21u 0u) - let array_data%2#7: any = (setbit array_data%2#6 22u 1u) - let array_data%2#8: any = (setbit array_data%2#7 23u 0u) + let array_data%2#3: bytes = 0x0008a0 + let array_data%2#4: bytes = (setbit array_data%2#3 19u 0u) + let array_data%2#5: bytes = (setbit array_data%2#4 20u 1u) + let array_data%2#6: bytes = (setbit array_data%2#5 21u 0u) + let array_data%2#7: bytes = (setbit array_data%2#6 22u 1u) + let array_data%2#8: bytes = (setbit array_data%2#7 23u 0u) let tmp%19#0: uint64 = (== dynamic_bool_array#2 array_data%2#8) (assert tmp%19#0) let dynamic_bool_array#3: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#2, 0x80, 1u, 0u) - let array_data%3#3: any = 0x0009a0 - let array_data%3#4: any = (setbit array_data%3#3 19u 0u) - let array_data%3#5: any = (setbit array_data%3#4 20u 1u) - let array_data%3#6: any = (setbit array_data%3#5 21u 0u) - let array_data%3#7: any = (setbit array_data%3#6 22u 1u) - let array_data%3#8: any = (setbit array_data%3#7 23u 0u) + let array_data%3#3: bytes = 0x0009a0 + let array_data%3#4: bytes = (setbit array_data%3#3 19u 0u) + let array_data%3#5: bytes = (setbit array_data%3#4 20u 1u) + let array_data%3#6: bytes = (setbit array_data%3#5 21u 0u) + let array_data%3#7: bytes = (setbit array_data%3#6 22u 1u) + let array_data%3#8: bytes = (setbit array_data%3#7 23u 0u) let array_data%3#9: bytes = (concat array_data%3#8 0x80) let tmp%30#0: uint64 = (== dynamic_bool_array#3 array_data%3#9) (assert tmp%30#0) @@ -94,11 +94,11 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let (popped%1#1: bytes, dynamic_bool_array#5: bytes) = algopy_lib_arc4.dynamic_array_pop_bit(dynamic_bool_array#4) let tmp%34#0: uint64 = (== popped%1#1 0x00) (assert tmp%34#0) - let array_data%4#3: any = 0x0007a0 - let array_data%4#4: any = (setbit array_data%4#3 19u 0u) - let array_data%4#5: any = (setbit array_data%4#4 20u 1u) - let array_data%4#6: any = (setbit array_data%4#5 21u 0u) - let array_data%4#7: any = (setbit array_data%4#6 22u 1u) + let array_data%4#3: bytes = 0x0007a0 + let array_data%4#4: bytes = (setbit array_data%4#3 19u 0u) + let array_data%4#5: bytes = (setbit array_data%4#4 20u 1u) + let array_data%4#6: bytes = (setbit array_data%4#5 21u 0u) + let array_data%4#7: bytes = (setbit array_data%4#6 22u 1u) let tmp%42#0: uint64 = (== dynamic_bool_array#5 array_data%4#7) (assert tmp%42#0) return @@ -313,10 +313,10 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: (assert tmp%1#0) let array_length%1#0: uint64 = 2u (assert array_length%1#0) // Index access is out of bounds - let dynamic_bool_array#1: any = 0x000200 + let dynamic_bool_array#1: bytes = 0x000200 let tmp%4#0: uint64 = (== dynamic_bool_array#1 0x000200) (assert tmp%4#0) - let static_bool_array#1: any = 0x80 + let static_bool_array#1: bytes = 0x80 let tmp%7#0: uint64 = (== static_bool_array#1 0x80) (assert tmp%7#0) return @@ -326,7 +326,7 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let encoded_tuple_buffer%0#4: bytes = 0x80320006000d let encoded_tuple_buffer%0#5: bytes = (concat encoded_tuple_buffer%0#4 "\x00\x05Happy") let test_struct#0: bytes = (concat encoded_tuple_buffer%0#5 "\x00\x04Days") - let test_struct#1: any = (setbit test_struct#0 0u 0u) + let test_struct#1: bytes = (setbit test_struct#0 0u 0u) let test_struct#2: bytes = ((replace2 1) test_struct#1 0x0c) let encoded_tuple_buffer%1#4: bytes = 0x000c0006000d let encoded_tuple_buffer%1#5: bytes = (concat encoded_tuple_buffer%1#4 "\x00\x05Happy") diff --git a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_5.ir b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_5.ir index a967585be0..b06d3a6474 100644 --- a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_5.ir +++ b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_5.ir @@ -57,25 +57,25 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let dynamic_bool_array#1: bytes = algopy_lib_arc4.dynamic_array_concat_bits(0x000280, 0x8000, 2u, 0u) let tmp%5#0: uint64 = (== dynamic_bool_array#1 0x0004a0) (assert tmp%5#0) - let array_data%1#4: any = 0x0004a0 + let array_data%1#4: bytes = 0x0004a0 let tmp%10#0: uint64 = (== dynamic_bool_array#1 array_data%1#4) (assert tmp%10#0) let array_length%0#0: uint64 = (extract_uint16 dynamic_bool_array#1 0u) let data%1#0: bytes = ((extract 2 0) dynamic_bool_array#1) let dynamic_bool_array#2: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#1, data%1#0, array_length%0#0, 1u) - let array_data%2#4: any = 0x0008a0 - let array_data%2#5: any = (setbit array_data%2#4 20u 1u) - let array_data%2#6: any = (setbit array_data%2#5 21u 0u) - let array_data%2#7: any = (setbit array_data%2#6 22u 1u) - let array_data%2#8: any = (setbit array_data%2#7 23u 0u) + let array_data%2#4: bytes = 0x0008a0 + let array_data%2#5: bytes = (setbit array_data%2#4 20u 1u) + let array_data%2#6: bytes = (setbit array_data%2#5 21u 0u) + let array_data%2#7: bytes = (setbit array_data%2#6 22u 1u) + let array_data%2#8: bytes = (setbit array_data%2#7 23u 0u) let tmp%19#0: uint64 = (== dynamic_bool_array#2 array_data%2#8) (assert tmp%19#0) let dynamic_bool_array#3: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#2, 0x80, 1u, 0u) - let array_data%3#4: any = 0x0009a0 - let array_data%3#5: any = (setbit array_data%3#4 20u 1u) - let array_data%3#6: any = (setbit array_data%3#5 21u 0u) - let array_data%3#7: any = (setbit array_data%3#6 22u 1u) - let array_data%3#8: any = (setbit array_data%3#7 23u 0u) + let array_data%3#4: bytes = 0x0009a0 + let array_data%3#5: bytes = (setbit array_data%3#4 20u 1u) + let array_data%3#6: bytes = (setbit array_data%3#5 21u 0u) + let array_data%3#7: bytes = (setbit array_data%3#6 22u 1u) + let array_data%3#8: bytes = (setbit array_data%3#7 23u 0u) let array_data%3#9: bytes = (concat array_data%3#8 0x80) let tmp%30#0: uint64 = (== dynamic_bool_array#3 array_data%3#9) (assert tmp%30#0) @@ -85,10 +85,10 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let (popped%1#1: bytes, dynamic_bool_array#5: bytes) = algopy_lib_arc4.dynamic_array_pop_bit(dynamic_bool_array#4) let tmp%34#0: uint64 = (== popped%1#1 0x00) (assert tmp%34#0) - let array_data%4#4: any = 0x0007a0 - let array_data%4#5: any = (setbit array_data%4#4 20u 1u) - let array_data%4#6: any = (setbit array_data%4#5 21u 0u) - let array_data%4#7: any = (setbit array_data%4#6 22u 1u) + let array_data%4#4: bytes = 0x0007a0 + let array_data%4#5: bytes = (setbit array_data%4#4 20u 1u) + let array_data%4#6: bytes = (setbit array_data%4#5 21u 0u) + let array_data%4#7: bytes = (setbit array_data%4#6 22u 1u) let tmp%42#0: uint64 = (== dynamic_bool_array#5 array_data%4#7) (assert tmp%42#0) return @@ -292,7 +292,7 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: block@0: // L116 let encoded_tuple_buffer%0#5: bytes = 0x80320006000d00054861707079 let test_struct#0: bytes = (concat encoded_tuple_buffer%0#5 "\x00\x04Days") - let test_struct#1: any = (setbit test_struct#0 0u 0u) + let test_struct#1: bytes = (setbit test_struct#0 0u 0u) let test_struct#2: bytes = ((replace2 1) test_struct#1 0x0c) let encoded_tuple_buffer%1#5: bytes = 0x000c0006000d00054861707079 let encoded_tuple_buffer%1#6: bytes = (concat encoded_tuple_buffer%1#5 "\x00\x04Days") diff --git a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_6.ir b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_6.ir index 2e53a0bc32..fcd0fe1202 100644 --- a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_6.ir +++ b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_6.ir @@ -55,17 +55,17 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let array_length%0#0: uint64 = (extract_uint16 dynamic_bool_array#1 0u) let data%1#0: bytes = ((extract 2 0) dynamic_bool_array#1) let dynamic_bool_array#2: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#1, data%1#0, array_length%0#0, 1u) - let array_data%2#5: any = 0x0008a8 - let array_data%2#6: any = (setbit array_data%2#5 21u 0u) - let array_data%2#7: any = (setbit array_data%2#6 22u 1u) - let array_data%2#8: any = (setbit array_data%2#7 23u 0u) + let array_data%2#5: bytes = 0x0008a8 + let array_data%2#6: bytes = (setbit array_data%2#5 21u 0u) + let array_data%2#7: bytes = (setbit array_data%2#6 22u 1u) + let array_data%2#8: bytes = (setbit array_data%2#7 23u 0u) let tmp%19#0: uint64 = (== dynamic_bool_array#2 array_data%2#8) (assert tmp%19#0) let dynamic_bool_array#3: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#2, 0x80, 1u, 0u) - let array_data%3#5: any = 0x0009a8 - let array_data%3#6: any = (setbit array_data%3#5 21u 0u) - let array_data%3#7: any = (setbit array_data%3#6 22u 1u) - let array_data%3#8: any = (setbit array_data%3#7 23u 0u) + let array_data%3#5: bytes = 0x0009a8 + let array_data%3#6: bytes = (setbit array_data%3#5 21u 0u) + let array_data%3#7: bytes = (setbit array_data%3#6 22u 1u) + let array_data%3#8: bytes = (setbit array_data%3#7 23u 0u) let array_data%3#9: bytes = (concat array_data%3#8 0x80) let tmp%30#0: uint64 = (== dynamic_bool_array#3 array_data%3#9) (assert tmp%30#0) @@ -75,9 +75,9 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let (popped%1#1: bytes, dynamic_bool_array#5: bytes) = algopy_lib_arc4.dynamic_array_pop_bit(dynamic_bool_array#4) let tmp%34#0: uint64 = (== popped%1#1 0x00) (assert tmp%34#0) - let array_data%4#5: any = 0x0007a8 - let array_data%4#6: any = (setbit array_data%4#5 21u 0u) - let array_data%4#7: any = (setbit array_data%4#6 22u 1u) + let array_data%4#5: bytes = 0x0007a8 + let array_data%4#6: bytes = (setbit array_data%4#5 21u 0u) + let array_data%4#7: bytes = (setbit array_data%4#6 22u 1u) let tmp%42#0: uint64 = (== dynamic_bool_array#5 array_data%4#7) (assert tmp%42#0) return @@ -259,7 +259,7 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: subroutine test_cases.arc4_types.mutation.Arc4MutationContract.struct_assign() -> void: block@0: // L116 let test_struct#0: bytes = 0x80320006000d00054861707079000444617973 - let test_struct#1: any = (setbit test_struct#0 0u 0u) + let test_struct#1: bytes = (setbit test_struct#0 0u 0u) let test_struct#2: bytes = ((replace2 1) test_struct#1 0x0c) let encoded_tuple_buffer%1#6: bytes = 0x000c0006000d00054861707079000444617973 let tmp%2#0: uint64 = (== test_struct#2 encoded_tuple_buffer%1#6) diff --git a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_7.ir b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_7.ir index 3456ceb1ff..55c119c1e8 100644 --- a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_7.ir +++ b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_7.ir @@ -51,15 +51,15 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let array_length%0#0: uint64 = (extract_uint16 dynamic_bool_array#1 0u) let data%1#0: bytes = ((extract 2 0) dynamic_bool_array#1) let dynamic_bool_array#2: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#1, data%1#0, array_length%0#0, 1u) - let array_data%2#6: any = 0x0008a8 - let array_data%2#7: any = (setbit array_data%2#6 22u 1u) - let array_data%2#8: any = (setbit array_data%2#7 23u 0u) + let array_data%2#6: bytes = 0x0008a8 + let array_data%2#7: bytes = (setbit array_data%2#6 22u 1u) + let array_data%2#8: bytes = (setbit array_data%2#7 23u 0u) let tmp%19#0: uint64 = (== dynamic_bool_array#2 array_data%2#8) (assert tmp%19#0) let dynamic_bool_array#3: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#2, 0x80, 1u, 0u) - let array_data%3#6: any = 0x0009a8 - let array_data%3#7: any = (setbit array_data%3#6 22u 1u) - let array_data%3#8: any = (setbit array_data%3#7 23u 0u) + let array_data%3#6: bytes = 0x0009a8 + let array_data%3#7: bytes = (setbit array_data%3#6 22u 1u) + let array_data%3#8: bytes = (setbit array_data%3#7 23u 0u) let array_data%3#9: bytes = (concat array_data%3#8 0x80) let tmp%30#0: uint64 = (== dynamic_bool_array#3 array_data%3#9) (assert tmp%30#0) @@ -69,8 +69,8 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let (popped%1#1: bytes, dynamic_bool_array#5: bytes) = algopy_lib_arc4.dynamic_array_pop_bit(dynamic_bool_array#4) let tmp%34#0: uint64 = (== popped%1#1 0x00) (assert tmp%34#0) - let array_data%4#6: any = 0x0007a8 - let array_data%4#7: any = (setbit array_data%4#6 22u 1u) + let array_data%4#6: bytes = 0x0007a8 + let array_data%4#7: bytes = (setbit array_data%4#6 22u 1u) let tmp%42#0: uint64 = (== dynamic_bool_array#5 array_data%4#7) (assert tmp%42#0) return @@ -234,7 +234,7 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: subroutine test_cases.arc4_types.mutation.Arc4MutationContract.struct_assign() -> void: block@0: // L116 - let test_struct#1: any = 0x00320006000d00054861707079000444617973 + let test_struct#1: bytes = 0x00320006000d00054861707079000444617973 let test_struct#2: bytes = ((replace2 1) test_struct#1 0x0c) let tmp%2#0: uint64 = (== test_struct#2 0x000c0006000d00054861707079000444617973) (assert tmp%2#0) diff --git a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_8.ir b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_8.ir index e2c29f75ce..80d5a9dd18 100644 --- a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_8.ir +++ b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_8.ir @@ -48,13 +48,13 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let array_length%0#0: uint64 = (extract_uint16 dynamic_bool_array#1 0u) let data%1#0: bytes = ((extract 2 0) dynamic_bool_array#1) let dynamic_bool_array#2: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#1, data%1#0, array_length%0#0, 1u) - let array_data%2#7: any = 0x0008aa - let array_data%2#8: any = (setbit array_data%2#7 23u 0u) + let array_data%2#7: bytes = 0x0008aa + let array_data%2#8: bytes = (setbit array_data%2#7 23u 0u) let tmp%19#0: uint64 = (== dynamic_bool_array#2 array_data%2#8) (assert tmp%19#0) let dynamic_bool_array#3: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#2, 0x80, 1u, 0u) - let array_data%3#7: any = 0x0009aa - let array_data%3#8: any = (setbit array_data%3#7 23u 0u) + let array_data%3#7: bytes = 0x0009aa + let array_data%3#8: bytes = (setbit array_data%3#7 23u 0u) let array_data%3#9: bytes = (concat array_data%3#8 0x80) let tmp%30#0: uint64 = (== dynamic_bool_array#3 array_data%3#9) (assert tmp%30#0) @@ -64,7 +64,7 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let (popped%1#1: bytes, dynamic_bool_array#5: bytes) = algopy_lib_arc4.dynamic_array_pop_bit(dynamic_bool_array#4) let tmp%34#0: uint64 = (== popped%1#1 0x00) (assert tmp%34#0) - let array_data%4#7: any = 0x0007aa + let array_data%4#7: bytes = 0x0007aa let tmp%42#0: uint64 = (== dynamic_bool_array#5 array_data%4#7) (assert tmp%42#0) return diff --git a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_9.ir b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_9.ir index 4d4b845e4b..836c5c09cb 100644 --- a/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_9.ir +++ b/test_cases/arc4_types/out/Arc4MutationContract.ssa.opt_pass_9.ir @@ -44,11 +44,11 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let array_length%0#0: uint64 = (extract_uint16 dynamic_bool_array#1 0u) let data%1#0: bytes = ((extract 2 0) dynamic_bool_array#1) let dynamic_bool_array#2: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#1, data%1#0, array_length%0#0, 1u) - let array_data%2#8: any = 0x0008aa + let array_data%2#8: bytes = 0x0008aa let tmp%19#0: uint64 = (== dynamic_bool_array#2 array_data%2#8) (assert tmp%19#0) let dynamic_bool_array#3: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#2, 0x80, 1u, 0u) - let array_data%3#8: any = 0x0009aa + let array_data%3#8: bytes = 0x0009aa let array_data%3#9: bytes = (concat array_data%3#8 0x80) let tmp%30#0: uint64 = (== dynamic_bool_array#3 array_data%3#9) (assert tmp%30#0) diff --git a/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.ir b/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.ir index a304ebb82a..15d69656b5 100644 --- a/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.ir +++ b/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.ir @@ -2,20 +2,20 @@ contract test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule: program approval: subroutine test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule.approval_program() -> uint64: block@0: // L7 - let tmp%0#0: any = (setbit 0x00 0u 1u) - let tmp%1#0: any = (setbit 0x00 0u 0u) - let tmp%2#0: any = (setbit 0x00 0u 1u) - let tmp%3#0: any = (setbit 0x00 0u 0u) + let tmp%0#0: bytes = (setbit 0x00 0u 1u) + let tmp%1#0: bytes = (setbit 0x00 0u 0u) + let tmp%2#0: bytes = (setbit 0x00 0u 1u) + let tmp%3#0: bytes = (setbit 0x00 0u 0u) let current_tail_offset%0#0: uint64 = 1u let encoded_tuple_buffer%0#0: bytes = 0x let encoded_tuple_buffer%0#1: bytes = (concat encoded_tuple_buffer%0#0 tmp%0#0) let is_true%0#0: uint64 = (getbit tmp%1#0 0u) - let encoded_tuple_buffer%0#2: any = (setbit encoded_tuple_buffer%0#1 1u is_true%0#0) + let encoded_tuple_buffer%0#2: bytes = (setbit encoded_tuple_buffer%0#1 1u is_true%0#0) let is_true%1#0: uint64 = (getbit tmp%2#0 0u) - let encoded_tuple_buffer%0#3: any = (setbit encoded_tuple_buffer%0#2 2u is_true%1#0) + let encoded_tuple_buffer%0#3: bytes = (setbit encoded_tuple_buffer%0#2 2u is_true%1#0) let is_true%2#0: uint64 = (getbit tmp%3#0 0u) - let encoded_tuple_buffer%0#4: any = (setbit encoded_tuple_buffer%0#3 3u is_true%2#0) - let flags#0: any = encoded_tuple_buffer%0#4 + let encoded_tuple_buffer%0#4: bytes = (setbit encoded_tuple_buffer%0#3 3u is_true%2#0) + let flags#0: bytes = encoded_tuple_buffer%0#4 (log flags#0) return 1u diff --git a/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_1.ir b/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_1.ir index 4aa525259d..8bf62c5299 100644 --- a/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_1.ir +++ b/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_1.ir @@ -2,17 +2,17 @@ contract test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule: program approval: subroutine test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule.approval_program() -> uint64: block@0: // L7 - let tmp%0#0: any = 0x80 - let tmp%1#0: any = 0x00 - let tmp%2#0: any = 0x80 - let tmp%3#0: any = 0x00 + let tmp%0#0: bytes = 0x80 + let tmp%1#0: bytes = 0x00 + let tmp%2#0: bytes = 0x80 + let tmp%3#0: bytes = 0x00 let encoded_tuple_buffer%0#1: bytes = tmp%0#0 let is_true%0#0: uint64 = (getbit tmp%1#0 0u) - let encoded_tuple_buffer%0#2: any = (setbit encoded_tuple_buffer%0#1 1u is_true%0#0) + let encoded_tuple_buffer%0#2: bytes = (setbit encoded_tuple_buffer%0#1 1u is_true%0#0) let is_true%1#0: uint64 = (getbit tmp%2#0 0u) - let encoded_tuple_buffer%0#3: any = (setbit encoded_tuple_buffer%0#2 2u is_true%1#0) + let encoded_tuple_buffer%0#3: bytes = (setbit encoded_tuple_buffer%0#2 2u is_true%1#0) let is_true%2#0: uint64 = (getbit tmp%3#0 0u) - let flags#0: any = (setbit encoded_tuple_buffer%0#3 3u is_true%2#0) + let flags#0: bytes = (setbit encoded_tuple_buffer%0#3 3u is_true%2#0) (log flags#0) return 1u diff --git a/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_2.ir b/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_2.ir index 1da805e407..38c7306f1b 100644 --- a/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_2.ir +++ b/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_2.ir @@ -3,11 +3,11 @@ contract test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule: subroutine test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule.approval_program() -> uint64: block@0: // L7 let is_true%0#0: uint64 = 0u - let encoded_tuple_buffer%0#2: any = (setbit 0x80 1u is_true%0#0) + let encoded_tuple_buffer%0#2: bytes = (setbit 0x80 1u is_true%0#0) let is_true%1#0: uint64 = 1u - let encoded_tuple_buffer%0#3: any = (setbit encoded_tuple_buffer%0#2 2u is_true%1#0) + let encoded_tuple_buffer%0#3: bytes = (setbit encoded_tuple_buffer%0#2 2u is_true%1#0) let is_true%2#0: uint64 = 0u - let flags#0: any = (setbit encoded_tuple_buffer%0#3 3u is_true%2#0) + let flags#0: bytes = (setbit encoded_tuple_buffer%0#3 3u is_true%2#0) (log flags#0) return 1u diff --git a/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_3.ir b/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_3.ir index aff71a9005..537672c475 100644 --- a/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_3.ir +++ b/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_3.ir @@ -2,9 +2,9 @@ contract test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule: program approval: subroutine test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule.approval_program() -> uint64: block@0: // L7 - let encoded_tuple_buffer%0#2: any = 0x80 - let encoded_tuple_buffer%0#3: any = (setbit encoded_tuple_buffer%0#2 2u 1u) - let flags#0: any = (setbit encoded_tuple_buffer%0#3 3u 0u) + let encoded_tuple_buffer%0#2: bytes = 0x80 + let encoded_tuple_buffer%0#3: bytes = (setbit encoded_tuple_buffer%0#2 2u 1u) + let flags#0: bytes = (setbit encoded_tuple_buffer%0#3 3u 0u) (log flags#0) return 1u diff --git a/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_4.ir b/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_4.ir index 5ea9752eee..416ac06fcb 100644 --- a/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_4.ir +++ b/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_4.ir @@ -2,8 +2,8 @@ contract test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule: program approval: subroutine test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule.approval_program() -> uint64: block@0: // L7 - let encoded_tuple_buffer%0#3: any = 0xa0 - let flags#0: any = (setbit encoded_tuple_buffer%0#3 3u 0u) + let encoded_tuple_buffer%0#3: bytes = 0xa0 + let flags#0: bytes = (setbit encoded_tuple_buffer%0#3 3u 0u) (log flags#0) return 1u diff --git a/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_5.ir b/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_5.ir index a0dacf1dc9..56ff173d55 100644 --- a/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_5.ir +++ b/test_cases/arc4_types/out/Arc4StructsFromAnotherModule.ssa.opt_pass_5.ir @@ -2,7 +2,7 @@ contract test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule: program approval: subroutine test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule.approval_program() -> uint64: block@0: // L7 - let flags#0: any = 0xa0 + let flags#0: bytes = 0xa0 (log flags#0) return 1u diff --git a/test_cases/arc4_types/out/Arc4StructsTypeContract.approval.mir b/test_cases/arc4_types/out/Arc4StructsTypeContract.approval.mir index 206853bc6f..dc20c1c2d8 100644 --- a/test_cases/arc4_types/out/Arc4StructsTypeContract.approval.mir +++ b/test_cases/arc4_types/out/Arc4StructsTypeContract.approval.mir @@ -122,7 +122,7 @@ check_block@0: getbit // (𝕡) flags#0 | {getbit} flags.a arc4_types/structs.py:56 // virtual: store is_true%0#0 to l-stack (no copy) (𝕡) flags#0 | is_true%0#0 flags.a arc4_types/structs.py:56 byte 0x00 // (𝕡) flags#0 | is_true%0#0,0x00 flags.a arc4_types/structs.py:56 - int 0 // (𝕡) flags#0 | is_true%0#0,0x00,0 + int 0 // (𝕡) flags#0 | is_true%0#0,0x00,0 flags.a arc4_types/structs.py:56 uncover 2 // load is_true%0#0 from l-stack (no copy) (𝕡) flags#0 | 0x00,0,is_true%0#0 flags.a arc4_types/structs.py:56 setbit // (𝕡) flags#0 | {setbit} flags.a arc4_types/structs.py:56 // virtual: store tmp%0#0 to l-stack (no copy) (𝕡) flags#0 | tmp%0#0 flags.a arc4_types/structs.py:56 @@ -137,7 +137,7 @@ check_block@0: getbit // (𝕡) flags#0 | {getbit} flags.b arc4_types/structs.py:57 // virtual: store is_true%1#0 to l-stack (no copy) (𝕡) flags#0 | is_true%1#0 flags.b arc4_types/structs.py:57 byte 0x00 // (𝕡) flags#0 | is_true%1#0,0x00 flags.b arc4_types/structs.py:57 - int 0 // (𝕡) flags#0 | is_true%1#0,0x00,0 + int 0 // (𝕡) flags#0 | is_true%1#0,0x00,0 flags.b arc4_types/structs.py:57 uncover 2 // load is_true%1#0 from l-stack (no copy) (𝕡) flags#0 | 0x00,0,is_true%1#0 flags.b arc4_types/structs.py:57 setbit // (𝕡) flags#0 | {setbit} flags.b arc4_types/structs.py:57 // virtual: store tmp%2#0 to l-stack (no copy) (𝕡) flags#0 | tmp%2#0 flags.b arc4_types/structs.py:57 @@ -155,7 +155,7 @@ check_block@0: getbit // (𝕡) flags#0 | {getbit} flags.c arc4_types/structs.py:58 // virtual: store is_true%2#0 to l-stack (no copy) (𝕡) flags#0 | is_true%2#0 flags.c arc4_types/structs.py:58 byte 0x00 // (𝕡) flags#0 | is_true%2#0,0x00 flags.c arc4_types/structs.py:58 - int 0 // (𝕡) flags#0 | is_true%2#0,0x00,0 + int 0 // (𝕡) flags#0 | is_true%2#0,0x00,0 flags.c arc4_types/structs.py:58 uncover 2 // load is_true%2#0 from l-stack (no copy) (𝕡) flags#0 | 0x00,0,is_true%2#0 flags.c arc4_types/structs.py:58 setbit // (𝕡) flags#0 | {setbit} flags.c arc4_types/structs.py:58 // virtual: store tmp%5#0 to l-stack (no copy) (𝕡) flags#0 | tmp%5#0 flags.c arc4_types/structs.py:58 @@ -170,7 +170,7 @@ check_block@0: getbit // (𝕡) flags#0 | {getbit} flags.d arc4_types/structs.py:59 // virtual: store is_true%3#0 to l-stack (no copy) (𝕡) flags#0 | is_true%3#0 flags.d arc4_types/structs.py:59 byte 0x00 // (𝕡) flags#0 | is_true%3#0,0x00 flags.d arc4_types/structs.py:59 - int 0 // (𝕡) flags#0 | is_true%3#0,0x00,0 + int 0 // (𝕡) flags#0 | is_true%3#0,0x00,0 flags.d arc4_types/structs.py:59 uncover 2 // load is_true%3#0 from l-stack (no copy) (𝕡) flags#0 | 0x00,0,is_true%3#0 flags.d arc4_types/structs.py:59 setbit // (𝕡) flags#0 | {setbit} flags.d arc4_types/structs.py:59 // virtual: store tmp%7#0 to l-stack (no copy) (𝕡) flags#0 | tmp%7#0 flags.d arc4_types/structs.py:59 @@ -215,7 +215,7 @@ nested_decode_block@0: getbit // (𝕡) vector_flags#0 | {getbit} vector_flags.flags.c arc4_types/structs.py:65 // virtual: store is_true%0#0 to l-stack (no copy) (𝕡) vector_flags#0 | is_true%0#0 vector_flags.flags.c arc4_types/structs.py:65 byte 0x00 // (𝕡) vector_flags#0 | is_true%0#0,0x00 vector_flags.flags.c arc4_types/structs.py:65 - int 0 // (𝕡) vector_flags#0 | is_true%0#0,0x00,0 + int 0 // (𝕡) vector_flags#0 | is_true%0#0,0x00,0 vector_flags.flags.c arc4_types/structs.py:65 uncover 2 // load is_true%0#0 from l-stack (no copy) (𝕡) vector_flags#0 | 0x00,0,is_true%0#0 vector_flags.flags.c arc4_types/structs.py:65 setbit // (𝕡) vector_flags#0 | {setbit} vector_flags.flags.c arc4_types/structs.py:65 // virtual: store tmp%5#0 to l-stack (no copy) (𝕡) vector_flags#0 | tmp%5#0 vector_flags.flags.c arc4_types/structs.py:65 diff --git a/test_cases/arc4_types/out/Arc4StructsTypeContract.destructured.ir b/test_cases/arc4_types/out/Arc4StructsTypeContract.destructured.ir index 06b0f583ce..7adef55597 100644 --- a/test_cases/arc4_types/out/Arc4StructsTypeContract.destructured.ir +++ b/test_cases/arc4_types/out/Arc4StructsTypeContract.destructured.ir @@ -43,20 +43,20 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: subroutine test_cases.arc4_types.structs.check(flags: bytes) -> bytes: block@0: // L54 let is_true%0#0: uint64 = (getbit flags#0 0u) - let tmp%0#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%0#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%1#0: uint64 = (getbit tmp%0#0 0u) (assert tmp%1#0) let is_true%1#0: uint64 = (getbit flags#0 1u) - let tmp%2#0: any = (setbit 0x00 0u is_true%1#0) + let tmp%2#0: bytes = (setbit 0x00 0u is_true%1#0) let tmp%3#0: uint64 = (getbit tmp%2#0 0u) let tmp%4#0: uint64 = (! tmp%3#0) (assert tmp%4#0) let is_true%2#0: uint64 = (getbit flags#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%2#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%2#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) let is_true%3#0: uint64 = (getbit flags#0 3u) - let tmp%7#0: any = (setbit 0x00 0u is_true%3#0) + let tmp%7#0: bytes = (setbit 0x00 0u is_true%3#0) let tmp%8#0: uint64 = (getbit tmp%7#0 0u) let tmp%9#0: uint64 = (! tmp%8#0) (assert tmp%9#0) @@ -71,7 +71,7 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: (assert tmp%3#0) let tmp%4#0: bytes = ((extract 16 1) vector_flags#0) let is_true%0#0: uint64 = (getbit tmp%4#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) return vector_flags#0 diff --git a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.ir b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.ir index d8dfc7b933..94f7dbddb4 100644 --- a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.ir +++ b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.ir @@ -37,28 +37,28 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: let tuple_index%0#3: uint64 = (+ tuple_index%0#1 1u) goto_nth [block@2][tuple_index%0#1] else goto block@5 block@5: // after_for_L30 - let tmp%2#0: any = (setbit 0x00 0u 1u) - let tmp%3#0: any = (setbit 0x00 0u 0u) - let tmp%4#0: any = (setbit 0x00 0u 1u) - let tmp%5#0: any = (setbit 0x00 0u 0u) + let tmp%2#0: bytes = (setbit 0x00 0u 1u) + let tmp%3#0: bytes = (setbit 0x00 0u 0u) + let tmp%4#0: bytes = (setbit 0x00 0u 1u) + let tmp%5#0: bytes = (setbit 0x00 0u 0u) let current_tail_offset%2#0: uint64 = 1u let encoded_tuple_buffer%2#0: bytes = 0x let encoded_tuple_buffer%2#1: bytes = (concat encoded_tuple_buffer%2#0 tmp%2#0) let is_true%0#0: uint64 = (getbit tmp%3#0 0u) - let encoded_tuple_buffer%2#2: any = (setbit encoded_tuple_buffer%2#1 1u is_true%0#0) + let encoded_tuple_buffer%2#2: bytes = (setbit encoded_tuple_buffer%2#1 1u is_true%0#0) let is_true%1#0: uint64 = (getbit tmp%4#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 2u is_true%1#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 2u is_true%1#0) let is_true%2#0: uint64 = (getbit tmp%5#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 3u is_true%2#0) - let flags#0: any = encoded_tuple_buffer%2#4 - let copy%2#0: any = flags#0 + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 3u is_true%2#0) + let flags#0: bytes = encoded_tuple_buffer%2#4 + let copy%2#0: bytes = flags#0 let check%0#0: bytes = test_cases.arc4_types.structs.check(copy%2#0) let copy%2#1: bytes = check%0#0 (log flags#0) let tmp%6#0: uint64 = (== coord_1#0 coord_1#0) (assert tmp%6#0) let copy%3#0: bytes = coord_1#0 - let copy%4#0: any = flags#0 + let copy%4#0: bytes = flags#0 let current_tail_offset%3#0: uint64 = 17u let encoded_tuple_buffer%3#0: bytes = 0x let encoded_tuple_buffer%3#1: bytes = (concat encoded_tuple_buffer%3#0 copy%3#0) @@ -92,20 +92,20 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: subroutine test_cases.arc4_types.structs.check(flags: bytes) -> bytes: block@0: // L54 let is_true%0#0: uint64 = (getbit flags#0 0u) - let tmp%0#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%0#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%1#0: uint64 = (getbit tmp%0#0 0u) (assert tmp%1#0) let is_true%1#0: uint64 = (getbit flags#0 1u) - let tmp%2#0: any = (setbit 0x00 0u is_true%1#0) + let tmp%2#0: bytes = (setbit 0x00 0u is_true%1#0) let tmp%3#0: uint64 = (getbit tmp%2#0 0u) let tmp%4#0: uint64 = (! tmp%3#0) (assert tmp%4#0) let is_true%2#0: uint64 = (getbit flags#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%2#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%2#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) let is_true%3#0: uint64 = (getbit flags#0 3u) - let tmp%7#0: any = (setbit 0x00 0u is_true%3#0) + let tmp%7#0: bytes = (setbit 0x00 0u is_true%3#0) let tmp%8#0: uint64 = (getbit tmp%7#0 0u) let tmp%9#0: uint64 = (! tmp%8#0) (assert tmp%9#0) @@ -120,7 +120,7 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: (assert tmp%3#0) let tmp%4#0: bytes = (extract3 vector_flags#0 16u 1u) let is_true%0#0: uint64 = (getbit tmp%4#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) return vector_flags#0 diff --git a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_1.ir b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_1.ir index 853a0c4be4..750e5daf42 100644 --- a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_1.ir +++ b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_1.ir @@ -20,17 +20,17 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: let tuple_index%0#3: uint64 = (+ tuple_index%0#1 1u) goto tuple_index%0#1 ? block@5 : block@2 block@5: // after_for_L30 - let tmp%2#0: any = 0x80 - let tmp%3#0: any = 0x00 - let tmp%4#0: any = 0x80 - let tmp%5#0: any = 0x00 + let tmp%2#0: bytes = 0x80 + let tmp%3#0: bytes = 0x00 + let tmp%4#0: bytes = 0x80 + let tmp%5#0: bytes = 0x00 let encoded_tuple_buffer%2#1: bytes = tmp%2#0 let is_true%0#0: uint64 = (getbit tmp%3#0 0u) - let encoded_tuple_buffer%2#2: any = (setbit encoded_tuple_buffer%2#1 1u is_true%0#0) + let encoded_tuple_buffer%2#2: bytes = (setbit encoded_tuple_buffer%2#1 1u is_true%0#0) let is_true%1#0: uint64 = (getbit tmp%4#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 2u is_true%1#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 2u is_true%1#0) let is_true%2#0: uint64 = (getbit tmp%5#0 0u) - let flags#0: any = (setbit encoded_tuple_buffer%2#3 3u is_true%2#0) + let flags#0: bytes = (setbit encoded_tuple_buffer%2#3 3u is_true%2#0) let check%0#0: bytes = test_cases.arc4_types.structs.check(flags#0) (log flags#0) let tmp%6#0: uint64 = 1u @@ -63,20 +63,20 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: subroutine test_cases.arc4_types.structs.check(flags: bytes) -> bytes: block@0: // L54 let is_true%0#0: uint64 = (getbit flags#0 0u) - let tmp%0#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%0#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%1#0: uint64 = (getbit tmp%0#0 0u) (assert tmp%1#0) let is_true%1#0: uint64 = (getbit flags#0 1u) - let tmp%2#0: any = (setbit 0x00 0u is_true%1#0) + let tmp%2#0: bytes = (setbit 0x00 0u is_true%1#0) let tmp%3#0: uint64 = (getbit tmp%2#0 0u) let tmp%4#0: uint64 = (! tmp%3#0) (assert tmp%4#0) let is_true%2#0: uint64 = (getbit flags#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%2#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%2#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) let is_true%3#0: uint64 = (getbit flags#0 3u) - let tmp%7#0: any = (setbit 0x00 0u is_true%3#0) + let tmp%7#0: bytes = (setbit 0x00 0u is_true%3#0) let tmp%8#0: uint64 = (getbit tmp%7#0 0u) let tmp%9#0: uint64 = (! tmp%8#0) (assert tmp%9#0) @@ -91,7 +91,7 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: (assert tmp%3#0) let tmp%4#0: bytes = ((extract 16 1) vector_flags#0) let is_true%0#0: uint64 = (getbit tmp%4#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) return vector_flags#0 diff --git a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_2.ir b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_2.ir index 161f79a875..19f5919e26 100644 --- a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_2.ir +++ b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_2.ir @@ -19,11 +19,11 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: goto tuple_index%0#1 ? block@5 : block@2 block@5: // after_for_L30 let is_true%0#0: uint64 = 0u - let encoded_tuple_buffer%2#2: any = (setbit 0x80 1u is_true%0#0) + let encoded_tuple_buffer%2#2: bytes = (setbit 0x80 1u is_true%0#0) let is_true%1#0: uint64 = 1u - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 2u is_true%1#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 2u is_true%1#0) let is_true%2#0: uint64 = 0u - let flags#0: any = (setbit encoded_tuple_buffer%2#3 3u is_true%2#0) + let flags#0: bytes = (setbit encoded_tuple_buffer%2#3 3u is_true%2#0) let check%0#0: bytes = test_cases.arc4_types.structs.check(flags#0) (log flags#0) let encoded_tuple_buffer%3#2: bytes = (concat coord_1#0 flags#0) @@ -52,20 +52,20 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: subroutine test_cases.arc4_types.structs.check(flags: bytes) -> bytes: block@0: // L54 let is_true%0#0: uint64 = (getbit flags#0 0u) - let tmp%0#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%0#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%1#0: uint64 = (getbit tmp%0#0 0u) (assert tmp%1#0) let is_true%1#0: uint64 = (getbit flags#0 1u) - let tmp%2#0: any = (setbit 0x00 0u is_true%1#0) + let tmp%2#0: bytes = (setbit 0x00 0u is_true%1#0) let tmp%3#0: uint64 = (getbit tmp%2#0 0u) let tmp%4#0: uint64 = (! tmp%3#0) (assert tmp%4#0) let is_true%2#0: uint64 = (getbit flags#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%2#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%2#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) let is_true%3#0: uint64 = (getbit flags#0 3u) - let tmp%7#0: any = (setbit 0x00 0u is_true%3#0) + let tmp%7#0: bytes = (setbit 0x00 0u is_true%3#0) let tmp%8#0: uint64 = (getbit tmp%7#0 0u) let tmp%9#0: uint64 = (! tmp%8#0) (assert tmp%9#0) @@ -80,7 +80,7 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: (assert tmp%3#0) let tmp%4#0: bytes = ((extract 16 1) vector_flags#0) let is_true%0#0: uint64 = (getbit tmp%4#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) return vector_flags#0 diff --git a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_3.ir b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_3.ir index 55f5c862c5..11aba647e5 100644 --- a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_3.ir +++ b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_3.ir @@ -16,9 +16,9 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: let tuple_index%0#3: uint64 = (+ tuple_index%0#1 1u) goto tuple_index%0#1 ? block@5 : block@2 block@5: // after_for_L30 - let encoded_tuple_buffer%2#2: any = 0x80 - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 2u 1u) - let flags#0: any = (setbit encoded_tuple_buffer%2#3 3u 0u) + let encoded_tuple_buffer%2#2: bytes = 0x80 + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 2u 1u) + let flags#0: bytes = (setbit encoded_tuple_buffer%2#3 3u 0u) let check%0#0: bytes = test_cases.arc4_types.structs.check(flags#0) (log flags#0) let encoded_tuple_buffer%3#2: bytes = (concat 0x000000083cfbf217000000230384b842 flags#0) @@ -47,20 +47,20 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: subroutine test_cases.arc4_types.structs.check(flags: bytes) -> bytes: block@0: // L54 let is_true%0#0: uint64 = (getbit flags#0 0u) - let tmp%0#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%0#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%1#0: uint64 = (getbit tmp%0#0 0u) (assert tmp%1#0) let is_true%1#0: uint64 = (getbit flags#0 1u) - let tmp%2#0: any = (setbit 0x00 0u is_true%1#0) + let tmp%2#0: bytes = (setbit 0x00 0u is_true%1#0) let tmp%3#0: uint64 = (getbit tmp%2#0 0u) let tmp%4#0: uint64 = (! tmp%3#0) (assert tmp%4#0) let is_true%2#0: uint64 = (getbit flags#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%2#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%2#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) let is_true%3#0: uint64 = (getbit flags#0 3u) - let tmp%7#0: any = (setbit 0x00 0u is_true%3#0) + let tmp%7#0: bytes = (setbit 0x00 0u is_true%3#0) let tmp%8#0: uint64 = (getbit tmp%7#0 0u) let tmp%9#0: uint64 = (! tmp%8#0) (assert tmp%9#0) @@ -75,7 +75,7 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: (assert tmp%3#0) let tmp%4#0: bytes = ((extract 16 1) vector_flags#0) let is_true%0#0: uint64 = (getbit tmp%4#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) return vector_flags#0 diff --git a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_4.ir b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_4.ir index 1480e86680..6107496bca 100644 --- a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_4.ir +++ b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_4.ir @@ -16,8 +16,8 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: let tuple_index%0#3: uint64 = (+ tuple_index%0#1 1u) goto tuple_index%0#1 ? block@5 : block@2 block@5: // after_for_L30 - let encoded_tuple_buffer%2#3: any = 0xa0 - let flags#0: any = (setbit encoded_tuple_buffer%2#3 3u 0u) + let encoded_tuple_buffer%2#3: bytes = 0xa0 + let flags#0: bytes = (setbit encoded_tuple_buffer%2#3 3u 0u) let check%0#0: bytes = test_cases.arc4_types.structs.check(flags#0) (log flags#0) let encoded_tuple_buffer%3#2: bytes = (concat 0x000000083cfbf217000000230384b842 flags#0) @@ -46,20 +46,20 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: subroutine test_cases.arc4_types.structs.check(flags: bytes) -> bytes: block@0: // L54 let is_true%0#0: uint64 = (getbit flags#0 0u) - let tmp%0#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%0#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%1#0: uint64 = (getbit tmp%0#0 0u) (assert tmp%1#0) let is_true%1#0: uint64 = (getbit flags#0 1u) - let tmp%2#0: any = (setbit 0x00 0u is_true%1#0) + let tmp%2#0: bytes = (setbit 0x00 0u is_true%1#0) let tmp%3#0: uint64 = (getbit tmp%2#0 0u) let tmp%4#0: uint64 = (! tmp%3#0) (assert tmp%4#0) let is_true%2#0: uint64 = (getbit flags#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%2#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%2#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) let is_true%3#0: uint64 = (getbit flags#0 3u) - let tmp%7#0: any = (setbit 0x00 0u is_true%3#0) + let tmp%7#0: bytes = (setbit 0x00 0u is_true%3#0) let tmp%8#0: uint64 = (getbit tmp%7#0 0u) let tmp%9#0: uint64 = (! tmp%8#0) (assert tmp%9#0) @@ -74,7 +74,7 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: (assert tmp%3#0) let tmp%4#0: bytes = ((extract 16 1) vector_flags#0) let is_true%0#0: uint64 = (getbit tmp%4#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) return vector_flags#0 diff --git a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_5.ir b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_5.ir index 13f355cc12..205a877866 100644 --- a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_5.ir +++ b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_5.ir @@ -16,7 +16,7 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: let tuple_index%0#3: uint64 = (+ tuple_index%0#1 1u) goto tuple_index%0#1 ? block@5 : block@2 block@5: // after_for_L30 - let flags#0: any = 0xa0 + let flags#0: bytes = 0xa0 let check%0#0: bytes = test_cases.arc4_types.structs.check(flags#0) (log flags#0) let encoded_tuple_buffer%3#2: bytes = (concat 0x000000083cfbf217000000230384b842 flags#0) @@ -45,20 +45,20 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: subroutine test_cases.arc4_types.structs.check(flags: bytes) -> bytes: block@0: // L54 let is_true%0#0: uint64 = (getbit flags#0 0u) - let tmp%0#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%0#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%1#0: uint64 = (getbit tmp%0#0 0u) (assert tmp%1#0) let is_true%1#0: uint64 = (getbit flags#0 1u) - let tmp%2#0: any = (setbit 0x00 0u is_true%1#0) + let tmp%2#0: bytes = (setbit 0x00 0u is_true%1#0) let tmp%3#0: uint64 = (getbit tmp%2#0 0u) let tmp%4#0: uint64 = (! tmp%3#0) (assert tmp%4#0) let is_true%2#0: uint64 = (getbit flags#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%2#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%2#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) let is_true%3#0: uint64 = (getbit flags#0 3u) - let tmp%7#0: any = (setbit 0x00 0u is_true%3#0) + let tmp%7#0: bytes = (setbit 0x00 0u is_true%3#0) let tmp%8#0: uint64 = (getbit tmp%7#0 0u) let tmp%9#0: uint64 = (! tmp%8#0) (assert tmp%9#0) @@ -73,7 +73,7 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: (assert tmp%3#0) let tmp%4#0: bytes = ((extract 16 1) vector_flags#0) let is_true%0#0: uint64 = (getbit tmp%4#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) return vector_flags#0 diff --git a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_6.ir b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_6.ir index 136f64d817..38e5e40014 100644 --- a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_6.ir +++ b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_6.ir @@ -44,20 +44,20 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: subroutine test_cases.arc4_types.structs.check(flags: bytes) -> bytes: block@0: // L54 let is_true%0#0: uint64 = (getbit flags#0 0u) - let tmp%0#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%0#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%1#0: uint64 = (getbit tmp%0#0 0u) (assert tmp%1#0) let is_true%1#0: uint64 = (getbit flags#0 1u) - let tmp%2#0: any = (setbit 0x00 0u is_true%1#0) + let tmp%2#0: bytes = (setbit 0x00 0u is_true%1#0) let tmp%3#0: uint64 = (getbit tmp%2#0 0u) let tmp%4#0: uint64 = (! tmp%3#0) (assert tmp%4#0) let is_true%2#0: uint64 = (getbit flags#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%2#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%2#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) let is_true%3#0: uint64 = (getbit flags#0 3u) - let tmp%7#0: any = (setbit 0x00 0u is_true%3#0) + let tmp%7#0: bytes = (setbit 0x00 0u is_true%3#0) let tmp%8#0: uint64 = (getbit tmp%7#0 0u) let tmp%9#0: uint64 = (! tmp%8#0) (assert tmp%9#0) @@ -72,7 +72,7 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: (assert tmp%3#0) let tmp%4#0: bytes = ((extract 16 1) vector_flags#0) let is_true%0#0: uint64 = (getbit tmp%4#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) return vector_flags#0 diff --git a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_7.ir b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_7.ir index e8ebee52e8..2df88a62ed 100644 --- a/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_7.ir +++ b/test_cases/arc4_types/out/Arc4StructsTypeContract.ssa.opt_pass_7.ir @@ -43,20 +43,20 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: subroutine test_cases.arc4_types.structs.check(flags: bytes) -> bytes: block@0: // L54 let is_true%0#0: uint64 = (getbit flags#0 0u) - let tmp%0#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%0#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%1#0: uint64 = (getbit tmp%0#0 0u) (assert tmp%1#0) let is_true%1#0: uint64 = (getbit flags#0 1u) - let tmp%2#0: any = (setbit 0x00 0u is_true%1#0) + let tmp%2#0: bytes = (setbit 0x00 0u is_true%1#0) let tmp%3#0: uint64 = (getbit tmp%2#0 0u) let tmp%4#0: uint64 = (! tmp%3#0) (assert tmp%4#0) let is_true%2#0: uint64 = (getbit flags#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%2#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%2#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) let is_true%3#0: uint64 = (getbit flags#0 3u) - let tmp%7#0: any = (setbit 0x00 0u is_true%3#0) + let tmp%7#0: bytes = (setbit 0x00 0u is_true%3#0) let tmp%8#0: uint64 = (getbit tmp%7#0 0u) let tmp%9#0: uint64 = (! tmp%8#0) (assert tmp%9#0) @@ -71,7 +71,7 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: (assert tmp%3#0) let tmp%4#0: bytes = ((extract 16 1) vector_flags#0) let is_true%0#0: uint64 = (getbit tmp%4#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) return vector_flags#0 diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.ir index 3a6394ea7b..6fbb266ee9 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.ir @@ -22,33 +22,33 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: let my_tuple#0: bytes = encoded_tuple_buffer%0#7 let tmp%0#0: uint64 = (== my_tuple#0 0x01020007000eff000568656c6c6f0005776f726c64) (assert tmp%0#0) - let tmp%1#0: any = (setbit 0x00 0u 1u) - let tmp%2#0: any = (setbit 0x00 0u 0u) - let tmp%3#0: any = (setbit 0x00 0u 1u) - let tmp%4#0: any = (setbit 0x00 0u 1u) - let tmp%5#0: any = (setbit 0x00 0u 1u) - let tmp%6#0: any = (setbit 0x00 0u 1u) - let tmp%7#0: any = (setbit 0x00 0u 0u) - let tmp%8#0: any = (setbit 0x00 0u 1u) - let tmp%9#0: any = (setbit 0x00 0u 1u) + let tmp%1#0: bytes = (setbit 0x00 0u 1u) + let tmp%2#0: bytes = (setbit 0x00 0u 0u) + let tmp%3#0: bytes = (setbit 0x00 0u 1u) + let tmp%4#0: bytes = (setbit 0x00 0u 1u) + let tmp%5#0: bytes = (setbit 0x00 0u 1u) + let tmp%6#0: bytes = (setbit 0x00 0u 1u) + let tmp%7#0: bytes = (setbit 0x00 0u 0u) + let tmp%8#0: bytes = (setbit 0x00 0u 1u) + let tmp%9#0: bytes = (setbit 0x00 0u 1u) let current_tail_offset%1#0: uint64 = 4u let encoded_tuple_buffer%1#0: bytes = 0x let encoded_tuple_buffer%1#1: bytes = (concat encoded_tuple_buffer%1#0 0x04) let encoded_tuple_buffer%1#2: bytes = (concat encoded_tuple_buffer%1#1 tmp%1#0) let is_true%0#0: uint64 = (getbit tmp%2#0 0u) - let encoded_tuple_buffer%1#3: any = (setbit encoded_tuple_buffer%1#2 9u is_true%0#0) + let encoded_tuple_buffer%1#3: bytes = (setbit encoded_tuple_buffer%1#2 9u is_true%0#0) let is_true%1#0: uint64 = (getbit tmp%3#0 0u) - let encoded_tuple_buffer%1#4: any = (setbit encoded_tuple_buffer%1#3 10u is_true%1#0) + let encoded_tuple_buffer%1#4: bytes = (setbit encoded_tuple_buffer%1#3 10u is_true%1#0) let is_true%2#0: uint64 = (getbit tmp%4#0 0u) - let encoded_tuple_buffer%1#5: any = (setbit encoded_tuple_buffer%1#4 11u is_true%2#0) + let encoded_tuple_buffer%1#5: bytes = (setbit encoded_tuple_buffer%1#4 11u is_true%2#0) let is_true%3#0: uint64 = (getbit tmp%5#0 0u) - let encoded_tuple_buffer%1#6: any = (setbit encoded_tuple_buffer%1#5 12u is_true%3#0) + let encoded_tuple_buffer%1#6: bytes = (setbit encoded_tuple_buffer%1#5 12u is_true%3#0) let is_true%4#0: uint64 = (getbit tmp%6#0 0u) - let encoded_tuple_buffer%1#7: any = (setbit encoded_tuple_buffer%1#6 13u is_true%4#0) + let encoded_tuple_buffer%1#7: bytes = (setbit encoded_tuple_buffer%1#6 13u is_true%4#0) let is_true%5#0: uint64 = (getbit tmp%7#0 0u) - let encoded_tuple_buffer%1#8: any = (setbit encoded_tuple_buffer%1#7 14u is_true%5#0) + let encoded_tuple_buffer%1#8: bytes = (setbit encoded_tuple_buffer%1#7 14u is_true%5#0) let is_true%6#0: uint64 = (getbit tmp%8#0 0u) - let encoded_tuple_buffer%1#9: any = (setbit encoded_tuple_buffer%1#8 15u is_true%6#0) + let encoded_tuple_buffer%1#9: bytes = (setbit encoded_tuple_buffer%1#8 15u is_true%6#0) let encoded_tuple_buffer%1#10: bytes = (concat encoded_tuple_buffer%1#9 tmp%9#0) let encoded_tuple_buffer%1#11: bytes = (concat encoded_tuple_buffer%1#10 0x10) let boolean_packing#0: bytes = encoded_tuple_buffer%1#11 @@ -56,34 +56,34 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%10#0) let item0%0#0: bytes = (extract3 boolean_packing#0 0u 1u) let is_true%7#0: uint64 = (getbit boolean_packing#0 8u) - let item1%0#0: any = (setbit 0x00 0u is_true%7#0) + let item1%0#0: bytes = (setbit 0x00 0u is_true%7#0) let is_true%8#0: uint64 = (getbit boolean_packing#0 9u) - let item2%0#0: any = (setbit 0x00 0u is_true%8#0) + let item2%0#0: bytes = (setbit 0x00 0u is_true%8#0) let is_true%9#0: uint64 = (getbit boolean_packing#0 10u) - let item3%0#0: any = (setbit 0x00 0u is_true%9#0) + let item3%0#0: bytes = (setbit 0x00 0u is_true%9#0) let is_true%10#0: uint64 = (getbit boolean_packing#0 11u) - let item4%0#0: any = (setbit 0x00 0u is_true%10#0) + let item4%0#0: bytes = (setbit 0x00 0u is_true%10#0) let is_true%11#0: uint64 = (getbit boolean_packing#0 12u) - let item5%0#0: any = (setbit 0x00 0u is_true%11#0) + let item5%0#0: bytes = (setbit 0x00 0u is_true%11#0) let is_true%12#0: uint64 = (getbit boolean_packing#0 13u) - let item6%0#0: any = (setbit 0x00 0u is_true%12#0) + let item6%0#0: bytes = (setbit 0x00 0u is_true%12#0) let is_true%13#0: uint64 = (getbit boolean_packing#0 14u) - let item7%0#0: any = (setbit 0x00 0u is_true%13#0) + let item7%0#0: bytes = (setbit 0x00 0u is_true%13#0) let is_true%14#0: uint64 = (getbit boolean_packing#0 15u) - let item8%0#0: any = (setbit 0x00 0u is_true%14#0) + let item8%0#0: bytes = (setbit 0x00 0u is_true%14#0) let is_true%15#0: uint64 = (getbit boolean_packing#0 16u) - let item9%0#0: any = (setbit 0x00 0u is_true%15#0) + let item9%0#0: bytes = (setbit 0x00 0u is_true%15#0) let item10%0#0: bytes = (extract3 boolean_packing#0 3u 1u) let a#0: bytes = item0%0#0 - let b#0: any = item1%0#0 - let c#0: any = item2%0#0 - let d#0: any = item3%0#0 - let e#0: any = item4%0#0 - let f#0: any = item5%0#0 - let g#0: any = item6%0#0 - let h#0: any = item7%0#0 - let i#0: any = item8%0#0 - let j#0: any = item9%0#0 + let b#0: bytes = item1%0#0 + let c#0: bytes = item2%0#0 + let d#0: bytes = item3%0#0 + let e#0: bytes = item4%0#0 + let f#0: bytes = item5%0#0 + let g#0: bytes = item6%0#0 + let h#0: bytes = item7%0#0 + let i#0: bytes = item8%0#0 + let j#0: bytes = item9%0#0 let k#0: bytes = item10%0#0 let tmp%11#0: bytes = (extract3 boolean_packing#0 3u 1u) let tmp%12#0: uint64 = (b== tmp%11#0 k#0) @@ -94,40 +94,40 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: let tmp%15#0: uint64 = (== b#0 0x00) goto tmp%15#0 ? block@1 : block@2 block@1: // ternary_true_L39 - let ternary_result%0#0: any = b#0 + let ternary_result%0#0: bytes = b#0 goto block@18 block@2: // ternary_false_L39 let tmp%16#0: uint64 = (== d#0 0x00) goto tmp%16#0 ? block@3 : block@4 block@3: // ternary_true_L39 - let ternary_result%1#0: any = d#0 + let ternary_result%1#0: bytes = d#0 goto block@17 block@4: // ternary_false_L39 let tmp%17#0: uint64 = (== e#0 0x00) goto tmp%17#0 ? block@5 : block@6 block@5: // ternary_true_L39 - let ternary_result%2#0: any = e#0 + let ternary_result%2#0: bytes = e#0 goto block@16 block@6: // ternary_false_L39 let tmp%18#0: uint64 = (== f#0 0x00) goto tmp%18#0 ? block@7 : block@8 block@7: // ternary_true_L39 - let ternary_result%3#0: any = f#0 + let ternary_result%3#0: bytes = f#0 goto block@15 block@8: // ternary_false_L39 let tmp%19#0: uint64 = (== g#0 0x00) goto tmp%19#0 ? block@9 : block@10 block@9: // ternary_true_L39 - let ternary_result%4#0: any = g#0 + let ternary_result%4#0: bytes = g#0 goto block@14 block@10: // ternary_false_L39 let tmp%20#0: uint64 = (== i#0 0x00) goto tmp%20#0 ? block@11 : block@12 block@11: // ternary_true_L39 - let ternary_result%5#0: any = i#0 + let ternary_result%5#0: bytes = i#0 goto block@13 block@12: // ternary_false_L39 - let ternary_result%5#1: any = j#0 + let ternary_result%5#1: bytes = j#0 goto block@13 block@13: // ternary_merge_L39 let ternary_result%5#2: bytes = φ(ternary_result%5#0 <- block@11, ternary_result%5#1 <- block@12) @@ -156,10 +156,10 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: let tmp%22#0: uint64 = (!= c#0 0x00) goto tmp%22#0 ? block@19 : block@20 block@19: // ternary_true_L40 - let ternary_result%6#0: any = c#0 + let ternary_result%6#0: bytes = c#0 goto block@21 block@20: // ternary_false_L40 - let ternary_result%6#1: any = h#0 + let ternary_result%6#1: bytes = h#0 goto block@21 block@21: // ternary_merge_L40 let ternary_result%6#2: bytes = φ(ternary_result%6#0 <- block@19, ternary_result%6#1 <- block@20) @@ -170,42 +170,42 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let item0%1#0: bytes = (extract3 boolean_packing#0 0u 1u) let is_true%16#0: uint64 = (getbit boolean_packing#0 8u) - let item1%1#0: any = (setbit 0x00 0u is_true%16#0) + let item1%1#0: bytes = (setbit 0x00 0u is_true%16#0) let is_true%17#0: uint64 = (getbit boolean_packing#0 9u) - let item2%1#0: any = (setbit 0x00 0u is_true%17#0) + let item2%1#0: bytes = (setbit 0x00 0u is_true%17#0) let is_true%18#0: uint64 = (getbit boolean_packing#0 10u) - let item3%1#0: any = (setbit 0x00 0u is_true%18#0) + let item3%1#0: bytes = (setbit 0x00 0u is_true%18#0) let is_true%19#0: uint64 = (getbit boolean_packing#0 11u) - let item4%1#0: any = (setbit 0x00 0u is_true%19#0) + let item4%1#0: bytes = (setbit 0x00 0u is_true%19#0) let is_true%20#0: uint64 = (getbit boolean_packing#0 12u) - let item5%1#0: any = (setbit 0x00 0u is_true%20#0) + let item5%1#0: bytes = (setbit 0x00 0u is_true%20#0) let is_true%21#0: uint64 = (getbit boolean_packing#0 13u) - let item6%1#0: any = (setbit 0x00 0u is_true%21#0) + let item6%1#0: bytes = (setbit 0x00 0u is_true%21#0) let is_true%22#0: uint64 = (getbit boolean_packing#0 14u) - let item7%1#0: any = (setbit 0x00 0u is_true%22#0) + let item7%1#0: bytes = (setbit 0x00 0u is_true%22#0) let is_true%23#0: uint64 = (getbit boolean_packing#0 15u) - let item8%1#0: any = (setbit 0x00 0u is_true%23#0) + let item8%1#0: bytes = (setbit 0x00 0u is_true%23#0) let is_true%24#0: uint64 = (getbit boolean_packing#0 16u) - let item9%1#0: any = (setbit 0x00 0u is_true%24#0) + let item9%1#0: bytes = (setbit 0x00 0u is_true%24#0) let item10%1#0: bytes = (extract3 boolean_packing#0 3u 1u) let current_tail_offset%2#0: uint64 = 4u let encoded_tuple_buffer%2#0: bytes = 0x let encoded_tuple_buffer%2#1: bytes = (concat encoded_tuple_buffer%2#0 item0%1#0) let encoded_tuple_buffer%2#2: bytes = (concat encoded_tuple_buffer%2#1 item1%1#0) let is_true%25#0: uint64 = (getbit item2%1#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = (getbit item3%1#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = (getbit item4%1#0 0u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = (getbit item5%1#0 0u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = (getbit item6%1#0 0u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = (getbit item7%1#0 0u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = (getbit item8%1#0 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 item9%1#0) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 item10%1#0) let tmp%26#0: uint64 = (== boolean_packing#0 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_1.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_1.ir index a902fe9d8d..16a85dd9f9 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_1.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_1.ir @@ -17,54 +17,54 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: let my_tuple#0: bytes = (concat encoded_tuple_buffer%0#6 "\x00\x05world") let tmp%0#0: uint64 = (== my_tuple#0 0x01020007000eff000568656c6c6f0005776f726c64) (assert tmp%0#0) - let tmp%1#0: any = 0x80 - let tmp%2#0: any = 0x00 - let tmp%3#0: any = 0x80 - let tmp%4#0: any = 0x80 - let tmp%5#0: any = 0x80 - let tmp%6#0: any = 0x80 - let tmp%7#0: any = 0x00 - let tmp%8#0: any = 0x80 - let tmp%9#0: any = 0x80 + let tmp%1#0: bytes = 0x80 + let tmp%2#0: bytes = 0x00 + let tmp%3#0: bytes = 0x80 + let tmp%4#0: bytes = 0x80 + let tmp%5#0: bytes = 0x80 + let tmp%6#0: bytes = 0x80 + let tmp%7#0: bytes = 0x00 + let tmp%8#0: bytes = 0x80 + let tmp%9#0: bytes = 0x80 let encoded_tuple_buffer%1#1: bytes = 0x04 let encoded_tuple_buffer%1#2: bytes = (concat encoded_tuple_buffer%1#1 tmp%1#0) let is_true%0#0: uint64 = (getbit tmp%2#0 0u) - let encoded_tuple_buffer%1#3: any = (setbit encoded_tuple_buffer%1#2 9u is_true%0#0) + let encoded_tuple_buffer%1#3: bytes = (setbit encoded_tuple_buffer%1#2 9u is_true%0#0) let is_true%1#0: uint64 = (getbit tmp%3#0 0u) - let encoded_tuple_buffer%1#4: any = (setbit encoded_tuple_buffer%1#3 10u is_true%1#0) + let encoded_tuple_buffer%1#4: bytes = (setbit encoded_tuple_buffer%1#3 10u is_true%1#0) let is_true%2#0: uint64 = (getbit tmp%4#0 0u) - let encoded_tuple_buffer%1#5: any = (setbit encoded_tuple_buffer%1#4 11u is_true%2#0) + let encoded_tuple_buffer%1#5: bytes = (setbit encoded_tuple_buffer%1#4 11u is_true%2#0) let is_true%3#0: uint64 = (getbit tmp%5#0 0u) - let encoded_tuple_buffer%1#6: any = (setbit encoded_tuple_buffer%1#5 12u is_true%3#0) + let encoded_tuple_buffer%1#6: bytes = (setbit encoded_tuple_buffer%1#5 12u is_true%3#0) let is_true%4#0: uint64 = (getbit tmp%6#0 0u) - let encoded_tuple_buffer%1#7: any = (setbit encoded_tuple_buffer%1#6 13u is_true%4#0) + let encoded_tuple_buffer%1#7: bytes = (setbit encoded_tuple_buffer%1#6 13u is_true%4#0) let is_true%5#0: uint64 = (getbit tmp%7#0 0u) - let encoded_tuple_buffer%1#8: any = (setbit encoded_tuple_buffer%1#7 14u is_true%5#0) + let encoded_tuple_buffer%1#8: bytes = (setbit encoded_tuple_buffer%1#7 14u is_true%5#0) let is_true%6#0: uint64 = (getbit tmp%8#0 0u) - let encoded_tuple_buffer%1#9: any = (setbit encoded_tuple_buffer%1#8 15u is_true%6#0) + let encoded_tuple_buffer%1#9: bytes = (setbit encoded_tuple_buffer%1#8 15u is_true%6#0) let encoded_tuple_buffer%1#10: bytes = (concat encoded_tuple_buffer%1#9 tmp%9#0) let boolean_packing#0: bytes = (concat encoded_tuple_buffer%1#10 0x10) let tmp%10#0: uint64 = (== boolean_packing#0 0x04bd8010) (assert tmp%10#0) let a#0: bytes = ((extract 0 1) boolean_packing#0) let is_true%7#0: uint64 = (getbit boolean_packing#0 8u) - let b#0: any = (setbit 0x00 0u is_true%7#0) + let b#0: bytes = (setbit 0x00 0u is_true%7#0) let is_true%8#0: uint64 = (getbit boolean_packing#0 9u) - let c#0: any = (setbit 0x00 0u is_true%8#0) + let c#0: bytes = (setbit 0x00 0u is_true%8#0) let is_true%9#0: uint64 = (getbit boolean_packing#0 10u) - let d#0: any = (setbit 0x00 0u is_true%9#0) + let d#0: bytes = (setbit 0x00 0u is_true%9#0) let is_true%10#0: uint64 = (getbit boolean_packing#0 11u) - let e#0: any = (setbit 0x00 0u is_true%10#0) + let e#0: bytes = (setbit 0x00 0u is_true%10#0) let is_true%11#0: uint64 = (getbit boolean_packing#0 12u) - let f#0: any = (setbit 0x00 0u is_true%11#0) + let f#0: bytes = (setbit 0x00 0u is_true%11#0) let is_true%12#0: uint64 = (getbit boolean_packing#0 13u) - let g#0: any = (setbit 0x00 0u is_true%12#0) + let g#0: bytes = (setbit 0x00 0u is_true%12#0) let is_true%13#0: uint64 = (getbit boolean_packing#0 14u) - let h#0: any = (setbit 0x00 0u is_true%13#0) + let h#0: bytes = (setbit 0x00 0u is_true%13#0) let is_true%14#0: uint64 = (getbit boolean_packing#0 15u) - let i#0: any = (setbit 0x00 0u is_true%14#0) + let i#0: bytes = (setbit 0x00 0u is_true%14#0) let is_true%15#0: uint64 = (getbit boolean_packing#0 16u) - let j#0: any = (setbit 0x00 0u is_true%15#0) + let j#0: bytes = (setbit 0x00 0u is_true%15#0) let k#0: bytes = ((extract 3 1) boolean_packing#0) let tmp%12#0: uint64 = (b== k#0 k#0) (assert tmp%12#0) @@ -136,19 +136,19 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let encoded_tuple_buffer%2#2: bytes = (concat a#0 b#0) let is_true%25#0: uint64 = (getbit c#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = (getbit d#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = (getbit e#0 0u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = (getbit f#0 0u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = (getbit g#0 0u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = (getbit h#0 0u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = (getbit i#0 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 j#0) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 k#0) let tmp%26#0: uint64 = (== boolean_packing#0 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_10.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_10.ir index d6494f232e..01fb09ba52 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_10.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_10.ir @@ -8,23 +8,23 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%10#0) let a#0: bytes = ((extract 0 1) boolean_packing#0) let is_true%7#0: uint64 = (getbit boolean_packing#0 8u) - let b#0: any = (setbit 0x00 0u is_true%7#0) + let b#0: bytes = (setbit 0x00 0u is_true%7#0) let is_true%8#0: uint64 = (getbit boolean_packing#0 9u) - let c#0: any = (setbit 0x00 0u is_true%8#0) + let c#0: bytes = (setbit 0x00 0u is_true%8#0) let is_true%9#0: uint64 = (getbit boolean_packing#0 10u) - let d#0: any = (setbit 0x00 0u is_true%9#0) + let d#0: bytes = (setbit 0x00 0u is_true%9#0) let is_true%10#0: uint64 = (getbit boolean_packing#0 11u) - let e#0: any = (setbit 0x00 0u is_true%10#0) + let e#0: bytes = (setbit 0x00 0u is_true%10#0) let is_true%11#0: uint64 = (getbit boolean_packing#0 12u) - let f#0: any = (setbit 0x00 0u is_true%11#0) + let f#0: bytes = (setbit 0x00 0u is_true%11#0) let is_true%12#0: uint64 = (getbit boolean_packing#0 13u) - let g#0: any = (setbit 0x00 0u is_true%12#0) + let g#0: bytes = (setbit 0x00 0u is_true%12#0) let is_true%13#0: uint64 = (getbit boolean_packing#0 14u) - let h#0: any = (setbit 0x00 0u is_true%13#0) + let h#0: bytes = (setbit 0x00 0u is_true%13#0) let is_true%14#0: uint64 = (getbit boolean_packing#0 15u) - let i#0: any = (setbit 0x00 0u is_true%14#0) + let i#0: bytes = (setbit 0x00 0u is_true%14#0) let is_true%15#0: uint64 = (getbit boolean_packing#0 16u) - let j#0: any = (setbit 0x00 0u is_true%15#0) + let j#0: bytes = (setbit 0x00 0u is_true%15#0) let k#0: bytes = ((extract 3 1) boolean_packing#0) let tmp%13#0: uint64 = (btoi a#0) let tmp%14#0: uint64 = (== tmp%13#0 4u) @@ -94,19 +94,19 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let encoded_tuple_buffer%2#2: bytes = (concat a#0 b#0) let is_true%25#0: uint64 = (getbit c#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = (getbit d#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = (getbit e#0 0u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = (getbit f#0 0u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = (getbit g#0 0u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = (getbit h#0 0u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = (getbit i#0 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 j#0) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 k#0) let tmp%26#0: uint64 = (== boolean_packing#0 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_11.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_11.ir index 0e089ad1bc..858efdc44f 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_11.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_11.ir @@ -7,23 +7,23 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%10#0) let a#0: bytes = ((extract 0 1) boolean_packing#0) let is_true%7#0: uint64 = (getbit boolean_packing#0 8u) - let b#0: any = (setbit 0x00 0u is_true%7#0) + let b#0: bytes = (setbit 0x00 0u is_true%7#0) let is_true%8#0: uint64 = (getbit boolean_packing#0 9u) - let c#0: any = (setbit 0x00 0u is_true%8#0) + let c#0: bytes = (setbit 0x00 0u is_true%8#0) let is_true%9#0: uint64 = (getbit boolean_packing#0 10u) - let d#0: any = (setbit 0x00 0u is_true%9#0) + let d#0: bytes = (setbit 0x00 0u is_true%9#0) let is_true%10#0: uint64 = (getbit boolean_packing#0 11u) - let e#0: any = (setbit 0x00 0u is_true%10#0) + let e#0: bytes = (setbit 0x00 0u is_true%10#0) let is_true%11#0: uint64 = (getbit boolean_packing#0 12u) - let f#0: any = (setbit 0x00 0u is_true%11#0) + let f#0: bytes = (setbit 0x00 0u is_true%11#0) let is_true%12#0: uint64 = (getbit boolean_packing#0 13u) - let g#0: any = (setbit 0x00 0u is_true%12#0) + let g#0: bytes = (setbit 0x00 0u is_true%12#0) let is_true%13#0: uint64 = (getbit boolean_packing#0 14u) - let h#0: any = (setbit 0x00 0u is_true%13#0) + let h#0: bytes = (setbit 0x00 0u is_true%13#0) let is_true%14#0: uint64 = (getbit boolean_packing#0 15u) - let i#0: any = (setbit 0x00 0u is_true%14#0) + let i#0: bytes = (setbit 0x00 0u is_true%14#0) let is_true%15#0: uint64 = (getbit boolean_packing#0 16u) - let j#0: any = (setbit 0x00 0u is_true%15#0) + let j#0: bytes = (setbit 0x00 0u is_true%15#0) let k#0: bytes = ((extract 3 1) boolean_packing#0) let tmp%13#0: uint64 = (btoi a#0) let tmp%14#0: uint64 = (== tmp%13#0 4u) @@ -93,19 +93,19 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let encoded_tuple_buffer%2#2: bytes = (concat a#0 b#0) let is_true%25#0: uint64 = (getbit c#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = (getbit d#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = (getbit e#0 0u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = (getbit f#0 0u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = (getbit g#0 0u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = (getbit h#0 0u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = (getbit i#0 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 j#0) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 k#0) let tmp%26#0: uint64 = (== boolean_packing#0 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_12.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_12.ir index 424a414ad0..2d66f96a65 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_12.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_12.ir @@ -6,23 +6,23 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%10#0) let a#0: bytes = 0x04 let is_true%7#0: uint64 = 1u - let b#0: any = (setbit 0x00 0u is_true%7#0) + let b#0: bytes = (setbit 0x00 0u is_true%7#0) let is_true%8#0: uint64 = 0u - let c#0: any = (setbit 0x00 0u is_true%8#0) + let c#0: bytes = (setbit 0x00 0u is_true%8#0) let is_true%9#0: uint64 = 1u - let d#0: any = (setbit 0x00 0u is_true%9#0) + let d#0: bytes = (setbit 0x00 0u is_true%9#0) let is_true%10#0: uint64 = 1u - let e#0: any = (setbit 0x00 0u is_true%10#0) + let e#0: bytes = (setbit 0x00 0u is_true%10#0) let is_true%11#0: uint64 = 1u - let f#0: any = (setbit 0x00 0u is_true%11#0) + let f#0: bytes = (setbit 0x00 0u is_true%11#0) let is_true%12#0: uint64 = 1u - let g#0: any = (setbit 0x00 0u is_true%12#0) + let g#0: bytes = (setbit 0x00 0u is_true%12#0) let is_true%13#0: uint64 = 0u - let h#0: any = (setbit 0x00 0u is_true%13#0) + let h#0: bytes = (setbit 0x00 0u is_true%13#0) let is_true%14#0: uint64 = 1u - let i#0: any = (setbit 0x00 0u is_true%14#0) + let i#0: bytes = (setbit 0x00 0u is_true%14#0) let is_true%15#0: uint64 = 1u - let j#0: any = (setbit 0x00 0u is_true%15#0) + let j#0: bytes = (setbit 0x00 0u is_true%15#0) let k#0: bytes = 0x10 let tmp%13#0: uint64 = (btoi a#0) let tmp%14#0: uint64 = (== tmp%13#0 4u) @@ -92,19 +92,19 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let encoded_tuple_buffer%2#2: bytes = (concat a#0 b#0) let is_true%25#0: uint64 = (getbit c#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = (getbit d#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = (getbit e#0 0u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = (getbit f#0 0u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = (getbit g#0 0u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = (getbit h#0 0u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = (getbit i#0 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 j#0) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 k#0) let tmp%26#0: uint64 = (== 0x04bd8010 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_13.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_13.ir index 871fe1a2dc..5107a276e1 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_13.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_13.ir @@ -2,15 +2,15 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: program approval: subroutine test_cases.arc4_types.tuples.Arc4TuplesTypeContract.approval_program() -> uint64: block@0: // L14 - let b#0: any = 0x80 - let c#0: any = 0x00 - let d#0: any = 0x80 - let e#0: any = 0x80 - let f#0: any = 0x80 - let g#0: any = 0x80 - let h#0: any = 0x00 - let i#0: any = 0x80 - let j#0: any = 0x80 + let b#0: bytes = 0x80 + let c#0: bytes = 0x00 + let d#0: bytes = 0x80 + let e#0: bytes = 0x80 + let f#0: bytes = 0x80 + let g#0: bytes = 0x80 + let h#0: bytes = 0x00 + let i#0: bytes = 0x80 + let j#0: bytes = 0x80 let tmp%13#0: uint64 = 4u let tmp%14#0: uint64 = (== tmp%13#0 4u) (assert tmp%14#0) // a is 4 @@ -79,19 +79,19 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let encoded_tuple_buffer%2#2: bytes = (concat 0x04 b#0) let is_true%25#0: uint64 = (getbit c#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = (getbit d#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = (getbit e#0 0u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = (getbit f#0 0u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = (getbit g#0 0u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = (getbit h#0 0u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = (getbit i#0 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 j#0) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 0x10) let tmp%26#0: uint64 = (== 0x04bd8010 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_14.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_14.ir index ca80124c88..895a1b0391 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_14.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_14.ir @@ -2,15 +2,15 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: program approval: subroutine test_cases.arc4_types.tuples.Arc4TuplesTypeContract.approval_program() -> uint64: block@0: // L14 - let b#0: any = 0x80 - let c#0: any = 0x00 - let d#0: any = 0x80 - let e#0: any = 0x80 - let f#0: any = 0x80 - let g#0: any = 0x80 - let h#0: any = 0x00 - let i#0: any = 0x80 - let j#0: any = 0x80 + let b#0: bytes = 0x80 + let c#0: bytes = 0x00 + let d#0: bytes = 0x80 + let e#0: bytes = 0x80 + let f#0: bytes = 0x80 + let g#0: bytes = 0x80 + let h#0: bytes = 0x00 + let i#0: bytes = 0x80 + let j#0: bytes = 0x80 let tmp%14#0: uint64 = 1u (assert tmp%14#0) // a is 4 let tmp%15#0: uint64 = 0u @@ -69,19 +69,19 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let encoded_tuple_buffer%2#2: bytes = 0x0480 let is_true%25#0: uint64 = 0u - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = 1u - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = 1u - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = 1u - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = 1u - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = 0u - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = 1u - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 0x80) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 0x10) let tmp%26#0: uint64 = (== 0x04bd8010 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_15.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_15.ir index c192e3dfac..07b84a40e8 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_15.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_15.ir @@ -2,12 +2,12 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: program approval: subroutine test_cases.arc4_types.tuples.Arc4TuplesTypeContract.approval_program() -> uint64: block@0: // L14 - let d#0: any = 0x80 - let e#0: any = 0x80 - let f#0: any = 0x80 - let g#0: any = 0x80 - let i#0: any = 0x80 - let j#0: any = 0x80 + let d#0: bytes = 0x80 + let e#0: bytes = 0x80 + let f#0: bytes = 0x80 + let g#0: bytes = 0x80 + let i#0: bytes = 0x80 + let j#0: bytes = 0x80 goto block@13 block@13: // ternary_merge_L39 goto block@14 @@ -18,13 +18,13 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: block@16: // ternary_merge_L39 goto block@17 block@17: // ternary_merge_L39 - let encoded_tuple_buffer%2#3: any = 0x0480 - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u 1u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u 1u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u 1u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u 1u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u 1u) + let encoded_tuple_buffer%2#3: bytes = 0x0480 + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u 1u) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u 1u) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u 1u) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u 1u) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u 0u) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u 1u) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 0x80) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 0x10) let tmp%26#0: uint64 = (== 0x04bd8010 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_16.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_16.ir index 07857672e9..1f7a28b763 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_16.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_16.ir @@ -2,12 +2,12 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: program approval: subroutine test_cases.arc4_types.tuples.Arc4TuplesTypeContract.approval_program() -> uint64: block@0: // L14 - let encoded_tuple_buffer%2#4: any = 0x04a0 - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u 1u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u 1u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u 1u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u 1u) + let encoded_tuple_buffer%2#4: bytes = 0x04a0 + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u 1u) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u 1u) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u 1u) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u 0u) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u 1u) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 0x80) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 0x10) let tmp%26#0: uint64 = (== 0x04bd8010 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_17.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_17.ir index 41dab77574..e39e487988 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_17.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_17.ir @@ -2,11 +2,11 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: program approval: subroutine test_cases.arc4_types.tuples.Arc4TuplesTypeContract.approval_program() -> uint64: block@0: // L14 - let encoded_tuple_buffer%2#5: any = 0x04b0 - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u 1u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u 1u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u 1u) + let encoded_tuple_buffer%2#5: bytes = 0x04b0 + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u 1u) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u 1u) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u 0u) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u 1u) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 0x80) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 0x10) let tmp%26#0: uint64 = (== 0x04bd8010 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_18.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_18.ir index 01684dced0..43ed2b8070 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_18.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_18.ir @@ -2,10 +2,10 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: program approval: subroutine test_cases.arc4_types.tuples.Arc4TuplesTypeContract.approval_program() -> uint64: block@0: // L14 - let encoded_tuple_buffer%2#6: any = 0x04b8 - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u 1u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u 1u) + let encoded_tuple_buffer%2#6: bytes = 0x04b8 + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u 1u) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u 0u) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u 1u) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 0x80) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 0x10) let tmp%26#0: uint64 = (== 0x04bd8010 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_19.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_19.ir index f69be38e64..88a032db96 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_19.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_19.ir @@ -2,9 +2,9 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: program approval: subroutine test_cases.arc4_types.tuples.Arc4TuplesTypeContract.approval_program() -> uint64: block@0: // L14 - let encoded_tuple_buffer%2#7: any = 0x04bc - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u 1u) + let encoded_tuple_buffer%2#7: bytes = 0x04bc + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u 0u) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u 1u) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 0x80) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 0x10) let tmp%26#0: uint64 = (== 0x04bd8010 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_2.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_2.ir index 54546448b7..1f6c89c867 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_2.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_2.ir @@ -15,42 +15,42 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%0#0) let encoded_tuple_buffer%1#2: bytes = 0x0480 let is_true%0#0: uint64 = 0u - let encoded_tuple_buffer%1#3: any = (setbit encoded_tuple_buffer%1#2 9u is_true%0#0) + let encoded_tuple_buffer%1#3: bytes = (setbit encoded_tuple_buffer%1#2 9u is_true%0#0) let is_true%1#0: uint64 = 1u - let encoded_tuple_buffer%1#4: any = (setbit encoded_tuple_buffer%1#3 10u is_true%1#0) + let encoded_tuple_buffer%1#4: bytes = (setbit encoded_tuple_buffer%1#3 10u is_true%1#0) let is_true%2#0: uint64 = 1u - let encoded_tuple_buffer%1#5: any = (setbit encoded_tuple_buffer%1#4 11u is_true%2#0) + let encoded_tuple_buffer%1#5: bytes = (setbit encoded_tuple_buffer%1#4 11u is_true%2#0) let is_true%3#0: uint64 = 1u - let encoded_tuple_buffer%1#6: any = (setbit encoded_tuple_buffer%1#5 12u is_true%3#0) + let encoded_tuple_buffer%1#6: bytes = (setbit encoded_tuple_buffer%1#5 12u is_true%3#0) let is_true%4#0: uint64 = 1u - let encoded_tuple_buffer%1#7: any = (setbit encoded_tuple_buffer%1#6 13u is_true%4#0) + let encoded_tuple_buffer%1#7: bytes = (setbit encoded_tuple_buffer%1#6 13u is_true%4#0) let is_true%5#0: uint64 = 0u - let encoded_tuple_buffer%1#8: any = (setbit encoded_tuple_buffer%1#7 14u is_true%5#0) + let encoded_tuple_buffer%1#8: bytes = (setbit encoded_tuple_buffer%1#7 14u is_true%5#0) let is_true%6#0: uint64 = 1u - let encoded_tuple_buffer%1#9: any = (setbit encoded_tuple_buffer%1#8 15u is_true%6#0) + let encoded_tuple_buffer%1#9: bytes = (setbit encoded_tuple_buffer%1#8 15u is_true%6#0) let encoded_tuple_buffer%1#10: bytes = (concat encoded_tuple_buffer%1#9 0x80) let boolean_packing#0: bytes = (concat encoded_tuple_buffer%1#10 0x10) let tmp%10#0: uint64 = (== boolean_packing#0 0x04bd8010) (assert tmp%10#0) let a#0: bytes = ((extract 0 1) boolean_packing#0) let is_true%7#0: uint64 = (getbit boolean_packing#0 8u) - let b#0: any = (setbit 0x00 0u is_true%7#0) + let b#0: bytes = (setbit 0x00 0u is_true%7#0) let is_true%8#0: uint64 = (getbit boolean_packing#0 9u) - let c#0: any = (setbit 0x00 0u is_true%8#0) + let c#0: bytes = (setbit 0x00 0u is_true%8#0) let is_true%9#0: uint64 = (getbit boolean_packing#0 10u) - let d#0: any = (setbit 0x00 0u is_true%9#0) + let d#0: bytes = (setbit 0x00 0u is_true%9#0) let is_true%10#0: uint64 = (getbit boolean_packing#0 11u) - let e#0: any = (setbit 0x00 0u is_true%10#0) + let e#0: bytes = (setbit 0x00 0u is_true%10#0) let is_true%11#0: uint64 = (getbit boolean_packing#0 12u) - let f#0: any = (setbit 0x00 0u is_true%11#0) + let f#0: bytes = (setbit 0x00 0u is_true%11#0) let is_true%12#0: uint64 = (getbit boolean_packing#0 13u) - let g#0: any = (setbit 0x00 0u is_true%12#0) + let g#0: bytes = (setbit 0x00 0u is_true%12#0) let is_true%13#0: uint64 = (getbit boolean_packing#0 14u) - let h#0: any = (setbit 0x00 0u is_true%13#0) + let h#0: bytes = (setbit 0x00 0u is_true%13#0) let is_true%14#0: uint64 = (getbit boolean_packing#0 15u) - let i#0: any = (setbit 0x00 0u is_true%14#0) + let i#0: bytes = (setbit 0x00 0u is_true%14#0) let is_true%15#0: uint64 = (getbit boolean_packing#0 16u) - let j#0: any = (setbit 0x00 0u is_true%15#0) + let j#0: bytes = (setbit 0x00 0u is_true%15#0) let k#0: bytes = ((extract 3 1) boolean_packing#0) let tmp%12#0: uint64 = 1u (assert tmp%12#0) @@ -122,19 +122,19 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let encoded_tuple_buffer%2#2: bytes = (concat a#0 b#0) let is_true%25#0: uint64 = (getbit c#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = (getbit d#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = (getbit e#0 0u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = (getbit f#0 0u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = (getbit g#0 0u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = (getbit h#0 0u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = (getbit i#0 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 j#0) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 k#0) let tmp%26#0: uint64 = (== boolean_packing#0 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_20.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_20.ir index 82e7b66c52..8ed73b8713 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_20.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_20.ir @@ -2,8 +2,8 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: program approval: subroutine test_cases.arc4_types.tuples.Arc4TuplesTypeContract.approval_program() -> uint64: block@0: // L14 - let encoded_tuple_buffer%2#8: any = 0x04bc - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u 1u) + let encoded_tuple_buffer%2#8: bytes = 0x04bc + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u 1u) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 0x80) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 0x10) let tmp%26#0: uint64 = (== 0x04bd8010 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_21.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_21.ir index fa7fdb1534..511f1c23ca 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_21.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_21.ir @@ -2,7 +2,7 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: program approval: subroutine test_cases.arc4_types.tuples.Arc4TuplesTypeContract.approval_program() -> uint64: block@0: // L14 - let encoded_tuple_buffer%2#9: any = 0x04bd + let encoded_tuple_buffer%2#9: bytes = 0x04bd let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 0x80) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 0x10) let tmp%26#0: uint64 = (== 0x04bd8010 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_3.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_3.ir index c69db07578..9d61abbf02 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_3.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_3.ir @@ -10,36 +10,36 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: let my_tuple#0: bytes = (concat encoded_tuple_buffer%0#6 "\x00\x05world") let tmp%0#0: uint64 = (== my_tuple#0 0x01020007000eff000568656c6c6f0005776f726c64) (assert tmp%0#0) - let encoded_tuple_buffer%1#3: any = 0x0480 - let encoded_tuple_buffer%1#4: any = (setbit encoded_tuple_buffer%1#3 10u 1u) - let encoded_tuple_buffer%1#5: any = (setbit encoded_tuple_buffer%1#4 11u 1u) - let encoded_tuple_buffer%1#6: any = (setbit encoded_tuple_buffer%1#5 12u 1u) - let encoded_tuple_buffer%1#7: any = (setbit encoded_tuple_buffer%1#6 13u 1u) - let encoded_tuple_buffer%1#8: any = (setbit encoded_tuple_buffer%1#7 14u 0u) - let encoded_tuple_buffer%1#9: any = (setbit encoded_tuple_buffer%1#8 15u 1u) + let encoded_tuple_buffer%1#3: bytes = 0x0480 + let encoded_tuple_buffer%1#4: bytes = (setbit encoded_tuple_buffer%1#3 10u 1u) + let encoded_tuple_buffer%1#5: bytes = (setbit encoded_tuple_buffer%1#4 11u 1u) + let encoded_tuple_buffer%1#6: bytes = (setbit encoded_tuple_buffer%1#5 12u 1u) + let encoded_tuple_buffer%1#7: bytes = (setbit encoded_tuple_buffer%1#6 13u 1u) + let encoded_tuple_buffer%1#8: bytes = (setbit encoded_tuple_buffer%1#7 14u 0u) + let encoded_tuple_buffer%1#9: bytes = (setbit encoded_tuple_buffer%1#8 15u 1u) let encoded_tuple_buffer%1#10: bytes = (concat encoded_tuple_buffer%1#9 0x80) let boolean_packing#0: bytes = (concat encoded_tuple_buffer%1#10 0x10) let tmp%10#0: uint64 = (== boolean_packing#0 0x04bd8010) (assert tmp%10#0) let a#0: bytes = ((extract 0 1) boolean_packing#0) let is_true%7#0: uint64 = (getbit boolean_packing#0 8u) - let b#0: any = (setbit 0x00 0u is_true%7#0) + let b#0: bytes = (setbit 0x00 0u is_true%7#0) let is_true%8#0: uint64 = (getbit boolean_packing#0 9u) - let c#0: any = (setbit 0x00 0u is_true%8#0) + let c#0: bytes = (setbit 0x00 0u is_true%8#0) let is_true%9#0: uint64 = (getbit boolean_packing#0 10u) - let d#0: any = (setbit 0x00 0u is_true%9#0) + let d#0: bytes = (setbit 0x00 0u is_true%9#0) let is_true%10#0: uint64 = (getbit boolean_packing#0 11u) - let e#0: any = (setbit 0x00 0u is_true%10#0) + let e#0: bytes = (setbit 0x00 0u is_true%10#0) let is_true%11#0: uint64 = (getbit boolean_packing#0 12u) - let f#0: any = (setbit 0x00 0u is_true%11#0) + let f#0: bytes = (setbit 0x00 0u is_true%11#0) let is_true%12#0: uint64 = (getbit boolean_packing#0 13u) - let g#0: any = (setbit 0x00 0u is_true%12#0) + let g#0: bytes = (setbit 0x00 0u is_true%12#0) let is_true%13#0: uint64 = (getbit boolean_packing#0 14u) - let h#0: any = (setbit 0x00 0u is_true%13#0) + let h#0: bytes = (setbit 0x00 0u is_true%13#0) let is_true%14#0: uint64 = (getbit boolean_packing#0 15u) - let i#0: any = (setbit 0x00 0u is_true%14#0) + let i#0: bytes = (setbit 0x00 0u is_true%14#0) let is_true%15#0: uint64 = (getbit boolean_packing#0 16u) - let j#0: any = (setbit 0x00 0u is_true%15#0) + let j#0: bytes = (setbit 0x00 0u is_true%15#0) let k#0: bytes = ((extract 3 1) boolean_packing#0) let tmp%13#0: uint64 = (btoi a#0) let tmp%14#0: uint64 = (== tmp%13#0 4u) @@ -109,19 +109,19 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let encoded_tuple_buffer%2#2: bytes = (concat a#0 b#0) let is_true%25#0: uint64 = (getbit c#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = (getbit d#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = (getbit e#0 0u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = (getbit f#0 0u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = (getbit g#0 0u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = (getbit h#0 0u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = (getbit i#0 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 j#0) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 k#0) let tmp%26#0: uint64 = (== boolean_packing#0 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_4.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_4.ir index a12eca1399..e8c42436ee 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_4.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_4.ir @@ -8,35 +8,35 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: let my_tuple#0: bytes = (concat encoded_tuple_buffer%0#6 "\x00\x05world") let tmp%0#0: uint64 = (== my_tuple#0 0x01020007000eff000568656c6c6f0005776f726c64) (assert tmp%0#0) - let encoded_tuple_buffer%1#4: any = 0x04a0 - let encoded_tuple_buffer%1#5: any = (setbit encoded_tuple_buffer%1#4 11u 1u) - let encoded_tuple_buffer%1#6: any = (setbit encoded_tuple_buffer%1#5 12u 1u) - let encoded_tuple_buffer%1#7: any = (setbit encoded_tuple_buffer%1#6 13u 1u) - let encoded_tuple_buffer%1#8: any = (setbit encoded_tuple_buffer%1#7 14u 0u) - let encoded_tuple_buffer%1#9: any = (setbit encoded_tuple_buffer%1#8 15u 1u) + let encoded_tuple_buffer%1#4: bytes = 0x04a0 + let encoded_tuple_buffer%1#5: bytes = (setbit encoded_tuple_buffer%1#4 11u 1u) + let encoded_tuple_buffer%1#6: bytes = (setbit encoded_tuple_buffer%1#5 12u 1u) + let encoded_tuple_buffer%1#7: bytes = (setbit encoded_tuple_buffer%1#6 13u 1u) + let encoded_tuple_buffer%1#8: bytes = (setbit encoded_tuple_buffer%1#7 14u 0u) + let encoded_tuple_buffer%1#9: bytes = (setbit encoded_tuple_buffer%1#8 15u 1u) let encoded_tuple_buffer%1#10: bytes = (concat encoded_tuple_buffer%1#9 0x80) let boolean_packing#0: bytes = (concat encoded_tuple_buffer%1#10 0x10) let tmp%10#0: uint64 = (== boolean_packing#0 0x04bd8010) (assert tmp%10#0) let a#0: bytes = ((extract 0 1) boolean_packing#0) let is_true%7#0: uint64 = (getbit boolean_packing#0 8u) - let b#0: any = (setbit 0x00 0u is_true%7#0) + let b#0: bytes = (setbit 0x00 0u is_true%7#0) let is_true%8#0: uint64 = (getbit boolean_packing#0 9u) - let c#0: any = (setbit 0x00 0u is_true%8#0) + let c#0: bytes = (setbit 0x00 0u is_true%8#0) let is_true%9#0: uint64 = (getbit boolean_packing#0 10u) - let d#0: any = (setbit 0x00 0u is_true%9#0) + let d#0: bytes = (setbit 0x00 0u is_true%9#0) let is_true%10#0: uint64 = (getbit boolean_packing#0 11u) - let e#0: any = (setbit 0x00 0u is_true%10#0) + let e#0: bytes = (setbit 0x00 0u is_true%10#0) let is_true%11#0: uint64 = (getbit boolean_packing#0 12u) - let f#0: any = (setbit 0x00 0u is_true%11#0) + let f#0: bytes = (setbit 0x00 0u is_true%11#0) let is_true%12#0: uint64 = (getbit boolean_packing#0 13u) - let g#0: any = (setbit 0x00 0u is_true%12#0) + let g#0: bytes = (setbit 0x00 0u is_true%12#0) let is_true%13#0: uint64 = (getbit boolean_packing#0 14u) - let h#0: any = (setbit 0x00 0u is_true%13#0) + let h#0: bytes = (setbit 0x00 0u is_true%13#0) let is_true%14#0: uint64 = (getbit boolean_packing#0 15u) - let i#0: any = (setbit 0x00 0u is_true%14#0) + let i#0: bytes = (setbit 0x00 0u is_true%14#0) let is_true%15#0: uint64 = (getbit boolean_packing#0 16u) - let j#0: any = (setbit 0x00 0u is_true%15#0) + let j#0: bytes = (setbit 0x00 0u is_true%15#0) let k#0: bytes = ((extract 3 1) boolean_packing#0) let tmp%13#0: uint64 = (btoi a#0) let tmp%14#0: uint64 = (== tmp%13#0 4u) @@ -106,19 +106,19 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let encoded_tuple_buffer%2#2: bytes = (concat a#0 b#0) let is_true%25#0: uint64 = (getbit c#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = (getbit d#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = (getbit e#0 0u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = (getbit f#0 0u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = (getbit g#0 0u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = (getbit h#0 0u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = (getbit i#0 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 j#0) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 k#0) let tmp%26#0: uint64 = (== boolean_packing#0 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_5.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_5.ir index 6970e8cbb6..87f2f5bea5 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_5.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_5.ir @@ -7,34 +7,34 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: let my_tuple#0: bytes = (concat encoded_tuple_buffer%0#6 "\x00\x05world") let tmp%0#0: uint64 = (== my_tuple#0 0x01020007000eff000568656c6c6f0005776f726c64) (assert tmp%0#0) - let encoded_tuple_buffer%1#5: any = 0x04b0 - let encoded_tuple_buffer%1#6: any = (setbit encoded_tuple_buffer%1#5 12u 1u) - let encoded_tuple_buffer%1#7: any = (setbit encoded_tuple_buffer%1#6 13u 1u) - let encoded_tuple_buffer%1#8: any = (setbit encoded_tuple_buffer%1#7 14u 0u) - let encoded_tuple_buffer%1#9: any = (setbit encoded_tuple_buffer%1#8 15u 1u) + let encoded_tuple_buffer%1#5: bytes = 0x04b0 + let encoded_tuple_buffer%1#6: bytes = (setbit encoded_tuple_buffer%1#5 12u 1u) + let encoded_tuple_buffer%1#7: bytes = (setbit encoded_tuple_buffer%1#6 13u 1u) + let encoded_tuple_buffer%1#8: bytes = (setbit encoded_tuple_buffer%1#7 14u 0u) + let encoded_tuple_buffer%1#9: bytes = (setbit encoded_tuple_buffer%1#8 15u 1u) let encoded_tuple_buffer%1#10: bytes = (concat encoded_tuple_buffer%1#9 0x80) let boolean_packing#0: bytes = (concat encoded_tuple_buffer%1#10 0x10) let tmp%10#0: uint64 = (== boolean_packing#0 0x04bd8010) (assert tmp%10#0) let a#0: bytes = ((extract 0 1) boolean_packing#0) let is_true%7#0: uint64 = (getbit boolean_packing#0 8u) - let b#0: any = (setbit 0x00 0u is_true%7#0) + let b#0: bytes = (setbit 0x00 0u is_true%7#0) let is_true%8#0: uint64 = (getbit boolean_packing#0 9u) - let c#0: any = (setbit 0x00 0u is_true%8#0) + let c#0: bytes = (setbit 0x00 0u is_true%8#0) let is_true%9#0: uint64 = (getbit boolean_packing#0 10u) - let d#0: any = (setbit 0x00 0u is_true%9#0) + let d#0: bytes = (setbit 0x00 0u is_true%9#0) let is_true%10#0: uint64 = (getbit boolean_packing#0 11u) - let e#0: any = (setbit 0x00 0u is_true%10#0) + let e#0: bytes = (setbit 0x00 0u is_true%10#0) let is_true%11#0: uint64 = (getbit boolean_packing#0 12u) - let f#0: any = (setbit 0x00 0u is_true%11#0) + let f#0: bytes = (setbit 0x00 0u is_true%11#0) let is_true%12#0: uint64 = (getbit boolean_packing#0 13u) - let g#0: any = (setbit 0x00 0u is_true%12#0) + let g#0: bytes = (setbit 0x00 0u is_true%12#0) let is_true%13#0: uint64 = (getbit boolean_packing#0 14u) - let h#0: any = (setbit 0x00 0u is_true%13#0) + let h#0: bytes = (setbit 0x00 0u is_true%13#0) let is_true%14#0: uint64 = (getbit boolean_packing#0 15u) - let i#0: any = (setbit 0x00 0u is_true%14#0) + let i#0: bytes = (setbit 0x00 0u is_true%14#0) let is_true%15#0: uint64 = (getbit boolean_packing#0 16u) - let j#0: any = (setbit 0x00 0u is_true%15#0) + let j#0: bytes = (setbit 0x00 0u is_true%15#0) let k#0: bytes = ((extract 3 1) boolean_packing#0) let tmp%13#0: uint64 = (btoi a#0) let tmp%14#0: uint64 = (== tmp%13#0 4u) @@ -104,19 +104,19 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let encoded_tuple_buffer%2#2: bytes = (concat a#0 b#0) let is_true%25#0: uint64 = (getbit c#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = (getbit d#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = (getbit e#0 0u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = (getbit f#0 0u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = (getbit g#0 0u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = (getbit h#0 0u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = (getbit i#0 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 j#0) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 k#0) let tmp%26#0: uint64 = (== boolean_packing#0 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_6.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_6.ir index 42bc71ea5a..30136a7cb6 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_6.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_6.ir @@ -6,33 +6,33 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: let my_tuple#0: bytes = (concat encoded_tuple_buffer%0#6 "\x00\x05world") let tmp%0#0: uint64 = (== my_tuple#0 0x01020007000eff000568656c6c6f0005776f726c64) (assert tmp%0#0) - let encoded_tuple_buffer%1#6: any = 0x04b8 - let encoded_tuple_buffer%1#7: any = (setbit encoded_tuple_buffer%1#6 13u 1u) - let encoded_tuple_buffer%1#8: any = (setbit encoded_tuple_buffer%1#7 14u 0u) - let encoded_tuple_buffer%1#9: any = (setbit encoded_tuple_buffer%1#8 15u 1u) + let encoded_tuple_buffer%1#6: bytes = 0x04b8 + let encoded_tuple_buffer%1#7: bytes = (setbit encoded_tuple_buffer%1#6 13u 1u) + let encoded_tuple_buffer%1#8: bytes = (setbit encoded_tuple_buffer%1#7 14u 0u) + let encoded_tuple_buffer%1#9: bytes = (setbit encoded_tuple_buffer%1#8 15u 1u) let encoded_tuple_buffer%1#10: bytes = (concat encoded_tuple_buffer%1#9 0x80) let boolean_packing#0: bytes = (concat encoded_tuple_buffer%1#10 0x10) let tmp%10#0: uint64 = (== boolean_packing#0 0x04bd8010) (assert tmp%10#0) let a#0: bytes = ((extract 0 1) boolean_packing#0) let is_true%7#0: uint64 = (getbit boolean_packing#0 8u) - let b#0: any = (setbit 0x00 0u is_true%7#0) + let b#0: bytes = (setbit 0x00 0u is_true%7#0) let is_true%8#0: uint64 = (getbit boolean_packing#0 9u) - let c#0: any = (setbit 0x00 0u is_true%8#0) + let c#0: bytes = (setbit 0x00 0u is_true%8#0) let is_true%9#0: uint64 = (getbit boolean_packing#0 10u) - let d#0: any = (setbit 0x00 0u is_true%9#0) + let d#0: bytes = (setbit 0x00 0u is_true%9#0) let is_true%10#0: uint64 = (getbit boolean_packing#0 11u) - let e#0: any = (setbit 0x00 0u is_true%10#0) + let e#0: bytes = (setbit 0x00 0u is_true%10#0) let is_true%11#0: uint64 = (getbit boolean_packing#0 12u) - let f#0: any = (setbit 0x00 0u is_true%11#0) + let f#0: bytes = (setbit 0x00 0u is_true%11#0) let is_true%12#0: uint64 = (getbit boolean_packing#0 13u) - let g#0: any = (setbit 0x00 0u is_true%12#0) + let g#0: bytes = (setbit 0x00 0u is_true%12#0) let is_true%13#0: uint64 = (getbit boolean_packing#0 14u) - let h#0: any = (setbit 0x00 0u is_true%13#0) + let h#0: bytes = (setbit 0x00 0u is_true%13#0) let is_true%14#0: uint64 = (getbit boolean_packing#0 15u) - let i#0: any = (setbit 0x00 0u is_true%14#0) + let i#0: bytes = (setbit 0x00 0u is_true%14#0) let is_true%15#0: uint64 = (getbit boolean_packing#0 16u) - let j#0: any = (setbit 0x00 0u is_true%15#0) + let j#0: bytes = (setbit 0x00 0u is_true%15#0) let k#0: bytes = ((extract 3 1) boolean_packing#0) let tmp%13#0: uint64 = (btoi a#0) let tmp%14#0: uint64 = (== tmp%13#0 4u) @@ -102,19 +102,19 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let encoded_tuple_buffer%2#2: bytes = (concat a#0 b#0) let is_true%25#0: uint64 = (getbit c#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = (getbit d#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = (getbit e#0 0u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = (getbit f#0 0u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = (getbit g#0 0u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = (getbit h#0 0u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = (getbit i#0 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 j#0) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 k#0) let tmp%26#0: uint64 = (== boolean_packing#0 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_7.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_7.ir index d3593f5508..f1e6bd3d3f 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_7.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_7.ir @@ -5,32 +5,32 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: let my_tuple#0: bytes = 0x01020007000eff000568656c6c6f0005776f726c64 let tmp%0#0: uint64 = (== my_tuple#0 0x01020007000eff000568656c6c6f0005776f726c64) (assert tmp%0#0) - let encoded_tuple_buffer%1#7: any = 0x04bc - let encoded_tuple_buffer%1#8: any = (setbit encoded_tuple_buffer%1#7 14u 0u) - let encoded_tuple_buffer%1#9: any = (setbit encoded_tuple_buffer%1#8 15u 1u) + let encoded_tuple_buffer%1#7: bytes = 0x04bc + let encoded_tuple_buffer%1#8: bytes = (setbit encoded_tuple_buffer%1#7 14u 0u) + let encoded_tuple_buffer%1#9: bytes = (setbit encoded_tuple_buffer%1#8 15u 1u) let encoded_tuple_buffer%1#10: bytes = (concat encoded_tuple_buffer%1#9 0x80) let boolean_packing#0: bytes = (concat encoded_tuple_buffer%1#10 0x10) let tmp%10#0: uint64 = (== boolean_packing#0 0x04bd8010) (assert tmp%10#0) let a#0: bytes = ((extract 0 1) boolean_packing#0) let is_true%7#0: uint64 = (getbit boolean_packing#0 8u) - let b#0: any = (setbit 0x00 0u is_true%7#0) + let b#0: bytes = (setbit 0x00 0u is_true%7#0) let is_true%8#0: uint64 = (getbit boolean_packing#0 9u) - let c#0: any = (setbit 0x00 0u is_true%8#0) + let c#0: bytes = (setbit 0x00 0u is_true%8#0) let is_true%9#0: uint64 = (getbit boolean_packing#0 10u) - let d#0: any = (setbit 0x00 0u is_true%9#0) + let d#0: bytes = (setbit 0x00 0u is_true%9#0) let is_true%10#0: uint64 = (getbit boolean_packing#0 11u) - let e#0: any = (setbit 0x00 0u is_true%10#0) + let e#0: bytes = (setbit 0x00 0u is_true%10#0) let is_true%11#0: uint64 = (getbit boolean_packing#0 12u) - let f#0: any = (setbit 0x00 0u is_true%11#0) + let f#0: bytes = (setbit 0x00 0u is_true%11#0) let is_true%12#0: uint64 = (getbit boolean_packing#0 13u) - let g#0: any = (setbit 0x00 0u is_true%12#0) + let g#0: bytes = (setbit 0x00 0u is_true%12#0) let is_true%13#0: uint64 = (getbit boolean_packing#0 14u) - let h#0: any = (setbit 0x00 0u is_true%13#0) + let h#0: bytes = (setbit 0x00 0u is_true%13#0) let is_true%14#0: uint64 = (getbit boolean_packing#0 15u) - let i#0: any = (setbit 0x00 0u is_true%14#0) + let i#0: bytes = (setbit 0x00 0u is_true%14#0) let is_true%15#0: uint64 = (getbit boolean_packing#0 16u) - let j#0: any = (setbit 0x00 0u is_true%15#0) + let j#0: bytes = (setbit 0x00 0u is_true%15#0) let k#0: bytes = ((extract 3 1) boolean_packing#0) let tmp%13#0: uint64 = (btoi a#0) let tmp%14#0: uint64 = (== tmp%13#0 4u) @@ -100,19 +100,19 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let encoded_tuple_buffer%2#2: bytes = (concat a#0 b#0) let is_true%25#0: uint64 = (getbit c#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = (getbit d#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = (getbit e#0 0u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = (getbit f#0 0u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = (getbit g#0 0u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = (getbit h#0 0u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = (getbit i#0 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 j#0) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 k#0) let tmp%26#0: uint64 = (== boolean_packing#0 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_8.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_8.ir index 7052c71a5f..ed6f5c6e8c 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_8.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_8.ir @@ -4,31 +4,31 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: block@0: // L14 let tmp%0#0: uint64 = 1u (assert tmp%0#0) - let encoded_tuple_buffer%1#8: any = 0x04bc - let encoded_tuple_buffer%1#9: any = (setbit encoded_tuple_buffer%1#8 15u 1u) + let encoded_tuple_buffer%1#8: bytes = 0x04bc + let encoded_tuple_buffer%1#9: bytes = (setbit encoded_tuple_buffer%1#8 15u 1u) let encoded_tuple_buffer%1#10: bytes = (concat encoded_tuple_buffer%1#9 0x80) let boolean_packing#0: bytes = (concat encoded_tuple_buffer%1#10 0x10) let tmp%10#0: uint64 = (== boolean_packing#0 0x04bd8010) (assert tmp%10#0) let a#0: bytes = ((extract 0 1) boolean_packing#0) let is_true%7#0: uint64 = (getbit boolean_packing#0 8u) - let b#0: any = (setbit 0x00 0u is_true%7#0) + let b#0: bytes = (setbit 0x00 0u is_true%7#0) let is_true%8#0: uint64 = (getbit boolean_packing#0 9u) - let c#0: any = (setbit 0x00 0u is_true%8#0) + let c#0: bytes = (setbit 0x00 0u is_true%8#0) let is_true%9#0: uint64 = (getbit boolean_packing#0 10u) - let d#0: any = (setbit 0x00 0u is_true%9#0) + let d#0: bytes = (setbit 0x00 0u is_true%9#0) let is_true%10#0: uint64 = (getbit boolean_packing#0 11u) - let e#0: any = (setbit 0x00 0u is_true%10#0) + let e#0: bytes = (setbit 0x00 0u is_true%10#0) let is_true%11#0: uint64 = (getbit boolean_packing#0 12u) - let f#0: any = (setbit 0x00 0u is_true%11#0) + let f#0: bytes = (setbit 0x00 0u is_true%11#0) let is_true%12#0: uint64 = (getbit boolean_packing#0 13u) - let g#0: any = (setbit 0x00 0u is_true%12#0) + let g#0: bytes = (setbit 0x00 0u is_true%12#0) let is_true%13#0: uint64 = (getbit boolean_packing#0 14u) - let h#0: any = (setbit 0x00 0u is_true%13#0) + let h#0: bytes = (setbit 0x00 0u is_true%13#0) let is_true%14#0: uint64 = (getbit boolean_packing#0 15u) - let i#0: any = (setbit 0x00 0u is_true%14#0) + let i#0: bytes = (setbit 0x00 0u is_true%14#0) let is_true%15#0: uint64 = (getbit boolean_packing#0 16u) - let j#0: any = (setbit 0x00 0u is_true%15#0) + let j#0: bytes = (setbit 0x00 0u is_true%15#0) let k#0: bytes = ((extract 3 1) boolean_packing#0) let tmp%13#0: uint64 = (btoi a#0) let tmp%14#0: uint64 = (== tmp%13#0 4u) @@ -98,19 +98,19 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let encoded_tuple_buffer%2#2: bytes = (concat a#0 b#0) let is_true%25#0: uint64 = (getbit c#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = (getbit d#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = (getbit e#0 0u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = (getbit f#0 0u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = (getbit g#0 0u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = (getbit h#0 0u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = (getbit i#0 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 j#0) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 k#0) let tmp%26#0: uint64 = (== boolean_packing#0 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_9.ir b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_9.ir index ea645a8a35..a5039166da 100644 --- a/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_9.ir +++ b/test_cases/arc4_types/out/Arc4TuplesTypeContract.ssa.opt_pass_9.ir @@ -2,30 +2,30 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: program approval: subroutine test_cases.arc4_types.tuples.Arc4TuplesTypeContract.approval_program() -> uint64: block@0: // L14 - let encoded_tuple_buffer%1#9: any = 0x04bd + let encoded_tuple_buffer%1#9: bytes = 0x04bd let encoded_tuple_buffer%1#10: bytes = (concat encoded_tuple_buffer%1#9 0x80) let boolean_packing#0: bytes = (concat encoded_tuple_buffer%1#10 0x10) let tmp%10#0: uint64 = (== boolean_packing#0 0x04bd8010) (assert tmp%10#0) let a#0: bytes = ((extract 0 1) boolean_packing#0) let is_true%7#0: uint64 = (getbit boolean_packing#0 8u) - let b#0: any = (setbit 0x00 0u is_true%7#0) + let b#0: bytes = (setbit 0x00 0u is_true%7#0) let is_true%8#0: uint64 = (getbit boolean_packing#0 9u) - let c#0: any = (setbit 0x00 0u is_true%8#0) + let c#0: bytes = (setbit 0x00 0u is_true%8#0) let is_true%9#0: uint64 = (getbit boolean_packing#0 10u) - let d#0: any = (setbit 0x00 0u is_true%9#0) + let d#0: bytes = (setbit 0x00 0u is_true%9#0) let is_true%10#0: uint64 = (getbit boolean_packing#0 11u) - let e#0: any = (setbit 0x00 0u is_true%10#0) + let e#0: bytes = (setbit 0x00 0u is_true%10#0) let is_true%11#0: uint64 = (getbit boolean_packing#0 12u) - let f#0: any = (setbit 0x00 0u is_true%11#0) + let f#0: bytes = (setbit 0x00 0u is_true%11#0) let is_true%12#0: uint64 = (getbit boolean_packing#0 13u) - let g#0: any = (setbit 0x00 0u is_true%12#0) + let g#0: bytes = (setbit 0x00 0u is_true%12#0) let is_true%13#0: uint64 = (getbit boolean_packing#0 14u) - let h#0: any = (setbit 0x00 0u is_true%13#0) + let h#0: bytes = (setbit 0x00 0u is_true%13#0) let is_true%14#0: uint64 = (getbit boolean_packing#0 15u) - let i#0: any = (setbit 0x00 0u is_true%14#0) + let i#0: bytes = (setbit 0x00 0u is_true%14#0) let is_true%15#0: uint64 = (getbit boolean_packing#0 16u) - let j#0: any = (setbit 0x00 0u is_true%15#0) + let j#0: bytes = (setbit 0x00 0u is_true%15#0) let k#0: bytes = ((extract 3 1) boolean_packing#0) let tmp%13#0: uint64 = (btoi a#0) let tmp%14#0: uint64 = (== tmp%13#0 4u) @@ -95,19 +95,19 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let encoded_tuple_buffer%2#2: bytes = (concat a#0 b#0) let is_true%25#0: uint64 = (getbit c#0 0u) - let encoded_tuple_buffer%2#3: any = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) + let encoded_tuple_buffer%2#3: bytes = (setbit encoded_tuple_buffer%2#2 9u is_true%25#0) let is_true%26#0: uint64 = (getbit d#0 0u) - let encoded_tuple_buffer%2#4: any = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) + let encoded_tuple_buffer%2#4: bytes = (setbit encoded_tuple_buffer%2#3 10u is_true%26#0) let is_true%27#0: uint64 = (getbit e#0 0u) - let encoded_tuple_buffer%2#5: any = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) + let encoded_tuple_buffer%2#5: bytes = (setbit encoded_tuple_buffer%2#4 11u is_true%27#0) let is_true%28#0: uint64 = (getbit f#0 0u) - let encoded_tuple_buffer%2#6: any = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) + let encoded_tuple_buffer%2#6: bytes = (setbit encoded_tuple_buffer%2#5 12u is_true%28#0) let is_true%29#0: uint64 = (getbit g#0 0u) - let encoded_tuple_buffer%2#7: any = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) + let encoded_tuple_buffer%2#7: bytes = (setbit encoded_tuple_buffer%2#6 13u is_true%29#0) let is_true%30#0: uint64 = (getbit h#0 0u) - let encoded_tuple_buffer%2#8: any = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) + let encoded_tuple_buffer%2#8: bytes = (setbit encoded_tuple_buffer%2#7 14u is_true%30#0) let is_true%31#0: uint64 = (getbit i#0 0u) - let encoded_tuple_buffer%2#9: any = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) + let encoded_tuple_buffer%2#9: bytes = (setbit encoded_tuple_buffer%2#8 15u is_true%31#0) let encoded_tuple_buffer%2#10: bytes = (concat encoded_tuple_buffer%2#9 j#0) let encoded_tuple_buffer%2#11: bytes = (concat encoded_tuple_buffer%2#10 k#0) let tmp%26#0: uint64 = (== boolean_packing#0 encoded_tuple_buffer%2#11) diff --git a/test_cases/arc4_types/out_O2/Arc4BoolTypeContract.destructured.ir b/test_cases/arc4_types/out_O2/Arc4BoolTypeContract.destructured.ir index 8428fd8dfc..1554ca7754 100644 --- a/test_cases/arc4_types/out_O2/Arc4BoolTypeContract.destructured.ir +++ b/test_cases/arc4_types/out_O2/Arc4BoolTypeContract.destructured.ir @@ -12,10 +12,10 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%1#0: uint64 = (getbit false#0 0u) let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) - let tmp%4#0: any = (setbit 0x00 0u tmp%0#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) - let tmp%7#0: any = (setbit 0x00 0u tmp%1#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%1#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out_O2/Arc4StructsTypeContract.destructured.ir b/test_cases/arc4_types/out_O2/Arc4StructsTypeContract.destructured.ir index 06b0f583ce..7adef55597 100644 --- a/test_cases/arc4_types/out_O2/Arc4StructsTypeContract.destructured.ir +++ b/test_cases/arc4_types/out_O2/Arc4StructsTypeContract.destructured.ir @@ -43,20 +43,20 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: subroutine test_cases.arc4_types.structs.check(flags: bytes) -> bytes: block@0: // L54 let is_true%0#0: uint64 = (getbit flags#0 0u) - let tmp%0#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%0#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%1#0: uint64 = (getbit tmp%0#0 0u) (assert tmp%1#0) let is_true%1#0: uint64 = (getbit flags#0 1u) - let tmp%2#0: any = (setbit 0x00 0u is_true%1#0) + let tmp%2#0: bytes = (setbit 0x00 0u is_true%1#0) let tmp%3#0: uint64 = (getbit tmp%2#0 0u) let tmp%4#0: uint64 = (! tmp%3#0) (assert tmp%4#0) let is_true%2#0: uint64 = (getbit flags#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%2#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%2#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) let is_true%3#0: uint64 = (getbit flags#0 3u) - let tmp%7#0: any = (setbit 0x00 0u is_true%3#0) + let tmp%7#0: bytes = (setbit 0x00 0u is_true%3#0) let tmp%8#0: uint64 = (getbit tmp%7#0 0u) let tmp%9#0: uint64 = (! tmp%8#0) (assert tmp%9#0) @@ -71,7 +71,7 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: (assert tmp%3#0) let tmp%4#0: bytes = ((extract 16 1) vector_flags#0) let is_true%0#0: uint64 = (getbit tmp%4#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) return vector_flags#0 diff --git a/test_cases/arc4_types/out_unoptimized/Arc4BoolEvalContract.destructured.ir b/test_cases/arc4_types/out_unoptimized/Arc4BoolEvalContract.destructured.ir index dc21289083..79fc6adcef 100644 --- a/test_cases/arc4_types/out_unoptimized/Arc4BoolEvalContract.destructured.ir +++ b/test_cases/arc4_types/out_unoptimized/Arc4BoolEvalContract.destructured.ir @@ -2,10 +2,10 @@ contract test_cases.arc4_types.bool_eval.Arc4BoolEvalContract: program approval: subroutine test_cases.arc4_types.bool_eval.Arc4BoolEvalContract.approval_program() -> uint64: block@0: // L12 - let tmp%0#0: any = (setbit 0x00 0u 0u) + let tmp%0#0: bytes = (setbit 0x00 0u 0u) let tmp%1#0: uint64 = (== tmp%0#0 0x00) (assert tmp%1#0) - let tmp%2#0: any = (setbit 0x00 0u 1u) + let tmp%2#0: bytes = (setbit 0x00 0u 1u) let tmp%3#0: uint64 = (!= tmp%2#0 0x00) (assert tmp%3#0) let tmp%4#0: uint64 = (== "\x00\x00" 0x0000) @@ -79,8 +79,8 @@ contract test_cases.arc4_types.bool_eval.Arc4BoolEvalContract: let dynamic_arr#0: bytes = concat_result%0#0 let tmp%35#0: uint64 = (!= dynamic_arr#0 0x0000) (assert tmp%35#0) - let tmp%36#0: any = (setbit 0x00 0u 0u) - let tmp%37#0: any = (setbit 0x00 0u 0u) + let tmp%36#0: bytes = (setbit 0x00 0u 0u) + let tmp%37#0: bytes = (setbit 0x00 0u 0u) let tmp%38#0: uint64 = (== tmp%36#0 tmp%37#0) (assert tmp%38#0) return 1u diff --git a/test_cases/arc4_types/out_unoptimized/Arc4BoolTypeContract.destructured.ir b/test_cases/arc4_types/out_unoptimized/Arc4BoolTypeContract.destructured.ir index 1fb9c5e9a2..1e34e45890 100644 --- a/test_cases/arc4_types/out_unoptimized/Arc4BoolTypeContract.destructured.ir +++ b/test_cases/arc4_types/out_unoptimized/Arc4BoolTypeContract.destructured.ir @@ -2,21 +2,21 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: program approval: subroutine test_cases.arc4_types.bool.Arc4BoolTypeContract.approval_program() -> uint64: block@0: // L12 - let tmp%0#0: any = (setbit 0x00 0u 1u) - let tmp%1#0: any = (setbit 0x00 0u 0u) + let tmp%0#0: bytes = (setbit 0x00 0u 1u) + let tmp%1#0: bytes = (setbit 0x00 0u 0u) test_cases.arc4_types.bool.Arc4BoolTypeContract.test_stuff(tmp%0#0, tmp%1#0) - let tmp%2#0: any = (setbit 0x00 0u 1u) - let tmp%3#0: any = (setbit 0x00 0u 1u) - let tmp%4#0: any = (setbit 0x00 0u 1u) - let tmp%5#0: any = (setbit 0x00 0u 1u) - let tmp%6#0: any = (setbit 0x00 0u 1u) - let tmp%7#0: any = (setbit 0x00 0u 1u) - let tmp%8#0: any = (setbit 0x00 0u 1u) - let tmp%9#0: any = (setbit 0x00 0u 1u) - let tmp%10#0: any = (setbit 0x00 0u 1u) - let tmp%11#0: any = (setbit 0x00 0u 1u) - let tmp%12#0: any = (setbit 0x00 0u 1u) - let tmp%13#0: any = (setbit 0x00 0u 1u) + let tmp%2#0: bytes = (setbit 0x00 0u 1u) + let tmp%3#0: bytes = (setbit 0x00 0u 1u) + let tmp%4#0: bytes = (setbit 0x00 0u 1u) + let tmp%5#0: bytes = (setbit 0x00 0u 1u) + let tmp%6#0: bytes = (setbit 0x00 0u 1u) + let tmp%7#0: bytes = (setbit 0x00 0u 1u) + let tmp%8#0: bytes = (setbit 0x00 0u 1u) + let tmp%9#0: bytes = (setbit 0x00 0u 1u) + let tmp%10#0: bytes = (setbit 0x00 0u 1u) + let tmp%11#0: bytes = (setbit 0x00 0u 1u) + let tmp%12#0: bytes = (setbit 0x00 0u 1u) + let tmp%13#0: bytes = (setbit 0x00 0u 1u) let array_data%0#0: bytes = 0x let array_data%0#0: bytes = (concat array_data%0#0 tmp%2#0) let is_true%0#0: uint64 = (getbit tmp%3#0 0u) @@ -40,13 +40,13 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let array_data%0#0: bytes = (setbit array_data%0#0 10u is_true%8#0) let is_true%9#0: uint64 = (getbit tmp%13#0 0u) let array_data%0#0: bytes = (setbit array_data%0#0 11u is_true%9#0) - let static_boolean_array#0: any = array_data%0#0 + let static_boolean_array#0: bytes = array_data%0#0 let tmp%14#0: uint64 = (== static_boolean_array#0 0xfff0) (assert tmp%14#0) let item_index%0#0: uint64 = (* 0u 1u) let is_true%10#0: uint64 = (getbit static_boolean_array#0 item_index%0#0) - let tmp%15#0: any = (setbit 0x00 0u is_true%10#0) - let tmp%16#0: any = (setbit 0x00 0u 1u) + let tmp%15#0: bytes = (setbit 0x00 0u is_true%10#0) + let tmp%16#0: bytes = (setbit 0x00 0u 1u) let tmp%17#0: uint64 = (== tmp%15#0 tmp%16#0) (assert tmp%17#0) // Single boolean can be unpacked let tmp%18#0: uint64 = (- 12u 1u) @@ -55,20 +55,20 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: (assert index_is_in_bounds%0#0) // Index access is out of bounds let item_index%1#0: uint64 = (* tmp%18#0 1u) let is_true%11#0: uint64 = (getbit static_boolean_array#0 item_index%1#0) - let tmp%19#0: any = (setbit 0x00 0u is_true%11#0) - let tmp%20#0: any = (setbit 0x00 0u 1u) + let tmp%19#0: bytes = (setbit 0x00 0u is_true%11#0) + let tmp%20#0: bytes = (setbit 0x00 0u 1u) let tmp%21#0: uint64 = (== tmp%19#0 tmp%20#0) (assert tmp%21#0) // Single boolean can be unpacked - let tmp%22#0: any = (setbit 0x00 0u 1u) - let tmp%23#0: any = (setbit 0x00 0u 0u) - let tmp%24#0: any = (setbit 0x00 0u 1u) + let tmp%22#0: bytes = (setbit 0x00 0u 1u) + let tmp%23#0: bytes = (setbit 0x00 0u 0u) + let tmp%24#0: bytes = (setbit 0x00 0u 1u) let array_data%1#0: bytes = 0x0003 let array_data%1#0: bytes = (concat array_data%1#0 tmp%22#0) let is_true%12#0: uint64 = (getbit tmp%23#0 0u) let array_data%1#0: bytes = (setbit array_data%1#0 17u is_true%12#0) let is_true%13#0: uint64 = (getbit tmp%24#0 0u) let array_data%1#0: bytes = (setbit array_data%1#0 18u is_true%13#0) - let dynamic_boolean_array#0: any = array_data%1#0 + let dynamic_boolean_array#0: bytes = array_data%1#0 let tmp%25#0: uint64 = (== dynamic_boolean_array#0 0x0003a0) (assert tmp%25#0) return 1u @@ -81,11 +81,11 @@ contract test_cases.arc4_types.bool.Arc4BoolTypeContract: let tmp%2#0: uint64 = (! tmp%1#0) (assert tmp%2#0) let tmp%3#0: uint64 = (getbit true#0 0u) - let tmp%4#0: any = (setbit 0x00 0u tmp%3#0) + let tmp%4#0: bytes = (setbit 0x00 0u tmp%3#0) let tmp%5#0: uint64 = (== true#0 tmp%4#0) (assert tmp%5#0) let tmp%6#0: uint64 = (getbit false#0 0u) - let tmp%7#0: any = (setbit 0x00 0u tmp%6#0) + let tmp%7#0: bytes = (setbit 0x00 0u tmp%6#0) let tmp%8#0: uint64 = (== false#0 tmp%7#0) (assert tmp%8#0) return diff --git a/test_cases/arc4_types/out_unoptimized/Arc4MutableParamsContract.destructured.ir b/test_cases/arc4_types/out_unoptimized/Arc4MutableParamsContract.destructured.ir index 288dfb6575..34f863a58d 100644 --- a/test_cases/arc4_types/out_unoptimized/Arc4MutableParamsContract.destructured.ir +++ b/test_cases/arc4_types/out_unoptimized/Arc4MutableParamsContract.destructured.ir @@ -13,7 +13,7 @@ contract test_cases.arc4_types.mutable_params.Arc4MutableParamsContract: let array_data%0#0: bytes = (concat array_data%0#0 0x03) let array_data%0#0: bytes = (concat array_data%0#0 0x04) let my_array#0: bytes = array_data%0#0 - let tmp%0#0: any = (setbit 0x00 0u 1u) + let tmp%0#0: bytes = (setbit 0x00 0u 1u) let current_tail_offset%0#0: uint64 = 6u let encoded_tuple_buffer%0#0: bytes = 0x let encoded_tuple_buffer%0#0: bytes = (concat encoded_tuple_buffer%0#0 tmp%0#0) diff --git a/test_cases/arc4_types/out_unoptimized/Arc4MutationContract.destructured.ir b/test_cases/arc4_types/out_unoptimized/Arc4MutationContract.destructured.ir index 447204f7cf..ad62a46676 100644 --- a/test_cases/arc4_types/out_unoptimized/Arc4MutationContract.destructured.ir +++ b/test_cases/arc4_types/out_unoptimized/Arc4MutationContract.destructured.ir @@ -90,28 +90,28 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: subroutine test_cases.arc4_types.mutation.Arc4MutationContract.dynamic_array_bool() -> void: block@0: // L166 - let tmp%0#0: any = (setbit 0x00 0u 1u) - let tmp%1#0: any = (setbit 0x00 0u 0u) + let tmp%0#0: bytes = (setbit 0x00 0u 1u) + let tmp%1#0: bytes = (setbit 0x00 0u 0u) let array_data%0#0: bytes = 0x0002 let array_data%0#0: bytes = (concat array_data%0#0 tmp%0#0) let is_true%0#0: uint64 = (getbit tmp%1#0 0u) let array_data%0#0: bytes = (setbit array_data%0#0 17u is_true%0#0) - let dynamic_bool_array#0: any = array_data%0#0 + let dynamic_bool_array#0: bytes = array_data%0#0 let tmp%2#0: uint64 = (== dynamic_bool_array#0 0x000280) (assert tmp%2#0) - let tmp%3#0: any = (setbit 0x00 0u 1u) - let tmp%4#0: any = (setbit 0x00 0u 0u) + let tmp%3#0: bytes = (setbit 0x00 0u 1u) + let tmp%4#0: bytes = (setbit 0x00 0u 0u) let data%0#0: bytes = 0x let data%0#0: bytes = (concat data%0#0 tmp%3#0) let data%0#0: bytes = (concat data%0#0 tmp%4#0) let concat_result%0#0: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#0, data%0#0, 2u, 0u) - let dynamic_bool_array#0: any = concat_result%0#0 + let dynamic_bool_array#0: bytes = concat_result%0#0 let tmp%5#0: uint64 = (== dynamic_bool_array#0 0x0004a0) (assert tmp%5#0) - let tmp%6#0: any = (setbit 0x00 0u 1u) - let tmp%7#0: any = (setbit 0x00 0u 0u) - let tmp%8#0: any = (setbit 0x00 0u 1u) - let tmp%9#0: any = (setbit 0x00 0u 0u) + let tmp%6#0: bytes = (setbit 0x00 0u 1u) + let tmp%7#0: bytes = (setbit 0x00 0u 0u) + let tmp%8#0: bytes = (setbit 0x00 0u 1u) + let tmp%9#0: bytes = (setbit 0x00 0u 0u) let array_data%1#0: bytes = 0x0004 let array_data%1#0: bytes = (concat array_data%1#0 tmp%6#0) let is_true%1#0: uint64 = (getbit tmp%7#0 0u) @@ -125,15 +125,15 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let array_length%0#0: uint64 = (extract_uint16 dynamic_bool_array#0 0u) let data%1#0: bytes = ((extract 2 0) dynamic_bool_array#0) let concat_result%1#0: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#0, data%1#0, array_length%0#0, 1u) - let dynamic_bool_array#0: any = concat_result%1#0 - let tmp%11#0: any = (setbit 0x00 0u 1u) - let tmp%12#0: any = (setbit 0x00 0u 0u) - let tmp%13#0: any = (setbit 0x00 0u 1u) - let tmp%14#0: any = (setbit 0x00 0u 0u) - let tmp%15#0: any = (setbit 0x00 0u 1u) - let tmp%16#0: any = (setbit 0x00 0u 0u) - let tmp%17#0: any = (setbit 0x00 0u 1u) - let tmp%18#0: any = (setbit 0x00 0u 0u) + let dynamic_bool_array#0: bytes = concat_result%1#0 + let tmp%11#0: bytes = (setbit 0x00 0u 1u) + let tmp%12#0: bytes = (setbit 0x00 0u 0u) + let tmp%13#0: bytes = (setbit 0x00 0u 1u) + let tmp%14#0: bytes = (setbit 0x00 0u 0u) + let tmp%15#0: bytes = (setbit 0x00 0u 1u) + let tmp%16#0: bytes = (setbit 0x00 0u 0u) + let tmp%17#0: bytes = (setbit 0x00 0u 1u) + let tmp%18#0: bytes = (setbit 0x00 0u 0u) let array_data%2#0: bytes = 0x0008 let array_data%2#0: bytes = (concat array_data%2#0 tmp%11#0) let is_true%4#0: uint64 = (getbit tmp%12#0 0u) @@ -152,20 +152,20 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let array_data%2#0: bytes = (setbit array_data%2#0 23u is_true%10#0) let tmp%19#0: uint64 = (== dynamic_bool_array#0 array_data%2#0) (assert tmp%19#0) - let tmp%20#0: any = (setbit 0x00 0u 1u) + let tmp%20#0: bytes = (setbit 0x00 0u 1u) let data%2#0: bytes = 0x let data%2#0: bytes = (concat data%2#0 tmp%20#0) let concat_result%2#0: bytes = algopy_lib_arc4.dynamic_array_concat_bits(dynamic_bool_array#0, data%2#0, 1u, 0u) - let dynamic_bool_array#0: any = concat_result%2#0 - let tmp%21#0: any = (setbit 0x00 0u 1u) - let tmp%22#0: any = (setbit 0x00 0u 0u) - let tmp%23#0: any = (setbit 0x00 0u 1u) - let tmp%24#0: any = (setbit 0x00 0u 0u) - let tmp%25#0: any = (setbit 0x00 0u 1u) - let tmp%26#0: any = (setbit 0x00 0u 0u) - let tmp%27#0: any = (setbit 0x00 0u 1u) - let tmp%28#0: any = (setbit 0x00 0u 0u) - let tmp%29#0: any = (setbit 0x00 0u 1u) + let dynamic_bool_array#0: bytes = concat_result%2#0 + let tmp%21#0: bytes = (setbit 0x00 0u 1u) + let tmp%22#0: bytes = (setbit 0x00 0u 0u) + let tmp%23#0: bytes = (setbit 0x00 0u 1u) + let tmp%24#0: bytes = (setbit 0x00 0u 0u) + let tmp%25#0: bytes = (setbit 0x00 0u 1u) + let tmp%26#0: bytes = (setbit 0x00 0u 0u) + let tmp%27#0: bytes = (setbit 0x00 0u 1u) + let tmp%28#0: bytes = (setbit 0x00 0u 0u) + let tmp%29#0: bytes = (setbit 0x00 0u 1u) let array_data%3#0: bytes = 0x0009 let array_data%3#0: bytes = (concat array_data%3#0 tmp%21#0) let is_true%11#0: uint64 = (getbit tmp%22#0 0u) @@ -186,22 +186,22 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let tmp%30#0: uint64 = (== dynamic_bool_array#0 array_data%3#0) (assert tmp%30#0) let (popped%0#1: bytes, data%3#1: bytes) = algopy_lib_arc4.dynamic_array_pop_bit(dynamic_bool_array#0) - let dynamic_bool_array#0: any = data%3#1 - let tmp%31#0: any = (setbit 0x00 0u 1u) + let dynamic_bool_array#0: bytes = data%3#1 + let tmp%31#0: bytes = (setbit 0x00 0u 1u) let tmp%32#0: uint64 = (== popped%0#1 tmp%31#0) (assert tmp%32#0) let (popped%1#1: bytes, data%4#1: bytes) = algopy_lib_arc4.dynamic_array_pop_bit(dynamic_bool_array#0) - let dynamic_bool_array#0: any = data%4#1 - let tmp%33#0: any = (setbit 0x00 0u 0u) + let dynamic_bool_array#0: bytes = data%4#1 + let tmp%33#0: bytes = (setbit 0x00 0u 0u) let tmp%34#0: uint64 = (== popped%1#1 tmp%33#0) (assert tmp%34#0) - let tmp%35#0: any = (setbit 0x00 0u 1u) - let tmp%36#0: any = (setbit 0x00 0u 0u) - let tmp%37#0: any = (setbit 0x00 0u 1u) - let tmp%38#0: any = (setbit 0x00 0u 0u) - let tmp%39#0: any = (setbit 0x00 0u 1u) - let tmp%40#0: any = (setbit 0x00 0u 0u) - let tmp%41#0: any = (setbit 0x00 0u 1u) + let tmp%35#0: bytes = (setbit 0x00 0u 1u) + let tmp%36#0: bytes = (setbit 0x00 0u 0u) + let tmp%37#0: bytes = (setbit 0x00 0u 1u) + let tmp%38#0: bytes = (setbit 0x00 0u 0u) + let tmp%39#0: bytes = (setbit 0x00 0u 1u) + let tmp%40#0: bytes = (setbit 0x00 0u 0u) + let tmp%41#0: bytes = (setbit 0x00 0u 1u) let array_data%4#0: bytes = 0x0007 let array_data%4#0: bytes = (concat array_data%4#0 tmp%35#0) let is_true%18#0: uint64 = (getbit tmp%36#0 0u) @@ -578,40 +578,40 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let static_uint8_array#0: bytes = updated_target%1#0 let tmp%1#0: uint64 = (== static_uint8_array#0 0x01ff) (assert tmp%1#0) - let tmp%2#0: any = (setbit 0x00 0u 1u) - let tmp%3#0: any = (setbit 0x00 0u 0u) + let tmp%2#0: bytes = (setbit 0x00 0u 1u) + let tmp%3#0: bytes = (setbit 0x00 0u 0u) let array_data%2#0: bytes = 0x0002 let array_data%2#0: bytes = (concat array_data%2#0 tmp%2#0) let is_true%0#0: uint64 = (getbit tmp%3#0 0u) let array_data%2#0: bytes = (setbit array_data%2#0 17u is_true%0#0) - let dynamic_bool_array#0: any = array_data%2#0 - let assigned_value%2#0: any = (setbit 0x00 0u 0u) + let dynamic_bool_array#0: bytes = array_data%2#0 + let assigned_value%2#0: bytes = (setbit 0x00 0u 0u) let array_length%1#0: uint64 = (extract_uint16 dynamic_bool_array#0 0u) let index_is_in_bounds%1#0: uint64 = (< 0u array_length%1#0) (assert index_is_in_bounds%1#0) // Index access is out of bounds let is_true%1#0: uint64 = (getbit assigned_value%2#0 0u) - let updated_target%2#0: any = (setbit dynamic_bool_array#0 16u is_true%1#0) - let dynamic_bool_array#0: any = updated_target%2#0 + let updated_target%2#0: bytes = (setbit dynamic_bool_array#0 16u is_true%1#0) + let dynamic_bool_array#0: bytes = updated_target%2#0 let tmp%4#0: uint64 = (== dynamic_bool_array#0 0x000200) (assert tmp%4#0) - let tmp%5#0: any = (setbit 0x00 0u 1u) - let tmp%6#0: any = (setbit 0x00 0u 1u) + let tmp%5#0: bytes = (setbit 0x00 0u 1u) + let tmp%6#0: bytes = (setbit 0x00 0u 1u) let array_data%3#0: bytes = 0x let array_data%3#0: bytes = (concat array_data%3#0 tmp%5#0) let is_true%2#0: uint64 = (getbit tmp%6#0 0u) let array_data%3#0: bytes = (setbit array_data%3#0 1u is_true%2#0) - let static_bool_array#0: any = array_data%3#0 - let assigned_value%3#0: any = (setbit 0x00 0u 0u) + let static_bool_array#0: bytes = array_data%3#0 + let assigned_value%3#0: bytes = (setbit 0x00 0u 0u) let is_true%3#0: uint64 = (getbit assigned_value%3#0 0u) - let updated_target%3#0: any = (setbit static_bool_array#0 1u is_true%3#0) - let static_bool_array#0: any = updated_target%3#0 + let updated_target%3#0: bytes = (setbit static_bool_array#0 1u is_true%3#0) + let static_bool_array#0: bytes = updated_target%3#0 let tmp%7#0: uint64 = (== static_bool_array#0 0x80) (assert tmp%7#0) return subroutine test_cases.arc4_types.mutation.Arc4MutationContract.struct_assign() -> void: block@0: // L116 - let tmp%0#0: any = (setbit 0x00 0u 1u) + let tmp%0#0: bytes = (setbit 0x00 0u 1u) let current_tail_offset%0#0: uint64 = 6u let encoded_tuple_buffer%0#0: bytes = 0x let encoded_tuple_buffer%0#0: bytes = (concat encoded_tuple_buffer%0#0 tmp%0#0) @@ -627,14 +627,14 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let encoded_tuple_buffer%0#0: bytes = (concat encoded_tuple_buffer%0#0 "\x00\x05Happy") let encoded_tuple_buffer%0#0: bytes = (concat encoded_tuple_buffer%0#0 "\x00\x04Days") let test_struct#0: bytes = encoded_tuple_buffer%0#0 - let assigned_value%0#0: any = (setbit 0x00 0u 0u) + let assigned_value%0#0: bytes = (setbit 0x00 0u 0u) let is_true%0#0: uint64 = (getbit assigned_value%0#0 0u) - let updated_data%0#0: any = (setbit test_struct#0 0u is_true%0#0) + let updated_data%0#0: bytes = (setbit test_struct#0 0u is_true%0#0) let test_struct#0: bytes = updated_data%0#0 let assigned_value%1#0: bytes = 0x0c let updated_data%1#0: bytes = ((replace2 1) test_struct#0 assigned_value%1#0) let test_struct#0: bytes = updated_data%1#0 - let tmp%1#0: any = (setbit 0x00 0u 0u) + let tmp%1#0: bytes = (setbit 0x00 0u 0u) let current_tail_offset%1#0: uint64 = 6u let encoded_tuple_buffer%1#0: bytes = 0x let encoded_tuple_buffer%1#0: bytes = (concat encoded_tuple_buffer%1#0 tmp%1#0) @@ -670,7 +670,7 @@ contract test_cases.arc4_types.mutation.Arc4MutationContract: let data_up_to_item%1#0: bytes = (extract3 test_struct#0 0u item_offset%1#0) let updated_data%3#0: bytes = (concat data_up_to_item%1#0 assigned_value%3#0) let test_struct#0: bytes = updated_data%3#0 - let tmp%3#0: any = (setbit 0x00 0u 0u) + let tmp%3#0: bytes = (setbit 0x00 0u 0u) let current_tail_offset%2#0: uint64 = 6u let encoded_tuple_buffer%2#0: bytes = 0x let encoded_tuple_buffer%2#0: bytes = (concat encoded_tuple_buffer%2#0 tmp%3#0) diff --git a/test_cases/arc4_types/out_unoptimized/Arc4StructsFromAnotherModule.destructured.ir b/test_cases/arc4_types/out_unoptimized/Arc4StructsFromAnotherModule.destructured.ir index 4fbea9e1ff..6386aa736f 100644 --- a/test_cases/arc4_types/out_unoptimized/Arc4StructsFromAnotherModule.destructured.ir +++ b/test_cases/arc4_types/out_unoptimized/Arc4StructsFromAnotherModule.destructured.ir @@ -2,10 +2,10 @@ contract test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule: program approval: subroutine test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule.approval_program() -> uint64: block@0: // L7 - let tmp%0#0: any = (setbit 0x00 0u 1u) - let tmp%1#0: any = (setbit 0x00 0u 0u) - let tmp%2#0: any = (setbit 0x00 0u 1u) - let tmp%3#0: any = (setbit 0x00 0u 0u) + let tmp%0#0: bytes = (setbit 0x00 0u 1u) + let tmp%1#0: bytes = (setbit 0x00 0u 0u) + let tmp%2#0: bytes = (setbit 0x00 0u 1u) + let tmp%3#0: bytes = (setbit 0x00 0u 0u) let encoded_tuple_buffer%0#0: bytes = 0x let encoded_tuple_buffer%0#0: bytes = (concat encoded_tuple_buffer%0#0 tmp%0#0) let is_true%0#0: uint64 = (getbit tmp%1#0 0u) @@ -14,7 +14,7 @@ contract test_cases.arc4_types.structs2.Arc4StructsFromAnotherModule: let encoded_tuple_buffer%0#0: bytes = (setbit encoded_tuple_buffer%0#0 2u is_true%1#0) let is_true%2#0: uint64 = (getbit tmp%3#0 0u) let encoded_tuple_buffer%0#0: bytes = (setbit encoded_tuple_buffer%0#0 3u is_true%2#0) - let flags#0: any = encoded_tuple_buffer%0#0 + let flags#0: bytes = encoded_tuple_buffer%0#0 (log flags#0) return 1u diff --git a/test_cases/arc4_types/out_unoptimized/Arc4StructsTypeContract.destructured.ir b/test_cases/arc4_types/out_unoptimized/Arc4StructsTypeContract.destructured.ir index 64f5df7adc..52c09597cc 100644 --- a/test_cases/arc4_types/out_unoptimized/Arc4StructsTypeContract.destructured.ir +++ b/test_cases/arc4_types/out_unoptimized/Arc4StructsTypeContract.destructured.ir @@ -32,10 +32,10 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: let tuple_index%0#3: uint64 = (+ tuple_index%0#0 1u) goto_nth [block@2][tuple_index%0#0] else goto block@5 block@5: // after_for_L30 - let tmp%2#0: any = (setbit 0x00 0u 1u) - let tmp%3#0: any = (setbit 0x00 0u 0u) - let tmp%4#0: any = (setbit 0x00 0u 1u) - let tmp%5#0: any = (setbit 0x00 0u 0u) + let tmp%2#0: bytes = (setbit 0x00 0u 1u) + let tmp%3#0: bytes = (setbit 0x00 0u 0u) + let tmp%4#0: bytes = (setbit 0x00 0u 1u) + let tmp%5#0: bytes = (setbit 0x00 0u 0u) let encoded_tuple_buffer%2#0: bytes = 0x let encoded_tuple_buffer%2#0: bytes = (concat encoded_tuple_buffer%2#0 tmp%2#0) let is_true%0#0: uint64 = (getbit tmp%3#0 0u) @@ -44,14 +44,14 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: let encoded_tuple_buffer%2#0: bytes = (setbit encoded_tuple_buffer%2#0 2u is_true%1#0) let is_true%2#0: uint64 = (getbit tmp%5#0 0u) let encoded_tuple_buffer%2#0: bytes = (setbit encoded_tuple_buffer%2#0 3u is_true%2#0) - let flags#0: any = encoded_tuple_buffer%2#0 - let copy%2#0: any = flags#0 + let flags#0: bytes = encoded_tuple_buffer%2#0 + let copy%2#0: bytes = flags#0 let check%0#0: bytes = test_cases.arc4_types.structs.check(copy%2#0) (log flags#0) let tmp%6#0: uint64 = (== coord_1#0 coord_1#0) (assert tmp%6#0) let copy%3#0: bytes = coord_1#0 - let copy%4#0: any = flags#0 + let copy%4#0: bytes = flags#0 let encoded_tuple_buffer%3#0: bytes = 0x let encoded_tuple_buffer%3#0: bytes = (concat encoded_tuple_buffer%3#0 copy%3#0) let encoded_tuple_buffer%3#0: bytes = (concat encoded_tuple_buffer%3#0 copy%4#0) @@ -82,20 +82,20 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: subroutine test_cases.arc4_types.structs.check(flags: bytes) -> bytes: block@0: // L54 let is_true%0#0: uint64 = (getbit flags#0 0u) - let tmp%0#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%0#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%1#0: uint64 = (getbit tmp%0#0 0u) (assert tmp%1#0) let is_true%1#0: uint64 = (getbit flags#0 1u) - let tmp%2#0: any = (setbit 0x00 0u is_true%1#0) + let tmp%2#0: bytes = (setbit 0x00 0u is_true%1#0) let tmp%3#0: uint64 = (getbit tmp%2#0 0u) let tmp%4#0: uint64 = (! tmp%3#0) (assert tmp%4#0) let is_true%2#0: uint64 = (getbit flags#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%2#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%2#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) let is_true%3#0: uint64 = (getbit flags#0 3u) - let tmp%7#0: any = (setbit 0x00 0u is_true%3#0) + let tmp%7#0: bytes = (setbit 0x00 0u is_true%3#0) let tmp%8#0: uint64 = (getbit tmp%7#0 0u) let tmp%9#0: uint64 = (! tmp%8#0) (assert tmp%9#0) @@ -110,7 +110,7 @@ contract test_cases.arc4_types.structs.Arc4StructsTypeContract: (assert tmp%3#0) let tmp%4#0: bytes = (extract3 vector_flags#0 16u 1u) let is_true%0#0: uint64 = (getbit tmp%4#0 2u) - let tmp%5#0: any = (setbit 0x00 0u is_true%0#0) + let tmp%5#0: bytes = (setbit 0x00 0u is_true%0#0) let tmp%6#0: uint64 = (getbit tmp%5#0 0u) (assert tmp%6#0) return vector_flags#0 diff --git a/test_cases/arc4_types/out_unoptimized/Arc4TuplesTypeContract.destructured.ir b/test_cases/arc4_types/out_unoptimized/Arc4TuplesTypeContract.destructured.ir index 1d56c8d313..f5478dd22c 100644 --- a/test_cases/arc4_types/out_unoptimized/Arc4TuplesTypeContract.destructured.ir +++ b/test_cases/arc4_types/out_unoptimized/Arc4TuplesTypeContract.destructured.ir @@ -20,15 +20,15 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: let my_tuple#0: bytes = encoded_tuple_buffer%0#0 let tmp%0#0: uint64 = (== my_tuple#0 0x01020007000eff000568656c6c6f0005776f726c64) (assert tmp%0#0) - let tmp%1#0: any = (setbit 0x00 0u 1u) - let tmp%2#0: any = (setbit 0x00 0u 0u) - let tmp%3#0: any = (setbit 0x00 0u 1u) - let tmp%4#0: any = (setbit 0x00 0u 1u) - let tmp%5#0: any = (setbit 0x00 0u 1u) - let tmp%6#0: any = (setbit 0x00 0u 1u) - let tmp%7#0: any = (setbit 0x00 0u 0u) - let tmp%8#0: any = (setbit 0x00 0u 1u) - let tmp%9#0: any = (setbit 0x00 0u 1u) + let tmp%1#0: bytes = (setbit 0x00 0u 1u) + let tmp%2#0: bytes = (setbit 0x00 0u 0u) + let tmp%3#0: bytes = (setbit 0x00 0u 1u) + let tmp%4#0: bytes = (setbit 0x00 0u 1u) + let tmp%5#0: bytes = (setbit 0x00 0u 1u) + let tmp%6#0: bytes = (setbit 0x00 0u 1u) + let tmp%7#0: bytes = (setbit 0x00 0u 0u) + let tmp%8#0: bytes = (setbit 0x00 0u 1u) + let tmp%9#0: bytes = (setbit 0x00 0u 1u) let encoded_tuple_buffer%1#0: bytes = 0x let encoded_tuple_buffer%1#0: bytes = (concat encoded_tuple_buffer%1#0 0x04) let encoded_tuple_buffer%1#0: bytes = (concat encoded_tuple_buffer%1#0 tmp%1#0) @@ -53,34 +53,34 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%10#0) let item0%0#0: bytes = (extract3 boolean_packing#0 0u 1u) let is_true%7#0: uint64 = (getbit boolean_packing#0 8u) - let item1%0#0: any = (setbit 0x00 0u is_true%7#0) + let item1%0#0: bytes = (setbit 0x00 0u is_true%7#0) let is_true%8#0: uint64 = (getbit boolean_packing#0 9u) - let item2%0#0: any = (setbit 0x00 0u is_true%8#0) + let item2%0#0: bytes = (setbit 0x00 0u is_true%8#0) let is_true%9#0: uint64 = (getbit boolean_packing#0 10u) - let item3%0#0: any = (setbit 0x00 0u is_true%9#0) + let item3%0#0: bytes = (setbit 0x00 0u is_true%9#0) let is_true%10#0: uint64 = (getbit boolean_packing#0 11u) - let item4%0#0: any = (setbit 0x00 0u is_true%10#0) + let item4%0#0: bytes = (setbit 0x00 0u is_true%10#0) let is_true%11#0: uint64 = (getbit boolean_packing#0 12u) - let item5%0#0: any = (setbit 0x00 0u is_true%11#0) + let item5%0#0: bytes = (setbit 0x00 0u is_true%11#0) let is_true%12#0: uint64 = (getbit boolean_packing#0 13u) - let item6%0#0: any = (setbit 0x00 0u is_true%12#0) + let item6%0#0: bytes = (setbit 0x00 0u is_true%12#0) let is_true%13#0: uint64 = (getbit boolean_packing#0 14u) - let item7%0#0: any = (setbit 0x00 0u is_true%13#0) + let item7%0#0: bytes = (setbit 0x00 0u is_true%13#0) let is_true%14#0: uint64 = (getbit boolean_packing#0 15u) - let item8%0#0: any = (setbit 0x00 0u is_true%14#0) + let item8%0#0: bytes = (setbit 0x00 0u is_true%14#0) let is_true%15#0: uint64 = (getbit boolean_packing#0 16u) - let item9%0#0: any = (setbit 0x00 0u is_true%15#0) + let item9%0#0: bytes = (setbit 0x00 0u is_true%15#0) let item10%0#0: bytes = (extract3 boolean_packing#0 3u 1u) let a#0: bytes = item0%0#0 - let b#0: any = item1%0#0 - let c#0: any = item2%0#0 - let d#0: any = item3%0#0 - let e#0: any = item4%0#0 - let f#0: any = item5%0#0 - let g#0: any = item6%0#0 - let h#0: any = item7%0#0 - let i#0: any = item8%0#0 - let j#0: any = item9%0#0 + let b#0: bytes = item1%0#0 + let c#0: bytes = item2%0#0 + let d#0: bytes = item3%0#0 + let e#0: bytes = item4%0#0 + let f#0: bytes = item5%0#0 + let g#0: bytes = item6%0#0 + let h#0: bytes = item7%0#0 + let i#0: bytes = item8%0#0 + let j#0: bytes = item9%0#0 let k#0: bytes = item10%0#0 let tmp%11#0: bytes = (extract3 boolean_packing#0 3u 1u) let tmp%12#0: uint64 = (b== tmp%11#0 k#0) @@ -91,55 +91,55 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: let tmp%15#0: uint64 = (== b#0 0x00) goto tmp%15#0 ? block@1 : block@2 block@1: // ternary_true_L39 - let ternary_result%0#0: any = b#0 + let ternary_result%0#0: bytes = b#0 goto block@18 block@2: // ternary_false_L39 let tmp%16#0: uint64 = (== d#0 0x00) goto tmp%16#0 ? block@3 : block@4 block@3: // ternary_true_L39 - let ternary_result%1#0: any = d#0 + let ternary_result%1#0: bytes = d#0 goto block@17 block@4: // ternary_false_L39 let tmp%17#0: uint64 = (== e#0 0x00) goto tmp%17#0 ? block@5 : block@6 block@5: // ternary_true_L39 - let ternary_result%2#0: any = e#0 + let ternary_result%2#0: bytes = e#0 goto block@16 block@6: // ternary_false_L39 let tmp%18#0: uint64 = (== f#0 0x00) goto tmp%18#0 ? block@7 : block@8 block@7: // ternary_true_L39 - let ternary_result%3#0: any = f#0 + let ternary_result%3#0: bytes = f#0 goto block@15 block@8: // ternary_false_L39 let tmp%19#0: uint64 = (== g#0 0x00) goto tmp%19#0 ? block@9 : block@10 block@9: // ternary_true_L39 - let ternary_result%4#0: any = g#0 + let ternary_result%4#0: bytes = g#0 goto block@14 block@10: // ternary_false_L39 let tmp%20#0: uint64 = (== i#0 0x00) goto tmp%20#0 ? block@11 : block@12 block@11: // ternary_true_L39 - let ternary_result%5#0: any = i#0 + let ternary_result%5#0: bytes = i#0 goto block@13 block@12: // ternary_false_L39 - let ternary_result%5#0: any = j#0 + let ternary_result%5#0: bytes = j#0 goto block@13 block@13: // ternary_merge_L39 - let ternary_result%4#0: any = ternary_result%5#0 + let ternary_result%4#0: bytes = ternary_result%5#0 goto block@14 block@14: // ternary_merge_L39 - let ternary_result%3#0: any = ternary_result%4#0 + let ternary_result%3#0: bytes = ternary_result%4#0 goto block@15 block@15: // ternary_merge_L39 - let ternary_result%2#0: any = ternary_result%3#0 + let ternary_result%2#0: bytes = ternary_result%3#0 goto block@16 block@16: // ternary_merge_L39 - let ternary_result%1#0: any = ternary_result%2#0 + let ternary_result%1#0: bytes = ternary_result%2#0 goto block@17 block@17: // ternary_merge_L39 - let ternary_result%0#0: any = ternary_result%1#0 + let ternary_result%0#0: bytes = ternary_result%1#0 goto block@18 block@18: // ternary_merge_L39 let tmp%21#0: uint64 = (!= ternary_result%0#0 0x00) @@ -147,10 +147,10 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: let tmp%22#0: uint64 = (!= c#0 0x00) goto tmp%22#0 ? block@19 : block@20 block@19: // ternary_true_L40 - let ternary_result%6#0: any = c#0 + let ternary_result%6#0: bytes = c#0 goto block@21 block@20: // ternary_false_L40 - let ternary_result%6#0: any = h#0 + let ternary_result%6#0: bytes = h#0 goto block@21 block@21: // ternary_merge_L40 let tmp%23#0: uint64 = (== ternary_result%6#0 0x00) @@ -160,23 +160,23 @@ contract test_cases.arc4_types.tuples.Arc4TuplesTypeContract: (assert tmp%25#0) // k is 16 let item0%1#0: bytes = (extract3 boolean_packing#0 0u 1u) let is_true%16#0: uint64 = (getbit boolean_packing#0 8u) - let item1%1#0: any = (setbit 0x00 0u is_true%16#0) + let item1%1#0: bytes = (setbit 0x00 0u is_true%16#0) let is_true%17#0: uint64 = (getbit boolean_packing#0 9u) - let item2%1#0: any = (setbit 0x00 0u is_true%17#0) + let item2%1#0: bytes = (setbit 0x00 0u is_true%17#0) let is_true%18#0: uint64 = (getbit boolean_packing#0 10u) - let item3%1#0: any = (setbit 0x00 0u is_true%18#0) + let item3%1#0: bytes = (setbit 0x00 0u is_true%18#0) let is_true%19#0: uint64 = (getbit boolean_packing#0 11u) - let item4%1#0: any = (setbit 0x00 0u is_true%19#0) + let item4%1#0: bytes = (setbit 0x00 0u is_true%19#0) let is_true%20#0: uint64 = (getbit boolean_packing#0 12u) - let item5%1#0: any = (setbit 0x00 0u is_true%20#0) + let item5%1#0: bytes = (setbit 0x00 0u is_true%20#0) let is_true%21#0: uint64 = (getbit boolean_packing#0 13u) - let item6%1#0: any = (setbit 0x00 0u is_true%21#0) + let item6%1#0: bytes = (setbit 0x00 0u is_true%21#0) let is_true%22#0: uint64 = (getbit boolean_packing#0 14u) - let item7%1#0: any = (setbit 0x00 0u is_true%22#0) + let item7%1#0: bytes = (setbit 0x00 0u is_true%22#0) let is_true%23#0: uint64 = (getbit boolean_packing#0 15u) - let item8%1#0: any = (setbit 0x00 0u is_true%23#0) + let item8%1#0: bytes = (setbit 0x00 0u is_true%23#0) let is_true%24#0: uint64 = (getbit boolean_packing#0 16u) - let item9%1#0: any = (setbit 0x00 0u is_true%24#0) + let item9%1#0: bytes = (setbit 0x00 0u is_true%24#0) let item10%1#0: bytes = (extract3 boolean_packing#0 3u 1u) let encoded_tuple_buffer%2#0: bytes = 0x let encoded_tuple_buffer%2#0: bytes = (concat encoded_tuple_buffer%2#0 item0%1#0) diff --git a/test_cases/arc4_types/puya.log b/test_cases/arc4_types/puya.log index 99cec40065..95c80b634f 100644 --- a/test_cases/arc4_types/puya.log +++ b/test_cases/arc4_types/puya.log @@ -12701,15 +12701,15 @@ debug: Found equivalence set: is_true%14#0, is_true%23#0 debug: Replacing {is_true%23#0} with is_true%14#0 made 1 modifications debug: Found equivalence set: is_true%15#0, is_true%24#0 debug: Replacing {is_true%24#0} with is_true%15#0 made 1 modifications -debug: Replacing redundant declaration let item1%1#0: any = (setbit 0x00 0u is_true%7#0) with copy of existing registers [Register(atype=any, name='b', version=0, source_location=arc4_types/tuples.py:36:11-12)] -debug: Replacing redundant declaration let item2%1#0: any = (setbit 0x00 0u is_true%8#0) with copy of existing registers [Register(atype=any, name='c', version=0, source_location=arc4_types/tuples.py:36:14-15)] -debug: Replacing redundant declaration let item3%1#0: any = (setbit 0x00 0u is_true%9#0) with copy of existing registers [Register(atype=any, name='d', version=0, source_location=arc4_types/tuples.py:36:17-18)] -debug: Replacing redundant declaration let item4%1#0: any = (setbit 0x00 0u is_true%10#0) with copy of existing registers [Register(atype=any, name='e', version=0, source_location=arc4_types/tuples.py:36:20-21)] -debug: Replacing redundant declaration let item5%1#0: any = (setbit 0x00 0u is_true%11#0) with copy of existing registers [Register(atype=any, name='f', version=0, source_location=arc4_types/tuples.py:36:23-24)] -debug: Replacing redundant declaration let item6%1#0: any = (setbit 0x00 0u is_true%12#0) with copy of existing registers [Register(atype=any, name='g', version=0, source_location=arc4_types/tuples.py:36:26-27)] -debug: Replacing redundant declaration let item7%1#0: any = (setbit 0x00 0u is_true%13#0) with copy of existing registers [Register(atype=any, name='h', version=0, source_location=arc4_types/tuples.py:36:29-30)] -debug: Replacing redundant declaration let item8%1#0: any = (setbit 0x00 0u is_true%14#0) with copy of existing registers [Register(atype=any, name='i', version=0, source_location=arc4_types/tuples.py:36:32-33)] -debug: Replacing redundant declaration let item9%1#0: any = (setbit 0x00 0u is_true%15#0) with copy of existing registers [Register(atype=any, name='j', version=0, source_location=arc4_types/tuples.py:36:35-36)] +debug: Replacing redundant declaration let item1%1#0: bytes = (setbit 0x00 0u is_true%7#0) with copy of existing registers [Register(atype=bytes, name='b', version=0, source_location=arc4_types/tuples.py:36:11-12)] +debug: Replacing redundant declaration let item2%1#0: bytes = (setbit 0x00 0u is_true%8#0) with copy of existing registers [Register(atype=bytes, name='c', version=0, source_location=arc4_types/tuples.py:36:14-15)] +debug: Replacing redundant declaration let item3%1#0: bytes = (setbit 0x00 0u is_true%9#0) with copy of existing registers [Register(atype=bytes, name='d', version=0, source_location=arc4_types/tuples.py:36:17-18)] +debug: Replacing redundant declaration let item4%1#0: bytes = (setbit 0x00 0u is_true%10#0) with copy of existing registers [Register(atype=bytes, name='e', version=0, source_location=arc4_types/tuples.py:36:20-21)] +debug: Replacing redundant declaration let item5%1#0: bytes = (setbit 0x00 0u is_true%11#0) with copy of existing registers [Register(atype=bytes, name='f', version=0, source_location=arc4_types/tuples.py:36:23-24)] +debug: Replacing redundant declaration let item6%1#0: bytes = (setbit 0x00 0u is_true%12#0) with copy of existing registers [Register(atype=bytes, name='g', version=0, source_location=arc4_types/tuples.py:36:26-27)] +debug: Replacing redundant declaration let item7%1#0: bytes = (setbit 0x00 0u is_true%13#0) with copy of existing registers [Register(atype=bytes, name='h', version=0, source_location=arc4_types/tuples.py:36:29-30)] +debug: Replacing redundant declaration let item8%1#0: bytes = (setbit 0x00 0u is_true%14#0) with copy of existing registers [Register(atype=bytes, name='i', version=0, source_location=arc4_types/tuples.py:36:32-33)] +debug: Replacing redundant declaration let item9%1#0: bytes = (setbit 0x00 0u is_true%15#0) with copy of existing registers [Register(atype=bytes, name='j', version=0, source_location=arc4_types/tuples.py:36:35-36)] debug: Found equivalence set: b#0, item1%1#0 debug: Replacing {item1%1#0} with b#0 made 1 modifications debug: Found equivalence set: c#0, item2%1#0 diff --git a/test_cases/avm_types_in_abi/out/TestContract.approval.mir b/test_cases/avm_types_in_abi/out/TestContract.approval.mir index fc394f6a4f..c59eee391b 100644 --- a/test_cases/avm_types_in_abi/out/TestContract.approval.mir +++ b/test_cases/avm_types_in_abi/out/TestContract.approval.mir @@ -50,7 +50,7 @@ main_create_route@1: getbit // tmp%6#0,tmp%8#0,tmp%10#0,tmp%11#0,{getbit} class TestContract(arc4.ARC4Contract): avm_types_in_abi/contract.py:4 // virtual: store is_true%0#0 to l-stack (no copy) tmp%6#0,tmp%8#0,tmp%10#0,tmp%11#0,is_true%0#0 class TestContract(arc4.ARC4Contract): avm_types_in_abi/contract.py:4 byte 0x00 // tmp%6#0,tmp%8#0,tmp%10#0,tmp%11#0,is_true%0#0,0x00 class TestContract(arc4.ARC4Contract): avm_types_in_abi/contract.py:4 - int 0 // tmp%6#0,tmp%8#0,tmp%10#0,tmp%11#0,is_true%0#0,0x00,0 + int 0 // tmp%6#0,tmp%8#0,tmp%10#0,tmp%11#0,is_true%0#0,0x00,0 class TestContract(arc4.ARC4Contract): avm_types_in_abi/contract.py:4 uncover 2 // load is_true%0#0 from l-stack (no copy) tmp%6#0,tmp%8#0,tmp%10#0,tmp%11#0,0x00,0,is_true%0#0 class TestContract(arc4.ARC4Contract): avm_types_in_abi/contract.py:4 setbit // tmp%6#0,tmp%8#0,tmp%10#0,tmp%11#0,{setbit} class TestContract(arc4.ARC4Contract): avm_types_in_abi/contract.py:4 swap // store item0%0#0 to l-stack (no copy) tmp%6#0,tmp%8#0,tmp%10#0,item0%0#0,tmp%11#0 class TestContract(arc4.ARC4Contract): avm_types_in_abi/contract.py:4 @@ -95,7 +95,7 @@ main_create_route@1: swap // store awst_tmp%4#0 to l-stack (no copy) awst_tmp%5#0,awst_tmp%4#0,{create}.0 arc4.abimethod(allow_actions=["NoOp"], create="require") avm_types_in_abi/contract.py:5 // virtual: store awst_tmp%3#0 to l-stack (no copy) awst_tmp%5#0,awst_tmp%4#0,awst_tmp%3#0 arc4.abimethod(allow_actions=["NoOp"], create="require") avm_types_in_abi/contract.py:5 byte 0x00 // awst_tmp%5#0,awst_tmp%4#0,awst_tmp%3#0,0x00 arc4.abimethod(allow_actions=["NoOp"], create="require") avm_types_in_abi/contract.py:5 - int 0 // awst_tmp%5#0,awst_tmp%4#0,awst_tmp%3#0,0x00,0 + int 0 // awst_tmp%5#0,awst_tmp%4#0,awst_tmp%3#0,0x00,0 arc4.abimethod(allow_actions=["NoOp"], create="require") avm_types_in_abi/contract.py:5 uncover 2 // load awst_tmp%3#0 from l-stack (no copy) awst_tmp%5#0,awst_tmp%4#0,0x00,0,awst_tmp%3#0 arc4.abimethod(allow_actions=["NoOp"], create="require") avm_types_in_abi/contract.py:5 setbit // awst_tmp%5#0,awst_tmp%4#0,{setbit} arc4.abimethod(allow_actions=["NoOp"], create="require") avm_types_in_abi/contract.py:5 cover 2 // store tmp%15#0 to l-stack (no copy) tmp%15#0,awst_tmp%5#0,awst_tmp%4#0 arc4.abimethod(allow_actions=["NoOp"], create="require") avm_types_in_abi/contract.py:5 diff --git a/test_cases/avm_types_in_abi/out/TestContract.destructured.ir b/test_cases/avm_types_in_abi/out/TestContract.destructured.ir index a1a396be00..d96c620930 100644 --- a/test_cases/avm_types_in_abi/out/TestContract.destructured.ir +++ b/test_cases/avm_types_in_abi/out/TestContract.destructured.ir @@ -19,7 +19,7 @@ contract test_cases.avm_types_in_abi.contract.TestContract: let tmp%10#0: bytes = ((extract 2 0) tmp%9#0) let tmp%11#0: bytes = (txna ApplicationArgs 4) let is_true%0#0: uint64 = (getbit tmp%11#0 0u) - let item0%0#0: any = (setbit 0x00 0u is_true%0#0) + let item0%0#0: bytes = (setbit 0x00 0u is_true%0#0) let item1%0#0: bytes = ((extract 1 8) tmp%11#0) let item_index%0#0: uint64 = (extract_uint16 tmp%11#0 9u) let item_length%0#0: uint64 = (extract_uint16 tmp%11#0 item_index%0#0) @@ -29,7 +29,7 @@ contract test_cases.avm_types_in_abi.contract.TestContract: let tmp%13#0: uint64 = (btoi item1%0#0) let tmp%14#0: bytes = ((extract 2 0) item2%0#0) let (awst_tmp%3#0: uint64, awst_tmp%4#0: uint64, awst_tmp%5#0: bytes) = test_cases.avm_types_in_abi.contract.TestContract.create(tmp%6#0, tmp%8#0, tmp%10#0, tmp%12#0, tmp%13#0, tmp%14#0) - let tmp%15#0: any = (setbit 0x00 0u awst_tmp%3#0) + let tmp%15#0: bytes = (setbit 0x00 0u awst_tmp%3#0) let val_as_bytes%0#0: bytes = (itob awst_tmp%4#0) let tmp%16#0: uint64 = (len awst_tmp%5#0) let tmp%17#0: bytes = (itob tmp%16#0) diff --git a/test_cases/avm_types_in_abi/out/TestContract.ssa.ir b/test_cases/avm_types_in_abi/out/TestContract.ssa.ir index a7838cae2f..bd5d76e7df 100644 --- a/test_cases/avm_types_in_abi/out/TestContract.ssa.ir +++ b/test_cases/avm_types_in_abi/out/TestContract.ssa.ir @@ -19,18 +19,18 @@ contract test_cases.avm_types_in_abi.contract.TestContract: let tmp%10#0: bytes = ((extract 2 0) tmp%9#0) let tmp%11#0: bytes = (txna ApplicationArgs 4) let is_true%0#0: uint64 = (getbit tmp%11#0 0u) - let item0%0#0: any = (setbit 0x00 0u is_true%0#0) + let item0%0#0: bytes = (setbit 0x00 0u is_true%0#0) let item1%0#0: bytes = (extract3 tmp%11#0 1u 8u) let item_index%0#0: uint64 = (extract_uint16 tmp%11#0 9u) let item_length%0#0: uint64 = (extract_uint16 tmp%11#0 item_index%0#0) let item_length_plus_2%0#0: uint64 = (+ item_length%0#0 2u) let item2%0#0: bytes = (extract3 tmp%11#0 item_index%0#0 item_length_plus_2%0#0) - let (awst_tmp%0#0: any, awst_tmp%1#0: bytes, awst_tmp%2#0: bytes) = (item0%0#0, item1%0#0, item2%0#0) + let (awst_tmp%0#0: bytes, awst_tmp%1#0: bytes, awst_tmp%2#0: bytes) = (item0%0#0, item1%0#0, item2%0#0) let tmp%12#0: uint64 = (getbit awst_tmp%0#0 0u) let tmp%13#0: uint64 = (btoi awst_tmp%1#0) let tmp%14#0: bytes = ((extract 2 0) awst_tmp%2#0) let (awst_tmp%3#0: uint64, awst_tmp%4#0: uint64, awst_tmp%5#0: bytes) = test_cases.avm_types_in_abi.contract.TestContract.create(tmp%6#0, tmp%8#0, tmp%10#0, tmp%12#0, tmp%13#0, tmp%14#0) - let tmp%15#0: any = (setbit 0x00 0u awst_tmp%3#0) + let tmp%15#0: bytes = (setbit 0x00 0u awst_tmp%3#0) let val_as_bytes%0#0: bytes = (itob awst_tmp%4#0) let awst_tmp%6#0: bytes = awst_tmp%5#0 let tmp%16#0: uint64 = (len awst_tmp%6#0) diff --git a/test_cases/avm_types_in_abi/out/TestContract.ssa.opt_pass_1.ir b/test_cases/avm_types_in_abi/out/TestContract.ssa.opt_pass_1.ir index 1ba74c5220..cde5d13957 100644 --- a/test_cases/avm_types_in_abi/out/TestContract.ssa.opt_pass_1.ir +++ b/test_cases/avm_types_in_abi/out/TestContract.ssa.opt_pass_1.ir @@ -19,7 +19,7 @@ contract test_cases.avm_types_in_abi.contract.TestContract: let tmp%10#0: bytes = ((extract 2 0) tmp%9#0) let tmp%11#0: bytes = (txna ApplicationArgs 4) let is_true%0#0: uint64 = (getbit tmp%11#0 0u) - let item0%0#0: any = (setbit 0x00 0u is_true%0#0) + let item0%0#0: bytes = (setbit 0x00 0u is_true%0#0) let item1%0#0: bytes = ((extract 1 8) tmp%11#0) let item_index%0#0: uint64 = (extract_uint16 tmp%11#0 9u) let item_length%0#0: uint64 = (extract_uint16 tmp%11#0 item_index%0#0) @@ -29,7 +29,7 @@ contract test_cases.avm_types_in_abi.contract.TestContract: let tmp%13#0: uint64 = (btoi item1%0#0) let tmp%14#0: bytes = ((extract 2 0) item2%0#0) let (awst_tmp%3#0: uint64, awst_tmp%4#0: uint64, awst_tmp%5#0: bytes) = test_cases.avm_types_in_abi.contract.TestContract.create(tmp%6#0, tmp%8#0, tmp%10#0, tmp%12#0, tmp%13#0, tmp%14#0) - let tmp%15#0: any = (setbit 0x00 0u awst_tmp%3#0) + let tmp%15#0: bytes = (setbit 0x00 0u awst_tmp%3#0) let val_as_bytes%0#0: bytes = (itob awst_tmp%4#0) let tmp%16#0: uint64 = (len awst_tmp%5#0) let tmp%17#0: bytes = (itob tmp%16#0) diff --git a/test_cases/avm_types_in_abi/out/TestContract.ssa.opt_pass_2.ir b/test_cases/avm_types_in_abi/out/TestContract.ssa.opt_pass_2.ir index bb024e79e3..caaec2be1a 100644 --- a/test_cases/avm_types_in_abi/out/TestContract.ssa.opt_pass_2.ir +++ b/test_cases/avm_types_in_abi/out/TestContract.ssa.opt_pass_2.ir @@ -19,7 +19,7 @@ contract test_cases.avm_types_in_abi.contract.TestContract: let tmp%10#0: bytes = ((extract 2 0) tmp%9#0) let tmp%11#0: bytes = (txna ApplicationArgs 4) let is_true%0#0: uint64 = (getbit tmp%11#0 0u) - let item0%0#0: any = (setbit 0x00 0u is_true%0#0) + let item0%0#0: bytes = (setbit 0x00 0u is_true%0#0) let item1%0#0: bytes = ((extract 1 8) tmp%11#0) let item_index%0#0: uint64 = (extract_uint16 tmp%11#0 9u) let item_length%0#0: uint64 = (extract_uint16 tmp%11#0 item_index%0#0) @@ -29,7 +29,7 @@ contract test_cases.avm_types_in_abi.contract.TestContract: let tmp%13#0: uint64 = (btoi item1%0#0) let tmp%14#0: bytes = ((extract 2 0) item2%0#0) let (awst_tmp%3#0: uint64, awst_tmp%4#0: uint64, awst_tmp%5#0: bytes) = test_cases.avm_types_in_abi.contract.TestContract.create(tmp%6#0, tmp%8#0, tmp%10#0, tmp%12#0, tmp%13#0, tmp%14#0) - let tmp%15#0: any = (setbit 0x00 0u awst_tmp%3#0) + let tmp%15#0: bytes = (setbit 0x00 0u awst_tmp%3#0) let val_as_bytes%0#0: bytes = (itob awst_tmp%4#0) let tmp%16#0: uint64 = (len awst_tmp%5#0) let tmp%17#0: bytes = (itob tmp%16#0) diff --git a/test_cases/avm_types_in_abi/out_O2/TestContract.destructured.ir b/test_cases/avm_types_in_abi/out_O2/TestContract.destructured.ir index a1a396be00..d96c620930 100644 --- a/test_cases/avm_types_in_abi/out_O2/TestContract.destructured.ir +++ b/test_cases/avm_types_in_abi/out_O2/TestContract.destructured.ir @@ -19,7 +19,7 @@ contract test_cases.avm_types_in_abi.contract.TestContract: let tmp%10#0: bytes = ((extract 2 0) tmp%9#0) let tmp%11#0: bytes = (txna ApplicationArgs 4) let is_true%0#0: uint64 = (getbit tmp%11#0 0u) - let item0%0#0: any = (setbit 0x00 0u is_true%0#0) + let item0%0#0: bytes = (setbit 0x00 0u is_true%0#0) let item1%0#0: bytes = ((extract 1 8) tmp%11#0) let item_index%0#0: uint64 = (extract_uint16 tmp%11#0 9u) let item_length%0#0: uint64 = (extract_uint16 tmp%11#0 item_index%0#0) @@ -29,7 +29,7 @@ contract test_cases.avm_types_in_abi.contract.TestContract: let tmp%13#0: uint64 = (btoi item1%0#0) let tmp%14#0: bytes = ((extract 2 0) item2%0#0) let (awst_tmp%3#0: uint64, awst_tmp%4#0: uint64, awst_tmp%5#0: bytes) = test_cases.avm_types_in_abi.contract.TestContract.create(tmp%6#0, tmp%8#0, tmp%10#0, tmp%12#0, tmp%13#0, tmp%14#0) - let tmp%15#0: any = (setbit 0x00 0u awst_tmp%3#0) + let tmp%15#0: bytes = (setbit 0x00 0u awst_tmp%3#0) let val_as_bytes%0#0: bytes = (itob awst_tmp%4#0) let tmp%16#0: uint64 = (len awst_tmp%5#0) let tmp%17#0: bytes = (itob tmp%16#0) diff --git a/test_cases/avm_types_in_abi/out_unoptimized/TestContract.destructured.ir b/test_cases/avm_types_in_abi/out_unoptimized/TestContract.destructured.ir index f59f89ab0c..3ef3b03320 100644 --- a/test_cases/avm_types_in_abi/out_unoptimized/TestContract.destructured.ir +++ b/test_cases/avm_types_in_abi/out_unoptimized/TestContract.destructured.ir @@ -19,20 +19,20 @@ contract test_cases.avm_types_in_abi.contract.TestContract: let tmp%10#0: bytes = ((extract 2 0) tmp%9#0) let tmp%11#0: bytes = (txna ApplicationArgs 4) let is_true%0#0: uint64 = (getbit tmp%11#0 0u) - let item0%0#0: any = (setbit 0x00 0u is_true%0#0) + let item0%0#0: bytes = (setbit 0x00 0u is_true%0#0) let item1%0#0: bytes = (extract3 tmp%11#0 1u 8u) let item_index%0#0: uint64 = (extract_uint16 tmp%11#0 9u) let item_length%0#0: uint64 = (extract_uint16 tmp%11#0 item_index%0#0) let item_length_plus_2%0#0: uint64 = (+ item_length%0#0 2u) let item2%0#0: bytes = (extract3 tmp%11#0 item_index%0#0 item_length_plus_2%0#0) - let awst_tmp%0#0: any = item0%0#0 + let awst_tmp%0#0: bytes = item0%0#0 let awst_tmp%1#0: bytes = item1%0#0 let awst_tmp%2#0: bytes = item2%0#0 let tmp%12#0: uint64 = (getbit awst_tmp%0#0 0u) let tmp%13#0: uint64 = (btoi awst_tmp%1#0) let tmp%14#0: bytes = ((extract 2 0) awst_tmp%2#0) let (awst_tmp%3#0: uint64, awst_tmp%4#0: uint64, awst_tmp%5#0: bytes) = test_cases.avm_types_in_abi.contract.TestContract.create(tmp%6#0, tmp%8#0, tmp%10#0, tmp%12#0, tmp%13#0, tmp%14#0) - let tmp%15#0: any = (setbit 0x00 0u awst_tmp%3#0) + let tmp%15#0: bytes = (setbit 0x00 0u awst_tmp%3#0) let val_as_bytes%0#0: bytes = (itob awst_tmp%4#0) let awst_tmp%6#0: bytes = awst_tmp%5#0 let tmp%16#0: uint64 = (len awst_tmp%6#0) diff --git a/test_cases/everything/out/MyContract.destructured.ir b/test_cases/everything/out/MyContract.destructured.ir index 251b8c97ec..f49a51dd99 100644 --- a/test_cases/everything/out/MyContract.destructured.ir +++ b/test_cases/everything/out/MyContract.destructured.ir @@ -86,7 +86,7 @@ contract test_cases.everything.contract.Everything: let tmp%1#0: uint64 = (== tmp%0#0 OptIn) goto tmp%1#0 ? block@1 : block@4 block@1: // if_body_L50 - let (sender_name#0: any, sender_name_existed#0: uint64) = (app_local_get_ex 0u 0u "name") + let (sender_name#0: bytes, sender_name_existed#0: uint64) = (app_local_get_ex 0u 0u "name") goto sender_name_existed#0 ? block@4 : block@2 block@2: // if_body_L52 let (counter_value%0#0: uint64, counter_exists%0#0: uint64) = (app_global_get_ex 0u "counter") @@ -106,7 +106,7 @@ contract test_cases.everything.contract.Everything: subroutine test_cases.everything.contract.Everything.say_hello() -> bytes: block@0: // L56 test_cases.everything.contract.Everything._check_ban_list() - let (name#0: any, exists#0: uint64) = (app_local_get_ex 0u 0u "name") + let (name#0: bytes, exists#0: uint64) = (app_local_get_ex 0u 0u "name") goto exists#0 ? block@2 : block@1 block@1: // if_body_L60 return "\x00\x0fHowdy stranger!" diff --git a/test_cases/everything/out/MyContract.ssa.ir b/test_cases/everything/out/MyContract.ssa.ir index 13f07e9020..92f76a3825 100644 --- a/test_cases/everything/out/MyContract.ssa.ir +++ b/test_cases/everything/out/MyContract.ssa.ir @@ -91,8 +91,8 @@ contract test_cases.everything.contract.Everything: let tmp%1#0: uint64 = (== tmp%0#0 OptIn) goto tmp%1#0 ? block@1 : block@4 block@1: // if_body_L50 - let (tuple_assignment%0#0: any, tuple_assignment%1#0: uint64) = (app_local_get_ex 0u 0u "name") - let sender_name#0: any = tuple_assignment%0#0 + let (tuple_assignment%0#0: bytes, tuple_assignment%1#0: uint64) = (app_local_get_ex 0u 0u "name") + let sender_name#0: bytes = tuple_assignment%0#0 let sender_name_existed#0: uint64 = tuple_assignment%1#0 goto sender_name_existed#0 ? block@3 : block@2 block@2: // if_body_L52 @@ -115,8 +115,8 @@ contract test_cases.everything.contract.Everything: subroutine test_cases.everything.contract.Everything.say_hello() -> bytes: block@0: // L56 test_cases.everything.contract.Everything._check_ban_list() - let (tuple_assignment%0#0: any, tuple_assignment%1#0: uint64) = (app_local_get_ex 0u 0u "name") - let name#0: any = tuple_assignment%0#0 + let (tuple_assignment%0#0: bytes, tuple_assignment%1#0: uint64) = (app_local_get_ex 0u 0u "name") + let name#0: bytes = tuple_assignment%0#0 let exists#0: uint64 = tuple_assignment%1#0 goto exists#0 ? block@2 : block@1 block@1: // if_body_L60 diff --git a/test_cases/everything/out/MyContract.ssa.opt_pass_1.ir b/test_cases/everything/out/MyContract.ssa.opt_pass_1.ir index 6fdec3d002..a4d9ce0d66 100644 --- a/test_cases/everything/out/MyContract.ssa.opt_pass_1.ir +++ b/test_cases/everything/out/MyContract.ssa.opt_pass_1.ir @@ -86,7 +86,7 @@ contract test_cases.everything.contract.Everything: let tmp%1#0: uint64 = (== tmp%0#0 OptIn) goto tmp%1#0 ? block@1 : block@4 block@1: // if_body_L50 - let (sender_name#0: any, sender_name_existed#0: uint64) = (app_local_get_ex 0u 0u "name") + let (sender_name#0: bytes, sender_name_existed#0: uint64) = (app_local_get_ex 0u 0u "name") goto sender_name_existed#0 ? block@4 : block@2 block@2: // if_body_L52 let (counter_value%0#0: uint64, counter_exists%0#0: uint64) = (app_global_get_ex 0u "counter") @@ -106,7 +106,7 @@ contract test_cases.everything.contract.Everything: subroutine test_cases.everything.contract.Everything.say_hello() -> bytes: block@0: // L56 test_cases.everything.contract.Everything._check_ban_list() - let (name#0: any, exists#0: uint64) = (app_local_get_ex 0u 0u "name") + let (name#0: bytes, exists#0: uint64) = (app_local_get_ex 0u 0u "name") goto exists#0 ? block@2 : block@1 block@1: // if_body_L60 return "\x00\x0fHowdy stranger!" diff --git a/test_cases/everything/out/MyContract.ssa.opt_pass_2.ir b/test_cases/everything/out/MyContract.ssa.opt_pass_2.ir index 251b8c97ec..f49a51dd99 100644 --- a/test_cases/everything/out/MyContract.ssa.opt_pass_2.ir +++ b/test_cases/everything/out/MyContract.ssa.opt_pass_2.ir @@ -86,7 +86,7 @@ contract test_cases.everything.contract.Everything: let tmp%1#0: uint64 = (== tmp%0#0 OptIn) goto tmp%1#0 ? block@1 : block@4 block@1: // if_body_L50 - let (sender_name#0: any, sender_name_existed#0: uint64) = (app_local_get_ex 0u 0u "name") + let (sender_name#0: bytes, sender_name_existed#0: uint64) = (app_local_get_ex 0u 0u "name") goto sender_name_existed#0 ? block@4 : block@2 block@2: // if_body_L52 let (counter_value%0#0: uint64, counter_exists%0#0: uint64) = (app_global_get_ex 0u "counter") @@ -106,7 +106,7 @@ contract test_cases.everything.contract.Everything: subroutine test_cases.everything.contract.Everything.say_hello() -> bytes: block@0: // L56 test_cases.everything.contract.Everything._check_ban_list() - let (name#0: any, exists#0: uint64) = (app_local_get_ex 0u 0u "name") + let (name#0: bytes, exists#0: uint64) = (app_local_get_ex 0u 0u "name") goto exists#0 ? block@2 : block@1 block@1: // if_body_L60 return "\x00\x0fHowdy stranger!" diff --git a/test_cases/everything/out_O2/MyContract.destructured.ir b/test_cases/everything/out_O2/MyContract.destructured.ir index 251b8c97ec..f49a51dd99 100644 --- a/test_cases/everything/out_O2/MyContract.destructured.ir +++ b/test_cases/everything/out_O2/MyContract.destructured.ir @@ -86,7 +86,7 @@ contract test_cases.everything.contract.Everything: let tmp%1#0: uint64 = (== tmp%0#0 OptIn) goto tmp%1#0 ? block@1 : block@4 block@1: // if_body_L50 - let (sender_name#0: any, sender_name_existed#0: uint64) = (app_local_get_ex 0u 0u "name") + let (sender_name#0: bytes, sender_name_existed#0: uint64) = (app_local_get_ex 0u 0u "name") goto sender_name_existed#0 ? block@4 : block@2 block@2: // if_body_L52 let (counter_value%0#0: uint64, counter_exists%0#0: uint64) = (app_global_get_ex 0u "counter") @@ -106,7 +106,7 @@ contract test_cases.everything.contract.Everything: subroutine test_cases.everything.contract.Everything.say_hello() -> bytes: block@0: // L56 test_cases.everything.contract.Everything._check_ban_list() - let (name#0: any, exists#0: uint64) = (app_local_get_ex 0u 0u "name") + let (name#0: bytes, exists#0: uint64) = (app_local_get_ex 0u 0u "name") goto exists#0 ? block@2 : block@1 block@1: // if_body_L60 return "\x00\x0fHowdy stranger!" diff --git a/test_cases/everything/out_unoptimized/MyContract.destructured.ir b/test_cases/everything/out_unoptimized/MyContract.destructured.ir index 5239b1d40d..dcb30fbc71 100644 --- a/test_cases/everything/out_unoptimized/MyContract.destructured.ir +++ b/test_cases/everything/out_unoptimized/MyContract.destructured.ir @@ -91,7 +91,7 @@ contract test_cases.everything.contract.Everything: let tmp%1#0: uint64 = (== tmp%0#0 OptIn) goto tmp%1#0 ? block@1 : block@4 block@1: // if_body_L50 - let (tuple_assignment%0#0: any, tuple_assignment%1#0: uint64) = (app_local_get_ex 0u 0u "name") + let (tuple_assignment%0#0: bytes, tuple_assignment%1#0: uint64) = (app_local_get_ex 0u 0u "name") let sender_name_existed#0: uint64 = tuple_assignment%1#0 goto sender_name_existed#0 ? block@3 : block@2 block@2: // if_body_L52 @@ -114,8 +114,8 @@ contract test_cases.everything.contract.Everything: subroutine test_cases.everything.contract.Everything.say_hello() -> bytes: block@0: // L56 test_cases.everything.contract.Everything._check_ban_list() - let (tuple_assignment%0#0: any, tuple_assignment%1#0: uint64) = (app_local_get_ex 0u 0u "name") - let name#0: any = tuple_assignment%0#0 + let (tuple_assignment%0#0: bytes, tuple_assignment%1#0: uint64) = (app_local_get_ex 0u 0u "name") + let name#0: bytes = tuple_assignment%0#0 let exists#0: uint64 = tuple_assignment%1#0 goto exists#0 ? block@2 : block@1 block@1: // if_body_L60 diff --git a/test_cases/regression_118/out/Contract.approval.mir b/test_cases/regression_118/out/Contract.approval.mir index 954c102905..db4d275d87 100644 --- a/test_cases/regression_118/out/Contract.approval.mir +++ b/test_cases/regression_118/out/Contract.approval.mir @@ -71,7 +71,7 @@ verify_block@0: txn NumAppArgs // (𝕡) values#0 | {txn} Txn.num_app_args regression_118/contract.py:9 // virtual: store tmp%0#0 to l-stack (no copy) (𝕡) values#0 | tmp%0#0 Txn.num_app_args regression_118/contract.py:9 byte 0x00 // (𝕡) values#0 | tmp%0#0,0x00 Bool(\nbool(Txn.num_app_args)\n) regression_118/contract.py:8-10 - int 0 // (𝕡) values#0 | tmp%0#0,0x00,0 + int 0 // (𝕡) values#0 | tmp%0#0,0x00,0 Bool(\nbool(Txn.num_app_args)\n) regression_118/contract.py:8-10 uncover 2 // load tmp%0#0 from l-stack (no copy) (𝕡) values#0 | 0x00,0,tmp%0#0 val1 = Bool(\nbool(Txn.num_app_args)\n) regression_118/contract.py:8-10 setbit // (𝕡) values#0 | {setbit} Bool(\nbool(Txn.num_app_args)\n) regression_118/contract.py:8-10 // virtual: store val1#0 to x-stack (no copy) (𝕡) values#0 | (𝕏) val1#0 | val1 = Bool(\nbool(Txn.num_app_args)\n) regression_118/contract.py:8-10 diff --git a/test_cases/regression_118/out/Contract.destructured.ir b/test_cases/regression_118/out/Contract.destructured.ir index bc574eeea9..3ef7b7fd61 100644 --- a/test_cases/regression_118/out/Contract.destructured.ir +++ b/test_cases/regression_118/out/Contract.destructured.ir @@ -30,7 +30,7 @@ contract test_cases.regression_118.contract.Contract: subroutine test_cases.regression_118.contract.Contract.verify(values: bytes) -> bytes: block@0: // L6 let tmp%0#0: uint64 = (txn NumAppArgs) - let val1#0: any = (setbit 0x00 0u tmp%0#0) + let val1#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%1#0: uint64 = (extract_uint16 values#0 0u) let tmp%2#0: uint64 = (!= tmp%1#0 2u) goto tmp%2#0 ? block@1 : block@2 diff --git a/test_cases/regression_118/out/Contract.ssa.ir b/test_cases/regression_118/out/Contract.ssa.ir index 7b5e6bc4af..1cab6f1f38 100644 --- a/test_cases/regression_118/out/Contract.ssa.ir +++ b/test_cases/regression_118/out/Contract.ssa.ir @@ -36,7 +36,7 @@ contract test_cases.regression_118.contract.Contract: subroutine test_cases.regression_118.contract.Contract.verify(values: bytes) -> bytes: block@0: // L6 let tmp%0#0: uint64 = (txn NumAppArgs) - let val1#0: any = (setbit 0x00 0u tmp%0#0) + let val1#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%1#0: uint64 = (extract_uint16 values#0 0u) let tmp%2#0: uint64 = (!= tmp%1#0 2u) goto tmp%2#0 ? block@1 : block@2 diff --git a/test_cases/regression_118/out/Contract.ssa.opt_pass_1.ir b/test_cases/regression_118/out/Contract.ssa.opt_pass_1.ir index a3f22c4e9c..333f5d6f34 100644 --- a/test_cases/regression_118/out/Contract.ssa.opt_pass_1.ir +++ b/test_cases/regression_118/out/Contract.ssa.opt_pass_1.ir @@ -30,7 +30,7 @@ contract test_cases.regression_118.contract.Contract: subroutine test_cases.regression_118.contract.Contract.verify(values: bytes) -> bytes: block@0: // L6 let tmp%0#0: uint64 = (txn NumAppArgs) - let val1#0: any = (setbit 0x00 0u tmp%0#0) + let val1#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%1#0: uint64 = (extract_uint16 values#0 0u) let tmp%2#0: uint64 = (!= tmp%1#0 2u) goto tmp%2#0 ? block@1 : block@2 diff --git a/test_cases/regression_118/out/Contract.ssa.opt_pass_2.ir b/test_cases/regression_118/out/Contract.ssa.opt_pass_2.ir index e56d279a61..5f37193e88 100644 --- a/test_cases/regression_118/out/Contract.ssa.opt_pass_2.ir +++ b/test_cases/regression_118/out/Contract.ssa.opt_pass_2.ir @@ -30,7 +30,7 @@ contract test_cases.regression_118.contract.Contract: subroutine test_cases.regression_118.contract.Contract.verify(values: bytes) -> bytes: block@0: // L6 let tmp%0#0: uint64 = (txn NumAppArgs) - let val1#0: any = (setbit 0x00 0u tmp%0#0) + let val1#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%1#0: uint64 = (extract_uint16 values#0 0u) let tmp%2#0: uint64 = (!= tmp%1#0 2u) goto tmp%2#0 ? block@1 : block@2 diff --git a/test_cases/regression_118/out_O2/Contract.destructured.ir b/test_cases/regression_118/out_O2/Contract.destructured.ir index bc574eeea9..3ef7b7fd61 100644 --- a/test_cases/regression_118/out_O2/Contract.destructured.ir +++ b/test_cases/regression_118/out_O2/Contract.destructured.ir @@ -30,7 +30,7 @@ contract test_cases.regression_118.contract.Contract: subroutine test_cases.regression_118.contract.Contract.verify(values: bytes) -> bytes: block@0: // L6 let tmp%0#0: uint64 = (txn NumAppArgs) - let val1#0: any = (setbit 0x00 0u tmp%0#0) + let val1#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%1#0: uint64 = (extract_uint16 values#0 0u) let tmp%2#0: uint64 = (!= tmp%1#0 2u) goto tmp%2#0 ? block@1 : block@2 diff --git a/test_cases/regression_118/out_unoptimized/Contract.destructured.ir b/test_cases/regression_118/out_unoptimized/Contract.destructured.ir index 0379a7fbd0..bf7dcfb00b 100644 --- a/test_cases/regression_118/out_unoptimized/Contract.destructured.ir +++ b/test_cases/regression_118/out_unoptimized/Contract.destructured.ir @@ -36,7 +36,7 @@ contract test_cases.regression_118.contract.Contract: subroutine test_cases.regression_118.contract.Contract.verify(values: bytes) -> bytes: block@0: // L6 let tmp%0#0: uint64 = (txn NumAppArgs) - let val1#0: any = (setbit 0x00 0u tmp%0#0) + let val1#0: bytes = (setbit 0x00 0u tmp%0#0) let tmp%1#0: uint64 = (extract_uint16 values#0 0u) let tmp%2#0: uint64 = (!= tmp%1#0 2u) goto tmp%2#0 ? block@1 : block@2 diff --git a/test_cases/typed_abi_call/out/Greeter.ssa.ir b/test_cases/typed_abi_call/out/Greeter.ssa.ir index c246f52c4a..9bc65e7f98 100644 --- a/test_cases/typed_abi_call/out/Greeter.ssa.ir +++ b/test_cases/typed_abi_call/out/Greeter.ssa.ir @@ -1289,9 +1289,9 @@ contract test_cases.typed_abi_call.typed_c2c.Greeter: itxn_begin let inner_txn_params%4%%param_TypeEnum_idx_0#0: uint64 = appl let inner_txn_params%4%%TypeEnum_length#0: uint64 = 1u - let tmp%8#0: any = (setbit 0x00 0u 1u) + let tmp%8#0: bytes = (setbit 0x00 0u 1u) let inner_txn_params%4%%param_ApplicationArgs_idx_0#0: bytes = method "log_bool(bool)void" - let inner_txn_params%4%%param_ApplicationArgs_idx_1#0: any = tmp%8#0 + let inner_txn_params%4%%param_ApplicationArgs_idx_1#0: bytes = tmp%8#0 let inner_txn_params%4%%ApplicationArgs_length#0: uint64 = 2u let inner_txn_params%4%%param_Fee_idx_0#0: uint64 = 0u let inner_txn_params%4%%Fee_length#0: uint64 = 1u diff --git a/test_cases/typed_abi_call/out/Greeter.ssa.opt_pass_1.ir b/test_cases/typed_abi_call/out/Greeter.ssa.opt_pass_1.ir index 5fc0429a60..0f39e14b8e 100644 --- a/test_cases/typed_abi_call/out/Greeter.ssa.opt_pass_1.ir +++ b/test_cases/typed_abi_call/out/Greeter.ssa.opt_pass_1.ir @@ -193,7 +193,7 @@ contract test_cases.typed_abi_call.typed_c2c.Greeter: let tmp%7#0: uint64 = (== txn%%LastLog#3 "4") (assert tmp%7#0) itxn_begin - let tmp%8#0: any = 0x80 + let tmp%8#0: bytes = 0x80 ((itxn_field ApplicationID) app#0) ((itxn_field Fee) 0u) ((itxn_field ApplicationArgs) method "log_bool(bool)void") diff --git a/test_cases/typed_abi_call/out_unoptimized/Greeter.destructured.ir b/test_cases/typed_abi_call/out_unoptimized/Greeter.destructured.ir index e19b25d703..98b8edf45a 100644 --- a/test_cases/typed_abi_call/out_unoptimized/Greeter.destructured.ir +++ b/test_cases/typed_abi_call/out_unoptimized/Greeter.destructured.ir @@ -285,9 +285,9 @@ contract test_cases.typed_abi_call.typed_c2c.Greeter: (assert tmp%7#0) itxn_begin let inner_txn_params%4%%param_TypeEnum_idx_0#0: uint64 = appl - let tmp%8#0: any = (setbit 0x00 0u 1u) + let tmp%8#0: bytes = (setbit 0x00 0u 1u) let inner_txn_params%4%%param_ApplicationArgs_idx_0#0: bytes = method "log_bool(bool)void" - let inner_txn_params%4%%param_ApplicationArgs_idx_1#0: any = tmp%8#0 + let inner_txn_params%4%%param_ApplicationArgs_idx_1#0: bytes = tmp%8#0 let inner_txn_params%4%%param_Fee_idx_0#0: uint64 = 0u let inner_txn_params%4%%param_ApplicationID_idx_0#0: uint64 = app#0 ((itxn_field ApplicationID) inner_txn_params%4%%param_ApplicationID_idx_0#0)