From 3086efa403239757befa3f05734c8039b263df0d Mon Sep 17 00:00:00 2001 From: Michael Benfield Date: Mon, 21 Oct 2024 13:42:01 -0700 Subject: [PATCH] Don't hash bytecode output for tests. --- compiler/compiler/tests/compile.rs | 3 +- compiler/compiler/tests/execute.rs | 3 +- .../expectations/compiler/address/binary.out | 11 +- .../expectations/compiler/address/branch.out | 13 +- tests/expectations/compiler/address/equal.out | 11 +- .../compiler/address/special_address.out | 17 +- .../expectations/compiler/address/ternary.out | 14 +- .../array/access_array_with_loop_counter.out | 13 +- .../compiler/array/array_access.out | 10 +- .../array/array_in_composite_data_types.out | 22 +- .../compiler/array/array_in_finalize.out | 17 +- .../array/array_in_function_signature.out | 27 +- .../compiler/array/array_in_mapping.out | 22 +- .../compiler/array/array_initialization.out | 11 +- .../compiler/array/array_of_structs.out | 12 +- .../compiler/array/array_size_limits.out | 15 +- .../compiler/assert/early_return.out | 13 +- tests/expectations/compiler/boolean/and.out | 12 +- .../compiler/boolean/conditional.out | 12 +- tests/expectations/compiler/boolean/equal.out | 12 +- .../compiler/boolean/not_equal.out | 12 +- .../compiler/boolean/operator_methods.out | 12 +- tests/expectations/compiler/boolean/or.out | 12 +- .../expectations/compiler/console/assert.out | 26 +- .../compiler/console/conditional_assert.out | 19 +- .../constants/const_tuple_declaration.out | 9 +- .../compiler/constants/constant_finalize.out | 32 +- .../constants/constant_loop_bound.out | 61 +- .../compiler/constants/loop_unrolling.out | 2912 ++++++++++++++++- .../unroll_loop_with_tuple_definition.out | 12 +- .../algorithms/bhp1024_commit_to_address.out | 20 +- .../algorithms/bhp1024_commit_to_field.out | 23 +- .../algorithms/bhp1024_commit_to_group.out | 23 +- .../algorithms/bhp1024_hash_to_address.out | 20 +- .../core/algorithms/bhp1024_hash_to_field.out | 23 +- .../core/algorithms/bhp1024_hash_to_group.out | 23 +- .../algorithms/bhp1024_hash_to_scalar.out | 23 +- .../algorithms/bhp256_commit_to_address.out | 20 +- .../algorithms/bhp256_commit_to_field.out | 23 +- .../algorithms/bhp256_commit_to_group.out | 23 +- .../algorithms/bhp256_hash_to_address.out | 20 +- .../core/algorithms/bhp256_hash_to_field.out | 23 +- .../core/algorithms/bhp256_hash_to_group.out | 23 +- .../core/algorithms/bhp256_hash_to_scalar.out | 23 +- .../algorithms/bhp512_commit_to_address.out | 20 +- .../algorithms/bhp512_commit_to_field.out | 23 +- .../algorithms/bhp512_commit_to_group.out | 23 +- .../algorithms/bhp512_hash_to_address.out | 20 +- .../core/algorithms/bhp512_hash_to_field.out | 23 +- .../core/algorithms/bhp512_hash_to_group.out | 23 +- .../core/algorithms/bhp512_hash_to_scalar.out | 23 +- .../algorithms/bhp768_commit_to_address.out | 20 +- .../algorithms/bhp768_commit_to_field.out | 23 +- .../algorithms/bhp768_commit_to_group.out | 23 +- .../algorithms/bhp768_hash_to_address.out | 20 +- .../core/algorithms/bhp768_hash_to_field.out | 23 +- .../core/algorithms/bhp768_hash_to_group.out | 23 +- .../core/algorithms/bhp768_hash_to_scalar.out | 23 +- .../integers/bhp1024/bhp1024_hash_to_i128.out | 21 +- .../integers/bhp1024/bhp1024_hash_to_i16.out | 21 +- .../integers/bhp1024/bhp1024_hash_to_i32.out | 21 +- .../integers/bhp1024/bhp1024_hash_to_i64.out | 21 +- .../integers/bhp1024/bhp1024_hash_to_i8.out | 21 +- .../integers/bhp1024/bhp1024_hash_to_u128.out | 21 +- .../integers/bhp1024/bhp1024_hash_to_u16.out | 21 +- .../integers/bhp1024/bhp1024_hash_to_u32.out | 21 +- .../integers/bhp1024/bhp1024_hash_to_u64.out | 21 +- .../integers/bhp1024/bhp1024_hash_to_u8.out | 21 +- .../integers/bhp256/bhp256_hash_to_i128.out | 21 +- .../integers/bhp256/bhp256_hash_to_i16.out | 21 +- .../integers/bhp256/bhp256_hash_to_i32.out | 21 +- .../integers/bhp256/bhp256_hash_to_i64.out | 21 +- .../integers/bhp256/bhp256_hash_to_i8.out | 21 +- .../integers/bhp256/bhp256_hash_to_u128.out | 21 +- .../integers/bhp256/bhp256_hash_to_u16.out | 21 +- .../integers/bhp256/bhp256_hash_to_u32.out | 21 +- .../integers/bhp256/bhp256_hash_to_u64.out | 21 +- .../integers/bhp256/bhp256_hash_to_u8.out | 21 +- .../integers/bhp512/bhp512_hash_to_i128.out | 21 +- .../integers/bhp512/bhp512_hash_to_i16.out | 21 +- .../integers/bhp512/bhp512_hash_to_i32.out | 21 +- .../integers/bhp512/bhp512_hash_to_i64.out | 21 +- .../integers/bhp512/bhp512_hash_to_i8.out | 21 +- .../integers/bhp512/bhp512_hash_to_u128.out | 21 +- .../integers/bhp512/bhp512_hash_to_u16.out | 21 +- .../integers/bhp512/bhp512_hash_to_u32.out | 21 +- .../integers/bhp512/bhp512_hash_to_u64.out | 21 +- .../integers/bhp512/bhp512_hash_to_u8.out | 21 +- .../integers/bhp768/bhp768_hash_to_i128.out | 21 +- .../integers/bhp768/bhp768_hash_to_i16.out | 21 +- .../integers/bhp768/bhp768_hash_to_i32.out | 21 +- .../integers/bhp768/bhp768_hash_to_i64.out | 21 +- .../integers/bhp768/bhp768_hash_to_i8.out | 21 +- .../integers/bhp768/bhp768_hash_to_u128.out | 21 +- .../integers/bhp768/bhp768_hash_to_u16.out | 21 +- .../integers/bhp768/bhp768_hash_to_u32.out | 21 +- .../integers/bhp768/bhp768_hash_to_u64.out | 21 +- .../integers/bhp768/bhp768_hash_to_u8.out | 21 +- .../keccak256/keccak256_hash_to_i128.out | 21 +- .../keccak256/keccak256_hash_to_i16.out | 21 +- .../keccak256/keccak256_hash_to_i32.out | 21 +- .../keccak256/keccak256_hash_to_i64.out | 21 +- .../keccak256/keccak256_hash_to_i8.out | 21 +- .../keccak256/keccak256_hash_to_u128.out | 21 +- .../keccak256/keccak256_hash_to_u16.out | 21 +- .../keccak256/keccak256_hash_to_u32.out | 21 +- .../keccak256/keccak256_hash_to_u64.out | 21 +- .../keccak256/keccak256_hash_to_u8.out | 21 +- .../keccak384/keccak384_hash_to_i128.out | 21 +- .../keccak384/keccak384_hash_to_i16.out | 21 +- .../keccak384/keccak384_hash_to_i32.out | 21 +- .../keccak384/keccak384_hash_to_i64.out | 21 +- .../keccak384/keccak384_hash_to_i8.out | 21 +- .../keccak384/keccak384_hash_to_u128.out | 21 +- .../keccak384/keccak384_hash_to_u16.out | 21 +- .../keccak384/keccak384_hash_to_u32.out | 21 +- .../keccak384/keccak384_hash_to_u64.out | 21 +- .../keccak384/keccak384_hash_to_u8.out | 21 +- .../keccak512/keccak512_hash_to_i128.out | 21 +- .../keccak512/keccak512_hash_to_i16.out | 21 +- .../keccak512/keccak512_hash_to_i32.out | 21 +- .../keccak512/keccak512_hash_to_i64.out | 21 +- .../keccak512/keccak512_hash_to_i8.out | 21 +- .../keccak512/keccak512_hash_to_u128.out | 21 +- .../keccak512/keccak512_hash_to_u16.out | 21 +- .../keccak512/keccak512_hash_to_u32.out | 21 +- .../keccak512/keccak512_hash_to_u64.out | 21 +- .../keccak512/keccak512_hash_to_u8.out | 21 +- .../pedersen128/pedersen128_hash_to_i128.out | 21 +- .../pedersen128/pedersen128_hash_to_i16.out | 21 +- .../pedersen128/pedersen128_hash_to_i32.out | 21 +- .../pedersen128/pedersen128_hash_to_i64.out | 21 +- .../pedersen128/pedersen128_hash_to_i8.out | 21 +- .../pedersen128/pedersen128_hash_to_u128.out | 21 +- .../pedersen128/pedersen128_hash_to_u16.out | 21 +- .../pedersen128/pedersen128_hash_to_u32.out | 21 +- .../pedersen128/pedersen128_hash_to_u64.out | 21 +- .../pedersen128/pedersen128_hash_to_u8.out | 21 +- .../pedersen64/pedersen64_hash_to_i128.out | 21 +- .../pedersen64/pedersen64_hash_to_i16.out | 21 +- .../pedersen64/pedersen64_hash_to_i32.out | 21 +- .../pedersen64/pedersen64_hash_to_i64.out | 21 +- .../pedersen64/pedersen64_hash_to_i8.out | 21 +- .../pedersen64/pedersen64_hash_to_u128.out | 21 +- .../pedersen64/pedersen64_hash_to_u16.out | 21 +- .../pedersen64/pedersen64_hash_to_u32.out | 21 +- .../pedersen64/pedersen64_hash_to_u64.out | 21 +- .../pedersen64/pedersen64_hash_to_u8.out | 21 +- .../poseidon2/poseidon2_hash_to_i128.out | 21 +- .../poseidon2/poseidon2_hash_to_i16.out | 21 +- .../poseidon2/poseidon2_hash_to_i32.out | 21 +- .../poseidon2/poseidon2_hash_to_i64.out | 21 +- .../poseidon2/poseidon2_hash_to_i8.out | 21 +- .../poseidon2/poseidon2_hash_to_u128.out | 21 +- .../poseidon2/poseidon2_hash_to_u16.out | 21 +- .../poseidon2/poseidon2_hash_to_u32.out | 21 +- .../poseidon2/poseidon2_hash_to_u64.out | 21 +- .../poseidon2/poseidon2_hash_to_u8.out | 21 +- .../poseidon4/poseidon4_hash_to_i128.out | 21 +- .../poseidon4/poseidon4_hash_to_i16.out | 21 +- .../poseidon4/poseidon4_hash_to_i32.out | 21 +- .../poseidon4/poseidon4_hash_to_i64.out | 21 +- .../poseidon4/poseidon4_hash_to_i8.out | 21 +- .../poseidon4/poseidon4_hash_to_u128.out | 21 +- .../poseidon4/poseidon4_hash_to_u16.out | 21 +- .../poseidon4/poseidon4_hash_to_u32.out | 21 +- .../poseidon4/poseidon4_hash_to_u64.out | 21 +- .../poseidon4/poseidon4_hash_to_u8.out | 21 +- .../poseidon8/poseidon8_hash_to_i128.out | 21 +- .../poseidon8/poseidon8_hash_to_i16.out | 21 +- .../poseidon8/poseidon8_hash_to_i32.out | 21 +- .../poseidon8/poseidon8_hash_to_i64.out | 21 +- .../poseidon8/poseidon8_hash_to_i8.out | 21 +- .../poseidon8/poseidon8_hash_to_u128.out | 21 +- .../poseidon8/poseidon8_hash_to_u16.out | 21 +- .../poseidon8/poseidon8_hash_to_u32.out | 21 +- .../poseidon8/poseidon8_hash_to_u64.out | 21 +- .../poseidon8/poseidon8_hash_to_u8.out | 21 +- .../sha3_256/sha3_256_hash_to_i128.out | 21 +- .../sha3_256/sha3_256_hash_to_i16.out | 21 +- .../sha3_256/sha3_256_hash_to_i32.out | 21 +- .../sha3_256/sha3_256_hash_to_i64.out | 21 +- .../integers/sha3_256/sha3_256_hash_to_i8.out | 21 +- .../sha3_256/sha3_256_hash_to_u128.out | 21 +- .../sha3_256/sha3_256_hash_to_u16.out | 21 +- .../sha3_256/sha3_256_hash_to_u32.out | 21 +- .../sha3_256/sha3_256_hash_to_u64.out | 21 +- .../integers/sha3_256/sha3_256_hash_to_u8.out | 21 +- .../sha3_384/sha3_384_hash_to_i128.out | 21 +- .../sha3_384/sha3_384_hash_to_i16.out | 21 +- .../sha3_384/sha3_384_hash_to_i32.out | 21 +- .../sha3_384/sha3_384_hash_to_i64.out | 21 +- .../integers/sha3_384/sha3_384_hash_to_i8.out | 21 +- .../sha3_384/sha3_384_hash_to_u128.out | 21 +- .../sha3_384/sha3_384_hash_to_u16.out | 21 +- .../sha3_384/sha3_384_hash_to_u32.out | 21 +- .../sha3_384/sha3_384_hash_to_u64.out | 21 +- .../integers/sha3_384/sha3_384_hash_to_u8.out | 21 +- .../sha3_512/sha3_512_hash_to_i128.out | 21 +- .../sha3_512/sha3_512_hash_to_i16.out | 21 +- .../sha3_512/sha3_512_hash_to_i32.out | 21 +- .../sha3_512/sha3_512_hash_to_i64.out | 21 +- .../integers/sha3_512/sha3_512_hash_to_i8.out | 21 +- .../sha3_512/sha3_512_hash_to_u128.out | 21 +- .../sha3_512/sha3_512_hash_to_u16.out | 21 +- .../sha3_512/sha3_512_hash_to_u32.out | 21 +- .../sha3_512/sha3_512_hash_to_u64.out | 21 +- .../integers/sha3_512/sha3_512_hash_to_u8.out | 21 +- .../algorithms/keccak256_hash_to_address.out | 20 +- .../algorithms/keccak256_hash_to_field.out | 23 +- .../algorithms/keccak256_hash_to_group.out | 23 +- .../algorithms/keccak256_hash_to_scalar.out | 23 +- .../algorithms/keccak384_hash_to_address.out | 20 +- .../algorithms/keccak384_hash_to_field.out | 23 +- .../algorithms/keccak384_hash_to_group.out | 23 +- .../algorithms/keccak384_hash_to_scalar.out | 23 +- .../algorithms/keccak512_hash_to_address.out | 20 +- .../algorithms/keccak512_hash_to_field.out | 23 +- .../algorithms/keccak512_hash_to_group.out | 23 +- .../algorithms/keccak512_hash_to_scalar.out | 23 +- .../pedersen128_commit_to_address.out | 23 +- .../pedersen128_commit_to_field.out | 23 +- .../pedersen128_commit_to_group.out | 23 +- .../pedersen128_hash_to_address.out | 21 +- .../algorithms/pedersen128_hash_to_field.out | 21 +- .../algorithms/pedersen128_hash_to_group.out | 21 +- .../pedersen64_commit_to_address.out | 23 +- .../algorithms/pedersen64_commit_to_field.out | 23 +- .../algorithms/pedersen64_commit_to_group.out | 23 +- .../algorithms/pedersen64_hash_to_address.out | 21 +- .../algorithms/pedersen64_hash_to_field.out | 21 +- .../algorithms/pedersen64_hash_to_group.out | 21 +- .../algorithms/pedersen64_hash_to_scalar.out | 21 +- .../algorithms/poseidon2_hash_to_address.out | 20 +- .../algorithms/poseidon2_hash_to_field.out | 23 +- .../algorithms/poseidon2_hash_to_group.out | 23 +- .../algorithms/poseidon2_hash_to_scalar.out | 23 +- .../algorithms/poseidon4_hash_to_address.out | 20 +- .../algorithms/poseidon4_hash_to_field.out | 23 +- .../algorithms/poseidon4_hash_to_group.out | 23 +- .../algorithms/poseidon4_hash_to_scalar.out | 23 +- .../algorithms/poseidon8_hash_to_address.out | 20 +- .../algorithms/poseidon8_hash_to_field.out | 23 +- .../algorithms/poseidon8_hash_to_group.out | 23 +- .../algorithms/poseidon8_hash_to_scalar.out | 23 +- .../algorithms/sha3_256_hash_to_address.out | 20 +- .../algorithms/sha3_256_hash_to_field.out | 23 +- .../algorithms/sha3_256_hash_to_group.out | 23 +- .../algorithms/sha3_256_hash_to_scalar.out | 23 +- .../algorithms/sha3_384_hash_to_address.out | 20 +- .../algorithms/sha3_384_hash_to_field.out | 23 +- .../algorithms/sha3_384_hash_to_group.out | 23 +- .../algorithms/sha3_384_hash_to_scalar.out | 23 +- .../algorithms/sha3_512_hash_to_address.out | 20 +- .../algorithms/sha3_512_hash_to_field.out | 23 +- .../algorithms/sha3_512_hash_to_group.out | 23 +- .../algorithms/sha3_512_hash_to_scalar.out | 23 +- .../compiler/core/constants/group_gen.out | 11 +- .../compiler/definition/out_of_order.out | 11 +- .../compiler/examples/auction.out | 38 +- .../compiler/examples/basic_bank.out | 570 +++- .../expectations/compiler/examples/board.out | 49 +- .../compiler/examples/bubblesort.out | 108 +- tests/expectations/compiler/examples/core.out | 13 +- .../compiler/examples/fibonacci.out | 233 +- .../expectations/compiler/examples/groups.out | 15 +- .../compiler/examples/helloworld.out | 12 +- .../compiler/examples/interest.out | 400 ++- .../compiler/examples/lottery.out | 31 +- .../compiler/examples/message.out | 15 +- tests/expectations/compiler/examples/move.out | 27 +- .../compiler/examples/ntzdebruijn.out | 178 +- .../compiler/examples/ntzgaudet.out | 34 +- .../compiler/examples/ntzloops.out | 171 +- .../compiler/examples/ntzmasks.out | 40 +- .../compiler/examples/ntzreisers.out | 200 +- .../compiler/examples/ntzseals.out | 336 +- .../compiler/examples/ntzsearchtree.out | 212 +- .../compiler/examples/ntzsmallvals.out | 36 +- .../compiler/examples/simple_token.out | 26 +- .../compiler/examples/tictactoe.out | 195 +- .../expectations/compiler/examples/token.out | 104 +- .../compiler/examples/twoadicity.out | 1275 +++++++- .../expectations/compiler/examples/verify.out | 76 +- tests/expectations/compiler/examples/vote.out | 98 +- .../expectations/compiler/expression/cast.out | 25 +- .../compiler/expression/cast_coersion.out | 24 +- .../compiler/expression/network_id.out | 19 +- .../compiler/expression/ternary.out | 50 +- tests/expectations/compiler/field/add.out | 14 +- tests/expectations/compiler/field/div.out | 14 +- tests/expectations/compiler/field/eq.out | 12 +- tests/expectations/compiler/field/field.out | 12 +- tests/expectations/compiler/field/mul.out | 14 +- tests/expectations/compiler/field/negate.out | 14 +- .../compiler/field/operator_methods.out | 12 +- tests/expectations/compiler/field/pow.out | 12 +- tests/expectations/compiler/field/sub.out | 14 +- tests/expectations/compiler/field/ternary.out | 16 +- .../compiler/finalize/block_height.out | 17 +- .../compiler/finalize/contains.out | 22 +- .../finalize/decrement_via_get_set.out | 24 +- .../compiler/finalize/finalize.out | 46 +- .../finalize/finalize_with_method_calls.out | 49 +- .../finalize/increment_via_get_set.out | 24 +- .../compiler/finalize/inline_in_finalize.out | 23 +- .../compiler/finalize/mapping.out | 34 +- .../only_finalize_with_flattening.out | 49 +- tests/expectations/compiler/finalize/rand.out | 16 +- .../expectations/compiler/finalize/remove.out | 26 +- .../compiler/function/basic_async.out | 21 +- .../compiler/function/conditional_return.out | 12 +- .../function/dead_code_elimination.out | 24 +- .../compiler/function/flatten_arrays.out | 63 +- .../flatten_inlined_tuples_of_structs.out | 86 +- .../compiler/function/flatten_test.out | 288 +- .../compiler/function/flatten_test_2.out | 26 +- .../function/flatten_tuples_of_structs.out | 60 +- .../function/flatten_unit_expressions.out | 16 +- .../compiler/function/function_call.out | 29 +- .../function/function_call_inline.out | 23 +- .../function/function_call_out_of_order.out | 25 +- .../function_input_else_assignment.out | 9 +- .../helper_function_with_interface.out | 21 +- .../function/inline_expr_statement.out | 26 +- .../compiler/function/inline_twice.out | 19 +- .../function/private_input_output.out | 12 +- ...ction_any_number_of_inputs_and_outputs.out | 23 +- .../function/program_function_empty_body.out | 10 +- .../function/program_function_unit_type.out | 15 +- .../function/program_function_with_mode.out | 26 +- .../function/record_in_conditional_return.out | 36 +- tests/expectations/compiler/function/self.out | 11 +- .../compiler/futures/explicit_type_simple.out | 49 +- .../compiler/futures/future_in_tuple.out | 43 +- .../expectations/compiler/futures/nested.out | 124 +- .../futures/partial_type_specification.out | 137 +- .../expectations/compiler/futures/simple.out | 47 +- tests/expectations/compiler/group/add.out | 17 +- .../expectations/compiler/group/assert_eq.out | 14 +- tests/expectations/compiler/group/eq.out | 14 +- .../expectations/compiler/group/group_mul.out | 16 +- tests/expectations/compiler/group/input.out | 14 +- tests/expectations/compiler/group/mul.out | 12 +- .../compiler/group/mult_by_scalar.out | 11 +- tests/expectations/compiler/group/negate.out | 18 +- .../compiler/group/operator_methods.out | 12 +- .../compiler/group/point_input.out | 11 +- tests/expectations/compiler/group/sub.out | 17 +- tests/expectations/compiler/group/ternary.out | 16 +- .../compiler/group/to_x_coordinate.out | 11 +- .../compiler/group/to_y_coordinate.out | 11 +- tests/expectations/compiler/group/x_and_y.out | 11 +- .../compiler/group/x_sign_high.out | 11 +- .../compiler/group/x_sign_inferred.out | 11 +- .../compiler/group/x_sign_low.out | 11 +- tests/expectations/compiler/group/zero.out | 11 +- tests/expectations/compiler/input/main.out | 11 +- .../compiler/input/main_field.out | 15 +- .../compiler/integers/i128/add.out | 14 +- .../compiler/integers/i128/and.out | 14 +- .../compiler/integers/i128/console_assert.out | 13 +- .../compiler/integers/i128/div.out | 14 +- .../compiler/integers/i128/eq.out | 14 +- .../compiler/integers/i128/ge.out | 14 +- .../compiler/integers/i128/gt.out | 14 +- .../compiler/integers/i128/hex_and_bin.out | 17 +- .../compiler/integers/i128/le.out | 14 +- .../compiler/integers/i128/lt.out | 14 +- .../compiler/integers/i128/max.out | 11 +- .../compiler/integers/i128/min.out | 11 +- .../compiler/integers/i128/min_fail.out | 11 +- .../compiler/integers/i128/mul.out | 14 +- .../compiler/integers/i128/ne.out | 14 +- .../compiler/integers/i128/negate.out | 13 +- .../integers/i128/negate_min_fail.out | 11 +- .../compiler/integers/i128/negate_zero.out | 13 +- .../integers/i128/operator_methods.out | 12 +- .../compiler/integers/i128/or.out | 14 +- .../compiler/integers/i128/pow.out | 18 +- .../compiler/integers/i128/rem.out | 14 +- .../compiler/integers/i128/shl.out | 18 +- .../compiler/integers/i128/shr.out | 18 +- .../compiler/integers/i128/sub.out | 14 +- .../compiler/integers/i128/ternary.out | 15 +- .../compiler/integers/i128/xor.out | 12 +- .../compiler/integers/i16/add.out | 14 +- .../compiler/integers/i16/and.out | 14 +- .../compiler/integers/i16/console_assert.out | 13 +- .../compiler/integers/i16/div.out | 14 +- .../expectations/compiler/integers/i16/eq.out | 14 +- .../expectations/compiler/integers/i16/ge.out | 14 +- .../expectations/compiler/integers/i16/gt.out | 14 +- .../compiler/integers/i16/hex_and_bin.out | 17 +- .../expectations/compiler/integers/i16/le.out | 14 +- .../expectations/compiler/integers/i16/lt.out | 14 +- .../compiler/integers/i16/max.out | 11 +- .../compiler/integers/i16/min.out | 11 +- .../compiler/integers/i16/min_fail.out | 11 +- .../compiler/integers/i16/mul.out | 14 +- .../expectations/compiler/integers/i16/ne.out | 14 +- .../compiler/integers/i16/negate.out | 13 +- .../compiler/integers/i16/negate_min_fail.out | 11 +- .../compiler/integers/i16/negate_zero.out | 13 +- .../integers/i16/operator_methods.out | 12 +- .../expectations/compiler/integers/i16/or.out | 14 +- .../compiler/integers/i16/pow.out | 18 +- .../compiler/integers/i16/rem.out | 14 +- .../compiler/integers/i16/shl.out | 18 +- .../compiler/integers/i16/shr.out | 18 +- .../compiler/integers/i16/sub.out | 14 +- .../compiler/integers/i16/ternary.out | 15 +- .../compiler/integers/i16/xor.out | 12 +- .../compiler/integers/i32/add.out | 14 +- .../compiler/integers/i32/and.out | 14 +- .../compiler/integers/i32/console_assert.out | 13 +- .../compiler/integers/i32/div.out | 14 +- .../expectations/compiler/integers/i32/eq.out | 14 +- .../expectations/compiler/integers/i32/ge.out | 14 +- .../expectations/compiler/integers/i32/gt.out | 14 +- .../compiler/integers/i32/hex_and_bin.out | 17 +- .../expectations/compiler/integers/i32/le.out | 14 +- .../expectations/compiler/integers/i32/lt.out | 14 +- .../compiler/integers/i32/max.out | 11 +- .../compiler/integers/i32/min.out | 11 +- .../compiler/integers/i32/min_fail.out | 11 +- .../compiler/integers/i32/mul.out | 14 +- .../expectations/compiler/integers/i32/ne.out | 14 +- .../compiler/integers/i32/negate.out | 13 +- .../compiler/integers/i32/negate_min_fail.out | 11 +- .../compiler/integers/i32/negate_zero.out | 13 +- .../integers/i32/operator_methods.out | 12 +- .../expectations/compiler/integers/i32/or.out | 14 +- .../compiler/integers/i32/pow.out | 18 +- .../compiler/integers/i32/rem.out | 14 +- .../compiler/integers/i32/shl.out | 18 +- .../compiler/integers/i32/shr.out | 18 +- .../compiler/integers/i32/sub.out | 14 +- .../compiler/integers/i32/ternary.out | 15 +- .../compiler/integers/i32/xor.out | 12 +- .../compiler/integers/i64/add.out | 14 +- .../compiler/integers/i64/and.out | 14 +- .../compiler/integers/i64/console_assert.out | 13 +- .../compiler/integers/i64/div.out | 14 +- .../expectations/compiler/integers/i64/eq.out | 14 +- .../expectations/compiler/integers/i64/ge.out | 14 +- .../expectations/compiler/integers/i64/gt.out | 14 +- .../compiler/integers/i64/hex_and_bin.out | 17 +- .../expectations/compiler/integers/i64/le.out | 14 +- .../expectations/compiler/integers/i64/lt.out | 14 +- .../compiler/integers/i64/max.out | 11 +- .../compiler/integers/i64/min.out | 11 +- .../compiler/integers/i64/min_fail.out | 11 +- .../compiler/integers/i64/mul.out | 14 +- .../expectations/compiler/integers/i64/ne.out | 14 +- .../compiler/integers/i64/negate.out | 13 +- .../compiler/integers/i64/negate_min_fail.out | 11 +- .../compiler/integers/i64/negate_zero.out | 13 +- .../integers/i64/operator_methods.out | 12 +- .../expectations/compiler/integers/i64/or.out | 14 +- .../compiler/integers/i64/pow.out | 18 +- .../compiler/integers/i64/rem.out | 14 +- .../compiler/integers/i64/shl.out | 18 +- .../compiler/integers/i64/shr.out | 18 +- .../compiler/integers/i64/sub.out | 14 +- .../compiler/integers/i64/ternary.out | 15 +- .../compiler/integers/i64/xor.out | 12 +- .../expectations/compiler/integers/i8/add.out | 17 +- .../expectations/compiler/integers/i8/and.out | 14 +- .../compiler/integers/i8/console_assert.out | 13 +- .../expectations/compiler/integers/i8/div.out | 14 +- .../expectations/compiler/integers/i8/eq.out | 14 +- .../expectations/compiler/integers/i8/ge.out | 14 +- .../expectations/compiler/integers/i8/gt.out | 14 +- .../compiler/integers/i8/hex_and_bin.out | 17 +- .../expectations/compiler/integers/i8/le.out | 14 +- .../expectations/compiler/integers/i8/lt.out | 14 +- .../expectations/compiler/integers/i8/max.out | 11 +- .../expectations/compiler/integers/i8/min.out | 11 +- .../compiler/integers/i8/min_fail.out | 11 +- .../expectations/compiler/integers/i8/mul.out | 14 +- .../expectations/compiler/integers/i8/ne.out | 14 +- .../compiler/integers/i8/negate.out | 13 +- .../compiler/integers/i8/negate_min_fail.out | 11 +- .../compiler/integers/i8/negate_zero.out | 13 +- .../compiler/integers/i8/operator_methods.out | 12 +- .../expectations/compiler/integers/i8/or.out | 14 +- .../expectations/compiler/integers/i8/pow.out | 18 +- .../expectations/compiler/integers/i8/rem.out | 14 +- .../expectations/compiler/integers/i8/shl.out | 18 +- .../expectations/compiler/integers/i8/shr.out | 18 +- .../expectations/compiler/integers/i8/sub.out | 14 +- .../compiler/integers/i8/ternary.out | 15 +- .../expectations/compiler/integers/i8/xor.out | 12 +- .../compiler/integers/u128/add.out | 14 +- .../compiler/integers/u128/and.out | 14 +- .../compiler/integers/u128/console_assert.out | 13 +- .../compiler/integers/u128/div.out | 14 +- .../compiler/integers/u128/eq.out | 14 +- .../compiler/integers/u128/ge.out | 14 +- .../compiler/integers/u128/gt.out | 14 +- .../compiler/integers/u128/hex_and_bin.out | 17 +- .../compiler/integers/u128/le.out | 14 +- .../compiler/integers/u128/lt.out | 14 +- .../compiler/integers/u128/max.out | 11 +- .../compiler/integers/u128/min.out | 11 +- .../compiler/integers/u128/mul.out | 14 +- .../compiler/integers/u128/ne.out | 14 +- .../integers/u128/operator_methods.out | 12 +- .../compiler/integers/u128/or.out | 14 +- .../compiler/integers/u128/pow.out | 18 +- .../compiler/integers/u128/rem.out | 14 +- .../compiler/integers/u128/shl.out | 18 +- .../compiler/integers/u128/shr.out | 18 +- .../compiler/integers/u128/sub.out | 14 +- .../compiler/integers/u128/ternary.out | 15 +- .../compiler/integers/u128/xor.out | 12 +- .../compiler/integers/u16/add.out | 14 +- .../compiler/integers/u16/and.out | 14 +- .../compiler/integers/u16/console_assert.out | 13 +- .../compiler/integers/u16/div.out | 14 +- .../expectations/compiler/integers/u16/eq.out | 14 +- .../expectations/compiler/integers/u16/ge.out | 14 +- .../expectations/compiler/integers/u16/gt.out | 14 +- .../compiler/integers/u16/hex_and_bin.out | 17 +- .../expectations/compiler/integers/u16/le.out | 14 +- .../expectations/compiler/integers/u16/lt.out | 14 +- .../compiler/integers/u16/max.out | 11 +- .../compiler/integers/u16/min.out | 11 +- .../compiler/integers/u16/mul.out | 14 +- .../expectations/compiler/integers/u16/ne.out | 14 +- .../integers/u16/operator_methods.out | 12 +- .../expectations/compiler/integers/u16/or.out | 14 +- .../compiler/integers/u16/pow.out | 18 +- .../compiler/integers/u16/rem.out | 14 +- .../compiler/integers/u16/shl.out | 18 +- .../compiler/integers/u16/shr.out | 18 +- .../compiler/integers/u16/sub.out | 14 +- .../compiler/integers/u16/ternary.out | 15 +- .../compiler/integers/u16/xor.out | 12 +- .../compiler/integers/u32/add.out | 14 +- .../compiler/integers/u32/and.out | 14 +- .../compiler/integers/u32/console_assert.out | 13 +- .../compiler/integers/u32/div.out | 14 +- .../expectations/compiler/integers/u32/eq.out | 14 +- .../expectations/compiler/integers/u32/ge.out | 14 +- .../expectations/compiler/integers/u32/gt.out | 14 +- .../compiler/integers/u32/hex_and_bin.out | 17 +- .../expectations/compiler/integers/u32/le.out | 14 +- .../expectations/compiler/integers/u32/lt.out | 14 +- .../compiler/integers/u32/max.out | 11 +- .../compiler/integers/u32/min.out | 11 +- .../compiler/integers/u32/mul.out | 14 +- .../expectations/compiler/integers/u32/ne.out | 14 +- .../integers/u32/operator_methods.out | 12 +- .../expectations/compiler/integers/u32/or.out | 14 +- .../compiler/integers/u32/pow.out | 18 +- .../compiler/integers/u32/rem.out | 14 +- .../compiler/integers/u32/shl.out | 18 +- .../compiler/integers/u32/shr.out | 18 +- .../compiler/integers/u32/sub.out | 14 +- .../compiler/integers/u32/ternary.out | 15 +- .../compiler/integers/u32/xor.out | 12 +- .../compiler/integers/u64/add.out | 14 +- .../compiler/integers/u64/and.out | 14 +- .../compiler/integers/u64/console_assert.out | 13 +- .../compiler/integers/u64/div.out | 14 +- .../expectations/compiler/integers/u64/eq.out | 14 +- .../expectations/compiler/integers/u64/ge.out | 14 +- .../expectations/compiler/integers/u64/gt.out | 14 +- .../compiler/integers/u64/hex_and_bin.out | 17 +- .../expectations/compiler/integers/u64/le.out | 14 +- .../expectations/compiler/integers/u64/lt.out | 14 +- .../compiler/integers/u64/max.out | 11 +- .../compiler/integers/u64/min.out | 11 +- .../compiler/integers/u64/mul.out | 14 +- .../expectations/compiler/integers/u64/ne.out | 14 +- .../integers/u64/operator_methods.out | 12 +- .../expectations/compiler/integers/u64/or.out | 14 +- .../compiler/integers/u64/pow.out | 18 +- .../compiler/integers/u64/rem.out | 14 +- .../compiler/integers/u64/shl.out | 18 +- .../compiler/integers/u64/shr.out | 18 +- .../compiler/integers/u64/sub.out | 14 +- .../compiler/integers/u64/ternary.out | 15 +- .../compiler/integers/u64/xor.out | 12 +- .../expectations/compiler/integers/u8/add.out | 14 +- .../expectations/compiler/integers/u8/and.out | 14 +- .../compiler/integers/u8/console_assert.out | 13 +- .../expectations/compiler/integers/u8/div.out | 14 +- .../expectations/compiler/integers/u8/eq.out | 14 +- .../expectations/compiler/integers/u8/ge.out | 14 +- .../expectations/compiler/integers/u8/gt.out | 14 +- .../compiler/integers/u8/hex_and_bin.out | 17 +- .../expectations/compiler/integers/u8/le.out | 14 +- .../expectations/compiler/integers/u8/lt.out | 14 +- .../expectations/compiler/integers/u8/max.out | 11 +- .../expectations/compiler/integers/u8/min.out | 11 +- .../expectations/compiler/integers/u8/mul.out | 14 +- .../expectations/compiler/integers/u8/ne.out | 14 +- .../compiler/integers/u8/operator_methods.out | 12 +- .../expectations/compiler/integers/u8/or.out | 14 +- .../expectations/compiler/integers/u8/pow.out | 18 +- .../expectations/compiler/integers/u8/rem.out | 14 +- .../expectations/compiler/integers/u8/shl.out | 18 +- .../expectations/compiler/integers/u8/shr.out | 18 +- .../expectations/compiler/integers/u8/sub.out | 14 +- .../compiler/integers/u8/ternary.out | 15 +- .../expectations/compiler/integers/u8/xor.out | 12 +- .../compiler/mappings/max_mappings.out | 164 +- .../mappings/read_external_mapping.out | 76 +- .../compiler/records/balance_wrong_ty.out | 12 +- .../compiler/records/declaration.out | 12 +- .../records/external_nested_record.out | 31 +- .../compiler/records/gates_is_allowed.out | 16 +- .../compiler/records/init_expression.out | 21 +- .../records/init_expression_shorthand.out | 21 +- .../compiler/records/nested_record.out | 26 +- .../records/nested_record_as_function_io.out | 41 +- .../record_declaration_out_of_order.out | 16 +- .../records/record_init_out_of_order.out | 16 +- .../records/record_with_visibility.out | 17 +- .../compiler/return/ifelse_chain.out | 31 +- tests/expectations/compiler/scalar/add.out | 14 +- tests/expectations/compiler/scalar/cmp.out | 12 +- tests/expectations/compiler/scalar/eq.out | 12 +- .../compiler/scalar/operator_methods.out | 12 +- tests/expectations/compiler/scalar/scalar.out | 12 +- .../expectations/compiler/scalar/ternary.out | 16 +- .../compiler/signature/signature.out | 34 +- .../compiler/statements/assign.out | 16 +- .../compiler/statements/block.out | 12 +- .../compiler/statements/chain.out | 15 +- .../compiler/statements/expr_statement.out | 19 +- .../compiler/statements/iteration_basic.out | 14 +- .../compiler/statements/iteration_nested.out | 14 +- .../compiler/statements/multiple_returns.out | 12 +- .../compiler/statements/mutate.out | 16 +- .../statements/operations/add_assign.out | 11 +- .../statements/operations/and_assign.out | 11 +- .../statements/operations/bitand_assign.out | 11 +- .../statements/operations/bitor_assign.out | 11 +- .../statements/operations/bitxor_assign.out | 11 +- .../statements/operations/div_assign.out | 11 +- .../statements/operations/mul_assign.out | 11 +- .../statements/operations/or_assign.out | 11 +- .../statements/operations/pow_assign.out | 27 +- .../statements/operations/rem_assign.out | 11 +- .../statements/operations/shl_assign.out | 27 +- .../statements/operations/shr_assign.out | 27 +- .../statements/operations/sub_assign.out | 11 +- .../ternary_explicit_and_implicit.out | 12 +- .../statements/underscore_for_loop.out | 10 +- .../compiler/structs/external_record.out | 56 +- .../compiler/structs/external_struct.out | 134 +- .../external_struct_in_async_function.out | 33 +- .../expectations/compiler/structs/inline.out | 13 +- .../compiler/structs/member_variable.out | 15 +- .../structs/redefine_external_struct.out | 64 +- .../struct_declaration_out_of_order.out | 42 +- .../structs/struct_init_out_of_order.out | 23 +- .../tuple/function_call_returns_tuple.out | 30 +- .../compiler/tuple/function_early_return.out | 17 +- .../compiler/tuple/function_return.out | 14 +- .../tuple/function_return_nothing.out | 10 +- .../compiler/tuple/function_return_unit.out | 10 +- .../tuple/function_return_varying_modes.out | 14 +- .../tuple/return_with_different_modes.out | 14 +- .../compiler/tuple/tuple_access.out | 12 +- .../compiler/tuple/tuple_destructure.out | 23 +- .../compiler/tuple/tuple_in_assignment.out | 12 +- .../compiler/tuple/tuple_in_definition.out | 10 +- .../compiler/tuple/tuple_in_loop.out | 93 +- tests/expectations/compiler/tuple/unit.out | 47 +- tests/expectations/execution/array_sum.out | 22 +- .../execution/assert_early_return.out | 14 +- .../expectations/execution/cast_coersion.out | 24 +- tests/expectations/execution/chain.out | 15 +- .../execution/complex_finalization.out | 140 +- .../execution/cond_exec_in_finalize.out | 26 +- tests/expectations/execution/counter.out | 49 +- tests/expectations/execution/eq.out | 13 +- .../flattened_function_and_inline_matches.out | 149 +- .../execution/group_operations.out | 19 +- tests/expectations/execution/metadata.out | 29 +- tests/expectations/execution/mint.out | 16 +- .../execution/primitive_casts.out | 509 ++- 687 files changed, 20336 insertions(+), 716 deletions(-) diff --git a/compiler/compiler/tests/compile.rs b/compiler/compiler/tests/compile.rs index 0fd85c6939..6550dc0b1b 100644 --- a/compiler/compiler/tests/compile.rs +++ b/compiler/compiler/tests/compile.rs @@ -23,7 +23,6 @@ use utilities::{ get_build_options, get_cwd_option, hash_asts, - hash_content, hash_symbol_tables, parse_program, }; @@ -169,7 +168,7 @@ fn run_test(test: Test, handler: &Handler, buf: &BufferEmitter) -> Result Result compiler-test:17:5 | @@ -24,6 +93,53 @@ Warning [WTYC0372000]: Not all paths through the function await all futures. 2/4 | ^ | = Ex: `f.await()` to await a future. Remove this warning by including the `--disable-conditional-branch-type-checking` flag.""" }, - { bytecode = "7a2fd5581e13d3b66f1fad269ba868cf6d272929b84cea2dc1cb6a0af22867c2", dce_ast = "6b852bcf601b323678eea14e096f49c72f8800d18ec811b00c31817daf630d63", destructured_ast = "88653b95656b6f56872d7ea452491322e4c122909879b72856b891c474aa8342", errors = "", flattened_ast = "46d54d4d9fe36538d34ac306780262ee1f54a6141aa2281ef7ae74ffcf4dddcf", initial_ast = "05de2b0dcfd85ec6446f4507492e26b2093e771f44c497f92a24d6fff5e8c864", initial_symbol_table = "11d73259b527776fa2019508fa961ca24850cc2bd0fbbcebfb7310c565289560", inlined_ast = "0f81029815dec13a526530eeea0e92e6eb61313421ce5a7b46ed3739d62beaf6", ssa_ast = "0cb5c531ad471909089716ef6c7382fb3fcbb82dafb6edef541e4f7cff4fb8ba", type_checked_symbol_table = "fb91e05612819b16dc6a1fb37cd80f776918dc1f502feca4d9428f42dc21754d", unrolled_ast = "4f09dae0678393afc3cbc5592159df83ca22b947084d3c8e779281724d07a2ca", unrolled_symbol_table = "fb91e05612819b16dc6a1fb37cd80f776918dc1f502feca4d9428f42dc21754d", warnings = "" }, - { bytecode = "388c60022d4ad4fac382a685cc997c84d142f4e1357eb7c00e3efb545f5f70e5", dce_ast = "e127a5223a49f123398009b927e96ebb44f266df7271feb7b1ff5f7f748e6ff5", destructured_ast = "8da4c7c91fabf5edb6768e616f223e574b3415c848321f66ad9e587b76259210", errors = "", flattened_ast = "2ff2d69c6199a5c70a8ffb96d8dc0529f6f1fbf631a1f690169d2d9162e91689", initial_ast = "bf4f5dac2e3cac6f6c8b117a93b7bc9a4b9d31f66b3b0d946866da23003e6a69", initial_symbol_table = "04a3a0ccbf4ed061d19da4e624725caff0e64ac838498cbd09df865f4f9044f2", inlined_ast = "a740025e070d37bd22f264e37dfd6802eb9e1b10c12c928a08acd14fbe9043d6", ssa_ast = "82581ca24afcd79d3e3c1346009981d4a9d3d227afc0540707b6c315ecdce107", type_checked_symbol_table = "69550e476553614e01dd39df0b3a8f682556cdf76982503af0e6a77d4916e027", unrolled_ast = "a1786c230d46f3b207f118aaaaea373cd1d9935aa7e63b99e403a8faf36df2fe", unrolled_symbol_table = "69550e476553614e01dd39df0b3a8f682556cdf76982503af0e6a77d4916e027", warnings = "" }, + { bytecode = """ +import test_dep.aleo; +import test.aleo; +program wrapper.aleo; + + + + +function main: + input r0 as u32.public; + input r1 as u32.private; + call test.aleo/main 1u32 into r2 r3; + call test.aleo/main 1u32 into r4 r5; + call test.aleo/main 1u32 into r6 r7; + async main r3 r5 r7 into r8; + output r2 as u32.private; + output r8 as wrapper.aleo/main.future; + +finalize main: + input r0 as test.aleo/main.future; + input r1 as test.aleo/main.future; + input r2 as test.aleo/main.future; + await r0; + await r1; + await r2; + +""", dce_ast = "6b852bcf601b323678eea14e096f49c72f8800d18ec811b00c31817daf630d63", destructured_ast = "88653b95656b6f56872d7ea452491322e4c122909879b72856b891c474aa8342", errors = "", flattened_ast = "46d54d4d9fe36538d34ac306780262ee1f54a6141aa2281ef7ae74ffcf4dddcf", initial_ast = "05de2b0dcfd85ec6446f4507492e26b2093e771f44c497f92a24d6fff5e8c864", initial_symbol_table = "11d73259b527776fa2019508fa961ca24850cc2bd0fbbcebfb7310c565289560", inlined_ast = "0f81029815dec13a526530eeea0e92e6eb61313421ce5a7b46ed3739d62beaf6", ssa_ast = "0cb5c531ad471909089716ef6c7382fb3fcbb82dafb6edef541e4f7cff4fb8ba", type_checked_symbol_table = "fb91e05612819b16dc6a1fb37cd80f776918dc1f502feca4d9428f42dc21754d", unrolled_ast = "4f09dae0678393afc3cbc5592159df83ca22b947084d3c8e779281724d07a2ca", unrolled_symbol_table = "fb91e05612819b16dc6a1fb37cd80f776918dc1f502feca4d9428f42dc21754d", warnings = "" }, + { bytecode = """ +import test_dep.aleo; +import test.aleo; +import wrapper.aleo; +program big_wrapper.aleo; + + + + +function main: + input r0 as u32.public; + input r1 as u32.private; + call wrapper.aleo/main 10u32 10u32 into r2 r3; + async main r3 into r4; + output r4[0u32][0u32][0u32][0u32] as u32.private; + output r4 as big_wrapper.aleo/main.future; + +finalize main: + input r0 as wrapper.aleo/main.future; + await r0; + +""", dce_ast = "e127a5223a49f123398009b927e96ebb44f266df7271feb7b1ff5f7f748e6ff5", destructured_ast = "8da4c7c91fabf5edb6768e616f223e574b3415c848321f66ad9e587b76259210", errors = "", flattened_ast = "2ff2d69c6199a5c70a8ffb96d8dc0529f6f1fbf631a1f690169d2d9162e91689", initial_ast = "bf4f5dac2e3cac6f6c8b117a93b7bc9a4b9d31f66b3b0d946866da23003e6a69", initial_symbol_table = "04a3a0ccbf4ed061d19da4e624725caff0e64ac838498cbd09df865f4f9044f2", inlined_ast = "a740025e070d37bd22f264e37dfd6802eb9e1b10c12c928a08acd14fbe9043d6", ssa_ast = "82581ca24afcd79d3e3c1346009981d4a9d3d227afc0540707b6c315ecdce107", type_checked_symbol_table = "69550e476553614e01dd39df0b3a8f682556cdf76982503af0e6a77d4916e027", unrolled_ast = "a1786c230d46f3b207f118aaaaea373cd1d9935aa7e63b99e403a8faf36df2fe", unrolled_symbol_table = "69550e476553614e01dd39df0b3a8f682556cdf76982503af0e6a77d4916e027", warnings = "" }, ] }]] diff --git a/tests/expectations/compiler/futures/partial_type_specification.out b/tests/expectations/compiler/futures/partial_type_specification.out index 18c9d05792..d3bb003638 100644 --- a/tests/expectations/compiler/futures/partial_type_specification.out +++ b/tests/expectations/compiler/futures/partial_type_specification.out @@ -1,8 +1,90 @@ namespace = "Compile" expectation = "Pass" outputs = [[{ compile = [ - { bytecode = "d207ac4b2d723295d2e715b2ea29f26bf8adcddbe41b4d5a036b69998a0ecfd6", dce_ast = "638d72b2d6010f5a2a7d699fb69b1a056faae9a878b3c37f2b34e8f41fad5176", destructured_ast = "55c36655c56d82657c07cd352bc12762b12f41a00ca7e8cbf039a4d4d8d6e264", errors = "", flattened_ast = "3f8304d2444d4e4132549ae4b530997040c0978d09fc8986bf67a3eba1538e99", initial_ast = "6e3dc0ac11741965498701cb2b5ebb68eecb1e932b9f6d84aca33350b91f6e2d", initial_symbol_table = "c3d0ea026b5d60b48e857637a67489b89de75466d257974347c164546b9b9660", inlined_ast = "b7dda92d9f46b0646ce43f38625e29da41f0273f87990fc0e153cfe61e992523", ssa_ast = "d898f89ce1fbcd93694c06446e31d5ab52ace6fd966c7dd35e082dead74440c7", type_checked_symbol_table = "ae06cab6240fce0da07873fbf8159dc2acade6e666375b1c52dc586a98a0f8a3", unrolled_ast = "6e3dc0ac11741965498701cb2b5ebb68eecb1e932b9f6d84aca33350b91f6e2d", unrolled_symbol_table = "ae06cab6240fce0da07873fbf8159dc2acade6e666375b1c52dc586a98a0f8a3", warnings = "" }, - { bytecode = "10ad760ad5a7c1882aca46c034e78125cc5cb06a57163ca694a3cb568be4fff9", dce_ast = "4378a2b09abc850959d98704efb7ec28bd6ad7962cc4ec761e26e57400cec8a0", destructured_ast = "df2c950dd52d4094ef1f2d364aa6dd57020f7ca431ead915353c2c33482ee05d", errors = "", flattened_ast = "7bddc7f16b5ef5baef1fc50ac2f45767844d05fc0de797d267c77306bc586dc5", initial_ast = "bcfa98eafaf355e7313773fa4340b88d2530e3d2b279252fc1117327de42d77a", initial_symbol_table = "1a537ce4873945cd8969e08fd2440d3d9dbf4175306e7a60a18f59305958366e", inlined_ast = "7dd0bb6eee84d038c01e43a8c7fdfd38ec3cbb269bf4990078a49e5202fe177e", ssa_ast = "b6da9c41019a2af6cd137e29fe7b5041cc13a45d574b920101a69f7093c58980", type_checked_symbol_table = "3c670b67da9da6028e642d487a1382f3de1b554c8c0d51fc531b71e36b5cdef5", unrolled_ast = "01a9f5e11f5749b408619a513bf7f9eececfd83f9f87c883fcd8db53440babab", unrolled_symbol_table = "3c670b67da9da6028e642d487a1382f3de1b554c8c0d51fc531b71e36b5cdef5", warnings = """ + { bytecode = """ +program test_dep.aleo; + +record yeets: + owner as address.private; + val as u32.private; + + +mapping Yo: +\tkey as u32.public; +\tvalue as u32.public; + + +function main_dep: + input r0 as u32.private; + async main_dep r0 1u32 into r1; + cast self.caller 1u32 into r2 as yeets.record; + output r2 as yeets.record; + output r1 as test_dep.aleo/main_dep.future; + +finalize main_dep: + input r0 as u32.public; + input r1 as u32.public; + set r1 into Yo[r0]; + + + + +function main_dep_2: + input r0 as u32.private; + async main_dep_2 into r1; + cast self.caller 1u32 into r2 as yeets.record; + output r2 as yeets.record; + output r1 as test_dep.aleo/main_dep_2.future; + +finalize main_dep_2: + set 1u32 into Yo[1u32]; + +""", dce_ast = "638d72b2d6010f5a2a7d699fb69b1a056faae9a878b3c37f2b34e8f41fad5176", destructured_ast = "55c36655c56d82657c07cd352bc12762b12f41a00ca7e8cbf039a4d4d8d6e264", errors = "", flattened_ast = "3f8304d2444d4e4132549ae4b530997040c0978d09fc8986bf67a3eba1538e99", initial_ast = "6e3dc0ac11741965498701cb2b5ebb68eecb1e932b9f6d84aca33350b91f6e2d", initial_symbol_table = "c3d0ea026b5d60b48e857637a67489b89de75466d257974347c164546b9b9660", inlined_ast = "b7dda92d9f46b0646ce43f38625e29da41f0273f87990fc0e153cfe61e992523", ssa_ast = "d898f89ce1fbcd93694c06446e31d5ab52ace6fd966c7dd35e082dead74440c7", type_checked_symbol_table = "ae06cab6240fce0da07873fbf8159dc2acade6e666375b1c52dc586a98a0f8a3", unrolled_ast = "6e3dc0ac11741965498701cb2b5ebb68eecb1e932b9f6d84aca33350b91f6e2d", unrolled_symbol_table = "ae06cab6240fce0da07873fbf8159dc2acade6e666375b1c52dc586a98a0f8a3", warnings = "" }, + { bytecode = """ +import test_dep.aleo; +program test.aleo; + + + +mapping ayo: +\tkey as u32.public; +\tvalue as u32.public; + + +function main: + input r0 as u32.private; + call test_dep.aleo/main_dep 10u32 into r1 r2; + call test_dep.aleo/main_dep 1u32 into r3 r4; + async main r2 r4 1u32 into r5; + add r2[0u32] r4[0u32] into r6; + add r6 1u32 into r7; + add r7 r2[0u32] into r8; + mul r2[0u32] 2u32 into r9; + add r8 r9 into r10; + output r10 as u32.private; + output r5 as test.aleo/main.future; + +finalize main: + input r0 as test_dep.aleo/main_dep.future; + input r1 as test_dep.aleo/main_dep.future; + input r2 as u32.public; + is.eq r2 1u32 into r3; + branch.eq r3 false to end_then_0_0; + await r0; + await r1; + branch.eq true true to end_otherwise_0_1; + position end_then_0_0; + position end_otherwise_0_1; + is.eq r2 2u32 into r4; + branch.eq r4 false to end_then_0_2; + set 1u32 into ayo[1u32]; + branch.eq true true to end_otherwise_0_3; + position end_then_0_2; + position end_otherwise_0_3; + add r0[0u32] r1[0u32] into r5; + set r5 into ayo[1u32]; + +""", dce_ast = "4378a2b09abc850959d98704efb7ec28bd6ad7962cc4ec761e26e57400cec8a0", destructured_ast = "df2c950dd52d4094ef1f2d364aa6dd57020f7ca431ead915353c2c33482ee05d", errors = "", flattened_ast = "7bddc7f16b5ef5baef1fc50ac2f45767844d05fc0de797d267c77306bc586dc5", initial_ast = "bcfa98eafaf355e7313773fa4340b88d2530e3d2b279252fc1117327de42d77a", initial_symbol_table = "1a537ce4873945cd8969e08fd2440d3d9dbf4175306e7a60a18f59305958366e", inlined_ast = "7dd0bb6eee84d038c01e43a8c7fdfd38ec3cbb269bf4990078a49e5202fe177e", ssa_ast = "b6da9c41019a2af6cd137e29fe7b5041cc13a45d574b920101a69f7093c58980", type_checked_symbol_table = "3c670b67da9da6028e642d487a1382f3de1b554c8c0d51fc531b71e36b5cdef5", unrolled_ast = "01a9f5e11f5749b408619a513bf7f9eececfd83f9f87c883fcd8db53440babab", unrolled_symbol_table = "3c670b67da9da6028e642d487a1382f3de1b554c8c0d51fc531b71e36b5cdef5", warnings = """ Warning [WTYC0372000]: Not all paths through the function await all futures. 2/4 paths contain at least one future that is never awaited. --> compiler-test:17:5 | @@ -24,6 +106,53 @@ Warning [WTYC0372000]: Not all paths through the function await all futures. 2/4 | ^ | = Ex: `f.await()` to await a future. Remove this warning by including the `--disable-conditional-branch-type-checking` flag.""" }, - { bytecode = "7a2fd5581e13d3b66f1fad269ba868cf6d272929b84cea2dc1cb6a0af22867c2", dce_ast = "f46fa7963b327b9c75c9f7a7569e350d7f62c21964cb5df140cd2186c2043697", destructured_ast = "85a81c23da7e97b057ddf4ef71f375781e1dfcb90d656d694a5aa0f0c176b497", errors = "", flattened_ast = "65fb4138701cad86a5fcd7e024645e833aeb6e88b3ea2a3a6b69269fd1d77620", initial_ast = "856e56d95eaf14f6e9241001763546b7d982402ac87521e2ec3b7ea476764692", initial_symbol_table = "04f7d3a44d791763aec79b596224c653e682ab928bc0cba71a1cd6282198e885", inlined_ast = "a1b2367575e170a79ace2ac7ff071bc3c770476b37ee149310c3b2cfe67b1c7f", ssa_ast = "6d38bf225e9cf5af37b9d6c595c2973ec31a32d227ca65cb590d27400d442780", type_checked_symbol_table = "d9d3363d1049a924bbae356d0f90ac3c9bfca7f6ae5ba51ad915d66e9d0b9a1e", unrolled_ast = "75b69748ca1e534c95cf084164773d471f51537b50b2d517dc4be26dddb06e1b", unrolled_symbol_table = "d9d3363d1049a924bbae356d0f90ac3c9bfca7f6ae5ba51ad915d66e9d0b9a1e", warnings = "" }, - { bytecode = "388c60022d4ad4fac382a685cc997c84d142f4e1357eb7c00e3efb545f5f70e5", dce_ast = "390391c2098cf6a910eeec98fc92fdea31303a84a1d6fd6673c8dbd9d20180de", destructured_ast = "f3b5b961a498f9befec85b69b3012145a6e97774d37a8c8e354ec4e5eeb64f84", errors = "", flattened_ast = "885c5f8145aa1a82e5fe41abbabae12cbd15eb014b333b246c6c5401b5b6bfea", initial_ast = "575e251f07e552c917ab36bc9877b13dd1638651c4023ade20701dd2a5fe27ff", initial_symbol_table = "11c1000ce2f1774ad382af12ba51e8b55d5a98ee0da67cb8620e686c1fcaebb1", inlined_ast = "2bf37fc499b3eca18c8227e61f69f730d36e755d7879dde13bb9161936bafbfc", ssa_ast = "4a00e3d36cdd4ff4be1fc6a389aaf17cfb02b6c54fa84276fb5be66b8a78b124", type_checked_symbol_table = "9f27eb3f177ceb81d9b14cc85c07b7198eb67d0ee806c04cbbff1cfb18b997ab", unrolled_ast = "2a4969ad315e900b5a3f1eecd4e6508dc6946fb5f6c3861ee793961ce6bcc203", unrolled_symbol_table = "9f27eb3f177ceb81d9b14cc85c07b7198eb67d0ee806c04cbbff1cfb18b997ab", warnings = "" }, + { bytecode = """ +import test_dep.aleo; +import test.aleo; +program wrapper.aleo; + + + + +function main: + input r0 as u32.public; + input r1 as u32.private; + call test.aleo/main 1u32 into r2 r3; + call test.aleo/main 1u32 into r4 r5; + call test.aleo/main 1u32 into r6 r7; + async main r3 r5 r7 into r8; + output r2 as u32.private; + output r8 as wrapper.aleo/main.future; + +finalize main: + input r0 as test.aleo/main.future; + input r1 as test.aleo/main.future; + input r2 as test.aleo/main.future; + await r0; + await r1; + await r2; + +""", dce_ast = "f46fa7963b327b9c75c9f7a7569e350d7f62c21964cb5df140cd2186c2043697", destructured_ast = "85a81c23da7e97b057ddf4ef71f375781e1dfcb90d656d694a5aa0f0c176b497", errors = "", flattened_ast = "65fb4138701cad86a5fcd7e024645e833aeb6e88b3ea2a3a6b69269fd1d77620", initial_ast = "856e56d95eaf14f6e9241001763546b7d982402ac87521e2ec3b7ea476764692", initial_symbol_table = "04f7d3a44d791763aec79b596224c653e682ab928bc0cba71a1cd6282198e885", inlined_ast = "a1b2367575e170a79ace2ac7ff071bc3c770476b37ee149310c3b2cfe67b1c7f", ssa_ast = "6d38bf225e9cf5af37b9d6c595c2973ec31a32d227ca65cb590d27400d442780", type_checked_symbol_table = "d9d3363d1049a924bbae356d0f90ac3c9bfca7f6ae5ba51ad915d66e9d0b9a1e", unrolled_ast = "75b69748ca1e534c95cf084164773d471f51537b50b2d517dc4be26dddb06e1b", unrolled_symbol_table = "d9d3363d1049a924bbae356d0f90ac3c9bfca7f6ae5ba51ad915d66e9d0b9a1e", warnings = "" }, + { bytecode = """ +import test_dep.aleo; +import test.aleo; +import wrapper.aleo; +program big_wrapper.aleo; + + + + +function main: + input r0 as u32.public; + input r1 as u32.private; + call wrapper.aleo/main 10u32 10u32 into r2 r3; + async main r3 into r4; + output r4[0u32][0u32][0u32][0u32] as u32.private; + output r4 as big_wrapper.aleo/main.future; + +finalize main: + input r0 as wrapper.aleo/main.future; + await r0; + +""", dce_ast = "390391c2098cf6a910eeec98fc92fdea31303a84a1d6fd6673c8dbd9d20180de", destructured_ast = "f3b5b961a498f9befec85b69b3012145a6e97774d37a8c8e354ec4e5eeb64f84", errors = "", flattened_ast = "885c5f8145aa1a82e5fe41abbabae12cbd15eb014b333b246c6c5401b5b6bfea", initial_ast = "575e251f07e552c917ab36bc9877b13dd1638651c4023ade20701dd2a5fe27ff", initial_symbol_table = "11c1000ce2f1774ad382af12ba51e8b55d5a98ee0da67cb8620e686c1fcaebb1", inlined_ast = "2bf37fc499b3eca18c8227e61f69f730d36e755d7879dde13bb9161936bafbfc", ssa_ast = "4a00e3d36cdd4ff4be1fc6a389aaf17cfb02b6c54fa84276fb5be66b8a78b124", type_checked_symbol_table = "9f27eb3f177ceb81d9b14cc85c07b7198eb67d0ee806c04cbbff1cfb18b997ab", unrolled_ast = "2a4969ad315e900b5a3f1eecd4e6508dc6946fb5f6c3861ee793961ce6bcc203", unrolled_symbol_table = "9f27eb3f177ceb81d9b14cc85c07b7198eb67d0ee806c04cbbff1cfb18b997ab", warnings = "" }, ] }]] diff --git a/tests/expectations/compiler/futures/simple.out b/tests/expectations/compiler/futures/simple.out index d01ef441c2..0265e28dd7 100644 --- a/tests/expectations/compiler/futures/simple.out +++ b/tests/expectations/compiler/futures/simple.out @@ -1,6 +1,49 @@ namespace = "Compile" expectation = "Pass" outputs = [[{ compile = [ - { bytecode = "7e95d1c0ff9c0edfb2081fe98cc11fb567b41a1c5c586688a2586aed8629b3be", dce_ast = "479ac6fdc020109c406fa654f6e8bcbec37069b9b68ff63e39dbfa09c5a40f04", destructured_ast = "e237c687b23978180a04086c93fd6e894743e0bf2a95d4de408b0e4d2ecfc636", errors = "", flattened_ast = "16987d115d2346155c394f964ddc7ad81d13c9f825a0e4e206c46bb7b3c3250f", initial_ast = "0a137d4df2ce8a6bb3c9b82e12856ba4769f6a0ee60b9d44fe4e5b112383accc", initial_symbol_table = "116d58ba03f7a7d97eed6581380790a8f53f04bae1ba88b75602f860ec303795", inlined_ast = "479ac6fdc020109c406fa654f6e8bcbec37069b9b68ff63e39dbfa09c5a40f04", ssa_ast = "2a1a92101ca526d604626f5ba6c0e4d032877119538e3f1f11a184d7e1c9820e", type_checked_symbol_table = "9569a2562f21f4b374ec99175f9be361e146ba2e7c552fd5389c945c4c764b4b", unrolled_ast = "0a137d4df2ce8a6bb3c9b82e12856ba4769f6a0ee60b9d44fe4e5b112383accc", unrolled_symbol_table = "9569a2562f21f4b374ec99175f9be361e146ba2e7c552fd5389c945c4c764b4b", warnings = "" }, - { bytecode = "7a91652b8a95d6a25f0ad68011d37481570f9c7b5e79d05c0ae8476c6754f7a8", dce_ast = "ef3d06f7a3ed3bba09c3fda4378aaa2f700384fc28e5d8c3751633bbc03f9f4e", destructured_ast = "a94ba575cc25982052a729a8a1b8fa3560a0043b305cf4dede91d17a71202fcb", errors = "", flattened_ast = "a9988b6cbd9cb03bc49e6850084531888e0cc04e456496fe7eff390812d39611", initial_ast = "90315edede362afca47bb3f8c861ab8bbbdb049ea56db7ebbbf8f20ce60aeb4a", initial_symbol_table = "e68fd2fbfc3ff3832375c1c2df1e6a67787480498938fc77e766ca07ae751992", inlined_ast = "7a6d98c84ce9a50bd944f11bca3d98f8262ab57b55fcc7f15537650b3d4bc6ef", ssa_ast = "80086e21c3779f9da4b57c755eedf9132709a1edc63644ef4ec574ce047b076f", type_checked_symbol_table = "a3dbe89fee3c01d1a1798775bd34ee5e9a160d9a31bc223cf8d949ad08310b43", unrolled_ast = "6541d8c338b4eeb027aedd7c9151f3eac30d61ab2986d22a008ef5bd4a67ffc7", unrolled_symbol_table = "a3dbe89fee3c01d1a1798775bd34ee5e9a160d9a31bc223cf8d949ad08310b43", warnings = "" }, + { bytecode = """ +program test.aleo; + + + +mapping foo: +\tkey as u32.public; +\tvalue as u32.public; + + +function main_inner: + input r0 as u32.public; + input r1 as u32.private; + add r0 r1 into r2; + async main_inner into r3; + output r2 as u32.private; + output r3 as test.aleo/main_inner.future; + +finalize main_inner: + set 1u32 into foo[1u32]; + +""", dce_ast = "479ac6fdc020109c406fa654f6e8bcbec37069b9b68ff63e39dbfa09c5a40f04", destructured_ast = "e237c687b23978180a04086c93fd6e894743e0bf2a95d4de408b0e4d2ecfc636", errors = "", flattened_ast = "16987d115d2346155c394f964ddc7ad81d13c9f825a0e4e206c46bb7b3c3250f", initial_ast = "0a137d4df2ce8a6bb3c9b82e12856ba4769f6a0ee60b9d44fe4e5b112383accc", initial_symbol_table = "116d58ba03f7a7d97eed6581380790a8f53f04bae1ba88b75602f860ec303795", inlined_ast = "479ac6fdc020109c406fa654f6e8bcbec37069b9b68ff63e39dbfa09c5a40f04", ssa_ast = "2a1a92101ca526d604626f5ba6c0e4d032877119538e3f1f11a184d7e1c9820e", type_checked_symbol_table = "9569a2562f21f4b374ec99175f9be361e146ba2e7c552fd5389c945c4c764b4b", unrolled_ast = "0a137d4df2ce8a6bb3c9b82e12856ba4769f6a0ee60b9d44fe4e5b112383accc", unrolled_symbol_table = "9569a2562f21f4b374ec99175f9be361e146ba2e7c552fd5389c945c4c764b4b", warnings = "" }, + { bytecode = """ +import test.aleo; +program basic.aleo; + + + + +function main: + input r0 as u32.public; + input r1 as u32.private; + add r0 r1 into r2; + call test.aleo/main_inner 1u32 1u32 into r3 r4; + async main r2 r4 into r5; + output r2 as u32.private; + output r5 as basic.aleo/main.future; + +finalize main: + input r0 as u32.public; + input r1 as test.aleo/main_inner.future; + await r1; + assert.eq r0 1u32; + +""", dce_ast = "ef3d06f7a3ed3bba09c3fda4378aaa2f700384fc28e5d8c3751633bbc03f9f4e", destructured_ast = "a94ba575cc25982052a729a8a1b8fa3560a0043b305cf4dede91d17a71202fcb", errors = "", flattened_ast = "a9988b6cbd9cb03bc49e6850084531888e0cc04e456496fe7eff390812d39611", initial_ast = "90315edede362afca47bb3f8c861ab8bbbdb049ea56db7ebbbf8f20ce60aeb4a", initial_symbol_table = "e68fd2fbfc3ff3832375c1c2df1e6a67787480498938fc77e766ca07ae751992", inlined_ast = "7a6d98c84ce9a50bd944f11bca3d98f8262ab57b55fcc7f15537650b3d4bc6ef", ssa_ast = "80086e21c3779f9da4b57c755eedf9132709a1edc63644ef4ec574ce047b076f", type_checked_symbol_table = "a3dbe89fee3c01d1a1798775bd34ee5e9a160d9a31bc223cf8d949ad08310b43", unrolled_ast = "6541d8c338b4eeb027aedd7c9151f3eac30d61ab2986d22a008ef5bd4a67ffc7", unrolled_symbol_table = "a3dbe89fee3c01d1a1798775bd34ee5e9a160d9a31bc223cf8d949ad08310b43", warnings = "" }, ] }]] diff --git a/tests/expectations/compiler/group/add.out b/tests/expectations/compiler/group/add.out index 569ab68259..ea057b0e21 100644 --- a/tests/expectations/compiler/group/add.out +++ b/tests/expectations/compiler/group/add.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e5ff5cd670d0f32a96530eeba1b403bf2d6d5ff8ed31f4328227bb8857708f76", dce_ast = "4e8db25dab7205a57c3ec607b066947bbdd59a1351ca7d831588a0a4965bd51c", destructured_ast = "4e8db25dab7205a57c3ec607b066947bbdd59a1351ca7d831588a0a4965bd51c", errors = "", flattened_ast = "2f93017a99f8aa024c4a63144d80f4736c1c1ba5250cfc08e69942bbe66d5fc0", initial_ast = "53ccff6fd63b4ecdb0bc0af77bd239f221cb60a452e1de6a304c424f401ce0f8", initial_symbol_table = "b195a063e94fadef1c06b657c5872bed8ebc9c0460b804956fdfab56177ac367", inlined_ast = "4e8db25dab7205a57c3ec607b066947bbdd59a1351ca7d831588a0a4965bd51c", ssa_ast = "49647b0f3d05fc59eca5611e5d4a0458980af0e18291fd5d52e67b43487823cb", type_checked_symbol_table = "73c9bae0f71db581746da0c4fb95642bd16187a982e828b59dd7662a81c4fd74", unrolled_ast = "53ccff6fd63b4ecdb0bc0af77bd239f221cb60a452e1de6a304c424f401ce0f8", unrolled_symbol_table = "73c9bae0f71db581746da0c4fb95642bd16187a982e828b59dd7662a81c4fd74", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as group.private; + input r1 as group.private; + input r2 as group.private; + add r0 r1 into r3; + is.eq r3 r2 into r4; + assert.eq r4 true; + add r0 r1 into r5; + is.eq r5 r2 into r6; + output r6 as boolean.private; +""", dce_ast = "4e8db25dab7205a57c3ec607b066947bbdd59a1351ca7d831588a0a4965bd51c", destructured_ast = "4e8db25dab7205a57c3ec607b066947bbdd59a1351ca7d831588a0a4965bd51c", errors = "", flattened_ast = "2f93017a99f8aa024c4a63144d80f4736c1c1ba5250cfc08e69942bbe66d5fc0", initial_ast = "53ccff6fd63b4ecdb0bc0af77bd239f221cb60a452e1de6a304c424f401ce0f8", initial_symbol_table = "b195a063e94fadef1c06b657c5872bed8ebc9c0460b804956fdfab56177ac367", inlined_ast = "4e8db25dab7205a57c3ec607b066947bbdd59a1351ca7d831588a0a4965bd51c", ssa_ast = "49647b0f3d05fc59eca5611e5d4a0458980af0e18291fd5d52e67b43487823cb", type_checked_symbol_table = "73c9bae0f71db581746da0c4fb95642bd16187a982e828b59dd7662a81c4fd74", unrolled_ast = "53ccff6fd63b4ecdb0bc0af77bd239f221cb60a452e1de6a304c424f401ce0f8", unrolled_symbol_table = "73c9bae0f71db581746da0c4fb95642bd16187a982e828b59dd7662a81c4fd74", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/assert_eq.out b/tests/expectations/compiler/group/assert_eq.out index e8b08b9195..f880ae569c 100644 --- a/tests/expectations/compiler/group/assert_eq.out +++ b/tests/expectations/compiler/group/assert_eq.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "eb0861b61cc665bd3edf10993c284116f86a8853e5c44847b4f0ec2d99fd6c3f", dce_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", destructured_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", errors = "", flattened_ast = "06fa43912720e9ab24ed6a119cb4e6c18ad5f1d0a5dc0d91397874cab6fe0d0b", initial_ast = "1b6580de73329de10faa67c92f1d27b4c29c7df60b154fa566e239c070ff5c5e", initial_symbol_table = "86d6113b6277211f15f11f56a2d2cd18df578e8710f5135b0723d36c9f599abd", inlined_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", ssa_ast = "6cc7748c48e7bab9eddaaddea8be256155058affad07e8bb956d93dc98bd092b", type_checked_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", unrolled_ast = "1b6580de73329de10faa67c92f1d27b4c29c7df60b154fa566e239c070ff5c5e", unrolled_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as group.private; + input r1 as group.private; + is.eq r0 r1 into r2; + assert.eq r2 true; + is.eq r0 r1 into r3; + output r3 as boolean.private; +""", dce_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", destructured_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", errors = "", flattened_ast = "06fa43912720e9ab24ed6a119cb4e6c18ad5f1d0a5dc0d91397874cab6fe0d0b", initial_ast = "1b6580de73329de10faa67c92f1d27b4c29c7df60b154fa566e239c070ff5c5e", initial_symbol_table = "86d6113b6277211f15f11f56a2d2cd18df578e8710f5135b0723d36c9f599abd", inlined_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", ssa_ast = "6cc7748c48e7bab9eddaaddea8be256155058affad07e8bb956d93dc98bd092b", type_checked_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", unrolled_ast = "1b6580de73329de10faa67c92f1d27b4c29c7df60b154fa566e239c070ff5c5e", unrolled_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/eq.out b/tests/expectations/compiler/group/eq.out index e8b08b9195..f880ae569c 100644 --- a/tests/expectations/compiler/group/eq.out +++ b/tests/expectations/compiler/group/eq.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "eb0861b61cc665bd3edf10993c284116f86a8853e5c44847b4f0ec2d99fd6c3f", dce_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", destructured_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", errors = "", flattened_ast = "06fa43912720e9ab24ed6a119cb4e6c18ad5f1d0a5dc0d91397874cab6fe0d0b", initial_ast = "1b6580de73329de10faa67c92f1d27b4c29c7df60b154fa566e239c070ff5c5e", initial_symbol_table = "86d6113b6277211f15f11f56a2d2cd18df578e8710f5135b0723d36c9f599abd", inlined_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", ssa_ast = "6cc7748c48e7bab9eddaaddea8be256155058affad07e8bb956d93dc98bd092b", type_checked_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", unrolled_ast = "1b6580de73329de10faa67c92f1d27b4c29c7df60b154fa566e239c070ff5c5e", unrolled_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as group.private; + input r1 as group.private; + is.eq r0 r1 into r2; + assert.eq r2 true; + is.eq r0 r1 into r3; + output r3 as boolean.private; +""", dce_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", destructured_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", errors = "", flattened_ast = "06fa43912720e9ab24ed6a119cb4e6c18ad5f1d0a5dc0d91397874cab6fe0d0b", initial_ast = "1b6580de73329de10faa67c92f1d27b4c29c7df60b154fa566e239c070ff5c5e", initial_symbol_table = "86d6113b6277211f15f11f56a2d2cd18df578e8710f5135b0723d36c9f599abd", inlined_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", ssa_ast = "6cc7748c48e7bab9eddaaddea8be256155058affad07e8bb956d93dc98bd092b", type_checked_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", unrolled_ast = "1b6580de73329de10faa67c92f1d27b4c29c7df60b154fa566e239c070ff5c5e", unrolled_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/group_mul.out b/tests/expectations/compiler/group/group_mul.out index 52ab445ec3..2586462ab1 100644 --- a/tests/expectations/compiler/group/group_mul.out +++ b/tests/expectations/compiler/group/group_mul.out @@ -1,3 +1,17 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "893927d508e10659ff793c68266c2702a5002dab713b22c8e5d00abec91925e7", dce_ast = "7d9ea267543a0c4e333ccd18e48d607d8daddcfefb1413145c67aad50ba0d516", destructured_ast = "92b2dfc0c1558bd9d858c1a0b8a0ebc82358cd1d5c7ecf3565a85686a18b7411", errors = "", flattened_ast = "73ef2575140139c704d6c6492ba5cf5e19bccf490e010f116eec2a68b28c77a1", initial_ast = "d1c4c6672dc185e8755c9911ceae0b1a45f10f064a9b6d1f164799a2a5d45534", initial_symbol_table = "95edd6b4d38b52bc1ae9148b35110cd2849c0c90f59703d18737077bdb6cd3f8", inlined_ast = "92b2dfc0c1558bd9d858c1a0b8a0ebc82358cd1d5c7ecf3565a85686a18b7411", ssa_ast = "69eca3bd0e2e74cd650cb4265d4cdf64420a0798290aefb5775321b68ca8e52f", type_checked_symbol_table = "e1e7d71c556aa3a80cdabc3b9d974d718873a9279444e432d1b14bd573b45c1b", unrolled_ast = "d1c4c6672dc185e8755c9911ceae0b1a45f10f064a9b6d1f164799a2a5d45534", unrolled_symbol_table = "e1e7d71c556aa3a80cdabc3b9d974d718873a9279444e432d1b14bd573b45c1b", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as scalar.private; + input r1 as group.private; + input r2 as scalar.private; + mul 1817767092074430972953743941103352519057913259183777531581123188265134806220group r0 into r3; + mul r0 r1 into r4; + mul r0 r4 into r5; + is.eq r5 r3 into r6; + output r6 as boolean.private; +""", dce_ast = "7d9ea267543a0c4e333ccd18e48d607d8daddcfefb1413145c67aad50ba0d516", destructured_ast = "92b2dfc0c1558bd9d858c1a0b8a0ebc82358cd1d5c7ecf3565a85686a18b7411", errors = "", flattened_ast = "73ef2575140139c704d6c6492ba5cf5e19bccf490e010f116eec2a68b28c77a1", initial_ast = "d1c4c6672dc185e8755c9911ceae0b1a45f10f064a9b6d1f164799a2a5d45534", initial_symbol_table = "95edd6b4d38b52bc1ae9148b35110cd2849c0c90f59703d18737077bdb6cd3f8", inlined_ast = "92b2dfc0c1558bd9d858c1a0b8a0ebc82358cd1d5c7ecf3565a85686a18b7411", ssa_ast = "69eca3bd0e2e74cd650cb4265d4cdf64420a0798290aefb5775321b68ca8e52f", type_checked_symbol_table = "e1e7d71c556aa3a80cdabc3b9d974d718873a9279444e432d1b14bd573b45c1b", unrolled_ast = "d1c4c6672dc185e8755c9911ceae0b1a45f10f064a9b6d1f164799a2a5d45534", unrolled_symbol_table = "e1e7d71c556aa3a80cdabc3b9d974d718873a9279444e432d1b14bd573b45c1b", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/input.out b/tests/expectations/compiler/group/input.out index e8b08b9195..f880ae569c 100644 --- a/tests/expectations/compiler/group/input.out +++ b/tests/expectations/compiler/group/input.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "eb0861b61cc665bd3edf10993c284116f86a8853e5c44847b4f0ec2d99fd6c3f", dce_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", destructured_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", errors = "", flattened_ast = "06fa43912720e9ab24ed6a119cb4e6c18ad5f1d0a5dc0d91397874cab6fe0d0b", initial_ast = "1b6580de73329de10faa67c92f1d27b4c29c7df60b154fa566e239c070ff5c5e", initial_symbol_table = "86d6113b6277211f15f11f56a2d2cd18df578e8710f5135b0723d36c9f599abd", inlined_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", ssa_ast = "6cc7748c48e7bab9eddaaddea8be256155058affad07e8bb956d93dc98bd092b", type_checked_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", unrolled_ast = "1b6580de73329de10faa67c92f1d27b4c29c7df60b154fa566e239c070ff5c5e", unrolled_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as group.private; + input r1 as group.private; + is.eq r0 r1 into r2; + assert.eq r2 true; + is.eq r0 r1 into r3; + output r3 as boolean.private; +""", dce_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", destructured_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", errors = "", flattened_ast = "06fa43912720e9ab24ed6a119cb4e6c18ad5f1d0a5dc0d91397874cab6fe0d0b", initial_ast = "1b6580de73329de10faa67c92f1d27b4c29c7df60b154fa566e239c070ff5c5e", initial_symbol_table = "86d6113b6277211f15f11f56a2d2cd18df578e8710f5135b0723d36c9f599abd", inlined_ast = "be1ceff66cde97f7f51ccef6b85d7f0a2cfc2423641803eb54c8a68cc4f876b2", ssa_ast = "6cc7748c48e7bab9eddaaddea8be256155058affad07e8bb956d93dc98bd092b", type_checked_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", unrolled_ast = "1b6580de73329de10faa67c92f1d27b4c29c7df60b154fa566e239c070ff5c5e", unrolled_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/mul.out b/tests/expectations/compiler/group/mul.out index d5c9356a0f..3e714f2653 100644 --- a/tests/expectations/compiler/group/mul.out +++ b/tests/expectations/compiler/group/mul.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "5ae93b430e99846cd18eedb09361257138ec9e2708bdb12c5f8de43ee470c031", dce_ast = "6ff124d4658e2031b2fddff9c8040b152e42ac53e29dd9466bf2f3f22dca839a", destructured_ast = "6ff124d4658e2031b2fddff9c8040b152e42ac53e29dd9466bf2f3f22dca839a", errors = "", flattened_ast = "3fc29f8537f766907dc1c304627f52271d76b3008a26a9e00c4a44caa6a644dc", initial_ast = "4689239079a0aeca79a29a6c57554dce8bf73e82f2c283bfb74e1c1931d8cc9b", initial_symbol_table = "b4603cce49e2a73039e43471c5df2351921bf489a622b2a8461cb5d0251683a8", inlined_ast = "6ff124d4658e2031b2fddff9c8040b152e42ac53e29dd9466bf2f3f22dca839a", ssa_ast = "bbf850eabfff9caa4798a7a7bc772d1dd30b7b22f7d810e7490aa06c4c86163f", type_checked_symbol_table = "40496ec84e0fd12af6043a2a054f6535ca530eebc156096d7b2262ec53dc3cd0", unrolled_ast = "4689239079a0aeca79a29a6c57554dce8bf73e82f2c283bfb74e1c1931d8cc9b", unrolled_symbol_table = "40496ec84e0fd12af6043a2a054f6535ca530eebc156096d7b2262ec53dc3cd0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as scalar.private; + input r1 as group.private; + mul r0 r1 into r2; + output r2 as group.private; +""", dce_ast = "6ff124d4658e2031b2fddff9c8040b152e42ac53e29dd9466bf2f3f22dca839a", destructured_ast = "6ff124d4658e2031b2fddff9c8040b152e42ac53e29dd9466bf2f3f22dca839a", errors = "", flattened_ast = "3fc29f8537f766907dc1c304627f52271d76b3008a26a9e00c4a44caa6a644dc", initial_ast = "4689239079a0aeca79a29a6c57554dce8bf73e82f2c283bfb74e1c1931d8cc9b", initial_symbol_table = "b4603cce49e2a73039e43471c5df2351921bf489a622b2a8461cb5d0251683a8", inlined_ast = "6ff124d4658e2031b2fddff9c8040b152e42ac53e29dd9466bf2f3f22dca839a", ssa_ast = "bbf850eabfff9caa4798a7a7bc772d1dd30b7b22f7d810e7490aa06c4c86163f", type_checked_symbol_table = "40496ec84e0fd12af6043a2a054f6535ca530eebc156096d7b2262ec53dc3cd0", unrolled_ast = "4689239079a0aeca79a29a6c57554dce8bf73e82f2c283bfb74e1c1931d8cc9b", unrolled_symbol_table = "40496ec84e0fd12af6043a2a054f6535ca530eebc156096d7b2262ec53dc3cd0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/mult_by_scalar.out b/tests/expectations/compiler/group/mult_by_scalar.out index a8882684e5..3bbd889ac0 100644 --- a/tests/expectations/compiler/group/mult_by_scalar.out +++ b/tests/expectations/compiler/group/mult_by_scalar.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "8d98c485074bce1870f038811bfa40e7910f16e7e489f22263f9b1816b1e2d8c", dce_ast = "56026c40e8cf5ce7923645889287fa2a426a92781ff9b6fd31b1f66a04f125ae", destructured_ast = "56026c40e8cf5ce7923645889287fa2a426a92781ff9b6fd31b1f66a04f125ae", errors = "", flattened_ast = "ef31ce530d35a160d8b1c8b844f2b53b5775e63014181ab57490dafa55b9c847", initial_ast = "64f83d84a228940a89cfab4d6e7f3ae8c6ccaa1ba7cdcab45f27fd7514f40746", initial_symbol_table = "3a9a0ba6ea861ff989eb097197b98a508fa71fe6cce5b36901be680fa786ecc5", inlined_ast = "56026c40e8cf5ce7923645889287fa2a426a92781ff9b6fd31b1f66a04f125ae", ssa_ast = "8ea933d83175a83b0e722497effd993d5587c3da1c52a5b44e41bc23ece99b98", type_checked_symbol_table = "564813476bd45e015eb239004b64ec475451d1db8a67f87984a76ae4288e226a", unrolled_ast = "64f83d84a228940a89cfab4d6e7f3ae8c6ccaa1ba7cdcab45f27fd7514f40746", unrolled_symbol_table = "564813476bd45e015eb239004b64ec475451d1db8a67f87984a76ae4288e226a", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as group.private; + mul 1scalar r0 into r1; + output r1 as group.private; +""", dce_ast = "56026c40e8cf5ce7923645889287fa2a426a92781ff9b6fd31b1f66a04f125ae", destructured_ast = "56026c40e8cf5ce7923645889287fa2a426a92781ff9b6fd31b1f66a04f125ae", errors = "", flattened_ast = "ef31ce530d35a160d8b1c8b844f2b53b5775e63014181ab57490dafa55b9c847", initial_ast = "64f83d84a228940a89cfab4d6e7f3ae8c6ccaa1ba7cdcab45f27fd7514f40746", initial_symbol_table = "3a9a0ba6ea861ff989eb097197b98a508fa71fe6cce5b36901be680fa786ecc5", inlined_ast = "56026c40e8cf5ce7923645889287fa2a426a92781ff9b6fd31b1f66a04f125ae", ssa_ast = "8ea933d83175a83b0e722497effd993d5587c3da1c52a5b44e41bc23ece99b98", type_checked_symbol_table = "564813476bd45e015eb239004b64ec475451d1db8a67f87984a76ae4288e226a", unrolled_ast = "64f83d84a228940a89cfab4d6e7f3ae8c6ccaa1ba7cdcab45f27fd7514f40746", unrolled_symbol_table = "564813476bd45e015eb239004b64ec475451d1db8a67f87984a76ae4288e226a", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/negate.out b/tests/expectations/compiler/group/negate.out index c06e725d1f..3db2338737 100644 --- a/tests/expectations/compiler/group/negate.out +++ b/tests/expectations/compiler/group/negate.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "0d7662a131d11ba04a4f945b24906a6f1899ac4260e423cc48aadd781371d3f5", dce_ast = "fd98288a4891a79dd82fd5a033cfb7915a2ee93563957a3d68088b5e597f196b", destructured_ast = "fd98288a4891a79dd82fd5a033cfb7915a2ee93563957a3d68088b5e597f196b", errors = "", flattened_ast = "3d047394c4ebce0e9f38aa0c762781ad92fe26f5a834309c3a79d7f871e03bcf", initial_ast = "431ac4843732eb1f1967e292f14fa1fcd6d1ae802bbe7e852803841b0ddd4c04", initial_symbol_table = "86d6113b6277211f15f11f56a2d2cd18df578e8710f5135b0723d36c9f599abd", inlined_ast = "fd98288a4891a79dd82fd5a033cfb7915a2ee93563957a3d68088b5e597f196b", ssa_ast = "8e1a60195d0a265423ac4c187f73ad26288c990fdd3f9d8a4f8e3832ee824cb3", type_checked_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", unrolled_ast = "431ac4843732eb1f1967e292f14fa1fcd6d1ae802bbe7e852803841b0ddd4c04", unrolled_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as group.private; + input r1 as group.private; + neg r0 into r2; + is.eq r2 r1 into r3; + assert.eq r3 true; + is.neq r0 -2group into r4; + assert.eq r4 true; + neg r0 into r5; + is.eq r5 r1 into r6; + output r6 as boolean.private; +""", dce_ast = "fd98288a4891a79dd82fd5a033cfb7915a2ee93563957a3d68088b5e597f196b", destructured_ast = "fd98288a4891a79dd82fd5a033cfb7915a2ee93563957a3d68088b5e597f196b", errors = "", flattened_ast = "3d047394c4ebce0e9f38aa0c762781ad92fe26f5a834309c3a79d7f871e03bcf", initial_ast = "431ac4843732eb1f1967e292f14fa1fcd6d1ae802bbe7e852803841b0ddd4c04", initial_symbol_table = "86d6113b6277211f15f11f56a2d2cd18df578e8710f5135b0723d36c9f599abd", inlined_ast = "fd98288a4891a79dd82fd5a033cfb7915a2ee93563957a3d68088b5e597f196b", ssa_ast = "8e1a60195d0a265423ac4c187f73ad26288c990fdd3f9d8a4f8e3832ee824cb3", type_checked_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", unrolled_ast = "431ac4843732eb1f1967e292f14fa1fcd6d1ae802bbe7e852803841b0ddd4c04", unrolled_symbol_table = "64400d0cd99e83db706c03cd38c864ee18fe246a0f5024a2681d461321c3ce6a", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/operator_methods.out b/tests/expectations/compiler/group/operator_methods.out index fd824bdd83..e18342cc2e 100644 --- a/tests/expectations/compiler/group/operator_methods.out +++ b/tests/expectations/compiler/group/operator_methods.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f8f1b8520fc2b0b64155f840db31d03aeee1afecd309f7a4be10038ee72fc5ea", dce_ast = "232230e71ca8f2f98423f7e382d3ec7897f6a72d8450158f2bbd4983cfdf6bba", destructured_ast = "e37b3cd5653dde891a55134c9073ca66627e194ed6b3fd6842544510136035e7", errors = "", flattened_ast = "fafce6cb12679320397f2410b2433c52d3426f7c0f5e841339b036cf8f20211a", initial_ast = "26f734e743c834cdddbf7870b7f008b9f431a385bf399389f30d2e41687c42b1", initial_symbol_table = "86d6113b6277211f15f11f56a2d2cd18df578e8710f5135b0723d36c9f599abd", inlined_ast = "e37b3cd5653dde891a55134c9073ca66627e194ed6b3fd6842544510136035e7", ssa_ast = "2a2483edd24e9001227c4c99a036161f2e904cbe1e9339154f5b38194a9bc108", type_checked_symbol_table = "7d77568c28538c2456f0dd6bf27186a4be40b96b29cd27a994b023c13bee311e", unrolled_ast = "26f734e743c834cdddbf7870b7f008b9f431a385bf399389f30d2e41687c42b1", unrolled_symbol_table = "7d77568c28538c2456f0dd6bf27186a4be40b96b29cd27a994b023c13bee311e", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as group.private; + input r1 as group.private; + is.eq r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "232230e71ca8f2f98423f7e382d3ec7897f6a72d8450158f2bbd4983cfdf6bba", destructured_ast = "e37b3cd5653dde891a55134c9073ca66627e194ed6b3fd6842544510136035e7", errors = "", flattened_ast = "fafce6cb12679320397f2410b2433c52d3426f7c0f5e841339b036cf8f20211a", initial_ast = "26f734e743c834cdddbf7870b7f008b9f431a385bf399389f30d2e41687c42b1", initial_symbol_table = "86d6113b6277211f15f11f56a2d2cd18df578e8710f5135b0723d36c9f599abd", inlined_ast = "e37b3cd5653dde891a55134c9073ca66627e194ed6b3fd6842544510136035e7", ssa_ast = "2a2483edd24e9001227c4c99a036161f2e904cbe1e9339154f5b38194a9bc108", type_checked_symbol_table = "7d77568c28538c2456f0dd6bf27186a4be40b96b29cd27a994b023c13bee311e", unrolled_ast = "26f734e743c834cdddbf7870b7f008b9f431a385bf399389f30d2e41687c42b1", unrolled_symbol_table = "7d77568c28538c2456f0dd6bf27186a4be40b96b29cd27a994b023c13bee311e", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/point_input.out b/tests/expectations/compiler/group/point_input.out index 066d512b41..ca8e9b3f46 100644 --- a/tests/expectations/compiler/group/point_input.out +++ b/tests/expectations/compiler/group/point_input.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e7f080384059049f2c24ec0a010b5ec6b055497b51b78d736a5e2e8fa7b441eb", dce_ast = "c606febcfe2a61fb26c23ae399916c0b546c3a328ee1a6586fd56ff392c7e806", destructured_ast = "c606febcfe2a61fb26c23ae399916c0b546c3a328ee1a6586fd56ff392c7e806", errors = "", flattened_ast = "eeae8377846e994279413c0e734d8f58f3b3e51ddf867c71f4d1e298da90b763", initial_ast = "23bd06a9caaee457acb0a9f0866a6a649626e8eaf0a0bb8b3957f7233ef6bd11", initial_symbol_table = "6246af416dc46ede0bd79789b9b3490b49cbd3da23fe30624c4b9fbc54f59de9", inlined_ast = "c606febcfe2a61fb26c23ae399916c0b546c3a328ee1a6586fd56ff392c7e806", ssa_ast = "d48d0d28b458729afd3befacf63b29754be219e5aa05100e1413b0697d0c9f14", type_checked_symbol_table = "5b5ac0a65365f5b7e8e0b221867c494133b2fcf0c1ffdd5052cbab8d77aaf3ea", unrolled_ast = "23bd06a9caaee457acb0a9f0866a6a649626e8eaf0a0bb8b3957f7233ef6bd11", unrolled_symbol_table = "5b5ac0a65365f5b7e8e0b221867c494133b2fcf0c1ffdd5052cbab8d77aaf3ea", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as group.private; + is.eq r0 0group into r1; + output r1 as boolean.private; +""", dce_ast = "c606febcfe2a61fb26c23ae399916c0b546c3a328ee1a6586fd56ff392c7e806", destructured_ast = "c606febcfe2a61fb26c23ae399916c0b546c3a328ee1a6586fd56ff392c7e806", errors = "", flattened_ast = "eeae8377846e994279413c0e734d8f58f3b3e51ddf867c71f4d1e298da90b763", initial_ast = "23bd06a9caaee457acb0a9f0866a6a649626e8eaf0a0bb8b3957f7233ef6bd11", initial_symbol_table = "6246af416dc46ede0bd79789b9b3490b49cbd3da23fe30624c4b9fbc54f59de9", inlined_ast = "c606febcfe2a61fb26c23ae399916c0b546c3a328ee1a6586fd56ff392c7e806", ssa_ast = "d48d0d28b458729afd3befacf63b29754be219e5aa05100e1413b0697d0c9f14", type_checked_symbol_table = "5b5ac0a65365f5b7e8e0b221867c494133b2fcf0c1ffdd5052cbab8d77aaf3ea", unrolled_ast = "23bd06a9caaee457acb0a9f0866a6a649626e8eaf0a0bb8b3957f7233ef6bd11", unrolled_symbol_table = "5b5ac0a65365f5b7e8e0b221867c494133b2fcf0c1ffdd5052cbab8d77aaf3ea", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/sub.out b/tests/expectations/compiler/group/sub.out index d01bcffb00..e876cf3ec0 100644 --- a/tests/expectations/compiler/group/sub.out +++ b/tests/expectations/compiler/group/sub.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "cab98d3ba5835201a8db5ce82ab32e51dc68f37a01156374e2f00a8bcbd82308", dce_ast = "2a39bee4074a8eaa5776ee975411f41a714a09e5257b4145415364dfb791d08b", destructured_ast = "2a39bee4074a8eaa5776ee975411f41a714a09e5257b4145415364dfb791d08b", errors = "", flattened_ast = "01b87aae812c33d594dbdf36efe7101a30942fd084b1d69ad04ab73d970601ab", initial_ast = "c82a79d16151cbdcd822403ad8f763fcdbbb0f95fcb2f2ad367ff84d83b7088d", initial_symbol_table = "b195a063e94fadef1c06b657c5872bed8ebc9c0460b804956fdfab56177ac367", inlined_ast = "2a39bee4074a8eaa5776ee975411f41a714a09e5257b4145415364dfb791d08b", ssa_ast = "573a08fc6569fd4e7ccd86cd6cfabf84769244776466de7d7180e28ba2e831c0", type_checked_symbol_table = "73c9bae0f71db581746da0c4fb95642bd16187a982e828b59dd7662a81c4fd74", unrolled_ast = "c82a79d16151cbdcd822403ad8f763fcdbbb0f95fcb2f2ad367ff84d83b7088d", unrolled_symbol_table = "73c9bae0f71db581746da0c4fb95642bd16187a982e828b59dd7662a81c4fd74", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as group.private; + input r1 as group.private; + input r2 as group.private; + sub r0 r1 into r3; + is.eq r3 r2 into r4; + assert.eq r4 true; + sub r0 r1 into r5; + is.eq r5 r2 into r6; + output r6 as boolean.private; +""", dce_ast = "2a39bee4074a8eaa5776ee975411f41a714a09e5257b4145415364dfb791d08b", destructured_ast = "2a39bee4074a8eaa5776ee975411f41a714a09e5257b4145415364dfb791d08b", errors = "", flattened_ast = "01b87aae812c33d594dbdf36efe7101a30942fd084b1d69ad04ab73d970601ab", initial_ast = "c82a79d16151cbdcd822403ad8f763fcdbbb0f95fcb2f2ad367ff84d83b7088d", initial_symbol_table = "b195a063e94fadef1c06b657c5872bed8ebc9c0460b804956fdfab56177ac367", inlined_ast = "2a39bee4074a8eaa5776ee975411f41a714a09e5257b4145415364dfb791d08b", ssa_ast = "573a08fc6569fd4e7ccd86cd6cfabf84769244776466de7d7180e28ba2e831c0", type_checked_symbol_table = "73c9bae0f71db581746da0c4fb95642bd16187a982e828b59dd7662a81c4fd74", unrolled_ast = "c82a79d16151cbdcd822403ad8f763fcdbbb0f95fcb2f2ad367ff84d83b7088d", unrolled_symbol_table = "73c9bae0f71db581746da0c4fb95642bd16187a982e828b59dd7662a81c4fd74", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/ternary.out b/tests/expectations/compiler/group/ternary.out index a7b3e2f3b1..79e4340140 100644 --- a/tests/expectations/compiler/group/ternary.out +++ b/tests/expectations/compiler/group/ternary.out @@ -1,3 +1,17 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "d60be9014c6563fb9bb800891ce6238d2f99473faf47c92cf99893ad1474a64e", dce_ast = "66ed03637c8aef4acaa5b1c735f1550d898faafe0b5999708a6d75cb02166b6a", destructured_ast = "66ed03637c8aef4acaa5b1c735f1550d898faafe0b5999708a6d75cb02166b6a", errors = "", flattened_ast = "f1ba9eaf698f1e2fc703b9ac7e158837cc7636667fe82e135f7350421e47d0c0", initial_ast = "3a4b5cc4267b6b323c4cc6b14e86694165e066133bc1fc2709d2bbf1036d0def", initial_symbol_table = "b195a063e94fadef1c06b657c5872bed8ebc9c0460b804956fdfab56177ac367", inlined_ast = "66ed03637c8aef4acaa5b1c735f1550d898faafe0b5999708a6d75cb02166b6a", ssa_ast = "62d476da8c7d7e6e4dcdee879f591954c4f32812b473eebfff9a949d6ce6bbe6", type_checked_symbol_table = "005b2160dc4780a6a083ea81c323461b054fe56b652adacd49985b8536a193a1", unrolled_ast = "3a4b5cc4267b6b323c4cc6b14e86694165e066133bc1fc2709d2bbf1036d0def", unrolled_symbol_table = "005b2160dc4780a6a083ea81c323461b054fe56b652adacd49985b8536a193a1", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as group.private; + input r1 as group.private; + input r2 as group.private; + ternary true r0 r1 into r3; + is.eq r3 r2 into r4; + assert.eq r4 true; + is.eq r3 r2 into r5; + output r5 as boolean.private; +""", dce_ast = "66ed03637c8aef4acaa5b1c735f1550d898faafe0b5999708a6d75cb02166b6a", destructured_ast = "66ed03637c8aef4acaa5b1c735f1550d898faafe0b5999708a6d75cb02166b6a", errors = "", flattened_ast = "f1ba9eaf698f1e2fc703b9ac7e158837cc7636667fe82e135f7350421e47d0c0", initial_ast = "3a4b5cc4267b6b323c4cc6b14e86694165e066133bc1fc2709d2bbf1036d0def", initial_symbol_table = "b195a063e94fadef1c06b657c5872bed8ebc9c0460b804956fdfab56177ac367", inlined_ast = "66ed03637c8aef4acaa5b1c735f1550d898faafe0b5999708a6d75cb02166b6a", ssa_ast = "62d476da8c7d7e6e4dcdee879f591954c4f32812b473eebfff9a949d6ce6bbe6", type_checked_symbol_table = "005b2160dc4780a6a083ea81c323461b054fe56b652adacd49985b8536a193a1", unrolled_ast = "3a4b5cc4267b6b323c4cc6b14e86694165e066133bc1fc2709d2bbf1036d0def", unrolled_symbol_table = "005b2160dc4780a6a083ea81c323461b054fe56b652adacd49985b8536a193a1", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/to_x_coordinate.out b/tests/expectations/compiler/group/to_x_coordinate.out index 505a5d6e89..e4b6f2516a 100644 --- a/tests/expectations/compiler/group/to_x_coordinate.out +++ b/tests/expectations/compiler/group/to_x_coordinate.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "51e95e10668242bec30e9917715d9856da632e933c33207ee41c5ed38d6366aa", dce_ast = "8762ebc07b19bbcb9961fc23acb584cb91daf52787426b6bcf55a9cbdee8ce10", destructured_ast = "4216762e4492a408c2809e521eba457d96d3b7cd7b6093cde3cbeab06a43fd07", errors = "", flattened_ast = "a932fc45f884624db67fe5948600384c7aa5bff863a181bc13f06c4ca4f79b66", initial_ast = "676d71376bf2a1df04b89f06274de446d2e28b3036ffd0bb11140ab52503d3c8", initial_symbol_table = "ed102d6070e08fab26ba65e42a47b8e94b39279ac3a93d2f1a5161213a808156", inlined_ast = "4216762e4492a408c2809e521eba457d96d3b7cd7b6093cde3cbeab06a43fd07", ssa_ast = "c7221fce1a07017b44db28e701c14fd1046de2272e2ef49333db2eb2e10f6a6a", type_checked_symbol_table = "791b325f87fca65c6e88162d087200b74a8285b1b9b1f4d46a0af85aa1cac94b", unrolled_ast = "676d71376bf2a1df04b89f06274de446d2e28b3036ffd0bb11140ab52503d3c8", unrolled_symbol_table = "791b325f87fca65c6e88162d087200b74a8285b1b9b1f4d46a0af85aa1cac94b", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as group.private; + cast r0 into r1 as group.x; + output r1 as field.private; +""", dce_ast = "8762ebc07b19bbcb9961fc23acb584cb91daf52787426b6bcf55a9cbdee8ce10", destructured_ast = "4216762e4492a408c2809e521eba457d96d3b7cd7b6093cde3cbeab06a43fd07", errors = "", flattened_ast = "a932fc45f884624db67fe5948600384c7aa5bff863a181bc13f06c4ca4f79b66", initial_ast = "676d71376bf2a1df04b89f06274de446d2e28b3036ffd0bb11140ab52503d3c8", initial_symbol_table = "ed102d6070e08fab26ba65e42a47b8e94b39279ac3a93d2f1a5161213a808156", inlined_ast = "4216762e4492a408c2809e521eba457d96d3b7cd7b6093cde3cbeab06a43fd07", ssa_ast = "c7221fce1a07017b44db28e701c14fd1046de2272e2ef49333db2eb2e10f6a6a", type_checked_symbol_table = "791b325f87fca65c6e88162d087200b74a8285b1b9b1f4d46a0af85aa1cac94b", unrolled_ast = "676d71376bf2a1df04b89f06274de446d2e28b3036ffd0bb11140ab52503d3c8", unrolled_symbol_table = "791b325f87fca65c6e88162d087200b74a8285b1b9b1f4d46a0af85aa1cac94b", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/to_y_coordinate.out b/tests/expectations/compiler/group/to_y_coordinate.out index 14379a25db..5c0606390c 100644 --- a/tests/expectations/compiler/group/to_y_coordinate.out +++ b/tests/expectations/compiler/group/to_y_coordinate.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "ea2e94f0f589fac4565040575643b1b7cd7813fe513d5b09b17c191bbf0f727e", dce_ast = "89b21f088c668c849c8c4050663108f46b964cc81cad4f243ccb844150ee1d3e", destructured_ast = "c73f8fb9324fd05759a6b7231f4263a2ddef0df3cd42144472813dee671f87d8", errors = "", flattened_ast = "a791fe154beb662ea85c3180b5960fa7764bccdcd350f34043fa4d75dc85c344", initial_ast = "d483d7fd3eb931e6224542daa0b8d86b7241c1e96a3ef5a28a91a4c4839753c1", initial_symbol_table = "ed102d6070e08fab26ba65e42a47b8e94b39279ac3a93d2f1a5161213a808156", inlined_ast = "c73f8fb9324fd05759a6b7231f4263a2ddef0df3cd42144472813dee671f87d8", ssa_ast = "5dc07267a99edfc008039448a461c2a86120afcdcc1f358987169ae1fbe920cb", type_checked_symbol_table = "791b325f87fca65c6e88162d087200b74a8285b1b9b1f4d46a0af85aa1cac94b", unrolled_ast = "d483d7fd3eb931e6224542daa0b8d86b7241c1e96a3ef5a28a91a4c4839753c1", unrolled_symbol_table = "791b325f87fca65c6e88162d087200b74a8285b1b9b1f4d46a0af85aa1cac94b", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as group.private; + cast r0 into r1 as group.y; + output r1 as field.private; +""", dce_ast = "89b21f088c668c849c8c4050663108f46b964cc81cad4f243ccb844150ee1d3e", destructured_ast = "c73f8fb9324fd05759a6b7231f4263a2ddef0df3cd42144472813dee671f87d8", errors = "", flattened_ast = "a791fe154beb662ea85c3180b5960fa7764bccdcd350f34043fa4d75dc85c344", initial_ast = "d483d7fd3eb931e6224542daa0b8d86b7241c1e96a3ef5a28a91a4c4839753c1", initial_symbol_table = "ed102d6070e08fab26ba65e42a47b8e94b39279ac3a93d2f1a5161213a808156", inlined_ast = "c73f8fb9324fd05759a6b7231f4263a2ddef0df3cd42144472813dee671f87d8", ssa_ast = "5dc07267a99edfc008039448a461c2a86120afcdcc1f358987169ae1fbe920cb", type_checked_symbol_table = "791b325f87fca65c6e88162d087200b74a8285b1b9b1f4d46a0af85aa1cac94b", unrolled_ast = "d483d7fd3eb931e6224542daa0b8d86b7241c1e96a3ef5a28a91a4c4839753c1", unrolled_symbol_table = "791b325f87fca65c6e88162d087200b74a8285b1b9b1f4d46a0af85aa1cac94b", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/x_and_y.out b/tests/expectations/compiler/group/x_and_y.out index 797336a2b3..f7c2982be8 100644 --- a/tests/expectations/compiler/group/x_and_y.out +++ b/tests/expectations/compiler/group/x_and_y.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "c8688cd1fc15c816d4af483fa444f44414acb4b679b0165f9fb7093f77738f5a", dce_ast = "24ed7701ff5bc8daea7ced809e21c6bb7b90ec497e4fac6fcfecb61acd868836", destructured_ast = "24ed7701ff5bc8daea7ced809e21c6bb7b90ec497e4fac6fcfecb61acd868836", errors = "", flattened_ast = "ea3470c8284c0e5e5f92b0ef5504e90d97b596c4722b89fcb7267d6305026f66", initial_ast = "68afe9dc106303803b7ee3084a8a406d755d9d18d473b3830c5d39d7c520ea4e", initial_symbol_table = "13f721ce9f26cc63129064ed106144e5ad4798d2483335974dcef63c2b047875", inlined_ast = "24ed7701ff5bc8daea7ced809e21c6bb7b90ec497e4fac6fcfecb61acd868836", ssa_ast = "257ba6437ede6d72fa4a30ec158432088d3dc94b957bf1a2ac9fd4346d49bbda", type_checked_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", unrolled_ast = "68afe9dc106303803b7ee3084a8a406d755d9d18d473b3830c5d39d7c520ea4e", unrolled_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as scalar.private; + mul r0 0group into r1; + output r1 as group.private; +""", dce_ast = "24ed7701ff5bc8daea7ced809e21c6bb7b90ec497e4fac6fcfecb61acd868836", destructured_ast = "24ed7701ff5bc8daea7ced809e21c6bb7b90ec497e4fac6fcfecb61acd868836", errors = "", flattened_ast = "ea3470c8284c0e5e5f92b0ef5504e90d97b596c4722b89fcb7267d6305026f66", initial_ast = "68afe9dc106303803b7ee3084a8a406d755d9d18d473b3830c5d39d7c520ea4e", initial_symbol_table = "13f721ce9f26cc63129064ed106144e5ad4798d2483335974dcef63c2b047875", inlined_ast = "24ed7701ff5bc8daea7ced809e21c6bb7b90ec497e4fac6fcfecb61acd868836", ssa_ast = "257ba6437ede6d72fa4a30ec158432088d3dc94b957bf1a2ac9fd4346d49bbda", type_checked_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", unrolled_ast = "68afe9dc106303803b7ee3084a8a406d755d9d18d473b3830c5d39d7c520ea4e", unrolled_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/x_sign_high.out b/tests/expectations/compiler/group/x_sign_high.out index 198be13102..70bda83b2f 100644 --- a/tests/expectations/compiler/group/x_sign_high.out +++ b/tests/expectations/compiler/group/x_sign_high.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "c8688cd1fc15c816d4af483fa444f44414acb4b679b0165f9fb7093f77738f5a", dce_ast = "8b8dfa376e4b875577c17450f188cc6057a1f89cf836b0b6a371bfd58e342f4d", destructured_ast = "8b8dfa376e4b875577c17450f188cc6057a1f89cf836b0b6a371bfd58e342f4d", errors = "", flattened_ast = "8a78e0ab842b7b38b90bb7b3557d71ebf489ccd3f87f00aaa90472a31b1e7731", initial_ast = "fa897b5357a3d3acea29a21385813b2669d34c943c48bed0a7691e3b3e922ce3", initial_symbol_table = "13f721ce9f26cc63129064ed106144e5ad4798d2483335974dcef63c2b047875", inlined_ast = "8b8dfa376e4b875577c17450f188cc6057a1f89cf836b0b6a371bfd58e342f4d", ssa_ast = "f3d3314fc3bc3138d62b02405c9412e0a69856d30ec919eb356d466925d9de05", type_checked_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", unrolled_ast = "fa897b5357a3d3acea29a21385813b2669d34c943c48bed0a7691e3b3e922ce3", unrolled_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as scalar.private; + mul r0 0group into r1; + output r1 as group.private; +""", dce_ast = "8b8dfa376e4b875577c17450f188cc6057a1f89cf836b0b6a371bfd58e342f4d", destructured_ast = "8b8dfa376e4b875577c17450f188cc6057a1f89cf836b0b6a371bfd58e342f4d", errors = "", flattened_ast = "8a78e0ab842b7b38b90bb7b3557d71ebf489ccd3f87f00aaa90472a31b1e7731", initial_ast = "fa897b5357a3d3acea29a21385813b2669d34c943c48bed0a7691e3b3e922ce3", initial_symbol_table = "13f721ce9f26cc63129064ed106144e5ad4798d2483335974dcef63c2b047875", inlined_ast = "8b8dfa376e4b875577c17450f188cc6057a1f89cf836b0b6a371bfd58e342f4d", ssa_ast = "f3d3314fc3bc3138d62b02405c9412e0a69856d30ec919eb356d466925d9de05", type_checked_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", unrolled_ast = "fa897b5357a3d3acea29a21385813b2669d34c943c48bed0a7691e3b3e922ce3", unrolled_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/x_sign_inferred.out b/tests/expectations/compiler/group/x_sign_inferred.out index f1cf3f656d..f4b0cdd213 100644 --- a/tests/expectations/compiler/group/x_sign_inferred.out +++ b/tests/expectations/compiler/group/x_sign_inferred.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "c8688cd1fc15c816d4af483fa444f44414acb4b679b0165f9fb7093f77738f5a", dce_ast = "fadc791b284f6b2ba539416ee5f44ea31f8c3f00a301aee56333e0b7d01d0189", destructured_ast = "fadc791b284f6b2ba539416ee5f44ea31f8c3f00a301aee56333e0b7d01d0189", errors = "", flattened_ast = "ff26f857f1c756dd199b7484ba8748112f0f3a236a55fdf6106adb53e96ddbc1", initial_ast = "0f0fdae8467f508cdbadeec2eacffd01e4b26add2dc1b21e112c6c3b59667596", initial_symbol_table = "13f721ce9f26cc63129064ed106144e5ad4798d2483335974dcef63c2b047875", inlined_ast = "fadc791b284f6b2ba539416ee5f44ea31f8c3f00a301aee56333e0b7d01d0189", ssa_ast = "3febba2ab3c3333fde6b0fb8bcb53bcf7f2bf29b992d8e767107f776d6a56639", type_checked_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", unrolled_ast = "0f0fdae8467f508cdbadeec2eacffd01e4b26add2dc1b21e112c6c3b59667596", unrolled_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as scalar.private; + mul r0 0group into r1; + output r1 as group.private; +""", dce_ast = "fadc791b284f6b2ba539416ee5f44ea31f8c3f00a301aee56333e0b7d01d0189", destructured_ast = "fadc791b284f6b2ba539416ee5f44ea31f8c3f00a301aee56333e0b7d01d0189", errors = "", flattened_ast = "ff26f857f1c756dd199b7484ba8748112f0f3a236a55fdf6106adb53e96ddbc1", initial_ast = "0f0fdae8467f508cdbadeec2eacffd01e4b26add2dc1b21e112c6c3b59667596", initial_symbol_table = "13f721ce9f26cc63129064ed106144e5ad4798d2483335974dcef63c2b047875", inlined_ast = "fadc791b284f6b2ba539416ee5f44ea31f8c3f00a301aee56333e0b7d01d0189", ssa_ast = "3febba2ab3c3333fde6b0fb8bcb53bcf7f2bf29b992d8e767107f776d6a56639", type_checked_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", unrolled_ast = "0f0fdae8467f508cdbadeec2eacffd01e4b26add2dc1b21e112c6c3b59667596", unrolled_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/x_sign_low.out b/tests/expectations/compiler/group/x_sign_low.out index b66928eb85..dfa960152c 100644 --- a/tests/expectations/compiler/group/x_sign_low.out +++ b/tests/expectations/compiler/group/x_sign_low.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "c8688cd1fc15c816d4af483fa444f44414acb4b679b0165f9fb7093f77738f5a", dce_ast = "d5ba091ad55a9d8840db44364443c7107a4a6c8c01aea36b7b3b5f305766f1b1", destructured_ast = "d5ba091ad55a9d8840db44364443c7107a4a6c8c01aea36b7b3b5f305766f1b1", errors = "", flattened_ast = "8a5680a5ac1460233aa4b01aab7583877253adc510f51f4366abd393673e2a4f", initial_ast = "56c50a0976a18422453034b5b84f70bc4fa63cc0a77b924fd258bb094f07f34c", initial_symbol_table = "13f721ce9f26cc63129064ed106144e5ad4798d2483335974dcef63c2b047875", inlined_ast = "d5ba091ad55a9d8840db44364443c7107a4a6c8c01aea36b7b3b5f305766f1b1", ssa_ast = "89d9ee763b994f9a5b721590fb6c5260280b2badadc39c17842178d2fe412998", type_checked_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", unrolled_ast = "56c50a0976a18422453034b5b84f70bc4fa63cc0a77b924fd258bb094f07f34c", unrolled_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as scalar.private; + mul r0 0group into r1; + output r1 as group.private; +""", dce_ast = "d5ba091ad55a9d8840db44364443c7107a4a6c8c01aea36b7b3b5f305766f1b1", destructured_ast = "d5ba091ad55a9d8840db44364443c7107a4a6c8c01aea36b7b3b5f305766f1b1", errors = "", flattened_ast = "8a5680a5ac1460233aa4b01aab7583877253adc510f51f4366abd393673e2a4f", initial_ast = "56c50a0976a18422453034b5b84f70bc4fa63cc0a77b924fd258bb094f07f34c", initial_symbol_table = "13f721ce9f26cc63129064ed106144e5ad4798d2483335974dcef63c2b047875", inlined_ast = "d5ba091ad55a9d8840db44364443c7107a4a6c8c01aea36b7b3b5f305766f1b1", ssa_ast = "89d9ee763b994f9a5b721590fb6c5260280b2badadc39c17842178d2fe412998", type_checked_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", unrolled_ast = "56c50a0976a18422453034b5b84f70bc4fa63cc0a77b924fd258bb094f07f34c", unrolled_symbol_table = "c40f806dfd918dc4bd47359f2d5d83e7fa46d45fc22cca84828f936b676822f8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/group/zero.out b/tests/expectations/compiler/group/zero.out index 4dde89608a..d0d18c7988 100644 --- a/tests/expectations/compiler/group/zero.out +++ b/tests/expectations/compiler/group/zero.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "1d6fcff80cb39d7f9451de676f70ab1e4dd1bcca8f7c9d0f1ddd34d12f159594", dce_ast = "66db27ba955bd6c93f987abd3ee6cfa9dabf2830046aff921998ec59bb99f581", destructured_ast = "66db27ba955bd6c93f987abd3ee6cfa9dabf2830046aff921998ec59bb99f581", errors = "", flattened_ast = "463e73f9be58935dd081921c62272369b8a3f7eb15d6a41d373ee78f5b509581", initial_ast = "1ab67a46b1e18f07cb0cbf1f0d7224dacad95905b78baa7ec37b4253acc67dcf", initial_symbol_table = "13f721ce9f26cc63129064ed106144e5ad4798d2483335974dcef63c2b047875", inlined_ast = "66db27ba955bd6c93f987abd3ee6cfa9dabf2830046aff921998ec59bb99f581", ssa_ast = "3f1b803aa3810824e912e78501ed7806047154cf6774b82243066ed6704b8386", type_checked_symbol_table = "b90a0f5ef8355a8604db0c683dde5ce52f0beb7c44832c05964527d7a3f9b0ab", unrolled_ast = "1ab67a46b1e18f07cb0cbf1f0d7224dacad95905b78baa7ec37b4253acc67dcf", unrolled_symbol_table = "b90a0f5ef8355a8604db0c683dde5ce52f0beb7c44832c05964527d7a3f9b0ab", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as scalar.private; + mul 0group r0 into r1; + output r1 as group.private; +""", dce_ast = "66db27ba955bd6c93f987abd3ee6cfa9dabf2830046aff921998ec59bb99f581", destructured_ast = "66db27ba955bd6c93f987abd3ee6cfa9dabf2830046aff921998ec59bb99f581", errors = "", flattened_ast = "463e73f9be58935dd081921c62272369b8a3f7eb15d6a41d373ee78f5b509581", initial_ast = "1ab67a46b1e18f07cb0cbf1f0d7224dacad95905b78baa7ec37b4253acc67dcf", initial_symbol_table = "13f721ce9f26cc63129064ed106144e5ad4798d2483335974dcef63c2b047875", inlined_ast = "66db27ba955bd6c93f987abd3ee6cfa9dabf2830046aff921998ec59bb99f581", ssa_ast = "3f1b803aa3810824e912e78501ed7806047154cf6774b82243066ed6704b8386", type_checked_symbol_table = "b90a0f5ef8355a8604db0c683dde5ce52f0beb7c44832c05964527d7a3f9b0ab", unrolled_ast = "1ab67a46b1e18f07cb0cbf1f0d7224dacad95905b78baa7ec37b4253acc67dcf", unrolled_symbol_table = "b90a0f5ef8355a8604db0c683dde5ce52f0beb7c44832c05964527d7a3f9b0ab", warnings = "" }] }]] diff --git a/tests/expectations/compiler/input/main.out b/tests/expectations/compiler/input/main.out index 924a6e0308..5f3f025e6a 100644 --- a/tests/expectations/compiler/input/main.out +++ b/tests/expectations/compiler/input/main.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69", dce_ast = "840adb8006f1cebf04b778bf3adb8169634b2f84221c528895c40ec40dd60cd3", destructured_ast = "840adb8006f1cebf04b778bf3adb8169634b2f84221c528895c40ec40dd60cd3", errors = "", flattened_ast = "d3b2dc2367790c6ac743f182dadcf616ad0e05fdb1e91dea074251f8832a9c11", initial_ast = "9ecbc0015f69652e6708a84de2dd36d114b6832cd0703c9a4d1dcec6b3dc41c7", initial_symbol_table = "cd4ebade513aae8761f790956bbb0844fb86590191f420485545414b6d4fe56e", inlined_ast = "840adb8006f1cebf04b778bf3adb8169634b2f84221c528895c40ec40dd60cd3", ssa_ast = "3b323cbbac9b545411df261c0b5e11f600b7f2419f69bfa4ec05bec5b49f9d06", type_checked_symbol_table = "5c64b6460751bfe68a8fcc6ba0716161748a538d7d90ad9ce9b24933bb3d33fc", unrolled_ast = "9ecbc0015f69652e6708a84de2dd36d114b6832cd0703c9a4d1dcec6b3dc41c7", unrolled_symbol_table = "5c64b6460751bfe68a8fcc6ba0716161748a538d7d90ad9ce9b24933bb3d33fc", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + is.eq r0 true into r1; + output r1 as boolean.private; +""", dce_ast = "840adb8006f1cebf04b778bf3adb8169634b2f84221c528895c40ec40dd60cd3", destructured_ast = "840adb8006f1cebf04b778bf3adb8169634b2f84221c528895c40ec40dd60cd3", errors = "", flattened_ast = "d3b2dc2367790c6ac743f182dadcf616ad0e05fdb1e91dea074251f8832a9c11", initial_ast = "9ecbc0015f69652e6708a84de2dd36d114b6832cd0703c9a4d1dcec6b3dc41c7", initial_symbol_table = "cd4ebade513aae8761f790956bbb0844fb86590191f420485545414b6d4fe56e", inlined_ast = "840adb8006f1cebf04b778bf3adb8169634b2f84221c528895c40ec40dd60cd3", ssa_ast = "3b323cbbac9b545411df261c0b5e11f600b7f2419f69bfa4ec05bec5b49f9d06", type_checked_symbol_table = "5c64b6460751bfe68a8fcc6ba0716161748a538d7d90ad9ce9b24933bb3d33fc", unrolled_ast = "9ecbc0015f69652e6708a84de2dd36d114b6832cd0703c9a4d1dcec6b3dc41c7", unrolled_symbol_table = "5c64b6460751bfe68a8fcc6ba0716161748a538d7d90ad9ce9b24933bb3d33fc", warnings = "" }] }]] diff --git a/tests/expectations/compiler/input/main_field.out b/tests/expectations/compiler/input/main_field.out index 49a3aacd99..8170d818af 100644 --- a/tests/expectations/compiler/input/main_field.out +++ b/tests/expectations/compiler/input/main_field.out @@ -1,3 +1,16 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "5634fe853e1a2815f0828063a855b798b56cc6051b24205568908a5490c7d531", dce_ast = "a46fddc59b61c418d7fdefb569fbf8211e20c493739f3c8a125e4edf0750e89d", destructured_ast = "a46fddc59b61c418d7fdefb569fbf8211e20c493739f3c8a125e4edf0750e89d", errors = "", flattened_ast = "172a76b682ecfa210a5d18a51e5c48a4d9d9103392d45d38b513cccdeab46573", initial_ast = "bbec20b0ddf251ac7c3401e7be89ad0c2d56cb31503efe54fb84eccfdb83f4e6", initial_symbol_table = "76a79fc5516ffc652065c7ab76c208ea22d02413a23052097243711150266802", inlined_ast = "a46fddc59b61c418d7fdefb569fbf8211e20c493739f3c8a125e4edf0750e89d", ssa_ast = "3890848349e17661ababdd618ca99be6ec6cc56f631bd0eabec3fd2ec0f57b04", type_checked_symbol_table = "a3bbf8c7f50b50465a91eaf44d8551378b8f67ae221243efaf13e888e1421cc4", unrolled_ast = "bbec20b0ddf251ac7c3401e7be89ad0c2d56cb31503efe54fb84eccfdb83f4e6", unrolled_symbol_table = "a3bbf8c7f50b50465a91eaf44d8551378b8f67ae221243efaf13e888e1421cc4", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as field.private; + input r1 as field.private; + input r2 as boolean.private; + is.eq r2 true into r3; + is.eq r0 r1 into r4; + and r3 r4 into r5; + output r5 as boolean.private; +""", dce_ast = "a46fddc59b61c418d7fdefb569fbf8211e20c493739f3c8a125e4edf0750e89d", destructured_ast = "a46fddc59b61c418d7fdefb569fbf8211e20c493739f3c8a125e4edf0750e89d", errors = "", flattened_ast = "172a76b682ecfa210a5d18a51e5c48a4d9d9103392d45d38b513cccdeab46573", initial_ast = "bbec20b0ddf251ac7c3401e7be89ad0c2d56cb31503efe54fb84eccfdb83f4e6", initial_symbol_table = "76a79fc5516ffc652065c7ab76c208ea22d02413a23052097243711150266802", inlined_ast = "a46fddc59b61c418d7fdefb569fbf8211e20c493739f3c8a125e4edf0750e89d", ssa_ast = "3890848349e17661ababdd618ca99be6ec6cc56f631bd0eabec3fd2ec0f57b04", type_checked_symbol_table = "a3bbf8c7f50b50465a91eaf44d8551378b8f67ae221243efaf13e888e1421cc4", unrolled_ast = "bbec20b0ddf251ac7c3401e7be89ad0c2d56cb31503efe54fb84eccfdb83f4e6", unrolled_symbol_table = "a3bbf8c7f50b50465a91eaf44d8551378b8f67ae221243efaf13e888e1421cc4", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/add.out b/tests/expectations/compiler/integers/i128/add.out index 9b6668f934..7255250ff3 100644 --- a/tests/expectations/compiler/integers/i128/add.out +++ b/tests/expectations/compiler/integers/i128/add.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "494e6857a1963542c9c28acd1b0d3584e2fa7aa4541a3c4d2accdaffa21a5363", dce_ast = "c41c7fd4e02ef38a56c1f1b1a3247d3527a222bf8055ff3edf0d85662e5fbd89", destructured_ast = "c41c7fd4e02ef38a56c1f1b1a3247d3527a222bf8055ff3edf0d85662e5fbd89", errors = "", flattened_ast = "574c59799ae92538c78300a4c37120d4fa6e1d187e6c0c1db15c323a07ffeddd", initial_ast = "ea1ce28c4816984ad4bc9f93e477a438d5309686ba2f2313eaec7d3fdb7a2af3", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "c41c7fd4e02ef38a56c1f1b1a3247d3527a222bf8055ff3edf0d85662e5fbd89", ssa_ast = "7b96c27836ae377f3f645c66a013d022938dbb74f9d0bcb194b0c4af4fd7b845", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "ea1ce28c4816984ad4bc9f93e477a438d5309686ba2f2313eaec7d3fdb7a2af3", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as i128.private; + add r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "c41c7fd4e02ef38a56c1f1b1a3247d3527a222bf8055ff3edf0d85662e5fbd89", destructured_ast = "c41c7fd4e02ef38a56c1f1b1a3247d3527a222bf8055ff3edf0d85662e5fbd89", errors = "", flattened_ast = "574c59799ae92538c78300a4c37120d4fa6e1d187e6c0c1db15c323a07ffeddd", initial_ast = "ea1ce28c4816984ad4bc9f93e477a438d5309686ba2f2313eaec7d3fdb7a2af3", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "c41c7fd4e02ef38a56c1f1b1a3247d3527a222bf8055ff3edf0d85662e5fbd89", ssa_ast = "7b96c27836ae377f3f645c66a013d022938dbb74f9d0bcb194b0c4af4fd7b845", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "ea1ce28c4816984ad4bc9f93e477a438d5309686ba2f2313eaec7d3fdb7a2af3", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/and.out b/tests/expectations/compiler/integers/i128/and.out index c6d0213e7e..0a35f0fdc2 100644 --- a/tests/expectations/compiler/integers/i128/and.out +++ b/tests/expectations/compiler/integers/i128/and.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "8285a2e1709b0ec4a12c265fcbfc8fafe3168599b60c587c0c4cb2eead7d4cb5", dce_ast = "6c4e99f3ae3dd8ac709ef99b4a2c45887584a187bb6d76211380ed7a7f0ea198", destructured_ast = "6c4e99f3ae3dd8ac709ef99b4a2c45887584a187bb6d76211380ed7a7f0ea198", errors = "", flattened_ast = "1b3affd478da373952c6d57edfab48a60f62aa84f27798be99e2eec7b42838d6", initial_ast = "97b5809cec0dbce8a9a954ba23f3a2aa5ee76e0f85880062e7e5c23a4a26a758", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "6c4e99f3ae3dd8ac709ef99b4a2c45887584a187bb6d76211380ed7a7f0ea198", ssa_ast = "d31ecf76bf4e48a4d87912b10f5324cbf8f9f5269dccc3bb5c9bf98681cd3298", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "97b5809cec0dbce8a9a954ba23f3a2aa5ee76e0f85880062e7e5c23a4a26a758", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as i128.private; + and r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "6c4e99f3ae3dd8ac709ef99b4a2c45887584a187bb6d76211380ed7a7f0ea198", destructured_ast = "6c4e99f3ae3dd8ac709ef99b4a2c45887584a187bb6d76211380ed7a7f0ea198", errors = "", flattened_ast = "1b3affd478da373952c6d57edfab48a60f62aa84f27798be99e2eec7b42838d6", initial_ast = "97b5809cec0dbce8a9a954ba23f3a2aa5ee76e0f85880062e7e5c23a4a26a758", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "6c4e99f3ae3dd8ac709ef99b4a2c45887584a187bb6d76211380ed7a7f0ea198", ssa_ast = "d31ecf76bf4e48a4d87912b10f5324cbf8f9f5269dccc3bb5c9bf98681cd3298", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "97b5809cec0dbce8a9a954ba23f3a2aa5ee76e0f85880062e7e5c23a4a26a758", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/console_assert.out b/tests/expectations/compiler/integers/i128/console_assert.out index 6583a80565..2677394930 100644 --- a/tests/expectations/compiler/integers/i128/console_assert.out +++ b/tests/expectations/compiler/integers/i128/console_assert.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "cfb775c32747a200198579e073ead1a4acd478ed2346b0e51ff488e71b5f806c", dce_ast = "eeaec122e5af670bcd69a594044871a33edb242faa663bbb546accf96d9ef243", destructured_ast = "eeaec122e5af670bcd69a594044871a33edb242faa663bbb546accf96d9ef243", errors = "", flattened_ast = "0478991ca32fdf1302f9f4a71750b8248baf9b04ea279643120632d645e67005", initial_ast = "5eb0103c1405fb008fd026fb3e2fd7d6a47241b7d231cd4054a99dd7b6c6c6cd", initial_symbol_table = "e116fb5a4b7f59388f0627230e720e88ecf04e5e73506be4b5f6be855a59f20c", inlined_ast = "eeaec122e5af670bcd69a594044871a33edb242faa663bbb546accf96d9ef243", ssa_ast = "f40ea6c3defb7ad2b1593b75ebf1e5605cecee6e9d03ecb904a010a6830c0604", type_checked_symbol_table = "91f5bff4b4bdff211a17aad8ff9803793e6319e451f0b04d75361e7caf0f0b8a", unrolled_ast = "5eb0103c1405fb008fd026fb3e2fd7d6a47241b7d231cd4054a99dd7b6c6c6cd", unrolled_symbol_table = "91f5bff4b4bdff211a17aad8ff9803793e6319e451f0b04d75361e7caf0f0b8a", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + is.eq r0 r1 into r2; + assert.eq r2 true; + output r2 as boolean.private; +""", dce_ast = "eeaec122e5af670bcd69a594044871a33edb242faa663bbb546accf96d9ef243", destructured_ast = "eeaec122e5af670bcd69a594044871a33edb242faa663bbb546accf96d9ef243", errors = "", flattened_ast = "0478991ca32fdf1302f9f4a71750b8248baf9b04ea279643120632d645e67005", initial_ast = "5eb0103c1405fb008fd026fb3e2fd7d6a47241b7d231cd4054a99dd7b6c6c6cd", initial_symbol_table = "e116fb5a4b7f59388f0627230e720e88ecf04e5e73506be4b5f6be855a59f20c", inlined_ast = "eeaec122e5af670bcd69a594044871a33edb242faa663bbb546accf96d9ef243", ssa_ast = "f40ea6c3defb7ad2b1593b75ebf1e5605cecee6e9d03ecb904a010a6830c0604", type_checked_symbol_table = "91f5bff4b4bdff211a17aad8ff9803793e6319e451f0b04d75361e7caf0f0b8a", unrolled_ast = "5eb0103c1405fb008fd026fb3e2fd7d6a47241b7d231cd4054a99dd7b6c6c6cd", unrolled_symbol_table = "91f5bff4b4bdff211a17aad8ff9803793e6319e451f0b04d75361e7caf0f0b8a", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/div.out b/tests/expectations/compiler/integers/i128/div.out index b0ba884cb3..1915b0f5ba 100644 --- a/tests/expectations/compiler/integers/i128/div.out +++ b/tests/expectations/compiler/integers/i128/div.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "65f57028681592ca0f5c4fed50abb89f4aa53139b2371bc00c3e701d5b8e896f", dce_ast = "b33b14b03fdd9d09d6d36494f8fe4533ae8590ba60d6bfabff30145547eb6932", destructured_ast = "b33b14b03fdd9d09d6d36494f8fe4533ae8590ba60d6bfabff30145547eb6932", errors = "", flattened_ast = "3ccd42d195e163bcf97060f245618ad1e3c24f37798767e04813731903e02ec2", initial_ast = "06defad20bb4a8deec30fbe1e4dbe96ae5c061723f64f7b73c54ee3bb828560f", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "b33b14b03fdd9d09d6d36494f8fe4533ae8590ba60d6bfabff30145547eb6932", ssa_ast = "0d406271c5309d18ec58ba5541f484cf0294538ddfda6b069b8a6074c979f4a9", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "06defad20bb4a8deec30fbe1e4dbe96ae5c061723f64f7b73c54ee3bb828560f", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as i128.private; + div r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "b33b14b03fdd9d09d6d36494f8fe4533ae8590ba60d6bfabff30145547eb6932", destructured_ast = "b33b14b03fdd9d09d6d36494f8fe4533ae8590ba60d6bfabff30145547eb6932", errors = "", flattened_ast = "3ccd42d195e163bcf97060f245618ad1e3c24f37798767e04813731903e02ec2", initial_ast = "06defad20bb4a8deec30fbe1e4dbe96ae5c061723f64f7b73c54ee3bb828560f", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "b33b14b03fdd9d09d6d36494f8fe4533ae8590ba60d6bfabff30145547eb6932", ssa_ast = "0d406271c5309d18ec58ba5541f484cf0294538ddfda6b069b8a6074c979f4a9", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "06defad20bb4a8deec30fbe1e4dbe96ae5c061723f64f7b73c54ee3bb828560f", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/eq.out b/tests/expectations/compiler/integers/i128/eq.out index b56e9d2aed..886309631c 100644 --- a/tests/expectations/compiler/integers/i128/eq.out +++ b/tests/expectations/compiler/integers/i128/eq.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "3cdd93b31b489b0c21ed940752b5f00fdbde28dc7e52fbe97bd6c0f5b3f2e2e3", dce_ast = "13495b4e09495dfb6e64a253e11985be62574a74463efdc5bd561807e756fb03", destructured_ast = "13495b4e09495dfb6e64a253e11985be62574a74463efdc5bd561807e756fb03", errors = "", flattened_ast = "5d5cd3e01fa92f2b34ecaece9cf31a454ba43a54dbfd2c36aed776ab3724028c", initial_ast = "9caa89e0cba4c18f15c38b23a5e9900bcefec8136de6838cbd5667d9836b862f", initial_symbol_table = "26967678e99292a22f8f5bfb95e8d8ebdf22b10092b9e224078cb4a7d81dc4c5", inlined_ast = "13495b4e09495dfb6e64a253e11985be62574a74463efdc5bd561807e756fb03", ssa_ast = "64963113917d17c9887355e5440b51d6d85512fd54bfa536c54cbec21d4fc3b1", type_checked_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", unrolled_ast = "9caa89e0cba4c18f15c38b23a5e9900bcefec8136de6838cbd5667d9836b862f", unrolled_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as boolean.private; + is.eq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "13495b4e09495dfb6e64a253e11985be62574a74463efdc5bd561807e756fb03", destructured_ast = "13495b4e09495dfb6e64a253e11985be62574a74463efdc5bd561807e756fb03", errors = "", flattened_ast = "5d5cd3e01fa92f2b34ecaece9cf31a454ba43a54dbfd2c36aed776ab3724028c", initial_ast = "9caa89e0cba4c18f15c38b23a5e9900bcefec8136de6838cbd5667d9836b862f", initial_symbol_table = "26967678e99292a22f8f5bfb95e8d8ebdf22b10092b9e224078cb4a7d81dc4c5", inlined_ast = "13495b4e09495dfb6e64a253e11985be62574a74463efdc5bd561807e756fb03", ssa_ast = "64963113917d17c9887355e5440b51d6d85512fd54bfa536c54cbec21d4fc3b1", type_checked_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", unrolled_ast = "9caa89e0cba4c18f15c38b23a5e9900bcefec8136de6838cbd5667d9836b862f", unrolled_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/ge.out b/tests/expectations/compiler/integers/i128/ge.out index 195b349688..990cdb2f51 100644 --- a/tests/expectations/compiler/integers/i128/ge.out +++ b/tests/expectations/compiler/integers/i128/ge.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "10cd5a11422cda879fb35cd61b5e1b83e0a3b954e6583f44762802917d338085", dce_ast = "816012a5af4066b99c8fa487d7cf9bcdb4cf490e3fa2dc19a77a6a885df68893", destructured_ast = "816012a5af4066b99c8fa487d7cf9bcdb4cf490e3fa2dc19a77a6a885df68893", errors = "", flattened_ast = "f9edd90b98b188a11663452fdcc796ddcd5e38f792b526cbb6811647e48e39d7", initial_ast = "4a97ae1158da379f97df71c3880ab523c398eaf6298759e557980cfc84fcab6f", initial_symbol_table = "26967678e99292a22f8f5bfb95e8d8ebdf22b10092b9e224078cb4a7d81dc4c5", inlined_ast = "816012a5af4066b99c8fa487d7cf9bcdb4cf490e3fa2dc19a77a6a885df68893", ssa_ast = "4f4bab95d39b85781fe1f6f6e07bcefa45398d690af6b67bbba530a8dc7bb731", type_checked_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", unrolled_ast = "4a97ae1158da379f97df71c3880ab523c398eaf6298759e557980cfc84fcab6f", unrolled_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as boolean.private; + gte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "816012a5af4066b99c8fa487d7cf9bcdb4cf490e3fa2dc19a77a6a885df68893", destructured_ast = "816012a5af4066b99c8fa487d7cf9bcdb4cf490e3fa2dc19a77a6a885df68893", errors = "", flattened_ast = "f9edd90b98b188a11663452fdcc796ddcd5e38f792b526cbb6811647e48e39d7", initial_ast = "4a97ae1158da379f97df71c3880ab523c398eaf6298759e557980cfc84fcab6f", initial_symbol_table = "26967678e99292a22f8f5bfb95e8d8ebdf22b10092b9e224078cb4a7d81dc4c5", inlined_ast = "816012a5af4066b99c8fa487d7cf9bcdb4cf490e3fa2dc19a77a6a885df68893", ssa_ast = "4f4bab95d39b85781fe1f6f6e07bcefa45398d690af6b67bbba530a8dc7bb731", type_checked_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", unrolled_ast = "4a97ae1158da379f97df71c3880ab523c398eaf6298759e557980cfc84fcab6f", unrolled_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/gt.out b/tests/expectations/compiler/integers/i128/gt.out index cd17c0fcdf..fadcdeb452 100644 --- a/tests/expectations/compiler/integers/i128/gt.out +++ b/tests/expectations/compiler/integers/i128/gt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "484e03eaf5d4db72c6c47e37433ad15e9bf225f8ee65964eebcbbb627e1229d5", dce_ast = "aca18770d501872f0ca2db4acf59fd4eb49083d8424aade63a030f7977ae80e1", destructured_ast = "aca18770d501872f0ca2db4acf59fd4eb49083d8424aade63a030f7977ae80e1", errors = "", flattened_ast = "2ec0058e830d3d6a9978f689988abd49df3b4f1741691e7fd8533e0e678bd641", initial_ast = "1f66b8826995c55576f97695f623bb6d04c6f0b70036d568bca34af2a33dc165", initial_symbol_table = "26967678e99292a22f8f5bfb95e8d8ebdf22b10092b9e224078cb4a7d81dc4c5", inlined_ast = "aca18770d501872f0ca2db4acf59fd4eb49083d8424aade63a030f7977ae80e1", ssa_ast = "930df778182d362d79dbd7efa4b0c61857bdd362e6de0c13d3f5a80c80416930", type_checked_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", unrolled_ast = "1f66b8826995c55576f97695f623bb6d04c6f0b70036d568bca34af2a33dc165", unrolled_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as boolean.private; + gt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "aca18770d501872f0ca2db4acf59fd4eb49083d8424aade63a030f7977ae80e1", destructured_ast = "aca18770d501872f0ca2db4acf59fd4eb49083d8424aade63a030f7977ae80e1", errors = "", flattened_ast = "2ec0058e830d3d6a9978f689988abd49df3b4f1741691e7fd8533e0e678bd641", initial_ast = "1f66b8826995c55576f97695f623bb6d04c6f0b70036d568bca34af2a33dc165", initial_symbol_table = "26967678e99292a22f8f5bfb95e8d8ebdf22b10092b9e224078cb4a7d81dc4c5", inlined_ast = "aca18770d501872f0ca2db4acf59fd4eb49083d8424aade63a030f7977ae80e1", ssa_ast = "930df778182d362d79dbd7efa4b0c61857bdd362e6de0c13d3f5a80c80416930", type_checked_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", unrolled_ast = "1f66b8826995c55576f97695f623bb6d04c6f0b70036d568bca34af2a33dc165", unrolled_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/hex_and_bin.out b/tests/expectations/compiler/integers/i128/hex_and_bin.out index f5d2270f2e..5ec7e63a63 100644 --- a/tests/expectations/compiler/integers/i128/hex_and_bin.out +++ b/tests/expectations/compiler/integers/i128/hex_and_bin.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "7b4ac23af746311a65be3314562eb9247cacd4b29ed1ea20d04b0dc8c06eef19", dce_ast = "d05df9936ea9ab1e577e8d4a14046ccd75af35b76dab552119728a2d240ed83e", destructured_ast = "d05df9936ea9ab1e577e8d4a14046ccd75af35b76dab552119728a2d240ed83e", errors = "", flattened_ast = "108e01348ff9fd5dbbc00cc94208f98c5a5782a86ddf452ee59602c5bfe046f4", initial_ast = "1e34f3c30849e79eeba6b5ca17e438efb5bf24fa3ceb50ddc00133a8474be73c", initial_symbol_table = "b8fa9541b26d44c8348e7ded98e6bd1b235ee9c02e632192fb2da00234e84c5c", inlined_ast = "d05df9936ea9ab1e577e8d4a14046ccd75af35b76dab552119728a2d240ed83e", ssa_ast = "6926cc34fac90a4bed0c819030cf61f0f614e539e4b85b63c2abb3b8776cf532", type_checked_symbol_table = "9cc9c032ecfa8ab95f117b6c2f6b5f77335cdc444604a28ddca7ea204c620277", unrolled_ast = "1e34f3c30849e79eeba6b5ca17e438efb5bf24fa3ceb50ddc00133a8474be73c", unrolled_symbol_table = "9cc9c032ecfa8ab95f117b6c2f6b5f77335cdc444604a28ddca7ea204c620277", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as i128.private; + is.eq r0 127i128 into r3; + is.eq r1 27i128 into r4; + and r3 r4 into r5; + is.eq r2 21i128 into r6; + and r5 r6 into r7; + output r7 as boolean.private; +""", dce_ast = "d05df9936ea9ab1e577e8d4a14046ccd75af35b76dab552119728a2d240ed83e", destructured_ast = "d05df9936ea9ab1e577e8d4a14046ccd75af35b76dab552119728a2d240ed83e", errors = "", flattened_ast = "108e01348ff9fd5dbbc00cc94208f98c5a5782a86ddf452ee59602c5bfe046f4", initial_ast = "1e34f3c30849e79eeba6b5ca17e438efb5bf24fa3ceb50ddc00133a8474be73c", initial_symbol_table = "b8fa9541b26d44c8348e7ded98e6bd1b235ee9c02e632192fb2da00234e84c5c", inlined_ast = "d05df9936ea9ab1e577e8d4a14046ccd75af35b76dab552119728a2d240ed83e", ssa_ast = "6926cc34fac90a4bed0c819030cf61f0f614e539e4b85b63c2abb3b8776cf532", type_checked_symbol_table = "9cc9c032ecfa8ab95f117b6c2f6b5f77335cdc444604a28ddca7ea204c620277", unrolled_ast = "1e34f3c30849e79eeba6b5ca17e438efb5bf24fa3ceb50ddc00133a8474be73c", unrolled_symbol_table = "9cc9c032ecfa8ab95f117b6c2f6b5f77335cdc444604a28ddca7ea204c620277", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/le.out b/tests/expectations/compiler/integers/i128/le.out index a2413a7ea3..993f322f7e 100644 --- a/tests/expectations/compiler/integers/i128/le.out +++ b/tests/expectations/compiler/integers/i128/le.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "cc1ee4fde8609e495d29513d4f1ba6088310c0b68929e619e6fef2fbcf127b13", dce_ast = "421c606986757519eaea1a2f51e4ee58f21d2403e127eb3cba1951fcb6df9c4e", destructured_ast = "421c606986757519eaea1a2f51e4ee58f21d2403e127eb3cba1951fcb6df9c4e", errors = "", flattened_ast = "bc5f2a77b2c76ceefc87002024b45fbedd31249e6be19886f9349ba3c58c4a79", initial_ast = "5d8f23da308d016f458aa47d2a0757f66c7f39ba30af1dc93009e578899cdff1", initial_symbol_table = "26967678e99292a22f8f5bfb95e8d8ebdf22b10092b9e224078cb4a7d81dc4c5", inlined_ast = "421c606986757519eaea1a2f51e4ee58f21d2403e127eb3cba1951fcb6df9c4e", ssa_ast = "e463395afb5d70d3c16c3c6de30459b5edf7c8768555d05a2c60025328f73034", type_checked_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", unrolled_ast = "5d8f23da308d016f458aa47d2a0757f66c7f39ba30af1dc93009e578899cdff1", unrolled_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as boolean.private; + lte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "421c606986757519eaea1a2f51e4ee58f21d2403e127eb3cba1951fcb6df9c4e", destructured_ast = "421c606986757519eaea1a2f51e4ee58f21d2403e127eb3cba1951fcb6df9c4e", errors = "", flattened_ast = "bc5f2a77b2c76ceefc87002024b45fbedd31249e6be19886f9349ba3c58c4a79", initial_ast = "5d8f23da308d016f458aa47d2a0757f66c7f39ba30af1dc93009e578899cdff1", initial_symbol_table = "26967678e99292a22f8f5bfb95e8d8ebdf22b10092b9e224078cb4a7d81dc4c5", inlined_ast = "421c606986757519eaea1a2f51e4ee58f21d2403e127eb3cba1951fcb6df9c4e", ssa_ast = "e463395afb5d70d3c16c3c6de30459b5edf7c8768555d05a2c60025328f73034", type_checked_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", unrolled_ast = "5d8f23da308d016f458aa47d2a0757f66c7f39ba30af1dc93009e578899cdff1", unrolled_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/lt.out b/tests/expectations/compiler/integers/i128/lt.out index 91598b861a..d9ff39a283 100644 --- a/tests/expectations/compiler/integers/i128/lt.out +++ b/tests/expectations/compiler/integers/i128/lt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "b1fc620dc1f15fe250bfd4e7bbf7ec3e51d72f7a47867a1b0ad680f7d97906aa", dce_ast = "509bbbe3ede3dcc293d7a61174f75a1b683048b2e80c9bfb2dd6c40a801f9d25", destructured_ast = "509bbbe3ede3dcc293d7a61174f75a1b683048b2e80c9bfb2dd6c40a801f9d25", errors = "", flattened_ast = "7ce217dc14e027bdd8f8ad768b4b9cc97129cff62d197c1e1faeb87204f41ec1", initial_ast = "cba2e2c65a91669cef49590961c461853279d718fd3db46357767886a1231805", initial_symbol_table = "26967678e99292a22f8f5bfb95e8d8ebdf22b10092b9e224078cb4a7d81dc4c5", inlined_ast = "509bbbe3ede3dcc293d7a61174f75a1b683048b2e80c9bfb2dd6c40a801f9d25", ssa_ast = "5002f155f28077ebce55d26234abb4f740face120d70096beb59aabd97f898b9", type_checked_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", unrolled_ast = "cba2e2c65a91669cef49590961c461853279d718fd3db46357767886a1231805", unrolled_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as boolean.private; + lt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "509bbbe3ede3dcc293d7a61174f75a1b683048b2e80c9bfb2dd6c40a801f9d25", destructured_ast = "509bbbe3ede3dcc293d7a61174f75a1b683048b2e80c9bfb2dd6c40a801f9d25", errors = "", flattened_ast = "7ce217dc14e027bdd8f8ad768b4b9cc97129cff62d197c1e1faeb87204f41ec1", initial_ast = "cba2e2c65a91669cef49590961c461853279d718fd3db46357767886a1231805", initial_symbol_table = "26967678e99292a22f8f5bfb95e8d8ebdf22b10092b9e224078cb4a7d81dc4c5", inlined_ast = "509bbbe3ede3dcc293d7a61174f75a1b683048b2e80c9bfb2dd6c40a801f9d25", ssa_ast = "5002f155f28077ebce55d26234abb4f740face120d70096beb59aabd97f898b9", type_checked_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", unrolled_ast = "cba2e2c65a91669cef49590961c461853279d718fd3db46357767886a1231805", unrolled_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/max.out b/tests/expectations/compiler/integers/i128/max.out index ebe79c7584..d509acb181 100644 --- a/tests/expectations/compiler/integers/i128/max.out +++ b/tests/expectations/compiler/integers/i128/max.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "0c9250cc00df66aac1199455cdfacc5d1a37bbf3719a4661a022b02d023ef962", dce_ast = "6c403a08cf761399ce3c7e8e5d0db693a0f8669b75da60e4e147c02fb09bab2d", destructured_ast = "6c403a08cf761399ce3c7e8e5d0db693a0f8669b75da60e4e147c02fb09bab2d", errors = "", flattened_ast = "ff411ea98f4733147dd800325458dbf480e7543c0d76288d42f17aa55d8192b6", initial_ast = "0c24ff61a5ace1cd9071308e3843eb0ecc587a680c36ba3b039b3f187406f501", initial_symbol_table = "be48290910224fe179b3286a978e816b24ebd4a5c7ff2c4e2e7c681fc54cbeee", inlined_ast = "6c403a08cf761399ce3c7e8e5d0db693a0f8669b75da60e4e147c02fb09bab2d", ssa_ast = "74dc2fc74b3f986d6323911f118f544d956d485ec40a42807cfd61a212cd1f76", type_checked_symbol_table = "6762536260d695a3bb6b6cf51173d96ac2643f2b546478343ee90681fe23a025", unrolled_ast = "0c24ff61a5ace1cd9071308e3843eb0ecc587a680c36ba3b039b3f187406f501", unrolled_symbol_table = "6762536260d695a3bb6b6cf51173d96ac2643f2b546478343ee90681fe23a025", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + sub 170141183460469231731687303715884105727i128 r0 into r1; + output r1 as i128.private; +""", dce_ast = "6c403a08cf761399ce3c7e8e5d0db693a0f8669b75da60e4e147c02fb09bab2d", destructured_ast = "6c403a08cf761399ce3c7e8e5d0db693a0f8669b75da60e4e147c02fb09bab2d", errors = "", flattened_ast = "ff411ea98f4733147dd800325458dbf480e7543c0d76288d42f17aa55d8192b6", initial_ast = "0c24ff61a5ace1cd9071308e3843eb0ecc587a680c36ba3b039b3f187406f501", initial_symbol_table = "be48290910224fe179b3286a978e816b24ebd4a5c7ff2c4e2e7c681fc54cbeee", inlined_ast = "6c403a08cf761399ce3c7e8e5d0db693a0f8669b75da60e4e147c02fb09bab2d", ssa_ast = "74dc2fc74b3f986d6323911f118f544d956d485ec40a42807cfd61a212cd1f76", type_checked_symbol_table = "6762536260d695a3bb6b6cf51173d96ac2643f2b546478343ee90681fe23a025", unrolled_ast = "0c24ff61a5ace1cd9071308e3843eb0ecc587a680c36ba3b039b3f187406f501", unrolled_symbol_table = "6762536260d695a3bb6b6cf51173d96ac2643f2b546478343ee90681fe23a025", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/min.out b/tests/expectations/compiler/integers/i128/min.out index a99e64771f..72fbf2db10 100644 --- a/tests/expectations/compiler/integers/i128/min.out +++ b/tests/expectations/compiler/integers/i128/min.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "3371e90020913ff2646967d8f24bd5da1033f31c46c1b46c1996331bb488b96e", dce_ast = "7143c2be4b7ca6c019f396a732c383495405d7ef1c5e421118667bf6805a916d", destructured_ast = "7143c2be4b7ca6c019f396a732c383495405d7ef1c5e421118667bf6805a916d", errors = "", flattened_ast = "25d111900840664756af2207bc812a3193d1c49236e04ba0902f7f8dd2a3df66", initial_ast = "f401733cc62c4052171aca09335a71a480fec6fb2ca8899ae73791b2bc17437f", initial_symbol_table = "be48290910224fe179b3286a978e816b24ebd4a5c7ff2c4e2e7c681fc54cbeee", inlined_ast = "7143c2be4b7ca6c019f396a732c383495405d7ef1c5e421118667bf6805a916d", ssa_ast = "31cdcf328d7cc18463607e2901e987d3d95aaf83cb20fde0508e70137d9bf487", type_checked_symbol_table = "6762536260d695a3bb6b6cf51173d96ac2643f2b546478343ee90681fe23a025", unrolled_ast = "f401733cc62c4052171aca09335a71a480fec6fb2ca8899ae73791b2bc17437f", unrolled_symbol_table = "6762536260d695a3bb6b6cf51173d96ac2643f2b546478343ee90681fe23a025", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + sub -170141183460469231731687303715884105727i128 r0 into r1; + output r1 as i128.private; +""", dce_ast = "7143c2be4b7ca6c019f396a732c383495405d7ef1c5e421118667bf6805a916d", destructured_ast = "7143c2be4b7ca6c019f396a732c383495405d7ef1c5e421118667bf6805a916d", errors = "", flattened_ast = "25d111900840664756af2207bc812a3193d1c49236e04ba0902f7f8dd2a3df66", initial_ast = "f401733cc62c4052171aca09335a71a480fec6fb2ca8899ae73791b2bc17437f", initial_symbol_table = "be48290910224fe179b3286a978e816b24ebd4a5c7ff2c4e2e7c681fc54cbeee", inlined_ast = "7143c2be4b7ca6c019f396a732c383495405d7ef1c5e421118667bf6805a916d", ssa_ast = "31cdcf328d7cc18463607e2901e987d3d95aaf83cb20fde0508e70137d9bf487", type_checked_symbol_table = "6762536260d695a3bb6b6cf51173d96ac2643f2b546478343ee90681fe23a025", unrolled_ast = "f401733cc62c4052171aca09335a71a480fec6fb2ca8899ae73791b2bc17437f", unrolled_symbol_table = "6762536260d695a3bb6b6cf51173d96ac2643f2b546478343ee90681fe23a025", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/min_fail.out b/tests/expectations/compiler/integers/i128/min_fail.out index b71e6a7fd3..29cb145f6f 100644 --- a/tests/expectations/compiler/integers/i128/min_fail.out +++ b/tests/expectations/compiler/integers/i128/min_fail.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "01713226f7ba799a801ed169d73aa94e4a3cb8048c6c069fdc874c2807e8ead6", dce_ast = "a8572199187b58842be5269e59a39451faec99980eccef6c7030d513694eb502", destructured_ast = "a8572199187b58842be5269e59a39451faec99980eccef6c7030d513694eb502", errors = "", flattened_ast = "9ba67b9062caf22f889f944ff08221577d7326ebac0dd4c4dd6b8fc228cb0680", initial_ast = "68a180f5f098a5fc4b89747705daeb3c8c5363312a3d4ca8716a17aa0f921cbb", initial_symbol_table = "465444f63a1b533ed8a51947a39c02c91e8daf43fe000c6e6d818b422a52861a", inlined_ast = "a8572199187b58842be5269e59a39451faec99980eccef6c7030d513694eb502", ssa_ast = "223d0d71b6c902bc36d98866cd58738c8ef0ae5459dc8c7e4d05306107291dfe", type_checked_symbol_table = "647f39291b62681aa67c79e28236beb910572b61bad45e605b33fe48acf530cc", unrolled_ast = "68a180f5f098a5fc4b89747705daeb3c8c5363312a3d4ca8716a17aa0f921cbb", unrolled_symbol_table = "647f39291b62681aa67c79e28236beb910572b61bad45e605b33fe48acf530cc", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + sub -170141183460469231731687303715884105727i128 2i128 into r1; + output r1 as i128.private; +""", dce_ast = "a8572199187b58842be5269e59a39451faec99980eccef6c7030d513694eb502", destructured_ast = "a8572199187b58842be5269e59a39451faec99980eccef6c7030d513694eb502", errors = "", flattened_ast = "9ba67b9062caf22f889f944ff08221577d7326ebac0dd4c4dd6b8fc228cb0680", initial_ast = "68a180f5f098a5fc4b89747705daeb3c8c5363312a3d4ca8716a17aa0f921cbb", initial_symbol_table = "465444f63a1b533ed8a51947a39c02c91e8daf43fe000c6e6d818b422a52861a", inlined_ast = "a8572199187b58842be5269e59a39451faec99980eccef6c7030d513694eb502", ssa_ast = "223d0d71b6c902bc36d98866cd58738c8ef0ae5459dc8c7e4d05306107291dfe", type_checked_symbol_table = "647f39291b62681aa67c79e28236beb910572b61bad45e605b33fe48acf530cc", unrolled_ast = "68a180f5f098a5fc4b89747705daeb3c8c5363312a3d4ca8716a17aa0f921cbb", unrolled_symbol_table = "647f39291b62681aa67c79e28236beb910572b61bad45e605b33fe48acf530cc", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/mul.out b/tests/expectations/compiler/integers/i128/mul.out index c4f9e1eba1..e8a256ff12 100644 --- a/tests/expectations/compiler/integers/i128/mul.out +++ b/tests/expectations/compiler/integers/i128/mul.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "d0d6aecd823bb5cd501ed807e6a169820dbee3db351de35303d4b8dda007e0d8", dce_ast = "1dccfcfb1e9f6e4c0a00d1fde9c9629e0725b522a9562a562db4be5d6fa5ab1f", destructured_ast = "1dccfcfb1e9f6e4c0a00d1fde9c9629e0725b522a9562a562db4be5d6fa5ab1f", errors = "", flattened_ast = "af7dc99616e7a80562397108fe540585550a7db22d57500971722308ce8c31e4", initial_ast = "8247461a692610884213b47a98b178eefb1dc78529b1a00e1a83a798936cdc4c", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "1dccfcfb1e9f6e4c0a00d1fde9c9629e0725b522a9562a562db4be5d6fa5ab1f", ssa_ast = "8e09972165e24aa239fbcb6a8c82560a2f4b398ddc455fc987f562a0e017f0cf", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "8247461a692610884213b47a98b178eefb1dc78529b1a00e1a83a798936cdc4c", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as i128.private; + mul r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "1dccfcfb1e9f6e4c0a00d1fde9c9629e0725b522a9562a562db4be5d6fa5ab1f", destructured_ast = "1dccfcfb1e9f6e4c0a00d1fde9c9629e0725b522a9562a562db4be5d6fa5ab1f", errors = "", flattened_ast = "af7dc99616e7a80562397108fe540585550a7db22d57500971722308ce8c31e4", initial_ast = "8247461a692610884213b47a98b178eefb1dc78529b1a00e1a83a798936cdc4c", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "1dccfcfb1e9f6e4c0a00d1fde9c9629e0725b522a9562a562db4be5d6fa5ab1f", ssa_ast = "8e09972165e24aa239fbcb6a8c82560a2f4b398ddc455fc987f562a0e017f0cf", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "8247461a692610884213b47a98b178eefb1dc78529b1a00e1a83a798936cdc4c", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/ne.out b/tests/expectations/compiler/integers/i128/ne.out index dccae38945..5b4cb33234 100644 --- a/tests/expectations/compiler/integers/i128/ne.out +++ b/tests/expectations/compiler/integers/i128/ne.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "234d1c18ac19b0979e3bf09581be0370faa2e2b322474f693d90c52cb2991177", dce_ast = "a109cbe1743dd9c519d41cf8cb834bf9e2cf1a0d707cacf2232f5b9f4ef1556f", destructured_ast = "a109cbe1743dd9c519d41cf8cb834bf9e2cf1a0d707cacf2232f5b9f4ef1556f", errors = "", flattened_ast = "6df74c05ced16a151c187403fb88b6394c34b3a129f2a247ad9493af98729a06", initial_ast = "e533170a128b14fd552e4fb569388fe5e36038946d0565313565eb10983897c6", initial_symbol_table = "26967678e99292a22f8f5bfb95e8d8ebdf22b10092b9e224078cb4a7d81dc4c5", inlined_ast = "a109cbe1743dd9c519d41cf8cb834bf9e2cf1a0d707cacf2232f5b9f4ef1556f", ssa_ast = "f39da53b7fe3ad0a873e3076928d405504e32a83cc7d7bef580c63a7b66a32cc", type_checked_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", unrolled_ast = "e533170a128b14fd552e4fb569388fe5e36038946d0565313565eb10983897c6", unrolled_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as boolean.private; + is.neq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "a109cbe1743dd9c519d41cf8cb834bf9e2cf1a0d707cacf2232f5b9f4ef1556f", destructured_ast = "a109cbe1743dd9c519d41cf8cb834bf9e2cf1a0d707cacf2232f5b9f4ef1556f", errors = "", flattened_ast = "6df74c05ced16a151c187403fb88b6394c34b3a129f2a247ad9493af98729a06", initial_ast = "e533170a128b14fd552e4fb569388fe5e36038946d0565313565eb10983897c6", initial_symbol_table = "26967678e99292a22f8f5bfb95e8d8ebdf22b10092b9e224078cb4a7d81dc4c5", inlined_ast = "a109cbe1743dd9c519d41cf8cb834bf9e2cf1a0d707cacf2232f5b9f4ef1556f", ssa_ast = "f39da53b7fe3ad0a873e3076928d405504e32a83cc7d7bef580c63a7b66a32cc", type_checked_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", unrolled_ast = "e533170a128b14fd552e4fb569388fe5e36038946d0565313565eb10983897c6", unrolled_symbol_table = "9b03a5a8a469fb1447ce8a3a99f194d20ca54b3adb58bcc24d808792a5fa40f7", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/negate.out b/tests/expectations/compiler/integers/i128/negate.out index 7c71333a65..d3e6e12c06 100644 --- a/tests/expectations/compiler/integers/i128/negate.out +++ b/tests/expectations/compiler/integers/i128/negate.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "8fbbd1ffdc2128ce18c84c8eee60a408dd29cdc99ca197ffe094a8be0c4019c4", dce_ast = "b7fc2ab9753f5ccae6e61fe5129e07d60d27c469cb38b57fa9b04aa60209b133", destructured_ast = "b7fc2ab9753f5ccae6e61fe5129e07d60d27c469cb38b57fa9b04aa60209b133", errors = "", flattened_ast = "91c9a1708e90ab39f59bafb53f1f70353ad0d05b983803a024ab06f97eae1463", initial_ast = "3a47c119a633da109631ba1149a955b60929b000d49cc72c40f8d1a23eef39a4", initial_symbol_table = "e116fb5a4b7f59388f0627230e720e88ecf04e5e73506be4b5f6be855a59f20c", inlined_ast = "b7fc2ab9753f5ccae6e61fe5129e07d60d27c469cb38b57fa9b04aa60209b133", ssa_ast = "a502c69314fdab5366078b3eecfe0ce21f076509922b279170cf8dd7360e1afc", type_checked_symbol_table = "9a312e0909ec0a77ffca61835de5a7360d6fc1ebc91cfb32e815584ab7ac7936", unrolled_ast = "3a47c119a633da109631ba1149a955b60929b000d49cc72c40f8d1a23eef39a4", unrolled_symbol_table = "9a312e0909ec0a77ffca61835de5a7360d6fc1ebc91cfb32e815584ab7ac7936", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + neg r0 into r2; + is.eq r2 r1 into r3; + output r3 as boolean.private; +""", dce_ast = "b7fc2ab9753f5ccae6e61fe5129e07d60d27c469cb38b57fa9b04aa60209b133", destructured_ast = "b7fc2ab9753f5ccae6e61fe5129e07d60d27c469cb38b57fa9b04aa60209b133", errors = "", flattened_ast = "91c9a1708e90ab39f59bafb53f1f70353ad0d05b983803a024ab06f97eae1463", initial_ast = "3a47c119a633da109631ba1149a955b60929b000d49cc72c40f8d1a23eef39a4", initial_symbol_table = "e116fb5a4b7f59388f0627230e720e88ecf04e5e73506be4b5f6be855a59f20c", inlined_ast = "b7fc2ab9753f5ccae6e61fe5129e07d60d27c469cb38b57fa9b04aa60209b133", ssa_ast = "a502c69314fdab5366078b3eecfe0ce21f076509922b279170cf8dd7360e1afc", type_checked_symbol_table = "9a312e0909ec0a77ffca61835de5a7360d6fc1ebc91cfb32e815584ab7ac7936", unrolled_ast = "3a47c119a633da109631ba1149a955b60929b000d49cc72c40f8d1a23eef39a4", unrolled_symbol_table = "9a312e0909ec0a77ffca61835de5a7360d6fc1ebc91cfb32e815584ab7ac7936", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/negate_min_fail.out b/tests/expectations/compiler/integers/i128/negate_min_fail.out index 8d5cef4b24..aeb27da460 100644 --- a/tests/expectations/compiler/integers/i128/negate_min_fail.out +++ b/tests/expectations/compiler/integers/i128/negate_min_fail.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "a9a22fd3ceba8f7aa3bc7f1e577a63bfdf395c9cad00987880cf75066bdf85c8", dce_ast = "64a5541393c852ba0ffbeb4b5c21f78592dbbf45d7e2a2e0d6db5e219a6246c0", destructured_ast = "64a5541393c852ba0ffbeb4b5c21f78592dbbf45d7e2a2e0d6db5e219a6246c0", errors = "", flattened_ast = "16da702383e63b60d953c59e7ec7992cdbad720620c417ea70a39490394b03a9", initial_ast = "c206336c87fffa58a841affe6322079a2c599430577112afd77325f3ab56d4b9", initial_symbol_table = "465444f63a1b533ed8a51947a39c02c91e8daf43fe000c6e6d818b422a52861a", inlined_ast = "64a5541393c852ba0ffbeb4b5c21f78592dbbf45d7e2a2e0d6db5e219a6246c0", ssa_ast = "808fe0b96e382d45a1626f2dd61c774a3060712cd3feb7d499ed161e8f210bfa", type_checked_symbol_table = "647f39291b62681aa67c79e28236beb910572b61bad45e605b33fe48acf530cc", unrolled_ast = "c206336c87fffa58a841affe6322079a2c599430577112afd77325f3ab56d4b9", unrolled_symbol_table = "647f39291b62681aa67c79e28236beb910572b61bad45e605b33fe48acf530cc", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + neg -170141183460469231731687303715884105728i128 into r1; + output r1 as i128.private; +""", dce_ast = "64a5541393c852ba0ffbeb4b5c21f78592dbbf45d7e2a2e0d6db5e219a6246c0", destructured_ast = "64a5541393c852ba0ffbeb4b5c21f78592dbbf45d7e2a2e0d6db5e219a6246c0", errors = "", flattened_ast = "16da702383e63b60d953c59e7ec7992cdbad720620c417ea70a39490394b03a9", initial_ast = "c206336c87fffa58a841affe6322079a2c599430577112afd77325f3ab56d4b9", initial_symbol_table = "465444f63a1b533ed8a51947a39c02c91e8daf43fe000c6e6d818b422a52861a", inlined_ast = "64a5541393c852ba0ffbeb4b5c21f78592dbbf45d7e2a2e0d6db5e219a6246c0", ssa_ast = "808fe0b96e382d45a1626f2dd61c774a3060712cd3feb7d499ed161e8f210bfa", type_checked_symbol_table = "647f39291b62681aa67c79e28236beb910572b61bad45e605b33fe48acf530cc", unrolled_ast = "c206336c87fffa58a841affe6322079a2c599430577112afd77325f3ab56d4b9", unrolled_symbol_table = "647f39291b62681aa67c79e28236beb910572b61bad45e605b33fe48acf530cc", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/negate_zero.out b/tests/expectations/compiler/integers/i128/negate_zero.out index 930ded608a..6492340ec1 100644 --- a/tests/expectations/compiler/integers/i128/negate_zero.out +++ b/tests/expectations/compiler/integers/i128/negate_zero.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "163f69d6df6294a79a4f27ccb9ed64ebd0e5df96c5205cf176f1201eab229deb", dce_ast = "c09394e0ed26a70f8e85ea229760cbce21e1facaa68b9e2b84a92b0f49afa3fd", destructured_ast = "c09394e0ed26a70f8e85ea229760cbce21e1facaa68b9e2b84a92b0f49afa3fd", errors = "", flattened_ast = "c5d06b4f52dfa0b15092e7e3ec4ddadb59127a342fdf3f5961bb1a3c3d9ab6f2", initial_ast = "8a3fdeb4d59d4d1ceadec0b4cf73a54cccbc98fd1ad16ff3426ff39cf790dae4", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "c09394e0ed26a70f8e85ea229760cbce21e1facaa68b9e2b84a92b0f49afa3fd", ssa_ast = "e936be1db4ae61f50fa30639555b1fc3d7f9a1fd885b91b2e6cf18cebbf9cd26", type_checked_symbol_table = "3a53a11c2956c5969c4ea29a2fdb6978c39ee66877ab11834a42d277dd6bd79e", unrolled_ast = "8a3fdeb4d59d4d1ceadec0b4cf73a54cccbc98fd1ad16ff3426ff39cf790dae4", unrolled_symbol_table = "3a53a11c2956c5969c4ea29a2fdb6978c39ee66877ab11834a42d277dd6bd79e", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + neg 0i128 into r1; + is.eq r1 0i128 into r2; + is.eq r2 r0 into r3; + output r3 as boolean.private; +""", dce_ast = "c09394e0ed26a70f8e85ea229760cbce21e1facaa68b9e2b84a92b0f49afa3fd", destructured_ast = "c09394e0ed26a70f8e85ea229760cbce21e1facaa68b9e2b84a92b0f49afa3fd", errors = "", flattened_ast = "c5d06b4f52dfa0b15092e7e3ec4ddadb59127a342fdf3f5961bb1a3c3d9ab6f2", initial_ast = "8a3fdeb4d59d4d1ceadec0b4cf73a54cccbc98fd1ad16ff3426ff39cf790dae4", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "c09394e0ed26a70f8e85ea229760cbce21e1facaa68b9e2b84a92b0f49afa3fd", ssa_ast = "e936be1db4ae61f50fa30639555b1fc3d7f9a1fd885b91b2e6cf18cebbf9cd26", type_checked_symbol_table = "3a53a11c2956c5969c4ea29a2fdb6978c39ee66877ab11834a42d277dd6bd79e", unrolled_ast = "8a3fdeb4d59d4d1ceadec0b4cf73a54cccbc98fd1ad16ff3426ff39cf790dae4", unrolled_symbol_table = "3a53a11c2956c5969c4ea29a2fdb6978c39ee66877ab11834a42d277dd6bd79e", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/operator_methods.out b/tests/expectations/compiler/integers/i128/operator_methods.out index bfd29a9690..af0e4264d9 100644 --- a/tests/expectations/compiler/integers/i128/operator_methods.out +++ b/tests/expectations/compiler/integers/i128/operator_methods.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "3f9bcd59307e76bb9f1ec70f6b5aa9d7d279141fd0ac17f03e19ad42c64b292e", dce_ast = "0e025972bbd618d52bdca021a50f5a3cd949bcae1100327fe645c0f981dec495", destructured_ast = "50c07ff80b06b89bd4283961f54314d9ddc40a6d0aea97675fac3412d8063da4", errors = "", flattened_ast = "5913f34241ce99c06a12c40d3ce9f1f7b52364820397b91cfdf2851ff015d559", initial_ast = "e7200c2783159f95825f4c782c0f16395f684b5fadf29853d69bb6c3b1e7f0a7", initial_symbol_table = "e116fb5a4b7f59388f0627230e720e88ecf04e5e73506be4b5f6be855a59f20c", inlined_ast = "50c07ff80b06b89bd4283961f54314d9ddc40a6d0aea97675fac3412d8063da4", ssa_ast = "5a08712fb7e153575ef5f2e870c33632eae472c2bd1bc30a96fb09afd1c7cbe2", type_checked_symbol_table = "8413ae27501661233e57dd8c74f57603980235c3ecdb86774949c70a433ff865", unrolled_ast = "e7200c2783159f95825f4c782c0f16395f684b5fadf29853d69bb6c3b1e7f0a7", unrolled_symbol_table = "8413ae27501661233e57dd8c74f57603980235c3ecdb86774949c70a433ff865", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + is.eq r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "0e025972bbd618d52bdca021a50f5a3cd949bcae1100327fe645c0f981dec495", destructured_ast = "50c07ff80b06b89bd4283961f54314d9ddc40a6d0aea97675fac3412d8063da4", errors = "", flattened_ast = "5913f34241ce99c06a12c40d3ce9f1f7b52364820397b91cfdf2851ff015d559", initial_ast = "e7200c2783159f95825f4c782c0f16395f684b5fadf29853d69bb6c3b1e7f0a7", initial_symbol_table = "e116fb5a4b7f59388f0627230e720e88ecf04e5e73506be4b5f6be855a59f20c", inlined_ast = "50c07ff80b06b89bd4283961f54314d9ddc40a6d0aea97675fac3412d8063da4", ssa_ast = "5a08712fb7e153575ef5f2e870c33632eae472c2bd1bc30a96fb09afd1c7cbe2", type_checked_symbol_table = "8413ae27501661233e57dd8c74f57603980235c3ecdb86774949c70a433ff865", unrolled_ast = "e7200c2783159f95825f4c782c0f16395f684b5fadf29853d69bb6c3b1e7f0a7", unrolled_symbol_table = "8413ae27501661233e57dd8c74f57603980235c3ecdb86774949c70a433ff865", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/or.out b/tests/expectations/compiler/integers/i128/or.out index 8411f0deb9..ee2efd45fa 100644 --- a/tests/expectations/compiler/integers/i128/or.out +++ b/tests/expectations/compiler/integers/i128/or.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "85fa769a183361184804ca78415e58cd4df150b04f1b50a743771dc28df46b4b", dce_ast = "6d57ec018d170d14bb56314ac05d00d7331d4a6a8bb8613169d23dd491abdc22", destructured_ast = "6d57ec018d170d14bb56314ac05d00d7331d4a6a8bb8613169d23dd491abdc22", errors = "", flattened_ast = "79657df1a9610f5a711d553b9fe2e165ed2127cbd09b8c9a2d4edcac6bc99524", initial_ast = "78919e6578921ffa218740e345e4baed63a27d685f2fa1dbc1b1e579cf0ea411", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "6d57ec018d170d14bb56314ac05d00d7331d4a6a8bb8613169d23dd491abdc22", ssa_ast = "5ad943b23279ea25edc0ddf58fb553f83e7f648767dd09ed22413d89a4d68a61", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "78919e6578921ffa218740e345e4baed63a27d685f2fa1dbc1b1e579cf0ea411", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as i128.private; + or r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "6d57ec018d170d14bb56314ac05d00d7331d4a6a8bb8613169d23dd491abdc22", destructured_ast = "6d57ec018d170d14bb56314ac05d00d7331d4a6a8bb8613169d23dd491abdc22", errors = "", flattened_ast = "79657df1a9610f5a711d553b9fe2e165ed2127cbd09b8c9a2d4edcac6bc99524", initial_ast = "78919e6578921ffa218740e345e4baed63a27d685f2fa1dbc1b1e579cf0ea411", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "6d57ec018d170d14bb56314ac05d00d7331d4a6a8bb8613169d23dd491abdc22", ssa_ast = "5ad943b23279ea25edc0ddf58fb553f83e7f648767dd09ed22413d89a4d68a61", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "78919e6578921ffa218740e345e4baed63a27d685f2fa1dbc1b1e579cf0ea411", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/pow.out b/tests/expectations/compiler/integers/i128/pow.out index b6786f1127..3b1b5de249 100644 --- a/tests/expectations/compiler/integers/i128/pow.out +++ b/tests/expectations/compiler/integers/i128/pow.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "d190616fb105ce612eb0022279524f88dacfa3a9bef033cc54a70954b0140ef6", dce_ast = "5baa97fd15783a0725b26a7227550130ba7116f1bfef909aa88c69250b6033e3", destructured_ast = "5baa97fd15783a0725b26a7227550130ba7116f1bfef909aa88c69250b6033e3", errors = "", flattened_ast = "6eb70dfca778f3c552a2f841f86d669fb84babacb22b31aea760170d9a7f5b58", initial_ast = "961bfb743525019a76e6dffd174a840fc06ef26454ae0f40957be24253af5e46", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "5baa97fd15783a0725b26a7227550130ba7116f1bfef909aa88c69250b6033e3", ssa_ast = "146306f6f05eded52b192b9bfee4b86825ae855b719505a28bd15eba8590aa44", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "961bfb743525019a76e6dffd174a840fc06ef26454ae0f40957be24253af5e46", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as i128.private; + pow r0 2u8 into r3; + pow r0 2u16 into r4; + is.eq r3 r4 into r5; + pow r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "5baa97fd15783a0725b26a7227550130ba7116f1bfef909aa88c69250b6033e3", destructured_ast = "5baa97fd15783a0725b26a7227550130ba7116f1bfef909aa88c69250b6033e3", errors = "", flattened_ast = "6eb70dfca778f3c552a2f841f86d669fb84babacb22b31aea760170d9a7f5b58", initial_ast = "961bfb743525019a76e6dffd174a840fc06ef26454ae0f40957be24253af5e46", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "5baa97fd15783a0725b26a7227550130ba7116f1bfef909aa88c69250b6033e3", ssa_ast = "146306f6f05eded52b192b9bfee4b86825ae855b719505a28bd15eba8590aa44", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "961bfb743525019a76e6dffd174a840fc06ef26454ae0f40957be24253af5e46", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/rem.out b/tests/expectations/compiler/integers/i128/rem.out index 08a0e6adda..340650b151 100644 --- a/tests/expectations/compiler/integers/i128/rem.out +++ b/tests/expectations/compiler/integers/i128/rem.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "5d53e21705893d69b529fbcd09e2200ac612868aa3b553ab83eac9ab33ecdcad", dce_ast = "f930a97c73c41d7bd3ba28dd6df0d45fdbac3f62e6d58fdc3982605b413407e5", destructured_ast = "f930a97c73c41d7bd3ba28dd6df0d45fdbac3f62e6d58fdc3982605b413407e5", errors = "", flattened_ast = "c4f52f094312b0ade04c0302d4d8333f4184c11c4e2375870315eacfd1609dba", initial_ast = "cf41bc02e3e09ef39d1923fa0f21efdba0d5345a52637b9c66c4b82f78dda181", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "f930a97c73c41d7bd3ba28dd6df0d45fdbac3f62e6d58fdc3982605b413407e5", ssa_ast = "0423308918cd8a3aa5a15bb008bee3c3e5c982250fe43ce6bd66ba168ebfd5d3", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "cf41bc02e3e09ef39d1923fa0f21efdba0d5345a52637b9c66c4b82f78dda181", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as i128.private; + rem r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "f930a97c73c41d7bd3ba28dd6df0d45fdbac3f62e6d58fdc3982605b413407e5", destructured_ast = "f930a97c73c41d7bd3ba28dd6df0d45fdbac3f62e6d58fdc3982605b413407e5", errors = "", flattened_ast = "c4f52f094312b0ade04c0302d4d8333f4184c11c4e2375870315eacfd1609dba", initial_ast = "cf41bc02e3e09ef39d1923fa0f21efdba0d5345a52637b9c66c4b82f78dda181", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "f930a97c73c41d7bd3ba28dd6df0d45fdbac3f62e6d58fdc3982605b413407e5", ssa_ast = "0423308918cd8a3aa5a15bb008bee3c3e5c982250fe43ce6bd66ba168ebfd5d3", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "cf41bc02e3e09ef39d1923fa0f21efdba0d5345a52637b9c66c4b82f78dda181", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/shl.out b/tests/expectations/compiler/integers/i128/shl.out index 86aad7127d..3d96134a53 100644 --- a/tests/expectations/compiler/integers/i128/shl.out +++ b/tests/expectations/compiler/integers/i128/shl.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "d27718f2372db60651de0720d5d611c3199e4be462f5a122ec9fbf05720f9700", dce_ast = "3dbe369a7480aa6dbf84ec742b034165f42586ab39f2395c4663e1aa2bde69e6", destructured_ast = "3dbe369a7480aa6dbf84ec742b034165f42586ab39f2395c4663e1aa2bde69e6", errors = "", flattened_ast = "a367d58b22397aadf2a9b50176228388cd5e995ec76e1df1721d1f268cccb767", initial_ast = "4e22d0070d5ef054960290bf20bbe677532b7cd29656da2416cbb9ad29e4f28d", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "3dbe369a7480aa6dbf84ec742b034165f42586ab39f2395c4663e1aa2bde69e6", ssa_ast = "3e1857f5b77ed36a8d7d514899b278d17887cc0229061bbb36918ba1ca321c67", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "4e22d0070d5ef054960290bf20bbe677532b7cd29656da2416cbb9ad29e4f28d", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as i128.private; + shl r0 2u8 into r3; + shl r0 2u16 into r4; + is.eq r3 r4 into r5; + shl r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "3dbe369a7480aa6dbf84ec742b034165f42586ab39f2395c4663e1aa2bde69e6", destructured_ast = "3dbe369a7480aa6dbf84ec742b034165f42586ab39f2395c4663e1aa2bde69e6", errors = "", flattened_ast = "a367d58b22397aadf2a9b50176228388cd5e995ec76e1df1721d1f268cccb767", initial_ast = "4e22d0070d5ef054960290bf20bbe677532b7cd29656da2416cbb9ad29e4f28d", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "3dbe369a7480aa6dbf84ec742b034165f42586ab39f2395c4663e1aa2bde69e6", ssa_ast = "3e1857f5b77ed36a8d7d514899b278d17887cc0229061bbb36918ba1ca321c67", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "4e22d0070d5ef054960290bf20bbe677532b7cd29656da2416cbb9ad29e4f28d", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/shr.out b/tests/expectations/compiler/integers/i128/shr.out index a71a533a2f..06d4a16cc1 100644 --- a/tests/expectations/compiler/integers/i128/shr.out +++ b/tests/expectations/compiler/integers/i128/shr.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "3835c59e778362b72f87e954fe6c9777904bf7d390f68b5ff47fb6c8ef5bb258", dce_ast = "45261ddd17313128be562a27978b2481ba390079b79e010671549f13f1d2f2b2", destructured_ast = "45261ddd17313128be562a27978b2481ba390079b79e010671549f13f1d2f2b2", errors = "", flattened_ast = "d4acea907a937b5cc361d247b9ac88b467f180108ce51cb46fbc0307ca4165f8", initial_ast = "e033f6264d689a5c7b3d109a4e7bd1c3d2f9dfd9a86712b5cbc709ae5e63db6a", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "45261ddd17313128be562a27978b2481ba390079b79e010671549f13f1d2f2b2", ssa_ast = "a077a00172d25a11c338ef2be947723ebc4cc44f37486b2cbfe7e5e13b830894", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "e033f6264d689a5c7b3d109a4e7bd1c3d2f9dfd9a86712b5cbc709ae5e63db6a", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as i128.private; + shr r0 2u8 into r3; + shr r0 2u16 into r4; + is.eq r3 r4 into r5; + shr r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "45261ddd17313128be562a27978b2481ba390079b79e010671549f13f1d2f2b2", destructured_ast = "45261ddd17313128be562a27978b2481ba390079b79e010671549f13f1d2f2b2", errors = "", flattened_ast = "d4acea907a937b5cc361d247b9ac88b467f180108ce51cb46fbc0307ca4165f8", initial_ast = "e033f6264d689a5c7b3d109a4e7bd1c3d2f9dfd9a86712b5cbc709ae5e63db6a", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "45261ddd17313128be562a27978b2481ba390079b79e010671549f13f1d2f2b2", ssa_ast = "a077a00172d25a11c338ef2be947723ebc4cc44f37486b2cbfe7e5e13b830894", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "e033f6264d689a5c7b3d109a4e7bd1c3d2f9dfd9a86712b5cbc709ae5e63db6a", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/sub.out b/tests/expectations/compiler/integers/i128/sub.out index 2b4e7277a2..ca85cd5fa2 100644 --- a/tests/expectations/compiler/integers/i128/sub.out +++ b/tests/expectations/compiler/integers/i128/sub.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "1adab47eb5efe9d41dbad9d8b31eb8866871818b40ef6bd54a77c8b016683a5a", dce_ast = "076206dd1b4a83be588251a571ec952d8ba5771da531a287fe56d36e1dca5e02", destructured_ast = "076206dd1b4a83be588251a571ec952d8ba5771da531a287fe56d36e1dca5e02", errors = "", flattened_ast = "a6787b875bc922630b77f26b2dec98af36ed818d825c4eafff0b00bfacead1dc", initial_ast = "366d4b0df2cf6d2263b2fd00b3113becf91de4616e8bf5f86684454bebb2cff2", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "076206dd1b4a83be588251a571ec952d8ba5771da531a287fe56d36e1dca5e02", ssa_ast = "452a3ded08bdc82a4137f6c83de0d686f794d2628c2f08b8c59570531fbd175c", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "366d4b0df2cf6d2263b2fd00b3113becf91de4616e8bf5f86684454bebb2cff2", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + input r2 as i128.private; + sub r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "076206dd1b4a83be588251a571ec952d8ba5771da531a287fe56d36e1dca5e02", destructured_ast = "076206dd1b4a83be588251a571ec952d8ba5771da531a287fe56d36e1dca5e02", errors = "", flattened_ast = "a6787b875bc922630b77f26b2dec98af36ed818d825c4eafff0b00bfacead1dc", initial_ast = "366d4b0df2cf6d2263b2fd00b3113becf91de4616e8bf5f86684454bebb2cff2", initial_symbol_table = "ed68e1a27ce8421017d6a9ee6d23e2e9cb5c7fbad80c6c27d0878ae4c420d366", inlined_ast = "076206dd1b4a83be588251a571ec952d8ba5771da531a287fe56d36e1dca5e02", ssa_ast = "452a3ded08bdc82a4137f6c83de0d686f794d2628c2f08b8c59570531fbd175c", type_checked_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", unrolled_ast = "366d4b0df2cf6d2263b2fd00b3113becf91de4616e8bf5f86684454bebb2cff2", unrolled_symbol_table = "49b912a7c0bbe948c6c049b6e56d90aeb245cdd80d17105302c68a66bea4bd01", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/ternary.out b/tests/expectations/compiler/integers/i128/ternary.out index 274244da72..fee8a448c0 100644 --- a/tests/expectations/compiler/integers/i128/ternary.out +++ b/tests/expectations/compiler/integers/i128/ternary.out @@ -1,3 +1,16 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "dfa955d512febab56fa2b549f3f0857663aaddb77a71f0322d48b26af49eb2af", dce_ast = "72361c470c5bacf68944f864aa46d0a26eacecf977d4e3ffaec18f3ad6a58ae9", destructured_ast = "72361c470c5bacf68944f864aa46d0a26eacecf977d4e3ffaec18f3ad6a58ae9", errors = "", flattened_ast = "79798fc4c657bf4b1f316db4fc70e3be0fef1add5157f39a97bc89abb16c1ae5", initial_ast = "ed5862f46b7b3ef3addca4454ba225646fd1d9cc800a5a4f8d585d631d9d36f6", initial_symbol_table = "acbedd59b5575955dd3e57c00324a9e42deb95c8c2734a29945bf9e2d1926e73", inlined_ast = "72361c470c5bacf68944f864aa46d0a26eacecf977d4e3ffaec18f3ad6a58ae9", ssa_ast = "17e1a255732c391dfff6fa4fd03f076cef97983916d270fece8cb17fb7bcdfb8", type_checked_symbol_table = "2b5d52c6c048a69f9d65cc5139276af72ef27e5d6524255fafe3465c247197d6", unrolled_ast = "ed5862f46b7b3ef3addca4454ba225646fd1d9cc800a5a4f8d585d631d9d36f6", unrolled_symbol_table = "2b5d52c6c048a69f9d65cc5139276af72ef27e5d6524255fafe3465c247197d6", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + input r1 as i128.private; + input r2 as i128.private; + input r3 as i128.private; + ternary r0 r1 r2 into r4; + is.eq r4 r3 into r5; + output r5 as boolean.private; +""", dce_ast = "72361c470c5bacf68944f864aa46d0a26eacecf977d4e3ffaec18f3ad6a58ae9", destructured_ast = "72361c470c5bacf68944f864aa46d0a26eacecf977d4e3ffaec18f3ad6a58ae9", errors = "", flattened_ast = "79798fc4c657bf4b1f316db4fc70e3be0fef1add5157f39a97bc89abb16c1ae5", initial_ast = "ed5862f46b7b3ef3addca4454ba225646fd1d9cc800a5a4f8d585d631d9d36f6", initial_symbol_table = "acbedd59b5575955dd3e57c00324a9e42deb95c8c2734a29945bf9e2d1926e73", inlined_ast = "72361c470c5bacf68944f864aa46d0a26eacecf977d4e3ffaec18f3ad6a58ae9", ssa_ast = "17e1a255732c391dfff6fa4fd03f076cef97983916d270fece8cb17fb7bcdfb8", type_checked_symbol_table = "2b5d52c6c048a69f9d65cc5139276af72ef27e5d6524255fafe3465c247197d6", unrolled_ast = "ed5862f46b7b3ef3addca4454ba225646fd1d9cc800a5a4f8d585d631d9d36f6", unrolled_symbol_table = "2b5d52c6c048a69f9d65cc5139276af72ef27e5d6524255fafe3465c247197d6", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i128/xor.out b/tests/expectations/compiler/integers/i128/xor.out index c4011d4370..01f3995231 100644 --- a/tests/expectations/compiler/integers/i128/xor.out +++ b/tests/expectations/compiler/integers/i128/xor.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "a4e52d530daa111c685a34ebf07350f49f886e72fb1af5fd8c789c1ece9813b9", dce_ast = "41ecb7c203f73526315a53f4378c30b97a20bb9b37dc9ea0d74f766ed21617f5", destructured_ast = "41ecb7c203f73526315a53f4378c30b97a20bb9b37dc9ea0d74f766ed21617f5", errors = "", flattened_ast = "81128b2004af5b82555f63a1b3cb5a8a0be8a827140b0288d5e683f2b60e5ff7", initial_ast = "9e76917851d61af22d72f51a13eecddee12d361f36b5f732cf7a89ee77aac079", initial_symbol_table = "b507044a654db0c30b45b373e38fa3e58e04ee5d435c1ceeba2dd237828a158a", inlined_ast = "41ecb7c203f73526315a53f4378c30b97a20bb9b37dc9ea0d74f766ed21617f5", ssa_ast = "acbfeb5f768f531964b2114a7c06ff4e5cbcfa04b9c04a271911a32132f523a4", type_checked_symbol_table = "817f9f9f80502582ed47ad3c2fb0e05a56c4542c965c8d66278b23df159d038e", unrolled_ast = "9e76917851d61af22d72f51a13eecddee12d361f36b5f732cf7a89ee77aac079", unrolled_symbol_table = "817f9f9f80502582ed47ad3c2fb0e05a56c4542c965c8d66278b23df159d038e", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i128.private; + input r1 as i128.private; + xor r0 r1 into r2; + output r2 as i128.private; +""", dce_ast = "41ecb7c203f73526315a53f4378c30b97a20bb9b37dc9ea0d74f766ed21617f5", destructured_ast = "41ecb7c203f73526315a53f4378c30b97a20bb9b37dc9ea0d74f766ed21617f5", errors = "", flattened_ast = "81128b2004af5b82555f63a1b3cb5a8a0be8a827140b0288d5e683f2b60e5ff7", initial_ast = "9e76917851d61af22d72f51a13eecddee12d361f36b5f732cf7a89ee77aac079", initial_symbol_table = "b507044a654db0c30b45b373e38fa3e58e04ee5d435c1ceeba2dd237828a158a", inlined_ast = "41ecb7c203f73526315a53f4378c30b97a20bb9b37dc9ea0d74f766ed21617f5", ssa_ast = "acbfeb5f768f531964b2114a7c06ff4e5cbcfa04b9c04a271911a32132f523a4", type_checked_symbol_table = "817f9f9f80502582ed47ad3c2fb0e05a56c4542c965c8d66278b23df159d038e", unrolled_ast = "9e76917851d61af22d72f51a13eecddee12d361f36b5f732cf7a89ee77aac079", unrolled_symbol_table = "817f9f9f80502582ed47ad3c2fb0e05a56c4542c965c8d66278b23df159d038e", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/add.out b/tests/expectations/compiler/integers/i16/add.out index a3b5d74e50..08ff1800fc 100644 --- a/tests/expectations/compiler/integers/i16/add.out +++ b/tests/expectations/compiler/integers/i16/add.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4d6180dac5a97d9a8f2825b4cae41adec00897380b309e1ffadda4ddd4f607fa", dce_ast = "d8eb9c9c0b0518732dc15bf2dd812e6b71b16af1a19e98abe5bdaf642274642f", destructured_ast = "d8eb9c9c0b0518732dc15bf2dd812e6b71b16af1a19e98abe5bdaf642274642f", errors = "", flattened_ast = "d2f11e953067d8bbaaea97bf495dc461a0368f4ec56f61e9d76bff9e5a919002", initial_ast = "6c8f47e04135bd9001ca9fa0c9792f0fe56619f6610c7389ab61ced60c0cd272", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "d8eb9c9c0b0518732dc15bf2dd812e6b71b16af1a19e98abe5bdaf642274642f", ssa_ast = "f71009ea8a0fae7bd9a28b477e02df08ff3cfa479b7f81e2f0b63f0100ce3d96", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "6c8f47e04135bd9001ca9fa0c9792f0fe56619f6610c7389ab61ced60c0cd272", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as i16.private; + add r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "d8eb9c9c0b0518732dc15bf2dd812e6b71b16af1a19e98abe5bdaf642274642f", destructured_ast = "d8eb9c9c0b0518732dc15bf2dd812e6b71b16af1a19e98abe5bdaf642274642f", errors = "", flattened_ast = "d2f11e953067d8bbaaea97bf495dc461a0368f4ec56f61e9d76bff9e5a919002", initial_ast = "6c8f47e04135bd9001ca9fa0c9792f0fe56619f6610c7389ab61ced60c0cd272", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "d8eb9c9c0b0518732dc15bf2dd812e6b71b16af1a19e98abe5bdaf642274642f", ssa_ast = "f71009ea8a0fae7bd9a28b477e02df08ff3cfa479b7f81e2f0b63f0100ce3d96", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "6c8f47e04135bd9001ca9fa0c9792f0fe56619f6610c7389ab61ced60c0cd272", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/and.out b/tests/expectations/compiler/integers/i16/and.out index ca699c67bc..599556416c 100644 --- a/tests/expectations/compiler/integers/i16/and.out +++ b/tests/expectations/compiler/integers/i16/and.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "a0056ca7a6a670a9bb0bc979e224136219b6a336c43d3ecd624c218cba49ba22", dce_ast = "236aabb1766a47171bbe9cff06db9414d820d183480a30a9b32232b0fb2f4cf5", destructured_ast = "236aabb1766a47171bbe9cff06db9414d820d183480a30a9b32232b0fb2f4cf5", errors = "", flattened_ast = "d050c38ea3e92aa63b796eb0317f920753fbb0de6bd3755a2cb651d8d8f0366d", initial_ast = "7e0064f246356a7ff33274423620c3f47ae369132d440b4c34c9beb2a526bd7f", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "236aabb1766a47171bbe9cff06db9414d820d183480a30a9b32232b0fb2f4cf5", ssa_ast = "3cf17e37c8b7809f7201c566404da558ff53211bd67bcefd7a9410626d6c13d3", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "7e0064f246356a7ff33274423620c3f47ae369132d440b4c34c9beb2a526bd7f", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as i16.private; + and r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "236aabb1766a47171bbe9cff06db9414d820d183480a30a9b32232b0fb2f4cf5", destructured_ast = "236aabb1766a47171bbe9cff06db9414d820d183480a30a9b32232b0fb2f4cf5", errors = "", flattened_ast = "d050c38ea3e92aa63b796eb0317f920753fbb0de6bd3755a2cb651d8d8f0366d", initial_ast = "7e0064f246356a7ff33274423620c3f47ae369132d440b4c34c9beb2a526bd7f", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "236aabb1766a47171bbe9cff06db9414d820d183480a30a9b32232b0fb2f4cf5", ssa_ast = "3cf17e37c8b7809f7201c566404da558ff53211bd67bcefd7a9410626d6c13d3", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "7e0064f246356a7ff33274423620c3f47ae369132d440b4c34c9beb2a526bd7f", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/console_assert.out b/tests/expectations/compiler/integers/i16/console_assert.out index 229240acc2..5106b24bc1 100644 --- a/tests/expectations/compiler/integers/i16/console_assert.out +++ b/tests/expectations/compiler/integers/i16/console_assert.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "ac2d2f57bf49761437884caa2b7f46c8c33df05175d3cba3ace16cb068374f18", dce_ast = "bab98c5e44163a1309917bea9ccaf9e8f4cddd02580d5abcb76bbe17b64aaa2f", destructured_ast = "bab98c5e44163a1309917bea9ccaf9e8f4cddd02580d5abcb76bbe17b64aaa2f", errors = "", flattened_ast = "51b1dfa630ccfe91d0b4338352400c2817e4ec97d13cebd011b8f8df53dae9b6", initial_ast = "bdee36b9cbe57911a877087f4eeadfa83c953154bd8e41a76262bbf7d32beb2d", initial_symbol_table = "db67403754f14b3ef4395457b82051ceeea57cf62bee53ae09126dbca5992143", inlined_ast = "bab98c5e44163a1309917bea9ccaf9e8f4cddd02580d5abcb76bbe17b64aaa2f", ssa_ast = "5ab1d2a184285e2cc6a67587bc6b59ad0f6a94492602a6c47a2c870e09b1dcd0", type_checked_symbol_table = "201e986733822a2677f3fb2ee0b23fef68fbc575a640a9543dbf8849ac08ab4c", unrolled_ast = "bdee36b9cbe57911a877087f4eeadfa83c953154bd8e41a76262bbf7d32beb2d", unrolled_symbol_table = "201e986733822a2677f3fb2ee0b23fef68fbc575a640a9543dbf8849ac08ab4c", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + is.eq r0 r1 into r2; + assert.eq r2 true; + output r2 as boolean.private; +""", dce_ast = "bab98c5e44163a1309917bea9ccaf9e8f4cddd02580d5abcb76bbe17b64aaa2f", destructured_ast = "bab98c5e44163a1309917bea9ccaf9e8f4cddd02580d5abcb76bbe17b64aaa2f", errors = "", flattened_ast = "51b1dfa630ccfe91d0b4338352400c2817e4ec97d13cebd011b8f8df53dae9b6", initial_ast = "bdee36b9cbe57911a877087f4eeadfa83c953154bd8e41a76262bbf7d32beb2d", initial_symbol_table = "db67403754f14b3ef4395457b82051ceeea57cf62bee53ae09126dbca5992143", inlined_ast = "bab98c5e44163a1309917bea9ccaf9e8f4cddd02580d5abcb76bbe17b64aaa2f", ssa_ast = "5ab1d2a184285e2cc6a67587bc6b59ad0f6a94492602a6c47a2c870e09b1dcd0", type_checked_symbol_table = "201e986733822a2677f3fb2ee0b23fef68fbc575a640a9543dbf8849ac08ab4c", unrolled_ast = "bdee36b9cbe57911a877087f4eeadfa83c953154bd8e41a76262bbf7d32beb2d", unrolled_symbol_table = "201e986733822a2677f3fb2ee0b23fef68fbc575a640a9543dbf8849ac08ab4c", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/div.out b/tests/expectations/compiler/integers/i16/div.out index c29b088985..f614037334 100644 --- a/tests/expectations/compiler/integers/i16/div.out +++ b/tests/expectations/compiler/integers/i16/div.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "0d753f8ac24fd6daf4150b9ab5d1469e61c65d75c6eddcc8a5dd859e8084fb2f", dce_ast = "a1f15537cbd436509d0f7042e2a300b733d0abd36323a1595dfe3a6b294816f8", destructured_ast = "a1f15537cbd436509d0f7042e2a300b733d0abd36323a1595dfe3a6b294816f8", errors = "", flattened_ast = "9cd3c3ef2cff9ad4b503775bcec497a86dd3d2d0733751e413e2bf2578220953", initial_ast = "038f29d9bd864f7ba4fdf5b8816c65608f6cad0a666aa5c0e1b677fec0b43d4a", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "a1f15537cbd436509d0f7042e2a300b733d0abd36323a1595dfe3a6b294816f8", ssa_ast = "ed5404d130ae5bf4e1135fc198fcda42ac055f1b42648c9ee7f0bb5f118c091e", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "038f29d9bd864f7ba4fdf5b8816c65608f6cad0a666aa5c0e1b677fec0b43d4a", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as i16.private; + div r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "a1f15537cbd436509d0f7042e2a300b733d0abd36323a1595dfe3a6b294816f8", destructured_ast = "a1f15537cbd436509d0f7042e2a300b733d0abd36323a1595dfe3a6b294816f8", errors = "", flattened_ast = "9cd3c3ef2cff9ad4b503775bcec497a86dd3d2d0733751e413e2bf2578220953", initial_ast = "038f29d9bd864f7ba4fdf5b8816c65608f6cad0a666aa5c0e1b677fec0b43d4a", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "a1f15537cbd436509d0f7042e2a300b733d0abd36323a1595dfe3a6b294816f8", ssa_ast = "ed5404d130ae5bf4e1135fc198fcda42ac055f1b42648c9ee7f0bb5f118c091e", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "038f29d9bd864f7ba4fdf5b8816c65608f6cad0a666aa5c0e1b677fec0b43d4a", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/eq.out b/tests/expectations/compiler/integers/i16/eq.out index 23cf5e47b9..e6f61a849c 100644 --- a/tests/expectations/compiler/integers/i16/eq.out +++ b/tests/expectations/compiler/integers/i16/eq.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "898a6a5cc452219a2c31f1cc7f0c73c6eea23a72d4d331e013cfb866167467e2", dce_ast = "8d726ce0ff0543d808751f23cd0ace00df543021fb1a76286f8d062c52a57cc7", destructured_ast = "8d726ce0ff0543d808751f23cd0ace00df543021fb1a76286f8d062c52a57cc7", errors = "", flattened_ast = "d40b7e818e541c629e462b845fabd0505036172f082c2787794b7d25c16e57c5", initial_ast = "9d60d2c086520f8391b0c7374d30cd11cc30acd9a2a49f35bf52e89c4be0674d", initial_symbol_table = "5df2ffe594181b9cc0903c90708400e008e6b311701d2436476b779ba61c1d23", inlined_ast = "8d726ce0ff0543d808751f23cd0ace00df543021fb1a76286f8d062c52a57cc7", ssa_ast = "cf36eb27361ccc7f9d18f6feb1f43a2cb3011a32f016663bbb8efd501781cef5", type_checked_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", unrolled_ast = "9d60d2c086520f8391b0c7374d30cd11cc30acd9a2a49f35bf52e89c4be0674d", unrolled_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as boolean.private; + is.eq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "8d726ce0ff0543d808751f23cd0ace00df543021fb1a76286f8d062c52a57cc7", destructured_ast = "8d726ce0ff0543d808751f23cd0ace00df543021fb1a76286f8d062c52a57cc7", errors = "", flattened_ast = "d40b7e818e541c629e462b845fabd0505036172f082c2787794b7d25c16e57c5", initial_ast = "9d60d2c086520f8391b0c7374d30cd11cc30acd9a2a49f35bf52e89c4be0674d", initial_symbol_table = "5df2ffe594181b9cc0903c90708400e008e6b311701d2436476b779ba61c1d23", inlined_ast = "8d726ce0ff0543d808751f23cd0ace00df543021fb1a76286f8d062c52a57cc7", ssa_ast = "cf36eb27361ccc7f9d18f6feb1f43a2cb3011a32f016663bbb8efd501781cef5", type_checked_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", unrolled_ast = "9d60d2c086520f8391b0c7374d30cd11cc30acd9a2a49f35bf52e89c4be0674d", unrolled_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/ge.out b/tests/expectations/compiler/integers/i16/ge.out index 1e75ea31cc..a90ee37ff1 100644 --- a/tests/expectations/compiler/integers/i16/ge.out +++ b/tests/expectations/compiler/integers/i16/ge.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e35d3733d6b9cdae2cad91fa9100d057efcbdf45f16994f11a75319486a81e64", dce_ast = "c88b48861a55431b7e0a4bb67c3926771fdede703bc1f654662b5b50ebd51b16", destructured_ast = "c88b48861a55431b7e0a4bb67c3926771fdede703bc1f654662b5b50ebd51b16", errors = "", flattened_ast = "423022ef7438e119cb9f85504614f2806aaff9397b9f5bee728a5e53ce7604d6", initial_ast = "45987607ac9573cd3cc792bf37953df05191898c6417af32467bbd19836447f3", initial_symbol_table = "5df2ffe594181b9cc0903c90708400e008e6b311701d2436476b779ba61c1d23", inlined_ast = "c88b48861a55431b7e0a4bb67c3926771fdede703bc1f654662b5b50ebd51b16", ssa_ast = "9e4dca84f1c7bc06e7e2f432119bc4a742137b0756da6d628c12a93880dcebef", type_checked_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", unrolled_ast = "45987607ac9573cd3cc792bf37953df05191898c6417af32467bbd19836447f3", unrolled_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as boolean.private; + gte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "c88b48861a55431b7e0a4bb67c3926771fdede703bc1f654662b5b50ebd51b16", destructured_ast = "c88b48861a55431b7e0a4bb67c3926771fdede703bc1f654662b5b50ebd51b16", errors = "", flattened_ast = "423022ef7438e119cb9f85504614f2806aaff9397b9f5bee728a5e53ce7604d6", initial_ast = "45987607ac9573cd3cc792bf37953df05191898c6417af32467bbd19836447f3", initial_symbol_table = "5df2ffe594181b9cc0903c90708400e008e6b311701d2436476b779ba61c1d23", inlined_ast = "c88b48861a55431b7e0a4bb67c3926771fdede703bc1f654662b5b50ebd51b16", ssa_ast = "9e4dca84f1c7bc06e7e2f432119bc4a742137b0756da6d628c12a93880dcebef", type_checked_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", unrolled_ast = "45987607ac9573cd3cc792bf37953df05191898c6417af32467bbd19836447f3", unrolled_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/gt.out b/tests/expectations/compiler/integers/i16/gt.out index bd1ac52282..3d68e2448d 100644 --- a/tests/expectations/compiler/integers/i16/gt.out +++ b/tests/expectations/compiler/integers/i16/gt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "8195766fd4b565e30f6f4e088c57977e5a558d68847e0a61fe2b8de79bd2590d", dce_ast = "65f104dc0166e5e037a71ca5039369c87a383af76bb07e24a77aafabe41aac5c", destructured_ast = "65f104dc0166e5e037a71ca5039369c87a383af76bb07e24a77aafabe41aac5c", errors = "", flattened_ast = "708abf5b9aced79c5f41ee88114ea5b11895cd0335c979853ecb7ba1c2878ca4", initial_ast = "a3d6d06d64f87e9100c2c29ff404d80f18fa35227f989ebfebaf6bd565539d8d", initial_symbol_table = "5df2ffe594181b9cc0903c90708400e008e6b311701d2436476b779ba61c1d23", inlined_ast = "65f104dc0166e5e037a71ca5039369c87a383af76bb07e24a77aafabe41aac5c", ssa_ast = "d343b1ed12fde8c888e41213991b6eed7814058f702efd82af14144ef7c48e44", type_checked_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", unrolled_ast = "a3d6d06d64f87e9100c2c29ff404d80f18fa35227f989ebfebaf6bd565539d8d", unrolled_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as boolean.private; + gt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "65f104dc0166e5e037a71ca5039369c87a383af76bb07e24a77aafabe41aac5c", destructured_ast = "65f104dc0166e5e037a71ca5039369c87a383af76bb07e24a77aafabe41aac5c", errors = "", flattened_ast = "708abf5b9aced79c5f41ee88114ea5b11895cd0335c979853ecb7ba1c2878ca4", initial_ast = "a3d6d06d64f87e9100c2c29ff404d80f18fa35227f989ebfebaf6bd565539d8d", initial_symbol_table = "5df2ffe594181b9cc0903c90708400e008e6b311701d2436476b779ba61c1d23", inlined_ast = "65f104dc0166e5e037a71ca5039369c87a383af76bb07e24a77aafabe41aac5c", ssa_ast = "d343b1ed12fde8c888e41213991b6eed7814058f702efd82af14144ef7c48e44", type_checked_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", unrolled_ast = "a3d6d06d64f87e9100c2c29ff404d80f18fa35227f989ebfebaf6bd565539d8d", unrolled_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/hex_and_bin.out b/tests/expectations/compiler/integers/i16/hex_and_bin.out index d9e825ffb9..69b1a5adf2 100644 --- a/tests/expectations/compiler/integers/i16/hex_and_bin.out +++ b/tests/expectations/compiler/integers/i16/hex_and_bin.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "abbe9790219732acac590659c2aa27351a46df65ca5cc03c9def1889d5642d2d", dce_ast = "f9434ee8cb2104ba7085d97a57f5e9ff6c25a30064fb1b7cfebcd6c1726b54d6", destructured_ast = "f9434ee8cb2104ba7085d97a57f5e9ff6c25a30064fb1b7cfebcd6c1726b54d6", errors = "", flattened_ast = "042a582d89960ccf8683decbf3a0b3b44c66d53f8922ef878ae83317c16eb777", initial_ast = "40da0941a9022d4da4860586a31ab26d1062f58eb5c254a8729160cc34d62f30", initial_symbol_table = "29029f1a16e25967a35a6ed07eb857a7a14c2aff01cbe5cc53065fb37de75e33", inlined_ast = "f9434ee8cb2104ba7085d97a57f5e9ff6c25a30064fb1b7cfebcd6c1726b54d6", ssa_ast = "10914c235af1410bcc77ba6b7ef1378d414b655086650d6b6814b5adfa29cb17", type_checked_symbol_table = "b18c7816d649a45de2cb8867c4d7f791b48da710b8a68be9ad2e81a8acebbf09", unrolled_ast = "40da0941a9022d4da4860586a31ab26d1062f58eb5c254a8729160cc34d62f30", unrolled_symbol_table = "b18c7816d649a45de2cb8867c4d7f791b48da710b8a68be9ad2e81a8acebbf09", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as i16.private; + is.eq r0 127i16 into r3; + is.eq r1 27i16 into r4; + and r3 r4 into r5; + is.eq r2 21i16 into r6; + and r5 r6 into r7; + output r7 as boolean.private; +""", dce_ast = "f9434ee8cb2104ba7085d97a57f5e9ff6c25a30064fb1b7cfebcd6c1726b54d6", destructured_ast = "f9434ee8cb2104ba7085d97a57f5e9ff6c25a30064fb1b7cfebcd6c1726b54d6", errors = "", flattened_ast = "042a582d89960ccf8683decbf3a0b3b44c66d53f8922ef878ae83317c16eb777", initial_ast = "40da0941a9022d4da4860586a31ab26d1062f58eb5c254a8729160cc34d62f30", initial_symbol_table = "29029f1a16e25967a35a6ed07eb857a7a14c2aff01cbe5cc53065fb37de75e33", inlined_ast = "f9434ee8cb2104ba7085d97a57f5e9ff6c25a30064fb1b7cfebcd6c1726b54d6", ssa_ast = "10914c235af1410bcc77ba6b7ef1378d414b655086650d6b6814b5adfa29cb17", type_checked_symbol_table = "b18c7816d649a45de2cb8867c4d7f791b48da710b8a68be9ad2e81a8acebbf09", unrolled_ast = "40da0941a9022d4da4860586a31ab26d1062f58eb5c254a8729160cc34d62f30", unrolled_symbol_table = "b18c7816d649a45de2cb8867c4d7f791b48da710b8a68be9ad2e81a8acebbf09", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/le.out b/tests/expectations/compiler/integers/i16/le.out index a9256590ee..ca5f0fbfe8 100644 --- a/tests/expectations/compiler/integers/i16/le.out +++ b/tests/expectations/compiler/integers/i16/le.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "98dc59dd7939556e96fd2a7f222612401d18c45c3d38845f2c68d273b1d848c3", dce_ast = "b017320038799ac1eee8d3d21424e61350093eb48a9f46a14cc0b181c21c62f8", destructured_ast = "b017320038799ac1eee8d3d21424e61350093eb48a9f46a14cc0b181c21c62f8", errors = "", flattened_ast = "10a0d660647a6ff40cac8df4a1815b1e53755480603bf11c8de1a7f8e72e89ab", initial_ast = "01f6e6d33ad437e8b6fb4ce0dff5c514e3171533e64a52ad177408705006e892", initial_symbol_table = "5df2ffe594181b9cc0903c90708400e008e6b311701d2436476b779ba61c1d23", inlined_ast = "b017320038799ac1eee8d3d21424e61350093eb48a9f46a14cc0b181c21c62f8", ssa_ast = "9a7d0212c75fa433a90af18edd4a5dbb1c4a8f6bf2cc259c2f9b492ecdf4354b", type_checked_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", unrolled_ast = "01f6e6d33ad437e8b6fb4ce0dff5c514e3171533e64a52ad177408705006e892", unrolled_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as boolean.private; + lte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "b017320038799ac1eee8d3d21424e61350093eb48a9f46a14cc0b181c21c62f8", destructured_ast = "b017320038799ac1eee8d3d21424e61350093eb48a9f46a14cc0b181c21c62f8", errors = "", flattened_ast = "10a0d660647a6ff40cac8df4a1815b1e53755480603bf11c8de1a7f8e72e89ab", initial_ast = "01f6e6d33ad437e8b6fb4ce0dff5c514e3171533e64a52ad177408705006e892", initial_symbol_table = "5df2ffe594181b9cc0903c90708400e008e6b311701d2436476b779ba61c1d23", inlined_ast = "b017320038799ac1eee8d3d21424e61350093eb48a9f46a14cc0b181c21c62f8", ssa_ast = "9a7d0212c75fa433a90af18edd4a5dbb1c4a8f6bf2cc259c2f9b492ecdf4354b", type_checked_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", unrolled_ast = "01f6e6d33ad437e8b6fb4ce0dff5c514e3171533e64a52ad177408705006e892", unrolled_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/lt.out b/tests/expectations/compiler/integers/i16/lt.out index f878c0fa92..b8ff32227d 100644 --- a/tests/expectations/compiler/integers/i16/lt.out +++ b/tests/expectations/compiler/integers/i16/lt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "1ce9578b21f22dfd7342da3a2ea28ed86cb30b94475fc02329dab93fe121eaa3", dce_ast = "8f44e3696dabbb42c522c3e5de6e5a6f606a7c569a4569382c1e68bf999c1080", destructured_ast = "8f44e3696dabbb42c522c3e5de6e5a6f606a7c569a4569382c1e68bf999c1080", errors = "", flattened_ast = "b55b15c0327af13788356383bec2a16488af78c7604ce7d22ba9c2e4fc3a5200", initial_ast = "0422a0f0a4dc555e53af34cda3cf096e578d2bf3159b93bac928938695f869ce", initial_symbol_table = "5df2ffe594181b9cc0903c90708400e008e6b311701d2436476b779ba61c1d23", inlined_ast = "8f44e3696dabbb42c522c3e5de6e5a6f606a7c569a4569382c1e68bf999c1080", ssa_ast = "32be361ea64b6ac8c2d2f67c4d00d9c74f8f65e4667a1e238b38441b57d067e8", type_checked_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", unrolled_ast = "0422a0f0a4dc555e53af34cda3cf096e578d2bf3159b93bac928938695f869ce", unrolled_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as boolean.private; + lt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "8f44e3696dabbb42c522c3e5de6e5a6f606a7c569a4569382c1e68bf999c1080", destructured_ast = "8f44e3696dabbb42c522c3e5de6e5a6f606a7c569a4569382c1e68bf999c1080", errors = "", flattened_ast = "b55b15c0327af13788356383bec2a16488af78c7604ce7d22ba9c2e4fc3a5200", initial_ast = "0422a0f0a4dc555e53af34cda3cf096e578d2bf3159b93bac928938695f869ce", initial_symbol_table = "5df2ffe594181b9cc0903c90708400e008e6b311701d2436476b779ba61c1d23", inlined_ast = "8f44e3696dabbb42c522c3e5de6e5a6f606a7c569a4569382c1e68bf999c1080", ssa_ast = "32be361ea64b6ac8c2d2f67c4d00d9c74f8f65e4667a1e238b38441b57d067e8", type_checked_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", unrolled_ast = "0422a0f0a4dc555e53af34cda3cf096e578d2bf3159b93bac928938695f869ce", unrolled_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/max.out b/tests/expectations/compiler/integers/i16/max.out index 1510bb541b..163538f40a 100644 --- a/tests/expectations/compiler/integers/i16/max.out +++ b/tests/expectations/compiler/integers/i16/max.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "45295d2179ab802afcc86d7d5b8c0b17afcdab726c8cca491370f77918e64a2b", dce_ast = "319ea3581116c393dc0ae8bbd39809b64eee4e217d0ed32d02a10b897c45c438", destructured_ast = "319ea3581116c393dc0ae8bbd39809b64eee4e217d0ed32d02a10b897c45c438", errors = "", flattened_ast = "dfe4b31e00a15032fa75f0a29d22d6d93344b3bf7d102274ccddfd15628eeb26", initial_ast = "2259743a46d3ea04db7e76df9460ced1999fd2a1e3d7edfb6cc511af5d2408a5", initial_symbol_table = "d47aa228cf5afeb1a4b11a842278aa70b8a72e1bae896afaf92aeb43b7c7f591", inlined_ast = "319ea3581116c393dc0ae8bbd39809b64eee4e217d0ed32d02a10b897c45c438", ssa_ast = "db4dd33512c7a427af08beb26d3fd65427f11f211bd0348c8b98e336df53d206", type_checked_symbol_table = "b0ea0a68e00ce7191185bf0abcaf4d4f143f236d27413b71220b76915ca3061f", unrolled_ast = "2259743a46d3ea04db7e76df9460ced1999fd2a1e3d7edfb6cc511af5d2408a5", unrolled_symbol_table = "b0ea0a68e00ce7191185bf0abcaf4d4f143f236d27413b71220b76915ca3061f", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + sub 32767i16 r0 into r1; + output r1 as i16.private; +""", dce_ast = "319ea3581116c393dc0ae8bbd39809b64eee4e217d0ed32d02a10b897c45c438", destructured_ast = "319ea3581116c393dc0ae8bbd39809b64eee4e217d0ed32d02a10b897c45c438", errors = "", flattened_ast = "dfe4b31e00a15032fa75f0a29d22d6d93344b3bf7d102274ccddfd15628eeb26", initial_ast = "2259743a46d3ea04db7e76df9460ced1999fd2a1e3d7edfb6cc511af5d2408a5", initial_symbol_table = "d47aa228cf5afeb1a4b11a842278aa70b8a72e1bae896afaf92aeb43b7c7f591", inlined_ast = "319ea3581116c393dc0ae8bbd39809b64eee4e217d0ed32d02a10b897c45c438", ssa_ast = "db4dd33512c7a427af08beb26d3fd65427f11f211bd0348c8b98e336df53d206", type_checked_symbol_table = "b0ea0a68e00ce7191185bf0abcaf4d4f143f236d27413b71220b76915ca3061f", unrolled_ast = "2259743a46d3ea04db7e76df9460ced1999fd2a1e3d7edfb6cc511af5d2408a5", unrolled_symbol_table = "b0ea0a68e00ce7191185bf0abcaf4d4f143f236d27413b71220b76915ca3061f", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/min.out b/tests/expectations/compiler/integers/i16/min.out index 2dbeaef65e..7f444cdb81 100644 --- a/tests/expectations/compiler/integers/i16/min.out +++ b/tests/expectations/compiler/integers/i16/min.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "b4ca9ba0607d70a519a65b1415ffb48639cda59835abf8a7a892710f309b0abc", dce_ast = "491168a3ff75b71acc86d7387f460800f8001bac753b4ace745bedcfc044c2a3", destructured_ast = "491168a3ff75b71acc86d7387f460800f8001bac753b4ace745bedcfc044c2a3", errors = "", flattened_ast = "81080692d927e37301b2666e4060cdbe4e7c2a21689fa661e75dde03ccc9a044", initial_ast = "7738d7689916c25d785448f4b3ee0a5351fed9444ae7d56acb6b634b51cfb2e4", initial_symbol_table = "d47aa228cf5afeb1a4b11a842278aa70b8a72e1bae896afaf92aeb43b7c7f591", inlined_ast = "491168a3ff75b71acc86d7387f460800f8001bac753b4ace745bedcfc044c2a3", ssa_ast = "f8499bd22ee01e6da2208cf543c9bd6202d2be17ae2c7245a82ebf2f55fe121b", type_checked_symbol_table = "b0ea0a68e00ce7191185bf0abcaf4d4f143f236d27413b71220b76915ca3061f", unrolled_ast = "7738d7689916c25d785448f4b3ee0a5351fed9444ae7d56acb6b634b51cfb2e4", unrolled_symbol_table = "b0ea0a68e00ce7191185bf0abcaf4d4f143f236d27413b71220b76915ca3061f", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + sub -32767i16 r0 into r1; + output r1 as i16.private; +""", dce_ast = "491168a3ff75b71acc86d7387f460800f8001bac753b4ace745bedcfc044c2a3", destructured_ast = "491168a3ff75b71acc86d7387f460800f8001bac753b4ace745bedcfc044c2a3", errors = "", flattened_ast = "81080692d927e37301b2666e4060cdbe4e7c2a21689fa661e75dde03ccc9a044", initial_ast = "7738d7689916c25d785448f4b3ee0a5351fed9444ae7d56acb6b634b51cfb2e4", initial_symbol_table = "d47aa228cf5afeb1a4b11a842278aa70b8a72e1bae896afaf92aeb43b7c7f591", inlined_ast = "491168a3ff75b71acc86d7387f460800f8001bac753b4ace745bedcfc044c2a3", ssa_ast = "f8499bd22ee01e6da2208cf543c9bd6202d2be17ae2c7245a82ebf2f55fe121b", type_checked_symbol_table = "b0ea0a68e00ce7191185bf0abcaf4d4f143f236d27413b71220b76915ca3061f", unrolled_ast = "7738d7689916c25d785448f4b3ee0a5351fed9444ae7d56acb6b634b51cfb2e4", unrolled_symbol_table = "b0ea0a68e00ce7191185bf0abcaf4d4f143f236d27413b71220b76915ca3061f", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/min_fail.out b/tests/expectations/compiler/integers/i16/min_fail.out index 0b1ee89c0e..fd2b9f9d9d 100644 --- a/tests/expectations/compiler/integers/i16/min_fail.out +++ b/tests/expectations/compiler/integers/i16/min_fail.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "5d5bc4c63f62ab0bf4b07e3791e046417ea909f69375729be199bbdba267e742", dce_ast = "01402129008422974cb9a1561be70439e751f9a4f1623fa986e8c7100980f2b3", destructured_ast = "01402129008422974cb9a1561be70439e751f9a4f1623fa986e8c7100980f2b3", errors = "", flattened_ast = "c71c8899a4a2000b54e348eac03181f96e25fceb6a05b1e7fee5acec38e25835", initial_ast = "b9547796a72872467fcf1dc23cb7fab9faa3384f82ecddbfc652fc37602ba2f5", initial_symbol_table = "853b33211f8e951b0e64fc7b68f80bcf40f4c37d14fdcf796e163bf0a4d6e718", inlined_ast = "01402129008422974cb9a1561be70439e751f9a4f1623fa986e8c7100980f2b3", ssa_ast = "2d5267193d78ca01d95362840d84052f846c16c287a6ffb405c4e4b1a31f744f", type_checked_symbol_table = "908930ca10f04f68689ac78dd301a5752ab330a9cb5eef7b65df416f5dcc2eb5", unrolled_ast = "b9547796a72872467fcf1dc23cb7fab9faa3384f82ecddbfc652fc37602ba2f5", unrolled_symbol_table = "908930ca10f04f68689ac78dd301a5752ab330a9cb5eef7b65df416f5dcc2eb5", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + sub -32767i16 2i16 into r1; + output r1 as i16.private; +""", dce_ast = "01402129008422974cb9a1561be70439e751f9a4f1623fa986e8c7100980f2b3", destructured_ast = "01402129008422974cb9a1561be70439e751f9a4f1623fa986e8c7100980f2b3", errors = "", flattened_ast = "c71c8899a4a2000b54e348eac03181f96e25fceb6a05b1e7fee5acec38e25835", initial_ast = "b9547796a72872467fcf1dc23cb7fab9faa3384f82ecddbfc652fc37602ba2f5", initial_symbol_table = "853b33211f8e951b0e64fc7b68f80bcf40f4c37d14fdcf796e163bf0a4d6e718", inlined_ast = "01402129008422974cb9a1561be70439e751f9a4f1623fa986e8c7100980f2b3", ssa_ast = "2d5267193d78ca01d95362840d84052f846c16c287a6ffb405c4e4b1a31f744f", type_checked_symbol_table = "908930ca10f04f68689ac78dd301a5752ab330a9cb5eef7b65df416f5dcc2eb5", unrolled_ast = "b9547796a72872467fcf1dc23cb7fab9faa3384f82ecddbfc652fc37602ba2f5", unrolled_symbol_table = "908930ca10f04f68689ac78dd301a5752ab330a9cb5eef7b65df416f5dcc2eb5", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/mul.out b/tests/expectations/compiler/integers/i16/mul.out index 24756c3a54..a220b0a711 100644 --- a/tests/expectations/compiler/integers/i16/mul.out +++ b/tests/expectations/compiler/integers/i16/mul.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "dfd9acb20823234cdd87513c5b6ee195f0e5b925b52e035009dcb7ff22e6900a", dce_ast = "9032d993512e7cb4534820dfbadc5e8eb5cfe840acd9897269575ad199f381e0", destructured_ast = "9032d993512e7cb4534820dfbadc5e8eb5cfe840acd9897269575ad199f381e0", errors = "", flattened_ast = "bd5667189055bc254b8258a25cf3eeda3d9a8e3a3c5597ecd86c8f28c22381ce", initial_ast = "149bcc4b503fba9ff3e58c922b457b8210ffbe0e6fba7d8d0fed366899a239fc", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "9032d993512e7cb4534820dfbadc5e8eb5cfe840acd9897269575ad199f381e0", ssa_ast = "160c673ad78b1e9743597edf8051a9a968236481b9b353dfae1d476577eebd9a", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "149bcc4b503fba9ff3e58c922b457b8210ffbe0e6fba7d8d0fed366899a239fc", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as i16.private; + mul r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "9032d993512e7cb4534820dfbadc5e8eb5cfe840acd9897269575ad199f381e0", destructured_ast = "9032d993512e7cb4534820dfbadc5e8eb5cfe840acd9897269575ad199f381e0", errors = "", flattened_ast = "bd5667189055bc254b8258a25cf3eeda3d9a8e3a3c5597ecd86c8f28c22381ce", initial_ast = "149bcc4b503fba9ff3e58c922b457b8210ffbe0e6fba7d8d0fed366899a239fc", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "9032d993512e7cb4534820dfbadc5e8eb5cfe840acd9897269575ad199f381e0", ssa_ast = "160c673ad78b1e9743597edf8051a9a968236481b9b353dfae1d476577eebd9a", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "149bcc4b503fba9ff3e58c922b457b8210ffbe0e6fba7d8d0fed366899a239fc", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/ne.out b/tests/expectations/compiler/integers/i16/ne.out index fea6a6f846..265a9bf280 100644 --- a/tests/expectations/compiler/integers/i16/ne.out +++ b/tests/expectations/compiler/integers/i16/ne.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "955b3e3d4d80a6816de6d59563cc6f31f94dbff43853facba45936dfdc2012ca", dce_ast = "2a28520a17ab169249e2f7b46ded8514cf9034cc789cab0d3915ee2c2211eb28", destructured_ast = "2a28520a17ab169249e2f7b46ded8514cf9034cc789cab0d3915ee2c2211eb28", errors = "", flattened_ast = "03be2b9a03f30c2eec9bf2536e155a6e2635469ee9fe4ba85f37dd6d6840b163", initial_ast = "7962efcc973c9f81ff4f4d53e99fd7287233d96e5d038a1e817a5b683258015a", initial_symbol_table = "5df2ffe594181b9cc0903c90708400e008e6b311701d2436476b779ba61c1d23", inlined_ast = "2a28520a17ab169249e2f7b46ded8514cf9034cc789cab0d3915ee2c2211eb28", ssa_ast = "c0e6f90c44da98fef1c04a2ca2215dd7e718f8697c25d35e02eabb6c7ea14465", type_checked_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", unrolled_ast = "7962efcc973c9f81ff4f4d53e99fd7287233d96e5d038a1e817a5b683258015a", unrolled_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as boolean.private; + is.neq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "2a28520a17ab169249e2f7b46ded8514cf9034cc789cab0d3915ee2c2211eb28", destructured_ast = "2a28520a17ab169249e2f7b46ded8514cf9034cc789cab0d3915ee2c2211eb28", errors = "", flattened_ast = "03be2b9a03f30c2eec9bf2536e155a6e2635469ee9fe4ba85f37dd6d6840b163", initial_ast = "7962efcc973c9f81ff4f4d53e99fd7287233d96e5d038a1e817a5b683258015a", initial_symbol_table = "5df2ffe594181b9cc0903c90708400e008e6b311701d2436476b779ba61c1d23", inlined_ast = "2a28520a17ab169249e2f7b46ded8514cf9034cc789cab0d3915ee2c2211eb28", ssa_ast = "c0e6f90c44da98fef1c04a2ca2215dd7e718f8697c25d35e02eabb6c7ea14465", type_checked_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", unrolled_ast = "7962efcc973c9f81ff4f4d53e99fd7287233d96e5d038a1e817a5b683258015a", unrolled_symbol_table = "458c03a73ef827a1e9430685e8ffd7bce7606cce8e984d1eb5d4ed7a0510850d", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/negate.out b/tests/expectations/compiler/integers/i16/negate.out index d285cc14b5..92e41b1855 100644 --- a/tests/expectations/compiler/integers/i16/negate.out +++ b/tests/expectations/compiler/integers/i16/negate.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4c2a08bbf8cfdd45438e33b981a9f3d77b1d44225227714b3189e3e641e428e9", dce_ast = "5d67eefaf8bda85fdf59263cc3b78b8428cd7f7d1bc6a461728f99690c968bb3", destructured_ast = "5d67eefaf8bda85fdf59263cc3b78b8428cd7f7d1bc6a461728f99690c968bb3", errors = "", flattened_ast = "740041a346ea9666e5104166eb87435ac1471179f3f428b3e3b592af4807c4d7", initial_ast = "19c3003aa7806c3901198f5ff002a0a2d4b25903d1031d6433f24ca643868872", initial_symbol_table = "db67403754f14b3ef4395457b82051ceeea57cf62bee53ae09126dbca5992143", inlined_ast = "5d67eefaf8bda85fdf59263cc3b78b8428cd7f7d1bc6a461728f99690c968bb3", ssa_ast = "415a2c2d597270ac91f4d6f37a36b8edf5b1ed8be72068e90bf53a26d94c6ad3", type_checked_symbol_table = "72c0ebfb2bd3ca4aa7e9b874e6e503fd4a60c7df86a3b7d93efab8c24b334ad6", unrolled_ast = "19c3003aa7806c3901198f5ff002a0a2d4b25903d1031d6433f24ca643868872", unrolled_symbol_table = "72c0ebfb2bd3ca4aa7e9b874e6e503fd4a60c7df86a3b7d93efab8c24b334ad6", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + neg r0 into r2; + is.eq r2 r1 into r3; + output r3 as boolean.private; +""", dce_ast = "5d67eefaf8bda85fdf59263cc3b78b8428cd7f7d1bc6a461728f99690c968bb3", destructured_ast = "5d67eefaf8bda85fdf59263cc3b78b8428cd7f7d1bc6a461728f99690c968bb3", errors = "", flattened_ast = "740041a346ea9666e5104166eb87435ac1471179f3f428b3e3b592af4807c4d7", initial_ast = "19c3003aa7806c3901198f5ff002a0a2d4b25903d1031d6433f24ca643868872", initial_symbol_table = "db67403754f14b3ef4395457b82051ceeea57cf62bee53ae09126dbca5992143", inlined_ast = "5d67eefaf8bda85fdf59263cc3b78b8428cd7f7d1bc6a461728f99690c968bb3", ssa_ast = "415a2c2d597270ac91f4d6f37a36b8edf5b1ed8be72068e90bf53a26d94c6ad3", type_checked_symbol_table = "72c0ebfb2bd3ca4aa7e9b874e6e503fd4a60c7df86a3b7d93efab8c24b334ad6", unrolled_ast = "19c3003aa7806c3901198f5ff002a0a2d4b25903d1031d6433f24ca643868872", unrolled_symbol_table = "72c0ebfb2bd3ca4aa7e9b874e6e503fd4a60c7df86a3b7d93efab8c24b334ad6", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/negate_min_fail.out b/tests/expectations/compiler/integers/i16/negate_min_fail.out index fb3f6021ca..5e00cca0c5 100644 --- a/tests/expectations/compiler/integers/i16/negate_min_fail.out +++ b/tests/expectations/compiler/integers/i16/negate_min_fail.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f1c720ffbffc836bb5dcc1bdf2b2e9cb95de97275e7798b6f8e508c9116d757c", dce_ast = "969d67a86b01949da6b350a43472be5eef917e3f0ad8b19761e53114833f3c67", destructured_ast = "969d67a86b01949da6b350a43472be5eef917e3f0ad8b19761e53114833f3c67", errors = "", flattened_ast = "d4d1a2c0b7799d10df1036aae149fda4bb7b5a909150a24d48ae09b0e5639473", initial_ast = "714efb95a1083e7f86bc44bb549290f8f42dfad5caa020e228a23cd820038773", initial_symbol_table = "853b33211f8e951b0e64fc7b68f80bcf40f4c37d14fdcf796e163bf0a4d6e718", inlined_ast = "969d67a86b01949da6b350a43472be5eef917e3f0ad8b19761e53114833f3c67", ssa_ast = "4312012008bfd431feec056a18efe1bf1053ae3fbe55a30863d1846dc2e8a6a6", type_checked_symbol_table = "908930ca10f04f68689ac78dd301a5752ab330a9cb5eef7b65df416f5dcc2eb5", unrolled_ast = "714efb95a1083e7f86bc44bb549290f8f42dfad5caa020e228a23cd820038773", unrolled_symbol_table = "908930ca10f04f68689ac78dd301a5752ab330a9cb5eef7b65df416f5dcc2eb5", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + neg -32768i16 into r1; + output r1 as i16.private; +""", dce_ast = "969d67a86b01949da6b350a43472be5eef917e3f0ad8b19761e53114833f3c67", destructured_ast = "969d67a86b01949da6b350a43472be5eef917e3f0ad8b19761e53114833f3c67", errors = "", flattened_ast = "d4d1a2c0b7799d10df1036aae149fda4bb7b5a909150a24d48ae09b0e5639473", initial_ast = "714efb95a1083e7f86bc44bb549290f8f42dfad5caa020e228a23cd820038773", initial_symbol_table = "853b33211f8e951b0e64fc7b68f80bcf40f4c37d14fdcf796e163bf0a4d6e718", inlined_ast = "969d67a86b01949da6b350a43472be5eef917e3f0ad8b19761e53114833f3c67", ssa_ast = "4312012008bfd431feec056a18efe1bf1053ae3fbe55a30863d1846dc2e8a6a6", type_checked_symbol_table = "908930ca10f04f68689ac78dd301a5752ab330a9cb5eef7b65df416f5dcc2eb5", unrolled_ast = "714efb95a1083e7f86bc44bb549290f8f42dfad5caa020e228a23cd820038773", unrolled_symbol_table = "908930ca10f04f68689ac78dd301a5752ab330a9cb5eef7b65df416f5dcc2eb5", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/negate_zero.out b/tests/expectations/compiler/integers/i16/negate_zero.out index 54d0a2234b..078e78c508 100644 --- a/tests/expectations/compiler/integers/i16/negate_zero.out +++ b/tests/expectations/compiler/integers/i16/negate_zero.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "041ad04237619df46380596339019563fc1d330a7e3792a3d856e4b600e8501e", dce_ast = "0eee77a7699a4f5d9b675958a38d750ddad1c0243749ac83a814e67950985f5f", destructured_ast = "0eee77a7699a4f5d9b675958a38d750ddad1c0243749ac83a814e67950985f5f", errors = "", flattened_ast = "289376e403ff4b94e4539312cbd03f89df34bac7fd268366a3775c0e41cfde53", initial_ast = "7028b71fb9f135d260859f39f9703e776ebd2a88bc98d18cc3133c596e8e1ca8", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "0eee77a7699a4f5d9b675958a38d750ddad1c0243749ac83a814e67950985f5f", ssa_ast = "d0e8a02c77d5ba131933d0cf93ae70bbfbc1e3b290fa842836221d8ce3de7743", type_checked_symbol_table = "d32263552cc0f624130ded165f96d938fa0933a1a1ff2dbc0057420c7fb8ca89", unrolled_ast = "7028b71fb9f135d260859f39f9703e776ebd2a88bc98d18cc3133c596e8e1ca8", unrolled_symbol_table = "d32263552cc0f624130ded165f96d938fa0933a1a1ff2dbc0057420c7fb8ca89", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + neg 0i16 into r1; + is.eq r1 0i16 into r2; + is.eq r2 r0 into r3; + output r3 as boolean.private; +""", dce_ast = "0eee77a7699a4f5d9b675958a38d750ddad1c0243749ac83a814e67950985f5f", destructured_ast = "0eee77a7699a4f5d9b675958a38d750ddad1c0243749ac83a814e67950985f5f", errors = "", flattened_ast = "289376e403ff4b94e4539312cbd03f89df34bac7fd268366a3775c0e41cfde53", initial_ast = "7028b71fb9f135d260859f39f9703e776ebd2a88bc98d18cc3133c596e8e1ca8", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "0eee77a7699a4f5d9b675958a38d750ddad1c0243749ac83a814e67950985f5f", ssa_ast = "d0e8a02c77d5ba131933d0cf93ae70bbfbc1e3b290fa842836221d8ce3de7743", type_checked_symbol_table = "d32263552cc0f624130ded165f96d938fa0933a1a1ff2dbc0057420c7fb8ca89", unrolled_ast = "7028b71fb9f135d260859f39f9703e776ebd2a88bc98d18cc3133c596e8e1ca8", unrolled_symbol_table = "d32263552cc0f624130ded165f96d938fa0933a1a1ff2dbc0057420c7fb8ca89", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/operator_methods.out b/tests/expectations/compiler/integers/i16/operator_methods.out index 389eff86f8..02357489e9 100644 --- a/tests/expectations/compiler/integers/i16/operator_methods.out +++ b/tests/expectations/compiler/integers/i16/operator_methods.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "2ae0c269722de40ebea82115838ca6bc794e781954d9437afc1684c0f171847f", dce_ast = "c3baefa1b4e4ef7a17f1382d03767e9895fc3e63f701442bdac209d0b47de477", destructured_ast = "30754422582fb2008bf80669dd4ffff0ad75abf37c701b4b3103ebf97dedaf7c", errors = "", flattened_ast = "e709202124e35435409f2fb5667b77c3f88def8c2511a15abb5a613e8dae3e0a", initial_ast = "5341cd4af280073ce201f990517c6411545366b0f1be9680d5ca22f47fc582eb", initial_symbol_table = "db67403754f14b3ef4395457b82051ceeea57cf62bee53ae09126dbca5992143", inlined_ast = "30754422582fb2008bf80669dd4ffff0ad75abf37c701b4b3103ebf97dedaf7c", ssa_ast = "fde89dfbffc96d97e4154c24167b9ae2e57feabe421a320d2cf6d7e716c3b27d", type_checked_symbol_table = "e5c8c9e27f3e140cadc9ed7909b8063446fa83b6f7428a3ced72197943637a3a", unrolled_ast = "5341cd4af280073ce201f990517c6411545366b0f1be9680d5ca22f47fc582eb", unrolled_symbol_table = "e5c8c9e27f3e140cadc9ed7909b8063446fa83b6f7428a3ced72197943637a3a", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + is.eq r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "c3baefa1b4e4ef7a17f1382d03767e9895fc3e63f701442bdac209d0b47de477", destructured_ast = "30754422582fb2008bf80669dd4ffff0ad75abf37c701b4b3103ebf97dedaf7c", errors = "", flattened_ast = "e709202124e35435409f2fb5667b77c3f88def8c2511a15abb5a613e8dae3e0a", initial_ast = "5341cd4af280073ce201f990517c6411545366b0f1be9680d5ca22f47fc582eb", initial_symbol_table = "db67403754f14b3ef4395457b82051ceeea57cf62bee53ae09126dbca5992143", inlined_ast = "30754422582fb2008bf80669dd4ffff0ad75abf37c701b4b3103ebf97dedaf7c", ssa_ast = "fde89dfbffc96d97e4154c24167b9ae2e57feabe421a320d2cf6d7e716c3b27d", type_checked_symbol_table = "e5c8c9e27f3e140cadc9ed7909b8063446fa83b6f7428a3ced72197943637a3a", unrolled_ast = "5341cd4af280073ce201f990517c6411545366b0f1be9680d5ca22f47fc582eb", unrolled_symbol_table = "e5c8c9e27f3e140cadc9ed7909b8063446fa83b6f7428a3ced72197943637a3a", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/or.out b/tests/expectations/compiler/integers/i16/or.out index ffdcb64b54..c8edd2a397 100644 --- a/tests/expectations/compiler/integers/i16/or.out +++ b/tests/expectations/compiler/integers/i16/or.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "ce2896db5a90c1bfd62a00f9b8721cc2285e1ef077a8e225e2748bb33742564b", dce_ast = "951f410ca1c91e60731c9e12de2a744e9bef1f2b2004f7d71cb238bcf274fa93", destructured_ast = "951f410ca1c91e60731c9e12de2a744e9bef1f2b2004f7d71cb238bcf274fa93", errors = "", flattened_ast = "d589d1dd8ac18541bbb00050f30777aac25cb7be05826e28849b73256f246887", initial_ast = "84e2f08a54da3a6615a5a28000a9652a721a3d87b715807d3bd00d803848654b", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "951f410ca1c91e60731c9e12de2a744e9bef1f2b2004f7d71cb238bcf274fa93", ssa_ast = "4a319970e8c0bed5a417837135e53cc73257083dc4dc579f6cb8663b23f7fa31", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "84e2f08a54da3a6615a5a28000a9652a721a3d87b715807d3bd00d803848654b", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as i16.private; + or r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "951f410ca1c91e60731c9e12de2a744e9bef1f2b2004f7d71cb238bcf274fa93", destructured_ast = "951f410ca1c91e60731c9e12de2a744e9bef1f2b2004f7d71cb238bcf274fa93", errors = "", flattened_ast = "d589d1dd8ac18541bbb00050f30777aac25cb7be05826e28849b73256f246887", initial_ast = "84e2f08a54da3a6615a5a28000a9652a721a3d87b715807d3bd00d803848654b", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "951f410ca1c91e60731c9e12de2a744e9bef1f2b2004f7d71cb238bcf274fa93", ssa_ast = "4a319970e8c0bed5a417837135e53cc73257083dc4dc579f6cb8663b23f7fa31", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "84e2f08a54da3a6615a5a28000a9652a721a3d87b715807d3bd00d803848654b", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/pow.out b/tests/expectations/compiler/integers/i16/pow.out index 11ed7ebe20..0739c1dfec 100644 --- a/tests/expectations/compiler/integers/i16/pow.out +++ b/tests/expectations/compiler/integers/i16/pow.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "5566b622f6c5ea37b1b130db8b59ea5d69140dbe2aae45a1ada003d92482f7a9", dce_ast = "58c01b9e4cd4ddee735df2c9009114d3386dcfcdf5340159f6591e049078b773", destructured_ast = "58c01b9e4cd4ddee735df2c9009114d3386dcfcdf5340159f6591e049078b773", errors = "", flattened_ast = "ff147245e6925e970af4ef63f8091a010dce9b6b195013da38951c77de859551", initial_ast = "d6f2bdb563127e390170ef13b2a50bf7156d5d10b850525c1350db16e0d93bd9", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "58c01b9e4cd4ddee735df2c9009114d3386dcfcdf5340159f6591e049078b773", ssa_ast = "4a084d423586810e375172414eb6e9671e7080cd1a628939feaf3f54ae8c7ae9", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "d6f2bdb563127e390170ef13b2a50bf7156d5d10b850525c1350db16e0d93bd9", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as i16.private; + pow r0 2u8 into r3; + pow r0 2u16 into r4; + is.eq r3 r4 into r5; + pow r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "58c01b9e4cd4ddee735df2c9009114d3386dcfcdf5340159f6591e049078b773", destructured_ast = "58c01b9e4cd4ddee735df2c9009114d3386dcfcdf5340159f6591e049078b773", errors = "", flattened_ast = "ff147245e6925e970af4ef63f8091a010dce9b6b195013da38951c77de859551", initial_ast = "d6f2bdb563127e390170ef13b2a50bf7156d5d10b850525c1350db16e0d93bd9", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "58c01b9e4cd4ddee735df2c9009114d3386dcfcdf5340159f6591e049078b773", ssa_ast = "4a084d423586810e375172414eb6e9671e7080cd1a628939feaf3f54ae8c7ae9", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "d6f2bdb563127e390170ef13b2a50bf7156d5d10b850525c1350db16e0d93bd9", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/rem.out b/tests/expectations/compiler/integers/i16/rem.out index b7e5755c52..3f64c9e6ca 100644 --- a/tests/expectations/compiler/integers/i16/rem.out +++ b/tests/expectations/compiler/integers/i16/rem.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "9db0a74c24c209fa63e0d47919e9fa1a10cde21b15179098872b9c99f821cb16", dce_ast = "1677b2698999286c2b47ec7500f434bddbd459d51b8ac72c41e74e4b1694754c", destructured_ast = "1677b2698999286c2b47ec7500f434bddbd459d51b8ac72c41e74e4b1694754c", errors = "", flattened_ast = "5c5521d529ad4b82f2c961056292208270c9bd7b08f0d9d5ba85ca742c5fd7b7", initial_ast = "d4111e2554a96c365bb51eb7c7d700ff10cc361f604cd1780a35a6019d684aa4", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "1677b2698999286c2b47ec7500f434bddbd459d51b8ac72c41e74e4b1694754c", ssa_ast = "13a9aa57a7630c2b06d428bf91364f01f01e12a020d22e52446d0d0a99f40dd3", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "d4111e2554a96c365bb51eb7c7d700ff10cc361f604cd1780a35a6019d684aa4", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as i16.private; + rem r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "1677b2698999286c2b47ec7500f434bddbd459d51b8ac72c41e74e4b1694754c", destructured_ast = "1677b2698999286c2b47ec7500f434bddbd459d51b8ac72c41e74e4b1694754c", errors = "", flattened_ast = "5c5521d529ad4b82f2c961056292208270c9bd7b08f0d9d5ba85ca742c5fd7b7", initial_ast = "d4111e2554a96c365bb51eb7c7d700ff10cc361f604cd1780a35a6019d684aa4", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "1677b2698999286c2b47ec7500f434bddbd459d51b8ac72c41e74e4b1694754c", ssa_ast = "13a9aa57a7630c2b06d428bf91364f01f01e12a020d22e52446d0d0a99f40dd3", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "d4111e2554a96c365bb51eb7c7d700ff10cc361f604cd1780a35a6019d684aa4", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/shl.out b/tests/expectations/compiler/integers/i16/shl.out index b7813edc25..a9a9c87f8e 100644 --- a/tests/expectations/compiler/integers/i16/shl.out +++ b/tests/expectations/compiler/integers/i16/shl.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "65af41a661155e3ce64ac1afced0c2ad5098a59a458f1ef3215f34f5a8e4247a", dce_ast = "0400dc36323284bbc129aa2a5f65322063c76fb116553ececf8adcf6180effad", destructured_ast = "0400dc36323284bbc129aa2a5f65322063c76fb116553ececf8adcf6180effad", errors = "", flattened_ast = "aceaeefa523b5c2de49d91b7d218f0afb4b3b5def9707716461cdd442fdebf16", initial_ast = "9741610ec7f5fbd044757469be98b5105d72f1a38cbdc7ee393e8a9940f662bd", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "0400dc36323284bbc129aa2a5f65322063c76fb116553ececf8adcf6180effad", ssa_ast = "25f8703e34a8bd0e480065a66a8cab504b02362b3884e6c1c9ce0bb934fe5e41", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "9741610ec7f5fbd044757469be98b5105d72f1a38cbdc7ee393e8a9940f662bd", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as i16.private; + shl r0 2u8 into r3; + shl r0 2u16 into r4; + is.eq r3 r4 into r5; + shl r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "0400dc36323284bbc129aa2a5f65322063c76fb116553ececf8adcf6180effad", destructured_ast = "0400dc36323284bbc129aa2a5f65322063c76fb116553ececf8adcf6180effad", errors = "", flattened_ast = "aceaeefa523b5c2de49d91b7d218f0afb4b3b5def9707716461cdd442fdebf16", initial_ast = "9741610ec7f5fbd044757469be98b5105d72f1a38cbdc7ee393e8a9940f662bd", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "0400dc36323284bbc129aa2a5f65322063c76fb116553ececf8adcf6180effad", ssa_ast = "25f8703e34a8bd0e480065a66a8cab504b02362b3884e6c1c9ce0bb934fe5e41", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "9741610ec7f5fbd044757469be98b5105d72f1a38cbdc7ee393e8a9940f662bd", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/shr.out b/tests/expectations/compiler/integers/i16/shr.out index beb50f1de2..959a41613c 100644 --- a/tests/expectations/compiler/integers/i16/shr.out +++ b/tests/expectations/compiler/integers/i16/shr.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "1af055915587aced3dca90d1e065481be3648546d2bc465461d50b03c2974f6a", dce_ast = "ed0c0b716094d867efad87a81343f65526fdce500404bb8587188644645fb52f", destructured_ast = "ed0c0b716094d867efad87a81343f65526fdce500404bb8587188644645fb52f", errors = "", flattened_ast = "6b720f037ed78f2d27521620a0b4eea03171b9c315a30c9c5fa7308ce514d980", initial_ast = "130e3a0d81d9f51b426a93bcca76d8936a3cc0e5b456c989f650750d1cb81980", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "ed0c0b716094d867efad87a81343f65526fdce500404bb8587188644645fb52f", ssa_ast = "14923d98a6596a92030a74f449b03f2ccf1256d71604426eabcf04c05d577720", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "130e3a0d81d9f51b426a93bcca76d8936a3cc0e5b456c989f650750d1cb81980", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as i16.private; + shr r0 2u8 into r3; + shr r0 2u16 into r4; + is.eq r3 r4 into r5; + shr r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "ed0c0b716094d867efad87a81343f65526fdce500404bb8587188644645fb52f", destructured_ast = "ed0c0b716094d867efad87a81343f65526fdce500404bb8587188644645fb52f", errors = "", flattened_ast = "6b720f037ed78f2d27521620a0b4eea03171b9c315a30c9c5fa7308ce514d980", initial_ast = "130e3a0d81d9f51b426a93bcca76d8936a3cc0e5b456c989f650750d1cb81980", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "ed0c0b716094d867efad87a81343f65526fdce500404bb8587188644645fb52f", ssa_ast = "14923d98a6596a92030a74f449b03f2ccf1256d71604426eabcf04c05d577720", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "130e3a0d81d9f51b426a93bcca76d8936a3cc0e5b456c989f650750d1cb81980", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/sub.out b/tests/expectations/compiler/integers/i16/sub.out index 7178f54bb6..cab3efa687 100644 --- a/tests/expectations/compiler/integers/i16/sub.out +++ b/tests/expectations/compiler/integers/i16/sub.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "17009388ef3907c90aabc4a26d822d5b361f00d4753cca95dda6539866f8d908", dce_ast = "5e99655c6b67404a7e7903f587121b922211731223d601b9bd288eaced55b040", destructured_ast = "5e99655c6b67404a7e7903f587121b922211731223d601b9bd288eaced55b040", errors = "", flattened_ast = "80f2a6674f59707ee2623306ff5ce0dd8fbdc3da0a2a83d217eddf4be7c2febe", initial_ast = "a51fbbeb392939ca7c460c2aa394d1e1f8aae25ee359d1a6fdaceaa53997f5c9", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "5e99655c6b67404a7e7903f587121b922211731223d601b9bd288eaced55b040", ssa_ast = "e46167198f67124edfa8e5f577a390cef4148c743cd62c2b49c9f65f79277ca0", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "a51fbbeb392939ca7c460c2aa394d1e1f8aae25ee359d1a6fdaceaa53997f5c9", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + input r2 as i16.private; + sub r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "5e99655c6b67404a7e7903f587121b922211731223d601b9bd288eaced55b040", destructured_ast = "5e99655c6b67404a7e7903f587121b922211731223d601b9bd288eaced55b040", errors = "", flattened_ast = "80f2a6674f59707ee2623306ff5ce0dd8fbdc3da0a2a83d217eddf4be7c2febe", initial_ast = "a51fbbeb392939ca7c460c2aa394d1e1f8aae25ee359d1a6fdaceaa53997f5c9", initial_symbol_table = "e9e2bc945e5933b1790da2bce31724ec2e3587715c6dc34c540ffb046b3b297d", inlined_ast = "5e99655c6b67404a7e7903f587121b922211731223d601b9bd288eaced55b040", ssa_ast = "e46167198f67124edfa8e5f577a390cef4148c743cd62c2b49c9f65f79277ca0", type_checked_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", unrolled_ast = "a51fbbeb392939ca7c460c2aa394d1e1f8aae25ee359d1a6fdaceaa53997f5c9", unrolled_symbol_table = "28e164b8f42f236e120517dee666d13e33e5f10ccc491e1d344111539af7c5f0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/ternary.out b/tests/expectations/compiler/integers/i16/ternary.out index 764de362bf..9f3cba6358 100644 --- a/tests/expectations/compiler/integers/i16/ternary.out +++ b/tests/expectations/compiler/integers/i16/ternary.out @@ -1,3 +1,16 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "36a621308b0c9bc17df0d85b9b4734e73d1d64cbcacdd813603f3d79f74e8996", dce_ast = "89b13a4d6bc836c3e68cc4eff8a0a1b73e117ef39a2f9cc11527303de2b5b326", destructured_ast = "89b13a4d6bc836c3e68cc4eff8a0a1b73e117ef39a2f9cc11527303de2b5b326", errors = "", flattened_ast = "d50fa16894f625dd7b1aacc7ac2c4170ed24acaf5daace3044205ce3f6af1118", initial_ast = "ca0c72396db5c2ab00f6d0cc4f9263f52eab377e99de3d30324c299de23be7b4", initial_symbol_table = "9cd4e4875276e75cac91418bd801624910ae6e4e3ff74e01a3a9978093d1ac98", inlined_ast = "89b13a4d6bc836c3e68cc4eff8a0a1b73e117ef39a2f9cc11527303de2b5b326", ssa_ast = "bec1b099e818a8c09554c2d1c6864b72687d56fe36cda7e40ad32e258e5d408b", type_checked_symbol_table = "82f93260d58ee317907342045650f9a354799b9f11a0ef65cfc0b70f5dcc9d2f", unrolled_ast = "ca0c72396db5c2ab00f6d0cc4f9263f52eab377e99de3d30324c299de23be7b4", unrolled_symbol_table = "82f93260d58ee317907342045650f9a354799b9f11a0ef65cfc0b70f5dcc9d2f", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + input r1 as i16.private; + input r2 as i16.private; + input r3 as i16.private; + ternary r0 r1 r2 into r4; + is.eq r4 r3 into r5; + output r5 as boolean.private; +""", dce_ast = "89b13a4d6bc836c3e68cc4eff8a0a1b73e117ef39a2f9cc11527303de2b5b326", destructured_ast = "89b13a4d6bc836c3e68cc4eff8a0a1b73e117ef39a2f9cc11527303de2b5b326", errors = "", flattened_ast = "d50fa16894f625dd7b1aacc7ac2c4170ed24acaf5daace3044205ce3f6af1118", initial_ast = "ca0c72396db5c2ab00f6d0cc4f9263f52eab377e99de3d30324c299de23be7b4", initial_symbol_table = "9cd4e4875276e75cac91418bd801624910ae6e4e3ff74e01a3a9978093d1ac98", inlined_ast = "89b13a4d6bc836c3e68cc4eff8a0a1b73e117ef39a2f9cc11527303de2b5b326", ssa_ast = "bec1b099e818a8c09554c2d1c6864b72687d56fe36cda7e40ad32e258e5d408b", type_checked_symbol_table = "82f93260d58ee317907342045650f9a354799b9f11a0ef65cfc0b70f5dcc9d2f", unrolled_ast = "ca0c72396db5c2ab00f6d0cc4f9263f52eab377e99de3d30324c299de23be7b4", unrolled_symbol_table = "82f93260d58ee317907342045650f9a354799b9f11a0ef65cfc0b70f5dcc9d2f", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i16/xor.out b/tests/expectations/compiler/integers/i16/xor.out index 8068b28003..0cd225c606 100644 --- a/tests/expectations/compiler/integers/i16/xor.out +++ b/tests/expectations/compiler/integers/i16/xor.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "b3f7fd0a992ed66d1a25b6669e1387d7567d6fad58e97b43c160249c2109f516", dce_ast = "34f21996615600121623d4cfb6663a83f251681b077b52f0d6eb67e0867de92e", destructured_ast = "34f21996615600121623d4cfb6663a83f251681b077b52f0d6eb67e0867de92e", errors = "", flattened_ast = "1f9ff93c34e2ff0e793e2c61ce3a447352cafc89c8d566af7a2a22c84edc4f34", initial_ast = "f8c94070818ce04a201efef13c19208168882cddc22a5f411f00421472d5754c", initial_symbol_table = "ad2b082c26499314be59b13e61a1ba499b5c10275644008b26255b2f76b28c07", inlined_ast = "34f21996615600121623d4cfb6663a83f251681b077b52f0d6eb67e0867de92e", ssa_ast = "bf6b460264a6871db8d170dd96e52976526b55abed4cb01dfd3809c3760cb84f", type_checked_symbol_table = "bd76b2560d8440d6b8a8416b24f87c4d42985004fe6897a46ab6f85de3d6bc77", unrolled_ast = "f8c94070818ce04a201efef13c19208168882cddc22a5f411f00421472d5754c", unrolled_symbol_table = "bd76b2560d8440d6b8a8416b24f87c4d42985004fe6897a46ab6f85de3d6bc77", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i16.private; + input r1 as i16.private; + xor r0 r1 into r2; + output r2 as i16.private; +""", dce_ast = "34f21996615600121623d4cfb6663a83f251681b077b52f0d6eb67e0867de92e", destructured_ast = "34f21996615600121623d4cfb6663a83f251681b077b52f0d6eb67e0867de92e", errors = "", flattened_ast = "1f9ff93c34e2ff0e793e2c61ce3a447352cafc89c8d566af7a2a22c84edc4f34", initial_ast = "f8c94070818ce04a201efef13c19208168882cddc22a5f411f00421472d5754c", initial_symbol_table = "ad2b082c26499314be59b13e61a1ba499b5c10275644008b26255b2f76b28c07", inlined_ast = "34f21996615600121623d4cfb6663a83f251681b077b52f0d6eb67e0867de92e", ssa_ast = "bf6b460264a6871db8d170dd96e52976526b55abed4cb01dfd3809c3760cb84f", type_checked_symbol_table = "bd76b2560d8440d6b8a8416b24f87c4d42985004fe6897a46ab6f85de3d6bc77", unrolled_ast = "f8c94070818ce04a201efef13c19208168882cddc22a5f411f00421472d5754c", unrolled_symbol_table = "bd76b2560d8440d6b8a8416b24f87c4d42985004fe6897a46ab6f85de3d6bc77", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/add.out b/tests/expectations/compiler/integers/i32/add.out index b5515103f3..2ffddfae34 100644 --- a/tests/expectations/compiler/integers/i32/add.out +++ b/tests/expectations/compiler/integers/i32/add.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "2a2cbf02e188b3022afe1de563d58f86c9c18a2277c8dbeb307dd1b5dc66f8d3", dce_ast = "c76a34ffdc5bea23502da137cf751d95390d0a105db2082b97a053d0f5a767e6", destructured_ast = "c76a34ffdc5bea23502da137cf751d95390d0a105db2082b97a053d0f5a767e6", errors = "", flattened_ast = "45bb4bb53f6532dfa256a2ce7ca645979a7cfe23854b4bd77e00310d8131d30c", initial_ast = "c14c0d7eb4171b7798410f603e543dcbe8f5407aab137c4158f0d0ca356014cf", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "c76a34ffdc5bea23502da137cf751d95390d0a105db2082b97a053d0f5a767e6", ssa_ast = "e216c8b4739f7f568eb1ff0238db7c02b058d5df2c1e09a6c9459b9d2d72aca5", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "c14c0d7eb4171b7798410f603e543dcbe8f5407aab137c4158f0d0ca356014cf", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as i32.private; + add r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "c76a34ffdc5bea23502da137cf751d95390d0a105db2082b97a053d0f5a767e6", destructured_ast = "c76a34ffdc5bea23502da137cf751d95390d0a105db2082b97a053d0f5a767e6", errors = "", flattened_ast = "45bb4bb53f6532dfa256a2ce7ca645979a7cfe23854b4bd77e00310d8131d30c", initial_ast = "c14c0d7eb4171b7798410f603e543dcbe8f5407aab137c4158f0d0ca356014cf", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "c76a34ffdc5bea23502da137cf751d95390d0a105db2082b97a053d0f5a767e6", ssa_ast = "e216c8b4739f7f568eb1ff0238db7c02b058d5df2c1e09a6c9459b9d2d72aca5", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "c14c0d7eb4171b7798410f603e543dcbe8f5407aab137c4158f0d0ca356014cf", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/and.out b/tests/expectations/compiler/integers/i32/and.out index c400035df6..064cf4fa64 100644 --- a/tests/expectations/compiler/integers/i32/and.out +++ b/tests/expectations/compiler/integers/i32/and.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "eee50040aac3f0f43988dcc4e46afc2f734d30f614a2ae6ee1ce88f39b5f2827", dce_ast = "6f93397ecf611474c1023e621f37224cea0ecdd2e58aa7ac4ad0db631c6336a1", destructured_ast = "6f93397ecf611474c1023e621f37224cea0ecdd2e58aa7ac4ad0db631c6336a1", errors = "", flattened_ast = "91742bb3d50e0436960f11a9dbcf33d10432d0ed59cde4e5992a5c47efcf3061", initial_ast = "9c76a63e38f630e4230e21833c4188d6e8b6c9f597d0ce8db4117cabe2f11e7c", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "6f93397ecf611474c1023e621f37224cea0ecdd2e58aa7ac4ad0db631c6336a1", ssa_ast = "f68364b096fa8d84127d1fe65e90787daf8ba496d2eb31f106dc2afe2bd9a011", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "9c76a63e38f630e4230e21833c4188d6e8b6c9f597d0ce8db4117cabe2f11e7c", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as i32.private; + and r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "6f93397ecf611474c1023e621f37224cea0ecdd2e58aa7ac4ad0db631c6336a1", destructured_ast = "6f93397ecf611474c1023e621f37224cea0ecdd2e58aa7ac4ad0db631c6336a1", errors = "", flattened_ast = "91742bb3d50e0436960f11a9dbcf33d10432d0ed59cde4e5992a5c47efcf3061", initial_ast = "9c76a63e38f630e4230e21833c4188d6e8b6c9f597d0ce8db4117cabe2f11e7c", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "6f93397ecf611474c1023e621f37224cea0ecdd2e58aa7ac4ad0db631c6336a1", ssa_ast = "f68364b096fa8d84127d1fe65e90787daf8ba496d2eb31f106dc2afe2bd9a011", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "9c76a63e38f630e4230e21833c4188d6e8b6c9f597d0ce8db4117cabe2f11e7c", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/console_assert.out b/tests/expectations/compiler/integers/i32/console_assert.out index aa32d4a520..94528957a9 100644 --- a/tests/expectations/compiler/integers/i32/console_assert.out +++ b/tests/expectations/compiler/integers/i32/console_assert.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e8b3b5f71b01963e4df9f24f4f4f47e9976e5e5b099659e6083cef239d37a2d1", dce_ast = "8da2ef91eaf842c9ea0260177963bdb52b037e87ed0a97c1c2561e3e8aae47bd", destructured_ast = "8da2ef91eaf842c9ea0260177963bdb52b037e87ed0a97c1c2561e3e8aae47bd", errors = "", flattened_ast = "56a418d0009ad0594726fa77691cfe55c0146a4d7453368cf0a54e9ce3b8d31b", initial_ast = "d573b8cd6ae8a5242697a9e53a0a1dd714a00228a892dac459123011b1434d92", initial_symbol_table = "0802bf46b8d0e4c40fe3b491794e7413e9ff66a0b0d2abf321830355e4b0ef19", inlined_ast = "8da2ef91eaf842c9ea0260177963bdb52b037e87ed0a97c1c2561e3e8aae47bd", ssa_ast = "f97819ab4d51bd7f264bc9ac57501f09571e57f47d6c5c3db739fef24d227a33", type_checked_symbol_table = "3dc20ccb47c855777ba239ea813806810f9d95abfc3564a4470c9d591782db42", unrolled_ast = "d573b8cd6ae8a5242697a9e53a0a1dd714a00228a892dac459123011b1434d92", unrolled_symbol_table = "3dc20ccb47c855777ba239ea813806810f9d95abfc3564a4470c9d591782db42", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + is.eq r0 r1 into r2; + assert.eq r2 true; + output r2 as boolean.private; +""", dce_ast = "8da2ef91eaf842c9ea0260177963bdb52b037e87ed0a97c1c2561e3e8aae47bd", destructured_ast = "8da2ef91eaf842c9ea0260177963bdb52b037e87ed0a97c1c2561e3e8aae47bd", errors = "", flattened_ast = "56a418d0009ad0594726fa77691cfe55c0146a4d7453368cf0a54e9ce3b8d31b", initial_ast = "d573b8cd6ae8a5242697a9e53a0a1dd714a00228a892dac459123011b1434d92", initial_symbol_table = "0802bf46b8d0e4c40fe3b491794e7413e9ff66a0b0d2abf321830355e4b0ef19", inlined_ast = "8da2ef91eaf842c9ea0260177963bdb52b037e87ed0a97c1c2561e3e8aae47bd", ssa_ast = "f97819ab4d51bd7f264bc9ac57501f09571e57f47d6c5c3db739fef24d227a33", type_checked_symbol_table = "3dc20ccb47c855777ba239ea813806810f9d95abfc3564a4470c9d591782db42", unrolled_ast = "d573b8cd6ae8a5242697a9e53a0a1dd714a00228a892dac459123011b1434d92", unrolled_symbol_table = "3dc20ccb47c855777ba239ea813806810f9d95abfc3564a4470c9d591782db42", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/div.out b/tests/expectations/compiler/integers/i32/div.out index 0681960915..d7cc2af2eb 100644 --- a/tests/expectations/compiler/integers/i32/div.out +++ b/tests/expectations/compiler/integers/i32/div.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "22fa0cb05cba0820444e31f02772af70719116ea4f41c50faaed75a4c50cb845", dce_ast = "94387f2fd0f31ede28e39dfbc44837456d2296125a36ca1d80587891e9f3ae27", destructured_ast = "94387f2fd0f31ede28e39dfbc44837456d2296125a36ca1d80587891e9f3ae27", errors = "", flattened_ast = "860e3fa1e3ed44496b8d448b9897e4571d4a8c306c9d18fe4be1e106d1c92d89", initial_ast = "96dff228d220f9ec7a7af88a5e2eb5896966528881eee10f4252f88e69ec114a", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "94387f2fd0f31ede28e39dfbc44837456d2296125a36ca1d80587891e9f3ae27", ssa_ast = "6c0eebf5c03a30327e43bc6036ab7310174afbf0928110bf7a907a123403c343", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "96dff228d220f9ec7a7af88a5e2eb5896966528881eee10f4252f88e69ec114a", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as i32.private; + div r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "94387f2fd0f31ede28e39dfbc44837456d2296125a36ca1d80587891e9f3ae27", destructured_ast = "94387f2fd0f31ede28e39dfbc44837456d2296125a36ca1d80587891e9f3ae27", errors = "", flattened_ast = "860e3fa1e3ed44496b8d448b9897e4571d4a8c306c9d18fe4be1e106d1c92d89", initial_ast = "96dff228d220f9ec7a7af88a5e2eb5896966528881eee10f4252f88e69ec114a", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "94387f2fd0f31ede28e39dfbc44837456d2296125a36ca1d80587891e9f3ae27", ssa_ast = "6c0eebf5c03a30327e43bc6036ab7310174afbf0928110bf7a907a123403c343", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "96dff228d220f9ec7a7af88a5e2eb5896966528881eee10f4252f88e69ec114a", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/eq.out b/tests/expectations/compiler/integers/i32/eq.out index b0930fcb2e..df81604fe9 100644 --- a/tests/expectations/compiler/integers/i32/eq.out +++ b/tests/expectations/compiler/integers/i32/eq.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "db6394a0bd5332bffbca151ba7a0ea7bdb38f83f732c3afef149535db47a71cb", dce_ast = "7ab6f164f2b026d1e4535d8b213ca361b1ca8d82d996a2a0e7db1ee3d483580c", destructured_ast = "7ab6f164f2b026d1e4535d8b213ca361b1ca8d82d996a2a0e7db1ee3d483580c", errors = "", flattened_ast = "045d7ac7e2b492a5d185af57f2c65b1c15feb7a310f03fb14c4d0bf16800e27e", initial_ast = "7659ed20eb2fee9dc4935cb9e851405b731a2f3988f2b0e74834088aee9cede9", initial_symbol_table = "7947d04305c1d4860d137c7e868d1406c51f40b70c4badc5675b3cf7e0dce5ee", inlined_ast = "7ab6f164f2b026d1e4535d8b213ca361b1ca8d82d996a2a0e7db1ee3d483580c", ssa_ast = "7ce698e9c41ef5829263615cc01049e036e5163e42af0a107d1dd2524bf32779", type_checked_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", unrolled_ast = "7659ed20eb2fee9dc4935cb9e851405b731a2f3988f2b0e74834088aee9cede9", unrolled_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as boolean.private; + is.eq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "7ab6f164f2b026d1e4535d8b213ca361b1ca8d82d996a2a0e7db1ee3d483580c", destructured_ast = "7ab6f164f2b026d1e4535d8b213ca361b1ca8d82d996a2a0e7db1ee3d483580c", errors = "", flattened_ast = "045d7ac7e2b492a5d185af57f2c65b1c15feb7a310f03fb14c4d0bf16800e27e", initial_ast = "7659ed20eb2fee9dc4935cb9e851405b731a2f3988f2b0e74834088aee9cede9", initial_symbol_table = "7947d04305c1d4860d137c7e868d1406c51f40b70c4badc5675b3cf7e0dce5ee", inlined_ast = "7ab6f164f2b026d1e4535d8b213ca361b1ca8d82d996a2a0e7db1ee3d483580c", ssa_ast = "7ce698e9c41ef5829263615cc01049e036e5163e42af0a107d1dd2524bf32779", type_checked_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", unrolled_ast = "7659ed20eb2fee9dc4935cb9e851405b731a2f3988f2b0e74834088aee9cede9", unrolled_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/ge.out b/tests/expectations/compiler/integers/i32/ge.out index 991ec018c4..6c6a4d9136 100644 --- a/tests/expectations/compiler/integers/i32/ge.out +++ b/tests/expectations/compiler/integers/i32/ge.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "319b96ef20018acc654ec52780087d599a75f6204095ab426882087218865bcc", dce_ast = "48f83eaa982f439d5d5855685c3b66950208fa67d77cfeff932f99dba0516887", destructured_ast = "48f83eaa982f439d5d5855685c3b66950208fa67d77cfeff932f99dba0516887", errors = "", flattened_ast = "195e3b5e6234aa13ba6a7aa0f23b3a0b1cfefcfde5cd1744f2eaaa3b72426dd6", initial_ast = "2c942f8b0e96f59c4a735db001bb7451dccb02d5a7806bbd1194f65a3da7289e", initial_symbol_table = "7947d04305c1d4860d137c7e868d1406c51f40b70c4badc5675b3cf7e0dce5ee", inlined_ast = "48f83eaa982f439d5d5855685c3b66950208fa67d77cfeff932f99dba0516887", ssa_ast = "3da1f6cde1a78cb33f124d16da7b34251fa64803410f85d844cc9846ab69dfcd", type_checked_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", unrolled_ast = "2c942f8b0e96f59c4a735db001bb7451dccb02d5a7806bbd1194f65a3da7289e", unrolled_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as boolean.private; + gte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "48f83eaa982f439d5d5855685c3b66950208fa67d77cfeff932f99dba0516887", destructured_ast = "48f83eaa982f439d5d5855685c3b66950208fa67d77cfeff932f99dba0516887", errors = "", flattened_ast = "195e3b5e6234aa13ba6a7aa0f23b3a0b1cfefcfde5cd1744f2eaaa3b72426dd6", initial_ast = "2c942f8b0e96f59c4a735db001bb7451dccb02d5a7806bbd1194f65a3da7289e", initial_symbol_table = "7947d04305c1d4860d137c7e868d1406c51f40b70c4badc5675b3cf7e0dce5ee", inlined_ast = "48f83eaa982f439d5d5855685c3b66950208fa67d77cfeff932f99dba0516887", ssa_ast = "3da1f6cde1a78cb33f124d16da7b34251fa64803410f85d844cc9846ab69dfcd", type_checked_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", unrolled_ast = "2c942f8b0e96f59c4a735db001bb7451dccb02d5a7806bbd1194f65a3da7289e", unrolled_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/gt.out b/tests/expectations/compiler/integers/i32/gt.out index 1a46d956cd..cb412790a7 100644 --- a/tests/expectations/compiler/integers/i32/gt.out +++ b/tests/expectations/compiler/integers/i32/gt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "7b0157b83a4db9b46a3c6572aeb5ccae55be420768dc034163508ac4a99308ea", dce_ast = "ac2e2dd75d61334004a92f14f1bb866c4343febd152795cf7eeb857970b3ddac", destructured_ast = "ac2e2dd75d61334004a92f14f1bb866c4343febd152795cf7eeb857970b3ddac", errors = "", flattened_ast = "1151cd5bdc59c71817d2e87bfff873d0a62bd3850134bc16d210b085c171d743", initial_ast = "b9c5c190778be0545a4cf9199a31cdd73a7503a58d056a108072bc5b383857c5", initial_symbol_table = "7947d04305c1d4860d137c7e868d1406c51f40b70c4badc5675b3cf7e0dce5ee", inlined_ast = "ac2e2dd75d61334004a92f14f1bb866c4343febd152795cf7eeb857970b3ddac", ssa_ast = "409246088010a03ecaf951efc555155f02590d688431339aba27b631919e4638", type_checked_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", unrolled_ast = "b9c5c190778be0545a4cf9199a31cdd73a7503a58d056a108072bc5b383857c5", unrolled_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as boolean.private; + gt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "ac2e2dd75d61334004a92f14f1bb866c4343febd152795cf7eeb857970b3ddac", destructured_ast = "ac2e2dd75d61334004a92f14f1bb866c4343febd152795cf7eeb857970b3ddac", errors = "", flattened_ast = "1151cd5bdc59c71817d2e87bfff873d0a62bd3850134bc16d210b085c171d743", initial_ast = "b9c5c190778be0545a4cf9199a31cdd73a7503a58d056a108072bc5b383857c5", initial_symbol_table = "7947d04305c1d4860d137c7e868d1406c51f40b70c4badc5675b3cf7e0dce5ee", inlined_ast = "ac2e2dd75d61334004a92f14f1bb866c4343febd152795cf7eeb857970b3ddac", ssa_ast = "409246088010a03ecaf951efc555155f02590d688431339aba27b631919e4638", type_checked_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", unrolled_ast = "b9c5c190778be0545a4cf9199a31cdd73a7503a58d056a108072bc5b383857c5", unrolled_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/hex_and_bin.out b/tests/expectations/compiler/integers/i32/hex_and_bin.out index 66db292b72..66573938b9 100644 --- a/tests/expectations/compiler/integers/i32/hex_and_bin.out +++ b/tests/expectations/compiler/integers/i32/hex_and_bin.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "60f3f7cf4996cce21e8854a05cd0018dbbc6f3836e82f110a7327a48d826604a", dce_ast = "4dd127a21d0013d590115c8f373787c105d754b97ec0fc5e5014c7ddb32b6011", destructured_ast = "4dd127a21d0013d590115c8f373787c105d754b97ec0fc5e5014c7ddb32b6011", errors = "", flattened_ast = "5222a287ea1a208cb950a77630e32621375e0f9d1c78ee74828482c1a3d2d5fa", initial_ast = "d6e00a4cb2abea938e9eb0af35e058f5eb749a8d97dc56e434553511cfbf5bdc", initial_symbol_table = "64448615fb54198853ec0db1342703f538e30c529c17dc1de8ce21e73cb9aec0", inlined_ast = "4dd127a21d0013d590115c8f373787c105d754b97ec0fc5e5014c7ddb32b6011", ssa_ast = "9c01e57aa0ee03cf03b7da15f64c40a6fce773dac8afda6e8722f5d8d16d7730", type_checked_symbol_table = "f91e02cc50da5608d6a4c2ddbb06a08d8887d7a271437ccc1f4f2dc7df4feb8b", unrolled_ast = "d6e00a4cb2abea938e9eb0af35e058f5eb749a8d97dc56e434553511cfbf5bdc", unrolled_symbol_table = "f91e02cc50da5608d6a4c2ddbb06a08d8887d7a271437ccc1f4f2dc7df4feb8b", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as i32.private; + is.eq r0 127i32 into r3; + is.eq r1 27i32 into r4; + and r3 r4 into r5; + is.eq r2 21i32 into r6; + and r5 r6 into r7; + output r7 as boolean.private; +""", dce_ast = "4dd127a21d0013d590115c8f373787c105d754b97ec0fc5e5014c7ddb32b6011", destructured_ast = "4dd127a21d0013d590115c8f373787c105d754b97ec0fc5e5014c7ddb32b6011", errors = "", flattened_ast = "5222a287ea1a208cb950a77630e32621375e0f9d1c78ee74828482c1a3d2d5fa", initial_ast = "d6e00a4cb2abea938e9eb0af35e058f5eb749a8d97dc56e434553511cfbf5bdc", initial_symbol_table = "64448615fb54198853ec0db1342703f538e30c529c17dc1de8ce21e73cb9aec0", inlined_ast = "4dd127a21d0013d590115c8f373787c105d754b97ec0fc5e5014c7ddb32b6011", ssa_ast = "9c01e57aa0ee03cf03b7da15f64c40a6fce773dac8afda6e8722f5d8d16d7730", type_checked_symbol_table = "f91e02cc50da5608d6a4c2ddbb06a08d8887d7a271437ccc1f4f2dc7df4feb8b", unrolled_ast = "d6e00a4cb2abea938e9eb0af35e058f5eb749a8d97dc56e434553511cfbf5bdc", unrolled_symbol_table = "f91e02cc50da5608d6a4c2ddbb06a08d8887d7a271437ccc1f4f2dc7df4feb8b", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/le.out b/tests/expectations/compiler/integers/i32/le.out index e247bbca39..0beeedb3cc 100644 --- a/tests/expectations/compiler/integers/i32/le.out +++ b/tests/expectations/compiler/integers/i32/le.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "cc2d953415427376e9e3c26c04b4e66630e4b77f19e04e932b28f04599b7fe77", dce_ast = "4e72a442d4a8435bba7a9533762f4878967df4d46077bad1c6126f8adc69cc69", destructured_ast = "4e72a442d4a8435bba7a9533762f4878967df4d46077bad1c6126f8adc69cc69", errors = "", flattened_ast = "3410a585a98141f594814d13b0a4ffde56205a70f63a70e2f611418fabe7dd2a", initial_ast = "d32ce60be58a30b22200c47efb2f46ed07084af896e58f689927ecc5b7cc7973", initial_symbol_table = "7947d04305c1d4860d137c7e868d1406c51f40b70c4badc5675b3cf7e0dce5ee", inlined_ast = "4e72a442d4a8435bba7a9533762f4878967df4d46077bad1c6126f8adc69cc69", ssa_ast = "01671d010bd9dd494a0456492e1351b94cb9e4f6b9b47e44ac90807a8831fc53", type_checked_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", unrolled_ast = "d32ce60be58a30b22200c47efb2f46ed07084af896e58f689927ecc5b7cc7973", unrolled_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as boolean.private; + lte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "4e72a442d4a8435bba7a9533762f4878967df4d46077bad1c6126f8adc69cc69", destructured_ast = "4e72a442d4a8435bba7a9533762f4878967df4d46077bad1c6126f8adc69cc69", errors = "", flattened_ast = "3410a585a98141f594814d13b0a4ffde56205a70f63a70e2f611418fabe7dd2a", initial_ast = "d32ce60be58a30b22200c47efb2f46ed07084af896e58f689927ecc5b7cc7973", initial_symbol_table = "7947d04305c1d4860d137c7e868d1406c51f40b70c4badc5675b3cf7e0dce5ee", inlined_ast = "4e72a442d4a8435bba7a9533762f4878967df4d46077bad1c6126f8adc69cc69", ssa_ast = "01671d010bd9dd494a0456492e1351b94cb9e4f6b9b47e44ac90807a8831fc53", type_checked_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", unrolled_ast = "d32ce60be58a30b22200c47efb2f46ed07084af896e58f689927ecc5b7cc7973", unrolled_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/lt.out b/tests/expectations/compiler/integers/i32/lt.out index 76cfce8e28..aa79cb64e8 100644 --- a/tests/expectations/compiler/integers/i32/lt.out +++ b/tests/expectations/compiler/integers/i32/lt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "815cbaa285c68d1b7707bbe1df33b84fcb00a81bfbae3d4d9cd290902e2ce091", dce_ast = "607129c1b4c8920c4130722072f7c8fccaaf36df7bded4ea417fe1634e480e3d", destructured_ast = "607129c1b4c8920c4130722072f7c8fccaaf36df7bded4ea417fe1634e480e3d", errors = "", flattened_ast = "2924ca209765a19d522a57ad8901cc9cb3d34d40bd3f248f26cc9519b4e22c28", initial_ast = "ef5b776447ea445b03abe301a82b72502a64b1f5ff5c49c10fb691437f83e629", initial_symbol_table = "7947d04305c1d4860d137c7e868d1406c51f40b70c4badc5675b3cf7e0dce5ee", inlined_ast = "607129c1b4c8920c4130722072f7c8fccaaf36df7bded4ea417fe1634e480e3d", ssa_ast = "7d5210472cb3ba84643e24a2219b4f3c6740ca6fccc386af4e6b6f835063b03f", type_checked_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", unrolled_ast = "ef5b776447ea445b03abe301a82b72502a64b1f5ff5c49c10fb691437f83e629", unrolled_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as boolean.private; + lt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "607129c1b4c8920c4130722072f7c8fccaaf36df7bded4ea417fe1634e480e3d", destructured_ast = "607129c1b4c8920c4130722072f7c8fccaaf36df7bded4ea417fe1634e480e3d", errors = "", flattened_ast = "2924ca209765a19d522a57ad8901cc9cb3d34d40bd3f248f26cc9519b4e22c28", initial_ast = "ef5b776447ea445b03abe301a82b72502a64b1f5ff5c49c10fb691437f83e629", initial_symbol_table = "7947d04305c1d4860d137c7e868d1406c51f40b70c4badc5675b3cf7e0dce5ee", inlined_ast = "607129c1b4c8920c4130722072f7c8fccaaf36df7bded4ea417fe1634e480e3d", ssa_ast = "7d5210472cb3ba84643e24a2219b4f3c6740ca6fccc386af4e6b6f835063b03f", type_checked_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", unrolled_ast = "ef5b776447ea445b03abe301a82b72502a64b1f5ff5c49c10fb691437f83e629", unrolled_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/max.out b/tests/expectations/compiler/integers/i32/max.out index 534e8a34aa..f466e14871 100644 --- a/tests/expectations/compiler/integers/i32/max.out +++ b/tests/expectations/compiler/integers/i32/max.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "6821174db234fb38a3ded7835589628bf76443f2faff6cf9aa2f2fc5a5da71cb", dce_ast = "a584edf402a78cf3a316eeec3d376fb0ab42ce189dbe965c10bafa7f0600a1fd", destructured_ast = "a584edf402a78cf3a316eeec3d376fb0ab42ce189dbe965c10bafa7f0600a1fd", errors = "", flattened_ast = "50c266396ffd543f6513374aa4cf3c4c6aad8576e330fc5111528853c47e2915", initial_ast = "4ab0d85d10c2e0e82a4acd245606459aac2db567b67e7006f27b3fc520464acd", initial_symbol_table = "902393b23a765922183af0e0b8baa62a4c07658bcf27882af120469d76822553", inlined_ast = "a584edf402a78cf3a316eeec3d376fb0ab42ce189dbe965c10bafa7f0600a1fd", ssa_ast = "463be3766f9720530ba482a1d25c7ca4b5e6ea65226b74bf7517bebea8e9480f", type_checked_symbol_table = "c172af1ad76c425a93965d2e0c320e6d46bcae1794d98756f204e9c7e78ba7c0", unrolled_ast = "4ab0d85d10c2e0e82a4acd245606459aac2db567b67e7006f27b3fc520464acd", unrolled_symbol_table = "c172af1ad76c425a93965d2e0c320e6d46bcae1794d98756f204e9c7e78ba7c0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + sub 2147483647i32 r0 into r1; + output r1 as i32.private; +""", dce_ast = "a584edf402a78cf3a316eeec3d376fb0ab42ce189dbe965c10bafa7f0600a1fd", destructured_ast = "a584edf402a78cf3a316eeec3d376fb0ab42ce189dbe965c10bafa7f0600a1fd", errors = "", flattened_ast = "50c266396ffd543f6513374aa4cf3c4c6aad8576e330fc5111528853c47e2915", initial_ast = "4ab0d85d10c2e0e82a4acd245606459aac2db567b67e7006f27b3fc520464acd", initial_symbol_table = "902393b23a765922183af0e0b8baa62a4c07658bcf27882af120469d76822553", inlined_ast = "a584edf402a78cf3a316eeec3d376fb0ab42ce189dbe965c10bafa7f0600a1fd", ssa_ast = "463be3766f9720530ba482a1d25c7ca4b5e6ea65226b74bf7517bebea8e9480f", type_checked_symbol_table = "c172af1ad76c425a93965d2e0c320e6d46bcae1794d98756f204e9c7e78ba7c0", unrolled_ast = "4ab0d85d10c2e0e82a4acd245606459aac2db567b67e7006f27b3fc520464acd", unrolled_symbol_table = "c172af1ad76c425a93965d2e0c320e6d46bcae1794d98756f204e9c7e78ba7c0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/min.out b/tests/expectations/compiler/integers/i32/min.out index 4eaa29ab56..508dce580e 100644 --- a/tests/expectations/compiler/integers/i32/min.out +++ b/tests/expectations/compiler/integers/i32/min.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "71fa0293c129cb150cfbc206d6709f67884cd0864200dd8a6382ae6d30a3dac2", dce_ast = "46f9793b262f21310a65d8d75eb6643ef37d4fda451c503d9ec5539c78a2910f", destructured_ast = "46f9793b262f21310a65d8d75eb6643ef37d4fda451c503d9ec5539c78a2910f", errors = "", flattened_ast = "b66b7dc4e690de20fabc7614d514e1f18e984b61b87daff236326773f4a3bdae", initial_ast = "19bcae6a4106f500341295e337a6fc1601e48a9695e383de8f0f264a8f09b729", initial_symbol_table = "902393b23a765922183af0e0b8baa62a4c07658bcf27882af120469d76822553", inlined_ast = "46f9793b262f21310a65d8d75eb6643ef37d4fda451c503d9ec5539c78a2910f", ssa_ast = "fbe1f5fc71b3290a0dc449a0cc0d31f47e71a7e7774e696d2f374ed2a03b8d09", type_checked_symbol_table = "c172af1ad76c425a93965d2e0c320e6d46bcae1794d98756f204e9c7e78ba7c0", unrolled_ast = "19bcae6a4106f500341295e337a6fc1601e48a9695e383de8f0f264a8f09b729", unrolled_symbol_table = "c172af1ad76c425a93965d2e0c320e6d46bcae1794d98756f204e9c7e78ba7c0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + sub -2147483647i32 r0 into r1; + output r1 as i32.private; +""", dce_ast = "46f9793b262f21310a65d8d75eb6643ef37d4fda451c503d9ec5539c78a2910f", destructured_ast = "46f9793b262f21310a65d8d75eb6643ef37d4fda451c503d9ec5539c78a2910f", errors = "", flattened_ast = "b66b7dc4e690de20fabc7614d514e1f18e984b61b87daff236326773f4a3bdae", initial_ast = "19bcae6a4106f500341295e337a6fc1601e48a9695e383de8f0f264a8f09b729", initial_symbol_table = "902393b23a765922183af0e0b8baa62a4c07658bcf27882af120469d76822553", inlined_ast = "46f9793b262f21310a65d8d75eb6643ef37d4fda451c503d9ec5539c78a2910f", ssa_ast = "fbe1f5fc71b3290a0dc449a0cc0d31f47e71a7e7774e696d2f374ed2a03b8d09", type_checked_symbol_table = "c172af1ad76c425a93965d2e0c320e6d46bcae1794d98756f204e9c7e78ba7c0", unrolled_ast = "19bcae6a4106f500341295e337a6fc1601e48a9695e383de8f0f264a8f09b729", unrolled_symbol_table = "c172af1ad76c425a93965d2e0c320e6d46bcae1794d98756f204e9c7e78ba7c0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/min_fail.out b/tests/expectations/compiler/integers/i32/min_fail.out index 51d3a5fa5e..a311fb619d 100644 --- a/tests/expectations/compiler/integers/i32/min_fail.out +++ b/tests/expectations/compiler/integers/i32/min_fail.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e28a0b12a5006a7f44ebd60e001a3b2bb2142f3e2bc03564b5870415a1bd1e6d", dce_ast = "462dedf7685f6e60843a4406b228d8483621c259f0cd6a62c026ffd46b815f8d", destructured_ast = "462dedf7685f6e60843a4406b228d8483621c259f0cd6a62c026ffd46b815f8d", errors = "", flattened_ast = "a68596361eb4f8da3a1a2e158dd55bfce45cb13aa2c7c186618f73fcebb70995", initial_ast = "9956ae6688256b454155d52b85aa4425070178653babf8f6d7810d7fae51bac5", initial_symbol_table = "f58b2dccb0111fe9cb3531a592e9d95907263b42be88cf9c30c9e67da095ae06", inlined_ast = "462dedf7685f6e60843a4406b228d8483621c259f0cd6a62c026ffd46b815f8d", ssa_ast = "3903a214a9257609f79e09b7628e4a266f7203f9d8f6633934cd44c0b17d2b43", type_checked_symbol_table = "f08cee7b36f9c3ff5c743979e75b4a51ca5e61d5ff0cd52c425686b509e635d3", unrolled_ast = "9956ae6688256b454155d52b85aa4425070178653babf8f6d7810d7fae51bac5", unrolled_symbol_table = "f08cee7b36f9c3ff5c743979e75b4a51ca5e61d5ff0cd52c425686b509e635d3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + sub -2147483647i32 2i32 into r1; + output r1 as i32.private; +""", dce_ast = "462dedf7685f6e60843a4406b228d8483621c259f0cd6a62c026ffd46b815f8d", destructured_ast = "462dedf7685f6e60843a4406b228d8483621c259f0cd6a62c026ffd46b815f8d", errors = "", flattened_ast = "a68596361eb4f8da3a1a2e158dd55bfce45cb13aa2c7c186618f73fcebb70995", initial_ast = "9956ae6688256b454155d52b85aa4425070178653babf8f6d7810d7fae51bac5", initial_symbol_table = "f58b2dccb0111fe9cb3531a592e9d95907263b42be88cf9c30c9e67da095ae06", inlined_ast = "462dedf7685f6e60843a4406b228d8483621c259f0cd6a62c026ffd46b815f8d", ssa_ast = "3903a214a9257609f79e09b7628e4a266f7203f9d8f6633934cd44c0b17d2b43", type_checked_symbol_table = "f08cee7b36f9c3ff5c743979e75b4a51ca5e61d5ff0cd52c425686b509e635d3", unrolled_ast = "9956ae6688256b454155d52b85aa4425070178653babf8f6d7810d7fae51bac5", unrolled_symbol_table = "f08cee7b36f9c3ff5c743979e75b4a51ca5e61d5ff0cd52c425686b509e635d3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/mul.out b/tests/expectations/compiler/integers/i32/mul.out index 6f056fee20..f6fed6f9fd 100644 --- a/tests/expectations/compiler/integers/i32/mul.out +++ b/tests/expectations/compiler/integers/i32/mul.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "6a5893dfd948c5fa425269a9ddab867cbcf55956e015e95b3d4a5be7a861d763", dce_ast = "a65788e03d697b165cec6989321237b28d65aa68754a9e0a30e57607739b7b65", destructured_ast = "a65788e03d697b165cec6989321237b28d65aa68754a9e0a30e57607739b7b65", errors = "", flattened_ast = "b418c443e3a499fa6f5b44248709c23866e0822ee14363adf3f1c5b261e73e71", initial_ast = "fce7daf4c7133f50f512f82e238c3d7b348107188245fe974f61d10abe9affc4", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "a65788e03d697b165cec6989321237b28d65aa68754a9e0a30e57607739b7b65", ssa_ast = "f90c33a218cce19c524ca73e099711f306c685bd2eb93a25039213087e62178c", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "fce7daf4c7133f50f512f82e238c3d7b348107188245fe974f61d10abe9affc4", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as i32.private; + mul r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "a65788e03d697b165cec6989321237b28d65aa68754a9e0a30e57607739b7b65", destructured_ast = "a65788e03d697b165cec6989321237b28d65aa68754a9e0a30e57607739b7b65", errors = "", flattened_ast = "b418c443e3a499fa6f5b44248709c23866e0822ee14363adf3f1c5b261e73e71", initial_ast = "fce7daf4c7133f50f512f82e238c3d7b348107188245fe974f61d10abe9affc4", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "a65788e03d697b165cec6989321237b28d65aa68754a9e0a30e57607739b7b65", ssa_ast = "f90c33a218cce19c524ca73e099711f306c685bd2eb93a25039213087e62178c", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "fce7daf4c7133f50f512f82e238c3d7b348107188245fe974f61d10abe9affc4", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/ne.out b/tests/expectations/compiler/integers/i32/ne.out index 0cf3d15439..cb9eba146f 100644 --- a/tests/expectations/compiler/integers/i32/ne.out +++ b/tests/expectations/compiler/integers/i32/ne.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "7e3f7a34eaf764f2d9b7119b882a649e4eaceabcd8e54ac5313127b3add0c091", dce_ast = "53744a264d36b5979cf562eafec57ba8bd88eee601259be051e1aaa58b84328a", destructured_ast = "53744a264d36b5979cf562eafec57ba8bd88eee601259be051e1aaa58b84328a", errors = "", flattened_ast = "9ee356775ecb61a67514047a4748361e4b9a279a72e872e07df7177b28e3d347", initial_ast = "df997022a900205c7287137b782b38594ad7f607cf14db78692f1193cb5dbd48", initial_symbol_table = "7947d04305c1d4860d137c7e868d1406c51f40b70c4badc5675b3cf7e0dce5ee", inlined_ast = "53744a264d36b5979cf562eafec57ba8bd88eee601259be051e1aaa58b84328a", ssa_ast = "9329dad3b872221b6c12b0ee4906f4121da1a3cd0368f71f6151beb0d2d33c36", type_checked_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", unrolled_ast = "df997022a900205c7287137b782b38594ad7f607cf14db78692f1193cb5dbd48", unrolled_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as boolean.private; + is.neq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "53744a264d36b5979cf562eafec57ba8bd88eee601259be051e1aaa58b84328a", destructured_ast = "53744a264d36b5979cf562eafec57ba8bd88eee601259be051e1aaa58b84328a", errors = "", flattened_ast = "9ee356775ecb61a67514047a4748361e4b9a279a72e872e07df7177b28e3d347", initial_ast = "df997022a900205c7287137b782b38594ad7f607cf14db78692f1193cb5dbd48", initial_symbol_table = "7947d04305c1d4860d137c7e868d1406c51f40b70c4badc5675b3cf7e0dce5ee", inlined_ast = "53744a264d36b5979cf562eafec57ba8bd88eee601259be051e1aaa58b84328a", ssa_ast = "9329dad3b872221b6c12b0ee4906f4121da1a3cd0368f71f6151beb0d2d33c36", type_checked_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", unrolled_ast = "df997022a900205c7287137b782b38594ad7f607cf14db78692f1193cb5dbd48", unrolled_symbol_table = "9adafcb5400446a57fa938634f73e5ee4de8fec8f276a1acf63314f0b3677b27", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/negate.out b/tests/expectations/compiler/integers/i32/negate.out index 4cd5743f26..4451ccdd3c 100644 --- a/tests/expectations/compiler/integers/i32/negate.out +++ b/tests/expectations/compiler/integers/i32/negate.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "009e138c1ef58588c8c34fdd4b56c5cd984a2f4664d71a3ce1f5811350d5cc1f", dce_ast = "7098d17a4e2e2c749e870b15eab94244fda940cc77dd5c29bf4991d82ded40c1", destructured_ast = "7098d17a4e2e2c749e870b15eab94244fda940cc77dd5c29bf4991d82ded40c1", errors = "", flattened_ast = "ec71465f20d9b248f94bae954b65f4e8753e6e8612828a12538338a33e6feefd", initial_ast = "6ceceed851228bf86da79802c53352de3c6e5daddcbffd55bb796362fea8fca6", initial_symbol_table = "0802bf46b8d0e4c40fe3b491794e7413e9ff66a0b0d2abf321830355e4b0ef19", inlined_ast = "7098d17a4e2e2c749e870b15eab94244fda940cc77dd5c29bf4991d82ded40c1", ssa_ast = "cded77e1331ebd0d5724d69b7182547013040e39761baa885ba5f46d82598078", type_checked_symbol_table = "8769ae66a9044fadb82d48f0eef2cd504d76d8b84814d98170aba60986038620", unrolled_ast = "6ceceed851228bf86da79802c53352de3c6e5daddcbffd55bb796362fea8fca6", unrolled_symbol_table = "8769ae66a9044fadb82d48f0eef2cd504d76d8b84814d98170aba60986038620", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + neg r0 into r2; + is.eq r2 r1 into r3; + output r3 as boolean.private; +""", dce_ast = "7098d17a4e2e2c749e870b15eab94244fda940cc77dd5c29bf4991d82ded40c1", destructured_ast = "7098d17a4e2e2c749e870b15eab94244fda940cc77dd5c29bf4991d82ded40c1", errors = "", flattened_ast = "ec71465f20d9b248f94bae954b65f4e8753e6e8612828a12538338a33e6feefd", initial_ast = "6ceceed851228bf86da79802c53352de3c6e5daddcbffd55bb796362fea8fca6", initial_symbol_table = "0802bf46b8d0e4c40fe3b491794e7413e9ff66a0b0d2abf321830355e4b0ef19", inlined_ast = "7098d17a4e2e2c749e870b15eab94244fda940cc77dd5c29bf4991d82ded40c1", ssa_ast = "cded77e1331ebd0d5724d69b7182547013040e39761baa885ba5f46d82598078", type_checked_symbol_table = "8769ae66a9044fadb82d48f0eef2cd504d76d8b84814d98170aba60986038620", unrolled_ast = "6ceceed851228bf86da79802c53352de3c6e5daddcbffd55bb796362fea8fca6", unrolled_symbol_table = "8769ae66a9044fadb82d48f0eef2cd504d76d8b84814d98170aba60986038620", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/negate_min_fail.out b/tests/expectations/compiler/integers/i32/negate_min_fail.out index 6b6d1bfe9e..96f51e1c77 100644 --- a/tests/expectations/compiler/integers/i32/negate_min_fail.out +++ b/tests/expectations/compiler/integers/i32/negate_min_fail.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "7014d5adeb6ff035c6415dd1001650301e64c7bb14426a4adc0f9b9daa514f69", dce_ast = "0c73ea47e4d7446e14b1b3372902d9b84b7986add96b19d82249dedf6b56abd5", destructured_ast = "0c73ea47e4d7446e14b1b3372902d9b84b7986add96b19d82249dedf6b56abd5", errors = "", flattened_ast = "8d8fb45f29708a829d0977a1a725ce5d63d3e7c6b8481e3e086ecf7b85cec9e2", initial_ast = "9f54faff256284cad601c07fe3c896a0f7121f8557b116896a0c02b2ee062e1b", initial_symbol_table = "f58b2dccb0111fe9cb3531a592e9d95907263b42be88cf9c30c9e67da095ae06", inlined_ast = "0c73ea47e4d7446e14b1b3372902d9b84b7986add96b19d82249dedf6b56abd5", ssa_ast = "8227aad1b63a3978f34062dbb9e84b70731833fd9ab204f2ee4975f2dba217bd", type_checked_symbol_table = "f08cee7b36f9c3ff5c743979e75b4a51ca5e61d5ff0cd52c425686b509e635d3", unrolled_ast = "9f54faff256284cad601c07fe3c896a0f7121f8557b116896a0c02b2ee062e1b", unrolled_symbol_table = "f08cee7b36f9c3ff5c743979e75b4a51ca5e61d5ff0cd52c425686b509e635d3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + neg -2147483648i32 into r1; + output r1 as i32.private; +""", dce_ast = "0c73ea47e4d7446e14b1b3372902d9b84b7986add96b19d82249dedf6b56abd5", destructured_ast = "0c73ea47e4d7446e14b1b3372902d9b84b7986add96b19d82249dedf6b56abd5", errors = "", flattened_ast = "8d8fb45f29708a829d0977a1a725ce5d63d3e7c6b8481e3e086ecf7b85cec9e2", initial_ast = "9f54faff256284cad601c07fe3c896a0f7121f8557b116896a0c02b2ee062e1b", initial_symbol_table = "f58b2dccb0111fe9cb3531a592e9d95907263b42be88cf9c30c9e67da095ae06", inlined_ast = "0c73ea47e4d7446e14b1b3372902d9b84b7986add96b19d82249dedf6b56abd5", ssa_ast = "8227aad1b63a3978f34062dbb9e84b70731833fd9ab204f2ee4975f2dba217bd", type_checked_symbol_table = "f08cee7b36f9c3ff5c743979e75b4a51ca5e61d5ff0cd52c425686b509e635d3", unrolled_ast = "9f54faff256284cad601c07fe3c896a0f7121f8557b116896a0c02b2ee062e1b", unrolled_symbol_table = "f08cee7b36f9c3ff5c743979e75b4a51ca5e61d5ff0cd52c425686b509e635d3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/negate_zero.out b/tests/expectations/compiler/integers/i32/negate_zero.out index 2653f90327..8eb8aa3cc4 100644 --- a/tests/expectations/compiler/integers/i32/negate_zero.out +++ b/tests/expectations/compiler/integers/i32/negate_zero.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "0d7b74771220febbbf1600fe72c373d3398998c0d1200c1fd592d3b3da56b928", dce_ast = "7afe04c5b7bfe3ad6bf5df99eccc6874df7d5f6f6ae06adfa2ed0b4036d7e744", destructured_ast = "7afe04c5b7bfe3ad6bf5df99eccc6874df7d5f6f6ae06adfa2ed0b4036d7e744", errors = "", flattened_ast = "4414f021e672ae9893e2df65562d035b2eff71e3f4d2a2a06522fd0f7c79a41a", initial_ast = "b80cb877a7175b4383f0a583ce95573dfb7114f01d0045ae03a916827dc92e0d", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "7afe04c5b7bfe3ad6bf5df99eccc6874df7d5f6f6ae06adfa2ed0b4036d7e744", ssa_ast = "5a243c3bc8e5d90bd3220777170ba703c5c335c12db3dc0b4e4c0f5d303d10b3", type_checked_symbol_table = "84b1d6bc36315d6e977e96c8ba7cfae02c3bbf8290c4402386b9b1b6b51e5359", unrolled_ast = "b80cb877a7175b4383f0a583ce95573dfb7114f01d0045ae03a916827dc92e0d", unrolled_symbol_table = "84b1d6bc36315d6e977e96c8ba7cfae02c3bbf8290c4402386b9b1b6b51e5359", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + neg 0i32 into r1; + is.eq r1 0i32 into r2; + is.eq r2 r0 into r3; + output r3 as boolean.private; +""", dce_ast = "7afe04c5b7bfe3ad6bf5df99eccc6874df7d5f6f6ae06adfa2ed0b4036d7e744", destructured_ast = "7afe04c5b7bfe3ad6bf5df99eccc6874df7d5f6f6ae06adfa2ed0b4036d7e744", errors = "", flattened_ast = "4414f021e672ae9893e2df65562d035b2eff71e3f4d2a2a06522fd0f7c79a41a", initial_ast = "b80cb877a7175b4383f0a583ce95573dfb7114f01d0045ae03a916827dc92e0d", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "7afe04c5b7bfe3ad6bf5df99eccc6874df7d5f6f6ae06adfa2ed0b4036d7e744", ssa_ast = "5a243c3bc8e5d90bd3220777170ba703c5c335c12db3dc0b4e4c0f5d303d10b3", type_checked_symbol_table = "84b1d6bc36315d6e977e96c8ba7cfae02c3bbf8290c4402386b9b1b6b51e5359", unrolled_ast = "b80cb877a7175b4383f0a583ce95573dfb7114f01d0045ae03a916827dc92e0d", unrolled_symbol_table = "84b1d6bc36315d6e977e96c8ba7cfae02c3bbf8290c4402386b9b1b6b51e5359", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/operator_methods.out b/tests/expectations/compiler/integers/i32/operator_methods.out index 71a123f0de..946188a0e4 100644 --- a/tests/expectations/compiler/integers/i32/operator_methods.out +++ b/tests/expectations/compiler/integers/i32/operator_methods.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "40661150b3b39dd341d29dab9771982c77efa03e028104d1965c1e2e2fbf3c28", dce_ast = "4b044f3729a8886f63143d1429cff39d3f6a780ded96243f6c56be6b41f8dcfe", destructured_ast = "5a7875bf71c8604b78025d7595dabc0b76f37bf42cef43e4a181cbc3d3030990", errors = "", flattened_ast = "50e13db046a3bb93864073fcbcf1f80fac456457206eb67fef678b34d962e373", initial_ast = "2fe7b9cea67421314b39d67fa96c71b1394d7c49f894c33670bc9a9aaf573ad1", initial_symbol_table = "0802bf46b8d0e4c40fe3b491794e7413e9ff66a0b0d2abf321830355e4b0ef19", inlined_ast = "5a7875bf71c8604b78025d7595dabc0b76f37bf42cef43e4a181cbc3d3030990", ssa_ast = "e7383b8d25ce13ebd7ba0ce1f6d87a935926a5c6a5b54bf99d34e91d877e0cc5", type_checked_symbol_table = "55dfa055b703ea28a5a601e73b649d71f2127ad3427eaafab8c5545269b6fbdf", unrolled_ast = "2fe7b9cea67421314b39d67fa96c71b1394d7c49f894c33670bc9a9aaf573ad1", unrolled_symbol_table = "55dfa055b703ea28a5a601e73b649d71f2127ad3427eaafab8c5545269b6fbdf", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + is.eq r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "4b044f3729a8886f63143d1429cff39d3f6a780ded96243f6c56be6b41f8dcfe", destructured_ast = "5a7875bf71c8604b78025d7595dabc0b76f37bf42cef43e4a181cbc3d3030990", errors = "", flattened_ast = "50e13db046a3bb93864073fcbcf1f80fac456457206eb67fef678b34d962e373", initial_ast = "2fe7b9cea67421314b39d67fa96c71b1394d7c49f894c33670bc9a9aaf573ad1", initial_symbol_table = "0802bf46b8d0e4c40fe3b491794e7413e9ff66a0b0d2abf321830355e4b0ef19", inlined_ast = "5a7875bf71c8604b78025d7595dabc0b76f37bf42cef43e4a181cbc3d3030990", ssa_ast = "e7383b8d25ce13ebd7ba0ce1f6d87a935926a5c6a5b54bf99d34e91d877e0cc5", type_checked_symbol_table = "55dfa055b703ea28a5a601e73b649d71f2127ad3427eaafab8c5545269b6fbdf", unrolled_ast = "2fe7b9cea67421314b39d67fa96c71b1394d7c49f894c33670bc9a9aaf573ad1", unrolled_symbol_table = "55dfa055b703ea28a5a601e73b649d71f2127ad3427eaafab8c5545269b6fbdf", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/or.out b/tests/expectations/compiler/integers/i32/or.out index 2919e330ca..e75e710e15 100644 --- a/tests/expectations/compiler/integers/i32/or.out +++ b/tests/expectations/compiler/integers/i32/or.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "607f946bff91ee499a6d977e52f6cbc32678d1306e1e6437adc3ed3720d77a02", dce_ast = "d0b631f973f606e062a9562f079e8fc90f4761ad11c385506013d3cf09a4629a", destructured_ast = "d0b631f973f606e062a9562f079e8fc90f4761ad11c385506013d3cf09a4629a", errors = "", flattened_ast = "52b7c1895349087bb9c13b8f797e54d0c72921fa23062a85be0add297e76b61d", initial_ast = "8674ad993f260dc33e818ba3ae15a87c51e6464bfea831ea3d5a2d7120ca61c8", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "d0b631f973f606e062a9562f079e8fc90f4761ad11c385506013d3cf09a4629a", ssa_ast = "8500eac3b091101ce395ff2217809f8a7ef2ef6d12d41adf0d816ad954d5bb1f", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "8674ad993f260dc33e818ba3ae15a87c51e6464bfea831ea3d5a2d7120ca61c8", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as i32.private; + or r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "d0b631f973f606e062a9562f079e8fc90f4761ad11c385506013d3cf09a4629a", destructured_ast = "d0b631f973f606e062a9562f079e8fc90f4761ad11c385506013d3cf09a4629a", errors = "", flattened_ast = "52b7c1895349087bb9c13b8f797e54d0c72921fa23062a85be0add297e76b61d", initial_ast = "8674ad993f260dc33e818ba3ae15a87c51e6464bfea831ea3d5a2d7120ca61c8", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "d0b631f973f606e062a9562f079e8fc90f4761ad11c385506013d3cf09a4629a", ssa_ast = "8500eac3b091101ce395ff2217809f8a7ef2ef6d12d41adf0d816ad954d5bb1f", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "8674ad993f260dc33e818ba3ae15a87c51e6464bfea831ea3d5a2d7120ca61c8", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/pow.out b/tests/expectations/compiler/integers/i32/pow.out index 0ce6976349..00568bfbe5 100644 --- a/tests/expectations/compiler/integers/i32/pow.out +++ b/tests/expectations/compiler/integers/i32/pow.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "356e8fd9b7a616538d51b58accbf2cb604812f8d4e1d984ed091819b6b1dd7ef", dce_ast = "732a6b5c2c30ca692e84bef49d915ed81956cd885c869621a392d83aa404436e", destructured_ast = "732a6b5c2c30ca692e84bef49d915ed81956cd885c869621a392d83aa404436e", errors = "", flattened_ast = "7e7b9c8f934ee0d9f32e2c494c533b14c9dce64cf621c1b086a31d2e932e3155", initial_ast = "4b5683afd23ee8c9b10b687123f35e41e8db16921e74e483f191f9dae92ab753", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "732a6b5c2c30ca692e84bef49d915ed81956cd885c869621a392d83aa404436e", ssa_ast = "21f1cc483ac5f8accd327a0174066b9332d30e96545579e1c5315dfa7f778650", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "4b5683afd23ee8c9b10b687123f35e41e8db16921e74e483f191f9dae92ab753", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as i32.private; + pow r0 2u8 into r3; + pow r0 2u16 into r4; + is.eq r3 r4 into r5; + pow r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "732a6b5c2c30ca692e84bef49d915ed81956cd885c869621a392d83aa404436e", destructured_ast = "732a6b5c2c30ca692e84bef49d915ed81956cd885c869621a392d83aa404436e", errors = "", flattened_ast = "7e7b9c8f934ee0d9f32e2c494c533b14c9dce64cf621c1b086a31d2e932e3155", initial_ast = "4b5683afd23ee8c9b10b687123f35e41e8db16921e74e483f191f9dae92ab753", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "732a6b5c2c30ca692e84bef49d915ed81956cd885c869621a392d83aa404436e", ssa_ast = "21f1cc483ac5f8accd327a0174066b9332d30e96545579e1c5315dfa7f778650", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "4b5683afd23ee8c9b10b687123f35e41e8db16921e74e483f191f9dae92ab753", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/rem.out b/tests/expectations/compiler/integers/i32/rem.out index 602c754e5c..c9ca8e9c76 100644 --- a/tests/expectations/compiler/integers/i32/rem.out +++ b/tests/expectations/compiler/integers/i32/rem.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "58eca9e830625c2f8ae8836c94380e3decec48e4ea0b0b07421a69dffafc9366", dce_ast = "6d68ce128df6209b39e837ff87f5f1fbd8e2523fb965ca9001c02fd78b7b1350", destructured_ast = "6d68ce128df6209b39e837ff87f5f1fbd8e2523fb965ca9001c02fd78b7b1350", errors = "", flattened_ast = "8860a778786e10b922e114bbcf31305539d5e09ffae176054a39b1a0f2dddb5d", initial_ast = "0cc0e6cea813f906abfa35117404ec428961e3e2bcd6f35fd92e37ed1c8663f7", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "6d68ce128df6209b39e837ff87f5f1fbd8e2523fb965ca9001c02fd78b7b1350", ssa_ast = "7e9b42f58fd67b703c4d20dea6da6d24fc4ee178d62f68218828c96a6b696a03", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "0cc0e6cea813f906abfa35117404ec428961e3e2bcd6f35fd92e37ed1c8663f7", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as i32.private; + rem r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "6d68ce128df6209b39e837ff87f5f1fbd8e2523fb965ca9001c02fd78b7b1350", destructured_ast = "6d68ce128df6209b39e837ff87f5f1fbd8e2523fb965ca9001c02fd78b7b1350", errors = "", flattened_ast = "8860a778786e10b922e114bbcf31305539d5e09ffae176054a39b1a0f2dddb5d", initial_ast = "0cc0e6cea813f906abfa35117404ec428961e3e2bcd6f35fd92e37ed1c8663f7", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "6d68ce128df6209b39e837ff87f5f1fbd8e2523fb965ca9001c02fd78b7b1350", ssa_ast = "7e9b42f58fd67b703c4d20dea6da6d24fc4ee178d62f68218828c96a6b696a03", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "0cc0e6cea813f906abfa35117404ec428961e3e2bcd6f35fd92e37ed1c8663f7", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/shl.out b/tests/expectations/compiler/integers/i32/shl.out index 9c8d65aee9..b8f9efb6a4 100644 --- a/tests/expectations/compiler/integers/i32/shl.out +++ b/tests/expectations/compiler/integers/i32/shl.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "7b5bbc80ede3dfcc182728241b3f4a889f3c1afc6e5db865947f34cc0eab889c", dce_ast = "5730dfc5923ff0197b6e2ed4aa65bfb96925965c47e5e42f8bb98e13d6587ce7", destructured_ast = "5730dfc5923ff0197b6e2ed4aa65bfb96925965c47e5e42f8bb98e13d6587ce7", errors = "", flattened_ast = "438fc5776febf197d8f07748d8c8d8aee5f005c552adce1bbd60399230470df5", initial_ast = "7f5aa3fda972b33a679ea3700eb3530ed56a69527e1a521c524b926fe858837b", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "5730dfc5923ff0197b6e2ed4aa65bfb96925965c47e5e42f8bb98e13d6587ce7", ssa_ast = "6073ada6ac6a5844c76ecb6aceeece916469dbca056db2441b648cb01d3c8ef2", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "7f5aa3fda972b33a679ea3700eb3530ed56a69527e1a521c524b926fe858837b", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as i32.private; + shl r0 2u8 into r3; + shl r0 2u16 into r4; + is.eq r3 r4 into r5; + shl r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "5730dfc5923ff0197b6e2ed4aa65bfb96925965c47e5e42f8bb98e13d6587ce7", destructured_ast = "5730dfc5923ff0197b6e2ed4aa65bfb96925965c47e5e42f8bb98e13d6587ce7", errors = "", flattened_ast = "438fc5776febf197d8f07748d8c8d8aee5f005c552adce1bbd60399230470df5", initial_ast = "7f5aa3fda972b33a679ea3700eb3530ed56a69527e1a521c524b926fe858837b", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "5730dfc5923ff0197b6e2ed4aa65bfb96925965c47e5e42f8bb98e13d6587ce7", ssa_ast = "6073ada6ac6a5844c76ecb6aceeece916469dbca056db2441b648cb01d3c8ef2", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "7f5aa3fda972b33a679ea3700eb3530ed56a69527e1a521c524b926fe858837b", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/shr.out b/tests/expectations/compiler/integers/i32/shr.out index 0df839f66a..c46c25fa7b 100644 --- a/tests/expectations/compiler/integers/i32/shr.out +++ b/tests/expectations/compiler/integers/i32/shr.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4beebe6f64c29d63c9bafe8a3a58e52b14705368f667c1a44fd85d5d46e80f6c", dce_ast = "c74f58238550ee1d59b3cfbfeb313b32cbc18964763e3642a2c63fe68496b859", destructured_ast = "c74f58238550ee1d59b3cfbfeb313b32cbc18964763e3642a2c63fe68496b859", errors = "", flattened_ast = "cdd6dba47cadc95bff43e644259295873c037a5e1acd22703dafe9a251eb9d79", initial_ast = "a94202473889a81b2cb118db02a2812e8ed66365740eba84ce685931f03b5205", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "c74f58238550ee1d59b3cfbfeb313b32cbc18964763e3642a2c63fe68496b859", ssa_ast = "ae148dd21f5532cddf5c9202aae9b12cd02756a039a7389c2cfb721f3001432b", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "a94202473889a81b2cb118db02a2812e8ed66365740eba84ce685931f03b5205", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as i32.private; + shr r0 2u8 into r3; + shr r0 2u16 into r4; + is.eq r3 r4 into r5; + shr r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "c74f58238550ee1d59b3cfbfeb313b32cbc18964763e3642a2c63fe68496b859", destructured_ast = "c74f58238550ee1d59b3cfbfeb313b32cbc18964763e3642a2c63fe68496b859", errors = "", flattened_ast = "cdd6dba47cadc95bff43e644259295873c037a5e1acd22703dafe9a251eb9d79", initial_ast = "a94202473889a81b2cb118db02a2812e8ed66365740eba84ce685931f03b5205", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "c74f58238550ee1d59b3cfbfeb313b32cbc18964763e3642a2c63fe68496b859", ssa_ast = "ae148dd21f5532cddf5c9202aae9b12cd02756a039a7389c2cfb721f3001432b", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "a94202473889a81b2cb118db02a2812e8ed66365740eba84ce685931f03b5205", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/sub.out b/tests/expectations/compiler/integers/i32/sub.out index 7dfea84bf7..f94c59e910 100644 --- a/tests/expectations/compiler/integers/i32/sub.out +++ b/tests/expectations/compiler/integers/i32/sub.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "8efbc5343f7c2f0c0978f035231692e7ff00b213495d8713911fe1be40aa91f4", dce_ast = "5a716d88a4bd2a8ccecd6b66dfd4d6ebd56a2b8d2a6ebe56538f0d96023cb0c2", destructured_ast = "5a716d88a4bd2a8ccecd6b66dfd4d6ebd56a2b8d2a6ebe56538f0d96023cb0c2", errors = "", flattened_ast = "63f068cd118cf7f0a3696a432647c07d675368348a0d0f807087b5c0dcf11d56", initial_ast = "aa5f4dc5119c279ef8d46c270ba9bc33886216c7b7e99e934975429f65a13089", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "5a716d88a4bd2a8ccecd6b66dfd4d6ebd56a2b8d2a6ebe56538f0d96023cb0c2", ssa_ast = "b178dcccd1545e0768bfce699c5c6ad55d1ec4607c7abeb78ffb8d896cec4182", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "aa5f4dc5119c279ef8d46c270ba9bc33886216c7b7e99e934975429f65a13089", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + input r2 as i32.private; + sub r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "5a716d88a4bd2a8ccecd6b66dfd4d6ebd56a2b8d2a6ebe56538f0d96023cb0c2", destructured_ast = "5a716d88a4bd2a8ccecd6b66dfd4d6ebd56a2b8d2a6ebe56538f0d96023cb0c2", errors = "", flattened_ast = "63f068cd118cf7f0a3696a432647c07d675368348a0d0f807087b5c0dcf11d56", initial_ast = "aa5f4dc5119c279ef8d46c270ba9bc33886216c7b7e99e934975429f65a13089", initial_symbol_table = "cb3c54aab60e06f54c2c22dce87a5a5c243f424cfbd9f2706ca26715ca340ef7", inlined_ast = "5a716d88a4bd2a8ccecd6b66dfd4d6ebd56a2b8d2a6ebe56538f0d96023cb0c2", ssa_ast = "b178dcccd1545e0768bfce699c5c6ad55d1ec4607c7abeb78ffb8d896cec4182", type_checked_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", unrolled_ast = "aa5f4dc5119c279ef8d46c270ba9bc33886216c7b7e99e934975429f65a13089", unrolled_symbol_table = "0369a0b0b5cbbd5439e220f01d85a00caae5a31bb77f7e266607c36cdf78beb5", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/ternary.out b/tests/expectations/compiler/integers/i32/ternary.out index 6c9bfbc06f..84908d5241 100644 --- a/tests/expectations/compiler/integers/i32/ternary.out +++ b/tests/expectations/compiler/integers/i32/ternary.out @@ -1,3 +1,16 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "8255076ed16f7675cce867bf0b6ab1eacad9bdc4735188bb9b1b2dc40cf24ce0", dce_ast = "880fddbbe5e0f122cf6291f2a9e722c392b24aa710aeb3eb45d35a8bcdd195ae", destructured_ast = "880fddbbe5e0f122cf6291f2a9e722c392b24aa710aeb3eb45d35a8bcdd195ae", errors = "", flattened_ast = "e4dfa4f008ad2777e974029ef07c2d1b6e83beb091b55d0dbad1586852feb0a6", initial_ast = "5911eeb5664c52b61fe6d947181b59591e2b82a9eefdbcab0781bbd1fd257167", initial_symbol_table = "d0c61a121356719d5fe78692cfdff531cf4bfaf4dbbc30182c5b2493f5cd3778", inlined_ast = "880fddbbe5e0f122cf6291f2a9e722c392b24aa710aeb3eb45d35a8bcdd195ae", ssa_ast = "98d2f4f3e23b256c86323f4ee4304e6e1e6350bd836fb72e3103cee6fe531e6d", type_checked_symbol_table = "f1ff2f9cce01c71a33a9f06c9823d5edf6923c71393ee9addeb42a9ac9383123", unrolled_ast = "5911eeb5664c52b61fe6d947181b59591e2b82a9eefdbcab0781bbd1fd257167", unrolled_symbol_table = "f1ff2f9cce01c71a33a9f06c9823d5edf6923c71393ee9addeb42a9ac9383123", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + input r1 as i32.private; + input r2 as i32.private; + input r3 as i32.private; + ternary r0 r1 r2 into r4; + is.eq r4 r3 into r5; + output r5 as boolean.private; +""", dce_ast = "880fddbbe5e0f122cf6291f2a9e722c392b24aa710aeb3eb45d35a8bcdd195ae", destructured_ast = "880fddbbe5e0f122cf6291f2a9e722c392b24aa710aeb3eb45d35a8bcdd195ae", errors = "", flattened_ast = "e4dfa4f008ad2777e974029ef07c2d1b6e83beb091b55d0dbad1586852feb0a6", initial_ast = "5911eeb5664c52b61fe6d947181b59591e2b82a9eefdbcab0781bbd1fd257167", initial_symbol_table = "d0c61a121356719d5fe78692cfdff531cf4bfaf4dbbc30182c5b2493f5cd3778", inlined_ast = "880fddbbe5e0f122cf6291f2a9e722c392b24aa710aeb3eb45d35a8bcdd195ae", ssa_ast = "98d2f4f3e23b256c86323f4ee4304e6e1e6350bd836fb72e3103cee6fe531e6d", type_checked_symbol_table = "f1ff2f9cce01c71a33a9f06c9823d5edf6923c71393ee9addeb42a9ac9383123", unrolled_ast = "5911eeb5664c52b61fe6d947181b59591e2b82a9eefdbcab0781bbd1fd257167", unrolled_symbol_table = "f1ff2f9cce01c71a33a9f06c9823d5edf6923c71393ee9addeb42a9ac9383123", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i32/xor.out b/tests/expectations/compiler/integers/i32/xor.out index 8f77b2b936..c81a260ba3 100644 --- a/tests/expectations/compiler/integers/i32/xor.out +++ b/tests/expectations/compiler/integers/i32/xor.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "6a7c1505b6d57a26f767b63372873413e4ca3a4b7ff7b42f652a2841d843da64", dce_ast = "1daf4724fbdb5bcced29fac3082ce8fc54ef8e9e8ec076394726723c046de213", destructured_ast = "1daf4724fbdb5bcced29fac3082ce8fc54ef8e9e8ec076394726723c046de213", errors = "", flattened_ast = "f3e585a825a43bcd7434e8a6ac25a02f7074799e22205c05f0e2da6bbd956bd8", initial_ast = "04a881d5cc07074018f87c7b762bff3d764b4c775cb0293c89e27812c0bbc24b", initial_symbol_table = "22a7d7792f0fc312fba0af5c6e8e7c7b7e20f38187e0c18150668c26747d78e5", inlined_ast = "1daf4724fbdb5bcced29fac3082ce8fc54ef8e9e8ec076394726723c046de213", ssa_ast = "458d4182af4adbca9a6baaddb4e3529a6feec2b4baa8d5a938023ad48f185b63", type_checked_symbol_table = "dce8971547e4a57fb3b633fc1ffe4f7f1cef2f3028c6b65e44a3b4727892b1dd", unrolled_ast = "04a881d5cc07074018f87c7b762bff3d764b4c775cb0293c89e27812c0bbc24b", unrolled_symbol_table = "dce8971547e4a57fb3b633fc1ffe4f7f1cef2f3028c6b65e44a3b4727892b1dd", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i32.private; + input r1 as i32.private; + xor r0 r1 into r2; + output r2 as i32.private; +""", dce_ast = "1daf4724fbdb5bcced29fac3082ce8fc54ef8e9e8ec076394726723c046de213", destructured_ast = "1daf4724fbdb5bcced29fac3082ce8fc54ef8e9e8ec076394726723c046de213", errors = "", flattened_ast = "f3e585a825a43bcd7434e8a6ac25a02f7074799e22205c05f0e2da6bbd956bd8", initial_ast = "04a881d5cc07074018f87c7b762bff3d764b4c775cb0293c89e27812c0bbc24b", initial_symbol_table = "22a7d7792f0fc312fba0af5c6e8e7c7b7e20f38187e0c18150668c26747d78e5", inlined_ast = "1daf4724fbdb5bcced29fac3082ce8fc54ef8e9e8ec076394726723c046de213", ssa_ast = "458d4182af4adbca9a6baaddb4e3529a6feec2b4baa8d5a938023ad48f185b63", type_checked_symbol_table = "dce8971547e4a57fb3b633fc1ffe4f7f1cef2f3028c6b65e44a3b4727892b1dd", unrolled_ast = "04a881d5cc07074018f87c7b762bff3d764b4c775cb0293c89e27812c0bbc24b", unrolled_symbol_table = "dce8971547e4a57fb3b633fc1ffe4f7f1cef2f3028c6b65e44a3b4727892b1dd", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/add.out b/tests/expectations/compiler/integers/i64/add.out index 174fb93012..c6e793c16f 100644 --- a/tests/expectations/compiler/integers/i64/add.out +++ b/tests/expectations/compiler/integers/i64/add.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "cacab9d7bb5db2f55373c7acaab14386b1e68569b39d0ca4837e07d67d31b78e", dce_ast = "37f5aec20b690acc7db1fcc36a7fd941a4fd1ec5266b50baf3c463e430673b6b", destructured_ast = "37f5aec20b690acc7db1fcc36a7fd941a4fd1ec5266b50baf3c463e430673b6b", errors = "", flattened_ast = "0ff0661c01e073406e01efdc292cc2169567f204cfbdaf3f2e582edfc7638d44", initial_ast = "07c1200a73fca5f1e50a1455b59dc7a21c9ca152efe9e5ee523b7b2a248d24d3", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "37f5aec20b690acc7db1fcc36a7fd941a4fd1ec5266b50baf3c463e430673b6b", ssa_ast = "f1bf04488f9243523a8b99338bc9a05ff144b5760fc73f6290fa3f6e9289c094", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "07c1200a73fca5f1e50a1455b59dc7a21c9ca152efe9e5ee523b7b2a248d24d3", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as i64.private; + add r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "37f5aec20b690acc7db1fcc36a7fd941a4fd1ec5266b50baf3c463e430673b6b", destructured_ast = "37f5aec20b690acc7db1fcc36a7fd941a4fd1ec5266b50baf3c463e430673b6b", errors = "", flattened_ast = "0ff0661c01e073406e01efdc292cc2169567f204cfbdaf3f2e582edfc7638d44", initial_ast = "07c1200a73fca5f1e50a1455b59dc7a21c9ca152efe9e5ee523b7b2a248d24d3", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "37f5aec20b690acc7db1fcc36a7fd941a4fd1ec5266b50baf3c463e430673b6b", ssa_ast = "f1bf04488f9243523a8b99338bc9a05ff144b5760fc73f6290fa3f6e9289c094", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "07c1200a73fca5f1e50a1455b59dc7a21c9ca152efe9e5ee523b7b2a248d24d3", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/and.out b/tests/expectations/compiler/integers/i64/and.out index 7e982cfd56..4c840094f6 100644 --- a/tests/expectations/compiler/integers/i64/and.out +++ b/tests/expectations/compiler/integers/i64/and.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "8867cc02772ac290447a78df347c850a4f5a2cf3077d76fa71c1c3ee43ba6e55", dce_ast = "12ef2288d96f40e8cbb4ef7cc90f7d7a5a3f2d7bf29346ed64f54d78ca2f9ba3", destructured_ast = "12ef2288d96f40e8cbb4ef7cc90f7d7a5a3f2d7bf29346ed64f54d78ca2f9ba3", errors = "", flattened_ast = "86fa1a2b391a710f539273132109d7a52c39e9f320a0fcbe7abccefd737720a3", initial_ast = "d3d8056d2040433c203046c78c8c38d08231bb41221526c2bd6edef0920262bd", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "12ef2288d96f40e8cbb4ef7cc90f7d7a5a3f2d7bf29346ed64f54d78ca2f9ba3", ssa_ast = "9dc90bb6fbdc7a957cee70e1bae5d33d2756e817fbdc49c1eee9f723cf533575", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "d3d8056d2040433c203046c78c8c38d08231bb41221526c2bd6edef0920262bd", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as i64.private; + and r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "12ef2288d96f40e8cbb4ef7cc90f7d7a5a3f2d7bf29346ed64f54d78ca2f9ba3", destructured_ast = "12ef2288d96f40e8cbb4ef7cc90f7d7a5a3f2d7bf29346ed64f54d78ca2f9ba3", errors = "", flattened_ast = "86fa1a2b391a710f539273132109d7a52c39e9f320a0fcbe7abccefd737720a3", initial_ast = "d3d8056d2040433c203046c78c8c38d08231bb41221526c2bd6edef0920262bd", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "12ef2288d96f40e8cbb4ef7cc90f7d7a5a3f2d7bf29346ed64f54d78ca2f9ba3", ssa_ast = "9dc90bb6fbdc7a957cee70e1bae5d33d2756e817fbdc49c1eee9f723cf533575", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "d3d8056d2040433c203046c78c8c38d08231bb41221526c2bd6edef0920262bd", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/console_assert.out b/tests/expectations/compiler/integers/i64/console_assert.out index aaebdde694..70518fc801 100644 --- a/tests/expectations/compiler/integers/i64/console_assert.out +++ b/tests/expectations/compiler/integers/i64/console_assert.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "84d9ec69408c0662a22522e0fde8c535c8f73af3da10f98f7b228a9c9ac2742e", dce_ast = "a6f8aa52be3364526cb2caa9703f22e8f8fdb7c82bf03d0fe0aafe1294084925", destructured_ast = "a6f8aa52be3364526cb2caa9703f22e8f8fdb7c82bf03d0fe0aafe1294084925", errors = "", flattened_ast = "2dd8274f3cf7abfee8b126ca66d897a1635f03db559627cac1085a4c5118b209", initial_ast = "857650787fb06d79336a7b61bc54a8d00cbaa052243a0f9170064abb34db6765", initial_symbol_table = "e50384060e9fc0d4efa2b987729a9efa0b7311ebef5a571230d627bbb7259b7f", inlined_ast = "a6f8aa52be3364526cb2caa9703f22e8f8fdb7c82bf03d0fe0aafe1294084925", ssa_ast = "6ff3c42ca326c08ce02b97f7a567e1fa451a7925fd3adebc6809a225bc41f4aa", type_checked_symbol_table = "62563e32a27e88504c1f20e6674572af9c07bb51679b3e0c385bba310531101e", unrolled_ast = "857650787fb06d79336a7b61bc54a8d00cbaa052243a0f9170064abb34db6765", unrolled_symbol_table = "62563e32a27e88504c1f20e6674572af9c07bb51679b3e0c385bba310531101e", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + is.eq r0 r1 into r2; + assert.eq r2 true; + output r2 as boolean.private; +""", dce_ast = "a6f8aa52be3364526cb2caa9703f22e8f8fdb7c82bf03d0fe0aafe1294084925", destructured_ast = "a6f8aa52be3364526cb2caa9703f22e8f8fdb7c82bf03d0fe0aafe1294084925", errors = "", flattened_ast = "2dd8274f3cf7abfee8b126ca66d897a1635f03db559627cac1085a4c5118b209", initial_ast = "857650787fb06d79336a7b61bc54a8d00cbaa052243a0f9170064abb34db6765", initial_symbol_table = "e50384060e9fc0d4efa2b987729a9efa0b7311ebef5a571230d627bbb7259b7f", inlined_ast = "a6f8aa52be3364526cb2caa9703f22e8f8fdb7c82bf03d0fe0aafe1294084925", ssa_ast = "6ff3c42ca326c08ce02b97f7a567e1fa451a7925fd3adebc6809a225bc41f4aa", type_checked_symbol_table = "62563e32a27e88504c1f20e6674572af9c07bb51679b3e0c385bba310531101e", unrolled_ast = "857650787fb06d79336a7b61bc54a8d00cbaa052243a0f9170064abb34db6765", unrolled_symbol_table = "62563e32a27e88504c1f20e6674572af9c07bb51679b3e0c385bba310531101e", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/div.out b/tests/expectations/compiler/integers/i64/div.out index 796660ce98..fc65de8ca6 100644 --- a/tests/expectations/compiler/integers/i64/div.out +++ b/tests/expectations/compiler/integers/i64/div.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "1d370b22d4ae239f0bcb12a771b471bfbbf8c43ad4b3f15b8223b6f122f29457", dce_ast = "a5a1b48af5d863fadf4d75705030571de91ee84348da6afc75c6f6f801014201", destructured_ast = "a5a1b48af5d863fadf4d75705030571de91ee84348da6afc75c6f6f801014201", errors = "", flattened_ast = "f315413e125980569e6db4d506094096b373436476da4c1dad6ef35143b8d6b8", initial_ast = "afc27976f164adbeb9cceda42f02071ee5951317c58fb66ad80a82239db1de83", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "a5a1b48af5d863fadf4d75705030571de91ee84348da6afc75c6f6f801014201", ssa_ast = "5878cb4dfcc88bd2608451dd0c2da16dc21babc339787e9db51fa5dbed520b4d", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "afc27976f164adbeb9cceda42f02071ee5951317c58fb66ad80a82239db1de83", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as i64.private; + div r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "a5a1b48af5d863fadf4d75705030571de91ee84348da6afc75c6f6f801014201", destructured_ast = "a5a1b48af5d863fadf4d75705030571de91ee84348da6afc75c6f6f801014201", errors = "", flattened_ast = "f315413e125980569e6db4d506094096b373436476da4c1dad6ef35143b8d6b8", initial_ast = "afc27976f164adbeb9cceda42f02071ee5951317c58fb66ad80a82239db1de83", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "a5a1b48af5d863fadf4d75705030571de91ee84348da6afc75c6f6f801014201", ssa_ast = "5878cb4dfcc88bd2608451dd0c2da16dc21babc339787e9db51fa5dbed520b4d", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "afc27976f164adbeb9cceda42f02071ee5951317c58fb66ad80a82239db1de83", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/eq.out b/tests/expectations/compiler/integers/i64/eq.out index 7cffac67cc..a5d4a1a4ca 100644 --- a/tests/expectations/compiler/integers/i64/eq.out +++ b/tests/expectations/compiler/integers/i64/eq.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "3b16a9ffcba2d86d0099abfc040442550dad3a04f8ba2bbdec05f93ec3c1b6ec", dce_ast = "988cf46b8c5ec4dd2e8a317fd9ddb38366bc71ba2044b6f92d4b901a1f963541", destructured_ast = "988cf46b8c5ec4dd2e8a317fd9ddb38366bc71ba2044b6f92d4b901a1f963541", errors = "", flattened_ast = "7f0773c4e57b2c25554e6ea4384e8258bbf72fff915218cad09829d385e4ca85", initial_ast = "e94196f738525ff8d3109ad09dd7737d5d5d40d7305690f663a671446635d828", initial_symbol_table = "7a887157da38d534a1e2b2ad779ecf2e9072b92fc1fa20d58865570c7c430960", inlined_ast = "988cf46b8c5ec4dd2e8a317fd9ddb38366bc71ba2044b6f92d4b901a1f963541", ssa_ast = "7ade987b7485dd6c281f1c1b99032369fbdee19fb75d18587301855c3a334b3f", type_checked_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", unrolled_ast = "e94196f738525ff8d3109ad09dd7737d5d5d40d7305690f663a671446635d828", unrolled_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as boolean.private; + is.eq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "988cf46b8c5ec4dd2e8a317fd9ddb38366bc71ba2044b6f92d4b901a1f963541", destructured_ast = "988cf46b8c5ec4dd2e8a317fd9ddb38366bc71ba2044b6f92d4b901a1f963541", errors = "", flattened_ast = "7f0773c4e57b2c25554e6ea4384e8258bbf72fff915218cad09829d385e4ca85", initial_ast = "e94196f738525ff8d3109ad09dd7737d5d5d40d7305690f663a671446635d828", initial_symbol_table = "7a887157da38d534a1e2b2ad779ecf2e9072b92fc1fa20d58865570c7c430960", inlined_ast = "988cf46b8c5ec4dd2e8a317fd9ddb38366bc71ba2044b6f92d4b901a1f963541", ssa_ast = "7ade987b7485dd6c281f1c1b99032369fbdee19fb75d18587301855c3a334b3f", type_checked_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", unrolled_ast = "e94196f738525ff8d3109ad09dd7737d5d5d40d7305690f663a671446635d828", unrolled_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/ge.out b/tests/expectations/compiler/integers/i64/ge.out index e27b64f624..cf5d90d44b 100644 --- a/tests/expectations/compiler/integers/i64/ge.out +++ b/tests/expectations/compiler/integers/i64/ge.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "ed40a103f79cba4bb4b6ca00730fb673def3a223840271519eecbc1ee845f325", dce_ast = "f84955d534b8cc2c9e59010a535605b84cfe9be2347dfd0d721f943d08e00c6c", destructured_ast = "f84955d534b8cc2c9e59010a535605b84cfe9be2347dfd0d721f943d08e00c6c", errors = "", flattened_ast = "b295ca3b902b9c8901c0b0c7b77125c4b5a53d782c35dacecb1c02c3631f929e", initial_ast = "c2ae1bc489e8897b2e55ecc15b0167871648e5bb81012bf3fc3f9c80efe886cc", initial_symbol_table = "7a887157da38d534a1e2b2ad779ecf2e9072b92fc1fa20d58865570c7c430960", inlined_ast = "f84955d534b8cc2c9e59010a535605b84cfe9be2347dfd0d721f943d08e00c6c", ssa_ast = "bacc54616930cc03dabcfa37cc55aa7fa94b9877271ce596199dd4b845dda433", type_checked_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", unrolled_ast = "c2ae1bc489e8897b2e55ecc15b0167871648e5bb81012bf3fc3f9c80efe886cc", unrolled_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as boolean.private; + gte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "f84955d534b8cc2c9e59010a535605b84cfe9be2347dfd0d721f943d08e00c6c", destructured_ast = "f84955d534b8cc2c9e59010a535605b84cfe9be2347dfd0d721f943d08e00c6c", errors = "", flattened_ast = "b295ca3b902b9c8901c0b0c7b77125c4b5a53d782c35dacecb1c02c3631f929e", initial_ast = "c2ae1bc489e8897b2e55ecc15b0167871648e5bb81012bf3fc3f9c80efe886cc", initial_symbol_table = "7a887157da38d534a1e2b2ad779ecf2e9072b92fc1fa20d58865570c7c430960", inlined_ast = "f84955d534b8cc2c9e59010a535605b84cfe9be2347dfd0d721f943d08e00c6c", ssa_ast = "bacc54616930cc03dabcfa37cc55aa7fa94b9877271ce596199dd4b845dda433", type_checked_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", unrolled_ast = "c2ae1bc489e8897b2e55ecc15b0167871648e5bb81012bf3fc3f9c80efe886cc", unrolled_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/gt.out b/tests/expectations/compiler/integers/i64/gt.out index 4f132d35d9..c708e02a3f 100644 --- a/tests/expectations/compiler/integers/i64/gt.out +++ b/tests/expectations/compiler/integers/i64/gt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "9e8596394abe6381f7e39ef612e78acc5b9fd4e2cd036a0b3f1296686182a3e5", dce_ast = "8ef62110a1a45cc0bbcd7f24310cdf2d82a0d84e5c394779b24de602439a51b7", destructured_ast = "8ef62110a1a45cc0bbcd7f24310cdf2d82a0d84e5c394779b24de602439a51b7", errors = "", flattened_ast = "b568cf3748d1ce9ef5087c6da40f1b9467a95f06986b5faf1254f3639b28a38e", initial_ast = "e290e22b20c7c55bf8a0fcb209fe92c844c42c514c89bdc310e3a197b65012d6", initial_symbol_table = "7a887157da38d534a1e2b2ad779ecf2e9072b92fc1fa20d58865570c7c430960", inlined_ast = "8ef62110a1a45cc0bbcd7f24310cdf2d82a0d84e5c394779b24de602439a51b7", ssa_ast = "41020c3290293767d84e0206146df452852bbe518109329fccb138e8664c80ee", type_checked_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", unrolled_ast = "e290e22b20c7c55bf8a0fcb209fe92c844c42c514c89bdc310e3a197b65012d6", unrolled_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as boolean.private; + gt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "8ef62110a1a45cc0bbcd7f24310cdf2d82a0d84e5c394779b24de602439a51b7", destructured_ast = "8ef62110a1a45cc0bbcd7f24310cdf2d82a0d84e5c394779b24de602439a51b7", errors = "", flattened_ast = "b568cf3748d1ce9ef5087c6da40f1b9467a95f06986b5faf1254f3639b28a38e", initial_ast = "e290e22b20c7c55bf8a0fcb209fe92c844c42c514c89bdc310e3a197b65012d6", initial_symbol_table = "7a887157da38d534a1e2b2ad779ecf2e9072b92fc1fa20d58865570c7c430960", inlined_ast = "8ef62110a1a45cc0bbcd7f24310cdf2d82a0d84e5c394779b24de602439a51b7", ssa_ast = "41020c3290293767d84e0206146df452852bbe518109329fccb138e8664c80ee", type_checked_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", unrolled_ast = "e290e22b20c7c55bf8a0fcb209fe92c844c42c514c89bdc310e3a197b65012d6", unrolled_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/hex_and_bin.out b/tests/expectations/compiler/integers/i64/hex_and_bin.out index 5ebd82e938..4bd88a2fb9 100644 --- a/tests/expectations/compiler/integers/i64/hex_and_bin.out +++ b/tests/expectations/compiler/integers/i64/hex_and_bin.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "a5e5d9c09c3ad932e4e2c7e04964675bfc54a27e86729fa99520a13c79cbdc81", dce_ast = "56c0713c15d43bba27dbcc87637b33c3aff98fa3c7c07e3ba77c38d9166eac81", destructured_ast = "56c0713c15d43bba27dbcc87637b33c3aff98fa3c7c07e3ba77c38d9166eac81", errors = "", flattened_ast = "e67049b2d3a44fb83a96aaf3c96e133fbaebd0d811626d42c820a24679c5ae69", initial_ast = "a60390cab967e18cfdb89052fca822bd3a0fe13862413bc7aa12c7c7f968325e", initial_symbol_table = "d2e895a60db1d09efc2efbc085307b6c978f705bc7b83dcaaaec16237b67878e", inlined_ast = "56c0713c15d43bba27dbcc87637b33c3aff98fa3c7c07e3ba77c38d9166eac81", ssa_ast = "c0e2803b8c6ad33be5427dc1b78c3c6b92c770ce5836c0a4f78ae8d3e46b86eb", type_checked_symbol_table = "7933630b1e312d9c233d37513c560c18cadd072f2cead39e6b3d4de920808607", unrolled_ast = "a60390cab967e18cfdb89052fca822bd3a0fe13862413bc7aa12c7c7f968325e", unrolled_symbol_table = "7933630b1e312d9c233d37513c560c18cadd072f2cead39e6b3d4de920808607", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as i64.private; + is.eq r0 127i64 into r3; + is.eq r1 27i64 into r4; + and r3 r4 into r5; + is.eq r2 21i64 into r6; + and r5 r6 into r7; + output r7 as boolean.private; +""", dce_ast = "56c0713c15d43bba27dbcc87637b33c3aff98fa3c7c07e3ba77c38d9166eac81", destructured_ast = "56c0713c15d43bba27dbcc87637b33c3aff98fa3c7c07e3ba77c38d9166eac81", errors = "", flattened_ast = "e67049b2d3a44fb83a96aaf3c96e133fbaebd0d811626d42c820a24679c5ae69", initial_ast = "a60390cab967e18cfdb89052fca822bd3a0fe13862413bc7aa12c7c7f968325e", initial_symbol_table = "d2e895a60db1d09efc2efbc085307b6c978f705bc7b83dcaaaec16237b67878e", inlined_ast = "56c0713c15d43bba27dbcc87637b33c3aff98fa3c7c07e3ba77c38d9166eac81", ssa_ast = "c0e2803b8c6ad33be5427dc1b78c3c6b92c770ce5836c0a4f78ae8d3e46b86eb", type_checked_symbol_table = "7933630b1e312d9c233d37513c560c18cadd072f2cead39e6b3d4de920808607", unrolled_ast = "a60390cab967e18cfdb89052fca822bd3a0fe13862413bc7aa12c7c7f968325e", unrolled_symbol_table = "7933630b1e312d9c233d37513c560c18cadd072f2cead39e6b3d4de920808607", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/le.out b/tests/expectations/compiler/integers/i64/le.out index a3294fbaf2..daba239ec4 100644 --- a/tests/expectations/compiler/integers/i64/le.out +++ b/tests/expectations/compiler/integers/i64/le.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "b1f586e188d06fec69970d2cbf367157f2046040b6b848b8b0bc3dd6b02aa095", dce_ast = "16dc42d6749f6c5583c691cf9cbefdc1d7a3af214dee3685a60b9a635a5d8658", destructured_ast = "16dc42d6749f6c5583c691cf9cbefdc1d7a3af214dee3685a60b9a635a5d8658", errors = "", flattened_ast = "5f7b0296f74c890a2e690c21df6bb4bb3efd29b4071c01448f481c2d38447c67", initial_ast = "6275cca8353311539c0123fb54eabd662b9edd6b2b5d61328211583ed2619fd5", initial_symbol_table = "7a887157da38d534a1e2b2ad779ecf2e9072b92fc1fa20d58865570c7c430960", inlined_ast = "16dc42d6749f6c5583c691cf9cbefdc1d7a3af214dee3685a60b9a635a5d8658", ssa_ast = "19d68ec27d45b3dbaa2eed5a898cf0077cab6c70971a6d07634fa46477e0d177", type_checked_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", unrolled_ast = "6275cca8353311539c0123fb54eabd662b9edd6b2b5d61328211583ed2619fd5", unrolled_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as boolean.private; + lte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "16dc42d6749f6c5583c691cf9cbefdc1d7a3af214dee3685a60b9a635a5d8658", destructured_ast = "16dc42d6749f6c5583c691cf9cbefdc1d7a3af214dee3685a60b9a635a5d8658", errors = "", flattened_ast = "5f7b0296f74c890a2e690c21df6bb4bb3efd29b4071c01448f481c2d38447c67", initial_ast = "6275cca8353311539c0123fb54eabd662b9edd6b2b5d61328211583ed2619fd5", initial_symbol_table = "7a887157da38d534a1e2b2ad779ecf2e9072b92fc1fa20d58865570c7c430960", inlined_ast = "16dc42d6749f6c5583c691cf9cbefdc1d7a3af214dee3685a60b9a635a5d8658", ssa_ast = "19d68ec27d45b3dbaa2eed5a898cf0077cab6c70971a6d07634fa46477e0d177", type_checked_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", unrolled_ast = "6275cca8353311539c0123fb54eabd662b9edd6b2b5d61328211583ed2619fd5", unrolled_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/lt.out b/tests/expectations/compiler/integers/i64/lt.out index 20e6a3164f..634ad8f70e 100644 --- a/tests/expectations/compiler/integers/i64/lt.out +++ b/tests/expectations/compiler/integers/i64/lt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "146646862a181a2d9c802993b30c04190405d0ec9cf00847c755162af14ab765", dce_ast = "284c0ad2a0b2fecbbdd4354a4d909ad0d117d5ccbdbfbb7f7884258ab122d6c1", destructured_ast = "284c0ad2a0b2fecbbdd4354a4d909ad0d117d5ccbdbfbb7f7884258ab122d6c1", errors = "", flattened_ast = "1c1db737a708829721982482d6f1fc8d965147adc31e515232418158b41107cf", initial_ast = "1d5952c29a9cdc2f3f9142047c9692ed157c59238fed6917655a4e9cdd59e300", initial_symbol_table = "7a887157da38d534a1e2b2ad779ecf2e9072b92fc1fa20d58865570c7c430960", inlined_ast = "284c0ad2a0b2fecbbdd4354a4d909ad0d117d5ccbdbfbb7f7884258ab122d6c1", ssa_ast = "500e8bc170e33ef86638afbc66d6c02c8aace89cb0e74feee7173d8d05b93567", type_checked_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", unrolled_ast = "1d5952c29a9cdc2f3f9142047c9692ed157c59238fed6917655a4e9cdd59e300", unrolled_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as boolean.private; + lt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "284c0ad2a0b2fecbbdd4354a4d909ad0d117d5ccbdbfbb7f7884258ab122d6c1", destructured_ast = "284c0ad2a0b2fecbbdd4354a4d909ad0d117d5ccbdbfbb7f7884258ab122d6c1", errors = "", flattened_ast = "1c1db737a708829721982482d6f1fc8d965147adc31e515232418158b41107cf", initial_ast = "1d5952c29a9cdc2f3f9142047c9692ed157c59238fed6917655a4e9cdd59e300", initial_symbol_table = "7a887157da38d534a1e2b2ad779ecf2e9072b92fc1fa20d58865570c7c430960", inlined_ast = "284c0ad2a0b2fecbbdd4354a4d909ad0d117d5ccbdbfbb7f7884258ab122d6c1", ssa_ast = "500e8bc170e33ef86638afbc66d6c02c8aace89cb0e74feee7173d8d05b93567", type_checked_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", unrolled_ast = "1d5952c29a9cdc2f3f9142047c9692ed157c59238fed6917655a4e9cdd59e300", unrolled_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/max.out b/tests/expectations/compiler/integers/i64/max.out index a335e47cf1..8aa1dfe33f 100644 --- a/tests/expectations/compiler/integers/i64/max.out +++ b/tests/expectations/compiler/integers/i64/max.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "c8d4abba332861ba511e2f210502137e5aeeef23c159740de5649958515e3910", dce_ast = "71e9f820525a8d3db0d5e3e987d48949e1cbe723ff78072f9ed90fdcf0c7010f", destructured_ast = "71e9f820525a8d3db0d5e3e987d48949e1cbe723ff78072f9ed90fdcf0c7010f", errors = "", flattened_ast = "ed80cb411b105de5206e05dfc0c23453d2a6e9a934f7566acaca2319f2c5f139", initial_ast = "146c2116ad49214409cee586714cf620d7fad50fe1a33338dd55c6662afac0bd", initial_symbol_table = "27d7fdad0ad06a588d992c97c6ce058d0fe3718984c6f25508cfe60d93e824aa", inlined_ast = "71e9f820525a8d3db0d5e3e987d48949e1cbe723ff78072f9ed90fdcf0c7010f", ssa_ast = "77b1a480cc9d78c037f5787b19d9053f378e7071e06ba7dff3210826f6f9dbbf", type_checked_symbol_table = "6e3b553ad0903a0722197b07c270469aa71e3ac7f6490eb35fb0cbaf9b5a1d63", unrolled_ast = "146c2116ad49214409cee586714cf620d7fad50fe1a33338dd55c6662afac0bd", unrolled_symbol_table = "6e3b553ad0903a0722197b07c270469aa71e3ac7f6490eb35fb0cbaf9b5a1d63", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + sub 9223372036854775807i64 r0 into r1; + output r1 as i64.private; +""", dce_ast = "71e9f820525a8d3db0d5e3e987d48949e1cbe723ff78072f9ed90fdcf0c7010f", destructured_ast = "71e9f820525a8d3db0d5e3e987d48949e1cbe723ff78072f9ed90fdcf0c7010f", errors = "", flattened_ast = "ed80cb411b105de5206e05dfc0c23453d2a6e9a934f7566acaca2319f2c5f139", initial_ast = "146c2116ad49214409cee586714cf620d7fad50fe1a33338dd55c6662afac0bd", initial_symbol_table = "27d7fdad0ad06a588d992c97c6ce058d0fe3718984c6f25508cfe60d93e824aa", inlined_ast = "71e9f820525a8d3db0d5e3e987d48949e1cbe723ff78072f9ed90fdcf0c7010f", ssa_ast = "77b1a480cc9d78c037f5787b19d9053f378e7071e06ba7dff3210826f6f9dbbf", type_checked_symbol_table = "6e3b553ad0903a0722197b07c270469aa71e3ac7f6490eb35fb0cbaf9b5a1d63", unrolled_ast = "146c2116ad49214409cee586714cf620d7fad50fe1a33338dd55c6662afac0bd", unrolled_symbol_table = "6e3b553ad0903a0722197b07c270469aa71e3ac7f6490eb35fb0cbaf9b5a1d63", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/min.out b/tests/expectations/compiler/integers/i64/min.out index 2f3e3d3c76..df531b3a80 100644 --- a/tests/expectations/compiler/integers/i64/min.out +++ b/tests/expectations/compiler/integers/i64/min.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "ba879d9c018e4334cff11992ba1b8a0bcb0901d6efdb29a6daac15ce9bb32e2c", dce_ast = "5ec1e016e3c61433a09349b8652e9f11d7ba423d4682e3414d22ca8700072094", destructured_ast = "5ec1e016e3c61433a09349b8652e9f11d7ba423d4682e3414d22ca8700072094", errors = "", flattened_ast = "31b1828049b3e32978090825bee7086a83a1a4d0d9ed68abda0dfd319531ea1e", initial_ast = "d4a953425bee529e34fcd49046bfeb62a3a43819d5daf04f6e2157cd6f89b825", initial_symbol_table = "27d7fdad0ad06a588d992c97c6ce058d0fe3718984c6f25508cfe60d93e824aa", inlined_ast = "5ec1e016e3c61433a09349b8652e9f11d7ba423d4682e3414d22ca8700072094", ssa_ast = "7681c5103eb78223807bdb6c45943ceb0ccfecfd40aef3999482dcf3eb01fe7f", type_checked_symbol_table = "6e3b553ad0903a0722197b07c270469aa71e3ac7f6490eb35fb0cbaf9b5a1d63", unrolled_ast = "d4a953425bee529e34fcd49046bfeb62a3a43819d5daf04f6e2157cd6f89b825", unrolled_symbol_table = "6e3b553ad0903a0722197b07c270469aa71e3ac7f6490eb35fb0cbaf9b5a1d63", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + sub -9223372036854775807i64 r0 into r1; + output r1 as i64.private; +""", dce_ast = "5ec1e016e3c61433a09349b8652e9f11d7ba423d4682e3414d22ca8700072094", destructured_ast = "5ec1e016e3c61433a09349b8652e9f11d7ba423d4682e3414d22ca8700072094", errors = "", flattened_ast = "31b1828049b3e32978090825bee7086a83a1a4d0d9ed68abda0dfd319531ea1e", initial_ast = "d4a953425bee529e34fcd49046bfeb62a3a43819d5daf04f6e2157cd6f89b825", initial_symbol_table = "27d7fdad0ad06a588d992c97c6ce058d0fe3718984c6f25508cfe60d93e824aa", inlined_ast = "5ec1e016e3c61433a09349b8652e9f11d7ba423d4682e3414d22ca8700072094", ssa_ast = "7681c5103eb78223807bdb6c45943ceb0ccfecfd40aef3999482dcf3eb01fe7f", type_checked_symbol_table = "6e3b553ad0903a0722197b07c270469aa71e3ac7f6490eb35fb0cbaf9b5a1d63", unrolled_ast = "d4a953425bee529e34fcd49046bfeb62a3a43819d5daf04f6e2157cd6f89b825", unrolled_symbol_table = "6e3b553ad0903a0722197b07c270469aa71e3ac7f6490eb35fb0cbaf9b5a1d63", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/min_fail.out b/tests/expectations/compiler/integers/i64/min_fail.out index ee2ac6efb6..d7c7a32763 100644 --- a/tests/expectations/compiler/integers/i64/min_fail.out +++ b/tests/expectations/compiler/integers/i64/min_fail.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "8060d7771b9a815e84dd576354e32cd26c7bf342fb513fe3b589de4c094701b4", dce_ast = "7d573b779ed5118006b4d7f79cf3fef78f9f4a9feaa6859dca53e2f2da70e836", destructured_ast = "7d573b779ed5118006b4d7f79cf3fef78f9f4a9feaa6859dca53e2f2da70e836", errors = "", flattened_ast = "525e77adcc18de29e3d82d0a63fbb92b257cc5429d85e88911ac6aa5867bcc7a", initial_ast = "58193f3dbcf8fae89c79ec46e503bb179a4f33870563969f803212bcbdd15a10", initial_symbol_table = "cfad18617067b89536462ebb06b76d4c3a8504d8929a2800e8078e97a85a576f", inlined_ast = "7d573b779ed5118006b4d7f79cf3fef78f9f4a9feaa6859dca53e2f2da70e836", ssa_ast = "5f946d7675287a9ff35fbe8f685d6d48a0432a9bea0103fa853444cae572e5ec", type_checked_symbol_table = "7f53a2348234aed4d43f2e4cce0f42bada5abf0572e6d612c066c1fed006753c", unrolled_ast = "58193f3dbcf8fae89c79ec46e503bb179a4f33870563969f803212bcbdd15a10", unrolled_symbol_table = "7f53a2348234aed4d43f2e4cce0f42bada5abf0572e6d612c066c1fed006753c", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + sub -9223372036854775807i64 2i64 into r1; + output r1 as i64.private; +""", dce_ast = "7d573b779ed5118006b4d7f79cf3fef78f9f4a9feaa6859dca53e2f2da70e836", destructured_ast = "7d573b779ed5118006b4d7f79cf3fef78f9f4a9feaa6859dca53e2f2da70e836", errors = "", flattened_ast = "525e77adcc18de29e3d82d0a63fbb92b257cc5429d85e88911ac6aa5867bcc7a", initial_ast = "58193f3dbcf8fae89c79ec46e503bb179a4f33870563969f803212bcbdd15a10", initial_symbol_table = "cfad18617067b89536462ebb06b76d4c3a8504d8929a2800e8078e97a85a576f", inlined_ast = "7d573b779ed5118006b4d7f79cf3fef78f9f4a9feaa6859dca53e2f2da70e836", ssa_ast = "5f946d7675287a9ff35fbe8f685d6d48a0432a9bea0103fa853444cae572e5ec", type_checked_symbol_table = "7f53a2348234aed4d43f2e4cce0f42bada5abf0572e6d612c066c1fed006753c", unrolled_ast = "58193f3dbcf8fae89c79ec46e503bb179a4f33870563969f803212bcbdd15a10", unrolled_symbol_table = "7f53a2348234aed4d43f2e4cce0f42bada5abf0572e6d612c066c1fed006753c", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/mul.out b/tests/expectations/compiler/integers/i64/mul.out index 99d1c57cdc..4b92a904e5 100644 --- a/tests/expectations/compiler/integers/i64/mul.out +++ b/tests/expectations/compiler/integers/i64/mul.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f4641ddee6184f6fc437aa0f4422f2ea01a26648f9c7bf5559a2471505ed8096", dce_ast = "fb10d51d9082750f28d8fa059a84816b5ea2245357a855c16d3b32599da42086", destructured_ast = "fb10d51d9082750f28d8fa059a84816b5ea2245357a855c16d3b32599da42086", errors = "", flattened_ast = "c3f7c6b3931283857948799b4d11b9412953f344430577ee772b44478efdb129", initial_ast = "6a38d85f4fad72167b0aca7874c2e1f84dd57a4b313434496a9774775bb83b97", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "fb10d51d9082750f28d8fa059a84816b5ea2245357a855c16d3b32599da42086", ssa_ast = "3e1950fcee0e6c4934579a80e523b29a67e0e726c2ba69ac69e8dd1dab345ffd", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "6a38d85f4fad72167b0aca7874c2e1f84dd57a4b313434496a9774775bb83b97", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as i64.private; + mul r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "fb10d51d9082750f28d8fa059a84816b5ea2245357a855c16d3b32599da42086", destructured_ast = "fb10d51d9082750f28d8fa059a84816b5ea2245357a855c16d3b32599da42086", errors = "", flattened_ast = "c3f7c6b3931283857948799b4d11b9412953f344430577ee772b44478efdb129", initial_ast = "6a38d85f4fad72167b0aca7874c2e1f84dd57a4b313434496a9774775bb83b97", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "fb10d51d9082750f28d8fa059a84816b5ea2245357a855c16d3b32599da42086", ssa_ast = "3e1950fcee0e6c4934579a80e523b29a67e0e726c2ba69ac69e8dd1dab345ffd", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "6a38d85f4fad72167b0aca7874c2e1f84dd57a4b313434496a9774775bb83b97", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/ne.out b/tests/expectations/compiler/integers/i64/ne.out index 2cacd745dc..b2fc41a968 100644 --- a/tests/expectations/compiler/integers/i64/ne.out +++ b/tests/expectations/compiler/integers/i64/ne.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "56e6953042e8cf528010b3706c59f9240a38c0e4537f2bcedb790d17e0595327", dce_ast = "83d498780a4c6e3140c1e9054df3451d38c682f96f67255b3913d569e7f5ff76", destructured_ast = "83d498780a4c6e3140c1e9054df3451d38c682f96f67255b3913d569e7f5ff76", errors = "", flattened_ast = "4e61c5999f43222d9ec8103229bedfeb8d6cd5a959623d81f4c269d2065748f4", initial_ast = "2a5c2eff9977994baafe5e9512b0dc5dc2f246f1fa5510b31ba07a5db250881f", initial_symbol_table = "7a887157da38d534a1e2b2ad779ecf2e9072b92fc1fa20d58865570c7c430960", inlined_ast = "83d498780a4c6e3140c1e9054df3451d38c682f96f67255b3913d569e7f5ff76", ssa_ast = "5f16cf626406f6ff9abaa2245ba2b770370679234ed2786182e995112c4c23c4", type_checked_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", unrolled_ast = "2a5c2eff9977994baafe5e9512b0dc5dc2f246f1fa5510b31ba07a5db250881f", unrolled_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as boolean.private; + is.neq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "83d498780a4c6e3140c1e9054df3451d38c682f96f67255b3913d569e7f5ff76", destructured_ast = "83d498780a4c6e3140c1e9054df3451d38c682f96f67255b3913d569e7f5ff76", errors = "", flattened_ast = "4e61c5999f43222d9ec8103229bedfeb8d6cd5a959623d81f4c269d2065748f4", initial_ast = "2a5c2eff9977994baafe5e9512b0dc5dc2f246f1fa5510b31ba07a5db250881f", initial_symbol_table = "7a887157da38d534a1e2b2ad779ecf2e9072b92fc1fa20d58865570c7c430960", inlined_ast = "83d498780a4c6e3140c1e9054df3451d38c682f96f67255b3913d569e7f5ff76", ssa_ast = "5f16cf626406f6ff9abaa2245ba2b770370679234ed2786182e995112c4c23c4", type_checked_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", unrolled_ast = "2a5c2eff9977994baafe5e9512b0dc5dc2f246f1fa5510b31ba07a5db250881f", unrolled_symbol_table = "c82bed5c8db9ad167c817850b8b9f8306f4d476711350a223c1c58012b5e7cc8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/negate.out b/tests/expectations/compiler/integers/i64/negate.out index ea325dd6df..c82ac5e3d0 100644 --- a/tests/expectations/compiler/integers/i64/negate.out +++ b/tests/expectations/compiler/integers/i64/negate.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4a3cad0d173991e84e84d40f5868e63fccab04b6561f1de4afef8976a90dbf17", dce_ast = "cd6760362f1bbe1f9b05421e7ede600b762845a068848b92155e4a84aaf387f4", destructured_ast = "cd6760362f1bbe1f9b05421e7ede600b762845a068848b92155e4a84aaf387f4", errors = "", flattened_ast = "e304f3805774bfc301269a8d7b014c8401624b7e7ddd9bc52249ab0393636584", initial_ast = "fb479598bd2a9a2e872e4c15bfcc7ef32aac85d585e652f3b215ac108b7d87fc", initial_symbol_table = "e50384060e9fc0d4efa2b987729a9efa0b7311ebef5a571230d627bbb7259b7f", inlined_ast = "cd6760362f1bbe1f9b05421e7ede600b762845a068848b92155e4a84aaf387f4", ssa_ast = "30cbd0b7adc74624ed3575774698fefa154a0a6063f2711e7258c49d96e4139e", type_checked_symbol_table = "7d88cbc662b0ce6282b1588805b62cbab92858c5986042a1a47603acadebb634", unrolled_ast = "fb479598bd2a9a2e872e4c15bfcc7ef32aac85d585e652f3b215ac108b7d87fc", unrolled_symbol_table = "7d88cbc662b0ce6282b1588805b62cbab92858c5986042a1a47603acadebb634", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + neg r0 into r2; + is.eq r2 r1 into r3; + output r3 as boolean.private; +""", dce_ast = "cd6760362f1bbe1f9b05421e7ede600b762845a068848b92155e4a84aaf387f4", destructured_ast = "cd6760362f1bbe1f9b05421e7ede600b762845a068848b92155e4a84aaf387f4", errors = "", flattened_ast = "e304f3805774bfc301269a8d7b014c8401624b7e7ddd9bc52249ab0393636584", initial_ast = "fb479598bd2a9a2e872e4c15bfcc7ef32aac85d585e652f3b215ac108b7d87fc", initial_symbol_table = "e50384060e9fc0d4efa2b987729a9efa0b7311ebef5a571230d627bbb7259b7f", inlined_ast = "cd6760362f1bbe1f9b05421e7ede600b762845a068848b92155e4a84aaf387f4", ssa_ast = "30cbd0b7adc74624ed3575774698fefa154a0a6063f2711e7258c49d96e4139e", type_checked_symbol_table = "7d88cbc662b0ce6282b1588805b62cbab92858c5986042a1a47603acadebb634", unrolled_ast = "fb479598bd2a9a2e872e4c15bfcc7ef32aac85d585e652f3b215ac108b7d87fc", unrolled_symbol_table = "7d88cbc662b0ce6282b1588805b62cbab92858c5986042a1a47603acadebb634", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/negate_min_fail.out b/tests/expectations/compiler/integers/i64/negate_min_fail.out index 16de92f79b..8e9aa149df 100644 --- a/tests/expectations/compiler/integers/i64/negate_min_fail.out +++ b/tests/expectations/compiler/integers/i64/negate_min_fail.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "eb8fb8c25730005f5c6c14d190313c0bee2ae389d6295686dd1867663fc93f67", dce_ast = "ab223647a86e6a00f96cdfe4d47a75114d7a321f14c4bc525fb1bc5fc7b983e0", destructured_ast = "ab223647a86e6a00f96cdfe4d47a75114d7a321f14c4bc525fb1bc5fc7b983e0", errors = "", flattened_ast = "26394442d3ffb80b4b6e170055507d93e917de93bfb59a40179eba27dbd24ad0", initial_ast = "8d7f02abb091fbaa8a907c2688b90e44a627dfa9e373f43bf2a35cd71a7ba75e", initial_symbol_table = "cfad18617067b89536462ebb06b76d4c3a8504d8929a2800e8078e97a85a576f", inlined_ast = "ab223647a86e6a00f96cdfe4d47a75114d7a321f14c4bc525fb1bc5fc7b983e0", ssa_ast = "c8545b4e80ca47f5976d7a4acaa03be01fb97f4d9e84631a7db75375dd6fa879", type_checked_symbol_table = "7f53a2348234aed4d43f2e4cce0f42bada5abf0572e6d612c066c1fed006753c", unrolled_ast = "8d7f02abb091fbaa8a907c2688b90e44a627dfa9e373f43bf2a35cd71a7ba75e", unrolled_symbol_table = "7f53a2348234aed4d43f2e4cce0f42bada5abf0572e6d612c066c1fed006753c", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + neg -9223372036854775808i64 into r1; + output r1 as i64.private; +""", dce_ast = "ab223647a86e6a00f96cdfe4d47a75114d7a321f14c4bc525fb1bc5fc7b983e0", destructured_ast = "ab223647a86e6a00f96cdfe4d47a75114d7a321f14c4bc525fb1bc5fc7b983e0", errors = "", flattened_ast = "26394442d3ffb80b4b6e170055507d93e917de93bfb59a40179eba27dbd24ad0", initial_ast = "8d7f02abb091fbaa8a907c2688b90e44a627dfa9e373f43bf2a35cd71a7ba75e", initial_symbol_table = "cfad18617067b89536462ebb06b76d4c3a8504d8929a2800e8078e97a85a576f", inlined_ast = "ab223647a86e6a00f96cdfe4d47a75114d7a321f14c4bc525fb1bc5fc7b983e0", ssa_ast = "c8545b4e80ca47f5976d7a4acaa03be01fb97f4d9e84631a7db75375dd6fa879", type_checked_symbol_table = "7f53a2348234aed4d43f2e4cce0f42bada5abf0572e6d612c066c1fed006753c", unrolled_ast = "8d7f02abb091fbaa8a907c2688b90e44a627dfa9e373f43bf2a35cd71a7ba75e", unrolled_symbol_table = "7f53a2348234aed4d43f2e4cce0f42bada5abf0572e6d612c066c1fed006753c", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/negate_zero.out b/tests/expectations/compiler/integers/i64/negate_zero.out index e67ae73f22..94d31ab78b 100644 --- a/tests/expectations/compiler/integers/i64/negate_zero.out +++ b/tests/expectations/compiler/integers/i64/negate_zero.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "dbe5b65eae7786eb721e8e7bf810718e8482635802c2e5d5da2996d8c0c3f7f4", dce_ast = "d5e0ac31f88f9755a6fb75627f9982be8be7e3836717c20b7b14df8d3e180433", destructured_ast = "d5e0ac31f88f9755a6fb75627f9982be8be7e3836717c20b7b14df8d3e180433", errors = "", flattened_ast = "cd6bf77f16a955338dc3f584ed4b7f00412f95c230a79b40d7aa18916b6506d7", initial_ast = "10d3fef01325e89c07df4f67e85b77fc6e18a939d4d2681521a6756eb023b02f", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "d5e0ac31f88f9755a6fb75627f9982be8be7e3836717c20b7b14df8d3e180433", ssa_ast = "cbe6537ddbe8235a12f84d861861ee6d0efa5927bf130d42bf512fff86720eb2", type_checked_symbol_table = "960e09d954db60461fa0a1d55d22d20fa3f9ba0c57f6a7fb9e8eb5717a99dbbf", unrolled_ast = "10d3fef01325e89c07df4f67e85b77fc6e18a939d4d2681521a6756eb023b02f", unrolled_symbol_table = "960e09d954db60461fa0a1d55d22d20fa3f9ba0c57f6a7fb9e8eb5717a99dbbf", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + neg 0i64 into r1; + is.eq r1 0i64 into r2; + is.eq r2 r0 into r3; + output r3 as boolean.private; +""", dce_ast = "d5e0ac31f88f9755a6fb75627f9982be8be7e3836717c20b7b14df8d3e180433", destructured_ast = "d5e0ac31f88f9755a6fb75627f9982be8be7e3836717c20b7b14df8d3e180433", errors = "", flattened_ast = "cd6bf77f16a955338dc3f584ed4b7f00412f95c230a79b40d7aa18916b6506d7", initial_ast = "10d3fef01325e89c07df4f67e85b77fc6e18a939d4d2681521a6756eb023b02f", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "d5e0ac31f88f9755a6fb75627f9982be8be7e3836717c20b7b14df8d3e180433", ssa_ast = "cbe6537ddbe8235a12f84d861861ee6d0efa5927bf130d42bf512fff86720eb2", type_checked_symbol_table = "960e09d954db60461fa0a1d55d22d20fa3f9ba0c57f6a7fb9e8eb5717a99dbbf", unrolled_ast = "10d3fef01325e89c07df4f67e85b77fc6e18a939d4d2681521a6756eb023b02f", unrolled_symbol_table = "960e09d954db60461fa0a1d55d22d20fa3f9ba0c57f6a7fb9e8eb5717a99dbbf", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/operator_methods.out b/tests/expectations/compiler/integers/i64/operator_methods.out index 6b4d75e1ba..6b9e071609 100644 --- a/tests/expectations/compiler/integers/i64/operator_methods.out +++ b/tests/expectations/compiler/integers/i64/operator_methods.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "94719443d1e9713563afa7861751ae6fac8380851db816055ed46c207a613efc", dce_ast = "954d0a8dab70b4ffccc417505525f405c5598ac27466ba8bd4bd95f4943179db", destructured_ast = "e96500d2a409e1084d3fd952a92556c8a146721ca54613ba6dec4e884856e83a", errors = "", flattened_ast = "12fca38bf8f084ab5ae2f5139e231d0971fab0f1128377fefec5807bcd10b05f", initial_ast = "23a205e10f3d4d4c5e8d29552fda66562fa295615132d03cb689f7c5f9562dd2", initial_symbol_table = "e50384060e9fc0d4efa2b987729a9efa0b7311ebef5a571230d627bbb7259b7f", inlined_ast = "e96500d2a409e1084d3fd952a92556c8a146721ca54613ba6dec4e884856e83a", ssa_ast = "2d49a1dd99f320172906064647c2fc633c1e053f53eced88fbcf1c9c6d8a6a89", type_checked_symbol_table = "474061333b89fa751ea03ea51855279fc4c83bd8f8530b9e45016a8245948d5f", unrolled_ast = "23a205e10f3d4d4c5e8d29552fda66562fa295615132d03cb689f7c5f9562dd2", unrolled_symbol_table = "474061333b89fa751ea03ea51855279fc4c83bd8f8530b9e45016a8245948d5f", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + is.eq r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "954d0a8dab70b4ffccc417505525f405c5598ac27466ba8bd4bd95f4943179db", destructured_ast = "e96500d2a409e1084d3fd952a92556c8a146721ca54613ba6dec4e884856e83a", errors = "", flattened_ast = "12fca38bf8f084ab5ae2f5139e231d0971fab0f1128377fefec5807bcd10b05f", initial_ast = "23a205e10f3d4d4c5e8d29552fda66562fa295615132d03cb689f7c5f9562dd2", initial_symbol_table = "e50384060e9fc0d4efa2b987729a9efa0b7311ebef5a571230d627bbb7259b7f", inlined_ast = "e96500d2a409e1084d3fd952a92556c8a146721ca54613ba6dec4e884856e83a", ssa_ast = "2d49a1dd99f320172906064647c2fc633c1e053f53eced88fbcf1c9c6d8a6a89", type_checked_symbol_table = "474061333b89fa751ea03ea51855279fc4c83bd8f8530b9e45016a8245948d5f", unrolled_ast = "23a205e10f3d4d4c5e8d29552fda66562fa295615132d03cb689f7c5f9562dd2", unrolled_symbol_table = "474061333b89fa751ea03ea51855279fc4c83bd8f8530b9e45016a8245948d5f", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/or.out b/tests/expectations/compiler/integers/i64/or.out index fe3862d006..3df0856284 100644 --- a/tests/expectations/compiler/integers/i64/or.out +++ b/tests/expectations/compiler/integers/i64/or.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4bdb71dbcb23bcb6519ef3ddab06e79a70b155f8be87cc5d2b9d95221affd686", dce_ast = "6b618f7ef607e542e41d6aabd581f860e70f050d62731aa779e4ccd8c56899c3", destructured_ast = "6b618f7ef607e542e41d6aabd581f860e70f050d62731aa779e4ccd8c56899c3", errors = "", flattened_ast = "397e8e4299d1e459ccea9ac0f70d2899141099dffbd0cbca819c4313e3c42a8e", initial_ast = "41f68008d28010ac344122f1402e993cdc98b9e374289a2a843c9406e31f7e7f", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "6b618f7ef607e542e41d6aabd581f860e70f050d62731aa779e4ccd8c56899c3", ssa_ast = "4c83888cfdaf8503cd0ed400951039acbdd77e3fcf973be578b7f05cbfd8945c", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "41f68008d28010ac344122f1402e993cdc98b9e374289a2a843c9406e31f7e7f", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as i64.private; + or r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "6b618f7ef607e542e41d6aabd581f860e70f050d62731aa779e4ccd8c56899c3", destructured_ast = "6b618f7ef607e542e41d6aabd581f860e70f050d62731aa779e4ccd8c56899c3", errors = "", flattened_ast = "397e8e4299d1e459ccea9ac0f70d2899141099dffbd0cbca819c4313e3c42a8e", initial_ast = "41f68008d28010ac344122f1402e993cdc98b9e374289a2a843c9406e31f7e7f", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "6b618f7ef607e542e41d6aabd581f860e70f050d62731aa779e4ccd8c56899c3", ssa_ast = "4c83888cfdaf8503cd0ed400951039acbdd77e3fcf973be578b7f05cbfd8945c", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "41f68008d28010ac344122f1402e993cdc98b9e374289a2a843c9406e31f7e7f", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/pow.out b/tests/expectations/compiler/integers/i64/pow.out index a7e5e2d50e..e4519a45e0 100644 --- a/tests/expectations/compiler/integers/i64/pow.out +++ b/tests/expectations/compiler/integers/i64/pow.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "ff1ba1259f2f4a90553920fc5a9391125c9d5fbc583e2a648b80dc409b62d5fc", dce_ast = "0aa49f894ff2c27b505c7864d04fd38d25da116137074724ac33963b5de6e643", destructured_ast = "0aa49f894ff2c27b505c7864d04fd38d25da116137074724ac33963b5de6e643", errors = "", flattened_ast = "ad672fc7908c24e4bb351539371b65e060e86112256a7368ed425fd40555b72c", initial_ast = "784c870a1ee02f43bcc2f2c7e1d2e4f1ed4a040d706e0c31c861c02fec08a711", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "0aa49f894ff2c27b505c7864d04fd38d25da116137074724ac33963b5de6e643", ssa_ast = "880022437100caf15d2134319d59eca6c340beffbd2092db811d37cffd999d29", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "784c870a1ee02f43bcc2f2c7e1d2e4f1ed4a040d706e0c31c861c02fec08a711", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as i64.private; + pow r0 2u8 into r3; + pow r0 2u16 into r4; + is.eq r3 r4 into r5; + pow r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "0aa49f894ff2c27b505c7864d04fd38d25da116137074724ac33963b5de6e643", destructured_ast = "0aa49f894ff2c27b505c7864d04fd38d25da116137074724ac33963b5de6e643", errors = "", flattened_ast = "ad672fc7908c24e4bb351539371b65e060e86112256a7368ed425fd40555b72c", initial_ast = "784c870a1ee02f43bcc2f2c7e1d2e4f1ed4a040d706e0c31c861c02fec08a711", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "0aa49f894ff2c27b505c7864d04fd38d25da116137074724ac33963b5de6e643", ssa_ast = "880022437100caf15d2134319d59eca6c340beffbd2092db811d37cffd999d29", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "784c870a1ee02f43bcc2f2c7e1d2e4f1ed4a040d706e0c31c861c02fec08a711", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/rem.out b/tests/expectations/compiler/integers/i64/rem.out index d22ea664f8..6d9859f6a0 100644 --- a/tests/expectations/compiler/integers/i64/rem.out +++ b/tests/expectations/compiler/integers/i64/rem.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "89effef213f290d8097c5e2289a9010d4379e63954959a7eeca9a25e4e5f50b8", dce_ast = "e3cb83cc9c4160e84158f1763db871da21e9b3ddebf7783d605520bb34dd05e3", destructured_ast = "e3cb83cc9c4160e84158f1763db871da21e9b3ddebf7783d605520bb34dd05e3", errors = "", flattened_ast = "82a14fb1fef2eada124f7ef5aa480c23cdcfc94518eb00605ec0a9d10d8a7ce4", initial_ast = "2800cd773c3ee8ceef69d7bf4da364c0dd1028ceee40cfbdb407a4f8afb6a065", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "e3cb83cc9c4160e84158f1763db871da21e9b3ddebf7783d605520bb34dd05e3", ssa_ast = "785bb8b7a5d9f8184b9a9e72f3b6715018b75ae80f5a09a1d038b07173d1f2eb", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "2800cd773c3ee8ceef69d7bf4da364c0dd1028ceee40cfbdb407a4f8afb6a065", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as i64.private; + rem r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "e3cb83cc9c4160e84158f1763db871da21e9b3ddebf7783d605520bb34dd05e3", destructured_ast = "e3cb83cc9c4160e84158f1763db871da21e9b3ddebf7783d605520bb34dd05e3", errors = "", flattened_ast = "82a14fb1fef2eada124f7ef5aa480c23cdcfc94518eb00605ec0a9d10d8a7ce4", initial_ast = "2800cd773c3ee8ceef69d7bf4da364c0dd1028ceee40cfbdb407a4f8afb6a065", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "e3cb83cc9c4160e84158f1763db871da21e9b3ddebf7783d605520bb34dd05e3", ssa_ast = "785bb8b7a5d9f8184b9a9e72f3b6715018b75ae80f5a09a1d038b07173d1f2eb", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "2800cd773c3ee8ceef69d7bf4da364c0dd1028ceee40cfbdb407a4f8afb6a065", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/shl.out b/tests/expectations/compiler/integers/i64/shl.out index 113bc7d22e..58f41481cb 100644 --- a/tests/expectations/compiler/integers/i64/shl.out +++ b/tests/expectations/compiler/integers/i64/shl.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "44b4f1e4aff3e8f3343854e8efc5146404333da549cc6e04bca927e7e1484487", dce_ast = "0f11342476abe7ed2ba9ca4a1e846238f04be8d5086075258f8603c86ac99e59", destructured_ast = "0f11342476abe7ed2ba9ca4a1e846238f04be8d5086075258f8603c86ac99e59", errors = "", flattened_ast = "6fb7b3ac9af66dfcc73ed177a8b9a2065e172103bdafae046cb0d588b26e9eb6", initial_ast = "ed87284a467f4d25b471d5882ef24ace6d18ced428c71a1a9e8cf56fd821d280", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "0f11342476abe7ed2ba9ca4a1e846238f04be8d5086075258f8603c86ac99e59", ssa_ast = "e4ebd9f25aed80b2d217c1f0708208e9cd8a0578e01c0fce04c66b1dbbc329e3", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "ed87284a467f4d25b471d5882ef24ace6d18ced428c71a1a9e8cf56fd821d280", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as i64.private; + shl r0 2u8 into r3; + shl r0 2u16 into r4; + is.eq r3 r4 into r5; + shl r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "0f11342476abe7ed2ba9ca4a1e846238f04be8d5086075258f8603c86ac99e59", destructured_ast = "0f11342476abe7ed2ba9ca4a1e846238f04be8d5086075258f8603c86ac99e59", errors = "", flattened_ast = "6fb7b3ac9af66dfcc73ed177a8b9a2065e172103bdafae046cb0d588b26e9eb6", initial_ast = "ed87284a467f4d25b471d5882ef24ace6d18ced428c71a1a9e8cf56fd821d280", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "0f11342476abe7ed2ba9ca4a1e846238f04be8d5086075258f8603c86ac99e59", ssa_ast = "e4ebd9f25aed80b2d217c1f0708208e9cd8a0578e01c0fce04c66b1dbbc329e3", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "ed87284a467f4d25b471d5882ef24ace6d18ced428c71a1a9e8cf56fd821d280", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/shr.out b/tests/expectations/compiler/integers/i64/shr.out index 594094ec5d..85ee0a67d9 100644 --- a/tests/expectations/compiler/integers/i64/shr.out +++ b/tests/expectations/compiler/integers/i64/shr.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "2768046fc5a9e4812b3b19a67908baca08c0e3d5141323dabb57cff84e659d62", dce_ast = "1d76cc6b050a325dde5a35a441889c1a172ddd7e9bb1c5c3be5ccd8db55a3092", destructured_ast = "1d76cc6b050a325dde5a35a441889c1a172ddd7e9bb1c5c3be5ccd8db55a3092", errors = "", flattened_ast = "731f19d2d45194412a05595dd3cd9febe235a8ee4b16def919e92910b82c787b", initial_ast = "05e9a51407d6452e93625839033fb6c0e7cfb9bd3bef29483d11e0a0d0bce77c", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "1d76cc6b050a325dde5a35a441889c1a172ddd7e9bb1c5c3be5ccd8db55a3092", ssa_ast = "7f180f5ff66df1a2c45db1e48496c2ead1ecd6dc2a2f1194eaa7e812e1c171d9", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "05e9a51407d6452e93625839033fb6c0e7cfb9bd3bef29483d11e0a0d0bce77c", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as i64.private; + shr r0 2u8 into r3; + shr r0 2u16 into r4; + is.eq r3 r4 into r5; + shr r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "1d76cc6b050a325dde5a35a441889c1a172ddd7e9bb1c5c3be5ccd8db55a3092", destructured_ast = "1d76cc6b050a325dde5a35a441889c1a172ddd7e9bb1c5c3be5ccd8db55a3092", errors = "", flattened_ast = "731f19d2d45194412a05595dd3cd9febe235a8ee4b16def919e92910b82c787b", initial_ast = "05e9a51407d6452e93625839033fb6c0e7cfb9bd3bef29483d11e0a0d0bce77c", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "1d76cc6b050a325dde5a35a441889c1a172ddd7e9bb1c5c3be5ccd8db55a3092", ssa_ast = "7f180f5ff66df1a2c45db1e48496c2ead1ecd6dc2a2f1194eaa7e812e1c171d9", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "05e9a51407d6452e93625839033fb6c0e7cfb9bd3bef29483d11e0a0d0bce77c", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/sub.out b/tests/expectations/compiler/integers/i64/sub.out index a18f2f5038..8bc31f8483 100644 --- a/tests/expectations/compiler/integers/i64/sub.out +++ b/tests/expectations/compiler/integers/i64/sub.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "3394c4bead78f2ab177206a71d03d27cc9e584d5eb7aa587e7a9101911c1e76d", dce_ast = "71ac1903ac008afbc77a08349f222f17e24d7ca7395f1ea42be71ac7f4b3ffa4", destructured_ast = "71ac1903ac008afbc77a08349f222f17e24d7ca7395f1ea42be71ac7f4b3ffa4", errors = "", flattened_ast = "6d70115e9ce84d40da5e7c61833a1f465b38d2f2caf111a37bcf5bc7e047cd06", initial_ast = "62d0d89a5f71f4f9b02fcbd99c875f3dde170938b7836db086a8b8993a1e1d33", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "71ac1903ac008afbc77a08349f222f17e24d7ca7395f1ea42be71ac7f4b3ffa4", ssa_ast = "5a4d113f22deda4de39ae41cbb166a827713a97205a4f51edff749351ccf6c38", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "62d0d89a5f71f4f9b02fcbd99c875f3dde170938b7836db086a8b8993a1e1d33", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + input r2 as i64.private; + sub r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "71ac1903ac008afbc77a08349f222f17e24d7ca7395f1ea42be71ac7f4b3ffa4", destructured_ast = "71ac1903ac008afbc77a08349f222f17e24d7ca7395f1ea42be71ac7f4b3ffa4", errors = "", flattened_ast = "6d70115e9ce84d40da5e7c61833a1f465b38d2f2caf111a37bcf5bc7e047cd06", initial_ast = "62d0d89a5f71f4f9b02fcbd99c875f3dde170938b7836db086a8b8993a1e1d33", initial_symbol_table = "2427e1179484b368c737f15f9c9170703b40cc287bb09b7571a1adf03da87e83", inlined_ast = "71ac1903ac008afbc77a08349f222f17e24d7ca7395f1ea42be71ac7f4b3ffa4", ssa_ast = "5a4d113f22deda4de39ae41cbb166a827713a97205a4f51edff749351ccf6c38", type_checked_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", unrolled_ast = "62d0d89a5f71f4f9b02fcbd99c875f3dde170938b7836db086a8b8993a1e1d33", unrolled_symbol_table = "23cbc35d681c3fb4e50cceacf6be7291434c1681bf452f5efc45ea42a4f0f658", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/ternary.out b/tests/expectations/compiler/integers/i64/ternary.out index b207b0d255..4ec864f3ac 100644 --- a/tests/expectations/compiler/integers/i64/ternary.out +++ b/tests/expectations/compiler/integers/i64/ternary.out @@ -1,3 +1,16 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4a10ca6f583fa9516bfbdad6094fdaadefd4d6069c0f87f13cc0e3fc1d36029e", dce_ast = "a9861919f19f2648e017fe274635ef93c45a3ea4532e8cae7ccc3b954191e150", destructured_ast = "a9861919f19f2648e017fe274635ef93c45a3ea4532e8cae7ccc3b954191e150", errors = "", flattened_ast = "44135e6f03431601d258a755145673aee4f7b368e4d93b9eb84a253f5957eb39", initial_ast = "ef1d9179e22fcd06dc21877143a7c6720b1a79c3c1cf9468b6f3d71f83436923", initial_symbol_table = "584515fa03ae6fc9acb4dea21bd8ce5ea93b9b9cee728a750da4006094ec3fca", inlined_ast = "a9861919f19f2648e017fe274635ef93c45a3ea4532e8cae7ccc3b954191e150", ssa_ast = "fda31e3159f64c736e377ad7ff9d1b2087da28ed2581a828c2947535ae1c5b1c", type_checked_symbol_table = "cf9f14ec56c89a6513eceb9b2cb2f48ef860f7ea39bc4116b65644cd098ec442", unrolled_ast = "ef1d9179e22fcd06dc21877143a7c6720b1a79c3c1cf9468b6f3d71f83436923", unrolled_symbol_table = "cf9f14ec56c89a6513eceb9b2cb2f48ef860f7ea39bc4116b65644cd098ec442", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + input r1 as i64.private; + input r2 as i64.private; + input r3 as i64.private; + ternary r0 r1 r2 into r4; + is.eq r4 r3 into r5; + output r5 as boolean.private; +""", dce_ast = "a9861919f19f2648e017fe274635ef93c45a3ea4532e8cae7ccc3b954191e150", destructured_ast = "a9861919f19f2648e017fe274635ef93c45a3ea4532e8cae7ccc3b954191e150", errors = "", flattened_ast = "44135e6f03431601d258a755145673aee4f7b368e4d93b9eb84a253f5957eb39", initial_ast = "ef1d9179e22fcd06dc21877143a7c6720b1a79c3c1cf9468b6f3d71f83436923", initial_symbol_table = "584515fa03ae6fc9acb4dea21bd8ce5ea93b9b9cee728a750da4006094ec3fca", inlined_ast = "a9861919f19f2648e017fe274635ef93c45a3ea4532e8cae7ccc3b954191e150", ssa_ast = "fda31e3159f64c736e377ad7ff9d1b2087da28ed2581a828c2947535ae1c5b1c", type_checked_symbol_table = "cf9f14ec56c89a6513eceb9b2cb2f48ef860f7ea39bc4116b65644cd098ec442", unrolled_ast = "ef1d9179e22fcd06dc21877143a7c6720b1a79c3c1cf9468b6f3d71f83436923", unrolled_symbol_table = "cf9f14ec56c89a6513eceb9b2cb2f48ef860f7ea39bc4116b65644cd098ec442", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i64/xor.out b/tests/expectations/compiler/integers/i64/xor.out index 5cfebd6645..d492a07e82 100644 --- a/tests/expectations/compiler/integers/i64/xor.out +++ b/tests/expectations/compiler/integers/i64/xor.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "202aa93c8b415346f4cc8b49533c89cf2004fb273e78581f033c75ea57dad512", dce_ast = "9d0049bea5bc2a37364e42c18e7d5689494c7cea36c7a9682ea83f713c40d586", destructured_ast = "9d0049bea5bc2a37364e42c18e7d5689494c7cea36c7a9682ea83f713c40d586", errors = "", flattened_ast = "8ac8657ca047fe26e28c1a9a9a2250bd810a3a93a1429543cb08ba0899eccc0f", initial_ast = "926bf9164bd49637a4fb44cf4f8c0fd6296abd77d3a76fbdb747326c80156b39", initial_symbol_table = "10e758b3ebd50ada2efbeff5bee317b26c77e5654cbd8486181b4531e96d157e", inlined_ast = "9d0049bea5bc2a37364e42c18e7d5689494c7cea36c7a9682ea83f713c40d586", ssa_ast = "8063c5f66ec1aefb70ded54c596b9e0212505b37cd95dca69bd3f95e01bafe03", type_checked_symbol_table = "044a7d2de19246daa104f5b0cf2478d5e6b16d90ed1763e38822597401b53f68", unrolled_ast = "926bf9164bd49637a4fb44cf4f8c0fd6296abd77d3a76fbdb747326c80156b39", unrolled_symbol_table = "044a7d2de19246daa104f5b0cf2478d5e6b16d90ed1763e38822597401b53f68", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i64.private; + input r1 as i64.private; + xor r0 r1 into r2; + output r2 as i64.private; +""", dce_ast = "9d0049bea5bc2a37364e42c18e7d5689494c7cea36c7a9682ea83f713c40d586", destructured_ast = "9d0049bea5bc2a37364e42c18e7d5689494c7cea36c7a9682ea83f713c40d586", errors = "", flattened_ast = "8ac8657ca047fe26e28c1a9a9a2250bd810a3a93a1429543cb08ba0899eccc0f", initial_ast = "926bf9164bd49637a4fb44cf4f8c0fd6296abd77d3a76fbdb747326c80156b39", initial_symbol_table = "10e758b3ebd50ada2efbeff5bee317b26c77e5654cbd8486181b4531e96d157e", inlined_ast = "9d0049bea5bc2a37364e42c18e7d5689494c7cea36c7a9682ea83f713c40d586", ssa_ast = "8063c5f66ec1aefb70ded54c596b9e0212505b37cd95dca69bd3f95e01bafe03", type_checked_symbol_table = "044a7d2de19246daa104f5b0cf2478d5e6b16d90ed1763e38822597401b53f68", unrolled_ast = "926bf9164bd49637a4fb44cf4f8c0fd6296abd77d3a76fbdb747326c80156b39", unrolled_symbol_table = "044a7d2de19246daa104f5b0cf2478d5e6b16d90ed1763e38822597401b53f68", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/add.out b/tests/expectations/compiler/integers/i8/add.out index 2e3669dea4..10f2f1730b 100644 --- a/tests/expectations/compiler/integers/i8/add.out +++ b/tests/expectations/compiler/integers/i8/add.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "b55a8d40426fb145352765c99ed1875c872f2a6a0aeaa46f5734c543b5cc17a0", dce_ast = "b36caa9dadd9d56989cd6b78713b0c93e697d851c335cf1175295f7287997bd8", destructured_ast = "b36caa9dadd9d56989cd6b78713b0c93e697d851c335cf1175295f7287997bd8", errors = "", flattened_ast = "22e54eb89e368862bf939f78cd6b2053d5742ce92c3a4d1a51bad06a28611014", initial_ast = "6bf9f1bd0ef96634db80a9e62255236aa622f6ce3c27c5e772e724c84abbba4a", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "b36caa9dadd9d56989cd6b78713b0c93e697d851c335cf1175295f7287997bd8", ssa_ast = "df8026602cbb445165612ab879fde2336f6fee02d512f1d0c77c5529fced4aba", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "6bf9f1bd0ef96634db80a9e62255236aa622f6ce3c27c5e772e724c84abbba4a", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as i8.private; + add r0 r1 into r3; + add r3 1_1i8 into r4; + add r4 1______1i8 into r5; + add r2 1i8 into r6; + is.eq r5 r6 into r7; + output r7 as boolean.private; +""", dce_ast = "b36caa9dadd9d56989cd6b78713b0c93e697d851c335cf1175295f7287997bd8", destructured_ast = "b36caa9dadd9d56989cd6b78713b0c93e697d851c335cf1175295f7287997bd8", errors = "", flattened_ast = "22e54eb89e368862bf939f78cd6b2053d5742ce92c3a4d1a51bad06a28611014", initial_ast = "6bf9f1bd0ef96634db80a9e62255236aa622f6ce3c27c5e772e724c84abbba4a", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "b36caa9dadd9d56989cd6b78713b0c93e697d851c335cf1175295f7287997bd8", ssa_ast = "df8026602cbb445165612ab879fde2336f6fee02d512f1d0c77c5529fced4aba", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "6bf9f1bd0ef96634db80a9e62255236aa622f6ce3c27c5e772e724c84abbba4a", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/and.out b/tests/expectations/compiler/integers/i8/and.out index 087b1ba7de..8db31e00e5 100644 --- a/tests/expectations/compiler/integers/i8/and.out +++ b/tests/expectations/compiler/integers/i8/and.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "6696abc2bfb9eeab6ab4255dad93e1c66316b93bf19136e37fdefb22a09b50c9", dce_ast = "3f0d6f9aa749752810926a7b5e4152f4ce51c5a04ec5cdf69168559d64906491", destructured_ast = "3f0d6f9aa749752810926a7b5e4152f4ce51c5a04ec5cdf69168559d64906491", errors = "", flattened_ast = "f2f09410b66cac815a24b2503700a952769f52d1a5b289334050a6085d5eb894", initial_ast = "cc698c2beb128c01adec906d540274484ca40a328570ad98207e91072facfbc6", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "3f0d6f9aa749752810926a7b5e4152f4ce51c5a04ec5cdf69168559d64906491", ssa_ast = "37cc955e96b4cf037ff94ff63a25e4921d366a4ed7e275dfec8ca3ae51e8adae", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "cc698c2beb128c01adec906d540274484ca40a328570ad98207e91072facfbc6", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as i8.private; + and r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "3f0d6f9aa749752810926a7b5e4152f4ce51c5a04ec5cdf69168559d64906491", destructured_ast = "3f0d6f9aa749752810926a7b5e4152f4ce51c5a04ec5cdf69168559d64906491", errors = "", flattened_ast = "f2f09410b66cac815a24b2503700a952769f52d1a5b289334050a6085d5eb894", initial_ast = "cc698c2beb128c01adec906d540274484ca40a328570ad98207e91072facfbc6", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "3f0d6f9aa749752810926a7b5e4152f4ce51c5a04ec5cdf69168559d64906491", ssa_ast = "37cc955e96b4cf037ff94ff63a25e4921d366a4ed7e275dfec8ca3ae51e8adae", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "cc698c2beb128c01adec906d540274484ca40a328570ad98207e91072facfbc6", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/console_assert.out b/tests/expectations/compiler/integers/i8/console_assert.out index fcc044f8d5..bd2c9c762d 100644 --- a/tests/expectations/compiler/integers/i8/console_assert.out +++ b/tests/expectations/compiler/integers/i8/console_assert.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "abe50f2f70110c2d0e6728636967d2e3ef06c1bdad64c39cf82f7402a924f769", dce_ast = "ec21c297b894468f9a99ed06a68020f29be3c5363826cd782e6f6905773b0528", destructured_ast = "ec21c297b894468f9a99ed06a68020f29be3c5363826cd782e6f6905773b0528", errors = "", flattened_ast = "8f9b19e351342a2156d45e1cd5c29b44a8f1f4a17c2b8121bbc6e82059ed7bfc", initial_ast = "2efb5bdc95149a2a9dcc220768b6dd9ee5398c053deb5489641c8b3d6ef4fae3", initial_symbol_table = "cde66f4b30777be5bbf81e86f11c7b68c5004819a4d3da246e755cd5a8683e55", inlined_ast = "ec21c297b894468f9a99ed06a68020f29be3c5363826cd782e6f6905773b0528", ssa_ast = "3040aafd7382a5cef83c471d33124d3356edd44930401a4627f7ef69082a1ac9", type_checked_symbol_table = "72d9daa48eaf10f69b2811f654a915cf80e9c7161526cfad9900cd982a239cb0", unrolled_ast = "2efb5bdc95149a2a9dcc220768b6dd9ee5398c053deb5489641c8b3d6ef4fae3", unrolled_symbol_table = "72d9daa48eaf10f69b2811f654a915cf80e9c7161526cfad9900cd982a239cb0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + is.eq r0 r1 into r2; + assert.eq r2 true; + output r2 as boolean.private; +""", dce_ast = "ec21c297b894468f9a99ed06a68020f29be3c5363826cd782e6f6905773b0528", destructured_ast = "ec21c297b894468f9a99ed06a68020f29be3c5363826cd782e6f6905773b0528", errors = "", flattened_ast = "8f9b19e351342a2156d45e1cd5c29b44a8f1f4a17c2b8121bbc6e82059ed7bfc", initial_ast = "2efb5bdc95149a2a9dcc220768b6dd9ee5398c053deb5489641c8b3d6ef4fae3", initial_symbol_table = "cde66f4b30777be5bbf81e86f11c7b68c5004819a4d3da246e755cd5a8683e55", inlined_ast = "ec21c297b894468f9a99ed06a68020f29be3c5363826cd782e6f6905773b0528", ssa_ast = "3040aafd7382a5cef83c471d33124d3356edd44930401a4627f7ef69082a1ac9", type_checked_symbol_table = "72d9daa48eaf10f69b2811f654a915cf80e9c7161526cfad9900cd982a239cb0", unrolled_ast = "2efb5bdc95149a2a9dcc220768b6dd9ee5398c053deb5489641c8b3d6ef4fae3", unrolled_symbol_table = "72d9daa48eaf10f69b2811f654a915cf80e9c7161526cfad9900cd982a239cb0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/div.out b/tests/expectations/compiler/integers/i8/div.out index 2023b77833..5dde150538 100644 --- a/tests/expectations/compiler/integers/i8/div.out +++ b/tests/expectations/compiler/integers/i8/div.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "a748bd3dea41e7274e04929fa60b4e6e1a93c07f229afe99bf12c5fc29162f68", dce_ast = "91e2dc4c5d7914343f521c0e1e4bc23bd935fdd5d3ce0b9c85871fc53e62d98a", destructured_ast = "91e2dc4c5d7914343f521c0e1e4bc23bd935fdd5d3ce0b9c85871fc53e62d98a", errors = "", flattened_ast = "10de4abc15f893686734c8692a9151e812b3ad582de2db55873ec80228f2176b", initial_ast = "e2d4f666c4e5fa82bea942ed344b99341199e42076d318e234f6192505be181a", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "91e2dc4c5d7914343f521c0e1e4bc23bd935fdd5d3ce0b9c85871fc53e62d98a", ssa_ast = "546b56ed336b74c595fbaad228f684b5cba9104e727d807cd2f07552a0804c68", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "e2d4f666c4e5fa82bea942ed344b99341199e42076d318e234f6192505be181a", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as i8.private; + div r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "91e2dc4c5d7914343f521c0e1e4bc23bd935fdd5d3ce0b9c85871fc53e62d98a", destructured_ast = "91e2dc4c5d7914343f521c0e1e4bc23bd935fdd5d3ce0b9c85871fc53e62d98a", errors = "", flattened_ast = "10de4abc15f893686734c8692a9151e812b3ad582de2db55873ec80228f2176b", initial_ast = "e2d4f666c4e5fa82bea942ed344b99341199e42076d318e234f6192505be181a", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "91e2dc4c5d7914343f521c0e1e4bc23bd935fdd5d3ce0b9c85871fc53e62d98a", ssa_ast = "546b56ed336b74c595fbaad228f684b5cba9104e727d807cd2f07552a0804c68", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "e2d4f666c4e5fa82bea942ed344b99341199e42076d318e234f6192505be181a", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/eq.out b/tests/expectations/compiler/integers/i8/eq.out index ec8cc98c0c..5b0a9aab75 100644 --- a/tests/expectations/compiler/integers/i8/eq.out +++ b/tests/expectations/compiler/integers/i8/eq.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "a78d778b5d4c7ab76e80a1c944c5060214f0e474a0892dca998044ec07f736f9", dce_ast = "a66d318aaa22bcf5cc248d95c5afbded23d1a057f4c278b95bca68dd303c91a0", destructured_ast = "a66d318aaa22bcf5cc248d95c5afbded23d1a057f4c278b95bca68dd303c91a0", errors = "", flattened_ast = "41c2c364fc98b8cad593fb1811e54c4ad8e969dbbdf17f298e2155e468c559a9", initial_ast = "5b00321f6f2e5db8a5c85f4f2ab334b65aa8b525c2c6e79ceb41cd55506ad421", initial_symbol_table = "4743c62690fbc67bca8d59e9bb6c787eb3bb6bd0c0ac687147ef041745a3bf63", inlined_ast = "a66d318aaa22bcf5cc248d95c5afbded23d1a057f4c278b95bca68dd303c91a0", ssa_ast = "88df51a824efa41f3441f5a60884b555a4c65061a734585194e0b0d98df439dd", type_checked_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", unrolled_ast = "5b00321f6f2e5db8a5c85f4f2ab334b65aa8b525c2c6e79ceb41cd55506ad421", unrolled_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as boolean.private; + is.eq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "a66d318aaa22bcf5cc248d95c5afbded23d1a057f4c278b95bca68dd303c91a0", destructured_ast = "a66d318aaa22bcf5cc248d95c5afbded23d1a057f4c278b95bca68dd303c91a0", errors = "", flattened_ast = "41c2c364fc98b8cad593fb1811e54c4ad8e969dbbdf17f298e2155e468c559a9", initial_ast = "5b00321f6f2e5db8a5c85f4f2ab334b65aa8b525c2c6e79ceb41cd55506ad421", initial_symbol_table = "4743c62690fbc67bca8d59e9bb6c787eb3bb6bd0c0ac687147ef041745a3bf63", inlined_ast = "a66d318aaa22bcf5cc248d95c5afbded23d1a057f4c278b95bca68dd303c91a0", ssa_ast = "88df51a824efa41f3441f5a60884b555a4c65061a734585194e0b0d98df439dd", type_checked_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", unrolled_ast = "5b00321f6f2e5db8a5c85f4f2ab334b65aa8b525c2c6e79ceb41cd55506ad421", unrolled_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/ge.out b/tests/expectations/compiler/integers/i8/ge.out index 2ada1cbdb4..969939c47b 100644 --- a/tests/expectations/compiler/integers/i8/ge.out +++ b/tests/expectations/compiler/integers/i8/ge.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "94572b27b48d4abfd620aa9e9b2826915ffa548e81e7163562a598777c174b9d", dce_ast = "2c0bfa61f3ef2eea404ea84be91a062e702852a30cc8cb4208faaf1d4ac94e8e", destructured_ast = "2c0bfa61f3ef2eea404ea84be91a062e702852a30cc8cb4208faaf1d4ac94e8e", errors = "", flattened_ast = "117322d3c36ccb88f418847a5cc7e94bc7a4ca5141cf9936149061177639d79f", initial_ast = "e3826df3342f985478f31be42eefe0ba3630befd3779a4ba2f168f806b3aaf26", initial_symbol_table = "4743c62690fbc67bca8d59e9bb6c787eb3bb6bd0c0ac687147ef041745a3bf63", inlined_ast = "2c0bfa61f3ef2eea404ea84be91a062e702852a30cc8cb4208faaf1d4ac94e8e", ssa_ast = "1c8b633c0ecffe5af9d1a1c2a72fa523a77a235b8068b680c54087995863b3af", type_checked_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", unrolled_ast = "e3826df3342f985478f31be42eefe0ba3630befd3779a4ba2f168f806b3aaf26", unrolled_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as boolean.private; + gte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "2c0bfa61f3ef2eea404ea84be91a062e702852a30cc8cb4208faaf1d4ac94e8e", destructured_ast = "2c0bfa61f3ef2eea404ea84be91a062e702852a30cc8cb4208faaf1d4ac94e8e", errors = "", flattened_ast = "117322d3c36ccb88f418847a5cc7e94bc7a4ca5141cf9936149061177639d79f", initial_ast = "e3826df3342f985478f31be42eefe0ba3630befd3779a4ba2f168f806b3aaf26", initial_symbol_table = "4743c62690fbc67bca8d59e9bb6c787eb3bb6bd0c0ac687147ef041745a3bf63", inlined_ast = "2c0bfa61f3ef2eea404ea84be91a062e702852a30cc8cb4208faaf1d4ac94e8e", ssa_ast = "1c8b633c0ecffe5af9d1a1c2a72fa523a77a235b8068b680c54087995863b3af", type_checked_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", unrolled_ast = "e3826df3342f985478f31be42eefe0ba3630befd3779a4ba2f168f806b3aaf26", unrolled_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/gt.out b/tests/expectations/compiler/integers/i8/gt.out index e93a3302b5..a2e1aecf3d 100644 --- a/tests/expectations/compiler/integers/i8/gt.out +++ b/tests/expectations/compiler/integers/i8/gt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "12088489a333361c2ba46423958eb72cf877d9db1e0acc0520b13b02a6d0467e", dce_ast = "895d121187e579a376b15814cbe3efe4fe14a89fb27cb1d95aacc3301292e68d", destructured_ast = "895d121187e579a376b15814cbe3efe4fe14a89fb27cb1d95aacc3301292e68d", errors = "", flattened_ast = "7424c5c9aeeb419ed1c2a6eeffcafd70bbe44856d0a379e66d09ca2f3772d058", initial_ast = "b340b8f211e8969baaf58c34762deeffc2ef61bba993468c823acee2f896d81e", initial_symbol_table = "4743c62690fbc67bca8d59e9bb6c787eb3bb6bd0c0ac687147ef041745a3bf63", inlined_ast = "895d121187e579a376b15814cbe3efe4fe14a89fb27cb1d95aacc3301292e68d", ssa_ast = "786646fd5c008b87a6735cf6354be975079727307d7e9ef0a1f6d411ae86dd01", type_checked_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", unrolled_ast = "b340b8f211e8969baaf58c34762deeffc2ef61bba993468c823acee2f896d81e", unrolled_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as boolean.private; + gt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "895d121187e579a376b15814cbe3efe4fe14a89fb27cb1d95aacc3301292e68d", destructured_ast = "895d121187e579a376b15814cbe3efe4fe14a89fb27cb1d95aacc3301292e68d", errors = "", flattened_ast = "7424c5c9aeeb419ed1c2a6eeffcafd70bbe44856d0a379e66d09ca2f3772d058", initial_ast = "b340b8f211e8969baaf58c34762deeffc2ef61bba993468c823acee2f896d81e", initial_symbol_table = "4743c62690fbc67bca8d59e9bb6c787eb3bb6bd0c0ac687147ef041745a3bf63", inlined_ast = "895d121187e579a376b15814cbe3efe4fe14a89fb27cb1d95aacc3301292e68d", ssa_ast = "786646fd5c008b87a6735cf6354be975079727307d7e9ef0a1f6d411ae86dd01", type_checked_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", unrolled_ast = "b340b8f211e8969baaf58c34762deeffc2ef61bba993468c823acee2f896d81e", unrolled_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/hex_and_bin.out b/tests/expectations/compiler/integers/i8/hex_and_bin.out index a4fb6f5af9..dbb89c02fb 100644 --- a/tests/expectations/compiler/integers/i8/hex_and_bin.out +++ b/tests/expectations/compiler/integers/i8/hex_and_bin.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "576d91d751607b6f8045f511d39072799e174dd899e9962b1dadc94843836620", dce_ast = "10545e3b44c9d34d4dd57f0028b1c3c7740d29f8623b71c27481e41d65cdd7c3", destructured_ast = "10545e3b44c9d34d4dd57f0028b1c3c7740d29f8623b71c27481e41d65cdd7c3", errors = "", flattened_ast = "dbc980ee51c6a3b45d97a4b732f7c8b4c28655b83955417b2160fd3f8875c2c9", initial_ast = "5403d97f87cbb0fcfe6f7a526d4f798caec145ec178e4779b9c710b52bb08ffd", initial_symbol_table = "353cdbed822b512ef65bfb0724f108688f363f7e2a7c8ea3719bd71c4975aa48", inlined_ast = "10545e3b44c9d34d4dd57f0028b1c3c7740d29f8623b71c27481e41d65cdd7c3", ssa_ast = "3ab6fca47f539d5a00a8b4228c98a4d1dcbc2a568ba673d26d619cf1746607aa", type_checked_symbol_table = "dc71d504735e6f386b32e9e3e51be6a8f59b661143983031532ba5ce27037597", unrolled_ast = "5403d97f87cbb0fcfe6f7a526d4f798caec145ec178e4779b9c710b52bb08ffd", unrolled_symbol_table = "dc71d504735e6f386b32e9e3e51be6a8f59b661143983031532ba5ce27037597", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as i8.private; + is.eq r0 127i8 into r3; + is.eq r1 27i8 into r4; + and r3 r4 into r5; + is.eq r2 21i8 into r6; + and r5 r6 into r7; + output r7 as boolean.private; +""", dce_ast = "10545e3b44c9d34d4dd57f0028b1c3c7740d29f8623b71c27481e41d65cdd7c3", destructured_ast = "10545e3b44c9d34d4dd57f0028b1c3c7740d29f8623b71c27481e41d65cdd7c3", errors = "", flattened_ast = "dbc980ee51c6a3b45d97a4b732f7c8b4c28655b83955417b2160fd3f8875c2c9", initial_ast = "5403d97f87cbb0fcfe6f7a526d4f798caec145ec178e4779b9c710b52bb08ffd", initial_symbol_table = "353cdbed822b512ef65bfb0724f108688f363f7e2a7c8ea3719bd71c4975aa48", inlined_ast = "10545e3b44c9d34d4dd57f0028b1c3c7740d29f8623b71c27481e41d65cdd7c3", ssa_ast = "3ab6fca47f539d5a00a8b4228c98a4d1dcbc2a568ba673d26d619cf1746607aa", type_checked_symbol_table = "dc71d504735e6f386b32e9e3e51be6a8f59b661143983031532ba5ce27037597", unrolled_ast = "5403d97f87cbb0fcfe6f7a526d4f798caec145ec178e4779b9c710b52bb08ffd", unrolled_symbol_table = "dc71d504735e6f386b32e9e3e51be6a8f59b661143983031532ba5ce27037597", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/le.out b/tests/expectations/compiler/integers/i8/le.out index ffd98963a3..c4bc4c4e57 100644 --- a/tests/expectations/compiler/integers/i8/le.out +++ b/tests/expectations/compiler/integers/i8/le.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "13ee1135be90a2ac630bba0dddd170b24bdf375295c4d3e21ddb511d388f9c31", dce_ast = "6444f15f03f91acef1291cf7ece1f6734f8d82f84d5c3e9fd136e3d08091abac", destructured_ast = "6444f15f03f91acef1291cf7ece1f6734f8d82f84d5c3e9fd136e3d08091abac", errors = "", flattened_ast = "23a6679cd4c5944af49076bea9614344a60d0fae3ec70e4025be62a61f1de4ff", initial_ast = "0063230de9d7fbd358cad1c53d6583336cb64b399c348894ae19a25033fd604e", initial_symbol_table = "4743c62690fbc67bca8d59e9bb6c787eb3bb6bd0c0ac687147ef041745a3bf63", inlined_ast = "6444f15f03f91acef1291cf7ece1f6734f8d82f84d5c3e9fd136e3d08091abac", ssa_ast = "78fe8e9dd365b2f9f9cf4dd64b020a9a45179054f9a8d6af65b6d1ca887b269f", type_checked_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", unrolled_ast = "0063230de9d7fbd358cad1c53d6583336cb64b399c348894ae19a25033fd604e", unrolled_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as boolean.private; + lte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "6444f15f03f91acef1291cf7ece1f6734f8d82f84d5c3e9fd136e3d08091abac", destructured_ast = "6444f15f03f91acef1291cf7ece1f6734f8d82f84d5c3e9fd136e3d08091abac", errors = "", flattened_ast = "23a6679cd4c5944af49076bea9614344a60d0fae3ec70e4025be62a61f1de4ff", initial_ast = "0063230de9d7fbd358cad1c53d6583336cb64b399c348894ae19a25033fd604e", initial_symbol_table = "4743c62690fbc67bca8d59e9bb6c787eb3bb6bd0c0ac687147ef041745a3bf63", inlined_ast = "6444f15f03f91acef1291cf7ece1f6734f8d82f84d5c3e9fd136e3d08091abac", ssa_ast = "78fe8e9dd365b2f9f9cf4dd64b020a9a45179054f9a8d6af65b6d1ca887b269f", type_checked_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", unrolled_ast = "0063230de9d7fbd358cad1c53d6583336cb64b399c348894ae19a25033fd604e", unrolled_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/lt.out b/tests/expectations/compiler/integers/i8/lt.out index a6cfa5e237..08e350bd23 100644 --- a/tests/expectations/compiler/integers/i8/lt.out +++ b/tests/expectations/compiler/integers/i8/lt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "603e5cdb76df60951144b9bf25a52c5707dd4286906cae46fccc43f3b87292e2", dce_ast = "df9db2518c47cf08ca5798db0c6dbe3b4fea29e13d70156f52e9aff73d52e134", destructured_ast = "df9db2518c47cf08ca5798db0c6dbe3b4fea29e13d70156f52e9aff73d52e134", errors = "", flattened_ast = "863a0585973d5e6536cb97dd3b11e8662b11318e148115ab9483eb088ee11cda", initial_ast = "1b46f9c0d678800f33e2acc95375dc446b755331f7555b30441bb4b0645b665c", initial_symbol_table = "4743c62690fbc67bca8d59e9bb6c787eb3bb6bd0c0ac687147ef041745a3bf63", inlined_ast = "df9db2518c47cf08ca5798db0c6dbe3b4fea29e13d70156f52e9aff73d52e134", ssa_ast = "cc78951f929dbe123f88df4269f4049cf49419496328805b7f3cccacbeebd406", type_checked_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", unrolled_ast = "1b46f9c0d678800f33e2acc95375dc446b755331f7555b30441bb4b0645b665c", unrolled_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as boolean.private; + lt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "df9db2518c47cf08ca5798db0c6dbe3b4fea29e13d70156f52e9aff73d52e134", destructured_ast = "df9db2518c47cf08ca5798db0c6dbe3b4fea29e13d70156f52e9aff73d52e134", errors = "", flattened_ast = "863a0585973d5e6536cb97dd3b11e8662b11318e148115ab9483eb088ee11cda", initial_ast = "1b46f9c0d678800f33e2acc95375dc446b755331f7555b30441bb4b0645b665c", initial_symbol_table = "4743c62690fbc67bca8d59e9bb6c787eb3bb6bd0c0ac687147ef041745a3bf63", inlined_ast = "df9db2518c47cf08ca5798db0c6dbe3b4fea29e13d70156f52e9aff73d52e134", ssa_ast = "cc78951f929dbe123f88df4269f4049cf49419496328805b7f3cccacbeebd406", type_checked_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", unrolled_ast = "1b46f9c0d678800f33e2acc95375dc446b755331f7555b30441bb4b0645b665c", unrolled_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/max.out b/tests/expectations/compiler/integers/i8/max.out index 6f9dda7c7f..8c59b85047 100644 --- a/tests/expectations/compiler/integers/i8/max.out +++ b/tests/expectations/compiler/integers/i8/max.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "3c067ad506fc41e4e9e7db063d5364cb4b48df235e552f3cae7d5de2cbb781e0", dce_ast = "e12f2dcbcc35639427e9321927add4ee5798d852ca7e89d38828809216fc53ca", destructured_ast = "e12f2dcbcc35639427e9321927add4ee5798d852ca7e89d38828809216fc53ca", errors = "", flattened_ast = "d2afdef5a4fb9501c6d7ec053c1c778630fc01b6c80d1c07fa9b5274e00d5f70", initial_ast = "563178722ffef827250be4f84e9633363dd7d20a17fa74d78c865f7fb88ac0a4", initial_symbol_table = "a6a37febbe9d95963b4a44f652b8fdc283cb894facfe966fa3ba70b5ad4758b6", inlined_ast = "e12f2dcbcc35639427e9321927add4ee5798d852ca7e89d38828809216fc53ca", ssa_ast = "3ff75da0b8ee9c02c92cf0cb031ffac194eb35eedbb54f3cbff51812e646f491", type_checked_symbol_table = "75aa4f108c0f30f73e8e6b92a8cde9588d28fa4c97c1103349668563c6bf29bf", unrolled_ast = "563178722ffef827250be4f84e9633363dd7d20a17fa74d78c865f7fb88ac0a4", unrolled_symbol_table = "75aa4f108c0f30f73e8e6b92a8cde9588d28fa4c97c1103349668563c6bf29bf", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + sub 127i8 r0 into r1; + output r1 as i8.private; +""", dce_ast = "e12f2dcbcc35639427e9321927add4ee5798d852ca7e89d38828809216fc53ca", destructured_ast = "e12f2dcbcc35639427e9321927add4ee5798d852ca7e89d38828809216fc53ca", errors = "", flattened_ast = "d2afdef5a4fb9501c6d7ec053c1c778630fc01b6c80d1c07fa9b5274e00d5f70", initial_ast = "563178722ffef827250be4f84e9633363dd7d20a17fa74d78c865f7fb88ac0a4", initial_symbol_table = "a6a37febbe9d95963b4a44f652b8fdc283cb894facfe966fa3ba70b5ad4758b6", inlined_ast = "e12f2dcbcc35639427e9321927add4ee5798d852ca7e89d38828809216fc53ca", ssa_ast = "3ff75da0b8ee9c02c92cf0cb031ffac194eb35eedbb54f3cbff51812e646f491", type_checked_symbol_table = "75aa4f108c0f30f73e8e6b92a8cde9588d28fa4c97c1103349668563c6bf29bf", unrolled_ast = "563178722ffef827250be4f84e9633363dd7d20a17fa74d78c865f7fb88ac0a4", unrolled_symbol_table = "75aa4f108c0f30f73e8e6b92a8cde9588d28fa4c97c1103349668563c6bf29bf", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/min.out b/tests/expectations/compiler/integers/i8/min.out index fe29260ad6..feecdfa3d3 100644 --- a/tests/expectations/compiler/integers/i8/min.out +++ b/tests/expectations/compiler/integers/i8/min.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "55a111c89ca19d386df2b23007d709d5c8787909e9e1160c29499b3f7a01dcf5", dce_ast = "8a27854713ee0405c1e6fd11d2bfb13e58f6d6eebfea1d901540ac958454fee7", destructured_ast = "8a27854713ee0405c1e6fd11d2bfb13e58f6d6eebfea1d901540ac958454fee7", errors = "", flattened_ast = "4c0f9e4df2f63f3ce1780031a900b77647269a66e25518fb35ba8a51116b9506", initial_ast = "76f03f73aa1896fe8dcd48c65bf0ceb2f7a9376bdcffcf1d3d2397310473b08c", initial_symbol_table = "a6a37febbe9d95963b4a44f652b8fdc283cb894facfe966fa3ba70b5ad4758b6", inlined_ast = "8a27854713ee0405c1e6fd11d2bfb13e58f6d6eebfea1d901540ac958454fee7", ssa_ast = "0eaf70d9182c1dbbb9bb32ad8c8e8dc0b26cfe517c062031443d305fd87b3d19", type_checked_symbol_table = "75aa4f108c0f30f73e8e6b92a8cde9588d28fa4c97c1103349668563c6bf29bf", unrolled_ast = "76f03f73aa1896fe8dcd48c65bf0ceb2f7a9376bdcffcf1d3d2397310473b08c", unrolled_symbol_table = "75aa4f108c0f30f73e8e6b92a8cde9588d28fa4c97c1103349668563c6bf29bf", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + sub -127i8 r0 into r1; + output r1 as i8.private; +""", dce_ast = "8a27854713ee0405c1e6fd11d2bfb13e58f6d6eebfea1d901540ac958454fee7", destructured_ast = "8a27854713ee0405c1e6fd11d2bfb13e58f6d6eebfea1d901540ac958454fee7", errors = "", flattened_ast = "4c0f9e4df2f63f3ce1780031a900b77647269a66e25518fb35ba8a51116b9506", initial_ast = "76f03f73aa1896fe8dcd48c65bf0ceb2f7a9376bdcffcf1d3d2397310473b08c", initial_symbol_table = "a6a37febbe9d95963b4a44f652b8fdc283cb894facfe966fa3ba70b5ad4758b6", inlined_ast = "8a27854713ee0405c1e6fd11d2bfb13e58f6d6eebfea1d901540ac958454fee7", ssa_ast = "0eaf70d9182c1dbbb9bb32ad8c8e8dc0b26cfe517c062031443d305fd87b3d19", type_checked_symbol_table = "75aa4f108c0f30f73e8e6b92a8cde9588d28fa4c97c1103349668563c6bf29bf", unrolled_ast = "76f03f73aa1896fe8dcd48c65bf0ceb2f7a9376bdcffcf1d3d2397310473b08c", unrolled_symbol_table = "75aa4f108c0f30f73e8e6b92a8cde9588d28fa4c97c1103349668563c6bf29bf", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/min_fail.out b/tests/expectations/compiler/integers/i8/min_fail.out index 8ec4796bbf..7921840dff 100644 --- a/tests/expectations/compiler/integers/i8/min_fail.out +++ b/tests/expectations/compiler/integers/i8/min_fail.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "2181efe703d35367134a1f8a3601cc57254af6fff5313d65f4b442e1bb24ca38", dce_ast = "95b27551d0725fc934b662f959957cabb2613ef853bfd301cf92bf96515910fd", destructured_ast = "95b27551d0725fc934b662f959957cabb2613ef853bfd301cf92bf96515910fd", errors = "", flattened_ast = "f3ba6b843d5fb71c44ce4a13f1159e41ae420493f93e2b4d71eed92d4106717d", initial_ast = "a77dad8f4374ae9485cf5209ba53504e4496ddcf3284f527273fedd4d1d6fd0f", initial_symbol_table = "15f9ac444e80cc740f479cf4752dc68a63527ad3fa272f1f28d4ff819da708b2", inlined_ast = "95b27551d0725fc934b662f959957cabb2613ef853bfd301cf92bf96515910fd", ssa_ast = "b9ead55cf4489b7204556612449ef5c720e38caa15132273a38e19d5f753920f", type_checked_symbol_table = "f114ee92ebdd630b62e9704d4bb3d273faedd5513947afcd2cd6fc6cccc3c195", unrolled_ast = "a77dad8f4374ae9485cf5209ba53504e4496ddcf3284f527273fedd4d1d6fd0f", unrolled_symbol_table = "f114ee92ebdd630b62e9704d4bb3d273faedd5513947afcd2cd6fc6cccc3c195", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + sub -127i8 2i8 into r1; + output r1 as i8.private; +""", dce_ast = "95b27551d0725fc934b662f959957cabb2613ef853bfd301cf92bf96515910fd", destructured_ast = "95b27551d0725fc934b662f959957cabb2613ef853bfd301cf92bf96515910fd", errors = "", flattened_ast = "f3ba6b843d5fb71c44ce4a13f1159e41ae420493f93e2b4d71eed92d4106717d", initial_ast = "a77dad8f4374ae9485cf5209ba53504e4496ddcf3284f527273fedd4d1d6fd0f", initial_symbol_table = "15f9ac444e80cc740f479cf4752dc68a63527ad3fa272f1f28d4ff819da708b2", inlined_ast = "95b27551d0725fc934b662f959957cabb2613ef853bfd301cf92bf96515910fd", ssa_ast = "b9ead55cf4489b7204556612449ef5c720e38caa15132273a38e19d5f753920f", type_checked_symbol_table = "f114ee92ebdd630b62e9704d4bb3d273faedd5513947afcd2cd6fc6cccc3c195", unrolled_ast = "a77dad8f4374ae9485cf5209ba53504e4496ddcf3284f527273fedd4d1d6fd0f", unrolled_symbol_table = "f114ee92ebdd630b62e9704d4bb3d273faedd5513947afcd2cd6fc6cccc3c195", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/mul.out b/tests/expectations/compiler/integers/i8/mul.out index 30c283b3e8..795b8ec013 100644 --- a/tests/expectations/compiler/integers/i8/mul.out +++ b/tests/expectations/compiler/integers/i8/mul.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4d7f4174af8a36e85cdb61b3aea8ff9d5d2fff98c50e002f82e4e37cec9beab8", dce_ast = "d8cd3f58dc75e428f0e5d6ce60b6295454686c75568436253c1edb229663b8ec", destructured_ast = "d8cd3f58dc75e428f0e5d6ce60b6295454686c75568436253c1edb229663b8ec", errors = "", flattened_ast = "437026d837a6f7b5c9985f1689f7061f0c10b828f8d43429b63cd00bdffc2e43", initial_ast = "56b05e255bee16fe71e37cd5580c06b1f68d5a1fafec969694a762dc527e307d", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "d8cd3f58dc75e428f0e5d6ce60b6295454686c75568436253c1edb229663b8ec", ssa_ast = "6987b36066f53fcba20109d287e6ca22d127015764e893684e013e5af8df1c76", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "56b05e255bee16fe71e37cd5580c06b1f68d5a1fafec969694a762dc527e307d", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as i8.private; + mul r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "d8cd3f58dc75e428f0e5d6ce60b6295454686c75568436253c1edb229663b8ec", destructured_ast = "d8cd3f58dc75e428f0e5d6ce60b6295454686c75568436253c1edb229663b8ec", errors = "", flattened_ast = "437026d837a6f7b5c9985f1689f7061f0c10b828f8d43429b63cd00bdffc2e43", initial_ast = "56b05e255bee16fe71e37cd5580c06b1f68d5a1fafec969694a762dc527e307d", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "d8cd3f58dc75e428f0e5d6ce60b6295454686c75568436253c1edb229663b8ec", ssa_ast = "6987b36066f53fcba20109d287e6ca22d127015764e893684e013e5af8df1c76", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "56b05e255bee16fe71e37cd5580c06b1f68d5a1fafec969694a762dc527e307d", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/ne.out b/tests/expectations/compiler/integers/i8/ne.out index 46dbbb8ce8..db8758f6b6 100644 --- a/tests/expectations/compiler/integers/i8/ne.out +++ b/tests/expectations/compiler/integers/i8/ne.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "d7dd8a73bf281baa5edbf7c488b9752d703a092ec1840c0e35d830a7c6f9c007", dce_ast = "86b1eebf8450a6d76bd76ea1a7bac0be64a78775bfcb624160482b25cf0f2824", destructured_ast = "86b1eebf8450a6d76bd76ea1a7bac0be64a78775bfcb624160482b25cf0f2824", errors = "", flattened_ast = "4d7b441aeba9fe22835ff5af503e598f11ab68ad1075b943ac100f5cba4bd56c", initial_ast = "3bd2bf3b999c662c2fb76f7e2bd8d434ae265210315fe6a25bec7f4864be91fb", initial_symbol_table = "4743c62690fbc67bca8d59e9bb6c787eb3bb6bd0c0ac687147ef041745a3bf63", inlined_ast = "86b1eebf8450a6d76bd76ea1a7bac0be64a78775bfcb624160482b25cf0f2824", ssa_ast = "e700f12a79171f2bcb8793956bca320380fc683e00dea81efcb4beda60179268", type_checked_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", unrolled_ast = "3bd2bf3b999c662c2fb76f7e2bd8d434ae265210315fe6a25bec7f4864be91fb", unrolled_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as boolean.private; + is.neq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "86b1eebf8450a6d76bd76ea1a7bac0be64a78775bfcb624160482b25cf0f2824", destructured_ast = "86b1eebf8450a6d76bd76ea1a7bac0be64a78775bfcb624160482b25cf0f2824", errors = "", flattened_ast = "4d7b441aeba9fe22835ff5af503e598f11ab68ad1075b943ac100f5cba4bd56c", initial_ast = "3bd2bf3b999c662c2fb76f7e2bd8d434ae265210315fe6a25bec7f4864be91fb", initial_symbol_table = "4743c62690fbc67bca8d59e9bb6c787eb3bb6bd0c0ac687147ef041745a3bf63", inlined_ast = "86b1eebf8450a6d76bd76ea1a7bac0be64a78775bfcb624160482b25cf0f2824", ssa_ast = "e700f12a79171f2bcb8793956bca320380fc683e00dea81efcb4beda60179268", type_checked_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", unrolled_ast = "3bd2bf3b999c662c2fb76f7e2bd8d434ae265210315fe6a25bec7f4864be91fb", unrolled_symbol_table = "42bcece297a0308cbfcc07e26e6a48f50b68d25ded7d1ad6cd185288b799e4df", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/negate.out b/tests/expectations/compiler/integers/i8/negate.out index b8431c60c2..bbd60e8206 100644 --- a/tests/expectations/compiler/integers/i8/negate.out +++ b/tests/expectations/compiler/integers/i8/negate.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "68da5691d330a6bcaa3f223f7a2140e1c01993fe61750a646efe6241bccb88c9", dce_ast = "f380bb5c1d258c8e957a78eee1ff9e66a8846072ae16f6b79a445735dc1b2cdb", destructured_ast = "f380bb5c1d258c8e957a78eee1ff9e66a8846072ae16f6b79a445735dc1b2cdb", errors = "", flattened_ast = "58f2aa6a514785791e5d7e33afe38db9ecb042bed562056e036f2f3bd35ed2bf", initial_ast = "a573efee457260e4f9a0171ba91f8c78b81cd636c53d0d0fb94bebf73c0a6ae3", initial_symbol_table = "cde66f4b30777be5bbf81e86f11c7b68c5004819a4d3da246e755cd5a8683e55", inlined_ast = "f380bb5c1d258c8e957a78eee1ff9e66a8846072ae16f6b79a445735dc1b2cdb", ssa_ast = "b5be28daddc15f1c0e60b97f004ff809074f5b6943501984f3a0a577e5b6fa83", type_checked_symbol_table = "62b70f7d5bc9e5efa20b2a6611b36bbbae7707dab492fadeca3532e95ad34396", unrolled_ast = "a573efee457260e4f9a0171ba91f8c78b81cd636c53d0d0fb94bebf73c0a6ae3", unrolled_symbol_table = "62b70f7d5bc9e5efa20b2a6611b36bbbae7707dab492fadeca3532e95ad34396", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + neg r0 into r2; + is.eq r2 r1 into r3; + output r3 as boolean.private; +""", dce_ast = "f380bb5c1d258c8e957a78eee1ff9e66a8846072ae16f6b79a445735dc1b2cdb", destructured_ast = "f380bb5c1d258c8e957a78eee1ff9e66a8846072ae16f6b79a445735dc1b2cdb", errors = "", flattened_ast = "58f2aa6a514785791e5d7e33afe38db9ecb042bed562056e036f2f3bd35ed2bf", initial_ast = "a573efee457260e4f9a0171ba91f8c78b81cd636c53d0d0fb94bebf73c0a6ae3", initial_symbol_table = "cde66f4b30777be5bbf81e86f11c7b68c5004819a4d3da246e755cd5a8683e55", inlined_ast = "f380bb5c1d258c8e957a78eee1ff9e66a8846072ae16f6b79a445735dc1b2cdb", ssa_ast = "b5be28daddc15f1c0e60b97f004ff809074f5b6943501984f3a0a577e5b6fa83", type_checked_symbol_table = "62b70f7d5bc9e5efa20b2a6611b36bbbae7707dab492fadeca3532e95ad34396", unrolled_ast = "a573efee457260e4f9a0171ba91f8c78b81cd636c53d0d0fb94bebf73c0a6ae3", unrolled_symbol_table = "62b70f7d5bc9e5efa20b2a6611b36bbbae7707dab492fadeca3532e95ad34396", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/negate_min_fail.out b/tests/expectations/compiler/integers/i8/negate_min_fail.out index 52e8cb9449..0d2bcfb34b 100644 --- a/tests/expectations/compiler/integers/i8/negate_min_fail.out +++ b/tests/expectations/compiler/integers/i8/negate_min_fail.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "a4ebf23c558ad51c1a52d068bb7ac0b76d19edf6545cb32d068ab3206f87bef4", dce_ast = "33095f06553da8f91f848bc89c68acf7a368af69f6633cd5588c4d7bfb7dc3c9", destructured_ast = "33095f06553da8f91f848bc89c68acf7a368af69f6633cd5588c4d7bfb7dc3c9", errors = "", flattened_ast = "6b69d8700688b186665b013ec5d7cfa501a128109e656b69b3ca5b1cabf0d491", initial_ast = "00d46b6760279d0f21ddca6d737a81d49d10699030ececf8d8a75e5e337cd48a", initial_symbol_table = "15f9ac444e80cc740f479cf4752dc68a63527ad3fa272f1f28d4ff819da708b2", inlined_ast = "33095f06553da8f91f848bc89c68acf7a368af69f6633cd5588c4d7bfb7dc3c9", ssa_ast = "288c9453a9eb1eee2c680b542b14313feb14ec4dd7cf361972f2a692e3b24f6b", type_checked_symbol_table = "f114ee92ebdd630b62e9704d4bb3d273faedd5513947afcd2cd6fc6cccc3c195", unrolled_ast = "00d46b6760279d0f21ddca6d737a81d49d10699030ececf8d8a75e5e337cd48a", unrolled_symbol_table = "f114ee92ebdd630b62e9704d4bb3d273faedd5513947afcd2cd6fc6cccc3c195", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + neg -128i8 into r1; + output r1 as i8.private; +""", dce_ast = "33095f06553da8f91f848bc89c68acf7a368af69f6633cd5588c4d7bfb7dc3c9", destructured_ast = "33095f06553da8f91f848bc89c68acf7a368af69f6633cd5588c4d7bfb7dc3c9", errors = "", flattened_ast = "6b69d8700688b186665b013ec5d7cfa501a128109e656b69b3ca5b1cabf0d491", initial_ast = "00d46b6760279d0f21ddca6d737a81d49d10699030ececf8d8a75e5e337cd48a", initial_symbol_table = "15f9ac444e80cc740f479cf4752dc68a63527ad3fa272f1f28d4ff819da708b2", inlined_ast = "33095f06553da8f91f848bc89c68acf7a368af69f6633cd5588c4d7bfb7dc3c9", ssa_ast = "288c9453a9eb1eee2c680b542b14313feb14ec4dd7cf361972f2a692e3b24f6b", type_checked_symbol_table = "f114ee92ebdd630b62e9704d4bb3d273faedd5513947afcd2cd6fc6cccc3c195", unrolled_ast = "00d46b6760279d0f21ddca6d737a81d49d10699030ececf8d8a75e5e337cd48a", unrolled_symbol_table = "f114ee92ebdd630b62e9704d4bb3d273faedd5513947afcd2cd6fc6cccc3c195", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/negate_zero.out b/tests/expectations/compiler/integers/i8/negate_zero.out index 6fd0a419f9..8b403c545f 100644 --- a/tests/expectations/compiler/integers/i8/negate_zero.out +++ b/tests/expectations/compiler/integers/i8/negate_zero.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "d93c33f2a15e75c32e9a604904fecc39f063d4a2a3463240b68a401105a55053", dce_ast = "0f2f88d1cb2297b8f1d074bfe9e956b6a7fddc491a11a4b8efc68105828b72a1", destructured_ast = "0f2f88d1cb2297b8f1d074bfe9e956b6a7fddc491a11a4b8efc68105828b72a1", errors = "", flattened_ast = "3f9c99370ee72bc75321f99c963cb84bcd7adcaa37d416dffad45771c020f948", initial_ast = "619e090d57542c7848adbc6820210df4a40239ea890d41d58fad37b5f2cd4a30", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "0f2f88d1cb2297b8f1d074bfe9e956b6a7fddc491a11a4b8efc68105828b72a1", ssa_ast = "16d4ca4ec665aae3f760a6bee5e4006dffda86663d629d26f3d3cdba3cad278e", type_checked_symbol_table = "08c1d52f16efbdf97bf015dcb5a6170ffac25e072839f9ac2299b8e57d93a20e", unrolled_ast = "619e090d57542c7848adbc6820210df4a40239ea890d41d58fad37b5f2cd4a30", unrolled_symbol_table = "08c1d52f16efbdf97bf015dcb5a6170ffac25e072839f9ac2299b8e57d93a20e", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + neg 0i8 into r1; + is.eq r1 0i8 into r2; + is.eq r2 r0 into r3; + output r3 as boolean.private; +""", dce_ast = "0f2f88d1cb2297b8f1d074bfe9e956b6a7fddc491a11a4b8efc68105828b72a1", destructured_ast = "0f2f88d1cb2297b8f1d074bfe9e956b6a7fddc491a11a4b8efc68105828b72a1", errors = "", flattened_ast = "3f9c99370ee72bc75321f99c963cb84bcd7adcaa37d416dffad45771c020f948", initial_ast = "619e090d57542c7848adbc6820210df4a40239ea890d41d58fad37b5f2cd4a30", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "0f2f88d1cb2297b8f1d074bfe9e956b6a7fddc491a11a4b8efc68105828b72a1", ssa_ast = "16d4ca4ec665aae3f760a6bee5e4006dffda86663d629d26f3d3cdba3cad278e", type_checked_symbol_table = "08c1d52f16efbdf97bf015dcb5a6170ffac25e072839f9ac2299b8e57d93a20e", unrolled_ast = "619e090d57542c7848adbc6820210df4a40239ea890d41d58fad37b5f2cd4a30", unrolled_symbol_table = "08c1d52f16efbdf97bf015dcb5a6170ffac25e072839f9ac2299b8e57d93a20e", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/operator_methods.out b/tests/expectations/compiler/integers/i8/operator_methods.out index 7885f816c9..a265d4a362 100644 --- a/tests/expectations/compiler/integers/i8/operator_methods.out +++ b/tests/expectations/compiler/integers/i8/operator_methods.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "faddd6204de19b830842ea34e1f218276b8e8914ecd7fdbfd4143b0f08d305c1", dce_ast = "ff0ea7839ec47f3d48d7c506cb94a84c723edf417faa9d4a3ed4042f5cf91319", destructured_ast = "b7fd5b6b4ab28f85932bfa40ccedb15baa284f4a51ce2810a161176434c3c681", errors = "", flattened_ast = "0b29c696a2066c5e0c8a5c7d997308831316e0ebf392f546c83238c3257f5999", initial_ast = "40a6e7d505f3bab72ee0168162b75b14b8561f12802436474204975b14779390", initial_symbol_table = "cde66f4b30777be5bbf81e86f11c7b68c5004819a4d3da246e755cd5a8683e55", inlined_ast = "b7fd5b6b4ab28f85932bfa40ccedb15baa284f4a51ce2810a161176434c3c681", ssa_ast = "501e9b241e2fffeccf8ca30ce6f9a376b8e44963bd0c6bbf658487bf37dc305e", type_checked_symbol_table = "72620aed6d8c589a0d79dd52eb11fabb812de499160743e78b73394c77c0c018", unrolled_ast = "40a6e7d505f3bab72ee0168162b75b14b8561f12802436474204975b14779390", unrolled_symbol_table = "72620aed6d8c589a0d79dd52eb11fabb812de499160743e78b73394c77c0c018", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + is.eq r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "ff0ea7839ec47f3d48d7c506cb94a84c723edf417faa9d4a3ed4042f5cf91319", destructured_ast = "b7fd5b6b4ab28f85932bfa40ccedb15baa284f4a51ce2810a161176434c3c681", errors = "", flattened_ast = "0b29c696a2066c5e0c8a5c7d997308831316e0ebf392f546c83238c3257f5999", initial_ast = "40a6e7d505f3bab72ee0168162b75b14b8561f12802436474204975b14779390", initial_symbol_table = "cde66f4b30777be5bbf81e86f11c7b68c5004819a4d3da246e755cd5a8683e55", inlined_ast = "b7fd5b6b4ab28f85932bfa40ccedb15baa284f4a51ce2810a161176434c3c681", ssa_ast = "501e9b241e2fffeccf8ca30ce6f9a376b8e44963bd0c6bbf658487bf37dc305e", type_checked_symbol_table = "72620aed6d8c589a0d79dd52eb11fabb812de499160743e78b73394c77c0c018", unrolled_ast = "40a6e7d505f3bab72ee0168162b75b14b8561f12802436474204975b14779390", unrolled_symbol_table = "72620aed6d8c589a0d79dd52eb11fabb812de499160743e78b73394c77c0c018", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/or.out b/tests/expectations/compiler/integers/i8/or.out index 2f484e87f0..5ca5b39a16 100644 --- a/tests/expectations/compiler/integers/i8/or.out +++ b/tests/expectations/compiler/integers/i8/or.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4ea2659376ff2503f5dbf9e6bda9c9f13fb84dec3182bb626646806f874e00eb", dce_ast = "ea0b06d1ca64206d34367385c1c19a3750fae22239a037303b626c0606c63e09", destructured_ast = "ea0b06d1ca64206d34367385c1c19a3750fae22239a037303b626c0606c63e09", errors = "", flattened_ast = "42b538284a04f9e3dda825f4f1b82efc76be9dbdc056d6298ba387d921707b59", initial_ast = "28000689cde1febdc24ecf2aa7352daaf95cae69a3c9282249a794f7fe45eb9f", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "ea0b06d1ca64206d34367385c1c19a3750fae22239a037303b626c0606c63e09", ssa_ast = "8924faa4c6649e328ca68e6c24c6a2d0eb6e83bbdcc01a95889e2fa950a06bc9", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "28000689cde1febdc24ecf2aa7352daaf95cae69a3c9282249a794f7fe45eb9f", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as i8.private; + or r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "ea0b06d1ca64206d34367385c1c19a3750fae22239a037303b626c0606c63e09", destructured_ast = "ea0b06d1ca64206d34367385c1c19a3750fae22239a037303b626c0606c63e09", errors = "", flattened_ast = "42b538284a04f9e3dda825f4f1b82efc76be9dbdc056d6298ba387d921707b59", initial_ast = "28000689cde1febdc24ecf2aa7352daaf95cae69a3c9282249a794f7fe45eb9f", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "ea0b06d1ca64206d34367385c1c19a3750fae22239a037303b626c0606c63e09", ssa_ast = "8924faa4c6649e328ca68e6c24c6a2d0eb6e83bbdcc01a95889e2fa950a06bc9", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "28000689cde1febdc24ecf2aa7352daaf95cae69a3c9282249a794f7fe45eb9f", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/pow.out b/tests/expectations/compiler/integers/i8/pow.out index 62caf8618e..2d8a3339fc 100644 --- a/tests/expectations/compiler/integers/i8/pow.out +++ b/tests/expectations/compiler/integers/i8/pow.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "edd5ec13303284be804f592351207aa0ac4c7c6e0c0b7f9a6377f8b75e0d377e", dce_ast = "be05c2dc2d82ac15f9ab9e6b83c6849846cf93fe2d817fe065bf9267dbc71627", destructured_ast = "be05c2dc2d82ac15f9ab9e6b83c6849846cf93fe2d817fe065bf9267dbc71627", errors = "", flattened_ast = "3249c8482d4341537f945d5deb9c4c634f547a674698d9324e5dd463b247e800", initial_ast = "3b9473ecefd63ac652479cc7f639ee7f5fcdcd7ef7036b84ea70e7aff73ddcc3", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "be05c2dc2d82ac15f9ab9e6b83c6849846cf93fe2d817fe065bf9267dbc71627", ssa_ast = "0cb09af29a30b87d9e67f875a36774c7765284c78ca4b7ba7c1b185b0498a09f", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "3b9473ecefd63ac652479cc7f639ee7f5fcdcd7ef7036b84ea70e7aff73ddcc3", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as i8.private; + pow r0 2u8 into r3; + pow r0 2u16 into r4; + is.eq r3 r4 into r5; + pow r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "be05c2dc2d82ac15f9ab9e6b83c6849846cf93fe2d817fe065bf9267dbc71627", destructured_ast = "be05c2dc2d82ac15f9ab9e6b83c6849846cf93fe2d817fe065bf9267dbc71627", errors = "", flattened_ast = "3249c8482d4341537f945d5deb9c4c634f547a674698d9324e5dd463b247e800", initial_ast = "3b9473ecefd63ac652479cc7f639ee7f5fcdcd7ef7036b84ea70e7aff73ddcc3", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "be05c2dc2d82ac15f9ab9e6b83c6849846cf93fe2d817fe065bf9267dbc71627", ssa_ast = "0cb09af29a30b87d9e67f875a36774c7765284c78ca4b7ba7c1b185b0498a09f", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "3b9473ecefd63ac652479cc7f639ee7f5fcdcd7ef7036b84ea70e7aff73ddcc3", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/rem.out b/tests/expectations/compiler/integers/i8/rem.out index 1c23cbf3a1..708b3d6bcf 100644 --- a/tests/expectations/compiler/integers/i8/rem.out +++ b/tests/expectations/compiler/integers/i8/rem.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "34eda0edb2d4048d2b3e2ea19e929f063903b4ca94d90f8a0e1525a0bb2d0134", dce_ast = "3c6d5f7e634f5ea0aa369751d8508fe8927e5a1a9a98ebdfa8bc11fafe207c97", destructured_ast = "3c6d5f7e634f5ea0aa369751d8508fe8927e5a1a9a98ebdfa8bc11fafe207c97", errors = "", flattened_ast = "89cf57a9df4ab5915df5b09abd02b753e8913789774c086a6ab5b75e98b15bf7", initial_ast = "790ca6db97a376caee5d58993a1835f659484895eda5175eb818dea5ba5705d2", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "3c6d5f7e634f5ea0aa369751d8508fe8927e5a1a9a98ebdfa8bc11fafe207c97", ssa_ast = "dd475da4f4a9868997deecfff1f33e84b7b506daf53082f1ddeb1bd75f0a0292", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "790ca6db97a376caee5d58993a1835f659484895eda5175eb818dea5ba5705d2", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as i8.private; + rem r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "3c6d5f7e634f5ea0aa369751d8508fe8927e5a1a9a98ebdfa8bc11fafe207c97", destructured_ast = "3c6d5f7e634f5ea0aa369751d8508fe8927e5a1a9a98ebdfa8bc11fafe207c97", errors = "", flattened_ast = "89cf57a9df4ab5915df5b09abd02b753e8913789774c086a6ab5b75e98b15bf7", initial_ast = "790ca6db97a376caee5d58993a1835f659484895eda5175eb818dea5ba5705d2", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "3c6d5f7e634f5ea0aa369751d8508fe8927e5a1a9a98ebdfa8bc11fafe207c97", ssa_ast = "dd475da4f4a9868997deecfff1f33e84b7b506daf53082f1ddeb1bd75f0a0292", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "790ca6db97a376caee5d58993a1835f659484895eda5175eb818dea5ba5705d2", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/shl.out b/tests/expectations/compiler/integers/i8/shl.out index 68aba0a0bd..84b2065ac2 100644 --- a/tests/expectations/compiler/integers/i8/shl.out +++ b/tests/expectations/compiler/integers/i8/shl.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "307c17323af8fd5de808a828e634ce97419a0ba67815102016fab6c883b7e052", dce_ast = "9d8a48cc561382b3119e92806bdb95c540f5fc63a11f1b2c2d4b08f9a4c264cc", destructured_ast = "9d8a48cc561382b3119e92806bdb95c540f5fc63a11f1b2c2d4b08f9a4c264cc", errors = "", flattened_ast = "e8f1bc558ef6d8a9aa3f80c4d987d68d8bbddbf2c5f568ad1bf1b50064ddea60", initial_ast = "8de158e1b7900d050661761fae0634612f68f5a82d57044a31c06aa73469d2ef", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "9d8a48cc561382b3119e92806bdb95c540f5fc63a11f1b2c2d4b08f9a4c264cc", ssa_ast = "21ac6159d8833d72c0d63f28b69ccee7f79a8582a2848421556bced3d7469840", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "8de158e1b7900d050661761fae0634612f68f5a82d57044a31c06aa73469d2ef", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as i8.private; + shl r0 2u8 into r3; + shl r0 2u16 into r4; + is.eq r3 r4 into r5; + shl r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "9d8a48cc561382b3119e92806bdb95c540f5fc63a11f1b2c2d4b08f9a4c264cc", destructured_ast = "9d8a48cc561382b3119e92806bdb95c540f5fc63a11f1b2c2d4b08f9a4c264cc", errors = "", flattened_ast = "e8f1bc558ef6d8a9aa3f80c4d987d68d8bbddbf2c5f568ad1bf1b50064ddea60", initial_ast = "8de158e1b7900d050661761fae0634612f68f5a82d57044a31c06aa73469d2ef", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "9d8a48cc561382b3119e92806bdb95c540f5fc63a11f1b2c2d4b08f9a4c264cc", ssa_ast = "21ac6159d8833d72c0d63f28b69ccee7f79a8582a2848421556bced3d7469840", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "8de158e1b7900d050661761fae0634612f68f5a82d57044a31c06aa73469d2ef", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/shr.out b/tests/expectations/compiler/integers/i8/shr.out index a2955f8c74..6827231b9c 100644 --- a/tests/expectations/compiler/integers/i8/shr.out +++ b/tests/expectations/compiler/integers/i8/shr.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e0110365aec2e78cbf8f7accb85b8c7e36d2c606cdd6a4cafd02a2b4dc7dfe38", dce_ast = "af35294c8fecce341e5d0322bc08132a7e14b4a56070c297f88419ae38a536bd", destructured_ast = "af35294c8fecce341e5d0322bc08132a7e14b4a56070c297f88419ae38a536bd", errors = "", flattened_ast = "28980dc5e410e1168b08e6cd221d5fdf9c569d0fc1dac5bb1433fab76155862f", initial_ast = "e873a948ea2212c65702eeef784acc23ec190535162bc9f0b23a92b89f1ae48f", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "af35294c8fecce341e5d0322bc08132a7e14b4a56070c297f88419ae38a536bd", ssa_ast = "6b6996026d9181a251b760b1722e354dfe40e7971e755e5adb55dbdda7886275", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "e873a948ea2212c65702eeef784acc23ec190535162bc9f0b23a92b89f1ae48f", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as i8.private; + shr r0 2u8 into r3; + shr r0 2u16 into r4; + is.eq r3 r4 into r5; + shr r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "af35294c8fecce341e5d0322bc08132a7e14b4a56070c297f88419ae38a536bd", destructured_ast = "af35294c8fecce341e5d0322bc08132a7e14b4a56070c297f88419ae38a536bd", errors = "", flattened_ast = "28980dc5e410e1168b08e6cd221d5fdf9c569d0fc1dac5bb1433fab76155862f", initial_ast = "e873a948ea2212c65702eeef784acc23ec190535162bc9f0b23a92b89f1ae48f", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "af35294c8fecce341e5d0322bc08132a7e14b4a56070c297f88419ae38a536bd", ssa_ast = "6b6996026d9181a251b760b1722e354dfe40e7971e755e5adb55dbdda7886275", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "e873a948ea2212c65702eeef784acc23ec190535162bc9f0b23a92b89f1ae48f", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/sub.out b/tests/expectations/compiler/integers/i8/sub.out index 511ef4fe08..dd947321af 100644 --- a/tests/expectations/compiler/integers/i8/sub.out +++ b/tests/expectations/compiler/integers/i8/sub.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "6638d0f711e011432b8371bf648e0903f22612d062139a650ebe4d75783a8393", dce_ast = "18751b6a9563eeac8de77864c1a4393c90187aae79168addfadbeb0a049850e6", destructured_ast = "18751b6a9563eeac8de77864c1a4393c90187aae79168addfadbeb0a049850e6", errors = "", flattened_ast = "ad984f66575dfb99ca5859ac1eff1ab0dcb3bd619e01bb8a231a81d5c16ab566", initial_ast = "7bab03f89dddb73c6c58b6ab1033668210f56e83b546b52c6d8115ffbe7ba4b9", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "18751b6a9563eeac8de77864c1a4393c90187aae79168addfadbeb0a049850e6", ssa_ast = "6a6a6e42c99d148a2752ad5c6f99f49b84e419423e890151c3123b3fcef0d934", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "7bab03f89dddb73c6c58b6ab1033668210f56e83b546b52c6d8115ffbe7ba4b9", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + input r2 as i8.private; + sub r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "18751b6a9563eeac8de77864c1a4393c90187aae79168addfadbeb0a049850e6", destructured_ast = "18751b6a9563eeac8de77864c1a4393c90187aae79168addfadbeb0a049850e6", errors = "", flattened_ast = "ad984f66575dfb99ca5859ac1eff1ab0dcb3bd619e01bb8a231a81d5c16ab566", initial_ast = "7bab03f89dddb73c6c58b6ab1033668210f56e83b546b52c6d8115ffbe7ba4b9", initial_symbol_table = "21e90fe7d6f31f80a2c7e2c9d8eda0b9f13c6b0f810a2eaa86441805fe91f4fa", inlined_ast = "18751b6a9563eeac8de77864c1a4393c90187aae79168addfadbeb0a049850e6", ssa_ast = "6a6a6e42c99d148a2752ad5c6f99f49b84e419423e890151c3123b3fcef0d934", type_checked_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", unrolled_ast = "7bab03f89dddb73c6c58b6ab1033668210f56e83b546b52c6d8115ffbe7ba4b9", unrolled_symbol_table = "cce30978c007083c138587349358f116ae192df25f14060c376ded79d4e00674", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/ternary.out b/tests/expectations/compiler/integers/i8/ternary.out index 1683ce2425..0b452ea960 100644 --- a/tests/expectations/compiler/integers/i8/ternary.out +++ b/tests/expectations/compiler/integers/i8/ternary.out @@ -1,3 +1,16 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "61eac30d1e0b3a4fa0357855b11e228b012203b9cd2f814c0faa660a2be5996d", dce_ast = "d95c83881b00fa074b95a90fc36d2886bbcc4892b08b467c0b1c8569d8303a3b", destructured_ast = "d95c83881b00fa074b95a90fc36d2886bbcc4892b08b467c0b1c8569d8303a3b", errors = "", flattened_ast = "059479635a590362fd8bdef355165b9996190c2ad13bb986befe8302fd392bb8", initial_ast = "60adde5bf7e2364454a7d3b4f52286f35892a3872065c68f443ddfccd48c4dd7", initial_symbol_table = "634b2768785c05c66dcda182dfd1c64b4b3861966cad3e6e666f7b1cf40fe35a", inlined_ast = "d95c83881b00fa074b95a90fc36d2886bbcc4892b08b467c0b1c8569d8303a3b", ssa_ast = "94c44fed7fd02dac3273323118e03cf914016612d833bd095e134c34c26d1dd1", type_checked_symbol_table = "0ed12672775b971c53c6240c96b2751dc600c55e48a9ae1673f4635904b7ec47", unrolled_ast = "60adde5bf7e2364454a7d3b4f52286f35892a3872065c68f443ddfccd48c4dd7", unrolled_symbol_table = "0ed12672775b971c53c6240c96b2751dc600c55e48a9ae1673f4635904b7ec47", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + input r1 as i8.private; + input r2 as i8.private; + input r3 as i8.private; + ternary r0 r1 r2 into r4; + is.eq r4 r3 into r5; + output r5 as boolean.private; +""", dce_ast = "d95c83881b00fa074b95a90fc36d2886bbcc4892b08b467c0b1c8569d8303a3b", destructured_ast = "d95c83881b00fa074b95a90fc36d2886bbcc4892b08b467c0b1c8569d8303a3b", errors = "", flattened_ast = "059479635a590362fd8bdef355165b9996190c2ad13bb986befe8302fd392bb8", initial_ast = "60adde5bf7e2364454a7d3b4f52286f35892a3872065c68f443ddfccd48c4dd7", initial_symbol_table = "634b2768785c05c66dcda182dfd1c64b4b3861966cad3e6e666f7b1cf40fe35a", inlined_ast = "d95c83881b00fa074b95a90fc36d2886bbcc4892b08b467c0b1c8569d8303a3b", ssa_ast = "94c44fed7fd02dac3273323118e03cf914016612d833bd095e134c34c26d1dd1", type_checked_symbol_table = "0ed12672775b971c53c6240c96b2751dc600c55e48a9ae1673f4635904b7ec47", unrolled_ast = "60adde5bf7e2364454a7d3b4f52286f35892a3872065c68f443ddfccd48c4dd7", unrolled_symbol_table = "0ed12672775b971c53c6240c96b2751dc600c55e48a9ae1673f4635904b7ec47", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/i8/xor.out b/tests/expectations/compiler/integers/i8/xor.out index 1a23af94b6..635721c6c2 100644 --- a/tests/expectations/compiler/integers/i8/xor.out +++ b/tests/expectations/compiler/integers/i8/xor.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "219e0ef5cb7c0ac1ecb9541920637d11e5f48c5e52adab2060e6ed389647eee4", dce_ast = "f3990af79882485cfd8217ff798b72128968c7d2d303a93c98cafbdb2c438f79", destructured_ast = "f3990af79882485cfd8217ff798b72128968c7d2d303a93c98cafbdb2c438f79", errors = "", flattened_ast = "fc677cb4bee4ec7b6d9e7de234c3ed93dbc26ccf4e7430bcc748fe8cf8def92d", initial_ast = "32fbb4c6f9df36028b9f9a134c3ebfe57f4d56224b844d7c90af0a61a858abbf", initial_symbol_table = "1b7f3cd480494050dfb820aebc0231f7a7d435dde4781101be2ae532c52834bb", inlined_ast = "f3990af79882485cfd8217ff798b72128968c7d2d303a93c98cafbdb2c438f79", ssa_ast = "35524d9ad7684059c47302c97fd78c259352211e37fa3a1d1938a83bbbb6581f", type_checked_symbol_table = "31541aba8454f5d35c17d3b3e3893b07f6c183758f6e2825f04da69e4f4d1f01", unrolled_ast = "32fbb4c6f9df36028b9f9a134c3ebfe57f4d56224b844d7c90af0a61a858abbf", unrolled_symbol_table = "31541aba8454f5d35c17d3b3e3893b07f6c183758f6e2825f04da69e4f4d1f01", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as i8.private; + input r1 as i8.private; + xor r0 r1 into r2; + output r2 as i8.private; +""", dce_ast = "f3990af79882485cfd8217ff798b72128968c7d2d303a93c98cafbdb2c438f79", destructured_ast = "f3990af79882485cfd8217ff798b72128968c7d2d303a93c98cafbdb2c438f79", errors = "", flattened_ast = "fc677cb4bee4ec7b6d9e7de234c3ed93dbc26ccf4e7430bcc748fe8cf8def92d", initial_ast = "32fbb4c6f9df36028b9f9a134c3ebfe57f4d56224b844d7c90af0a61a858abbf", initial_symbol_table = "1b7f3cd480494050dfb820aebc0231f7a7d435dde4781101be2ae532c52834bb", inlined_ast = "f3990af79882485cfd8217ff798b72128968c7d2d303a93c98cafbdb2c438f79", ssa_ast = "35524d9ad7684059c47302c97fd78c259352211e37fa3a1d1938a83bbbb6581f", type_checked_symbol_table = "31541aba8454f5d35c17d3b3e3893b07f6c183758f6e2825f04da69e4f4d1f01", unrolled_ast = "32fbb4c6f9df36028b9f9a134c3ebfe57f4d56224b844d7c90af0a61a858abbf", unrolled_symbol_table = "31541aba8454f5d35c17d3b3e3893b07f6c183758f6e2825f04da69e4f4d1f01", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/add.out b/tests/expectations/compiler/integers/u128/add.out index 2b22b1ff83..2cbcc39d18 100644 --- a/tests/expectations/compiler/integers/u128/add.out +++ b/tests/expectations/compiler/integers/u128/add.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "2d327c3f6b7f23cc5f8e292ef00cf94df2fa9afad2bc8fe26ca28dc6f338d2cc", dce_ast = "ea5a44bd55844e64e76a59f244352cfe20c7b2eb17bc1d2efcb34cdd938b0048", destructured_ast = "ea5a44bd55844e64e76a59f244352cfe20c7b2eb17bc1d2efcb34cdd938b0048", errors = "", flattened_ast = "e243f82d11e96c47e83665996c8a2b926319539da6f8aaf36aa46ed0f6455cea", initial_ast = "06e22df9c4c860e037e401390ade75ff633b29f25a8b04285ca27b24ebbfa03b", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "ea5a44bd55844e64e76a59f244352cfe20c7b2eb17bc1d2efcb34cdd938b0048", ssa_ast = "7e4b2bbad73a438a6305ca4ab8e15f3c3dc2dbc166a47787d03ca8155e8aad62", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "06e22df9c4c860e037e401390ade75ff633b29f25a8b04285ca27b24ebbfa03b", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as u128.private; + add r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "ea5a44bd55844e64e76a59f244352cfe20c7b2eb17bc1d2efcb34cdd938b0048", destructured_ast = "ea5a44bd55844e64e76a59f244352cfe20c7b2eb17bc1d2efcb34cdd938b0048", errors = "", flattened_ast = "e243f82d11e96c47e83665996c8a2b926319539da6f8aaf36aa46ed0f6455cea", initial_ast = "06e22df9c4c860e037e401390ade75ff633b29f25a8b04285ca27b24ebbfa03b", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "ea5a44bd55844e64e76a59f244352cfe20c7b2eb17bc1d2efcb34cdd938b0048", ssa_ast = "7e4b2bbad73a438a6305ca4ab8e15f3c3dc2dbc166a47787d03ca8155e8aad62", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "06e22df9c4c860e037e401390ade75ff633b29f25a8b04285ca27b24ebbfa03b", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/and.out b/tests/expectations/compiler/integers/u128/and.out index 37d261cf70..eb5d36e366 100644 --- a/tests/expectations/compiler/integers/u128/and.out +++ b/tests/expectations/compiler/integers/u128/and.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "5400590002c3acc5121a18ff585e8ca17b695e7486ea09a61cb2520dfd09f413", dce_ast = "72b2301674f03d70d4654b72ff51f1e79e6319045132f6c95da38b17e1465f99", destructured_ast = "72b2301674f03d70d4654b72ff51f1e79e6319045132f6c95da38b17e1465f99", errors = "", flattened_ast = "e279be02a678e9216ebf873682243c11d3fc6780afed29739d24e541f701cacb", initial_ast = "76749861903281b19dab3e7b6e544442e58edc12d1e5c3a400438b7bf1a026f6", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "72b2301674f03d70d4654b72ff51f1e79e6319045132f6c95da38b17e1465f99", ssa_ast = "2f04220dc17aee851dff4e2c77457e0f1289a10aa4d5b9d6b84799b7d2df260c", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "76749861903281b19dab3e7b6e544442e58edc12d1e5c3a400438b7bf1a026f6", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as u128.private; + and r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "72b2301674f03d70d4654b72ff51f1e79e6319045132f6c95da38b17e1465f99", destructured_ast = "72b2301674f03d70d4654b72ff51f1e79e6319045132f6c95da38b17e1465f99", errors = "", flattened_ast = "e279be02a678e9216ebf873682243c11d3fc6780afed29739d24e541f701cacb", initial_ast = "76749861903281b19dab3e7b6e544442e58edc12d1e5c3a400438b7bf1a026f6", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "72b2301674f03d70d4654b72ff51f1e79e6319045132f6c95da38b17e1465f99", ssa_ast = "2f04220dc17aee851dff4e2c77457e0f1289a10aa4d5b9d6b84799b7d2df260c", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "76749861903281b19dab3e7b6e544442e58edc12d1e5c3a400438b7bf1a026f6", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/console_assert.out b/tests/expectations/compiler/integers/u128/console_assert.out index 05c2a6be67..c659baebe2 100644 --- a/tests/expectations/compiler/integers/u128/console_assert.out +++ b/tests/expectations/compiler/integers/u128/console_assert.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "0d83f401cd41e95e3c0df3dc876c4f162207f2073c8e550beca92e21ef07a3b9", dce_ast = "4924fe5d742b6c0ec06a6da2cd09ceddf201a40d43b89c91c36c9b6e9c6d0c72", destructured_ast = "4924fe5d742b6c0ec06a6da2cd09ceddf201a40d43b89c91c36c9b6e9c6d0c72", errors = "", flattened_ast = "3219b24e66c04e5c9a997e7644639b347be8257ec0d7e6e48bef007953f4998c", initial_ast = "bbe99c2f4d95f4c6ee0ed4c3b6ca46cedafbeae624cbd7de34284f907a3c3804", initial_symbol_table = "9404c76b806825d1ca1812b7c9e29ff84afa1859ce9585408e8d620ff5a88148", inlined_ast = "4924fe5d742b6c0ec06a6da2cd09ceddf201a40d43b89c91c36c9b6e9c6d0c72", ssa_ast = "3d8f320b88d69cb6f2a31b69bda73268904c596145c3701da3a5c71f85e02c16", type_checked_symbol_table = "ce79998db03dc953d49b166db2fa5ce5c2eca7e3df0f936b1aedb04c6e1b9462", unrolled_ast = "bbe99c2f4d95f4c6ee0ed4c3b6ca46cedafbeae624cbd7de34284f907a3c3804", unrolled_symbol_table = "ce79998db03dc953d49b166db2fa5ce5c2eca7e3df0f936b1aedb04c6e1b9462", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + is.eq r0 r1 into r2; + assert.eq r2 true; + output r2 as boolean.private; +""", dce_ast = "4924fe5d742b6c0ec06a6da2cd09ceddf201a40d43b89c91c36c9b6e9c6d0c72", destructured_ast = "4924fe5d742b6c0ec06a6da2cd09ceddf201a40d43b89c91c36c9b6e9c6d0c72", errors = "", flattened_ast = "3219b24e66c04e5c9a997e7644639b347be8257ec0d7e6e48bef007953f4998c", initial_ast = "bbe99c2f4d95f4c6ee0ed4c3b6ca46cedafbeae624cbd7de34284f907a3c3804", initial_symbol_table = "9404c76b806825d1ca1812b7c9e29ff84afa1859ce9585408e8d620ff5a88148", inlined_ast = "4924fe5d742b6c0ec06a6da2cd09ceddf201a40d43b89c91c36c9b6e9c6d0c72", ssa_ast = "3d8f320b88d69cb6f2a31b69bda73268904c596145c3701da3a5c71f85e02c16", type_checked_symbol_table = "ce79998db03dc953d49b166db2fa5ce5c2eca7e3df0f936b1aedb04c6e1b9462", unrolled_ast = "bbe99c2f4d95f4c6ee0ed4c3b6ca46cedafbeae624cbd7de34284f907a3c3804", unrolled_symbol_table = "ce79998db03dc953d49b166db2fa5ce5c2eca7e3df0f936b1aedb04c6e1b9462", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/div.out b/tests/expectations/compiler/integers/u128/div.out index e91a33ae30..64744f2ff2 100644 --- a/tests/expectations/compiler/integers/u128/div.out +++ b/tests/expectations/compiler/integers/u128/div.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "1ca018f3c002538884233e7f1e7dee0584a346f54675e78fb69af2c90d7d32e8", dce_ast = "7236b5a3dca767a2f1e591b1779fcc6a250d1a0b25dbb5116440d4f6c97236ce", destructured_ast = "7236b5a3dca767a2f1e591b1779fcc6a250d1a0b25dbb5116440d4f6c97236ce", errors = "", flattened_ast = "f01e02dc073af7c06aaf46c7cf5005d888f7227beece09717b5fe5f98bd4e874", initial_ast = "8d19b3874ae970e39557a45194b6683807e32580b98ee6cbc1558bd5ecfaa69a", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "7236b5a3dca767a2f1e591b1779fcc6a250d1a0b25dbb5116440d4f6c97236ce", ssa_ast = "2c432790f8363178978892bf206c7846c8ecaecbf0edace64ad639cab4c38548", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "8d19b3874ae970e39557a45194b6683807e32580b98ee6cbc1558bd5ecfaa69a", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as u128.private; + div r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "7236b5a3dca767a2f1e591b1779fcc6a250d1a0b25dbb5116440d4f6c97236ce", destructured_ast = "7236b5a3dca767a2f1e591b1779fcc6a250d1a0b25dbb5116440d4f6c97236ce", errors = "", flattened_ast = "f01e02dc073af7c06aaf46c7cf5005d888f7227beece09717b5fe5f98bd4e874", initial_ast = "8d19b3874ae970e39557a45194b6683807e32580b98ee6cbc1558bd5ecfaa69a", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "7236b5a3dca767a2f1e591b1779fcc6a250d1a0b25dbb5116440d4f6c97236ce", ssa_ast = "2c432790f8363178978892bf206c7846c8ecaecbf0edace64ad639cab4c38548", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "8d19b3874ae970e39557a45194b6683807e32580b98ee6cbc1558bd5ecfaa69a", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/eq.out b/tests/expectations/compiler/integers/u128/eq.out index deb82664e0..edb8c94b36 100644 --- a/tests/expectations/compiler/integers/u128/eq.out +++ b/tests/expectations/compiler/integers/u128/eq.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "38011d05593d9cf5baa1fca933e8155d3154ad934a4b0ae9d67111b324875f86", dce_ast = "1a0890217a10e6aa8f2459d051338aeec840825c26a5516d46eec34c17ccff8f", destructured_ast = "1a0890217a10e6aa8f2459d051338aeec840825c26a5516d46eec34c17ccff8f", errors = "", flattened_ast = "56322624915988eb2dc8456fe647e99fe4a668595a9ec60bfff51e08c1ac52b8", initial_ast = "b182735c2705eb89613de7e2be800b3884f7b465c0dd0dd6e850164e005c73af", initial_symbol_table = "64a7cbc0a3c050206ad6948c90eccb6ec28e0a1cbeed1f1a8974562d024b6941", inlined_ast = "1a0890217a10e6aa8f2459d051338aeec840825c26a5516d46eec34c17ccff8f", ssa_ast = "2a467a2a311e913409f5f797fab2111a3ea57e4f846e6c264c15b1d228ec52a3", type_checked_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", unrolled_ast = "b182735c2705eb89613de7e2be800b3884f7b465c0dd0dd6e850164e005c73af", unrolled_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as boolean.private; + is.eq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "1a0890217a10e6aa8f2459d051338aeec840825c26a5516d46eec34c17ccff8f", destructured_ast = "1a0890217a10e6aa8f2459d051338aeec840825c26a5516d46eec34c17ccff8f", errors = "", flattened_ast = "56322624915988eb2dc8456fe647e99fe4a668595a9ec60bfff51e08c1ac52b8", initial_ast = "b182735c2705eb89613de7e2be800b3884f7b465c0dd0dd6e850164e005c73af", initial_symbol_table = "64a7cbc0a3c050206ad6948c90eccb6ec28e0a1cbeed1f1a8974562d024b6941", inlined_ast = "1a0890217a10e6aa8f2459d051338aeec840825c26a5516d46eec34c17ccff8f", ssa_ast = "2a467a2a311e913409f5f797fab2111a3ea57e4f846e6c264c15b1d228ec52a3", type_checked_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", unrolled_ast = "b182735c2705eb89613de7e2be800b3884f7b465c0dd0dd6e850164e005c73af", unrolled_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/ge.out b/tests/expectations/compiler/integers/u128/ge.out index 05ed509d65..71d25f6a92 100644 --- a/tests/expectations/compiler/integers/u128/ge.out +++ b/tests/expectations/compiler/integers/u128/ge.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "92057edeaefa3fca292e9539868a1d2004a4ff6161d837428e1acff9ae8e0298", dce_ast = "afb68c51e8a0d2b7d23b18dedbc72850638e4ba5f59fa90f33631c20a2f44201", destructured_ast = "afb68c51e8a0d2b7d23b18dedbc72850638e4ba5f59fa90f33631c20a2f44201", errors = "", flattened_ast = "0383174f697506450621724d3906e697b73c378e6520c70031192ff81cb29ee5", initial_ast = "d9d94d74de451462e38997e3f8d00c3b607db53415684e46eeb6768d0a4c4e0b", initial_symbol_table = "64a7cbc0a3c050206ad6948c90eccb6ec28e0a1cbeed1f1a8974562d024b6941", inlined_ast = "afb68c51e8a0d2b7d23b18dedbc72850638e4ba5f59fa90f33631c20a2f44201", ssa_ast = "2d0729a4690fdb7e9b64142e0187fcab7468b78633f852cbd9352031a0480f06", type_checked_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", unrolled_ast = "d9d94d74de451462e38997e3f8d00c3b607db53415684e46eeb6768d0a4c4e0b", unrolled_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as boolean.private; + gte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "afb68c51e8a0d2b7d23b18dedbc72850638e4ba5f59fa90f33631c20a2f44201", destructured_ast = "afb68c51e8a0d2b7d23b18dedbc72850638e4ba5f59fa90f33631c20a2f44201", errors = "", flattened_ast = "0383174f697506450621724d3906e697b73c378e6520c70031192ff81cb29ee5", initial_ast = "d9d94d74de451462e38997e3f8d00c3b607db53415684e46eeb6768d0a4c4e0b", initial_symbol_table = "64a7cbc0a3c050206ad6948c90eccb6ec28e0a1cbeed1f1a8974562d024b6941", inlined_ast = "afb68c51e8a0d2b7d23b18dedbc72850638e4ba5f59fa90f33631c20a2f44201", ssa_ast = "2d0729a4690fdb7e9b64142e0187fcab7468b78633f852cbd9352031a0480f06", type_checked_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", unrolled_ast = "d9d94d74de451462e38997e3f8d00c3b607db53415684e46eeb6768d0a4c4e0b", unrolled_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/gt.out b/tests/expectations/compiler/integers/u128/gt.out index 876e292eee..14e743a15f 100644 --- a/tests/expectations/compiler/integers/u128/gt.out +++ b/tests/expectations/compiler/integers/u128/gt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "14a4cbf43177cac769cf5e4befa2689f01a6755871f5fd288664ffff22e498c5", dce_ast = "cc3bf7da13c04c8dd573a3b7ddd992547537535df68e52e0bceec3211e38295c", destructured_ast = "cc3bf7da13c04c8dd573a3b7ddd992547537535df68e52e0bceec3211e38295c", errors = "", flattened_ast = "f69f52100df30c4a88f2a8b0c93e0f2054d3cb93752b71d1758ecba94814056b", initial_ast = "7400a1e3a0f8a630b7ed61dccc42960f9231720a6764fe707bba330abeee73b9", initial_symbol_table = "64a7cbc0a3c050206ad6948c90eccb6ec28e0a1cbeed1f1a8974562d024b6941", inlined_ast = "cc3bf7da13c04c8dd573a3b7ddd992547537535df68e52e0bceec3211e38295c", ssa_ast = "fa8e6842c09bb2e8d4cbf9fd56b2154ee9b6ed8cd750f74ea84776bb5863565e", type_checked_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", unrolled_ast = "7400a1e3a0f8a630b7ed61dccc42960f9231720a6764fe707bba330abeee73b9", unrolled_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as boolean.private; + gt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "cc3bf7da13c04c8dd573a3b7ddd992547537535df68e52e0bceec3211e38295c", destructured_ast = "cc3bf7da13c04c8dd573a3b7ddd992547537535df68e52e0bceec3211e38295c", errors = "", flattened_ast = "f69f52100df30c4a88f2a8b0c93e0f2054d3cb93752b71d1758ecba94814056b", initial_ast = "7400a1e3a0f8a630b7ed61dccc42960f9231720a6764fe707bba330abeee73b9", initial_symbol_table = "64a7cbc0a3c050206ad6948c90eccb6ec28e0a1cbeed1f1a8974562d024b6941", inlined_ast = "cc3bf7da13c04c8dd573a3b7ddd992547537535df68e52e0bceec3211e38295c", ssa_ast = "fa8e6842c09bb2e8d4cbf9fd56b2154ee9b6ed8cd750f74ea84776bb5863565e", type_checked_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", unrolled_ast = "7400a1e3a0f8a630b7ed61dccc42960f9231720a6764fe707bba330abeee73b9", unrolled_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/hex_and_bin.out b/tests/expectations/compiler/integers/u128/hex_and_bin.out index dc2b6d7ccc..a5eeb54fe1 100644 --- a/tests/expectations/compiler/integers/u128/hex_and_bin.out +++ b/tests/expectations/compiler/integers/u128/hex_and_bin.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "82dd565867bf6030a6f9522fb0cd8e746d4c9ab5cd126fee6bf24b3f3ee210c6", dce_ast = "04e6742406ee38042a22e02f0eb9cb3012758c9c3f4d32ef67e976f15c958283", destructured_ast = "04e6742406ee38042a22e02f0eb9cb3012758c9c3f4d32ef67e976f15c958283", errors = "", flattened_ast = "2c68ce2e5dc1d0a10cb5d89602ca4f51a6d300b42e8fe23eb08163b7d1f3eaca", initial_ast = "ea2d4e0f8cad656cba8604d765d5094b4a72aa2b5ce13057b8700a669117f279", initial_symbol_table = "d900dfe2093ee00a1f8dbfe32766f6714c19e7aa625af411c14f3e1e4ace62d5", inlined_ast = "04e6742406ee38042a22e02f0eb9cb3012758c9c3f4d32ef67e976f15c958283", ssa_ast = "72472d8b6907245f07f890263095ffcac1e321306511a59ceb34dd8139c28265", type_checked_symbol_table = "7f9f635729dc71d9463d8a943f79216857dd19cea5770713ab474a9f37aa7604", unrolled_ast = "ea2d4e0f8cad656cba8604d765d5094b4a72aa2b5ce13057b8700a669117f279", unrolled_symbol_table = "7f9f635729dc71d9463d8a943f79216857dd19cea5770713ab474a9f37aa7604", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as u128.private; + is.eq r0 127u128 into r3; + is.eq r1 27u128 into r4; + and r3 r4 into r5; + is.eq r2 21u128 into r6; + and r5 r6 into r7; + output r7 as boolean.private; +""", dce_ast = "04e6742406ee38042a22e02f0eb9cb3012758c9c3f4d32ef67e976f15c958283", destructured_ast = "04e6742406ee38042a22e02f0eb9cb3012758c9c3f4d32ef67e976f15c958283", errors = "", flattened_ast = "2c68ce2e5dc1d0a10cb5d89602ca4f51a6d300b42e8fe23eb08163b7d1f3eaca", initial_ast = "ea2d4e0f8cad656cba8604d765d5094b4a72aa2b5ce13057b8700a669117f279", initial_symbol_table = "d900dfe2093ee00a1f8dbfe32766f6714c19e7aa625af411c14f3e1e4ace62d5", inlined_ast = "04e6742406ee38042a22e02f0eb9cb3012758c9c3f4d32ef67e976f15c958283", ssa_ast = "72472d8b6907245f07f890263095ffcac1e321306511a59ceb34dd8139c28265", type_checked_symbol_table = "7f9f635729dc71d9463d8a943f79216857dd19cea5770713ab474a9f37aa7604", unrolled_ast = "ea2d4e0f8cad656cba8604d765d5094b4a72aa2b5ce13057b8700a669117f279", unrolled_symbol_table = "7f9f635729dc71d9463d8a943f79216857dd19cea5770713ab474a9f37aa7604", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/le.out b/tests/expectations/compiler/integers/u128/le.out index e59dab250b..90f06d1fd6 100644 --- a/tests/expectations/compiler/integers/u128/le.out +++ b/tests/expectations/compiler/integers/u128/le.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "6a2f064cee58782422db7fc88c4395f7e18281c9bf22e8b7546a054712482d8e", dce_ast = "cf992d3a620a1bdd5866165ffa47b6b5f81db32a30037948eb5384ab4da07d9b", destructured_ast = "cf992d3a620a1bdd5866165ffa47b6b5f81db32a30037948eb5384ab4da07d9b", errors = "", flattened_ast = "13c9473632dba6262c5e25fec7815c8d3a270c23879a58f11068eac64630b169", initial_ast = "4b9a54bbc841fc722911e6184211bd06fea233dbacf9654ff60de53ed1828fde", initial_symbol_table = "64a7cbc0a3c050206ad6948c90eccb6ec28e0a1cbeed1f1a8974562d024b6941", inlined_ast = "cf992d3a620a1bdd5866165ffa47b6b5f81db32a30037948eb5384ab4da07d9b", ssa_ast = "b806245da8ff0e71f7ef7649150774b86f688322b317503bea36fe03903bac2a", type_checked_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", unrolled_ast = "4b9a54bbc841fc722911e6184211bd06fea233dbacf9654ff60de53ed1828fde", unrolled_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as boolean.private; + lte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "cf992d3a620a1bdd5866165ffa47b6b5f81db32a30037948eb5384ab4da07d9b", destructured_ast = "cf992d3a620a1bdd5866165ffa47b6b5f81db32a30037948eb5384ab4da07d9b", errors = "", flattened_ast = "13c9473632dba6262c5e25fec7815c8d3a270c23879a58f11068eac64630b169", initial_ast = "4b9a54bbc841fc722911e6184211bd06fea233dbacf9654ff60de53ed1828fde", initial_symbol_table = "64a7cbc0a3c050206ad6948c90eccb6ec28e0a1cbeed1f1a8974562d024b6941", inlined_ast = "cf992d3a620a1bdd5866165ffa47b6b5f81db32a30037948eb5384ab4da07d9b", ssa_ast = "b806245da8ff0e71f7ef7649150774b86f688322b317503bea36fe03903bac2a", type_checked_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", unrolled_ast = "4b9a54bbc841fc722911e6184211bd06fea233dbacf9654ff60de53ed1828fde", unrolled_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/lt.out b/tests/expectations/compiler/integers/u128/lt.out index 29a2620b9e..f80c051d12 100644 --- a/tests/expectations/compiler/integers/u128/lt.out +++ b/tests/expectations/compiler/integers/u128/lt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "459e412ddd219e315cc1ef6bf05f9b2490bae8dc003dcefc25f5976b8ff053f4", dce_ast = "a1d1000e6d6818b900f6c6a77dedf0d9f40287dba9675d669903798575bd38cc", destructured_ast = "a1d1000e6d6818b900f6c6a77dedf0d9f40287dba9675d669903798575bd38cc", errors = "", flattened_ast = "f13d8e3203656805d6bc6e53bda2aa8b43540abd15b3d103edef3e74544be3ca", initial_ast = "647b15b62951e554b47ea4e4ad8250bba7b0ec452e9b95d8d4e762fcbeb0cfd1", initial_symbol_table = "64a7cbc0a3c050206ad6948c90eccb6ec28e0a1cbeed1f1a8974562d024b6941", inlined_ast = "a1d1000e6d6818b900f6c6a77dedf0d9f40287dba9675d669903798575bd38cc", ssa_ast = "dd63d833c5895da15d47cece7a98896795fe4e5652f324e753d113b338ee1d0b", type_checked_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", unrolled_ast = "647b15b62951e554b47ea4e4ad8250bba7b0ec452e9b95d8d4e762fcbeb0cfd1", unrolled_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as boolean.private; + lt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "a1d1000e6d6818b900f6c6a77dedf0d9f40287dba9675d669903798575bd38cc", destructured_ast = "a1d1000e6d6818b900f6c6a77dedf0d9f40287dba9675d669903798575bd38cc", errors = "", flattened_ast = "f13d8e3203656805d6bc6e53bda2aa8b43540abd15b3d103edef3e74544be3ca", initial_ast = "647b15b62951e554b47ea4e4ad8250bba7b0ec452e9b95d8d4e762fcbeb0cfd1", initial_symbol_table = "64a7cbc0a3c050206ad6948c90eccb6ec28e0a1cbeed1f1a8974562d024b6941", inlined_ast = "a1d1000e6d6818b900f6c6a77dedf0d9f40287dba9675d669903798575bd38cc", ssa_ast = "dd63d833c5895da15d47cece7a98896795fe4e5652f324e753d113b338ee1d0b", type_checked_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", unrolled_ast = "647b15b62951e554b47ea4e4ad8250bba7b0ec452e9b95d8d4e762fcbeb0cfd1", unrolled_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/max.out b/tests/expectations/compiler/integers/u128/max.out index 2f0c7c3f5d..976c9800ab 100644 --- a/tests/expectations/compiler/integers/u128/max.out +++ b/tests/expectations/compiler/integers/u128/max.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69", dce_ast = "8256a3090025d0b9e157d76f10653922a0f1d9ecd8e39c06be43808cccd96fc7", destructured_ast = "ef0373a9516d4d48bfbeb9487943f1b55e7addd3ac3c04b42b8bb9fa306e3531", errors = "", flattened_ast = "44f20236bd23921f8c66ba6888c92e3683694cbb3d06a00fc0c6e33bd689b138", initial_ast = "e2cfdc0b9e146af70930f9f88e903a24de5104609c7d364e07ca8047994de830", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "ef0373a9516d4d48bfbeb9487943f1b55e7addd3ac3c04b42b8bb9fa306e3531", ssa_ast = "426edfe68afb815cabc357144ab421e9b7f55ef1ef5d1307140502869ec4f4c0", type_checked_symbol_table = "8d7211bc55488085e6085c8a80ba8202a8b3063586f5a1c6044eea5dddc76d60", unrolled_ast = "e2cfdc0b9e146af70930f9f88e903a24de5104609c7d364e07ca8047994de830", unrolled_symbol_table = "8d7211bc55488085e6085c8a80ba8202a8b3063586f5a1c6044eea5dddc76d60", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + is.eq r0 true into r1; + output r1 as boolean.private; +""", dce_ast = "8256a3090025d0b9e157d76f10653922a0f1d9ecd8e39c06be43808cccd96fc7", destructured_ast = "ef0373a9516d4d48bfbeb9487943f1b55e7addd3ac3c04b42b8bb9fa306e3531", errors = "", flattened_ast = "44f20236bd23921f8c66ba6888c92e3683694cbb3d06a00fc0c6e33bd689b138", initial_ast = "e2cfdc0b9e146af70930f9f88e903a24de5104609c7d364e07ca8047994de830", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "ef0373a9516d4d48bfbeb9487943f1b55e7addd3ac3c04b42b8bb9fa306e3531", ssa_ast = "426edfe68afb815cabc357144ab421e9b7f55ef1ef5d1307140502869ec4f4c0", type_checked_symbol_table = "8d7211bc55488085e6085c8a80ba8202a8b3063586f5a1c6044eea5dddc76d60", unrolled_ast = "e2cfdc0b9e146af70930f9f88e903a24de5104609c7d364e07ca8047994de830", unrolled_symbol_table = "8d7211bc55488085e6085c8a80ba8202a8b3063586f5a1c6044eea5dddc76d60", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/min.out b/tests/expectations/compiler/integers/u128/min.out index 2d99bdbe00..d64db07272 100644 --- a/tests/expectations/compiler/integers/u128/min.out +++ b/tests/expectations/compiler/integers/u128/min.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69", dce_ast = "d017ac28810feab75f374e47c34167c980b961ae15e9eacf6c6d0c6c947bfe0e", destructured_ast = "a252a58c379311fea0dd51c175adf306c62878b2eb45ad0ef8cf5905a0e7cb0b", errors = "", flattened_ast = "c5dbc6b4e56e62594b5db3453b76d8fbfebc2a164949402c0a15e2eb166a48e0", initial_ast = "49222e48d032e0b302251d781d5433c255acb6490b8d893051161801c2d964eb", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "a252a58c379311fea0dd51c175adf306c62878b2eb45ad0ef8cf5905a0e7cb0b", ssa_ast = "1a9e828593de17bee6251aed37b0cec3b16b5740ace9291eac80a0a4a185fd71", type_checked_symbol_table = "8d7211bc55488085e6085c8a80ba8202a8b3063586f5a1c6044eea5dddc76d60", unrolled_ast = "49222e48d032e0b302251d781d5433c255acb6490b8d893051161801c2d964eb", unrolled_symbol_table = "8d7211bc55488085e6085c8a80ba8202a8b3063586f5a1c6044eea5dddc76d60", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + is.eq r0 true into r1; + output r1 as boolean.private; +""", dce_ast = "d017ac28810feab75f374e47c34167c980b961ae15e9eacf6c6d0c6c947bfe0e", destructured_ast = "a252a58c379311fea0dd51c175adf306c62878b2eb45ad0ef8cf5905a0e7cb0b", errors = "", flattened_ast = "c5dbc6b4e56e62594b5db3453b76d8fbfebc2a164949402c0a15e2eb166a48e0", initial_ast = "49222e48d032e0b302251d781d5433c255acb6490b8d893051161801c2d964eb", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "a252a58c379311fea0dd51c175adf306c62878b2eb45ad0ef8cf5905a0e7cb0b", ssa_ast = "1a9e828593de17bee6251aed37b0cec3b16b5740ace9291eac80a0a4a185fd71", type_checked_symbol_table = "8d7211bc55488085e6085c8a80ba8202a8b3063586f5a1c6044eea5dddc76d60", unrolled_ast = "49222e48d032e0b302251d781d5433c255acb6490b8d893051161801c2d964eb", unrolled_symbol_table = "8d7211bc55488085e6085c8a80ba8202a8b3063586f5a1c6044eea5dddc76d60", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/mul.out b/tests/expectations/compiler/integers/u128/mul.out index 25ab3d8195..47d25d4f37 100644 --- a/tests/expectations/compiler/integers/u128/mul.out +++ b/tests/expectations/compiler/integers/u128/mul.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "67857a350a412ed022768ab4aaa6387e63e548b7dc0b552dcb061b719abc90bb", dce_ast = "3630ed27fcedaef7db7626f1f1c30b2166706a5f83c992b7c9a2aabacf0be1bd", destructured_ast = "3630ed27fcedaef7db7626f1f1c30b2166706a5f83c992b7c9a2aabacf0be1bd", errors = "", flattened_ast = "4bd80ef1c4d970155e1678a072a944c188e75acab767d3330941678d05e7c846", initial_ast = "19ea23ce6223461ff9a22a24d478fb0444a32825ead031a0f6aee98a388d245b", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "3630ed27fcedaef7db7626f1f1c30b2166706a5f83c992b7c9a2aabacf0be1bd", ssa_ast = "fa2c7ed0ad2556d8d050e452bc6c8460b1e0126f12cac370e274b883421f0b9b", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "19ea23ce6223461ff9a22a24d478fb0444a32825ead031a0f6aee98a388d245b", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as u128.private; + mul r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "3630ed27fcedaef7db7626f1f1c30b2166706a5f83c992b7c9a2aabacf0be1bd", destructured_ast = "3630ed27fcedaef7db7626f1f1c30b2166706a5f83c992b7c9a2aabacf0be1bd", errors = "", flattened_ast = "4bd80ef1c4d970155e1678a072a944c188e75acab767d3330941678d05e7c846", initial_ast = "19ea23ce6223461ff9a22a24d478fb0444a32825ead031a0f6aee98a388d245b", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "3630ed27fcedaef7db7626f1f1c30b2166706a5f83c992b7c9a2aabacf0be1bd", ssa_ast = "fa2c7ed0ad2556d8d050e452bc6c8460b1e0126f12cac370e274b883421f0b9b", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "19ea23ce6223461ff9a22a24d478fb0444a32825ead031a0f6aee98a388d245b", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/ne.out b/tests/expectations/compiler/integers/u128/ne.out index 1d11b6db7c..bf1a3954da 100644 --- a/tests/expectations/compiler/integers/u128/ne.out +++ b/tests/expectations/compiler/integers/u128/ne.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "63457f4ddad404af243d9707a6e9e6f6f878cb639895a110bca73b804395bd14", dce_ast = "1dd9d0bef3947f7ea7d80557c5939a58de9a8e694e7d87a9dc5834648552d97e", destructured_ast = "1dd9d0bef3947f7ea7d80557c5939a58de9a8e694e7d87a9dc5834648552d97e", errors = "", flattened_ast = "c2d6d250cca33f329cb3c7f8f42a0f0bd5e8fccbb9f603795e9b9a9419e1b8b0", initial_ast = "3a8abc966326b034799f3ad41dae77788c6e2f0d59bdb6308fbb6f2811f77c8a", initial_symbol_table = "64a7cbc0a3c050206ad6948c90eccb6ec28e0a1cbeed1f1a8974562d024b6941", inlined_ast = "1dd9d0bef3947f7ea7d80557c5939a58de9a8e694e7d87a9dc5834648552d97e", ssa_ast = "a29630e8fc2268045a178ba42e7bd8acdbeaf860cc8a70bf641ee3a291c3ceaf", type_checked_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", unrolled_ast = "3a8abc966326b034799f3ad41dae77788c6e2f0d59bdb6308fbb6f2811f77c8a", unrolled_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as boolean.private; + is.neq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "1dd9d0bef3947f7ea7d80557c5939a58de9a8e694e7d87a9dc5834648552d97e", destructured_ast = "1dd9d0bef3947f7ea7d80557c5939a58de9a8e694e7d87a9dc5834648552d97e", errors = "", flattened_ast = "c2d6d250cca33f329cb3c7f8f42a0f0bd5e8fccbb9f603795e9b9a9419e1b8b0", initial_ast = "3a8abc966326b034799f3ad41dae77788c6e2f0d59bdb6308fbb6f2811f77c8a", initial_symbol_table = "64a7cbc0a3c050206ad6948c90eccb6ec28e0a1cbeed1f1a8974562d024b6941", inlined_ast = "1dd9d0bef3947f7ea7d80557c5939a58de9a8e694e7d87a9dc5834648552d97e", ssa_ast = "a29630e8fc2268045a178ba42e7bd8acdbeaf860cc8a70bf641ee3a291c3ceaf", type_checked_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", unrolled_ast = "3a8abc966326b034799f3ad41dae77788c6e2f0d59bdb6308fbb6f2811f77c8a", unrolled_symbol_table = "84384a022a62a5987b3bbbb94b090e8a00b784c7ca7130db849b3f8d5e616ee3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/operator_methods.out b/tests/expectations/compiler/integers/u128/operator_methods.out index 0acb9aac8a..c50297d9e6 100644 --- a/tests/expectations/compiler/integers/u128/operator_methods.out +++ b/tests/expectations/compiler/integers/u128/operator_methods.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "a669206687d494820bada50c8468f052183b69cd778ff0ce870a370ac8ea7bf4", dce_ast = "9bdd245f1fa0d7a016cb5089065693e56101899e978fcd485f8b02a935326b84", destructured_ast = "9e865e431385fc520e8cb08b031c95983de69bb4d65ee8fbc284c094169d5293", errors = "", flattened_ast = "04be780806cc770e3e24b4a7810a0c8b12089419810ffbbb94c30a0dd44ab5cb", initial_ast = "77cf9c78593c16073d72d326e2988565065e8465116893917e25d1530a7e87ce", initial_symbol_table = "9404c76b806825d1ca1812b7c9e29ff84afa1859ce9585408e8d620ff5a88148", inlined_ast = "9e865e431385fc520e8cb08b031c95983de69bb4d65ee8fbc284c094169d5293", ssa_ast = "992a6b632ea1739f1832b79d9e5bc6392dc1f882f4ce3d71291c6e7ecd905850", type_checked_symbol_table = "cc9806ecfbb7e54c20a37ffb9f762a880ee8e620d3f5468dd7f12624be394f41", unrolled_ast = "77cf9c78593c16073d72d326e2988565065e8465116893917e25d1530a7e87ce", unrolled_symbol_table = "cc9806ecfbb7e54c20a37ffb9f762a880ee8e620d3f5468dd7f12624be394f41", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + is.eq r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "9bdd245f1fa0d7a016cb5089065693e56101899e978fcd485f8b02a935326b84", destructured_ast = "9e865e431385fc520e8cb08b031c95983de69bb4d65ee8fbc284c094169d5293", errors = "", flattened_ast = "04be780806cc770e3e24b4a7810a0c8b12089419810ffbbb94c30a0dd44ab5cb", initial_ast = "77cf9c78593c16073d72d326e2988565065e8465116893917e25d1530a7e87ce", initial_symbol_table = "9404c76b806825d1ca1812b7c9e29ff84afa1859ce9585408e8d620ff5a88148", inlined_ast = "9e865e431385fc520e8cb08b031c95983de69bb4d65ee8fbc284c094169d5293", ssa_ast = "992a6b632ea1739f1832b79d9e5bc6392dc1f882f4ce3d71291c6e7ecd905850", type_checked_symbol_table = "cc9806ecfbb7e54c20a37ffb9f762a880ee8e620d3f5468dd7f12624be394f41", unrolled_ast = "77cf9c78593c16073d72d326e2988565065e8465116893917e25d1530a7e87ce", unrolled_symbol_table = "cc9806ecfbb7e54c20a37ffb9f762a880ee8e620d3f5468dd7f12624be394f41", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/or.out b/tests/expectations/compiler/integers/u128/or.out index 8837def435..102b555e22 100644 --- a/tests/expectations/compiler/integers/u128/or.out +++ b/tests/expectations/compiler/integers/u128/or.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "004cb45ea888f207ca8e42a4f7acf3687aa3294a975462c89541c2d0f53dcdf3", dce_ast = "39208d78b1606e9d247df8fe2a09149cce41f0bf0c02c06635367ea7b82d8d6a", destructured_ast = "39208d78b1606e9d247df8fe2a09149cce41f0bf0c02c06635367ea7b82d8d6a", errors = "", flattened_ast = "acf8f2ec26e420c388586e6fb883a88e90cb3144be8cc5d48dea171e0b63b8b0", initial_ast = "da2fbc5bbed7ab4513c0340c1fc42ac41e94c5bb22bd452b67e4a02c28979738", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "39208d78b1606e9d247df8fe2a09149cce41f0bf0c02c06635367ea7b82d8d6a", ssa_ast = "d08948c78c9205b0838ce2ecb26f5e995f7a2f3dff99baa4409cfd9b52c8be37", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "da2fbc5bbed7ab4513c0340c1fc42ac41e94c5bb22bd452b67e4a02c28979738", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as u128.private; + or r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "39208d78b1606e9d247df8fe2a09149cce41f0bf0c02c06635367ea7b82d8d6a", destructured_ast = "39208d78b1606e9d247df8fe2a09149cce41f0bf0c02c06635367ea7b82d8d6a", errors = "", flattened_ast = "acf8f2ec26e420c388586e6fb883a88e90cb3144be8cc5d48dea171e0b63b8b0", initial_ast = "da2fbc5bbed7ab4513c0340c1fc42ac41e94c5bb22bd452b67e4a02c28979738", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "39208d78b1606e9d247df8fe2a09149cce41f0bf0c02c06635367ea7b82d8d6a", ssa_ast = "d08948c78c9205b0838ce2ecb26f5e995f7a2f3dff99baa4409cfd9b52c8be37", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "da2fbc5bbed7ab4513c0340c1fc42ac41e94c5bb22bd452b67e4a02c28979738", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/pow.out b/tests/expectations/compiler/integers/u128/pow.out index aad80ab08a..9269002b7a 100644 --- a/tests/expectations/compiler/integers/u128/pow.out +++ b/tests/expectations/compiler/integers/u128/pow.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f88e8b16ebc2a407989f9f316ad6a9edfec6f134c7a0d9b25cea571df8161900", dce_ast = "68ba4a9441ff5bab7144132ec9f37e5040232a5f48912e718a7cf973ae4ef60c", destructured_ast = "68ba4a9441ff5bab7144132ec9f37e5040232a5f48912e718a7cf973ae4ef60c", errors = "", flattened_ast = "f009f0accb10699e76cd020283f8dfa4960af79ab6068e54e4489da00af92dfb", initial_ast = "98502a5edeced84c8178662883aec6fc047e82b721d77c2131c1e6647b9b78dd", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "68ba4a9441ff5bab7144132ec9f37e5040232a5f48912e718a7cf973ae4ef60c", ssa_ast = "19d4101f85bbad70478c394d5fc17a4e6ab40d99520fbc5e1ac08c129c87280d", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "98502a5edeced84c8178662883aec6fc047e82b721d77c2131c1e6647b9b78dd", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as u128.private; + pow r0 2u8 into r3; + pow r0 2u16 into r4; + is.eq r3 r4 into r5; + pow r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "68ba4a9441ff5bab7144132ec9f37e5040232a5f48912e718a7cf973ae4ef60c", destructured_ast = "68ba4a9441ff5bab7144132ec9f37e5040232a5f48912e718a7cf973ae4ef60c", errors = "", flattened_ast = "f009f0accb10699e76cd020283f8dfa4960af79ab6068e54e4489da00af92dfb", initial_ast = "98502a5edeced84c8178662883aec6fc047e82b721d77c2131c1e6647b9b78dd", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "68ba4a9441ff5bab7144132ec9f37e5040232a5f48912e718a7cf973ae4ef60c", ssa_ast = "19d4101f85bbad70478c394d5fc17a4e6ab40d99520fbc5e1ac08c129c87280d", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "98502a5edeced84c8178662883aec6fc047e82b721d77c2131c1e6647b9b78dd", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/rem.out b/tests/expectations/compiler/integers/u128/rem.out index 4d2c9b3566..bdc30b28ab 100644 --- a/tests/expectations/compiler/integers/u128/rem.out +++ b/tests/expectations/compiler/integers/u128/rem.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "77cd05d1f311504fae6e47a74e98a964f1dd411e6fd447b33b57a2d475bb5aed", dce_ast = "8f941af9b578d28196074b8c16c4895d4d472d0000618ffd58a112f0af21c5d2", destructured_ast = "8f941af9b578d28196074b8c16c4895d4d472d0000618ffd58a112f0af21c5d2", errors = "", flattened_ast = "2ea6da65f60ab0fbe61f800de101869ce72ad28f3f3ec910830ef4d4dff0cb14", initial_ast = "bf52962f08e16c3d89637b697a8c4537972f351f6114c3fbbb8deb99cdb2d699", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "8f941af9b578d28196074b8c16c4895d4d472d0000618ffd58a112f0af21c5d2", ssa_ast = "0c985ccdb7b52ce4e2a03dc8c3f44813f12fdb4836bb617dd34d77734aa8cef4", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "bf52962f08e16c3d89637b697a8c4537972f351f6114c3fbbb8deb99cdb2d699", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as u128.private; + rem r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "8f941af9b578d28196074b8c16c4895d4d472d0000618ffd58a112f0af21c5d2", destructured_ast = "8f941af9b578d28196074b8c16c4895d4d472d0000618ffd58a112f0af21c5d2", errors = "", flattened_ast = "2ea6da65f60ab0fbe61f800de101869ce72ad28f3f3ec910830ef4d4dff0cb14", initial_ast = "bf52962f08e16c3d89637b697a8c4537972f351f6114c3fbbb8deb99cdb2d699", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "8f941af9b578d28196074b8c16c4895d4d472d0000618ffd58a112f0af21c5d2", ssa_ast = "0c985ccdb7b52ce4e2a03dc8c3f44813f12fdb4836bb617dd34d77734aa8cef4", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "bf52962f08e16c3d89637b697a8c4537972f351f6114c3fbbb8deb99cdb2d699", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/shl.out b/tests/expectations/compiler/integers/u128/shl.out index eb1b989072..3ce5d2c43f 100644 --- a/tests/expectations/compiler/integers/u128/shl.out +++ b/tests/expectations/compiler/integers/u128/shl.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f9f90b58b9fc961c6ee4909ef338c77962403add4feee851959038263971eba9", dce_ast = "3fd95ec1646150164eea714df5cf9093205b72198c721ad852ec175302c5d0aa", destructured_ast = "3fd95ec1646150164eea714df5cf9093205b72198c721ad852ec175302c5d0aa", errors = "", flattened_ast = "71cec70a1930135402aa8e181b5c73cf5eeb42d8c8a8bd91b272b4f92219c324", initial_ast = "89d5229c3423973413e91de61ae60a661a5475a1d9f5eaadba11b670af749d28", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "3fd95ec1646150164eea714df5cf9093205b72198c721ad852ec175302c5d0aa", ssa_ast = "81812ed745f244eac184b84ad97ed27d312818dba9f72b88506b116cd9d34a11", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "89d5229c3423973413e91de61ae60a661a5475a1d9f5eaadba11b670af749d28", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as u128.private; + shl r0 2u8 into r3; + shl r0 2u16 into r4; + is.eq r3 r4 into r5; + shl r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "3fd95ec1646150164eea714df5cf9093205b72198c721ad852ec175302c5d0aa", destructured_ast = "3fd95ec1646150164eea714df5cf9093205b72198c721ad852ec175302c5d0aa", errors = "", flattened_ast = "71cec70a1930135402aa8e181b5c73cf5eeb42d8c8a8bd91b272b4f92219c324", initial_ast = "89d5229c3423973413e91de61ae60a661a5475a1d9f5eaadba11b670af749d28", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "3fd95ec1646150164eea714df5cf9093205b72198c721ad852ec175302c5d0aa", ssa_ast = "81812ed745f244eac184b84ad97ed27d312818dba9f72b88506b116cd9d34a11", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "89d5229c3423973413e91de61ae60a661a5475a1d9f5eaadba11b670af749d28", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/shr.out b/tests/expectations/compiler/integers/u128/shr.out index 34e029b7ef..1b135109b8 100644 --- a/tests/expectations/compiler/integers/u128/shr.out +++ b/tests/expectations/compiler/integers/u128/shr.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "c3f89cd7a94e013dfafa5e7deaa5bf758e78a9bee96b9324d8b2314d67ea6a27", dce_ast = "3320f40a4b4f5fd85e18c79850f35e2d243ea0e60297937848216d8b87beccf4", destructured_ast = "3320f40a4b4f5fd85e18c79850f35e2d243ea0e60297937848216d8b87beccf4", errors = "", flattened_ast = "d68b1862cfcbbd96cbe64fc8a9ec3fe87abd430d617a73d7352061a73c08e3c0", initial_ast = "75d12dd7a34bfb55032cd61803a07d3dfe94aa56e7ab249f4f93e5fbb2deefd4", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "3320f40a4b4f5fd85e18c79850f35e2d243ea0e60297937848216d8b87beccf4", ssa_ast = "50c806bee4b10b119ac71a7743e73dc1ed479f54f1af532c236fd50b54bde847", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "75d12dd7a34bfb55032cd61803a07d3dfe94aa56e7ab249f4f93e5fbb2deefd4", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as u128.private; + shr r0 2u8 into r3; + shr r0 2u16 into r4; + is.eq r3 r4 into r5; + shr r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "3320f40a4b4f5fd85e18c79850f35e2d243ea0e60297937848216d8b87beccf4", destructured_ast = "3320f40a4b4f5fd85e18c79850f35e2d243ea0e60297937848216d8b87beccf4", errors = "", flattened_ast = "d68b1862cfcbbd96cbe64fc8a9ec3fe87abd430d617a73d7352061a73c08e3c0", initial_ast = "75d12dd7a34bfb55032cd61803a07d3dfe94aa56e7ab249f4f93e5fbb2deefd4", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "3320f40a4b4f5fd85e18c79850f35e2d243ea0e60297937848216d8b87beccf4", ssa_ast = "50c806bee4b10b119ac71a7743e73dc1ed479f54f1af532c236fd50b54bde847", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "75d12dd7a34bfb55032cd61803a07d3dfe94aa56e7ab249f4f93e5fbb2deefd4", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/sub.out b/tests/expectations/compiler/integers/u128/sub.out index 5b647f5fce..13a6bf08fb 100644 --- a/tests/expectations/compiler/integers/u128/sub.out +++ b/tests/expectations/compiler/integers/u128/sub.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "92ed5e41e02f9f2ee5862aad62d54a2a0f2e1a2fc2edde87f1c6ee1fa84de67c", dce_ast = "f7a33c1d9921b382542d9aa5ba73a9d033794f2ebc52f2c71dfdfe699ae4e698", destructured_ast = "f7a33c1d9921b382542d9aa5ba73a9d033794f2ebc52f2c71dfdfe699ae4e698", errors = "", flattened_ast = "819a41c083cbb32a83b5513b558694b7b4a6985988e941df2bc8b81b9323eb3b", initial_ast = "e111b01d86e9c51133c6c14c30032d0691c65bc04c9257007370695920c3aa84", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "f7a33c1d9921b382542d9aa5ba73a9d033794f2ebc52f2c71dfdfe699ae4e698", ssa_ast = "43e124b65f7bbad5d4e669126c64e23893a84d01f7c9d3019bba685249bf12ed", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "e111b01d86e9c51133c6c14c30032d0691c65bc04c9257007370695920c3aa84", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + input r2 as u128.private; + sub r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "f7a33c1d9921b382542d9aa5ba73a9d033794f2ebc52f2c71dfdfe699ae4e698", destructured_ast = "f7a33c1d9921b382542d9aa5ba73a9d033794f2ebc52f2c71dfdfe699ae4e698", errors = "", flattened_ast = "819a41c083cbb32a83b5513b558694b7b4a6985988e941df2bc8b81b9323eb3b", initial_ast = "e111b01d86e9c51133c6c14c30032d0691c65bc04c9257007370695920c3aa84", initial_symbol_table = "4818ec559c9cd9da87295e749b1927cf043fd024b3a5056bd26ecdc47d87f0aa", inlined_ast = "f7a33c1d9921b382542d9aa5ba73a9d033794f2ebc52f2c71dfdfe699ae4e698", ssa_ast = "43e124b65f7bbad5d4e669126c64e23893a84d01f7c9d3019bba685249bf12ed", type_checked_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", unrolled_ast = "e111b01d86e9c51133c6c14c30032d0691c65bc04c9257007370695920c3aa84", unrolled_symbol_table = "69e0a0350226cbac39a5fc3af8cdbae87f89a4f1aca4d8ae1d34471352d91855", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/ternary.out b/tests/expectations/compiler/integers/u128/ternary.out index 99f6922e3a..2391ad0760 100644 --- a/tests/expectations/compiler/integers/u128/ternary.out +++ b/tests/expectations/compiler/integers/u128/ternary.out @@ -1,3 +1,16 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "d360bfc2331d64cee6cebe783b9ac261efe5c6e8aaa334be38a9c56ab40261b2", dce_ast = "92a88d9b32009f40dcaeb4264037d29c56350666e3272065a163adc79ef959cf", destructured_ast = "92a88d9b32009f40dcaeb4264037d29c56350666e3272065a163adc79ef959cf", errors = "", flattened_ast = "d1b2be1d274bc2aa0bd0ab387d024bac6bb9be9f8f9c81e344bc48126a728a07", initial_ast = "297478f425756a7f86d07afde03b7594f71d619779928cfe049b1e9b865584c0", initial_symbol_table = "9a4c432fa060a629bac49377ad3eb0ddb836080e6a821e70985d426702529fd0", inlined_ast = "92a88d9b32009f40dcaeb4264037d29c56350666e3272065a163adc79ef959cf", ssa_ast = "681fe12057eda00bfe0e5490e208571545aa221b389af469b98b9b18fbb82dcc", type_checked_symbol_table = "b4f99bc329d2ac8f0a4d6e207c56eca34d16b3950fd904bbbde4aaf39c83708e", unrolled_ast = "297478f425756a7f86d07afde03b7594f71d619779928cfe049b1e9b865584c0", unrolled_symbol_table = "b4f99bc329d2ac8f0a4d6e207c56eca34d16b3950fd904bbbde4aaf39c83708e", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + input r1 as u128.private; + input r2 as u128.private; + input r3 as u128.private; + ternary r0 r1 r2 into r4; + is.eq r4 r3 into r5; + output r5 as boolean.private; +""", dce_ast = "92a88d9b32009f40dcaeb4264037d29c56350666e3272065a163adc79ef959cf", destructured_ast = "92a88d9b32009f40dcaeb4264037d29c56350666e3272065a163adc79ef959cf", errors = "", flattened_ast = "d1b2be1d274bc2aa0bd0ab387d024bac6bb9be9f8f9c81e344bc48126a728a07", initial_ast = "297478f425756a7f86d07afde03b7594f71d619779928cfe049b1e9b865584c0", initial_symbol_table = "9a4c432fa060a629bac49377ad3eb0ddb836080e6a821e70985d426702529fd0", inlined_ast = "92a88d9b32009f40dcaeb4264037d29c56350666e3272065a163adc79ef959cf", ssa_ast = "681fe12057eda00bfe0e5490e208571545aa221b389af469b98b9b18fbb82dcc", type_checked_symbol_table = "b4f99bc329d2ac8f0a4d6e207c56eca34d16b3950fd904bbbde4aaf39c83708e", unrolled_ast = "297478f425756a7f86d07afde03b7594f71d619779928cfe049b1e9b865584c0", unrolled_symbol_table = "b4f99bc329d2ac8f0a4d6e207c56eca34d16b3950fd904bbbde4aaf39c83708e", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u128/xor.out b/tests/expectations/compiler/integers/u128/xor.out index e778e789dc..57c438336b 100644 --- a/tests/expectations/compiler/integers/u128/xor.out +++ b/tests/expectations/compiler/integers/u128/xor.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "63a04f95623ff9dfbe22b389e7b7b6127999e1340aa1ed3e2eb59228d92d9aab", dce_ast = "6d4a893147abe21437aadf62095ce50260b5b9b04422dcc6bac9ae08c0c50318", destructured_ast = "6d4a893147abe21437aadf62095ce50260b5b9b04422dcc6bac9ae08c0c50318", errors = "", flattened_ast = "7fc614bf09f57d9f447f0ed1cc681a0a4fe84c7f5f4c8fa24457098a78e6c01f", initial_ast = "af766f47865f7935581c83ba9a7cfb41778c43a29dae787e5673af4836709358", initial_symbol_table = "2359c19a39885558fd4f9784dce78637f4dca5cc38539559e5c3bfdf41e78773", inlined_ast = "6d4a893147abe21437aadf62095ce50260b5b9b04422dcc6bac9ae08c0c50318", ssa_ast = "413999f32e5fc5f11adfc8814d77749c893ebf3337a654abc3689688da4ba074", type_checked_symbol_table = "c35e96684ead8ab8d91f7044682cf30c086287cf6d27570705222758bfb77f2e", unrolled_ast = "af766f47865f7935581c83ba9a7cfb41778c43a29dae787e5673af4836709358", unrolled_symbol_table = "c35e96684ead8ab8d91f7044682cf30c086287cf6d27570705222758bfb77f2e", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u128.private; + input r1 as u128.private; + xor r0 r1 into r2; + output r2 as u128.private; +""", dce_ast = "6d4a893147abe21437aadf62095ce50260b5b9b04422dcc6bac9ae08c0c50318", destructured_ast = "6d4a893147abe21437aadf62095ce50260b5b9b04422dcc6bac9ae08c0c50318", errors = "", flattened_ast = "7fc614bf09f57d9f447f0ed1cc681a0a4fe84c7f5f4c8fa24457098a78e6c01f", initial_ast = "af766f47865f7935581c83ba9a7cfb41778c43a29dae787e5673af4836709358", initial_symbol_table = "2359c19a39885558fd4f9784dce78637f4dca5cc38539559e5c3bfdf41e78773", inlined_ast = "6d4a893147abe21437aadf62095ce50260b5b9b04422dcc6bac9ae08c0c50318", ssa_ast = "413999f32e5fc5f11adfc8814d77749c893ebf3337a654abc3689688da4ba074", type_checked_symbol_table = "c35e96684ead8ab8d91f7044682cf30c086287cf6d27570705222758bfb77f2e", unrolled_ast = "af766f47865f7935581c83ba9a7cfb41778c43a29dae787e5673af4836709358", unrolled_symbol_table = "c35e96684ead8ab8d91f7044682cf30c086287cf6d27570705222758bfb77f2e", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/add.out b/tests/expectations/compiler/integers/u16/add.out index 094dba0a0e..4adb8de84a 100644 --- a/tests/expectations/compiler/integers/u16/add.out +++ b/tests/expectations/compiler/integers/u16/add.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "2252ca765c9f4d167815c556dedf80fd261ecb82c22da486f1c019b62ca9b59c", dce_ast = "2e4e2facf496c32b6d9174983bd49674b771d34708a9c7409b93205ec281fb88", destructured_ast = "2e4e2facf496c32b6d9174983bd49674b771d34708a9c7409b93205ec281fb88", errors = "", flattened_ast = "2d2f8d0495c63418f94a58ea03cede3f9041dcee1bfcbe51b882a520be4212ec", initial_ast = "388ba0aa68c04213e05f5262145dcd7fe9f2cbfdd66f3c83dbe92967a26930bf", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "2e4e2facf496c32b6d9174983bd49674b771d34708a9c7409b93205ec281fb88", ssa_ast = "3218c7648d345778039e406d3bef059d9b1d5c3c84c58b4dbecceb7d24cacf1c", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "388ba0aa68c04213e05f5262145dcd7fe9f2cbfdd66f3c83dbe92967a26930bf", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as u16.private; + add r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "2e4e2facf496c32b6d9174983bd49674b771d34708a9c7409b93205ec281fb88", destructured_ast = "2e4e2facf496c32b6d9174983bd49674b771d34708a9c7409b93205ec281fb88", errors = "", flattened_ast = "2d2f8d0495c63418f94a58ea03cede3f9041dcee1bfcbe51b882a520be4212ec", initial_ast = "388ba0aa68c04213e05f5262145dcd7fe9f2cbfdd66f3c83dbe92967a26930bf", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "2e4e2facf496c32b6d9174983bd49674b771d34708a9c7409b93205ec281fb88", ssa_ast = "3218c7648d345778039e406d3bef059d9b1d5c3c84c58b4dbecceb7d24cacf1c", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "388ba0aa68c04213e05f5262145dcd7fe9f2cbfdd66f3c83dbe92967a26930bf", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/and.out b/tests/expectations/compiler/integers/u16/and.out index ce0eeb327c..49fe3df303 100644 --- a/tests/expectations/compiler/integers/u16/and.out +++ b/tests/expectations/compiler/integers/u16/and.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "6160eab9fab5c6648122e91366d143924e69bdc272bc606f68be14f22f88cd1a", dce_ast = "e33f0cad47802a7c6b00493f05ac006b20f193171b0d5387cabfeeff5a393601", destructured_ast = "e33f0cad47802a7c6b00493f05ac006b20f193171b0d5387cabfeeff5a393601", errors = "", flattened_ast = "d20bf0f1aca0778e057a768ee09ee6f406f0d5159b894a3c38f727515faf38ef", initial_ast = "d385bfa59f684e7baf62a91517a12274a1a5331eb3924b76e30a6a04e8728059", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "e33f0cad47802a7c6b00493f05ac006b20f193171b0d5387cabfeeff5a393601", ssa_ast = "6d0ebbea535eba8896194651ce65c1d6ae1558cf04540dbaf57e3e860b944ee3", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "d385bfa59f684e7baf62a91517a12274a1a5331eb3924b76e30a6a04e8728059", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as u16.private; + and r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "e33f0cad47802a7c6b00493f05ac006b20f193171b0d5387cabfeeff5a393601", destructured_ast = "e33f0cad47802a7c6b00493f05ac006b20f193171b0d5387cabfeeff5a393601", errors = "", flattened_ast = "d20bf0f1aca0778e057a768ee09ee6f406f0d5159b894a3c38f727515faf38ef", initial_ast = "d385bfa59f684e7baf62a91517a12274a1a5331eb3924b76e30a6a04e8728059", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "e33f0cad47802a7c6b00493f05ac006b20f193171b0d5387cabfeeff5a393601", ssa_ast = "6d0ebbea535eba8896194651ce65c1d6ae1558cf04540dbaf57e3e860b944ee3", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "d385bfa59f684e7baf62a91517a12274a1a5331eb3924b76e30a6a04e8728059", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/console_assert.out b/tests/expectations/compiler/integers/u16/console_assert.out index bf7d3535ea..7b52ba0240 100644 --- a/tests/expectations/compiler/integers/u16/console_assert.out +++ b/tests/expectations/compiler/integers/u16/console_assert.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "986d6843806fcd3a479d777dcc4373b94817a5d3b9fb4cc1a6c3da752a69c925", dce_ast = "c9abfa575e20dae987b08e409a23d895a0f773a4d69bc851588b3d36d184ba42", destructured_ast = "c9abfa575e20dae987b08e409a23d895a0f773a4d69bc851588b3d36d184ba42", errors = "", flattened_ast = "abaf090a870b221f6b3026a493e758d0c564ea233ae7fa5d963bdf037bf96928", initial_ast = "7e34deb1e28eaf03030212286dc82b54ae00fd569d72319d4d3a1a019dfa34d8", initial_symbol_table = "97760c0ab9cc2a63264659dc870f9b0ba8782c438a6df83c03b43af3cec36698", inlined_ast = "c9abfa575e20dae987b08e409a23d895a0f773a4d69bc851588b3d36d184ba42", ssa_ast = "fdc2884ab511557a02270c7da6af68cb729fa072c1cd084f1c9a23b58f744501", type_checked_symbol_table = "0de464f6bc01710e288c177f1263615feee743b686b92ff9aea4d4439a0507f1", unrolled_ast = "7e34deb1e28eaf03030212286dc82b54ae00fd569d72319d4d3a1a019dfa34d8", unrolled_symbol_table = "0de464f6bc01710e288c177f1263615feee743b686b92ff9aea4d4439a0507f1", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + is.eq r0 r1 into r2; + assert.eq r2 true; + output r2 as boolean.private; +""", dce_ast = "c9abfa575e20dae987b08e409a23d895a0f773a4d69bc851588b3d36d184ba42", destructured_ast = "c9abfa575e20dae987b08e409a23d895a0f773a4d69bc851588b3d36d184ba42", errors = "", flattened_ast = "abaf090a870b221f6b3026a493e758d0c564ea233ae7fa5d963bdf037bf96928", initial_ast = "7e34deb1e28eaf03030212286dc82b54ae00fd569d72319d4d3a1a019dfa34d8", initial_symbol_table = "97760c0ab9cc2a63264659dc870f9b0ba8782c438a6df83c03b43af3cec36698", inlined_ast = "c9abfa575e20dae987b08e409a23d895a0f773a4d69bc851588b3d36d184ba42", ssa_ast = "fdc2884ab511557a02270c7da6af68cb729fa072c1cd084f1c9a23b58f744501", type_checked_symbol_table = "0de464f6bc01710e288c177f1263615feee743b686b92ff9aea4d4439a0507f1", unrolled_ast = "7e34deb1e28eaf03030212286dc82b54ae00fd569d72319d4d3a1a019dfa34d8", unrolled_symbol_table = "0de464f6bc01710e288c177f1263615feee743b686b92ff9aea4d4439a0507f1", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/div.out b/tests/expectations/compiler/integers/u16/div.out index 35b8f6cc21..93115a9e61 100644 --- a/tests/expectations/compiler/integers/u16/div.out +++ b/tests/expectations/compiler/integers/u16/div.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "99ba89ed030480c15697c6ba3b9dce82fa489d24dbba6d2edbc4934fc8baeb6c", dce_ast = "d5e009e2e70a04b283b1016562d0167fc1cb0608151616b203264b9da5850857", destructured_ast = "d5e009e2e70a04b283b1016562d0167fc1cb0608151616b203264b9da5850857", errors = "", flattened_ast = "149fb678292e8aa63f457fb3d4d508f82e2a2d10b17ad75466f98900942d2267", initial_ast = "ae2ddc3a870ed99f88e4d3e5290c14595e44f8363c796f035240a0d8d87fa967", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "d5e009e2e70a04b283b1016562d0167fc1cb0608151616b203264b9da5850857", ssa_ast = "a67178cf8881c9c808d684fee85c8e3de30c07e1418258ea2dec20089a58b786", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "ae2ddc3a870ed99f88e4d3e5290c14595e44f8363c796f035240a0d8d87fa967", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as u16.private; + div r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "d5e009e2e70a04b283b1016562d0167fc1cb0608151616b203264b9da5850857", destructured_ast = "d5e009e2e70a04b283b1016562d0167fc1cb0608151616b203264b9da5850857", errors = "", flattened_ast = "149fb678292e8aa63f457fb3d4d508f82e2a2d10b17ad75466f98900942d2267", initial_ast = "ae2ddc3a870ed99f88e4d3e5290c14595e44f8363c796f035240a0d8d87fa967", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "d5e009e2e70a04b283b1016562d0167fc1cb0608151616b203264b9da5850857", ssa_ast = "a67178cf8881c9c808d684fee85c8e3de30c07e1418258ea2dec20089a58b786", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "ae2ddc3a870ed99f88e4d3e5290c14595e44f8363c796f035240a0d8d87fa967", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/eq.out b/tests/expectations/compiler/integers/u16/eq.out index b103958775..34ae5f005c 100644 --- a/tests/expectations/compiler/integers/u16/eq.out +++ b/tests/expectations/compiler/integers/u16/eq.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f125a6c62a71bd66b09211e1febbdfaa6491b9255270bbe3ac27ef505f4c46e0", dce_ast = "5d1bbe7c1bfcd24f6bd3807e9efdf956b29caf7f2ea1436346c1ed9b5bbb6876", destructured_ast = "5d1bbe7c1bfcd24f6bd3807e9efdf956b29caf7f2ea1436346c1ed9b5bbb6876", errors = "", flattened_ast = "b1eb529391344c8178857d8f80234fc7a26345d55958472235ccd4b56c85016d", initial_ast = "811d628f60ad888c49a3ed049498829c8b9cea9c40223238ab38d3ee0ec6301a", initial_symbol_table = "532132f4a61c827b67da0b95d5af1f1409de765d50b723694e98e00b11e668a7", inlined_ast = "5d1bbe7c1bfcd24f6bd3807e9efdf956b29caf7f2ea1436346c1ed9b5bbb6876", ssa_ast = "3936593611308ee4d0b957c08d313fe4b6b352b5050537dc45dbf1e20408d2c5", type_checked_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", unrolled_ast = "811d628f60ad888c49a3ed049498829c8b9cea9c40223238ab38d3ee0ec6301a", unrolled_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as boolean.private; + is.eq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "5d1bbe7c1bfcd24f6bd3807e9efdf956b29caf7f2ea1436346c1ed9b5bbb6876", destructured_ast = "5d1bbe7c1bfcd24f6bd3807e9efdf956b29caf7f2ea1436346c1ed9b5bbb6876", errors = "", flattened_ast = "b1eb529391344c8178857d8f80234fc7a26345d55958472235ccd4b56c85016d", initial_ast = "811d628f60ad888c49a3ed049498829c8b9cea9c40223238ab38d3ee0ec6301a", initial_symbol_table = "532132f4a61c827b67da0b95d5af1f1409de765d50b723694e98e00b11e668a7", inlined_ast = "5d1bbe7c1bfcd24f6bd3807e9efdf956b29caf7f2ea1436346c1ed9b5bbb6876", ssa_ast = "3936593611308ee4d0b957c08d313fe4b6b352b5050537dc45dbf1e20408d2c5", type_checked_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", unrolled_ast = "811d628f60ad888c49a3ed049498829c8b9cea9c40223238ab38d3ee0ec6301a", unrolled_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/ge.out b/tests/expectations/compiler/integers/u16/ge.out index 336db6adbd..6e18e97c79 100644 --- a/tests/expectations/compiler/integers/u16/ge.out +++ b/tests/expectations/compiler/integers/u16/ge.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "ee2f4384477fac864957953a97c53275060e4c4ba793a180d6007af25b50b8df", dce_ast = "457f235443e49eea9871df34a61566ef030270e461b78186102a31f102214798", destructured_ast = "457f235443e49eea9871df34a61566ef030270e461b78186102a31f102214798", errors = "", flattened_ast = "7aa6733977b41cb11141c789a24553f3ca3d419b89e6b76c008a0d0b9ee01cbc", initial_ast = "5ceab050cf05fab25d7e16959ab7448b02ba0c6b6c65e297f22c868157f3ba37", initial_symbol_table = "532132f4a61c827b67da0b95d5af1f1409de765d50b723694e98e00b11e668a7", inlined_ast = "457f235443e49eea9871df34a61566ef030270e461b78186102a31f102214798", ssa_ast = "cdaff2b59b1fdb711597890c2a08b120b543b1a3acf59d3dd315b5b216491ef7", type_checked_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", unrolled_ast = "5ceab050cf05fab25d7e16959ab7448b02ba0c6b6c65e297f22c868157f3ba37", unrolled_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as boolean.private; + gte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "457f235443e49eea9871df34a61566ef030270e461b78186102a31f102214798", destructured_ast = "457f235443e49eea9871df34a61566ef030270e461b78186102a31f102214798", errors = "", flattened_ast = "7aa6733977b41cb11141c789a24553f3ca3d419b89e6b76c008a0d0b9ee01cbc", initial_ast = "5ceab050cf05fab25d7e16959ab7448b02ba0c6b6c65e297f22c868157f3ba37", initial_symbol_table = "532132f4a61c827b67da0b95d5af1f1409de765d50b723694e98e00b11e668a7", inlined_ast = "457f235443e49eea9871df34a61566ef030270e461b78186102a31f102214798", ssa_ast = "cdaff2b59b1fdb711597890c2a08b120b543b1a3acf59d3dd315b5b216491ef7", type_checked_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", unrolled_ast = "5ceab050cf05fab25d7e16959ab7448b02ba0c6b6c65e297f22c868157f3ba37", unrolled_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/gt.out b/tests/expectations/compiler/integers/u16/gt.out index e6327a8b8c..d1a61ce710 100644 --- a/tests/expectations/compiler/integers/u16/gt.out +++ b/tests/expectations/compiler/integers/u16/gt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f7ff09e980c11a6a98c8178e5cecbe8cbf83e40f25f5feec526358c95262fe96", dce_ast = "dbcd8cd6678deb41446891e8416756491f306a8b44464325e8a1fbab719da465", destructured_ast = "dbcd8cd6678deb41446891e8416756491f306a8b44464325e8a1fbab719da465", errors = "", flattened_ast = "5145df27c5379158d87b86343a86d6b1948a7ab7adc412eadf5e2fe83064642e", initial_ast = "d8327d64ac1c44632cd088935650ba80ccaed6ee935c4dfc5b23057651f640bf", initial_symbol_table = "532132f4a61c827b67da0b95d5af1f1409de765d50b723694e98e00b11e668a7", inlined_ast = "dbcd8cd6678deb41446891e8416756491f306a8b44464325e8a1fbab719da465", ssa_ast = "e3a35855d97183b6def7a2a5c98997e7b8df1260b82b8ddbcd6464f905c8ee44", type_checked_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", unrolled_ast = "d8327d64ac1c44632cd088935650ba80ccaed6ee935c4dfc5b23057651f640bf", unrolled_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as boolean.private; + gt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "dbcd8cd6678deb41446891e8416756491f306a8b44464325e8a1fbab719da465", destructured_ast = "dbcd8cd6678deb41446891e8416756491f306a8b44464325e8a1fbab719da465", errors = "", flattened_ast = "5145df27c5379158d87b86343a86d6b1948a7ab7adc412eadf5e2fe83064642e", initial_ast = "d8327d64ac1c44632cd088935650ba80ccaed6ee935c4dfc5b23057651f640bf", initial_symbol_table = "532132f4a61c827b67da0b95d5af1f1409de765d50b723694e98e00b11e668a7", inlined_ast = "dbcd8cd6678deb41446891e8416756491f306a8b44464325e8a1fbab719da465", ssa_ast = "e3a35855d97183b6def7a2a5c98997e7b8df1260b82b8ddbcd6464f905c8ee44", type_checked_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", unrolled_ast = "d8327d64ac1c44632cd088935650ba80ccaed6ee935c4dfc5b23057651f640bf", unrolled_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/hex_and_bin.out b/tests/expectations/compiler/integers/u16/hex_and_bin.out index 23020faee3..ace2b02ecb 100644 --- a/tests/expectations/compiler/integers/u16/hex_and_bin.out +++ b/tests/expectations/compiler/integers/u16/hex_and_bin.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "70bd417fce96bc2f7710daf8b3e4958c156a5077d6d2d5c8233fd6e3568a9e99", dce_ast = "eb52007d76aa281c459bb396b62dcb89d6ca6a89c1bf7ac74a95922b56da58c8", destructured_ast = "eb52007d76aa281c459bb396b62dcb89d6ca6a89c1bf7ac74a95922b56da58c8", errors = "", flattened_ast = "4ae366c08d8e3eafd5e3117891cb2d611ab0666b99bb82b6edf6598456b7aeae", initial_ast = "7237d106a674e3ef4eb827e6261da01c55285acd236c24e1d8c1e98be1265bde", initial_symbol_table = "e66c651dae82c04c0d085c91046c1385ebfdb9862762b20c86c170ba0909b41b", inlined_ast = "eb52007d76aa281c459bb396b62dcb89d6ca6a89c1bf7ac74a95922b56da58c8", ssa_ast = "69a107ab0b4fdb2c063779f6a6aeefc062d06ce111089110dff519a776d78903", type_checked_symbol_table = "ee301c204708fc6aea084508c9e41a5a3591ffd2e613aec2fcaddc995ebdae0e", unrolled_ast = "7237d106a674e3ef4eb827e6261da01c55285acd236c24e1d8c1e98be1265bde", unrolled_symbol_table = "ee301c204708fc6aea084508c9e41a5a3591ffd2e613aec2fcaddc995ebdae0e", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as u16.private; + is.eq r0 127u16 into r3; + is.eq r1 27u16 into r4; + and r3 r4 into r5; + is.eq r2 21u16 into r6; + and r5 r6 into r7; + output r7 as boolean.private; +""", dce_ast = "eb52007d76aa281c459bb396b62dcb89d6ca6a89c1bf7ac74a95922b56da58c8", destructured_ast = "eb52007d76aa281c459bb396b62dcb89d6ca6a89c1bf7ac74a95922b56da58c8", errors = "", flattened_ast = "4ae366c08d8e3eafd5e3117891cb2d611ab0666b99bb82b6edf6598456b7aeae", initial_ast = "7237d106a674e3ef4eb827e6261da01c55285acd236c24e1d8c1e98be1265bde", initial_symbol_table = "e66c651dae82c04c0d085c91046c1385ebfdb9862762b20c86c170ba0909b41b", inlined_ast = "eb52007d76aa281c459bb396b62dcb89d6ca6a89c1bf7ac74a95922b56da58c8", ssa_ast = "69a107ab0b4fdb2c063779f6a6aeefc062d06ce111089110dff519a776d78903", type_checked_symbol_table = "ee301c204708fc6aea084508c9e41a5a3591ffd2e613aec2fcaddc995ebdae0e", unrolled_ast = "7237d106a674e3ef4eb827e6261da01c55285acd236c24e1d8c1e98be1265bde", unrolled_symbol_table = "ee301c204708fc6aea084508c9e41a5a3591ffd2e613aec2fcaddc995ebdae0e", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/le.out b/tests/expectations/compiler/integers/u16/le.out index 854c4a2623..490d4f981d 100644 --- a/tests/expectations/compiler/integers/u16/le.out +++ b/tests/expectations/compiler/integers/u16/le.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "1a4dc861ca94e33a883b8326dcf9a21345fdd65b1d00dcaab408cbe8bf2e7c23", dce_ast = "2336cc6c5703de30cf3f2eca475366baf5edcb4fa5d15dee5822291aa8159533", destructured_ast = "2336cc6c5703de30cf3f2eca475366baf5edcb4fa5d15dee5822291aa8159533", errors = "", flattened_ast = "9a8f993016f55a6c09c8ea5fb6368eb187bb3b4753a36bb7569228a59a3e1da1", initial_ast = "6dd0e41ab23f254ee71f5fefb8907d53bf422fdf9618cc97218c48662fe0a2d1", initial_symbol_table = "532132f4a61c827b67da0b95d5af1f1409de765d50b723694e98e00b11e668a7", inlined_ast = "2336cc6c5703de30cf3f2eca475366baf5edcb4fa5d15dee5822291aa8159533", ssa_ast = "2af7e16760f60263c09c3fcca0eb8a9d258a3feafcfe183080a98b654e87ddc6", type_checked_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", unrolled_ast = "6dd0e41ab23f254ee71f5fefb8907d53bf422fdf9618cc97218c48662fe0a2d1", unrolled_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as boolean.private; + lte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "2336cc6c5703de30cf3f2eca475366baf5edcb4fa5d15dee5822291aa8159533", destructured_ast = "2336cc6c5703de30cf3f2eca475366baf5edcb4fa5d15dee5822291aa8159533", errors = "", flattened_ast = "9a8f993016f55a6c09c8ea5fb6368eb187bb3b4753a36bb7569228a59a3e1da1", initial_ast = "6dd0e41ab23f254ee71f5fefb8907d53bf422fdf9618cc97218c48662fe0a2d1", initial_symbol_table = "532132f4a61c827b67da0b95d5af1f1409de765d50b723694e98e00b11e668a7", inlined_ast = "2336cc6c5703de30cf3f2eca475366baf5edcb4fa5d15dee5822291aa8159533", ssa_ast = "2af7e16760f60263c09c3fcca0eb8a9d258a3feafcfe183080a98b654e87ddc6", type_checked_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", unrolled_ast = "6dd0e41ab23f254ee71f5fefb8907d53bf422fdf9618cc97218c48662fe0a2d1", unrolled_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/lt.out b/tests/expectations/compiler/integers/u16/lt.out index 8cd56867f5..c8348863a3 100644 --- a/tests/expectations/compiler/integers/u16/lt.out +++ b/tests/expectations/compiler/integers/u16/lt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "3b2dd5b9dfa587ed0f67449bbc6a9a0b90edb7c9ffbee5e36f1c40512e09bb1d", dce_ast = "3741d555f7fe397fa671fda8197a493bb63ad7066c89036f072ddeabe7d65909", destructured_ast = "3741d555f7fe397fa671fda8197a493bb63ad7066c89036f072ddeabe7d65909", errors = "", flattened_ast = "7302bdf3b2990efdc2b3238b0c7c8bf1fa4a3f9db33b53da8e126a5194947ee0", initial_ast = "f6073615779a23632f286a1f02f29cd6ad9d8c8b0584daef9468d72b84ba62f6", initial_symbol_table = "532132f4a61c827b67da0b95d5af1f1409de765d50b723694e98e00b11e668a7", inlined_ast = "3741d555f7fe397fa671fda8197a493bb63ad7066c89036f072ddeabe7d65909", ssa_ast = "ac4f1c2daa17244a86750b57a21690903263df9badaae512be343cb87be53663", type_checked_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", unrolled_ast = "f6073615779a23632f286a1f02f29cd6ad9d8c8b0584daef9468d72b84ba62f6", unrolled_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as boolean.private; + lt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "3741d555f7fe397fa671fda8197a493bb63ad7066c89036f072ddeabe7d65909", destructured_ast = "3741d555f7fe397fa671fda8197a493bb63ad7066c89036f072ddeabe7d65909", errors = "", flattened_ast = "7302bdf3b2990efdc2b3238b0c7c8bf1fa4a3f9db33b53da8e126a5194947ee0", initial_ast = "f6073615779a23632f286a1f02f29cd6ad9d8c8b0584daef9468d72b84ba62f6", initial_symbol_table = "532132f4a61c827b67da0b95d5af1f1409de765d50b723694e98e00b11e668a7", inlined_ast = "3741d555f7fe397fa671fda8197a493bb63ad7066c89036f072ddeabe7d65909", ssa_ast = "ac4f1c2daa17244a86750b57a21690903263df9badaae512be343cb87be53663", type_checked_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", unrolled_ast = "f6073615779a23632f286a1f02f29cd6ad9d8c8b0584daef9468d72b84ba62f6", unrolled_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/max.out b/tests/expectations/compiler/integers/u16/max.out index f896368dea..d58a58c79e 100644 --- a/tests/expectations/compiler/integers/u16/max.out +++ b/tests/expectations/compiler/integers/u16/max.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69", dce_ast = "0601c7ed0fb6045fbafa8146d604adf3ea3ba1a717897856a12c59f8a3e3a073", destructured_ast = "1be0839fcc3bb4d8f131448363376b1aba33ec6ece0a0ee2e5d4014ff4933cfc", errors = "", flattened_ast = "b0fb82658aec8bf97d66e462288498fe9e94206df94000ba219c82e41979740a", initial_ast = "c9f482eb647c4c5bf8759312143f3be0d66b8dead37c4c79cd632ff39f249476", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "1be0839fcc3bb4d8f131448363376b1aba33ec6ece0a0ee2e5d4014ff4933cfc", ssa_ast = "f8b086ba4aedf0ed5830d266d4012c96736880e43eae3d91121fca46ad02b597", type_checked_symbol_table = "13a6f3629697218667320d2794310d96612f4713c956a526ece8f493fbf3b283", unrolled_ast = "c9f482eb647c4c5bf8759312143f3be0d66b8dead37c4c79cd632ff39f249476", unrolled_symbol_table = "13a6f3629697218667320d2794310d96612f4713c956a526ece8f493fbf3b283", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + is.eq r0 true into r1; + output r1 as boolean.private; +""", dce_ast = "0601c7ed0fb6045fbafa8146d604adf3ea3ba1a717897856a12c59f8a3e3a073", destructured_ast = "1be0839fcc3bb4d8f131448363376b1aba33ec6ece0a0ee2e5d4014ff4933cfc", errors = "", flattened_ast = "b0fb82658aec8bf97d66e462288498fe9e94206df94000ba219c82e41979740a", initial_ast = "c9f482eb647c4c5bf8759312143f3be0d66b8dead37c4c79cd632ff39f249476", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "1be0839fcc3bb4d8f131448363376b1aba33ec6ece0a0ee2e5d4014ff4933cfc", ssa_ast = "f8b086ba4aedf0ed5830d266d4012c96736880e43eae3d91121fca46ad02b597", type_checked_symbol_table = "13a6f3629697218667320d2794310d96612f4713c956a526ece8f493fbf3b283", unrolled_ast = "c9f482eb647c4c5bf8759312143f3be0d66b8dead37c4c79cd632ff39f249476", unrolled_symbol_table = "13a6f3629697218667320d2794310d96612f4713c956a526ece8f493fbf3b283", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/min.out b/tests/expectations/compiler/integers/u16/min.out index 60248d1819..cd6be6a7b5 100644 --- a/tests/expectations/compiler/integers/u16/min.out +++ b/tests/expectations/compiler/integers/u16/min.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69", dce_ast = "0c7cb8dbac921c14c7385c82a94c1a455955b24d2ff05266ecc377271e33d840", destructured_ast = "092e0d5c38d75069b0a9da6163b24308fdc6e42c47e0a44f4aea8638f7a9709a", errors = "", flattened_ast = "445f3e06c3980be9df5d088336167f33f71c986d411da4112f76a550cb6fe498", initial_ast = "5b969bb252bebf857a668edd23085cbcff16f949b053369245d9a66ee23523b6", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "092e0d5c38d75069b0a9da6163b24308fdc6e42c47e0a44f4aea8638f7a9709a", ssa_ast = "93838c8f36354270335fad1f3e3f9589080ef63e0589464ebb08cf58bc243159", type_checked_symbol_table = "13a6f3629697218667320d2794310d96612f4713c956a526ece8f493fbf3b283", unrolled_ast = "5b969bb252bebf857a668edd23085cbcff16f949b053369245d9a66ee23523b6", unrolled_symbol_table = "13a6f3629697218667320d2794310d96612f4713c956a526ece8f493fbf3b283", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + is.eq r0 true into r1; + output r1 as boolean.private; +""", dce_ast = "0c7cb8dbac921c14c7385c82a94c1a455955b24d2ff05266ecc377271e33d840", destructured_ast = "092e0d5c38d75069b0a9da6163b24308fdc6e42c47e0a44f4aea8638f7a9709a", errors = "", flattened_ast = "445f3e06c3980be9df5d088336167f33f71c986d411da4112f76a550cb6fe498", initial_ast = "5b969bb252bebf857a668edd23085cbcff16f949b053369245d9a66ee23523b6", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "092e0d5c38d75069b0a9da6163b24308fdc6e42c47e0a44f4aea8638f7a9709a", ssa_ast = "93838c8f36354270335fad1f3e3f9589080ef63e0589464ebb08cf58bc243159", type_checked_symbol_table = "13a6f3629697218667320d2794310d96612f4713c956a526ece8f493fbf3b283", unrolled_ast = "5b969bb252bebf857a668edd23085cbcff16f949b053369245d9a66ee23523b6", unrolled_symbol_table = "13a6f3629697218667320d2794310d96612f4713c956a526ece8f493fbf3b283", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/mul.out b/tests/expectations/compiler/integers/u16/mul.out index 5c86867bc4..f8b012abd0 100644 --- a/tests/expectations/compiler/integers/u16/mul.out +++ b/tests/expectations/compiler/integers/u16/mul.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "5495593b6e8c8b396503f1f61e5f3b620d1ccc173721316cfb1f30b268486ed5", dce_ast = "726f07f65cea519b5ebaebf358d552f71b26d7b3f4d02df3ae07edb776a7c2b0", destructured_ast = "726f07f65cea519b5ebaebf358d552f71b26d7b3f4d02df3ae07edb776a7c2b0", errors = "", flattened_ast = "0545a3f6370118ea0743f6e0542cced046ce5bf141fcdaa5062f86dff43f245b", initial_ast = "8464b50e73deec84b190abb6411a5af79b1ca061736fedc216ac938921fe6fa0", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "726f07f65cea519b5ebaebf358d552f71b26d7b3f4d02df3ae07edb776a7c2b0", ssa_ast = "57f3aae981d6aafbcf8e6cb5b68aee9e15f1d159150ac3fb6e40bbac9d599833", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "8464b50e73deec84b190abb6411a5af79b1ca061736fedc216ac938921fe6fa0", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as u16.private; + mul r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "726f07f65cea519b5ebaebf358d552f71b26d7b3f4d02df3ae07edb776a7c2b0", destructured_ast = "726f07f65cea519b5ebaebf358d552f71b26d7b3f4d02df3ae07edb776a7c2b0", errors = "", flattened_ast = "0545a3f6370118ea0743f6e0542cced046ce5bf141fcdaa5062f86dff43f245b", initial_ast = "8464b50e73deec84b190abb6411a5af79b1ca061736fedc216ac938921fe6fa0", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "726f07f65cea519b5ebaebf358d552f71b26d7b3f4d02df3ae07edb776a7c2b0", ssa_ast = "57f3aae981d6aafbcf8e6cb5b68aee9e15f1d159150ac3fb6e40bbac9d599833", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "8464b50e73deec84b190abb6411a5af79b1ca061736fedc216ac938921fe6fa0", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/ne.out b/tests/expectations/compiler/integers/u16/ne.out index d636862303..50aa927356 100644 --- a/tests/expectations/compiler/integers/u16/ne.out +++ b/tests/expectations/compiler/integers/u16/ne.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "02468182490bfd77f1aae9ed8c5a4b1cd2a3373c2bdc998f6567f5c900fefe33", dce_ast = "1e075616e1d2334db51cdc861ef0966b31d77ab84d2a3f5e2bab0e755cf9f356", destructured_ast = "1e075616e1d2334db51cdc861ef0966b31d77ab84d2a3f5e2bab0e755cf9f356", errors = "", flattened_ast = "6b52cfb692c3504fbb0b4fe389e2e3def7f530dcec0265e6c66661dab87b1284", initial_ast = "86e861140280d127ad182d654282a38ca2ec87dd10ee1b7e2f1b569a48122c19", initial_symbol_table = "532132f4a61c827b67da0b95d5af1f1409de765d50b723694e98e00b11e668a7", inlined_ast = "1e075616e1d2334db51cdc861ef0966b31d77ab84d2a3f5e2bab0e755cf9f356", ssa_ast = "af61f34815f0c0740b9a6f418cd83921843d3969fd37457abef92813fd56b62b", type_checked_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", unrolled_ast = "86e861140280d127ad182d654282a38ca2ec87dd10ee1b7e2f1b569a48122c19", unrolled_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as boolean.private; + is.neq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "1e075616e1d2334db51cdc861ef0966b31d77ab84d2a3f5e2bab0e755cf9f356", destructured_ast = "1e075616e1d2334db51cdc861ef0966b31d77ab84d2a3f5e2bab0e755cf9f356", errors = "", flattened_ast = "6b52cfb692c3504fbb0b4fe389e2e3def7f530dcec0265e6c66661dab87b1284", initial_ast = "86e861140280d127ad182d654282a38ca2ec87dd10ee1b7e2f1b569a48122c19", initial_symbol_table = "532132f4a61c827b67da0b95d5af1f1409de765d50b723694e98e00b11e668a7", inlined_ast = "1e075616e1d2334db51cdc861ef0966b31d77ab84d2a3f5e2bab0e755cf9f356", ssa_ast = "af61f34815f0c0740b9a6f418cd83921843d3969fd37457abef92813fd56b62b", type_checked_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", unrolled_ast = "86e861140280d127ad182d654282a38ca2ec87dd10ee1b7e2f1b569a48122c19", unrolled_symbol_table = "cbe83abf3345d38b60305ccd82572e17f21c5db2eb64ff18d74a36e881637749", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/operator_methods.out b/tests/expectations/compiler/integers/u16/operator_methods.out index 52e033bc65..817eb68ce6 100644 --- a/tests/expectations/compiler/integers/u16/operator_methods.out +++ b/tests/expectations/compiler/integers/u16/operator_methods.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "842bf9cb4647adc6c67cecc1c36ec85f5a659d9245571869e10e93bb303ff343", dce_ast = "b3801510ba00f29bbd0f02c720caf9b4b254de82537df578e89cc809be0dea0a", destructured_ast = "9b47bc3371a4b105be8e478d6e7d5af9276b1210d237e30d43ddb065a50748c4", errors = "", flattened_ast = "603426fb0fd37a71132d18b432718610c74eb172419a3fc81bc72bbcb8cc758e", initial_ast = "5076e8aceb97562a76f7a15ec89a551d732ad00714c8f6131944b5a652e9e886", initial_symbol_table = "7b7bc9bdbe3ec877643464e39f48759fcde838285e3717f6eb6ca40ba2354e6a", inlined_ast = "9b47bc3371a4b105be8e478d6e7d5af9276b1210d237e30d43ddb065a50748c4", ssa_ast = "1495cff87b57115a3c78ef3be1a584e6af4670d727d4b6d300220a9f38a643a1", type_checked_symbol_table = "6a795c474b90388bec2b5858f41d2b392e8a58a6d8e1bf894e4b75152e7b5a59", unrolled_ast = "5076e8aceb97562a76f7a15ec89a551d732ad00714c8f6131944b5a652e9e886", unrolled_symbol_table = "6a795c474b90388bec2b5858f41d2b392e8a58a6d8e1bf894e4b75152e7b5a59", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + is.eq r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "b3801510ba00f29bbd0f02c720caf9b4b254de82537df578e89cc809be0dea0a", destructured_ast = "9b47bc3371a4b105be8e478d6e7d5af9276b1210d237e30d43ddb065a50748c4", errors = "", flattened_ast = "603426fb0fd37a71132d18b432718610c74eb172419a3fc81bc72bbcb8cc758e", initial_ast = "5076e8aceb97562a76f7a15ec89a551d732ad00714c8f6131944b5a652e9e886", initial_symbol_table = "7b7bc9bdbe3ec877643464e39f48759fcde838285e3717f6eb6ca40ba2354e6a", inlined_ast = "9b47bc3371a4b105be8e478d6e7d5af9276b1210d237e30d43ddb065a50748c4", ssa_ast = "1495cff87b57115a3c78ef3be1a584e6af4670d727d4b6d300220a9f38a643a1", type_checked_symbol_table = "6a795c474b90388bec2b5858f41d2b392e8a58a6d8e1bf894e4b75152e7b5a59", unrolled_ast = "5076e8aceb97562a76f7a15ec89a551d732ad00714c8f6131944b5a652e9e886", unrolled_symbol_table = "6a795c474b90388bec2b5858f41d2b392e8a58a6d8e1bf894e4b75152e7b5a59", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/or.out b/tests/expectations/compiler/integers/u16/or.out index 5f77404c09..6d23b2ab9c 100644 --- a/tests/expectations/compiler/integers/u16/or.out +++ b/tests/expectations/compiler/integers/u16/or.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "50061292bb5678c2bbb3062570d3f8d5233316e274c6504aa6b012816e2f511e", dce_ast = "b970628146ae5f142c2fd8ea4e1bb13049131c9c3f6e8eb7c988d503ad603f62", destructured_ast = "b970628146ae5f142c2fd8ea4e1bb13049131c9c3f6e8eb7c988d503ad603f62", errors = "", flattened_ast = "504f76f1abefe3233ac3f7475ebcc0fc96d3c797b4eaf2eb62c9c41a2376bf6b", initial_ast = "adda7e59b5936e3cc3b59f2c893212c1a5d4d8f612a4e9c08d5877a40822c8bb", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "b970628146ae5f142c2fd8ea4e1bb13049131c9c3f6e8eb7c988d503ad603f62", ssa_ast = "7ab9328a68f52edcc5c06e57888441266025836bf19d4c92828d5c62386f80d4", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "adda7e59b5936e3cc3b59f2c893212c1a5d4d8f612a4e9c08d5877a40822c8bb", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as u16.private; + or r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "b970628146ae5f142c2fd8ea4e1bb13049131c9c3f6e8eb7c988d503ad603f62", destructured_ast = "b970628146ae5f142c2fd8ea4e1bb13049131c9c3f6e8eb7c988d503ad603f62", errors = "", flattened_ast = "504f76f1abefe3233ac3f7475ebcc0fc96d3c797b4eaf2eb62c9c41a2376bf6b", initial_ast = "adda7e59b5936e3cc3b59f2c893212c1a5d4d8f612a4e9c08d5877a40822c8bb", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "b970628146ae5f142c2fd8ea4e1bb13049131c9c3f6e8eb7c988d503ad603f62", ssa_ast = "7ab9328a68f52edcc5c06e57888441266025836bf19d4c92828d5c62386f80d4", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "adda7e59b5936e3cc3b59f2c893212c1a5d4d8f612a4e9c08d5877a40822c8bb", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/pow.out b/tests/expectations/compiler/integers/u16/pow.out index 0b7aa1202c..10a4f6381b 100644 --- a/tests/expectations/compiler/integers/u16/pow.out +++ b/tests/expectations/compiler/integers/u16/pow.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "57544c7875d33d64e359c3e64ab2115a3d431c3ecba318223e0237fbbbdfcde0", dce_ast = "aa4d5e71a9b1724a313259e42ce9986f7827542fb17ae0aba29abe9333c25bf0", destructured_ast = "aa4d5e71a9b1724a313259e42ce9986f7827542fb17ae0aba29abe9333c25bf0", errors = "", flattened_ast = "8d2243a65879302241156303ef11cbd92156ab10ba5799b11fa8354ee62ac37e", initial_ast = "ecfb1f88bb1a63dcd00bb7dcfbad0458fde9a30d51b5d11d5054541c3f1c9c57", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "aa4d5e71a9b1724a313259e42ce9986f7827542fb17ae0aba29abe9333c25bf0", ssa_ast = "bd1d6b38ac2b28e54e44b2f36bd44e4cb03c3547438a96b3b61f79df03d8e2c5", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "ecfb1f88bb1a63dcd00bb7dcfbad0458fde9a30d51b5d11d5054541c3f1c9c57", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as u16.private; + pow r0 2u8 into r3; + pow r0 r1 into r4; + is.eq r3 r4 into r5; + pow r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "aa4d5e71a9b1724a313259e42ce9986f7827542fb17ae0aba29abe9333c25bf0", destructured_ast = "aa4d5e71a9b1724a313259e42ce9986f7827542fb17ae0aba29abe9333c25bf0", errors = "", flattened_ast = "8d2243a65879302241156303ef11cbd92156ab10ba5799b11fa8354ee62ac37e", initial_ast = "ecfb1f88bb1a63dcd00bb7dcfbad0458fde9a30d51b5d11d5054541c3f1c9c57", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "aa4d5e71a9b1724a313259e42ce9986f7827542fb17ae0aba29abe9333c25bf0", ssa_ast = "bd1d6b38ac2b28e54e44b2f36bd44e4cb03c3547438a96b3b61f79df03d8e2c5", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "ecfb1f88bb1a63dcd00bb7dcfbad0458fde9a30d51b5d11d5054541c3f1c9c57", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/rem.out b/tests/expectations/compiler/integers/u16/rem.out index df71667e4f..518e8f81bd 100644 --- a/tests/expectations/compiler/integers/u16/rem.out +++ b/tests/expectations/compiler/integers/u16/rem.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "312a00be59034a01944b77f36b32275e4d54b11d5b098a7e19c7bb4906e6ca6f", dce_ast = "929087a35b76c51987264ad14e8a8ec6ec6fb9bc3c7901becb037bf1dbc16ebf", destructured_ast = "929087a35b76c51987264ad14e8a8ec6ec6fb9bc3c7901becb037bf1dbc16ebf", errors = "", flattened_ast = "3944681d508c330d0bfd6ecae7675fa2da0b7b686e266491a8f089c44cd7be58", initial_ast = "8e96b15143e4083cb244c279a02a41337c0abf86664853c386a9abb4918d36d1", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "929087a35b76c51987264ad14e8a8ec6ec6fb9bc3c7901becb037bf1dbc16ebf", ssa_ast = "a96ed3f85b7c2c2023c3a7d06467824e7cbff35ea881b1e612e7674c4b55e6f1", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "8e96b15143e4083cb244c279a02a41337c0abf86664853c386a9abb4918d36d1", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as u16.private; + rem r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "929087a35b76c51987264ad14e8a8ec6ec6fb9bc3c7901becb037bf1dbc16ebf", destructured_ast = "929087a35b76c51987264ad14e8a8ec6ec6fb9bc3c7901becb037bf1dbc16ebf", errors = "", flattened_ast = "3944681d508c330d0bfd6ecae7675fa2da0b7b686e266491a8f089c44cd7be58", initial_ast = "8e96b15143e4083cb244c279a02a41337c0abf86664853c386a9abb4918d36d1", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "929087a35b76c51987264ad14e8a8ec6ec6fb9bc3c7901becb037bf1dbc16ebf", ssa_ast = "a96ed3f85b7c2c2023c3a7d06467824e7cbff35ea881b1e612e7674c4b55e6f1", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "8e96b15143e4083cb244c279a02a41337c0abf86664853c386a9abb4918d36d1", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/shl.out b/tests/expectations/compiler/integers/u16/shl.out index a970cd934b..f3a7e46ba4 100644 --- a/tests/expectations/compiler/integers/u16/shl.out +++ b/tests/expectations/compiler/integers/u16/shl.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "5ebe5527cde826ed570752b1e9ffd16a4805c5071c3adbd4099ebad9174d5f11", dce_ast = "97b182dc206e7658528368544686e2ad2c2208a28a1adf58b2b24f7d1a515b74", destructured_ast = "97b182dc206e7658528368544686e2ad2c2208a28a1adf58b2b24f7d1a515b74", errors = "", flattened_ast = "c5e22f3d78bbeda14f4a606683879303dd1bb45281b294a8d431b492910a7d86", initial_ast = "c9fb97d02bbbba9ceb0d59dad3c3d769b2f3a5444560c85c45881a15abfacd0b", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "97b182dc206e7658528368544686e2ad2c2208a28a1adf58b2b24f7d1a515b74", ssa_ast = "2d272a0007862b6852447ede282aff6aff28af52ed6aca9699139a3e42a027ed", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "c9fb97d02bbbba9ceb0d59dad3c3d769b2f3a5444560c85c45881a15abfacd0b", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as u16.private; + shl r0 2u8 into r3; + shl r0 r1 into r4; + is.eq r3 r4 into r5; + shl r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "97b182dc206e7658528368544686e2ad2c2208a28a1adf58b2b24f7d1a515b74", destructured_ast = "97b182dc206e7658528368544686e2ad2c2208a28a1adf58b2b24f7d1a515b74", errors = "", flattened_ast = "c5e22f3d78bbeda14f4a606683879303dd1bb45281b294a8d431b492910a7d86", initial_ast = "c9fb97d02bbbba9ceb0d59dad3c3d769b2f3a5444560c85c45881a15abfacd0b", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "97b182dc206e7658528368544686e2ad2c2208a28a1adf58b2b24f7d1a515b74", ssa_ast = "2d272a0007862b6852447ede282aff6aff28af52ed6aca9699139a3e42a027ed", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "c9fb97d02bbbba9ceb0d59dad3c3d769b2f3a5444560c85c45881a15abfacd0b", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/shr.out b/tests/expectations/compiler/integers/u16/shr.out index 19e0594afb..ef4fd9c1c4 100644 --- a/tests/expectations/compiler/integers/u16/shr.out +++ b/tests/expectations/compiler/integers/u16/shr.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "27908eccc0ae25f792ff3b23f7b243cec3dc74e4167e62f5db0d2ac9c8d91d2c", dce_ast = "dde16d01fe85d044353095d839e5ff58f8efa4a0bb6559625b1b0e7fda5fefb1", destructured_ast = "dde16d01fe85d044353095d839e5ff58f8efa4a0bb6559625b1b0e7fda5fefb1", errors = "", flattened_ast = "94eb539e2624c8faa1ddf6e95d107de5099b332e1c92b4a9b90449fcc9c4e661", initial_ast = "47cd80606c9feb9ccc962dc8f19b8ace90f2d7fcff453169ae16adc282fe0bff", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "dde16d01fe85d044353095d839e5ff58f8efa4a0bb6559625b1b0e7fda5fefb1", ssa_ast = "b2648969c4d3b8df396ad53f894423a9ac9be955e08cb1c2ffe7888ff43567da", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "47cd80606c9feb9ccc962dc8f19b8ace90f2d7fcff453169ae16adc282fe0bff", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as u16.private; + shr r0 2u8 into r3; + shr r0 r1 into r4; + is.eq r3 r4 into r5; + shr r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "dde16d01fe85d044353095d839e5ff58f8efa4a0bb6559625b1b0e7fda5fefb1", destructured_ast = "dde16d01fe85d044353095d839e5ff58f8efa4a0bb6559625b1b0e7fda5fefb1", errors = "", flattened_ast = "94eb539e2624c8faa1ddf6e95d107de5099b332e1c92b4a9b90449fcc9c4e661", initial_ast = "47cd80606c9feb9ccc962dc8f19b8ace90f2d7fcff453169ae16adc282fe0bff", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "dde16d01fe85d044353095d839e5ff58f8efa4a0bb6559625b1b0e7fda5fefb1", ssa_ast = "b2648969c4d3b8df396ad53f894423a9ac9be955e08cb1c2ffe7888ff43567da", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "47cd80606c9feb9ccc962dc8f19b8ace90f2d7fcff453169ae16adc282fe0bff", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/sub.out b/tests/expectations/compiler/integers/u16/sub.out index 996c3921d2..cc56e2786a 100644 --- a/tests/expectations/compiler/integers/u16/sub.out +++ b/tests/expectations/compiler/integers/u16/sub.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "d6c71656a8b803092075816e82fbc5c044f3700139c5ca079a1a8f2be846d573", dce_ast = "cd57b88d43d4f3bbfca208fcc95c8e9059381daea4c4f3733e8d389df13bed87", destructured_ast = "cd57b88d43d4f3bbfca208fcc95c8e9059381daea4c4f3733e8d389df13bed87", errors = "", flattened_ast = "5ec9e4cede3d3440d7e923e5d0698ebb2f58caac84f727bd448f02b79ff792cb", initial_ast = "5ba7bb58223729ced7bfe77c06e292d262faaab81d5c3802d20d99dd1813fc43", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "cd57b88d43d4f3bbfca208fcc95c8e9059381daea4c4f3733e8d389df13bed87", ssa_ast = "7c3515f48c8ddfb7b0648cdd3ba3af7b87e18096b2d637fb6209612e2e60e74b", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "5ba7bb58223729ced7bfe77c06e292d262faaab81d5c3802d20d99dd1813fc43", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + input r2 as u16.private; + sub r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "cd57b88d43d4f3bbfca208fcc95c8e9059381daea4c4f3733e8d389df13bed87", destructured_ast = "cd57b88d43d4f3bbfca208fcc95c8e9059381daea4c4f3733e8d389df13bed87", errors = "", flattened_ast = "5ec9e4cede3d3440d7e923e5d0698ebb2f58caac84f727bd448f02b79ff792cb", initial_ast = "5ba7bb58223729ced7bfe77c06e292d262faaab81d5c3802d20d99dd1813fc43", initial_symbol_table = "d351774dc0346ec13bb75b6d2cc2d476e7e7155028a73b56e840ee61774ac048", inlined_ast = "cd57b88d43d4f3bbfca208fcc95c8e9059381daea4c4f3733e8d389df13bed87", ssa_ast = "7c3515f48c8ddfb7b0648cdd3ba3af7b87e18096b2d637fb6209612e2e60e74b", type_checked_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", unrolled_ast = "5ba7bb58223729ced7bfe77c06e292d262faaab81d5c3802d20d99dd1813fc43", unrolled_symbol_table = "c77e7aa74118648a422bd50cba8b7946ef133e0bde83e01eb58e3cfa8a6b17b8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/ternary.out b/tests/expectations/compiler/integers/u16/ternary.out index bec03cef7f..0c167e4b03 100644 --- a/tests/expectations/compiler/integers/u16/ternary.out +++ b/tests/expectations/compiler/integers/u16/ternary.out @@ -1,3 +1,16 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "113603fb207a83e65ee275be10ad122173cea7a90327c07028eab9fffe449016", dce_ast = "20c848ea976abc67f6e94399fdb9e1cf30d37211fa4ab2e9e277f514355bbd8e", destructured_ast = "20c848ea976abc67f6e94399fdb9e1cf30d37211fa4ab2e9e277f514355bbd8e", errors = "", flattened_ast = "7e54465f7997799e2c7573da8ef14a4e99640e779d48b23e409a884c8b9b2c3a", initial_ast = "28b932fa92d65cc3d0dca2682ce57864326342b2e65fa74518780889a439b0b0", initial_symbol_table = "7f5ebf3e7eef8eae4a42fb3970309cc60492f6074e87077ca40e4622480b7a4c", inlined_ast = "20c848ea976abc67f6e94399fdb9e1cf30d37211fa4ab2e9e277f514355bbd8e", ssa_ast = "484cb46ec9a6032baaaf2621308d4aef64a761196fbe3996f4a122e606f70fbe", type_checked_symbol_table = "a31f5beb6287b8cd5554feb6a1d4429bb041fd54f9b7a17aefd57abe9bfc1845", unrolled_ast = "28b932fa92d65cc3d0dca2682ce57864326342b2e65fa74518780889a439b0b0", unrolled_symbol_table = "a31f5beb6287b8cd5554feb6a1d4429bb041fd54f9b7a17aefd57abe9bfc1845", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + input r1 as u16.private; + input r2 as u16.private; + input r3 as u16.private; + ternary r0 r1 r2 into r4; + is.eq r4 r3 into r5; + output r5 as boolean.private; +""", dce_ast = "20c848ea976abc67f6e94399fdb9e1cf30d37211fa4ab2e9e277f514355bbd8e", destructured_ast = "20c848ea976abc67f6e94399fdb9e1cf30d37211fa4ab2e9e277f514355bbd8e", errors = "", flattened_ast = "7e54465f7997799e2c7573da8ef14a4e99640e779d48b23e409a884c8b9b2c3a", initial_ast = "28b932fa92d65cc3d0dca2682ce57864326342b2e65fa74518780889a439b0b0", initial_symbol_table = "7f5ebf3e7eef8eae4a42fb3970309cc60492f6074e87077ca40e4622480b7a4c", inlined_ast = "20c848ea976abc67f6e94399fdb9e1cf30d37211fa4ab2e9e277f514355bbd8e", ssa_ast = "484cb46ec9a6032baaaf2621308d4aef64a761196fbe3996f4a122e606f70fbe", type_checked_symbol_table = "a31f5beb6287b8cd5554feb6a1d4429bb041fd54f9b7a17aefd57abe9bfc1845", unrolled_ast = "28b932fa92d65cc3d0dca2682ce57864326342b2e65fa74518780889a439b0b0", unrolled_symbol_table = "a31f5beb6287b8cd5554feb6a1d4429bb041fd54f9b7a17aefd57abe9bfc1845", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u16/xor.out b/tests/expectations/compiler/integers/u16/xor.out index d0d4696f87..0c5be0761d 100644 --- a/tests/expectations/compiler/integers/u16/xor.out +++ b/tests/expectations/compiler/integers/u16/xor.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "eb928c87aa9dab9c5fd3d063c6f3bd9400ca1fb12eea712baf4406852dc1f439", dce_ast = "91a708ca2e723b108ccf80324be3f3f0f5a6bf1181209e3669d229e0906007e5", destructured_ast = "91a708ca2e723b108ccf80324be3f3f0f5a6bf1181209e3669d229e0906007e5", errors = "", flattened_ast = "853dfa1f93ca403bcd6762faf7b2b81ba579f7d448c68be066ef5453c632fa9e", initial_ast = "6909041641a87d02a6169f1d8df3faacff8ff77865f459d4afa1bcf0e246b4c9", initial_symbol_table = "9b8e9f327a839748e96489c1bd9efa4f4a7a0740ab6a99783bb909647270e6b9", inlined_ast = "91a708ca2e723b108ccf80324be3f3f0f5a6bf1181209e3669d229e0906007e5", ssa_ast = "9abb1cacc675f86131001135f7544d44560613dc6bd18b31086680c625c61a02", type_checked_symbol_table = "31b227a6b7c18c7b9af830e4356edff513b365d14196a379e753f17cef6f694f", unrolled_ast = "6909041641a87d02a6169f1d8df3faacff8ff77865f459d4afa1bcf0e246b4c9", unrolled_symbol_table = "31b227a6b7c18c7b9af830e4356edff513b365d14196a379e753f17cef6f694f", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u16.private; + input r1 as u16.private; + xor r0 r1 into r2; + output r2 as u16.private; +""", dce_ast = "91a708ca2e723b108ccf80324be3f3f0f5a6bf1181209e3669d229e0906007e5", destructured_ast = "91a708ca2e723b108ccf80324be3f3f0f5a6bf1181209e3669d229e0906007e5", errors = "", flattened_ast = "853dfa1f93ca403bcd6762faf7b2b81ba579f7d448c68be066ef5453c632fa9e", initial_ast = "6909041641a87d02a6169f1d8df3faacff8ff77865f459d4afa1bcf0e246b4c9", initial_symbol_table = "9b8e9f327a839748e96489c1bd9efa4f4a7a0740ab6a99783bb909647270e6b9", inlined_ast = "91a708ca2e723b108ccf80324be3f3f0f5a6bf1181209e3669d229e0906007e5", ssa_ast = "9abb1cacc675f86131001135f7544d44560613dc6bd18b31086680c625c61a02", type_checked_symbol_table = "31b227a6b7c18c7b9af830e4356edff513b365d14196a379e753f17cef6f694f", unrolled_ast = "6909041641a87d02a6169f1d8df3faacff8ff77865f459d4afa1bcf0e246b4c9", unrolled_symbol_table = "31b227a6b7c18c7b9af830e4356edff513b365d14196a379e753f17cef6f694f", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/add.out b/tests/expectations/compiler/integers/u32/add.out index 7023683994..f7c70c3379 100644 --- a/tests/expectations/compiler/integers/u32/add.out +++ b/tests/expectations/compiler/integers/u32/add.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "6a79f884436b0bdadcee0ff3dd76a5e3fb16cd5d733f2091cbb17cc680c8b185", dce_ast = "1e18b0f8efb605e1cffefceb0f147b9eb5875feaebe3dd90e74ae8992ee72b45", destructured_ast = "1e18b0f8efb605e1cffefceb0f147b9eb5875feaebe3dd90e74ae8992ee72b45", errors = "", flattened_ast = "8e09453af8acf7adb78877f23346249bde1b5a360e9aef4ea37c16f282e1f502", initial_ast = "57b38b0ed37d40261ae6151707e130f21c82ff55d361cc6a9e3d053936d16c5b", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "1e18b0f8efb605e1cffefceb0f147b9eb5875feaebe3dd90e74ae8992ee72b45", ssa_ast = "11942fab2544873e0f34b2d8bb04363815984aa56ec02c283666cb4f6f548b4c", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "57b38b0ed37d40261ae6151707e130f21c82ff55d361cc6a9e3d053936d16c5b", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as u32.private; + add r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "1e18b0f8efb605e1cffefceb0f147b9eb5875feaebe3dd90e74ae8992ee72b45", destructured_ast = "1e18b0f8efb605e1cffefceb0f147b9eb5875feaebe3dd90e74ae8992ee72b45", errors = "", flattened_ast = "8e09453af8acf7adb78877f23346249bde1b5a360e9aef4ea37c16f282e1f502", initial_ast = "57b38b0ed37d40261ae6151707e130f21c82ff55d361cc6a9e3d053936d16c5b", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "1e18b0f8efb605e1cffefceb0f147b9eb5875feaebe3dd90e74ae8992ee72b45", ssa_ast = "11942fab2544873e0f34b2d8bb04363815984aa56ec02c283666cb4f6f548b4c", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "57b38b0ed37d40261ae6151707e130f21c82ff55d361cc6a9e3d053936d16c5b", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/and.out b/tests/expectations/compiler/integers/u32/and.out index b1390b6c9b..da5c537208 100644 --- a/tests/expectations/compiler/integers/u32/and.out +++ b/tests/expectations/compiler/integers/u32/and.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "8cf2c9baf4dd960c2135a86ac62576bcb4d04c2ba826ff413bdce7f05d230516", dce_ast = "3b50b6a38d5c4b13e4efef4d24e207d936a9274ee3d9fd0d85ecb0cb68e75621", destructured_ast = "3b50b6a38d5c4b13e4efef4d24e207d936a9274ee3d9fd0d85ecb0cb68e75621", errors = "", flattened_ast = "8df4369c4582d0c12c76e7e8efed8e64dd7439cad96c51171b9b9f4e6d3f01ff", initial_ast = "1e27e28f3407dcd3789581df6c78fb4118279b621fc2ae32b9790cf9de655dea", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "3b50b6a38d5c4b13e4efef4d24e207d936a9274ee3d9fd0d85ecb0cb68e75621", ssa_ast = "15556181dd8cf4be8f741712d549b1125eaf3f94ba0d39d92aa225d2fceae885", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "1e27e28f3407dcd3789581df6c78fb4118279b621fc2ae32b9790cf9de655dea", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as u32.private; + and r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "3b50b6a38d5c4b13e4efef4d24e207d936a9274ee3d9fd0d85ecb0cb68e75621", destructured_ast = "3b50b6a38d5c4b13e4efef4d24e207d936a9274ee3d9fd0d85ecb0cb68e75621", errors = "", flattened_ast = "8df4369c4582d0c12c76e7e8efed8e64dd7439cad96c51171b9b9f4e6d3f01ff", initial_ast = "1e27e28f3407dcd3789581df6c78fb4118279b621fc2ae32b9790cf9de655dea", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "3b50b6a38d5c4b13e4efef4d24e207d936a9274ee3d9fd0d85ecb0cb68e75621", ssa_ast = "15556181dd8cf4be8f741712d549b1125eaf3f94ba0d39d92aa225d2fceae885", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "1e27e28f3407dcd3789581df6c78fb4118279b621fc2ae32b9790cf9de655dea", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/console_assert.out b/tests/expectations/compiler/integers/u32/console_assert.out index f833b6c9e5..39812e273b 100644 --- a/tests/expectations/compiler/integers/u32/console_assert.out +++ b/tests/expectations/compiler/integers/u32/console_assert.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "c05a2b573d0bcf072a9b4cda004f6e3c44b73fba4238919546eb3703cb05c258", dce_ast = "a893d7884474e91a62ae23f42eac4eaa192846e914e60054b258e91eee3c4c55", destructured_ast = "a893d7884474e91a62ae23f42eac4eaa192846e914e60054b258e91eee3c4c55", errors = "", flattened_ast = "db732de82d289f3f78297a8a17b08fe167cc826a1a5fe64df9734578fa6e86d4", initial_ast = "2e4603710162e7f7f45ecdfa119fb9ec6d443b20f52f111be22d681bd396e57f", initial_symbol_table = "55845c0ef65dc069d8a9f40f24d894b762d395bc99c75557a05fd7489bd2fa50", inlined_ast = "a893d7884474e91a62ae23f42eac4eaa192846e914e60054b258e91eee3c4c55", ssa_ast = "f80b5bf28ce2c725b63088fac28efc60e7f1bf3896e38dd2a5c0bd9c6570c8e5", type_checked_symbol_table = "2caa421f17f91253c7aabe6f63f56bd5631244b88e2fbc76e1b833c610232971", unrolled_ast = "2e4603710162e7f7f45ecdfa119fb9ec6d443b20f52f111be22d681bd396e57f", unrolled_symbol_table = "2caa421f17f91253c7aabe6f63f56bd5631244b88e2fbc76e1b833c610232971", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + is.eq r0 r1 into r2; + assert.eq r2 true; + output r2 as boolean.private; +""", dce_ast = "a893d7884474e91a62ae23f42eac4eaa192846e914e60054b258e91eee3c4c55", destructured_ast = "a893d7884474e91a62ae23f42eac4eaa192846e914e60054b258e91eee3c4c55", errors = "", flattened_ast = "db732de82d289f3f78297a8a17b08fe167cc826a1a5fe64df9734578fa6e86d4", initial_ast = "2e4603710162e7f7f45ecdfa119fb9ec6d443b20f52f111be22d681bd396e57f", initial_symbol_table = "55845c0ef65dc069d8a9f40f24d894b762d395bc99c75557a05fd7489bd2fa50", inlined_ast = "a893d7884474e91a62ae23f42eac4eaa192846e914e60054b258e91eee3c4c55", ssa_ast = "f80b5bf28ce2c725b63088fac28efc60e7f1bf3896e38dd2a5c0bd9c6570c8e5", type_checked_symbol_table = "2caa421f17f91253c7aabe6f63f56bd5631244b88e2fbc76e1b833c610232971", unrolled_ast = "2e4603710162e7f7f45ecdfa119fb9ec6d443b20f52f111be22d681bd396e57f", unrolled_symbol_table = "2caa421f17f91253c7aabe6f63f56bd5631244b88e2fbc76e1b833c610232971", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/div.out b/tests/expectations/compiler/integers/u32/div.out index 7c40e643d0..7b63b4a83e 100644 --- a/tests/expectations/compiler/integers/u32/div.out +++ b/tests/expectations/compiler/integers/u32/div.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "544b47ba167ef02d93729c64e3bb7f76cd94229385874a8c68b48cdf9f7cf767", dce_ast = "874fd959ed6b6d70be35ef420e7e3c264d0f1170f1b209c6a31d837f6329a89a", destructured_ast = "874fd959ed6b6d70be35ef420e7e3c264d0f1170f1b209c6a31d837f6329a89a", errors = "", flattened_ast = "63ff783ca61e7da81364b19836be624887de9bb526685d8e54975424d6ee4b60", initial_ast = "65d384f0f33c5c4344f399c8ba23cad871efd72936b112355337117c0af3e770", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "874fd959ed6b6d70be35ef420e7e3c264d0f1170f1b209c6a31d837f6329a89a", ssa_ast = "0305f133a3d385bb7a0774ef8f44c7b5c9af689867edb48b71ca47e5d9183586", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "65d384f0f33c5c4344f399c8ba23cad871efd72936b112355337117c0af3e770", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as u32.private; + div r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "874fd959ed6b6d70be35ef420e7e3c264d0f1170f1b209c6a31d837f6329a89a", destructured_ast = "874fd959ed6b6d70be35ef420e7e3c264d0f1170f1b209c6a31d837f6329a89a", errors = "", flattened_ast = "63ff783ca61e7da81364b19836be624887de9bb526685d8e54975424d6ee4b60", initial_ast = "65d384f0f33c5c4344f399c8ba23cad871efd72936b112355337117c0af3e770", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "874fd959ed6b6d70be35ef420e7e3c264d0f1170f1b209c6a31d837f6329a89a", ssa_ast = "0305f133a3d385bb7a0774ef8f44c7b5c9af689867edb48b71ca47e5d9183586", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "65d384f0f33c5c4344f399c8ba23cad871efd72936b112355337117c0af3e770", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/eq.out b/tests/expectations/compiler/integers/u32/eq.out index e82d3d34e6..45fcb5d853 100644 --- a/tests/expectations/compiler/integers/u32/eq.out +++ b/tests/expectations/compiler/integers/u32/eq.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "eb74a56b4c761a3050ee4ca8c5ac6f4085675f0ba71514b9c10cc49044251472", dce_ast = "325f2df12edbee8d19e481abb4858a9f5c94fba88f06945cdc7099684d51936c", destructured_ast = "325f2df12edbee8d19e481abb4858a9f5c94fba88f06945cdc7099684d51936c", errors = "", flattened_ast = "a2056364ce253ffc2e8470f8f473122e075b0a266b213490d90edf0395fcafab", initial_ast = "757213f5e9476a4e9fa1e3a64f8ba59258397b12f6458f5bbc8a11dd776f363d", initial_symbol_table = "88a00119d37fb3d485ccfdd8464ed5614724888ee8ab2421baa88b9e205e2318", inlined_ast = "325f2df12edbee8d19e481abb4858a9f5c94fba88f06945cdc7099684d51936c", ssa_ast = "22a522f3bad92cc3bf0b2ea6922cefe4af3ba82d073e657fafdd2dd19097dd93", type_checked_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", unrolled_ast = "757213f5e9476a4e9fa1e3a64f8ba59258397b12f6458f5bbc8a11dd776f363d", unrolled_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as boolean.private; + is.eq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "325f2df12edbee8d19e481abb4858a9f5c94fba88f06945cdc7099684d51936c", destructured_ast = "325f2df12edbee8d19e481abb4858a9f5c94fba88f06945cdc7099684d51936c", errors = "", flattened_ast = "a2056364ce253ffc2e8470f8f473122e075b0a266b213490d90edf0395fcafab", initial_ast = "757213f5e9476a4e9fa1e3a64f8ba59258397b12f6458f5bbc8a11dd776f363d", initial_symbol_table = "88a00119d37fb3d485ccfdd8464ed5614724888ee8ab2421baa88b9e205e2318", inlined_ast = "325f2df12edbee8d19e481abb4858a9f5c94fba88f06945cdc7099684d51936c", ssa_ast = "22a522f3bad92cc3bf0b2ea6922cefe4af3ba82d073e657fafdd2dd19097dd93", type_checked_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", unrolled_ast = "757213f5e9476a4e9fa1e3a64f8ba59258397b12f6458f5bbc8a11dd776f363d", unrolled_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/ge.out b/tests/expectations/compiler/integers/u32/ge.out index 9f0cfbda24..8b9912e915 100644 --- a/tests/expectations/compiler/integers/u32/ge.out +++ b/tests/expectations/compiler/integers/u32/ge.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "d5c6740e9f4b930180fb52ddc268e35b87ed215c56fe529e98ee015dbfa08b3e", dce_ast = "6a3b9a9c7fec3e768de93ee700a37a2f7bd4c185590429cb2c066ad59810738f", destructured_ast = "6a3b9a9c7fec3e768de93ee700a37a2f7bd4c185590429cb2c066ad59810738f", errors = "", flattened_ast = "e9091c4f08a7f15a65c21f7bbccf1444fefedb6cee6837d829758f07fb22e92e", initial_ast = "2016c4db35b166635f7142275e57c5b6fa366db2c39439f7762fea0c4444675e", initial_symbol_table = "88a00119d37fb3d485ccfdd8464ed5614724888ee8ab2421baa88b9e205e2318", inlined_ast = "6a3b9a9c7fec3e768de93ee700a37a2f7bd4c185590429cb2c066ad59810738f", ssa_ast = "405a599f57eb583abce5ff48a45c696bc98052555666b8003b72a8d29e5227e9", type_checked_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", unrolled_ast = "2016c4db35b166635f7142275e57c5b6fa366db2c39439f7762fea0c4444675e", unrolled_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as boolean.private; + gte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "6a3b9a9c7fec3e768de93ee700a37a2f7bd4c185590429cb2c066ad59810738f", destructured_ast = "6a3b9a9c7fec3e768de93ee700a37a2f7bd4c185590429cb2c066ad59810738f", errors = "", flattened_ast = "e9091c4f08a7f15a65c21f7bbccf1444fefedb6cee6837d829758f07fb22e92e", initial_ast = "2016c4db35b166635f7142275e57c5b6fa366db2c39439f7762fea0c4444675e", initial_symbol_table = "88a00119d37fb3d485ccfdd8464ed5614724888ee8ab2421baa88b9e205e2318", inlined_ast = "6a3b9a9c7fec3e768de93ee700a37a2f7bd4c185590429cb2c066ad59810738f", ssa_ast = "405a599f57eb583abce5ff48a45c696bc98052555666b8003b72a8d29e5227e9", type_checked_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", unrolled_ast = "2016c4db35b166635f7142275e57c5b6fa366db2c39439f7762fea0c4444675e", unrolled_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/gt.out b/tests/expectations/compiler/integers/u32/gt.out index ae4223a805..c257c9e385 100644 --- a/tests/expectations/compiler/integers/u32/gt.out +++ b/tests/expectations/compiler/integers/u32/gt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "5b1536cb2d2f274904ed23cabc28dad63d0e22a9bd4d1a5615b88b2c3ea6d7eb", dce_ast = "cfa69a33a69f3cdb1ba141e595d52e2d9cd0bb617c3ca4b2dc841f1333f28b93", destructured_ast = "cfa69a33a69f3cdb1ba141e595d52e2d9cd0bb617c3ca4b2dc841f1333f28b93", errors = "", flattened_ast = "c04f5ab6c4e4e21ce81e16e8afd119b8d6a53cb5ad12fd181eb0858f1273323d", initial_ast = "4c22027ccdf1cfe399b2d7837a3ed62934df510a99c60f6441a626914e1af2c8", initial_symbol_table = "88a00119d37fb3d485ccfdd8464ed5614724888ee8ab2421baa88b9e205e2318", inlined_ast = "cfa69a33a69f3cdb1ba141e595d52e2d9cd0bb617c3ca4b2dc841f1333f28b93", ssa_ast = "517afb9630c07841a62d8ed67e5468a14cacd3e7e3b870b933adc06a5be01526", type_checked_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", unrolled_ast = "4c22027ccdf1cfe399b2d7837a3ed62934df510a99c60f6441a626914e1af2c8", unrolled_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as boolean.private; + gt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "cfa69a33a69f3cdb1ba141e595d52e2d9cd0bb617c3ca4b2dc841f1333f28b93", destructured_ast = "cfa69a33a69f3cdb1ba141e595d52e2d9cd0bb617c3ca4b2dc841f1333f28b93", errors = "", flattened_ast = "c04f5ab6c4e4e21ce81e16e8afd119b8d6a53cb5ad12fd181eb0858f1273323d", initial_ast = "4c22027ccdf1cfe399b2d7837a3ed62934df510a99c60f6441a626914e1af2c8", initial_symbol_table = "88a00119d37fb3d485ccfdd8464ed5614724888ee8ab2421baa88b9e205e2318", inlined_ast = "cfa69a33a69f3cdb1ba141e595d52e2d9cd0bb617c3ca4b2dc841f1333f28b93", ssa_ast = "517afb9630c07841a62d8ed67e5468a14cacd3e7e3b870b933adc06a5be01526", type_checked_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", unrolled_ast = "4c22027ccdf1cfe399b2d7837a3ed62934df510a99c60f6441a626914e1af2c8", unrolled_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/hex_and_bin.out b/tests/expectations/compiler/integers/u32/hex_and_bin.out index 9ea6d0e2dd..026823b420 100644 --- a/tests/expectations/compiler/integers/u32/hex_and_bin.out +++ b/tests/expectations/compiler/integers/u32/hex_and_bin.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "6191880555ec488d9e1969788741440fd2204b0ae341a8bb6cfa6b89bc73778f", dce_ast = "9115c2b7b16af5a561babdbed8416220346ea86646b71f0baec58d8376c37fa0", destructured_ast = "9115c2b7b16af5a561babdbed8416220346ea86646b71f0baec58d8376c37fa0", errors = "", flattened_ast = "5fd3ab9e1bd40d89944d32a44396fa2e44d43f257f4ca7f28e1cb44a48cb6a27", initial_ast = "929795c16019f0ac4ca844836b3a4abaddcac2df5a47699ba1c57d19da5af5f7", initial_symbol_table = "b5ffc1d0175c735db006ca60f9c68f4d39f6250208d706b8743a84992708c498", inlined_ast = "9115c2b7b16af5a561babdbed8416220346ea86646b71f0baec58d8376c37fa0", ssa_ast = "b8fba4c0407685295c943ec9eb8bb790f55bcb80628f46fc2c4f4696c489a38e", type_checked_symbol_table = "c02ec2ac89d5694616a8712333191d159bf45a09e54d99498a0e205c08182349", unrolled_ast = "929795c16019f0ac4ca844836b3a4abaddcac2df5a47699ba1c57d19da5af5f7", unrolled_symbol_table = "c02ec2ac89d5694616a8712333191d159bf45a09e54d99498a0e205c08182349", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as u32.private; + is.eq r0 127u32 into r3; + is.eq r1 27u32 into r4; + and r3 r4 into r5; + is.eq r2 21u32 into r6; + and r5 r6 into r7; + output r7 as boolean.private; +""", dce_ast = "9115c2b7b16af5a561babdbed8416220346ea86646b71f0baec58d8376c37fa0", destructured_ast = "9115c2b7b16af5a561babdbed8416220346ea86646b71f0baec58d8376c37fa0", errors = "", flattened_ast = "5fd3ab9e1bd40d89944d32a44396fa2e44d43f257f4ca7f28e1cb44a48cb6a27", initial_ast = "929795c16019f0ac4ca844836b3a4abaddcac2df5a47699ba1c57d19da5af5f7", initial_symbol_table = "b5ffc1d0175c735db006ca60f9c68f4d39f6250208d706b8743a84992708c498", inlined_ast = "9115c2b7b16af5a561babdbed8416220346ea86646b71f0baec58d8376c37fa0", ssa_ast = "b8fba4c0407685295c943ec9eb8bb790f55bcb80628f46fc2c4f4696c489a38e", type_checked_symbol_table = "c02ec2ac89d5694616a8712333191d159bf45a09e54d99498a0e205c08182349", unrolled_ast = "929795c16019f0ac4ca844836b3a4abaddcac2df5a47699ba1c57d19da5af5f7", unrolled_symbol_table = "c02ec2ac89d5694616a8712333191d159bf45a09e54d99498a0e205c08182349", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/le.out b/tests/expectations/compiler/integers/u32/le.out index 11e4ae495f..ef6d8e8efd 100644 --- a/tests/expectations/compiler/integers/u32/le.out +++ b/tests/expectations/compiler/integers/u32/le.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "76d3ed305f669697432c49a48165440a287bc91eb95c2110f936235259d824ed", dce_ast = "f5c2b4e29930166968dcacb89b4d31e0299b12548284784a9afe6fe1c140390a", destructured_ast = "f5c2b4e29930166968dcacb89b4d31e0299b12548284784a9afe6fe1c140390a", errors = "", flattened_ast = "78fbdbca11f1b409967002019c7dd07464acb6a4c07b32efeba3c1c6b1bb2198", initial_ast = "4bfdf27eb5de881c676550424816913d1daacf6fea251f0b6ed3bec8f935ec40", initial_symbol_table = "88a00119d37fb3d485ccfdd8464ed5614724888ee8ab2421baa88b9e205e2318", inlined_ast = "f5c2b4e29930166968dcacb89b4d31e0299b12548284784a9afe6fe1c140390a", ssa_ast = "da1e84815cc2fde7496a5584fb3f3d37f0c0e98cf3e62a5e7e7b8259bba6a0cf", type_checked_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", unrolled_ast = "4bfdf27eb5de881c676550424816913d1daacf6fea251f0b6ed3bec8f935ec40", unrolled_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as boolean.private; + lte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "f5c2b4e29930166968dcacb89b4d31e0299b12548284784a9afe6fe1c140390a", destructured_ast = "f5c2b4e29930166968dcacb89b4d31e0299b12548284784a9afe6fe1c140390a", errors = "", flattened_ast = "78fbdbca11f1b409967002019c7dd07464acb6a4c07b32efeba3c1c6b1bb2198", initial_ast = "4bfdf27eb5de881c676550424816913d1daacf6fea251f0b6ed3bec8f935ec40", initial_symbol_table = "88a00119d37fb3d485ccfdd8464ed5614724888ee8ab2421baa88b9e205e2318", inlined_ast = "f5c2b4e29930166968dcacb89b4d31e0299b12548284784a9afe6fe1c140390a", ssa_ast = "da1e84815cc2fde7496a5584fb3f3d37f0c0e98cf3e62a5e7e7b8259bba6a0cf", type_checked_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", unrolled_ast = "4bfdf27eb5de881c676550424816913d1daacf6fea251f0b6ed3bec8f935ec40", unrolled_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/lt.out b/tests/expectations/compiler/integers/u32/lt.out index 3d5cadb944..96bb1476d2 100644 --- a/tests/expectations/compiler/integers/u32/lt.out +++ b/tests/expectations/compiler/integers/u32/lt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4aac77fed46b036a9aaced7512320c824d26a5a025292fdb91c422b4ef3fadfd", dce_ast = "62c4f37a0e80bb0a296c11dc24240e54c8ca17b01e933fb496a2c946513d1f6c", destructured_ast = "62c4f37a0e80bb0a296c11dc24240e54c8ca17b01e933fb496a2c946513d1f6c", errors = "", flattened_ast = "d41ac5df37ca398dfb606eca311346d0708b96262ca3be76130246b5ece1a6ff", initial_ast = "de0e7d4ce0c2aedfc6f803802ef4f4a55fcecd92c53f07352db7db709b5dd6e4", initial_symbol_table = "88a00119d37fb3d485ccfdd8464ed5614724888ee8ab2421baa88b9e205e2318", inlined_ast = "62c4f37a0e80bb0a296c11dc24240e54c8ca17b01e933fb496a2c946513d1f6c", ssa_ast = "553a0396f19338b96c3ff4004238efcf657238199c119c18719e70c5c239dc55", type_checked_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", unrolled_ast = "de0e7d4ce0c2aedfc6f803802ef4f4a55fcecd92c53f07352db7db709b5dd6e4", unrolled_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as boolean.private; + lt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "62c4f37a0e80bb0a296c11dc24240e54c8ca17b01e933fb496a2c946513d1f6c", destructured_ast = "62c4f37a0e80bb0a296c11dc24240e54c8ca17b01e933fb496a2c946513d1f6c", errors = "", flattened_ast = "d41ac5df37ca398dfb606eca311346d0708b96262ca3be76130246b5ece1a6ff", initial_ast = "de0e7d4ce0c2aedfc6f803802ef4f4a55fcecd92c53f07352db7db709b5dd6e4", initial_symbol_table = "88a00119d37fb3d485ccfdd8464ed5614724888ee8ab2421baa88b9e205e2318", inlined_ast = "62c4f37a0e80bb0a296c11dc24240e54c8ca17b01e933fb496a2c946513d1f6c", ssa_ast = "553a0396f19338b96c3ff4004238efcf657238199c119c18719e70c5c239dc55", type_checked_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", unrolled_ast = "de0e7d4ce0c2aedfc6f803802ef4f4a55fcecd92c53f07352db7db709b5dd6e4", unrolled_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/max.out b/tests/expectations/compiler/integers/u32/max.out index 33b105b712..deb8f8e42d 100644 --- a/tests/expectations/compiler/integers/u32/max.out +++ b/tests/expectations/compiler/integers/u32/max.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69", dce_ast = "3d98be7e7ee653c6e91d6b340f39b1010349a6f797e707bc2fe66aad7b438bbe", destructured_ast = "76be7b53f47ded6e448b2206f61974a544ebfcccb04c88ef18008aa56b11ae8c", errors = "", flattened_ast = "0b2c302f8340e3fdce47862de5023d111c748696ee8450ad0601f912fb955f8d", initial_ast = "fcf390a08602c4cb135173a393e41329ddb9007d7b262088ddb29195954879ea", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "76be7b53f47ded6e448b2206f61974a544ebfcccb04c88ef18008aa56b11ae8c", ssa_ast = "ff5e522e283e34d34f399f004f3a82e9fd2f29f796e690bdb3907a550f6cf073", type_checked_symbol_table = "d7357817a9affb798ef657c21a49889533bb5ee2848929b5d5763893139a1d65", unrolled_ast = "fcf390a08602c4cb135173a393e41329ddb9007d7b262088ddb29195954879ea", unrolled_symbol_table = "d7357817a9affb798ef657c21a49889533bb5ee2848929b5d5763893139a1d65", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + is.eq r0 true into r1; + output r1 as boolean.private; +""", dce_ast = "3d98be7e7ee653c6e91d6b340f39b1010349a6f797e707bc2fe66aad7b438bbe", destructured_ast = "76be7b53f47ded6e448b2206f61974a544ebfcccb04c88ef18008aa56b11ae8c", errors = "", flattened_ast = "0b2c302f8340e3fdce47862de5023d111c748696ee8450ad0601f912fb955f8d", initial_ast = "fcf390a08602c4cb135173a393e41329ddb9007d7b262088ddb29195954879ea", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "76be7b53f47ded6e448b2206f61974a544ebfcccb04c88ef18008aa56b11ae8c", ssa_ast = "ff5e522e283e34d34f399f004f3a82e9fd2f29f796e690bdb3907a550f6cf073", type_checked_symbol_table = "d7357817a9affb798ef657c21a49889533bb5ee2848929b5d5763893139a1d65", unrolled_ast = "fcf390a08602c4cb135173a393e41329ddb9007d7b262088ddb29195954879ea", unrolled_symbol_table = "d7357817a9affb798ef657c21a49889533bb5ee2848929b5d5763893139a1d65", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/min.out b/tests/expectations/compiler/integers/u32/min.out index 7b5e2de1d8..1c26a29c36 100644 --- a/tests/expectations/compiler/integers/u32/min.out +++ b/tests/expectations/compiler/integers/u32/min.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69", dce_ast = "0c7cb8dbac921c14c7385c82a94c1a455955b24d2ff05266ecc377271e33d840", destructured_ast = "fc4f85c5ae10690994390ceb0582b855b1fc8db6e98ee141a074af791eb772cb", errors = "", flattened_ast = "c2fd6fa6deff021cbdf5e40501fe1dfdecd07e68ea3c46d7a0243a4bcbb2f7f0", initial_ast = "6195b8ab4773be59330b63ca2cf26e8d8db0caeba5dea3b828e02563dd567e48", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "fc4f85c5ae10690994390ceb0582b855b1fc8db6e98ee141a074af791eb772cb", ssa_ast = "38bbc64ed3d28a123be48a452f547adeed9e193247fd658d5144d8b8791bdc3a", type_checked_symbol_table = "d7357817a9affb798ef657c21a49889533bb5ee2848929b5d5763893139a1d65", unrolled_ast = "6195b8ab4773be59330b63ca2cf26e8d8db0caeba5dea3b828e02563dd567e48", unrolled_symbol_table = "d7357817a9affb798ef657c21a49889533bb5ee2848929b5d5763893139a1d65", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + is.eq r0 true into r1; + output r1 as boolean.private; +""", dce_ast = "0c7cb8dbac921c14c7385c82a94c1a455955b24d2ff05266ecc377271e33d840", destructured_ast = "fc4f85c5ae10690994390ceb0582b855b1fc8db6e98ee141a074af791eb772cb", errors = "", flattened_ast = "c2fd6fa6deff021cbdf5e40501fe1dfdecd07e68ea3c46d7a0243a4bcbb2f7f0", initial_ast = "6195b8ab4773be59330b63ca2cf26e8d8db0caeba5dea3b828e02563dd567e48", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "fc4f85c5ae10690994390ceb0582b855b1fc8db6e98ee141a074af791eb772cb", ssa_ast = "38bbc64ed3d28a123be48a452f547adeed9e193247fd658d5144d8b8791bdc3a", type_checked_symbol_table = "d7357817a9affb798ef657c21a49889533bb5ee2848929b5d5763893139a1d65", unrolled_ast = "6195b8ab4773be59330b63ca2cf26e8d8db0caeba5dea3b828e02563dd567e48", unrolled_symbol_table = "d7357817a9affb798ef657c21a49889533bb5ee2848929b5d5763893139a1d65", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/mul.out b/tests/expectations/compiler/integers/u32/mul.out index e53ade9381..2f53b43f5f 100644 --- a/tests/expectations/compiler/integers/u32/mul.out +++ b/tests/expectations/compiler/integers/u32/mul.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "1dfb6b0bc60a60fdf5e7049346815ffb6fc80d045cb8282510fa518f3337e089", dce_ast = "29e38589e586ff666385a21643ba1f817d0a31d004c2171c92b8ba09d53440c3", destructured_ast = "29e38589e586ff666385a21643ba1f817d0a31d004c2171c92b8ba09d53440c3", errors = "", flattened_ast = "80e697ab4db32420d586a386bfc8ddadfd0183e6e990afd5936a02fb929fa179", initial_ast = "d6549818686932e04799e6195a34f05e1a3bd89078f7d7b05bb892b3840bb9e5", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "29e38589e586ff666385a21643ba1f817d0a31d004c2171c92b8ba09d53440c3", ssa_ast = "bad5760770f45525322b8ce04eda7df6f33ba12423334b62620b8f400dcd138e", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "d6549818686932e04799e6195a34f05e1a3bd89078f7d7b05bb892b3840bb9e5", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as u32.private; + mul r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "29e38589e586ff666385a21643ba1f817d0a31d004c2171c92b8ba09d53440c3", destructured_ast = "29e38589e586ff666385a21643ba1f817d0a31d004c2171c92b8ba09d53440c3", errors = "", flattened_ast = "80e697ab4db32420d586a386bfc8ddadfd0183e6e990afd5936a02fb929fa179", initial_ast = "d6549818686932e04799e6195a34f05e1a3bd89078f7d7b05bb892b3840bb9e5", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "29e38589e586ff666385a21643ba1f817d0a31d004c2171c92b8ba09d53440c3", ssa_ast = "bad5760770f45525322b8ce04eda7df6f33ba12423334b62620b8f400dcd138e", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "d6549818686932e04799e6195a34f05e1a3bd89078f7d7b05bb892b3840bb9e5", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/ne.out b/tests/expectations/compiler/integers/u32/ne.out index c6173be729..6679f88332 100644 --- a/tests/expectations/compiler/integers/u32/ne.out +++ b/tests/expectations/compiler/integers/u32/ne.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "0fe1011e038cf47ffdbb7e95c4ac2326b985aeeffca177329c145c144fc46639", dce_ast = "4ba9c881e035bf5a72a1294739a4dcc08dd6912c840e94cf39659051f595eeb4", destructured_ast = "4ba9c881e035bf5a72a1294739a4dcc08dd6912c840e94cf39659051f595eeb4", errors = "", flattened_ast = "385e90d9f222c99612c23d4c0d02c0457d544f29450cbb0a2cd5616403799d7a", initial_ast = "9abf1d34e781e9fad535ae2350c3afc1ee12f28e17f74130d0b1f824d89ebcbd", initial_symbol_table = "88a00119d37fb3d485ccfdd8464ed5614724888ee8ab2421baa88b9e205e2318", inlined_ast = "4ba9c881e035bf5a72a1294739a4dcc08dd6912c840e94cf39659051f595eeb4", ssa_ast = "2db7122734466bc70b9bc3925993ac7b67661a0ded81a3a8c89003b43c25df4f", type_checked_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", unrolled_ast = "9abf1d34e781e9fad535ae2350c3afc1ee12f28e17f74130d0b1f824d89ebcbd", unrolled_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as boolean.private; + is.neq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "4ba9c881e035bf5a72a1294739a4dcc08dd6912c840e94cf39659051f595eeb4", destructured_ast = "4ba9c881e035bf5a72a1294739a4dcc08dd6912c840e94cf39659051f595eeb4", errors = "", flattened_ast = "385e90d9f222c99612c23d4c0d02c0457d544f29450cbb0a2cd5616403799d7a", initial_ast = "9abf1d34e781e9fad535ae2350c3afc1ee12f28e17f74130d0b1f824d89ebcbd", initial_symbol_table = "88a00119d37fb3d485ccfdd8464ed5614724888ee8ab2421baa88b9e205e2318", inlined_ast = "4ba9c881e035bf5a72a1294739a4dcc08dd6912c840e94cf39659051f595eeb4", ssa_ast = "2db7122734466bc70b9bc3925993ac7b67661a0ded81a3a8c89003b43c25df4f", type_checked_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", unrolled_ast = "9abf1d34e781e9fad535ae2350c3afc1ee12f28e17f74130d0b1f824d89ebcbd", unrolled_symbol_table = "e3522caa367189ae19e15757b7c7fe6d3a3061c0819f7d24c30209c0397c6043", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/operator_methods.out b/tests/expectations/compiler/integers/u32/operator_methods.out index 55783911b0..9406939958 100644 --- a/tests/expectations/compiler/integers/u32/operator_methods.out +++ b/tests/expectations/compiler/integers/u32/operator_methods.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "aec6ee0fcfa292c5e3a4b9165408e9627b7c73b520302dc986293cc36fea4383", dce_ast = "b4ee01bc61d874b7c3ad1eb636f417f3af2514232399ba7878010ee847731607", destructured_ast = "a461536e5316ff951bca879564526bc09f60f164a1674f55cedb7895f0e1b6cb", errors = "", flattened_ast = "c56304eb92d605d5c3fae12c51381139b716d09c5056ee1456ba8508d970f50a", initial_ast = "c5ae414c3bf9bee22048aba7a2ea219da1a7edfc5e071fddbf71e0ad46dae79e", initial_symbol_table = "a53ed4e572085258db9c847375e1efadbfb8dcd09f572b6a595ce829fb6c8393", inlined_ast = "a461536e5316ff951bca879564526bc09f60f164a1674f55cedb7895f0e1b6cb", ssa_ast = "e68899920e902274739b3bddf68ec0ca4c2e5eeae26c57e02922ebb780d54d01", type_checked_symbol_table = "c217ce9207437791ba5f07f39e423cdcfa9abc58f40d8783f6fba7ff427f7d1c", unrolled_ast = "c5ae414c3bf9bee22048aba7a2ea219da1a7edfc5e071fddbf71e0ad46dae79e", unrolled_symbol_table = "c217ce9207437791ba5f07f39e423cdcfa9abc58f40d8783f6fba7ff427f7d1c", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + is.eq r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "b4ee01bc61d874b7c3ad1eb636f417f3af2514232399ba7878010ee847731607", destructured_ast = "a461536e5316ff951bca879564526bc09f60f164a1674f55cedb7895f0e1b6cb", errors = "", flattened_ast = "c56304eb92d605d5c3fae12c51381139b716d09c5056ee1456ba8508d970f50a", initial_ast = "c5ae414c3bf9bee22048aba7a2ea219da1a7edfc5e071fddbf71e0ad46dae79e", initial_symbol_table = "a53ed4e572085258db9c847375e1efadbfb8dcd09f572b6a595ce829fb6c8393", inlined_ast = "a461536e5316ff951bca879564526bc09f60f164a1674f55cedb7895f0e1b6cb", ssa_ast = "e68899920e902274739b3bddf68ec0ca4c2e5eeae26c57e02922ebb780d54d01", type_checked_symbol_table = "c217ce9207437791ba5f07f39e423cdcfa9abc58f40d8783f6fba7ff427f7d1c", unrolled_ast = "c5ae414c3bf9bee22048aba7a2ea219da1a7edfc5e071fddbf71e0ad46dae79e", unrolled_symbol_table = "c217ce9207437791ba5f07f39e423cdcfa9abc58f40d8783f6fba7ff427f7d1c", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/or.out b/tests/expectations/compiler/integers/u32/or.out index ce9b1cc508..343e4ef05e 100644 --- a/tests/expectations/compiler/integers/u32/or.out +++ b/tests/expectations/compiler/integers/u32/or.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "53c22439941468b3986c9021bd4d3436c1e3ce8aa1ac79e04de9a0d08b16b3eb", dce_ast = "94c8a667cad570ebe66cd740c193bec33a968bce3a52a09750001e620a635a0d", destructured_ast = "94c8a667cad570ebe66cd740c193bec33a968bce3a52a09750001e620a635a0d", errors = "", flattened_ast = "6512815a953a461db627549033af14734fc4faa37473793926c49975d692dc4b", initial_ast = "38b31379b5de26d47e62b79026bd2a30d48e1d4168549b36209bf2d520c36b7c", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "94c8a667cad570ebe66cd740c193bec33a968bce3a52a09750001e620a635a0d", ssa_ast = "792ddcb0cde1dd91e389a91012b01d272a30f870e21eeb3523770bb247166b53", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "38b31379b5de26d47e62b79026bd2a30d48e1d4168549b36209bf2d520c36b7c", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as u32.private; + or r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "94c8a667cad570ebe66cd740c193bec33a968bce3a52a09750001e620a635a0d", destructured_ast = "94c8a667cad570ebe66cd740c193bec33a968bce3a52a09750001e620a635a0d", errors = "", flattened_ast = "6512815a953a461db627549033af14734fc4faa37473793926c49975d692dc4b", initial_ast = "38b31379b5de26d47e62b79026bd2a30d48e1d4168549b36209bf2d520c36b7c", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "94c8a667cad570ebe66cd740c193bec33a968bce3a52a09750001e620a635a0d", ssa_ast = "792ddcb0cde1dd91e389a91012b01d272a30f870e21eeb3523770bb247166b53", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "38b31379b5de26d47e62b79026bd2a30d48e1d4168549b36209bf2d520c36b7c", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/pow.out b/tests/expectations/compiler/integers/u32/pow.out index 7c2531090f..fc5dcbeb12 100644 --- a/tests/expectations/compiler/integers/u32/pow.out +++ b/tests/expectations/compiler/integers/u32/pow.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "ea3230d133de200302ce0c5577ef8daca458af44512b67f567dfdeaeb60ef62d", dce_ast = "b8880ac8b0546041754eba2b30ae0bc0a0f53bcd01bd0eb7d426d7fcafdbd68a", destructured_ast = "b8880ac8b0546041754eba2b30ae0bc0a0f53bcd01bd0eb7d426d7fcafdbd68a", errors = "", flattened_ast = "31f8a9d1026ced9c51f5357c4c36e1d5fbca3618e18b8be176b3745356b20cb0", initial_ast = "80222a637ecac74e32cec0c2fcc7b2a25dc3ff24698d7600b4ac6e99a046ef02", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "b8880ac8b0546041754eba2b30ae0bc0a0f53bcd01bd0eb7d426d7fcafdbd68a", ssa_ast = "328cafbb688c4d0e211a6c62784bd4a44c0d3739627e5181d5697fc6f0f8e9d8", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "80222a637ecac74e32cec0c2fcc7b2a25dc3ff24698d7600b4ac6e99a046ef02", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as u32.private; + pow r0 2u8 into r3; + pow r0 2u16 into r4; + is.eq r3 r4 into r5; + pow r0 r1 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "b8880ac8b0546041754eba2b30ae0bc0a0f53bcd01bd0eb7d426d7fcafdbd68a", destructured_ast = "b8880ac8b0546041754eba2b30ae0bc0a0f53bcd01bd0eb7d426d7fcafdbd68a", errors = "", flattened_ast = "31f8a9d1026ced9c51f5357c4c36e1d5fbca3618e18b8be176b3745356b20cb0", initial_ast = "80222a637ecac74e32cec0c2fcc7b2a25dc3ff24698d7600b4ac6e99a046ef02", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "b8880ac8b0546041754eba2b30ae0bc0a0f53bcd01bd0eb7d426d7fcafdbd68a", ssa_ast = "328cafbb688c4d0e211a6c62784bd4a44c0d3739627e5181d5697fc6f0f8e9d8", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "80222a637ecac74e32cec0c2fcc7b2a25dc3ff24698d7600b4ac6e99a046ef02", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/rem.out b/tests/expectations/compiler/integers/u32/rem.out index 7dde51a004..6531709e17 100644 --- a/tests/expectations/compiler/integers/u32/rem.out +++ b/tests/expectations/compiler/integers/u32/rem.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "654c6c9d87b686ee8ac83d2561ae0db42eaed0e933d018514d99d2eee2dc350c", dce_ast = "2fe4e113acb285aaf0547937a5aa63bb1c4885e8cb959d9c84846bc8d83836d0", destructured_ast = "2fe4e113acb285aaf0547937a5aa63bb1c4885e8cb959d9c84846bc8d83836d0", errors = "", flattened_ast = "0aef2fbd03994a0dbdbb067e167e246a6c03d27ea54908357cfcaf2badf94946", initial_ast = "659e12ed51dbbc9e3e80752854a5167741a7deb18e361306072cf86f6def9378", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "2fe4e113acb285aaf0547937a5aa63bb1c4885e8cb959d9c84846bc8d83836d0", ssa_ast = "12ed4cdf9c33a2959c712359469d64dae7aa2c66032c15138b8dde9f31dc5dbb", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "659e12ed51dbbc9e3e80752854a5167741a7deb18e361306072cf86f6def9378", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as u32.private; + rem r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "2fe4e113acb285aaf0547937a5aa63bb1c4885e8cb959d9c84846bc8d83836d0", destructured_ast = "2fe4e113acb285aaf0547937a5aa63bb1c4885e8cb959d9c84846bc8d83836d0", errors = "", flattened_ast = "0aef2fbd03994a0dbdbb067e167e246a6c03d27ea54908357cfcaf2badf94946", initial_ast = "659e12ed51dbbc9e3e80752854a5167741a7deb18e361306072cf86f6def9378", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "2fe4e113acb285aaf0547937a5aa63bb1c4885e8cb959d9c84846bc8d83836d0", ssa_ast = "12ed4cdf9c33a2959c712359469d64dae7aa2c66032c15138b8dde9f31dc5dbb", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "659e12ed51dbbc9e3e80752854a5167741a7deb18e361306072cf86f6def9378", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/shl.out b/tests/expectations/compiler/integers/u32/shl.out index 8d4021dcc5..8fb8e4f932 100644 --- a/tests/expectations/compiler/integers/u32/shl.out +++ b/tests/expectations/compiler/integers/u32/shl.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "d00fc78598c5002f3dd2576928bd1fb6121f078f9fc5b2b7394ff8338192172d", dce_ast = "46e5cf1e2191fb5145d1c9e65523b9633e8e53df525ea669eb2c1c09c487b188", destructured_ast = "46e5cf1e2191fb5145d1c9e65523b9633e8e53df525ea669eb2c1c09c487b188", errors = "", flattened_ast = "c22acc053ad5d9dddbe28cbbfc50b74f780f8eff4e41e6768ee2cf0ebc10fc01", initial_ast = "ec59e927c91a3243640960a20491a87cd3840fdb489b495b7d23d982fdda7dda", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "46e5cf1e2191fb5145d1c9e65523b9633e8e53df525ea669eb2c1c09c487b188", ssa_ast = "ef6f4fc4e5fef34fb02b89ea536e47322c1efc72d2bfd1fdcf00f8a8e90611a4", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "ec59e927c91a3243640960a20491a87cd3840fdb489b495b7d23d982fdda7dda", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as u32.private; + shl r0 2u8 into r3; + shl r0 2u16 into r4; + is.eq r3 r4 into r5; + shl r0 r1 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "46e5cf1e2191fb5145d1c9e65523b9633e8e53df525ea669eb2c1c09c487b188", destructured_ast = "46e5cf1e2191fb5145d1c9e65523b9633e8e53df525ea669eb2c1c09c487b188", errors = "", flattened_ast = "c22acc053ad5d9dddbe28cbbfc50b74f780f8eff4e41e6768ee2cf0ebc10fc01", initial_ast = "ec59e927c91a3243640960a20491a87cd3840fdb489b495b7d23d982fdda7dda", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "46e5cf1e2191fb5145d1c9e65523b9633e8e53df525ea669eb2c1c09c487b188", ssa_ast = "ef6f4fc4e5fef34fb02b89ea536e47322c1efc72d2bfd1fdcf00f8a8e90611a4", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "ec59e927c91a3243640960a20491a87cd3840fdb489b495b7d23d982fdda7dda", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/shr.out b/tests/expectations/compiler/integers/u32/shr.out index 7892f5215e..734f18470e 100644 --- a/tests/expectations/compiler/integers/u32/shr.out +++ b/tests/expectations/compiler/integers/u32/shr.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "80a1a42b727652cf9808ca4800943f424edc0f0b8e43781b9a6686e3ef7801e1", dce_ast = "e452f0aa4812393f6423f46fcbc1afddc22fed9e976dd155027f551a1c58a65e", destructured_ast = "e452f0aa4812393f6423f46fcbc1afddc22fed9e976dd155027f551a1c58a65e", errors = "", flattened_ast = "e221682f0993495dbbee07772723e2fc10db01715129eb55b3997702f869267c", initial_ast = "ece0e884302935d38c4fef273e55f3145ef35f29777ec0d654af066bd9c089d9", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "e452f0aa4812393f6423f46fcbc1afddc22fed9e976dd155027f551a1c58a65e", ssa_ast = "9b52d468737492814aabccab16e4f1ff5ab2cd929199b6981c4383d624e777b8", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "ece0e884302935d38c4fef273e55f3145ef35f29777ec0d654af066bd9c089d9", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as u32.private; + shr r0 2u8 into r3; + shr r0 2u16 into r4; + is.eq r3 r4 into r5; + shr r0 r1 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "e452f0aa4812393f6423f46fcbc1afddc22fed9e976dd155027f551a1c58a65e", destructured_ast = "e452f0aa4812393f6423f46fcbc1afddc22fed9e976dd155027f551a1c58a65e", errors = "", flattened_ast = "e221682f0993495dbbee07772723e2fc10db01715129eb55b3997702f869267c", initial_ast = "ece0e884302935d38c4fef273e55f3145ef35f29777ec0d654af066bd9c089d9", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "e452f0aa4812393f6423f46fcbc1afddc22fed9e976dd155027f551a1c58a65e", ssa_ast = "9b52d468737492814aabccab16e4f1ff5ab2cd929199b6981c4383d624e777b8", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "ece0e884302935d38c4fef273e55f3145ef35f29777ec0d654af066bd9c089d9", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/sub.out b/tests/expectations/compiler/integers/u32/sub.out index f7c33c70b4..cb4969d7ec 100644 --- a/tests/expectations/compiler/integers/u32/sub.out +++ b/tests/expectations/compiler/integers/u32/sub.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "979ef93cea21ee04681e95a25458674a5c7bbc15e717b104e6dc1b16d5a7111b", dce_ast = "577889f551991e352c14119313fcb54efaf3297ea3424e88b8260e19b38f8363", destructured_ast = "577889f551991e352c14119313fcb54efaf3297ea3424e88b8260e19b38f8363", errors = "", flattened_ast = "11bd8dec97de01c2127c233ccfe6db5f68b4b7a96b08c736a85477c264901f36", initial_ast = "d45c4d9eae2a93972a4ea1917eb9add8ce394fa9bfa6d21a75efda66a96a065e", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "577889f551991e352c14119313fcb54efaf3297ea3424e88b8260e19b38f8363", ssa_ast = "463b0daf7da0322b25289c970baca18e106a747077f06a486e462b8ad1c8514c", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "d45c4d9eae2a93972a4ea1917eb9add8ce394fa9bfa6d21a75efda66a96a065e", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + input r2 as u32.private; + sub r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "577889f551991e352c14119313fcb54efaf3297ea3424e88b8260e19b38f8363", destructured_ast = "577889f551991e352c14119313fcb54efaf3297ea3424e88b8260e19b38f8363", errors = "", flattened_ast = "11bd8dec97de01c2127c233ccfe6db5f68b4b7a96b08c736a85477c264901f36", initial_ast = "d45c4d9eae2a93972a4ea1917eb9add8ce394fa9bfa6d21a75efda66a96a065e", initial_symbol_table = "b058cf2f1048b8bd7cc7ffa2dc8876f46d575fac7dc84845d89cabc9548c88bc", inlined_ast = "577889f551991e352c14119313fcb54efaf3297ea3424e88b8260e19b38f8363", ssa_ast = "463b0daf7da0322b25289c970baca18e106a747077f06a486e462b8ad1c8514c", type_checked_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", unrolled_ast = "d45c4d9eae2a93972a4ea1917eb9add8ce394fa9bfa6d21a75efda66a96a065e", unrolled_symbol_table = "a8e159126d8006dbee94a18fe8858a1690e64ef2f4752b36dd2d37e0186b7431", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/ternary.out b/tests/expectations/compiler/integers/u32/ternary.out index ecc0b06a5c..0233cd2cd5 100644 --- a/tests/expectations/compiler/integers/u32/ternary.out +++ b/tests/expectations/compiler/integers/u32/ternary.out @@ -1,3 +1,16 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "0ecd93e68a7f1e72535d2f014714c6b6dbf91f2b0a18df56913798be12ec1515", dce_ast = "5e0877c8c801c33009d35c1e0f877957f291f08343346e05ebeb12b68bbe4d9d", destructured_ast = "5e0877c8c801c33009d35c1e0f877957f291f08343346e05ebeb12b68bbe4d9d", errors = "", flattened_ast = "e1512349d7894c4eb9a77e2656c003c94174079f936b89be14201e49b174e628", initial_ast = "d2a9f331d7ffc228a8b90fd17b72a28de6187e245bab4982f8d7027fed7af6be", initial_symbol_table = "1050ad3bf1bca4a6ce06bc7e544cc50ef0a6b2eeb71a6e44d8c83e8f4c010d2a", inlined_ast = "5e0877c8c801c33009d35c1e0f877957f291f08343346e05ebeb12b68bbe4d9d", ssa_ast = "258439d87bcfa1e56e9c3b7df54208aa3b48cce08fcc9348fcf11678ea55b5fe", type_checked_symbol_table = "507fe2b9ad2f0937b6cad880536fe9a2e4e443ce7989d0330104f65484b5f2d8", unrolled_ast = "d2a9f331d7ffc228a8b90fd17b72a28de6187e245bab4982f8d7027fed7af6be", unrolled_symbol_table = "507fe2b9ad2f0937b6cad880536fe9a2e4e443ce7989d0330104f65484b5f2d8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + input r1 as u32.private; + input r2 as u32.private; + input r3 as u32.private; + ternary r0 r1 r2 into r4; + is.eq r4 r3 into r5; + output r5 as boolean.private; +""", dce_ast = "5e0877c8c801c33009d35c1e0f877957f291f08343346e05ebeb12b68bbe4d9d", destructured_ast = "5e0877c8c801c33009d35c1e0f877957f291f08343346e05ebeb12b68bbe4d9d", errors = "", flattened_ast = "e1512349d7894c4eb9a77e2656c003c94174079f936b89be14201e49b174e628", initial_ast = "d2a9f331d7ffc228a8b90fd17b72a28de6187e245bab4982f8d7027fed7af6be", initial_symbol_table = "1050ad3bf1bca4a6ce06bc7e544cc50ef0a6b2eeb71a6e44d8c83e8f4c010d2a", inlined_ast = "5e0877c8c801c33009d35c1e0f877957f291f08343346e05ebeb12b68bbe4d9d", ssa_ast = "258439d87bcfa1e56e9c3b7df54208aa3b48cce08fcc9348fcf11678ea55b5fe", type_checked_symbol_table = "507fe2b9ad2f0937b6cad880536fe9a2e4e443ce7989d0330104f65484b5f2d8", unrolled_ast = "d2a9f331d7ffc228a8b90fd17b72a28de6187e245bab4982f8d7027fed7af6be", unrolled_symbol_table = "507fe2b9ad2f0937b6cad880536fe9a2e4e443ce7989d0330104f65484b5f2d8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u32/xor.out b/tests/expectations/compiler/integers/u32/xor.out index 2fbdcb2b8c..50c0720968 100644 --- a/tests/expectations/compiler/integers/u32/xor.out +++ b/tests/expectations/compiler/integers/u32/xor.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f870b2c0a3ffc0935a53b790fbd562a4e160982136e597762e14d3a11f7572c7", dce_ast = "338a179a78171dbd53e4e333738f0cd557d708bd93b72d2fccf222b0850f23b5", destructured_ast = "338a179a78171dbd53e4e333738f0cd557d708bd93b72d2fccf222b0850f23b5", errors = "", flattened_ast = "8924e5894fc66728ccebb7cf359edf3e098797e36435271c019572a3aecdbe88", initial_ast = "a35634a6136d80ad2aa8960546f1e441d63d601654e32cfe98f89f48deafcb3f", initial_symbol_table = "0f4179147825dc70330669a71fa28152481f149d0d7bffc4036eaa3d09a35a2c", inlined_ast = "338a179a78171dbd53e4e333738f0cd557d708bd93b72d2fccf222b0850f23b5", ssa_ast = "4f55b4314a7aa7644ff2b163bd885faaacb102011742da062584984abcdc2fe0", type_checked_symbol_table = "8d494bcb65a00978d984a68dd145f4f03352ff5c62587b38c2021ee257e775e4", unrolled_ast = "a35634a6136d80ad2aa8960546f1e441d63d601654e32cfe98f89f48deafcb3f", unrolled_symbol_table = "8d494bcb65a00978d984a68dd145f4f03352ff5c62587b38c2021ee257e775e4", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + xor r0 r1 into r2; + output r2 as u32.private; +""", dce_ast = "338a179a78171dbd53e4e333738f0cd557d708bd93b72d2fccf222b0850f23b5", destructured_ast = "338a179a78171dbd53e4e333738f0cd557d708bd93b72d2fccf222b0850f23b5", errors = "", flattened_ast = "8924e5894fc66728ccebb7cf359edf3e098797e36435271c019572a3aecdbe88", initial_ast = "a35634a6136d80ad2aa8960546f1e441d63d601654e32cfe98f89f48deafcb3f", initial_symbol_table = "0f4179147825dc70330669a71fa28152481f149d0d7bffc4036eaa3d09a35a2c", inlined_ast = "338a179a78171dbd53e4e333738f0cd557d708bd93b72d2fccf222b0850f23b5", ssa_ast = "4f55b4314a7aa7644ff2b163bd885faaacb102011742da062584984abcdc2fe0", type_checked_symbol_table = "8d494bcb65a00978d984a68dd145f4f03352ff5c62587b38c2021ee257e775e4", unrolled_ast = "a35634a6136d80ad2aa8960546f1e441d63d601654e32cfe98f89f48deafcb3f", unrolled_symbol_table = "8d494bcb65a00978d984a68dd145f4f03352ff5c62587b38c2021ee257e775e4", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/add.out b/tests/expectations/compiler/integers/u64/add.out index 43f547f54f..3f75d04837 100644 --- a/tests/expectations/compiler/integers/u64/add.out +++ b/tests/expectations/compiler/integers/u64/add.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "3be0f7452f3ef5033f9f4c29362b7f16ca7d059569909b356d23fe3dbd898486", dce_ast = "b0d080b9c6b2c34764991060f52758881430ef465c83d95dfd57ef4e302244f7", destructured_ast = "b0d080b9c6b2c34764991060f52758881430ef465c83d95dfd57ef4e302244f7", errors = "", flattened_ast = "dccd7a0390db85ba820de12905c41f25b3282d929a1450822d8285caf58e06bc", initial_ast = "f10eb80c81bbb230fc63f3da19336668ccb893dcd670af7bdd49507262f6a2a5", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "b0d080b9c6b2c34764991060f52758881430ef465c83d95dfd57ef4e302244f7", ssa_ast = "c7beb4be2a772f7cd0baa3b7baa9ea3b88b02f6a0cb245f92a44640beecd70ef", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "f10eb80c81bbb230fc63f3da19336668ccb893dcd670af7bdd49507262f6a2a5", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as u64.private; + add r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "b0d080b9c6b2c34764991060f52758881430ef465c83d95dfd57ef4e302244f7", destructured_ast = "b0d080b9c6b2c34764991060f52758881430ef465c83d95dfd57ef4e302244f7", errors = "", flattened_ast = "dccd7a0390db85ba820de12905c41f25b3282d929a1450822d8285caf58e06bc", initial_ast = "f10eb80c81bbb230fc63f3da19336668ccb893dcd670af7bdd49507262f6a2a5", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "b0d080b9c6b2c34764991060f52758881430ef465c83d95dfd57ef4e302244f7", ssa_ast = "c7beb4be2a772f7cd0baa3b7baa9ea3b88b02f6a0cb245f92a44640beecd70ef", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "f10eb80c81bbb230fc63f3da19336668ccb893dcd670af7bdd49507262f6a2a5", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/and.out b/tests/expectations/compiler/integers/u64/and.out index 6d6e2a4895..6cc263a9cc 100644 --- a/tests/expectations/compiler/integers/u64/and.out +++ b/tests/expectations/compiler/integers/u64/and.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "af4239d923d8c22f7bbdfdf8643c85648b25ba62b82819217a6c50924208d529", dce_ast = "ff54a9d4253e5199bf0162b3024779e6a00e47222d24f079f18b2b48ce1dee41", destructured_ast = "ff54a9d4253e5199bf0162b3024779e6a00e47222d24f079f18b2b48ce1dee41", errors = "", flattened_ast = "9625f2245c3e36f4887aef1638e7721187e995b8e25159f8cf3d842e8c24226b", initial_ast = "20692053e671d55538816a69dd571226f38e9b2902c88f0e474ba8f8550267da", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "ff54a9d4253e5199bf0162b3024779e6a00e47222d24f079f18b2b48ce1dee41", ssa_ast = "aeac8c83aa469a97b88000b446ef1e0a4d3ccd75ee9318133e1da1a9521f8209", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "20692053e671d55538816a69dd571226f38e9b2902c88f0e474ba8f8550267da", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as u64.private; + and r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "ff54a9d4253e5199bf0162b3024779e6a00e47222d24f079f18b2b48ce1dee41", destructured_ast = "ff54a9d4253e5199bf0162b3024779e6a00e47222d24f079f18b2b48ce1dee41", errors = "", flattened_ast = "9625f2245c3e36f4887aef1638e7721187e995b8e25159f8cf3d842e8c24226b", initial_ast = "20692053e671d55538816a69dd571226f38e9b2902c88f0e474ba8f8550267da", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "ff54a9d4253e5199bf0162b3024779e6a00e47222d24f079f18b2b48ce1dee41", ssa_ast = "aeac8c83aa469a97b88000b446ef1e0a4d3ccd75ee9318133e1da1a9521f8209", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "20692053e671d55538816a69dd571226f38e9b2902c88f0e474ba8f8550267da", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/console_assert.out b/tests/expectations/compiler/integers/u64/console_assert.out index 2187e9d88d..db8cccbf49 100644 --- a/tests/expectations/compiler/integers/u64/console_assert.out +++ b/tests/expectations/compiler/integers/u64/console_assert.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "0ee1282c31147bd35917b56ca5e0b6ed9ae7178f4a8e0681cb788bfe2803d2e5", dce_ast = "476c6309c95f1d9f0e3590910d06fc8f8137612584c1a67144b17c866a038f8f", destructured_ast = "476c6309c95f1d9f0e3590910d06fc8f8137612584c1a67144b17c866a038f8f", errors = "", flattened_ast = "9f132b3d9eb6e98365af0c896abed87218f3f182121f50ce1c21b3d865eed940", initial_ast = "5bd30788187e01105a981c9da5ab98b64f06bd0504a4643be253f892739c04c0", initial_symbol_table = "46f83711ec0f0f9b1ce58300f947283dc22d536a8a75bac7715800e936a39494", inlined_ast = "476c6309c95f1d9f0e3590910d06fc8f8137612584c1a67144b17c866a038f8f", ssa_ast = "afc575a8ded7b3ebf29ed5367a5705d503642c97295c55b5eb831ba919ab3f64", type_checked_symbol_table = "1309d0abaffa1149bd97547cd3d8ae5393436acaf561201dc156b4bcf68be06d", unrolled_ast = "5bd30788187e01105a981c9da5ab98b64f06bd0504a4643be253f892739c04c0", unrolled_symbol_table = "1309d0abaffa1149bd97547cd3d8ae5393436acaf561201dc156b4bcf68be06d", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + is.eq r0 r1 into r2; + assert.eq r2 true; + output r2 as boolean.private; +""", dce_ast = "476c6309c95f1d9f0e3590910d06fc8f8137612584c1a67144b17c866a038f8f", destructured_ast = "476c6309c95f1d9f0e3590910d06fc8f8137612584c1a67144b17c866a038f8f", errors = "", flattened_ast = "9f132b3d9eb6e98365af0c896abed87218f3f182121f50ce1c21b3d865eed940", initial_ast = "5bd30788187e01105a981c9da5ab98b64f06bd0504a4643be253f892739c04c0", initial_symbol_table = "46f83711ec0f0f9b1ce58300f947283dc22d536a8a75bac7715800e936a39494", inlined_ast = "476c6309c95f1d9f0e3590910d06fc8f8137612584c1a67144b17c866a038f8f", ssa_ast = "afc575a8ded7b3ebf29ed5367a5705d503642c97295c55b5eb831ba919ab3f64", type_checked_symbol_table = "1309d0abaffa1149bd97547cd3d8ae5393436acaf561201dc156b4bcf68be06d", unrolled_ast = "5bd30788187e01105a981c9da5ab98b64f06bd0504a4643be253f892739c04c0", unrolled_symbol_table = "1309d0abaffa1149bd97547cd3d8ae5393436acaf561201dc156b4bcf68be06d", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/div.out b/tests/expectations/compiler/integers/u64/div.out index a850b11da8..2002b7a4d2 100644 --- a/tests/expectations/compiler/integers/u64/div.out +++ b/tests/expectations/compiler/integers/u64/div.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "2a4e7edc50312cff13755a1480eadc016a474629e3655a4d8b878a85001b75c3", dce_ast = "bb72be1fd78bed0ca0ebb71e66a4c9c52791999d17dc74bd10361477f391fb9d", destructured_ast = "bb72be1fd78bed0ca0ebb71e66a4c9c52791999d17dc74bd10361477f391fb9d", errors = "", flattened_ast = "f083ac1e2079924ee4e49c041290ee47670ec443cb66e77f43d9ac76ade66ebd", initial_ast = "740c7f34bd073e46bf061e835fe8e77474d238f9df6523b65a1bf4582092e5e2", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "bb72be1fd78bed0ca0ebb71e66a4c9c52791999d17dc74bd10361477f391fb9d", ssa_ast = "33b04442830d71e681095f851ddc52f5d8649c727e47e592bb1be1fe5d7d376f", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "740c7f34bd073e46bf061e835fe8e77474d238f9df6523b65a1bf4582092e5e2", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as u64.private; + div r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "bb72be1fd78bed0ca0ebb71e66a4c9c52791999d17dc74bd10361477f391fb9d", destructured_ast = "bb72be1fd78bed0ca0ebb71e66a4c9c52791999d17dc74bd10361477f391fb9d", errors = "", flattened_ast = "f083ac1e2079924ee4e49c041290ee47670ec443cb66e77f43d9ac76ade66ebd", initial_ast = "740c7f34bd073e46bf061e835fe8e77474d238f9df6523b65a1bf4582092e5e2", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "bb72be1fd78bed0ca0ebb71e66a4c9c52791999d17dc74bd10361477f391fb9d", ssa_ast = "33b04442830d71e681095f851ddc52f5d8649c727e47e592bb1be1fe5d7d376f", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "740c7f34bd073e46bf061e835fe8e77474d238f9df6523b65a1bf4582092e5e2", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/eq.out b/tests/expectations/compiler/integers/u64/eq.out index a977ba9c84..14b50f1973 100644 --- a/tests/expectations/compiler/integers/u64/eq.out +++ b/tests/expectations/compiler/integers/u64/eq.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "c3b043c14b4d869eddba1a5c38b463704b8fdc7a7b6dbfb8b54dbc4ba66e706f", dce_ast = "62d2f3c15d8d423e71fcc14edafcae7d4eac3a94f424a986b25d0ebad5d8ab45", destructured_ast = "62d2f3c15d8d423e71fcc14edafcae7d4eac3a94f424a986b25d0ebad5d8ab45", errors = "", flattened_ast = "7f45fe3e4a99ee149dbc4a01e4cceb56bbf8e826acacecd1d6b413607ca5ad2d", initial_ast = "dddef535379801293d89da80910d4b400722a678f819ce587d0b6473b68aa40a", initial_symbol_table = "e1a0d909f4242d62f6ac15a8549867352bd8d0ee646a677e527fa369fd0e44e7", inlined_ast = "62d2f3c15d8d423e71fcc14edafcae7d4eac3a94f424a986b25d0ebad5d8ab45", ssa_ast = "87e3c4c1acc6a7af6fb85f7508cc1103ae2ed0658c20e06afbf335f8300507fe", type_checked_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", unrolled_ast = "dddef535379801293d89da80910d4b400722a678f819ce587d0b6473b68aa40a", unrolled_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as boolean.private; + is.eq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "62d2f3c15d8d423e71fcc14edafcae7d4eac3a94f424a986b25d0ebad5d8ab45", destructured_ast = "62d2f3c15d8d423e71fcc14edafcae7d4eac3a94f424a986b25d0ebad5d8ab45", errors = "", flattened_ast = "7f45fe3e4a99ee149dbc4a01e4cceb56bbf8e826acacecd1d6b413607ca5ad2d", initial_ast = "dddef535379801293d89da80910d4b400722a678f819ce587d0b6473b68aa40a", initial_symbol_table = "e1a0d909f4242d62f6ac15a8549867352bd8d0ee646a677e527fa369fd0e44e7", inlined_ast = "62d2f3c15d8d423e71fcc14edafcae7d4eac3a94f424a986b25d0ebad5d8ab45", ssa_ast = "87e3c4c1acc6a7af6fb85f7508cc1103ae2ed0658c20e06afbf335f8300507fe", type_checked_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", unrolled_ast = "dddef535379801293d89da80910d4b400722a678f819ce587d0b6473b68aa40a", unrolled_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/ge.out b/tests/expectations/compiler/integers/u64/ge.out index b0f380563a..ad832cb869 100644 --- a/tests/expectations/compiler/integers/u64/ge.out +++ b/tests/expectations/compiler/integers/u64/ge.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "b2e3005d49e16c6431a7731d180ba407dbf3c26564e1015a3e803681959a6e7c", dce_ast = "ca7199b805fd4a48c00bbb88c7183ba9a33a2880582f5d7c2c0507bd6a524167", destructured_ast = "ca7199b805fd4a48c00bbb88c7183ba9a33a2880582f5d7c2c0507bd6a524167", errors = "", flattened_ast = "098f0c91f85d256cd1a726e185b3fbc9833bdfc07c5b8391b5d0ed784d807543", initial_ast = "e6d706095bf28e4f7a6f00275ecaa3104145da9c1ce4e414782f30b03e769721", initial_symbol_table = "e1a0d909f4242d62f6ac15a8549867352bd8d0ee646a677e527fa369fd0e44e7", inlined_ast = "ca7199b805fd4a48c00bbb88c7183ba9a33a2880582f5d7c2c0507bd6a524167", ssa_ast = "efeb51245d96533fdbe5be634af4fc2043e33304997bd45a7e7fe56277e2c069", type_checked_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", unrolled_ast = "e6d706095bf28e4f7a6f00275ecaa3104145da9c1ce4e414782f30b03e769721", unrolled_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as boolean.private; + gte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "ca7199b805fd4a48c00bbb88c7183ba9a33a2880582f5d7c2c0507bd6a524167", destructured_ast = "ca7199b805fd4a48c00bbb88c7183ba9a33a2880582f5d7c2c0507bd6a524167", errors = "", flattened_ast = "098f0c91f85d256cd1a726e185b3fbc9833bdfc07c5b8391b5d0ed784d807543", initial_ast = "e6d706095bf28e4f7a6f00275ecaa3104145da9c1ce4e414782f30b03e769721", initial_symbol_table = "e1a0d909f4242d62f6ac15a8549867352bd8d0ee646a677e527fa369fd0e44e7", inlined_ast = "ca7199b805fd4a48c00bbb88c7183ba9a33a2880582f5d7c2c0507bd6a524167", ssa_ast = "efeb51245d96533fdbe5be634af4fc2043e33304997bd45a7e7fe56277e2c069", type_checked_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", unrolled_ast = "e6d706095bf28e4f7a6f00275ecaa3104145da9c1ce4e414782f30b03e769721", unrolled_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/gt.out b/tests/expectations/compiler/integers/u64/gt.out index 4106ee41f8..c915e871a9 100644 --- a/tests/expectations/compiler/integers/u64/gt.out +++ b/tests/expectations/compiler/integers/u64/gt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "1e385f77b2a0d6c95fc6747906e33664cce2d0a97477de15da923d515c2747b7", dce_ast = "01f218583ba7585d4b55bd87f64adc67cccb226e2826ac477361c333ba7a1a9f", destructured_ast = "01f218583ba7585d4b55bd87f64adc67cccb226e2826ac477361c333ba7a1a9f", errors = "", flattened_ast = "5cd4d7c64a6e61d634b1411cc165a803338eaf57cdad65bef53d49b44d2fe67d", initial_ast = "8a9752eb66c0a1658312a30a373f63b1a334c02f7c7d61ac457b1a31f9425dee", initial_symbol_table = "e1a0d909f4242d62f6ac15a8549867352bd8d0ee646a677e527fa369fd0e44e7", inlined_ast = "01f218583ba7585d4b55bd87f64adc67cccb226e2826ac477361c333ba7a1a9f", ssa_ast = "067f4c96209dac008749bb0cc4dcee6fa21bfd29d48632adccc0a2275cb1de0b", type_checked_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", unrolled_ast = "8a9752eb66c0a1658312a30a373f63b1a334c02f7c7d61ac457b1a31f9425dee", unrolled_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as boolean.private; + gt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "01f218583ba7585d4b55bd87f64adc67cccb226e2826ac477361c333ba7a1a9f", destructured_ast = "01f218583ba7585d4b55bd87f64adc67cccb226e2826ac477361c333ba7a1a9f", errors = "", flattened_ast = "5cd4d7c64a6e61d634b1411cc165a803338eaf57cdad65bef53d49b44d2fe67d", initial_ast = "8a9752eb66c0a1658312a30a373f63b1a334c02f7c7d61ac457b1a31f9425dee", initial_symbol_table = "e1a0d909f4242d62f6ac15a8549867352bd8d0ee646a677e527fa369fd0e44e7", inlined_ast = "01f218583ba7585d4b55bd87f64adc67cccb226e2826ac477361c333ba7a1a9f", ssa_ast = "067f4c96209dac008749bb0cc4dcee6fa21bfd29d48632adccc0a2275cb1de0b", type_checked_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", unrolled_ast = "8a9752eb66c0a1658312a30a373f63b1a334c02f7c7d61ac457b1a31f9425dee", unrolled_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/hex_and_bin.out b/tests/expectations/compiler/integers/u64/hex_and_bin.out index d0615123f3..f16f098587 100644 --- a/tests/expectations/compiler/integers/u64/hex_and_bin.out +++ b/tests/expectations/compiler/integers/u64/hex_and_bin.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "a08b4b1bd7545be176cf1810786db503dbd0ac4cbb76bba3a625daefa762e8ce", dce_ast = "af3214ef7b03eab5b77dd73e565704332c8b0d2243c74d08a69e31da10eb80b6", destructured_ast = "af3214ef7b03eab5b77dd73e565704332c8b0d2243c74d08a69e31da10eb80b6", errors = "", flattened_ast = "56ef2daacc74311d0d41443e80dd169f2e0298f5f32face6727494e1eb365216", initial_ast = "3df7b9a949257350f916becc6ed1f80661167308aa185a0c17c2a566ec76f595", initial_symbol_table = "66703eae3479604c1a104dc3c3af1a26534eeffe6335c531fe469d81de678319", inlined_ast = "af3214ef7b03eab5b77dd73e565704332c8b0d2243c74d08a69e31da10eb80b6", ssa_ast = "3d1f1c8bc39d267e379c50872cc3bcc33e560779b169afc0613378ac48a76f81", type_checked_symbol_table = "f04452b4c2a5db1ac0b43238630adb909715a44c615f9398fa39e6d147b49ca3", unrolled_ast = "3df7b9a949257350f916becc6ed1f80661167308aa185a0c17c2a566ec76f595", unrolled_symbol_table = "f04452b4c2a5db1ac0b43238630adb909715a44c615f9398fa39e6d147b49ca3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as u64.private; + is.eq r0 127u64 into r3; + is.eq r1 27u64 into r4; + and r3 r4 into r5; + is.eq r2 21u64 into r6; + and r5 r6 into r7; + output r7 as boolean.private; +""", dce_ast = "af3214ef7b03eab5b77dd73e565704332c8b0d2243c74d08a69e31da10eb80b6", destructured_ast = "af3214ef7b03eab5b77dd73e565704332c8b0d2243c74d08a69e31da10eb80b6", errors = "", flattened_ast = "56ef2daacc74311d0d41443e80dd169f2e0298f5f32face6727494e1eb365216", initial_ast = "3df7b9a949257350f916becc6ed1f80661167308aa185a0c17c2a566ec76f595", initial_symbol_table = "66703eae3479604c1a104dc3c3af1a26534eeffe6335c531fe469d81de678319", inlined_ast = "af3214ef7b03eab5b77dd73e565704332c8b0d2243c74d08a69e31da10eb80b6", ssa_ast = "3d1f1c8bc39d267e379c50872cc3bcc33e560779b169afc0613378ac48a76f81", type_checked_symbol_table = "f04452b4c2a5db1ac0b43238630adb909715a44c615f9398fa39e6d147b49ca3", unrolled_ast = "3df7b9a949257350f916becc6ed1f80661167308aa185a0c17c2a566ec76f595", unrolled_symbol_table = "f04452b4c2a5db1ac0b43238630adb909715a44c615f9398fa39e6d147b49ca3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/le.out b/tests/expectations/compiler/integers/u64/le.out index f717d78fd5..be2e40d0b0 100644 --- a/tests/expectations/compiler/integers/u64/le.out +++ b/tests/expectations/compiler/integers/u64/le.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "8236ef7329613c24727637bdb29f45feb3ad59e82ed99249b8f5098b82922859", dce_ast = "85a3e11380ee56add56c288b906af19a05681ff67631beee25d0841eb71f8be5", destructured_ast = "85a3e11380ee56add56c288b906af19a05681ff67631beee25d0841eb71f8be5", errors = "", flattened_ast = "76f534ff4047d50739405d442c7589f4a9548be0c5a5d835035a4827d77a9577", initial_ast = "c0c899406c82cbfe3d6352eede5a511afa3473c5663c4e64368a8b8e329f737a", initial_symbol_table = "e1a0d909f4242d62f6ac15a8549867352bd8d0ee646a677e527fa369fd0e44e7", inlined_ast = "85a3e11380ee56add56c288b906af19a05681ff67631beee25d0841eb71f8be5", ssa_ast = "b08c32c631655ec5466fd76ec3136a5ace7f41e2f1d1e5c9de27d11bb9328d70", type_checked_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", unrolled_ast = "c0c899406c82cbfe3d6352eede5a511afa3473c5663c4e64368a8b8e329f737a", unrolled_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as boolean.private; + lte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "85a3e11380ee56add56c288b906af19a05681ff67631beee25d0841eb71f8be5", destructured_ast = "85a3e11380ee56add56c288b906af19a05681ff67631beee25d0841eb71f8be5", errors = "", flattened_ast = "76f534ff4047d50739405d442c7589f4a9548be0c5a5d835035a4827d77a9577", initial_ast = "c0c899406c82cbfe3d6352eede5a511afa3473c5663c4e64368a8b8e329f737a", initial_symbol_table = "e1a0d909f4242d62f6ac15a8549867352bd8d0ee646a677e527fa369fd0e44e7", inlined_ast = "85a3e11380ee56add56c288b906af19a05681ff67631beee25d0841eb71f8be5", ssa_ast = "b08c32c631655ec5466fd76ec3136a5ace7f41e2f1d1e5c9de27d11bb9328d70", type_checked_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", unrolled_ast = "c0c899406c82cbfe3d6352eede5a511afa3473c5663c4e64368a8b8e329f737a", unrolled_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/lt.out b/tests/expectations/compiler/integers/u64/lt.out index 87c6388271..b9ab0cd6ab 100644 --- a/tests/expectations/compiler/integers/u64/lt.out +++ b/tests/expectations/compiler/integers/u64/lt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "b436a196b7beab8b7a51791cc458801a2cd9498aeced74c07b81a7f1cc77e183", dce_ast = "60f53c3fa949dc9165eb7a26a6ff2799bfe567d0b516a306244b845843ea9496", destructured_ast = "60f53c3fa949dc9165eb7a26a6ff2799bfe567d0b516a306244b845843ea9496", errors = "", flattened_ast = "55b3541dccd06890419617b762c61120c45ea4fb6a9349be69bf2458ced092b9", initial_ast = "e2f7484c083cfc8b5e897bacb171e460df5065adb8f830b017679824cc9b28c3", initial_symbol_table = "e1a0d909f4242d62f6ac15a8549867352bd8d0ee646a677e527fa369fd0e44e7", inlined_ast = "60f53c3fa949dc9165eb7a26a6ff2799bfe567d0b516a306244b845843ea9496", ssa_ast = "acb63bdb8b87fcb769b85637b378736501c6d1cac813d9847028edfd48597e5b", type_checked_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", unrolled_ast = "e2f7484c083cfc8b5e897bacb171e460df5065adb8f830b017679824cc9b28c3", unrolled_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as boolean.private; + lt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "60f53c3fa949dc9165eb7a26a6ff2799bfe567d0b516a306244b845843ea9496", destructured_ast = "60f53c3fa949dc9165eb7a26a6ff2799bfe567d0b516a306244b845843ea9496", errors = "", flattened_ast = "55b3541dccd06890419617b762c61120c45ea4fb6a9349be69bf2458ced092b9", initial_ast = "e2f7484c083cfc8b5e897bacb171e460df5065adb8f830b017679824cc9b28c3", initial_symbol_table = "e1a0d909f4242d62f6ac15a8549867352bd8d0ee646a677e527fa369fd0e44e7", inlined_ast = "60f53c3fa949dc9165eb7a26a6ff2799bfe567d0b516a306244b845843ea9496", ssa_ast = "acb63bdb8b87fcb769b85637b378736501c6d1cac813d9847028edfd48597e5b", type_checked_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", unrolled_ast = "e2f7484c083cfc8b5e897bacb171e460df5065adb8f830b017679824cc9b28c3", unrolled_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/max.out b/tests/expectations/compiler/integers/u64/max.out index ded53a8f86..906b5e3c42 100644 --- a/tests/expectations/compiler/integers/u64/max.out +++ b/tests/expectations/compiler/integers/u64/max.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69", dce_ast = "bd1b89b6865ff3f3c4fca13a17988ae9435547ebd36785f0fe6e1b793e6e81ef", destructured_ast = "24a79b8884f2daa534fc0aceb7fe5e48cd2700dc40b1ae4ec5dd91c140dd55da", errors = "", flattened_ast = "62e6a5732976a694b36b54674c5df40be9c342a57978cc747dd30572985d1f7b", initial_ast = "956c53f2f289c16531167b5f0afc4368d5e2cf0964dfec7889a182620913a592", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "24a79b8884f2daa534fc0aceb7fe5e48cd2700dc40b1ae4ec5dd91c140dd55da", ssa_ast = "f36f9c462f2a1d2320879740b3d63eb5aea3e51371fa3531a1dfa560d18c9509", type_checked_symbol_table = "47b59a2169757b68d3be76ac7e5c58934ab1b8af794ad3b590491f1911abd83e", unrolled_ast = "956c53f2f289c16531167b5f0afc4368d5e2cf0964dfec7889a182620913a592", unrolled_symbol_table = "47b59a2169757b68d3be76ac7e5c58934ab1b8af794ad3b590491f1911abd83e", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + is.eq r0 true into r1; + output r1 as boolean.private; +""", dce_ast = "bd1b89b6865ff3f3c4fca13a17988ae9435547ebd36785f0fe6e1b793e6e81ef", destructured_ast = "24a79b8884f2daa534fc0aceb7fe5e48cd2700dc40b1ae4ec5dd91c140dd55da", errors = "", flattened_ast = "62e6a5732976a694b36b54674c5df40be9c342a57978cc747dd30572985d1f7b", initial_ast = "956c53f2f289c16531167b5f0afc4368d5e2cf0964dfec7889a182620913a592", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "24a79b8884f2daa534fc0aceb7fe5e48cd2700dc40b1ae4ec5dd91c140dd55da", ssa_ast = "f36f9c462f2a1d2320879740b3d63eb5aea3e51371fa3531a1dfa560d18c9509", type_checked_symbol_table = "47b59a2169757b68d3be76ac7e5c58934ab1b8af794ad3b590491f1911abd83e", unrolled_ast = "956c53f2f289c16531167b5f0afc4368d5e2cf0964dfec7889a182620913a592", unrolled_symbol_table = "47b59a2169757b68d3be76ac7e5c58934ab1b8af794ad3b590491f1911abd83e", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/min.out b/tests/expectations/compiler/integers/u64/min.out index 8484affc31..3512350ae1 100644 --- a/tests/expectations/compiler/integers/u64/min.out +++ b/tests/expectations/compiler/integers/u64/min.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69", dce_ast = "0c7cb8dbac921c14c7385c82a94c1a455955b24d2ff05266ecc377271e33d840", destructured_ast = "622650fcfac09e6cdd48999ad9e915a5b9c3b665ae00bf05599d3b44b6f63d09", errors = "", flattened_ast = "fd82660040db020b9022947daf2e43cfd8e6b5173b15c822d8fc0a06d1a2440b", initial_ast = "a5976f9d20813feafcb7ed300134782782234bdc8fc2b19504b43d42d31fdabc", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "622650fcfac09e6cdd48999ad9e915a5b9c3b665ae00bf05599d3b44b6f63d09", ssa_ast = "55b66a2773f898ed351344ce78aaf2ecc952ea8785bb7c517a4c754726efcacf", type_checked_symbol_table = "47b59a2169757b68d3be76ac7e5c58934ab1b8af794ad3b590491f1911abd83e", unrolled_ast = "a5976f9d20813feafcb7ed300134782782234bdc8fc2b19504b43d42d31fdabc", unrolled_symbol_table = "47b59a2169757b68d3be76ac7e5c58934ab1b8af794ad3b590491f1911abd83e", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + is.eq r0 true into r1; + output r1 as boolean.private; +""", dce_ast = "0c7cb8dbac921c14c7385c82a94c1a455955b24d2ff05266ecc377271e33d840", destructured_ast = "622650fcfac09e6cdd48999ad9e915a5b9c3b665ae00bf05599d3b44b6f63d09", errors = "", flattened_ast = "fd82660040db020b9022947daf2e43cfd8e6b5173b15c822d8fc0a06d1a2440b", initial_ast = "a5976f9d20813feafcb7ed300134782782234bdc8fc2b19504b43d42d31fdabc", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "622650fcfac09e6cdd48999ad9e915a5b9c3b665ae00bf05599d3b44b6f63d09", ssa_ast = "55b66a2773f898ed351344ce78aaf2ecc952ea8785bb7c517a4c754726efcacf", type_checked_symbol_table = "47b59a2169757b68d3be76ac7e5c58934ab1b8af794ad3b590491f1911abd83e", unrolled_ast = "a5976f9d20813feafcb7ed300134782782234bdc8fc2b19504b43d42d31fdabc", unrolled_symbol_table = "47b59a2169757b68d3be76ac7e5c58934ab1b8af794ad3b590491f1911abd83e", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/mul.out b/tests/expectations/compiler/integers/u64/mul.out index 00a01e8cba..3a4763445f 100644 --- a/tests/expectations/compiler/integers/u64/mul.out +++ b/tests/expectations/compiler/integers/u64/mul.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "78f1462dd03f403c4a6d09ee9fe96c4a38f860069190d718a34416b68b9b5643", dce_ast = "56f9a6b1378e29eba30cbc3f2aa8bee17ffd795713c7b87344cd50b145ad8015", destructured_ast = "56f9a6b1378e29eba30cbc3f2aa8bee17ffd795713c7b87344cd50b145ad8015", errors = "", flattened_ast = "031b82e778118a0bb460635c492c816b6829734c846079cf1c443923fb72cde7", initial_ast = "d626a36703c05f7909dca320c24da5cafd636f79d782d5adbef2a1aa617a8fc7", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "56f9a6b1378e29eba30cbc3f2aa8bee17ffd795713c7b87344cd50b145ad8015", ssa_ast = "5d1abfb1f06876b476ec7a25335bb21cb85d4e52e13295b379f25373f28a7bb1", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "d626a36703c05f7909dca320c24da5cafd636f79d782d5adbef2a1aa617a8fc7", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as u64.private; + mul r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "56f9a6b1378e29eba30cbc3f2aa8bee17ffd795713c7b87344cd50b145ad8015", destructured_ast = "56f9a6b1378e29eba30cbc3f2aa8bee17ffd795713c7b87344cd50b145ad8015", errors = "", flattened_ast = "031b82e778118a0bb460635c492c816b6829734c846079cf1c443923fb72cde7", initial_ast = "d626a36703c05f7909dca320c24da5cafd636f79d782d5adbef2a1aa617a8fc7", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "56f9a6b1378e29eba30cbc3f2aa8bee17ffd795713c7b87344cd50b145ad8015", ssa_ast = "5d1abfb1f06876b476ec7a25335bb21cb85d4e52e13295b379f25373f28a7bb1", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "d626a36703c05f7909dca320c24da5cafd636f79d782d5adbef2a1aa617a8fc7", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/ne.out b/tests/expectations/compiler/integers/u64/ne.out index fb8bdcf5d5..a274fd0855 100644 --- a/tests/expectations/compiler/integers/u64/ne.out +++ b/tests/expectations/compiler/integers/u64/ne.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "a7b99df5f7c17bca61aa58a32b7dd8b1b4281302d545b2a88b8c162d1c52dbaa", dce_ast = "add1724df1472080ce3fb86f7e10ed916ca60d33e3d5fb0b20de67c919b1cb5a", destructured_ast = "add1724df1472080ce3fb86f7e10ed916ca60d33e3d5fb0b20de67c919b1cb5a", errors = "", flattened_ast = "1aa11c36fbfcf526e0c0d83ec21135c507828be4ad32abfc02cba4672bdf3b7b", initial_ast = "c80e826d06c181c05109a8139b974819d97cf8efb2ed7ac70918e8e0b500c5b9", initial_symbol_table = "e1a0d909f4242d62f6ac15a8549867352bd8d0ee646a677e527fa369fd0e44e7", inlined_ast = "add1724df1472080ce3fb86f7e10ed916ca60d33e3d5fb0b20de67c919b1cb5a", ssa_ast = "6ba2bcc27aaec94fbacfce0f00799f6a1c8e792ff2fb145953a942d0bc323a35", type_checked_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", unrolled_ast = "c80e826d06c181c05109a8139b974819d97cf8efb2ed7ac70918e8e0b500c5b9", unrolled_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as boolean.private; + is.neq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "add1724df1472080ce3fb86f7e10ed916ca60d33e3d5fb0b20de67c919b1cb5a", destructured_ast = "add1724df1472080ce3fb86f7e10ed916ca60d33e3d5fb0b20de67c919b1cb5a", errors = "", flattened_ast = "1aa11c36fbfcf526e0c0d83ec21135c507828be4ad32abfc02cba4672bdf3b7b", initial_ast = "c80e826d06c181c05109a8139b974819d97cf8efb2ed7ac70918e8e0b500c5b9", initial_symbol_table = "e1a0d909f4242d62f6ac15a8549867352bd8d0ee646a677e527fa369fd0e44e7", inlined_ast = "add1724df1472080ce3fb86f7e10ed916ca60d33e3d5fb0b20de67c919b1cb5a", ssa_ast = "6ba2bcc27aaec94fbacfce0f00799f6a1c8e792ff2fb145953a942d0bc323a35", type_checked_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", unrolled_ast = "c80e826d06c181c05109a8139b974819d97cf8efb2ed7ac70918e8e0b500c5b9", unrolled_symbol_table = "64fd52b181ac67b20af9765717ad34e51fa695a7046496c694a3096e3764d384", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/operator_methods.out b/tests/expectations/compiler/integers/u64/operator_methods.out index cfd6911b90..3bcb007a12 100644 --- a/tests/expectations/compiler/integers/u64/operator_methods.out +++ b/tests/expectations/compiler/integers/u64/operator_methods.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e5ef9b94c6b2173341804d3fd3d6ca89bcdebc38ed22f7444bb4e140d86f5f00", dce_ast = "a2c430c2dcd78b836f04d79a982090cd4ffe815738a7ce1ebe3ec0a5cb7e88a3", destructured_ast = "9b4b42b22011073004a8ed3993f9be9c97c18ed79d062b63efe7e096833945be", errors = "", flattened_ast = "4915277b235ae90c19075c267d7025f243f2f6476336c9ac84489cf3bd18e2c3", initial_ast = "1ce14b439950f312dcaa33014d4802eaa4b3b2835770f0aa3e29db02c8f1e395", initial_symbol_table = "46f83711ec0f0f9b1ce58300f947283dc22d536a8a75bac7715800e936a39494", inlined_ast = "9b4b42b22011073004a8ed3993f9be9c97c18ed79d062b63efe7e096833945be", ssa_ast = "5d774969b080819cb23ce4796c73ec5a7d214875a10b3699f37428863756cc25", type_checked_symbol_table = "16f20bc1e332180e4a80917adf37342a8d174c078b23547f91e0ecb6ec3cf716", unrolled_ast = "1ce14b439950f312dcaa33014d4802eaa4b3b2835770f0aa3e29db02c8f1e395", unrolled_symbol_table = "16f20bc1e332180e4a80917adf37342a8d174c078b23547f91e0ecb6ec3cf716", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + is.eq r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "a2c430c2dcd78b836f04d79a982090cd4ffe815738a7ce1ebe3ec0a5cb7e88a3", destructured_ast = "9b4b42b22011073004a8ed3993f9be9c97c18ed79d062b63efe7e096833945be", errors = "", flattened_ast = "4915277b235ae90c19075c267d7025f243f2f6476336c9ac84489cf3bd18e2c3", initial_ast = "1ce14b439950f312dcaa33014d4802eaa4b3b2835770f0aa3e29db02c8f1e395", initial_symbol_table = "46f83711ec0f0f9b1ce58300f947283dc22d536a8a75bac7715800e936a39494", inlined_ast = "9b4b42b22011073004a8ed3993f9be9c97c18ed79d062b63efe7e096833945be", ssa_ast = "5d774969b080819cb23ce4796c73ec5a7d214875a10b3699f37428863756cc25", type_checked_symbol_table = "16f20bc1e332180e4a80917adf37342a8d174c078b23547f91e0ecb6ec3cf716", unrolled_ast = "1ce14b439950f312dcaa33014d4802eaa4b3b2835770f0aa3e29db02c8f1e395", unrolled_symbol_table = "16f20bc1e332180e4a80917adf37342a8d174c078b23547f91e0ecb6ec3cf716", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/or.out b/tests/expectations/compiler/integers/u64/or.out index 35c1e9e13e..cdba545d2b 100644 --- a/tests/expectations/compiler/integers/u64/or.out +++ b/tests/expectations/compiler/integers/u64/or.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "13cd83b19f077edfeb58e50adbd76dac67742cef9747f50f4bc4bdb3ec3dc38e", dce_ast = "ce2eb882bad77eb0c6f6b90f79d104b43b3940b7393336f445d3cdfd75969779", destructured_ast = "ce2eb882bad77eb0c6f6b90f79d104b43b3940b7393336f445d3cdfd75969779", errors = "", flattened_ast = "ecd6d169bb3013ea659ca6fca5c93a991f3d361008b1075d611c12c868b6f58a", initial_ast = "e2834803a9267cc6c8dbac736ef9c633d825f0fe5e102d2d6cbdd0c9b50c485d", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "ce2eb882bad77eb0c6f6b90f79d104b43b3940b7393336f445d3cdfd75969779", ssa_ast = "d43ecbee520bbc954201b7586c9b1af00fbc6be6494b50141f333d87c6002361", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "e2834803a9267cc6c8dbac736ef9c633d825f0fe5e102d2d6cbdd0c9b50c485d", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as u64.private; + or r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "ce2eb882bad77eb0c6f6b90f79d104b43b3940b7393336f445d3cdfd75969779", destructured_ast = "ce2eb882bad77eb0c6f6b90f79d104b43b3940b7393336f445d3cdfd75969779", errors = "", flattened_ast = "ecd6d169bb3013ea659ca6fca5c93a991f3d361008b1075d611c12c868b6f58a", initial_ast = "e2834803a9267cc6c8dbac736ef9c633d825f0fe5e102d2d6cbdd0c9b50c485d", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "ce2eb882bad77eb0c6f6b90f79d104b43b3940b7393336f445d3cdfd75969779", ssa_ast = "d43ecbee520bbc954201b7586c9b1af00fbc6be6494b50141f333d87c6002361", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "e2834803a9267cc6c8dbac736ef9c633d825f0fe5e102d2d6cbdd0c9b50c485d", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/pow.out b/tests/expectations/compiler/integers/u64/pow.out index 696bd5b180..ba6768388a 100644 --- a/tests/expectations/compiler/integers/u64/pow.out +++ b/tests/expectations/compiler/integers/u64/pow.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "d1aaa5f10bdbc9f2ea3144d83472c27d7f6d6ae31fa26196f320db6d7a9b0403", dce_ast = "cf23cdccd1f097998bf00b192c9abf9ba94f9c6c581796df75cc5ae66b4381c9", destructured_ast = "cf23cdccd1f097998bf00b192c9abf9ba94f9c6c581796df75cc5ae66b4381c9", errors = "", flattened_ast = "0dbf464b23ffe7411adecc1b2586d735cc6ac9da63d6a465330c5273ca0a9ab6", initial_ast = "c33a9e7926812e3fc26c6dff0f7dfc379875d5fcc2b9bb1212fbaca641b01ffe", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "cf23cdccd1f097998bf00b192c9abf9ba94f9c6c581796df75cc5ae66b4381c9", ssa_ast = "5a3040d98fd249dc56b3de2828138879c76a037e7437a743ab7b86cfea7df084", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "c33a9e7926812e3fc26c6dff0f7dfc379875d5fcc2b9bb1212fbaca641b01ffe", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as u64.private; + pow r0 2u8 into r3; + pow r0 2u16 into r4; + is.eq r3 r4 into r5; + pow r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "cf23cdccd1f097998bf00b192c9abf9ba94f9c6c581796df75cc5ae66b4381c9", destructured_ast = "cf23cdccd1f097998bf00b192c9abf9ba94f9c6c581796df75cc5ae66b4381c9", errors = "", flattened_ast = "0dbf464b23ffe7411adecc1b2586d735cc6ac9da63d6a465330c5273ca0a9ab6", initial_ast = "c33a9e7926812e3fc26c6dff0f7dfc379875d5fcc2b9bb1212fbaca641b01ffe", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "cf23cdccd1f097998bf00b192c9abf9ba94f9c6c581796df75cc5ae66b4381c9", ssa_ast = "5a3040d98fd249dc56b3de2828138879c76a037e7437a743ab7b86cfea7df084", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "c33a9e7926812e3fc26c6dff0f7dfc379875d5fcc2b9bb1212fbaca641b01ffe", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/rem.out b/tests/expectations/compiler/integers/u64/rem.out index 0ec853da52..c9e4ede126 100644 --- a/tests/expectations/compiler/integers/u64/rem.out +++ b/tests/expectations/compiler/integers/u64/rem.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "a9ad512e3741c4b6ee79435b76680783f4e9de0ae6720f3945fe03a8a4fd4d0d", dce_ast = "da92ddffc2273e1ff903bab72f6127e084fa3d3b89afa5a4d0dc70f201eab00b", destructured_ast = "da92ddffc2273e1ff903bab72f6127e084fa3d3b89afa5a4d0dc70f201eab00b", errors = "", flattened_ast = "e0456e0d7b4a21960712b144691a28714728ff64ef19d0c24df84b9f182e1d6f", initial_ast = "1a6a1c2e6e7477bb85cc1070ad53e8a66e45ee3f5d6c58011ebacc16f96ac1a6", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "da92ddffc2273e1ff903bab72f6127e084fa3d3b89afa5a4d0dc70f201eab00b", ssa_ast = "da64a6818ac99c8f49202cf18d90551596c95d0bd29b8576c6edcd3587220e0d", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "1a6a1c2e6e7477bb85cc1070ad53e8a66e45ee3f5d6c58011ebacc16f96ac1a6", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as u64.private; + rem r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "da92ddffc2273e1ff903bab72f6127e084fa3d3b89afa5a4d0dc70f201eab00b", destructured_ast = "da92ddffc2273e1ff903bab72f6127e084fa3d3b89afa5a4d0dc70f201eab00b", errors = "", flattened_ast = "e0456e0d7b4a21960712b144691a28714728ff64ef19d0c24df84b9f182e1d6f", initial_ast = "1a6a1c2e6e7477bb85cc1070ad53e8a66e45ee3f5d6c58011ebacc16f96ac1a6", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "da92ddffc2273e1ff903bab72f6127e084fa3d3b89afa5a4d0dc70f201eab00b", ssa_ast = "da64a6818ac99c8f49202cf18d90551596c95d0bd29b8576c6edcd3587220e0d", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "1a6a1c2e6e7477bb85cc1070ad53e8a66e45ee3f5d6c58011ebacc16f96ac1a6", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/shl.out b/tests/expectations/compiler/integers/u64/shl.out index a3b79e6166..1f29f0db3d 100644 --- a/tests/expectations/compiler/integers/u64/shl.out +++ b/tests/expectations/compiler/integers/u64/shl.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "d36e49eaf108a44b1c40155c909914f866e5ce509034c1ae630d22a37c702cba", dce_ast = "d91a390548c201d0c456d281a36925eda46661ce5ed3d97496d914a1d19fa66a", destructured_ast = "d91a390548c201d0c456d281a36925eda46661ce5ed3d97496d914a1d19fa66a", errors = "", flattened_ast = "01c6c0a056c2f0af29cc5b5514e2e578e7fce060184f51c13e597e5dcb12cfe3", initial_ast = "c6675a42ca8be3a2e7d4b87c4107c498ccbb3f67aeba41390a47350ba6889999", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "d91a390548c201d0c456d281a36925eda46661ce5ed3d97496d914a1d19fa66a", ssa_ast = "71454fed4fa45517151318c18a8c5ad5850e435490178114bf88375fea35bc31", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "c6675a42ca8be3a2e7d4b87c4107c498ccbb3f67aeba41390a47350ba6889999", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as u64.private; + shl r0 2u8 into r3; + shl r0 2u16 into r4; + is.eq r3 r4 into r5; + shl r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "d91a390548c201d0c456d281a36925eda46661ce5ed3d97496d914a1d19fa66a", destructured_ast = "d91a390548c201d0c456d281a36925eda46661ce5ed3d97496d914a1d19fa66a", errors = "", flattened_ast = "01c6c0a056c2f0af29cc5b5514e2e578e7fce060184f51c13e597e5dcb12cfe3", initial_ast = "c6675a42ca8be3a2e7d4b87c4107c498ccbb3f67aeba41390a47350ba6889999", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "d91a390548c201d0c456d281a36925eda46661ce5ed3d97496d914a1d19fa66a", ssa_ast = "71454fed4fa45517151318c18a8c5ad5850e435490178114bf88375fea35bc31", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "c6675a42ca8be3a2e7d4b87c4107c498ccbb3f67aeba41390a47350ba6889999", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/shr.out b/tests/expectations/compiler/integers/u64/shr.out index a749e7e7c2..d32b579970 100644 --- a/tests/expectations/compiler/integers/u64/shr.out +++ b/tests/expectations/compiler/integers/u64/shr.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "58d1ec6467fbeb13930300da8864ec299ab548393dd572f1ccd4878a599873e2", dce_ast = "a6f7cd6a2a6e63045be371914c314fcd16581f15d76207b1092767f1ce27cd9a", destructured_ast = "a6f7cd6a2a6e63045be371914c314fcd16581f15d76207b1092767f1ce27cd9a", errors = "", flattened_ast = "8119ff883bd63a4b5f7dca4517a34e9991e0e6100772418fce877cabcc3e135a", initial_ast = "6ce60849dae80365e48f7f9be6e08eb0e0bc5ca768c3124ebfa44d0959dcffa9", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "a6f7cd6a2a6e63045be371914c314fcd16581f15d76207b1092767f1ce27cd9a", ssa_ast = "cc4eb56c0d774b307222ed683227293cc60152ece904459de557dabcadf5b2bc", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "6ce60849dae80365e48f7f9be6e08eb0e0bc5ca768c3124ebfa44d0959dcffa9", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as u64.private; + shr r0 2u8 into r3; + shr r0 2u16 into r4; + is.eq r3 r4 into r5; + shr r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "a6f7cd6a2a6e63045be371914c314fcd16581f15d76207b1092767f1ce27cd9a", destructured_ast = "a6f7cd6a2a6e63045be371914c314fcd16581f15d76207b1092767f1ce27cd9a", errors = "", flattened_ast = "8119ff883bd63a4b5f7dca4517a34e9991e0e6100772418fce877cabcc3e135a", initial_ast = "6ce60849dae80365e48f7f9be6e08eb0e0bc5ca768c3124ebfa44d0959dcffa9", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "a6f7cd6a2a6e63045be371914c314fcd16581f15d76207b1092767f1ce27cd9a", ssa_ast = "cc4eb56c0d774b307222ed683227293cc60152ece904459de557dabcadf5b2bc", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "6ce60849dae80365e48f7f9be6e08eb0e0bc5ca768c3124ebfa44d0959dcffa9", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/sub.out b/tests/expectations/compiler/integers/u64/sub.out index 3d9809671a..371d1cea85 100644 --- a/tests/expectations/compiler/integers/u64/sub.out +++ b/tests/expectations/compiler/integers/u64/sub.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "fe0eb66afc2af38ebf4fd30fa4eb0af15eda6be5302fb2a7470485b4536d06e4", dce_ast = "1fb778c79b6439ad16cc30dd005f107de945b2894c09686527e897907c5381ce", destructured_ast = "1fb778c79b6439ad16cc30dd005f107de945b2894c09686527e897907c5381ce", errors = "", flattened_ast = "4385eaa0ec21b5d03b26907fa1d1873e57f34ac324d8a03741d292d3333c99df", initial_ast = "b0c7e43c348c58446bd6281876a87a105555dab7c33a09542a97d907a4a24bba", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "1fb778c79b6439ad16cc30dd005f107de945b2894c09686527e897907c5381ce", ssa_ast = "f107cc7f828eeff9e367dc11309e071515b81a8c73179e566570b9bdb9eecb71", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "b0c7e43c348c58446bd6281876a87a105555dab7c33a09542a97d907a4a24bba", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + input r2 as u64.private; + sub r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "1fb778c79b6439ad16cc30dd005f107de945b2894c09686527e897907c5381ce", destructured_ast = "1fb778c79b6439ad16cc30dd005f107de945b2894c09686527e897907c5381ce", errors = "", flattened_ast = "4385eaa0ec21b5d03b26907fa1d1873e57f34ac324d8a03741d292d3333c99df", initial_ast = "b0c7e43c348c58446bd6281876a87a105555dab7c33a09542a97d907a4a24bba", initial_symbol_table = "ca9e808c60ae417a4faa07a598f018c8b4548813a58a8b73020ebed87d3b5537", inlined_ast = "1fb778c79b6439ad16cc30dd005f107de945b2894c09686527e897907c5381ce", ssa_ast = "f107cc7f828eeff9e367dc11309e071515b81a8c73179e566570b9bdb9eecb71", type_checked_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", unrolled_ast = "b0c7e43c348c58446bd6281876a87a105555dab7c33a09542a97d907a4a24bba", unrolled_symbol_table = "578f57df100f4af6e07b970fd37b1d9b3a7ce8266a2028c4e04910459ae709e9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/ternary.out b/tests/expectations/compiler/integers/u64/ternary.out index bb345f3570..af25f794ac 100644 --- a/tests/expectations/compiler/integers/u64/ternary.out +++ b/tests/expectations/compiler/integers/u64/ternary.out @@ -1,3 +1,16 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4e191316243b5f6fff5d47a3177f3ec59d72ce76b7f3d6d3aa0da615f67a4087", dce_ast = "6e3391e5a6878b91b3aef1534b448e01e5234cfe8ec1a963eb6dc69afa3f8b74", destructured_ast = "6e3391e5a6878b91b3aef1534b448e01e5234cfe8ec1a963eb6dc69afa3f8b74", errors = "", flattened_ast = "de73974d13be25bcbedea21425b238e0c1c3deb33937d04d448c1ac6db761349", initial_ast = "f15e03a2b49db5406cd393f0c3a12930bfc147b4519d315e3efc33569aebfeff", initial_symbol_table = "af5bb70010470d5714417095d2df855d9f9550a3f518dfd1b76ba620a5768bf5", inlined_ast = "6e3391e5a6878b91b3aef1534b448e01e5234cfe8ec1a963eb6dc69afa3f8b74", ssa_ast = "5a0ed7c8d8363664d85f5133143d0b0e9b9af850c40bddaec9264591d52551a9", type_checked_symbol_table = "5dcff0e5ed0315a1c7294749d25c0e05d976d7f69874cd7c036eb8645cadd0fc", unrolled_ast = "f15e03a2b49db5406cd393f0c3a12930bfc147b4519d315e3efc33569aebfeff", unrolled_symbol_table = "5dcff0e5ed0315a1c7294749d25c0e05d976d7f69874cd7c036eb8645cadd0fc", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + input r1 as u64.private; + input r2 as u64.private; + input r3 as u64.private; + ternary r0 r1 r2 into r4; + is.eq r4 r3 into r5; + output r5 as boolean.private; +""", dce_ast = "6e3391e5a6878b91b3aef1534b448e01e5234cfe8ec1a963eb6dc69afa3f8b74", destructured_ast = "6e3391e5a6878b91b3aef1534b448e01e5234cfe8ec1a963eb6dc69afa3f8b74", errors = "", flattened_ast = "de73974d13be25bcbedea21425b238e0c1c3deb33937d04d448c1ac6db761349", initial_ast = "f15e03a2b49db5406cd393f0c3a12930bfc147b4519d315e3efc33569aebfeff", initial_symbol_table = "af5bb70010470d5714417095d2df855d9f9550a3f518dfd1b76ba620a5768bf5", inlined_ast = "6e3391e5a6878b91b3aef1534b448e01e5234cfe8ec1a963eb6dc69afa3f8b74", ssa_ast = "5a0ed7c8d8363664d85f5133143d0b0e9b9af850c40bddaec9264591d52551a9", type_checked_symbol_table = "5dcff0e5ed0315a1c7294749d25c0e05d976d7f69874cd7c036eb8645cadd0fc", unrolled_ast = "f15e03a2b49db5406cd393f0c3a12930bfc147b4519d315e3efc33569aebfeff", unrolled_symbol_table = "5dcff0e5ed0315a1c7294749d25c0e05d976d7f69874cd7c036eb8645cadd0fc", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u64/xor.out b/tests/expectations/compiler/integers/u64/xor.out index a3e0b805de..855b4a0bcb 100644 --- a/tests/expectations/compiler/integers/u64/xor.out +++ b/tests/expectations/compiler/integers/u64/xor.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "cf0a59e484f688e214a001360e2b18445ca6764fbd6c05f133ff317504b3fb3c", dce_ast = "e82e70a8b82d692b2a6326c9107b1eca4a66a5a08bf9266188e804217482d092", destructured_ast = "e82e70a8b82d692b2a6326c9107b1eca4a66a5a08bf9266188e804217482d092", errors = "", flattened_ast = "ff979b5af09ffcc8cbd714599f1a6f62de56557be06335326347bb2cb5501a47", initial_ast = "5a6eed1c892828034d8d3641698fa9383046226002ec6b51695688bf72a3cd4d", initial_symbol_table = "669a9cf397a17bfcad5aea2b451b5ef5d131de5475e85baf0e2dac9148374af0", inlined_ast = "e82e70a8b82d692b2a6326c9107b1eca4a66a5a08bf9266188e804217482d092", ssa_ast = "fd362a3a680eb691b892415a280cdaea38fd0224ce2a06ea5602aaf7e2fbaa84", type_checked_symbol_table = "223e45a2fb8cbd9c8f790e4333e896b0b80cdff6ca08cb749f5ddf61bb30f6f8", unrolled_ast = "5a6eed1c892828034d8d3641698fa9383046226002ec6b51695688bf72a3cd4d", unrolled_symbol_table = "223e45a2fb8cbd9c8f790e4333e896b0b80cdff6ca08cb749f5ddf61bb30f6f8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u64.private; + input r1 as u64.private; + xor r0 r1 into r2; + output r2 as u64.private; +""", dce_ast = "e82e70a8b82d692b2a6326c9107b1eca4a66a5a08bf9266188e804217482d092", destructured_ast = "e82e70a8b82d692b2a6326c9107b1eca4a66a5a08bf9266188e804217482d092", errors = "", flattened_ast = "ff979b5af09ffcc8cbd714599f1a6f62de56557be06335326347bb2cb5501a47", initial_ast = "5a6eed1c892828034d8d3641698fa9383046226002ec6b51695688bf72a3cd4d", initial_symbol_table = "669a9cf397a17bfcad5aea2b451b5ef5d131de5475e85baf0e2dac9148374af0", inlined_ast = "e82e70a8b82d692b2a6326c9107b1eca4a66a5a08bf9266188e804217482d092", ssa_ast = "fd362a3a680eb691b892415a280cdaea38fd0224ce2a06ea5602aaf7e2fbaa84", type_checked_symbol_table = "223e45a2fb8cbd9c8f790e4333e896b0b80cdff6ca08cb749f5ddf61bb30f6f8", unrolled_ast = "5a6eed1c892828034d8d3641698fa9383046226002ec6b51695688bf72a3cd4d", unrolled_symbol_table = "223e45a2fb8cbd9c8f790e4333e896b0b80cdff6ca08cb749f5ddf61bb30f6f8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/add.out b/tests/expectations/compiler/integers/u8/add.out index 60c7414973..62da597daa 100644 --- a/tests/expectations/compiler/integers/u8/add.out +++ b/tests/expectations/compiler/integers/u8/add.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "6761db493c28a4d597f857d8d63da1678bb9f4408795168fe82a841acf77f89e", dce_ast = "26be0626dd6e9b676c5a236694f46f32bb898608ed160a8f55de222720ce1a6a", destructured_ast = "26be0626dd6e9b676c5a236694f46f32bb898608ed160a8f55de222720ce1a6a", errors = "", flattened_ast = "e8f39ffb636b1c063bc8442b4629d7ab9edbe5aa82772e5bed7e1d900d363f89", initial_ast = "efd8945f46468594d9f9823bdea6eaf6cdf438fc6e9af15cf7a00ae5f3e5fb3b", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "26be0626dd6e9b676c5a236694f46f32bb898608ed160a8f55de222720ce1a6a", ssa_ast = "5a22ca477d0589200efceae9b7f306a6aca6f4c43cf60e22dad998d201f599d2", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "efd8945f46468594d9f9823bdea6eaf6cdf438fc6e9af15cf7a00ae5f3e5fb3b", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as u8.private; + add r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "26be0626dd6e9b676c5a236694f46f32bb898608ed160a8f55de222720ce1a6a", destructured_ast = "26be0626dd6e9b676c5a236694f46f32bb898608ed160a8f55de222720ce1a6a", errors = "", flattened_ast = "e8f39ffb636b1c063bc8442b4629d7ab9edbe5aa82772e5bed7e1d900d363f89", initial_ast = "efd8945f46468594d9f9823bdea6eaf6cdf438fc6e9af15cf7a00ae5f3e5fb3b", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "26be0626dd6e9b676c5a236694f46f32bb898608ed160a8f55de222720ce1a6a", ssa_ast = "5a22ca477d0589200efceae9b7f306a6aca6f4c43cf60e22dad998d201f599d2", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "efd8945f46468594d9f9823bdea6eaf6cdf438fc6e9af15cf7a00ae5f3e5fb3b", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/and.out b/tests/expectations/compiler/integers/u8/and.out index 56bf6e5f62..06f7606a57 100644 --- a/tests/expectations/compiler/integers/u8/and.out +++ b/tests/expectations/compiler/integers/u8/and.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "31f37fed73b997c95b00e68369546c32ee9baeac9bc4c08113248156f68f7365", dce_ast = "682383148abda37b0be398b56029507256b31a468a2183364b3e546a1809cfbd", destructured_ast = "682383148abda37b0be398b56029507256b31a468a2183364b3e546a1809cfbd", errors = "", flattened_ast = "f45ba11eedd7083a3d1c3ab1eb1acb3b3a173f2aee6b204a1f43ba3a5dac64be", initial_ast = "e909bdb5dbdc648ab2556a90dff321fb11f949493020f33208ba789af5ce4be7", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "682383148abda37b0be398b56029507256b31a468a2183364b3e546a1809cfbd", ssa_ast = "9ad8195284adde626ee3db78e039f3824ce9424c573df26c0ec68520cb7bb78e", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "e909bdb5dbdc648ab2556a90dff321fb11f949493020f33208ba789af5ce4be7", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as u8.private; + and r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "682383148abda37b0be398b56029507256b31a468a2183364b3e546a1809cfbd", destructured_ast = "682383148abda37b0be398b56029507256b31a468a2183364b3e546a1809cfbd", errors = "", flattened_ast = "f45ba11eedd7083a3d1c3ab1eb1acb3b3a173f2aee6b204a1f43ba3a5dac64be", initial_ast = "e909bdb5dbdc648ab2556a90dff321fb11f949493020f33208ba789af5ce4be7", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "682383148abda37b0be398b56029507256b31a468a2183364b3e546a1809cfbd", ssa_ast = "9ad8195284adde626ee3db78e039f3824ce9424c573df26c0ec68520cb7bb78e", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "e909bdb5dbdc648ab2556a90dff321fb11f949493020f33208ba789af5ce4be7", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/console_assert.out b/tests/expectations/compiler/integers/u8/console_assert.out index 17fcb28076..b10ed0aa79 100644 --- a/tests/expectations/compiler/integers/u8/console_assert.out +++ b/tests/expectations/compiler/integers/u8/console_assert.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4c7bc1ae9e77f79475afa9f5201eefc0fe85291af17b3d746bd69336e42101a1", dce_ast = "69fbbda8e363473ed12d870794a4faf85b6c917414a0ba5ec5df4c8125a495ef", destructured_ast = "69fbbda8e363473ed12d870794a4faf85b6c917414a0ba5ec5df4c8125a495ef", errors = "", flattened_ast = "f31dbae930ab5c189ac8ca8aa76b0cbb44e1f556bd31c8f2dfd5bbba2aadd8b7", initial_ast = "47081d44c755a295218e7353fba55f83ab2ef20f1cec6aa5653f54e8caeeab9e", initial_symbol_table = "6f4c9f96c16df23aea5368162160fd3c931c128c3afe6b8c02097da023c54f08", inlined_ast = "69fbbda8e363473ed12d870794a4faf85b6c917414a0ba5ec5df4c8125a495ef", ssa_ast = "640a98b36b4c5ea20c36088b42ad7e4a93c32ba99e0112dec4ecf53eeda8ec43", type_checked_symbol_table = "3c2d1d87cae87c1be63cf801726eefb7d5e887949faedb3e46987d6c57105aa9", unrolled_ast = "47081d44c755a295218e7353fba55f83ab2ef20f1cec6aa5653f54e8caeeab9e", unrolled_symbol_table = "3c2d1d87cae87c1be63cf801726eefb7d5e887949faedb3e46987d6c57105aa9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + is.eq r0 r1 into r2; + assert.eq r2 true; + output r2 as boolean.private; +""", dce_ast = "69fbbda8e363473ed12d870794a4faf85b6c917414a0ba5ec5df4c8125a495ef", destructured_ast = "69fbbda8e363473ed12d870794a4faf85b6c917414a0ba5ec5df4c8125a495ef", errors = "", flattened_ast = "f31dbae930ab5c189ac8ca8aa76b0cbb44e1f556bd31c8f2dfd5bbba2aadd8b7", initial_ast = "47081d44c755a295218e7353fba55f83ab2ef20f1cec6aa5653f54e8caeeab9e", initial_symbol_table = "6f4c9f96c16df23aea5368162160fd3c931c128c3afe6b8c02097da023c54f08", inlined_ast = "69fbbda8e363473ed12d870794a4faf85b6c917414a0ba5ec5df4c8125a495ef", ssa_ast = "640a98b36b4c5ea20c36088b42ad7e4a93c32ba99e0112dec4ecf53eeda8ec43", type_checked_symbol_table = "3c2d1d87cae87c1be63cf801726eefb7d5e887949faedb3e46987d6c57105aa9", unrolled_ast = "47081d44c755a295218e7353fba55f83ab2ef20f1cec6aa5653f54e8caeeab9e", unrolled_symbol_table = "3c2d1d87cae87c1be63cf801726eefb7d5e887949faedb3e46987d6c57105aa9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/div.out b/tests/expectations/compiler/integers/u8/div.out index 1e9433d51a..cdd0ac74c4 100644 --- a/tests/expectations/compiler/integers/u8/div.out +++ b/tests/expectations/compiler/integers/u8/div.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "632b53e1874bb592e38caef626784ecc81f0b250a76ed6ece1d92b0e3e07f0f3", dce_ast = "6a21d0455eadb0f6ab7394e641358012afca0eb2fac23e293f2d0e8b89777f59", destructured_ast = "6a21d0455eadb0f6ab7394e641358012afca0eb2fac23e293f2d0e8b89777f59", errors = "", flattened_ast = "318a16183e22c65e6c2bb06ca80d0edc59d68b276c845eec1fa79e9ea8904138", initial_ast = "4c8d334e7f23456e163b26a4338e3e235ffa4349d3149a335974257ea8d213b9", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "6a21d0455eadb0f6ab7394e641358012afca0eb2fac23e293f2d0e8b89777f59", ssa_ast = "2f3105be9a43e7f69e7ff541cad703fc208d6bd4ca2362f67836fd8b80bc7e54", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "4c8d334e7f23456e163b26a4338e3e235ffa4349d3149a335974257ea8d213b9", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as u8.private; + div r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "6a21d0455eadb0f6ab7394e641358012afca0eb2fac23e293f2d0e8b89777f59", destructured_ast = "6a21d0455eadb0f6ab7394e641358012afca0eb2fac23e293f2d0e8b89777f59", errors = "", flattened_ast = "318a16183e22c65e6c2bb06ca80d0edc59d68b276c845eec1fa79e9ea8904138", initial_ast = "4c8d334e7f23456e163b26a4338e3e235ffa4349d3149a335974257ea8d213b9", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "6a21d0455eadb0f6ab7394e641358012afca0eb2fac23e293f2d0e8b89777f59", ssa_ast = "2f3105be9a43e7f69e7ff541cad703fc208d6bd4ca2362f67836fd8b80bc7e54", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "4c8d334e7f23456e163b26a4338e3e235ffa4349d3149a335974257ea8d213b9", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/eq.out b/tests/expectations/compiler/integers/u8/eq.out index ae2b375cc5..5e109d863d 100644 --- a/tests/expectations/compiler/integers/u8/eq.out +++ b/tests/expectations/compiler/integers/u8/eq.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "a8fabd0b697054bb6de3971dbb93d8a9fb228135f08372b2ae641bb32d670d62", dce_ast = "c392f08046f2227e11ed2cd6af8aa8c54897f7c7497fedabd1ee0d3be189831b", destructured_ast = "c392f08046f2227e11ed2cd6af8aa8c54897f7c7497fedabd1ee0d3be189831b", errors = "", flattened_ast = "f1d4d4124964d5fa2b4c302fff4de8e8208e8c451e69ed501556cbbd6042939c", initial_ast = "efe60a9d0744836360db90baf7f6ead6165c7e890b2917494bbb1d0f7b04ffa9", initial_symbol_table = "cc55846945599771446b5f9d775fcdbb516ff7332077826a0b39b01465cd0e68", inlined_ast = "c392f08046f2227e11ed2cd6af8aa8c54897f7c7497fedabd1ee0d3be189831b", ssa_ast = "7286508bf6566b68641d1be373ca823770588080d09b31653e732ce39f4b7a6d", type_checked_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", unrolled_ast = "efe60a9d0744836360db90baf7f6ead6165c7e890b2917494bbb1d0f7b04ffa9", unrolled_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as boolean.private; + is.eq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "c392f08046f2227e11ed2cd6af8aa8c54897f7c7497fedabd1ee0d3be189831b", destructured_ast = "c392f08046f2227e11ed2cd6af8aa8c54897f7c7497fedabd1ee0d3be189831b", errors = "", flattened_ast = "f1d4d4124964d5fa2b4c302fff4de8e8208e8c451e69ed501556cbbd6042939c", initial_ast = "efe60a9d0744836360db90baf7f6ead6165c7e890b2917494bbb1d0f7b04ffa9", initial_symbol_table = "cc55846945599771446b5f9d775fcdbb516ff7332077826a0b39b01465cd0e68", inlined_ast = "c392f08046f2227e11ed2cd6af8aa8c54897f7c7497fedabd1ee0d3be189831b", ssa_ast = "7286508bf6566b68641d1be373ca823770588080d09b31653e732ce39f4b7a6d", type_checked_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", unrolled_ast = "efe60a9d0744836360db90baf7f6ead6165c7e890b2917494bbb1d0f7b04ffa9", unrolled_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/ge.out b/tests/expectations/compiler/integers/u8/ge.out index 700fd8a63e..b4d5bb4de4 100644 --- a/tests/expectations/compiler/integers/u8/ge.out +++ b/tests/expectations/compiler/integers/u8/ge.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f6c47583029e6e00d1d236422c0365a273e4da8dad6dabfb1fe6d1081dc03311", dce_ast = "750e038a3eea938df2761d40fae0112410a4378631a4dc2749b5daad0711f106", destructured_ast = "750e038a3eea938df2761d40fae0112410a4378631a4dc2749b5daad0711f106", errors = "", flattened_ast = "4bb471d022fa068e0f1e92cabc2a14a92fad07967afeea684f75a5dcfceaeaba", initial_ast = "0643e6bb83c5813b9305374057f7dbcdda1c852d790b7e26b1c09282460aa593", initial_symbol_table = "cc55846945599771446b5f9d775fcdbb516ff7332077826a0b39b01465cd0e68", inlined_ast = "750e038a3eea938df2761d40fae0112410a4378631a4dc2749b5daad0711f106", ssa_ast = "bb375590f4ffe518b374a9684faf0a7ae3860fbbca5ddbd33d0aff01f23cc270", type_checked_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", unrolled_ast = "0643e6bb83c5813b9305374057f7dbcdda1c852d790b7e26b1c09282460aa593", unrolled_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as boolean.private; + gte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "750e038a3eea938df2761d40fae0112410a4378631a4dc2749b5daad0711f106", destructured_ast = "750e038a3eea938df2761d40fae0112410a4378631a4dc2749b5daad0711f106", errors = "", flattened_ast = "4bb471d022fa068e0f1e92cabc2a14a92fad07967afeea684f75a5dcfceaeaba", initial_ast = "0643e6bb83c5813b9305374057f7dbcdda1c852d790b7e26b1c09282460aa593", initial_symbol_table = "cc55846945599771446b5f9d775fcdbb516ff7332077826a0b39b01465cd0e68", inlined_ast = "750e038a3eea938df2761d40fae0112410a4378631a4dc2749b5daad0711f106", ssa_ast = "bb375590f4ffe518b374a9684faf0a7ae3860fbbca5ddbd33d0aff01f23cc270", type_checked_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", unrolled_ast = "0643e6bb83c5813b9305374057f7dbcdda1c852d790b7e26b1c09282460aa593", unrolled_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/gt.out b/tests/expectations/compiler/integers/u8/gt.out index 58bcde6791..e2c8585434 100644 --- a/tests/expectations/compiler/integers/u8/gt.out +++ b/tests/expectations/compiler/integers/u8/gt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "33459897e4a71fffb71fcfaead0d591ef888473dd61c5c1b83465aa7f99c7f69", dce_ast = "bc1b26020572bdbf518fbfded66b75e2f4df0b92051fc66538b6586c19b0c9fe", destructured_ast = "bc1b26020572bdbf518fbfded66b75e2f4df0b92051fc66538b6586c19b0c9fe", errors = "", flattened_ast = "a8aed6d7d6ebd92844e024f33600d95320c22166f0275b0c9e181d0a6ea11758", initial_ast = "fb2758cc8f6c7f919b14cb9e58ace37e347b7fdb90be187a0408fc122199fb60", initial_symbol_table = "cc55846945599771446b5f9d775fcdbb516ff7332077826a0b39b01465cd0e68", inlined_ast = "bc1b26020572bdbf518fbfded66b75e2f4df0b92051fc66538b6586c19b0c9fe", ssa_ast = "172c125113dd9fc2cc2d24e2d42b7796e4ad752190df6b235907c4c1c590d26a", type_checked_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", unrolled_ast = "fb2758cc8f6c7f919b14cb9e58ace37e347b7fdb90be187a0408fc122199fb60", unrolled_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as boolean.private; + gt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "bc1b26020572bdbf518fbfded66b75e2f4df0b92051fc66538b6586c19b0c9fe", destructured_ast = "bc1b26020572bdbf518fbfded66b75e2f4df0b92051fc66538b6586c19b0c9fe", errors = "", flattened_ast = "a8aed6d7d6ebd92844e024f33600d95320c22166f0275b0c9e181d0a6ea11758", initial_ast = "fb2758cc8f6c7f919b14cb9e58ace37e347b7fdb90be187a0408fc122199fb60", initial_symbol_table = "cc55846945599771446b5f9d775fcdbb516ff7332077826a0b39b01465cd0e68", inlined_ast = "bc1b26020572bdbf518fbfded66b75e2f4df0b92051fc66538b6586c19b0c9fe", ssa_ast = "172c125113dd9fc2cc2d24e2d42b7796e4ad752190df6b235907c4c1c590d26a", type_checked_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", unrolled_ast = "fb2758cc8f6c7f919b14cb9e58ace37e347b7fdb90be187a0408fc122199fb60", unrolled_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/hex_and_bin.out b/tests/expectations/compiler/integers/u8/hex_and_bin.out index d1d82a500d..21ffaf1cde 100644 --- a/tests/expectations/compiler/integers/u8/hex_and_bin.out +++ b/tests/expectations/compiler/integers/u8/hex_and_bin.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4087f327f8f99a0514961355a1a8514c5983a95570949196a5280d316be23918", dce_ast = "d13fe0de2e45342eb60610bc55821b0dc9f5d3786c3e503891a034544dd3468f", destructured_ast = "d13fe0de2e45342eb60610bc55821b0dc9f5d3786c3e503891a034544dd3468f", errors = "", flattened_ast = "a2136e43cf3e1235a40387555ace7ca559b7923a5b809260ccd255ee7f8e33d2", initial_ast = "b8cc190f7b48840e1fbfc2651bbb60295885720fdf727e3234ba79d638ce9d06", initial_symbol_table = "1cdb916e552080097fc5fac0315c0c26ad6f8e64298d5f2c5dec31e3195406ce", inlined_ast = "d13fe0de2e45342eb60610bc55821b0dc9f5d3786c3e503891a034544dd3468f", ssa_ast = "c15ee60086ba634ffb14afce5bc0378bf33a198ca56ebadf0a9380d7ee895795", type_checked_symbol_table = "e026cff131c6f99e5a5ad44e91c6632cc152a7b033f95a8d0db4e11e542c60ec", unrolled_ast = "b8cc190f7b48840e1fbfc2651bbb60295885720fdf727e3234ba79d638ce9d06", unrolled_symbol_table = "e026cff131c6f99e5a5ad44e91c6632cc152a7b033f95a8d0db4e11e542c60ec", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as u8.private; + is.eq r0 127u8 into r3; + is.eq r1 27u8 into r4; + and r3 r4 into r5; + is.eq r2 21u8 into r6; + and r5 r6 into r7; + output r7 as boolean.private; +""", dce_ast = "d13fe0de2e45342eb60610bc55821b0dc9f5d3786c3e503891a034544dd3468f", destructured_ast = "d13fe0de2e45342eb60610bc55821b0dc9f5d3786c3e503891a034544dd3468f", errors = "", flattened_ast = "a2136e43cf3e1235a40387555ace7ca559b7923a5b809260ccd255ee7f8e33d2", initial_ast = "b8cc190f7b48840e1fbfc2651bbb60295885720fdf727e3234ba79d638ce9d06", initial_symbol_table = "1cdb916e552080097fc5fac0315c0c26ad6f8e64298d5f2c5dec31e3195406ce", inlined_ast = "d13fe0de2e45342eb60610bc55821b0dc9f5d3786c3e503891a034544dd3468f", ssa_ast = "c15ee60086ba634ffb14afce5bc0378bf33a198ca56ebadf0a9380d7ee895795", type_checked_symbol_table = "e026cff131c6f99e5a5ad44e91c6632cc152a7b033f95a8d0db4e11e542c60ec", unrolled_ast = "b8cc190f7b48840e1fbfc2651bbb60295885720fdf727e3234ba79d638ce9d06", unrolled_symbol_table = "e026cff131c6f99e5a5ad44e91c6632cc152a7b033f95a8d0db4e11e542c60ec", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/le.out b/tests/expectations/compiler/integers/u8/le.out index 900eab9bf4..3c8ff24497 100644 --- a/tests/expectations/compiler/integers/u8/le.out +++ b/tests/expectations/compiler/integers/u8/le.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4e59b997e48f430720d435483ba0e45c45df4be732f87661f59f7f6b87331c30", dce_ast = "8b966c6b600900ed36d4ca25106f9304e2e3386d0eb285199bed89b9a8369d49", destructured_ast = "8b966c6b600900ed36d4ca25106f9304e2e3386d0eb285199bed89b9a8369d49", errors = "", flattened_ast = "308db0e049dabca214fd07a84b47b12513b5e0f4ecd709bb0f489a4c21beb6bc", initial_ast = "40fd0b9fee40db3931426f77ba6151140b10e04642564781568a1ad8c5ca2b2f", initial_symbol_table = "cc55846945599771446b5f9d775fcdbb516ff7332077826a0b39b01465cd0e68", inlined_ast = "8b966c6b600900ed36d4ca25106f9304e2e3386d0eb285199bed89b9a8369d49", ssa_ast = "bc8eb1e49a60a35068ca83212e377b9f036d21e33be2afb400c985c5d725e29a", type_checked_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", unrolled_ast = "40fd0b9fee40db3931426f77ba6151140b10e04642564781568a1ad8c5ca2b2f", unrolled_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as boolean.private; + lte r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "8b966c6b600900ed36d4ca25106f9304e2e3386d0eb285199bed89b9a8369d49", destructured_ast = "8b966c6b600900ed36d4ca25106f9304e2e3386d0eb285199bed89b9a8369d49", errors = "", flattened_ast = "308db0e049dabca214fd07a84b47b12513b5e0f4ecd709bb0f489a4c21beb6bc", initial_ast = "40fd0b9fee40db3931426f77ba6151140b10e04642564781568a1ad8c5ca2b2f", initial_symbol_table = "cc55846945599771446b5f9d775fcdbb516ff7332077826a0b39b01465cd0e68", inlined_ast = "8b966c6b600900ed36d4ca25106f9304e2e3386d0eb285199bed89b9a8369d49", ssa_ast = "bc8eb1e49a60a35068ca83212e377b9f036d21e33be2afb400c985c5d725e29a", type_checked_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", unrolled_ast = "40fd0b9fee40db3931426f77ba6151140b10e04642564781568a1ad8c5ca2b2f", unrolled_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/lt.out b/tests/expectations/compiler/integers/u8/lt.out index d200c75a73..45045d01f4 100644 --- a/tests/expectations/compiler/integers/u8/lt.out +++ b/tests/expectations/compiler/integers/u8/lt.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "a785c0d8cfd6988cde7a87a968cf8aa87ac982a4c4aef53474348c4e0525d714", dce_ast = "19d1f616371dd930005d037dcde64bdcd86184a2072525dfcf3f18a5cbb96acd", destructured_ast = "19d1f616371dd930005d037dcde64bdcd86184a2072525dfcf3f18a5cbb96acd", errors = "", flattened_ast = "309de39adb3e4f3a44fb80f5b78ebf52ee323138ad3ade323b6fbd2268e2fddd", initial_ast = "de77df23c9d30e71d986f8104d6b6e6b0bbd9b76ff5a10f291f3a3d5dbb6abbf", initial_symbol_table = "cc55846945599771446b5f9d775fcdbb516ff7332077826a0b39b01465cd0e68", inlined_ast = "19d1f616371dd930005d037dcde64bdcd86184a2072525dfcf3f18a5cbb96acd", ssa_ast = "0643a094ef54eb43c0f81b2662953dc25080c26c3dc7e0a0673a398c2a0956d7", type_checked_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", unrolled_ast = "de77df23c9d30e71d986f8104d6b6e6b0bbd9b76ff5a10f291f3a3d5dbb6abbf", unrolled_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as boolean.private; + lt r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "19d1f616371dd930005d037dcde64bdcd86184a2072525dfcf3f18a5cbb96acd", destructured_ast = "19d1f616371dd930005d037dcde64bdcd86184a2072525dfcf3f18a5cbb96acd", errors = "", flattened_ast = "309de39adb3e4f3a44fb80f5b78ebf52ee323138ad3ade323b6fbd2268e2fddd", initial_ast = "de77df23c9d30e71d986f8104d6b6e6b0bbd9b76ff5a10f291f3a3d5dbb6abbf", initial_symbol_table = "cc55846945599771446b5f9d775fcdbb516ff7332077826a0b39b01465cd0e68", inlined_ast = "19d1f616371dd930005d037dcde64bdcd86184a2072525dfcf3f18a5cbb96acd", ssa_ast = "0643a094ef54eb43c0f81b2662953dc25080c26c3dc7e0a0673a398c2a0956d7", type_checked_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", unrolled_ast = "de77df23c9d30e71d986f8104d6b6e6b0bbd9b76ff5a10f291f3a3d5dbb6abbf", unrolled_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/max.out b/tests/expectations/compiler/integers/u8/max.out index 685ba34197..6b9aaa528d 100644 --- a/tests/expectations/compiler/integers/u8/max.out +++ b/tests/expectations/compiler/integers/u8/max.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69", dce_ast = "0c7cb8dbac921c14c7385c82a94c1a455955b24d2ff05266ecc377271e33d840", destructured_ast = "f2d92eba1c890168175bb4715cde6febb6ad602b8cb605405c9f658f85bdb9ee", errors = "", flattened_ast = "653e3db30ecb3b12429d834b689381bc0a12ac396efc0db0fac5f89ceef3a1a6", initial_ast = "c3508c18ae8d14551c16d04598a3a7d99e1233ba889445cf66f577c0fddb7ee1", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "f2d92eba1c890168175bb4715cde6febb6ad602b8cb605405c9f658f85bdb9ee", ssa_ast = "36f8c6c4f5ed46d53f7eedc714911c750325d675bb9829c0bb5dd15452b7e4a4", type_checked_symbol_table = "ad2b49d351b85fde3bc41929dd95833b55f502b8e4e959410f87d00bc8c7ddc2", unrolled_ast = "c3508c18ae8d14551c16d04598a3a7d99e1233ba889445cf66f577c0fddb7ee1", unrolled_symbol_table = "ad2b49d351b85fde3bc41929dd95833b55f502b8e4e959410f87d00bc8c7ddc2", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + is.eq r0 true into r1; + output r1 as boolean.private; +""", dce_ast = "0c7cb8dbac921c14c7385c82a94c1a455955b24d2ff05266ecc377271e33d840", destructured_ast = "f2d92eba1c890168175bb4715cde6febb6ad602b8cb605405c9f658f85bdb9ee", errors = "", flattened_ast = "653e3db30ecb3b12429d834b689381bc0a12ac396efc0db0fac5f89ceef3a1a6", initial_ast = "c3508c18ae8d14551c16d04598a3a7d99e1233ba889445cf66f577c0fddb7ee1", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "f2d92eba1c890168175bb4715cde6febb6ad602b8cb605405c9f658f85bdb9ee", ssa_ast = "36f8c6c4f5ed46d53f7eedc714911c750325d675bb9829c0bb5dd15452b7e4a4", type_checked_symbol_table = "ad2b49d351b85fde3bc41929dd95833b55f502b8e4e959410f87d00bc8c7ddc2", unrolled_ast = "c3508c18ae8d14551c16d04598a3a7d99e1233ba889445cf66f577c0fddb7ee1", unrolled_symbol_table = "ad2b49d351b85fde3bc41929dd95833b55f502b8e4e959410f87d00bc8c7ddc2", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/min.out b/tests/expectations/compiler/integers/u8/min.out index cd46ac6364..98cba8274c 100644 --- a/tests/expectations/compiler/integers/u8/min.out +++ b/tests/expectations/compiler/integers/u8/min.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69", dce_ast = "0bc8cae6ca98dfaf17462949c63c9f345e408eb984fdffceb4d0dab8b42fd3a4", destructured_ast = "294595925805ebd757cfc09a42ae7da1c89999f6282f9df42e7a36344baf58e7", errors = "", flattened_ast = "da76c303feaf9ad401296149667476a341fa65903303afd30f5716865705f66f", initial_ast = "a018e426bc5cab366221fa414eab493659580ad2e921f995a672e9d4da428a65", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "294595925805ebd757cfc09a42ae7da1c89999f6282f9df42e7a36344baf58e7", ssa_ast = "d54853e18230d2740892c0083a97cc565308e1171e3500c89483b7ccd62a3c7e", type_checked_symbol_table = "ad2b49d351b85fde3bc41929dd95833b55f502b8e4e959410f87d00bc8c7ddc2", unrolled_ast = "a018e426bc5cab366221fa414eab493659580ad2e921f995a672e9d4da428a65", unrolled_symbol_table = "ad2b49d351b85fde3bc41929dd95833b55f502b8e4e959410f87d00bc8c7ddc2", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + is.eq r0 true into r1; + output r1 as boolean.private; +""", dce_ast = "0bc8cae6ca98dfaf17462949c63c9f345e408eb984fdffceb4d0dab8b42fd3a4", destructured_ast = "294595925805ebd757cfc09a42ae7da1c89999f6282f9df42e7a36344baf58e7", errors = "", flattened_ast = "da76c303feaf9ad401296149667476a341fa65903303afd30f5716865705f66f", initial_ast = "a018e426bc5cab366221fa414eab493659580ad2e921f995a672e9d4da428a65", initial_symbol_table = "5c8eeb1dd1d925fcdaecdea92ba33ee89bf509985db403cac215247ed7d92df3", inlined_ast = "294595925805ebd757cfc09a42ae7da1c89999f6282f9df42e7a36344baf58e7", ssa_ast = "d54853e18230d2740892c0083a97cc565308e1171e3500c89483b7ccd62a3c7e", type_checked_symbol_table = "ad2b49d351b85fde3bc41929dd95833b55f502b8e4e959410f87d00bc8c7ddc2", unrolled_ast = "a018e426bc5cab366221fa414eab493659580ad2e921f995a672e9d4da428a65", unrolled_symbol_table = "ad2b49d351b85fde3bc41929dd95833b55f502b8e4e959410f87d00bc8c7ddc2", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/mul.out b/tests/expectations/compiler/integers/u8/mul.out index d1ae8dbc40..bf7400faa7 100644 --- a/tests/expectations/compiler/integers/u8/mul.out +++ b/tests/expectations/compiler/integers/u8/mul.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "937e45d26a72a2f9c73609facb8351023ac2bd00390e289501ad3729b65adbb4", dce_ast = "f53c5a238654a4f97eb5b55a3586d705cc9d560a31fb9e19c64effa627ede502", destructured_ast = "f53c5a238654a4f97eb5b55a3586d705cc9d560a31fb9e19c64effa627ede502", errors = "", flattened_ast = "eca9c08535955193f1c019bf8a25e6bf86a97bc80905f7c14cf40cbc81f42721", initial_ast = "ed43019e69455cd6b28b6a757d2a70647da59bab4080a8ebf176bb4624cd656f", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "f53c5a238654a4f97eb5b55a3586d705cc9d560a31fb9e19c64effa627ede502", ssa_ast = "4da2f93656d5412136e06f5e3ed8a983de027b440b5c9e5a1ee863d433b80ec8", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "ed43019e69455cd6b28b6a757d2a70647da59bab4080a8ebf176bb4624cd656f", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as u8.private; + mul r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "f53c5a238654a4f97eb5b55a3586d705cc9d560a31fb9e19c64effa627ede502", destructured_ast = "f53c5a238654a4f97eb5b55a3586d705cc9d560a31fb9e19c64effa627ede502", errors = "", flattened_ast = "eca9c08535955193f1c019bf8a25e6bf86a97bc80905f7c14cf40cbc81f42721", initial_ast = "ed43019e69455cd6b28b6a757d2a70647da59bab4080a8ebf176bb4624cd656f", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "f53c5a238654a4f97eb5b55a3586d705cc9d560a31fb9e19c64effa627ede502", ssa_ast = "4da2f93656d5412136e06f5e3ed8a983de027b440b5c9e5a1ee863d433b80ec8", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "ed43019e69455cd6b28b6a757d2a70647da59bab4080a8ebf176bb4624cd656f", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/ne.out b/tests/expectations/compiler/integers/u8/ne.out index 07eefa5a54..13eb1e077c 100644 --- a/tests/expectations/compiler/integers/u8/ne.out +++ b/tests/expectations/compiler/integers/u8/ne.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "675110e460b707b82a70a488ae58b8d118d946909f825c9afd6121254e676c03", dce_ast = "9100bf8d876cf667a47e215a4829335f218df64a34cdb00c12bc24376ea87022", destructured_ast = "9100bf8d876cf667a47e215a4829335f218df64a34cdb00c12bc24376ea87022", errors = "", flattened_ast = "24321e650b55978a239f9bb25607ef6c1355a6e62158f142577041df17dc64da", initial_ast = "525b4f5cbbc73233778821608fb9b9814b0b5353a60da19674bcd54f6ec5b556", initial_symbol_table = "cc55846945599771446b5f9d775fcdbb516ff7332077826a0b39b01465cd0e68", inlined_ast = "9100bf8d876cf667a47e215a4829335f218df64a34cdb00c12bc24376ea87022", ssa_ast = "2c2e46313fd92c5d16efe070c79bc95ea949995fffc2cead3770dd23b45f3819", type_checked_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", unrolled_ast = "525b4f5cbbc73233778821608fb9b9814b0b5353a60da19674bcd54f6ec5b556", unrolled_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as boolean.private; + is.neq r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "9100bf8d876cf667a47e215a4829335f218df64a34cdb00c12bc24376ea87022", destructured_ast = "9100bf8d876cf667a47e215a4829335f218df64a34cdb00c12bc24376ea87022", errors = "", flattened_ast = "24321e650b55978a239f9bb25607ef6c1355a6e62158f142577041df17dc64da", initial_ast = "525b4f5cbbc73233778821608fb9b9814b0b5353a60da19674bcd54f6ec5b556", initial_symbol_table = "cc55846945599771446b5f9d775fcdbb516ff7332077826a0b39b01465cd0e68", inlined_ast = "9100bf8d876cf667a47e215a4829335f218df64a34cdb00c12bc24376ea87022", ssa_ast = "2c2e46313fd92c5d16efe070c79bc95ea949995fffc2cead3770dd23b45f3819", type_checked_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", unrolled_ast = "525b4f5cbbc73233778821608fb9b9814b0b5353a60da19674bcd54f6ec5b556", unrolled_symbol_table = "a3bad889932cf3f215502129c78064e237f358979a5da7cccd3ed04329ab43d9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/operator_methods.out b/tests/expectations/compiler/integers/u8/operator_methods.out index cf590d0f1c..84244ab999 100644 --- a/tests/expectations/compiler/integers/u8/operator_methods.out +++ b/tests/expectations/compiler/integers/u8/operator_methods.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "525aa7ee628bc18ddc77b4d2c0f21cc66858ecbdd517233862c7ba491158c69f", dce_ast = "2a0caf9aaf58b071308418fc46f96b1393f7646ca329bc6676e860357699ce3b", destructured_ast = "477abaf1bee32aa6df5740ab665a24eb4d1acccedf3dcab8eda0d0678558f636", errors = "", flattened_ast = "93eabab2793b715e24f4d1f83e5adaadeb1ed0eaf6f43f0425d5f96f21a11eea", initial_ast = "e8c1ffed1513ed588bad03e97e624a52cae280d87167bf79d62569423c72180e", initial_symbol_table = "6f4c9f96c16df23aea5368162160fd3c931c128c3afe6b8c02097da023c54f08", inlined_ast = "477abaf1bee32aa6df5740ab665a24eb4d1acccedf3dcab8eda0d0678558f636", ssa_ast = "d713cc8f14e36e0134521ffd687dfd398af38643efb5c7205bad1974a20605f5", type_checked_symbol_table = "949c4f71dbc9556a07c9a4ef06a8217d456c5a689913511d4b733ab286321542", unrolled_ast = "e8c1ffed1513ed588bad03e97e624a52cae280d87167bf79d62569423c72180e", unrolled_symbol_table = "949c4f71dbc9556a07c9a4ef06a8217d456c5a689913511d4b733ab286321542", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + is.eq r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "2a0caf9aaf58b071308418fc46f96b1393f7646ca329bc6676e860357699ce3b", destructured_ast = "477abaf1bee32aa6df5740ab665a24eb4d1acccedf3dcab8eda0d0678558f636", errors = "", flattened_ast = "93eabab2793b715e24f4d1f83e5adaadeb1ed0eaf6f43f0425d5f96f21a11eea", initial_ast = "e8c1ffed1513ed588bad03e97e624a52cae280d87167bf79d62569423c72180e", initial_symbol_table = "6f4c9f96c16df23aea5368162160fd3c931c128c3afe6b8c02097da023c54f08", inlined_ast = "477abaf1bee32aa6df5740ab665a24eb4d1acccedf3dcab8eda0d0678558f636", ssa_ast = "d713cc8f14e36e0134521ffd687dfd398af38643efb5c7205bad1974a20605f5", type_checked_symbol_table = "949c4f71dbc9556a07c9a4ef06a8217d456c5a689913511d4b733ab286321542", unrolled_ast = "e8c1ffed1513ed588bad03e97e624a52cae280d87167bf79d62569423c72180e", unrolled_symbol_table = "949c4f71dbc9556a07c9a4ef06a8217d456c5a689913511d4b733ab286321542", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/or.out b/tests/expectations/compiler/integers/u8/or.out index 44a4ab2cca..c3f961e852 100644 --- a/tests/expectations/compiler/integers/u8/or.out +++ b/tests/expectations/compiler/integers/u8/or.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "dc659eaf16fad4225b86c68e2986ec498a85bfa9f34ad54a538119692169d54d", dce_ast = "68e5ab9b1d9b3d32726794d7833f73188cece1b1135edb294df1e12b3b69cab7", destructured_ast = "68e5ab9b1d9b3d32726794d7833f73188cece1b1135edb294df1e12b3b69cab7", errors = "", flattened_ast = "926cb2a9223bb8a17394382106ee92296a60bd306b9fe920bae41ed1bc4cd075", initial_ast = "1a7f6c1c3f98662d3b6a3fd089fd2f6b20d34abdfbec1a49643472cedef0d39a", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "68e5ab9b1d9b3d32726794d7833f73188cece1b1135edb294df1e12b3b69cab7", ssa_ast = "adb1a67facd1eb1741d2f626bdca3da90e2e2ed221fc1b635bb7ab69cb4e023b", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "1a7f6c1c3f98662d3b6a3fd089fd2f6b20d34abdfbec1a49643472cedef0d39a", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as u8.private; + or r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "68e5ab9b1d9b3d32726794d7833f73188cece1b1135edb294df1e12b3b69cab7", destructured_ast = "68e5ab9b1d9b3d32726794d7833f73188cece1b1135edb294df1e12b3b69cab7", errors = "", flattened_ast = "926cb2a9223bb8a17394382106ee92296a60bd306b9fe920bae41ed1bc4cd075", initial_ast = "1a7f6c1c3f98662d3b6a3fd089fd2f6b20d34abdfbec1a49643472cedef0d39a", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "68e5ab9b1d9b3d32726794d7833f73188cece1b1135edb294df1e12b3b69cab7", ssa_ast = "adb1a67facd1eb1741d2f626bdca3da90e2e2ed221fc1b635bb7ab69cb4e023b", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "1a7f6c1c3f98662d3b6a3fd089fd2f6b20d34abdfbec1a49643472cedef0d39a", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/pow.out b/tests/expectations/compiler/integers/u8/pow.out index a3c8b32a56..1f445aa651 100644 --- a/tests/expectations/compiler/integers/u8/pow.out +++ b/tests/expectations/compiler/integers/u8/pow.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "6f39595f71ec6b6a1a2c622b9c18785cb99323fe027c8cd95d4f49a20b875f39", dce_ast = "62f0c6a6acd7189238bf3e22c4225d04f2880db115d9ebdab8b9b893b354965d", destructured_ast = "62f0c6a6acd7189238bf3e22c4225d04f2880db115d9ebdab8b9b893b354965d", errors = "", flattened_ast = "3dcc11151452fca7564b8302f27e9aec0e7345e3a90a54f2d137dd82369368ba", initial_ast = "f64c57645544504908fd420401e6de4078f365ef88735d56efd731709703000c", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "62f0c6a6acd7189238bf3e22c4225d04f2880db115d9ebdab8b9b893b354965d", ssa_ast = "d10b4e91b0812ee3dc4ee539b3df719daabf4ed787cd44b88035a478d8d975e2", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "f64c57645544504908fd420401e6de4078f365ef88735d56efd731709703000c", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as u8.private; + pow r0 r1 into r3; + pow r0 2u16 into r4; + is.eq r3 r4 into r5; + pow r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "62f0c6a6acd7189238bf3e22c4225d04f2880db115d9ebdab8b9b893b354965d", destructured_ast = "62f0c6a6acd7189238bf3e22c4225d04f2880db115d9ebdab8b9b893b354965d", errors = "", flattened_ast = "3dcc11151452fca7564b8302f27e9aec0e7345e3a90a54f2d137dd82369368ba", initial_ast = "f64c57645544504908fd420401e6de4078f365ef88735d56efd731709703000c", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "62f0c6a6acd7189238bf3e22c4225d04f2880db115d9ebdab8b9b893b354965d", ssa_ast = "d10b4e91b0812ee3dc4ee539b3df719daabf4ed787cd44b88035a478d8d975e2", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "f64c57645544504908fd420401e6de4078f365ef88735d56efd731709703000c", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/rem.out b/tests/expectations/compiler/integers/u8/rem.out index 86bdbce07f..15228f6aff 100644 --- a/tests/expectations/compiler/integers/u8/rem.out +++ b/tests/expectations/compiler/integers/u8/rem.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "eb0766ef7942b5b5f50c4778d1d82479583761acb0d4e903ca3b4998e9036ce8", dce_ast = "010d8bd5cba0069cdceb16f85cc6cd0014cf33f7c3e1b44d135977be6985156a", destructured_ast = "010d8bd5cba0069cdceb16f85cc6cd0014cf33f7c3e1b44d135977be6985156a", errors = "", flattened_ast = "d21f0e6859f7df648546a64f092fa55ea8de0bd34c384c94482c9505113805bc", initial_ast = "d880d339baa9129adc8ac81aab9288cc026d355e88d06cce937a1f8f29d70789", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "010d8bd5cba0069cdceb16f85cc6cd0014cf33f7c3e1b44d135977be6985156a", ssa_ast = "a86b4de1b11faae94992887f1354892875a970a0f516dfd52a81fcb2d025dc30", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "d880d339baa9129adc8ac81aab9288cc026d355e88d06cce937a1f8f29d70789", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as u8.private; + rem r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "010d8bd5cba0069cdceb16f85cc6cd0014cf33f7c3e1b44d135977be6985156a", destructured_ast = "010d8bd5cba0069cdceb16f85cc6cd0014cf33f7c3e1b44d135977be6985156a", errors = "", flattened_ast = "d21f0e6859f7df648546a64f092fa55ea8de0bd34c384c94482c9505113805bc", initial_ast = "d880d339baa9129adc8ac81aab9288cc026d355e88d06cce937a1f8f29d70789", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "010d8bd5cba0069cdceb16f85cc6cd0014cf33f7c3e1b44d135977be6985156a", ssa_ast = "a86b4de1b11faae94992887f1354892875a970a0f516dfd52a81fcb2d025dc30", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "d880d339baa9129adc8ac81aab9288cc026d355e88d06cce937a1f8f29d70789", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/shl.out b/tests/expectations/compiler/integers/u8/shl.out index 010f988b8e..e632cec4d7 100644 --- a/tests/expectations/compiler/integers/u8/shl.out +++ b/tests/expectations/compiler/integers/u8/shl.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "c080998e39be58c165d147352fed55e49828e93d487976c27e4e6e160736f4f6", dce_ast = "c4f4f089a4c8a65a9357543124cfe5d343f4a625b82f76d64e05ddf88d0eca1d", destructured_ast = "c4f4f089a4c8a65a9357543124cfe5d343f4a625b82f76d64e05ddf88d0eca1d", errors = "", flattened_ast = "e2769117b43b0657848f5d87255237bd08416a906ba4cc70732c88a763348944", initial_ast = "70a3fd65c6782b5b52882740d884944b32ac31377d33cb0bcb9ee3f2f72332ff", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "c4f4f089a4c8a65a9357543124cfe5d343f4a625b82f76d64e05ddf88d0eca1d", ssa_ast = "420c47b231cabf5a72d44876e586b3664e25117d0c0fff2193ea742aad8bf7e3", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "70a3fd65c6782b5b52882740d884944b32ac31377d33cb0bcb9ee3f2f72332ff", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as u8.private; + shl r0 r1 into r3; + shl r0 2u16 into r4; + is.eq r3 r4 into r5; + shl r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "c4f4f089a4c8a65a9357543124cfe5d343f4a625b82f76d64e05ddf88d0eca1d", destructured_ast = "c4f4f089a4c8a65a9357543124cfe5d343f4a625b82f76d64e05ddf88d0eca1d", errors = "", flattened_ast = "e2769117b43b0657848f5d87255237bd08416a906ba4cc70732c88a763348944", initial_ast = "70a3fd65c6782b5b52882740d884944b32ac31377d33cb0bcb9ee3f2f72332ff", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "c4f4f089a4c8a65a9357543124cfe5d343f4a625b82f76d64e05ddf88d0eca1d", ssa_ast = "420c47b231cabf5a72d44876e586b3664e25117d0c0fff2193ea742aad8bf7e3", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "70a3fd65c6782b5b52882740d884944b32ac31377d33cb0bcb9ee3f2f72332ff", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/shr.out b/tests/expectations/compiler/integers/u8/shr.out index 62802eee0d..fd80e00159 100644 --- a/tests/expectations/compiler/integers/u8/shr.out +++ b/tests/expectations/compiler/integers/u8/shr.out @@ -1,3 +1,19 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "115a3954fe97b0bf052859b3e2060732a5988a738e33e38fa9fc6124009a3df1", dce_ast = "2418682bc653703e0b3334345ef7125030779887b9efbfd962009c53bb19c430", destructured_ast = "2418682bc653703e0b3334345ef7125030779887b9efbfd962009c53bb19c430", errors = "", flattened_ast = "3d044accb3b67b38bbeb2c309efdbe30409fe00253d05f1b5746ab4d7a1d184e", initial_ast = "5ccb98ce2533409a6733bbcfd21a5358af468694bcca3db568aeac69864ef688", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "2418682bc653703e0b3334345ef7125030779887b9efbfd962009c53bb19c430", ssa_ast = "d445dfdd82c5b59b35cef5fab2dce4c866de20ba6842d3a0ff80d8976401af3e", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "5ccb98ce2533409a6733bbcfd21a5358af468694bcca3db568aeac69864ef688", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as u8.private; + shr r0 r1 into r3; + shr r0 2u16 into r4; + is.eq r3 r4 into r5; + shr r0 2u32 into r6; + is.eq r6 r2 into r7; + and r5 r7 into r8; + output r8 as boolean.private; +""", dce_ast = "2418682bc653703e0b3334345ef7125030779887b9efbfd962009c53bb19c430", destructured_ast = "2418682bc653703e0b3334345ef7125030779887b9efbfd962009c53bb19c430", errors = "", flattened_ast = "3d044accb3b67b38bbeb2c309efdbe30409fe00253d05f1b5746ab4d7a1d184e", initial_ast = "5ccb98ce2533409a6733bbcfd21a5358af468694bcca3db568aeac69864ef688", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "2418682bc653703e0b3334345ef7125030779887b9efbfd962009c53bb19c430", ssa_ast = "d445dfdd82c5b59b35cef5fab2dce4c866de20ba6842d3a0ff80d8976401af3e", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "5ccb98ce2533409a6733bbcfd21a5358af468694bcca3db568aeac69864ef688", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/sub.out b/tests/expectations/compiler/integers/u8/sub.out index b7eb8fe9eb..2329016f6f 100644 --- a/tests/expectations/compiler/integers/u8/sub.out +++ b/tests/expectations/compiler/integers/u8/sub.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "000488241130473cec7bf53df1dc0bdab4ae452ab173fe563a9b9311c73f35fe", dce_ast = "2c3833e2c2e834d3e6bfe80115566685e4302597df4359b21d41ed62d9edbf83", destructured_ast = "2c3833e2c2e834d3e6bfe80115566685e4302597df4359b21d41ed62d9edbf83", errors = "", flattened_ast = "fbf957bd45a50337d49b9f70e2637587d3b1eea5681d94e948f9c6edef0bf8cc", initial_ast = "824e47c11cf0eb055b8f2533e6988c286f937322b534d121a7c45e376d69e1dc", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "2c3833e2c2e834d3e6bfe80115566685e4302597df4359b21d41ed62d9edbf83", ssa_ast = "d573d5af3b5bb1081b8c8406574b2f752f3526d483cefa6bfc2bd5b1513fe782", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "824e47c11cf0eb055b8f2533e6988c286f937322b534d121a7c45e376d69e1dc", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + input r2 as u8.private; + sub r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "2c3833e2c2e834d3e6bfe80115566685e4302597df4359b21d41ed62d9edbf83", destructured_ast = "2c3833e2c2e834d3e6bfe80115566685e4302597df4359b21d41ed62d9edbf83", errors = "", flattened_ast = "fbf957bd45a50337d49b9f70e2637587d3b1eea5681d94e948f9c6edef0bf8cc", initial_ast = "824e47c11cf0eb055b8f2533e6988c286f937322b534d121a7c45e376d69e1dc", initial_symbol_table = "f88925277e24e4f6b673869c481feb4d742933c80edf1c56952732a2bb411039", inlined_ast = "2c3833e2c2e834d3e6bfe80115566685e4302597df4359b21d41ed62d9edbf83", ssa_ast = "d573d5af3b5bb1081b8c8406574b2f752f3526d483cefa6bfc2bd5b1513fe782", type_checked_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", unrolled_ast = "824e47c11cf0eb055b8f2533e6988c286f937322b534d121a7c45e376d69e1dc", unrolled_symbol_table = "a34529dcb7557634cb025c4df9ff5fc5fc6820bb8430d5135ca6ca42d0412be3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/ternary.out b/tests/expectations/compiler/integers/u8/ternary.out index ef70eb37f1..cf758b97c8 100644 --- a/tests/expectations/compiler/integers/u8/ternary.out +++ b/tests/expectations/compiler/integers/u8/ternary.out @@ -1,3 +1,16 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "070a1a31af23c4436a8adf74befb9bae19c60a73da4ca1b8c295213c0505b1cb", dce_ast = "f858ae95f2d44ddf1bc90575ef71763b604f4033acdecf7a806d6ab960a62836", destructured_ast = "f858ae95f2d44ddf1bc90575ef71763b604f4033acdecf7a806d6ab960a62836", errors = "", flattened_ast = "2010515a7bc92204dc4454a17ffd5cb98aa60a32631855fa6bf4cdaae049678a", initial_ast = "9d29a4aab227ba40a50d474f4b5eda0eca3522da3a9d29bba53a93b7f219e5d4", initial_symbol_table = "67e1ac58bc6d8ce06e8ec25c0e8d9a7e221c41a0415e4d5f9309d4f33c0091f9", inlined_ast = "f858ae95f2d44ddf1bc90575ef71763b604f4033acdecf7a806d6ab960a62836", ssa_ast = "ad89269d5ffddeee6dbd3b063c49943c4af977199276d6309421c7412a01ab9e", type_checked_symbol_table = "11f0a336bd276d3c594a28c8cc95acd6a0f2bd671d24f8a1528f6f1787ccbdc1", unrolled_ast = "9d29a4aab227ba40a50d474f4b5eda0eca3522da3a9d29bba53a93b7f219e5d4", unrolled_symbol_table = "11f0a336bd276d3c594a28c8cc95acd6a0f2bd671d24f8a1528f6f1787ccbdc1", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + input r1 as u8.private; + input r2 as u8.private; + input r3 as u8.private; + ternary r0 r1 r2 into r4; + is.eq r4 r3 into r5; + output r5 as boolean.private; +""", dce_ast = "f858ae95f2d44ddf1bc90575ef71763b604f4033acdecf7a806d6ab960a62836", destructured_ast = "f858ae95f2d44ddf1bc90575ef71763b604f4033acdecf7a806d6ab960a62836", errors = "", flattened_ast = "2010515a7bc92204dc4454a17ffd5cb98aa60a32631855fa6bf4cdaae049678a", initial_ast = "9d29a4aab227ba40a50d474f4b5eda0eca3522da3a9d29bba53a93b7f219e5d4", initial_symbol_table = "67e1ac58bc6d8ce06e8ec25c0e8d9a7e221c41a0415e4d5f9309d4f33c0091f9", inlined_ast = "f858ae95f2d44ddf1bc90575ef71763b604f4033acdecf7a806d6ab960a62836", ssa_ast = "ad89269d5ffddeee6dbd3b063c49943c4af977199276d6309421c7412a01ab9e", type_checked_symbol_table = "11f0a336bd276d3c594a28c8cc95acd6a0f2bd671d24f8a1528f6f1787ccbdc1", unrolled_ast = "9d29a4aab227ba40a50d474f4b5eda0eca3522da3a9d29bba53a93b7f219e5d4", unrolled_symbol_table = "11f0a336bd276d3c594a28c8cc95acd6a0f2bd671d24f8a1528f6f1787ccbdc1", warnings = "" }] }]] diff --git a/tests/expectations/compiler/integers/u8/xor.out b/tests/expectations/compiler/integers/u8/xor.out index 02f7f7583e..e40a3b4ccd 100644 --- a/tests/expectations/compiler/integers/u8/xor.out +++ b/tests/expectations/compiler/integers/u8/xor.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "a4c6a3559c050f7e666b347ea9cedd29ef60140d4bee54d145160726d4c31880", dce_ast = "0a7a26f8943031e6d8642a0271ce49322aaf3365035a57641a0b351a88912e77", destructured_ast = "0a7a26f8943031e6d8642a0271ce49322aaf3365035a57641a0b351a88912e77", errors = "", flattened_ast = "d93817a88d0ced580beafd9da4398606d565905977bcb4eea14aa43f87e8dc68", initial_ast = "048fdc23e6dacc97e6e34d92f62a4c2737e55d2dfd780af6d50a01b6e8fd55bc", initial_symbol_table = "9a7335728c9c2916ffec02c5773295c85587186351586b312a2f1fa6e9362477", inlined_ast = "0a7a26f8943031e6d8642a0271ce49322aaf3365035a57641a0b351a88912e77", ssa_ast = "96d4ac73b5fcbbd215ce960babbd01cc756b6eccf290f48ae34ba54c2d9e3906", type_checked_symbol_table = "2033ced3a0f0af84c458d4b1f3860ba90bb73b0cef7ee66e2abae2eb78a3ee96", unrolled_ast = "048fdc23e6dacc97e6e34d92f62a4c2737e55d2dfd780af6d50a01b6e8fd55bc", unrolled_symbol_table = "2033ced3a0f0af84c458d4b1f3860ba90bb73b0cef7ee66e2abae2eb78a3ee96", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + xor r0 r1 into r2; + output r2 as u8.private; +""", dce_ast = "0a7a26f8943031e6d8642a0271ce49322aaf3365035a57641a0b351a88912e77", destructured_ast = "0a7a26f8943031e6d8642a0271ce49322aaf3365035a57641a0b351a88912e77", errors = "", flattened_ast = "d93817a88d0ced580beafd9da4398606d565905977bcb4eea14aa43f87e8dc68", initial_ast = "048fdc23e6dacc97e6e34d92f62a4c2737e55d2dfd780af6d50a01b6e8fd55bc", initial_symbol_table = "9a7335728c9c2916ffec02c5773295c85587186351586b312a2f1fa6e9362477", inlined_ast = "0a7a26f8943031e6d8642a0271ce49322aaf3365035a57641a0b351a88912e77", ssa_ast = "96d4ac73b5fcbbd215ce960babbd01cc756b6eccf290f48ae34ba54c2d9e3906", type_checked_symbol_table = "2033ced3a0f0af84c458d4b1f3860ba90bb73b0cef7ee66e2abae2eb78a3ee96", unrolled_ast = "048fdc23e6dacc97e6e34d92f62a4c2737e55d2dfd780af6d50a01b6e8fd55bc", unrolled_symbol_table = "2033ced3a0f0af84c458d4b1f3860ba90bb73b0cef7ee66e2abae2eb78a3ee96", warnings = "" }] }]] diff --git a/tests/expectations/compiler/mappings/max_mappings.out b/tests/expectations/compiler/mappings/max_mappings.out index 8391f17883..d375a3bf9a 100644 --- a/tests/expectations/compiler/mappings/max_mappings.out +++ b/tests/expectations/compiler/mappings/max_mappings.out @@ -1,3 +1,165 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "510d9a029bd4900c2278ae7b0d1a7a595b0bd6bae6e362e7bf3ca900ef8bdc8d", dce_ast = "28d0ece5659e9c3d8dae3bc9f5e2181730dd52d4d00575553fb62879c2252c4c", destructured_ast = "28d0ece5659e9c3d8dae3bc9f5e2181730dd52d4d00575553fb62879c2252c4c", errors = "", flattened_ast = "ec2b075dc39d494b448c04fd5bbd19e8a7503cfea823da12ee33464d8e67d0a1", initial_ast = "dab4c349df7b581a19b258e289107e94355ce3d848801372999cacc807ddeb7b", initial_symbol_table = "31996f72ace053dcaa3beb2ec60de78fcade8e4047cf92897dfd244f210987f7", inlined_ast = "28d0ece5659e9c3d8dae3bc9f5e2181730dd52d4d00575553fb62879c2252c4c", ssa_ast = "01a69ccd470b48c3d60c9928922b5c2ed2f0fe0405ab3d0ce95ea64d80155027", type_checked_symbol_table = "64be9ee1773f9450cf04c18cbf377102aab7c0aba277e7c036c770ab8614b5f0", unrolled_ast = "dab4c349df7b581a19b258e289107e94355ce3d848801372999cacc807ddeb7b", unrolled_symbol_table = "64be9ee1773f9450cf04c18cbf377102aab7c0aba277e7c036c770ab8614b5f0", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +mapping one: +\tkey as field.public; +\tvalue as field.public; + + +mapping two: +\tkey as field.public; +\tvalue as field.public; + + +mapping three: +\tkey as field.public; +\tvalue as field.public; + + +mapping four: +\tkey as field.public; +\tvalue as field.public; + + +mapping five: +\tkey as field.public; +\tvalue as field.public; + + +mapping six: +\tkey as field.public; +\tvalue as field.public; + + +mapping seven: +\tkey as field.public; +\tvalue as field.public; + + +mapping eight: +\tkey as field.public; +\tvalue as field.public; + + +mapping nine: +\tkey as field.public; +\tvalue as field.public; + + +mapping ten: +\tkey as field.public; +\tvalue as field.public; + + +mapping eleven: +\tkey as field.public; +\tvalue as field.public; + + +mapping twelve: +\tkey as field.public; +\tvalue as field.public; + + +mapping thirteen: +\tkey as field.public; +\tvalue as field.public; + + +mapping fourteen: +\tkey as field.public; +\tvalue as field.public; + + +mapping fifteen: +\tkey as field.public; +\tvalue as field.public; + + +mapping sixteen: +\tkey as field.public; +\tvalue as field.public; + + +mapping seventeen: +\tkey as field.public; +\tvalue as field.public; + + +mapping eighteen: +\tkey as field.public; +\tvalue as field.public; + + +mapping nineteen: +\tkey as field.public; +\tvalue as field.public; + + +mapping twenty: +\tkey as field.public; +\tvalue as field.public; + + +mapping twentyone: +\tkey as field.public; +\tvalue as field.public; + + +mapping twentytwo: +\tkey as field.public; +\tvalue as field.public; + + +mapping twentythree: +\tkey as field.public; +\tvalue as field.public; + + +mapping twentyfour: +\tkey as field.public; +\tvalue as field.public; + + +mapping twentyfive: +\tkey as field.public; +\tvalue as field.public; + + +mapping twentysix: +\tkey as field.public; +\tvalue as field.public; + + +mapping twentyseven: +\tkey as field.public; +\tvalue as field.public; + + +mapping twentyeight: +\tkey as field.public; +\tvalue as field.public; + + +mapping twentynine: +\tkey as field.public; +\tvalue as field.public; + + +mapping thirty: +\tkey as field.public; +\tvalue as field.public; + + +mapping thirtyone: +\tkey as field.public; +\tvalue as field.public; + +function foo: + add 1u8 1u8 into r0; + output r0 as u8.private; +""", dce_ast = "28d0ece5659e9c3d8dae3bc9f5e2181730dd52d4d00575553fb62879c2252c4c", destructured_ast = "28d0ece5659e9c3d8dae3bc9f5e2181730dd52d4d00575553fb62879c2252c4c", errors = "", flattened_ast = "ec2b075dc39d494b448c04fd5bbd19e8a7503cfea823da12ee33464d8e67d0a1", initial_ast = "dab4c349df7b581a19b258e289107e94355ce3d848801372999cacc807ddeb7b", initial_symbol_table = "31996f72ace053dcaa3beb2ec60de78fcade8e4047cf92897dfd244f210987f7", inlined_ast = "28d0ece5659e9c3d8dae3bc9f5e2181730dd52d4d00575553fb62879c2252c4c", ssa_ast = "01a69ccd470b48c3d60c9928922b5c2ed2f0fe0405ab3d0ce95ea64d80155027", type_checked_symbol_table = "64be9ee1773f9450cf04c18cbf377102aab7c0aba277e7c036c770ab8614b5f0", unrolled_ast = "dab4c349df7b581a19b258e289107e94355ce3d848801372999cacc807ddeb7b", unrolled_symbol_table = "64be9ee1773f9450cf04c18cbf377102aab7c0aba277e7c036c770ab8614b5f0", warnings = "" }] }]] diff --git a/tests/expectations/compiler/mappings/read_external_mapping.out b/tests/expectations/compiler/mappings/read_external_mapping.out index 55932b6d63..d72ede349a 100644 --- a/tests/expectations/compiler/mappings/read_external_mapping.out +++ b/tests/expectations/compiler/mappings/read_external_mapping.out @@ -1,6 +1,78 @@ namespace = "Compile" expectation = "Pass" outputs = [[{ compile = [ - { bytecode = "112afa595f98c7a5f0143c80c5f809c04e64da735f5965e21fca7d147470705b", dce_ast = "c45092530d55cad8153a244b85c022808dd2b11d4125d2d7f8ac7c83028fd9cd", destructured_ast = "7b13016d5303ea0ba1a9808c08ae7ffa7bd9433cc1c92bd981407291fca91e5d", errors = "", flattened_ast = "327b3263d448da3866ca22b11e845307bea00b77a5854b3c498b3dab8ce31fd2", initial_ast = "f2aaf1996d382c7333a733e4be37ea93c27a3ec58960af996b9f8645ebd27dcf", initial_symbol_table = "bb82e4231a0fb50294a05c94943d9fcdb45f636c32365684d2d329b895b55955", inlined_ast = "c45092530d55cad8153a244b85c022808dd2b11d4125d2d7f8ac7c83028fd9cd", ssa_ast = "16bbfc985f7b340af00f48be7c87cce9fa9deec2517f8e1e51d0a9b90a54fd52", type_checked_symbol_table = "ec996a9a76525329051b42462f7bfee41738e276636cf34c9a0661d70e7b733c", unrolled_ast = "f2aaf1996d382c7333a733e4be37ea93c27a3ec58960af996b9f8645ebd27dcf", unrolled_symbol_table = "ec996a9a76525329051b42462f7bfee41738e276636cf34c9a0661d70e7b733c", warnings = "" }, - { bytecode = "885815a86613c757d67c00e8c0c4e1530c543364841f05788564c486eaf24bb2", dce_ast = "72e4121a823f91aeeb5b8433f03f07943d174353d55f58a3aae111bc1bab0798", destructured_ast = "26f202a3d6a24f0af49542d0f2c29c635314073b2d52ede163d3ab5e5bcc86fa", errors = "", flattened_ast = "e391d1d2c6731ec8961afe91d8fa94fb9edb091b892ddecfa48ce3f5a6febe8e", initial_ast = "9cc519cc416b2f54ecf753c541196b337f359d42616e4f38b8d9a5a86746de41", initial_symbol_table = "23d4f67793776c110bfd4cc47d98dedde4495edb453c82f6b06718a8cdbc7f6d", inlined_ast = "72e4121a823f91aeeb5b8433f03f07943d174353d55f58a3aae111bc1bab0798", ssa_ast = "012d0c07475a7e03d3898338aa2a91b56d77032978437b17c9337a5001ae5249", type_checked_symbol_table = "f8c6d89c3ff7316d9a2e391c1a0d6c7f3f4ab2f45109b0dbd58b6ff424d854dd", unrolled_ast = "4f5beff4969ba9db8b429435d2a6a6133eed2e8718564073fefa76ed4db76381", unrolled_symbol_table = "f8c6d89c3ff7316d9a2e391c1a0d6c7f3f4ab2f45109b0dbd58b6ff424d854dd", warnings = "" }, + { bytecode = """ +program registry.aleo; + + + +mapping users: +\tkey as address.public; +\tvalue as boolean.public; + + +function register: + async register self.caller into r0; + output r0 as registry.aleo/register.future; + +finalize register: + input r0 as address.public; + set true into users[r0]; + + + + +function unregister: + async unregister self.caller into r0; + output r0 as registry.aleo/unregister.future; + +finalize unregister: + input r0 as address.public; + set false into users[r0]; + +""", dce_ast = "c45092530d55cad8153a244b85c022808dd2b11d4125d2d7f8ac7c83028fd9cd", destructured_ast = "7b13016d5303ea0ba1a9808c08ae7ffa7bd9433cc1c92bd981407291fca91e5d", errors = "", flattened_ast = "327b3263d448da3866ca22b11e845307bea00b77a5854b3c498b3dab8ce31fd2", initial_ast = "f2aaf1996d382c7333a733e4be37ea93c27a3ec58960af996b9f8645ebd27dcf", initial_symbol_table = "bb82e4231a0fb50294a05c94943d9fcdb45f636c32365684d2d329b895b55955", inlined_ast = "c45092530d55cad8153a244b85c022808dd2b11d4125d2d7f8ac7c83028fd9cd", ssa_ast = "16bbfc985f7b340af00f48be7c87cce9fa9deec2517f8e1e51d0a9b90a54fd52", type_checked_symbol_table = "ec996a9a76525329051b42462f7bfee41738e276636cf34c9a0661d70e7b733c", unrolled_ast = "f2aaf1996d382c7333a733e4be37ea93c27a3ec58960af996b9f8645ebd27dcf", unrolled_symbol_table = "ec996a9a76525329051b42462f7bfee41738e276636cf34c9a0661d70e7b733c", warnings = "" }, + { bytecode = """ +import registry.aleo; +program relay.aleo; + +record message: + owner as address.private; + data as u8.private; + + +mapping users: +\tkey as address.public; +\tvalue as boolean.public; + + +function send: + input r0 as address.private; + input r1 as u8.private; + cast r0 r1 into r2 as message.record; + async send r0 into r3; + output r2 as message.record; + output r3 as relay.aleo/send.future; + +finalize send: + input r0 as address.public; + get registry.aleo/users[r0] into r1; + assert.eq r1 true; + + + + +function send_without_check: + input r0 as address.private; + input r1 as u8.private; + cast r0 r1 into r2 as message.record; + async send_without_check r0 into r3; + output r2 as message.record; + output r3 as relay.aleo/send_without_check.future; + +finalize send_without_check: + input r0 as address.public; + get.or_use registry.aleo/users[r0] true into r1; + assert.eq r1 true; + +""", dce_ast = "72e4121a823f91aeeb5b8433f03f07943d174353d55f58a3aae111bc1bab0798", destructured_ast = "26f202a3d6a24f0af49542d0f2c29c635314073b2d52ede163d3ab5e5bcc86fa", errors = "", flattened_ast = "e391d1d2c6731ec8961afe91d8fa94fb9edb091b892ddecfa48ce3f5a6febe8e", initial_ast = "9cc519cc416b2f54ecf753c541196b337f359d42616e4f38b8d9a5a86746de41", initial_symbol_table = "23d4f67793776c110bfd4cc47d98dedde4495edb453c82f6b06718a8cdbc7f6d", inlined_ast = "72e4121a823f91aeeb5b8433f03f07943d174353d55f58a3aae111bc1bab0798", ssa_ast = "012d0c07475a7e03d3898338aa2a91b56d77032978437b17c9337a5001ae5249", type_checked_symbol_table = "f8c6d89c3ff7316d9a2e391c1a0d6c7f3f4ab2f45109b0dbd58b6ff424d854dd", unrolled_ast = "4f5beff4969ba9db8b429435d2a6a6133eed2e8718564073fefa76ed4db76381", unrolled_symbol_table = "f8c6d89c3ff7316d9a2e391c1a0d6c7f3f4ab2f45109b0dbd58b6ff424d854dd", warnings = "" }, ] }]] diff --git a/tests/expectations/compiler/records/balance_wrong_ty.out b/tests/expectations/compiler/records/balance_wrong_ty.out index 1db0252efe..0e93fd2de3 100644 --- a/tests/expectations/compiler/records/balance_wrong_ty.out +++ b/tests/expectations/compiler/records/balance_wrong_ty.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "7eb19e77781b95b995631c60dee18f7726d8dafe1cd7987c084700bb4f94349e", dce_ast = "e82cd2eb56dd0b2bfc91c15dea7322e37d6be5ffeca0285d3ee78f57d8f498cb", destructured_ast = "e82cd2eb56dd0b2bfc91c15dea7322e37d6be5ffeca0285d3ee78f57d8f498cb", errors = "", flattened_ast = "aaf0ea0bdf90947799366087c8e413a5f30a858beba355ea950a184aea190044", initial_ast = "50c8f3bc8b9c2489558fcf575da4a1dc9da1583021452a38dd055fa622c239f4", initial_symbol_table = "1584cbfd87b06264331bf8fce8e6d9fa9652a14e0ef376e1f86f5024b6e52ce6", inlined_ast = "e82cd2eb56dd0b2bfc91c15dea7322e37d6be5ffeca0285d3ee78f57d8f498cb", ssa_ast = "3888bd37ecff2f44e6c9a58733776106c605b73bee5d0b4a1bab339e6a65b3be", type_checked_symbol_table = "b3f6701a44924e31632e5f7e6f2fa621c03bc281d7641ef378d23ba10e6cb498", unrolled_ast = "50c8f3bc8b9c2489558fcf575da4a1dc9da1583021452a38dd055fa622c239f4", unrolled_symbol_table = "b3f6701a44924e31632e5f7e6f2fa621c03bc281d7641ef378d23ba10e6cb498", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + add r0 r1 into r2; + output r2 as u8.private; +""", dce_ast = "e82cd2eb56dd0b2bfc91c15dea7322e37d6be5ffeca0285d3ee78f57d8f498cb", destructured_ast = "e82cd2eb56dd0b2bfc91c15dea7322e37d6be5ffeca0285d3ee78f57d8f498cb", errors = "", flattened_ast = "aaf0ea0bdf90947799366087c8e413a5f30a858beba355ea950a184aea190044", initial_ast = "50c8f3bc8b9c2489558fcf575da4a1dc9da1583021452a38dd055fa622c239f4", initial_symbol_table = "1584cbfd87b06264331bf8fce8e6d9fa9652a14e0ef376e1f86f5024b6e52ce6", inlined_ast = "e82cd2eb56dd0b2bfc91c15dea7322e37d6be5ffeca0285d3ee78f57d8f498cb", ssa_ast = "3888bd37ecff2f44e6c9a58733776106c605b73bee5d0b4a1bab339e6a65b3be", type_checked_symbol_table = "b3f6701a44924e31632e5f7e6f2fa621c03bc281d7641ef378d23ba10e6cb498", unrolled_ast = "50c8f3bc8b9c2489558fcf575da4a1dc9da1583021452a38dd055fa622c239f4", unrolled_symbol_table = "b3f6701a44924e31632e5f7e6f2fa621c03bc281d7641ef378d23ba10e6cb498", warnings = "" }] }]] diff --git a/tests/expectations/compiler/records/declaration.out b/tests/expectations/compiler/records/declaration.out index 7a48e1f35a..43c670fd76 100644 --- a/tests/expectations/compiler/records/declaration.out +++ b/tests/expectations/compiler/records/declaration.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "7eb19e77781b95b995631c60dee18f7726d8dafe1cd7987c084700bb4f94349e", dce_ast = "b1c280356837bfdd1eabf96df4e80a172ae52dbaa90b610f610f3497046866bc", destructured_ast = "b1c280356837bfdd1eabf96df4e80a172ae52dbaa90b610f610f3497046866bc", errors = "", flattened_ast = "8293489de0f0b563e1ed848260a741f20dee0b8caca7849d84de6c8d1aa1b5e3", initial_ast = "219d864046c10b30d1e2aaa028e31f099d779436d370c4b6a5883021de58bdb8", initial_symbol_table = "7fa525bbbccab774e3f15cadb4b08ef0f3b58e40d1c02cd0e5242d35d19a3493", inlined_ast = "b1c280356837bfdd1eabf96df4e80a172ae52dbaa90b610f610f3497046866bc", ssa_ast = "6ffb555f57267fd4ab803ed30fba27516b4aab0098a58a5a4da55ddbf7cc004c", type_checked_symbol_table = "9281101270c690ce12d8b1457e8008d465e3489b0b7e9eed8db82bc954994790", unrolled_ast = "219d864046c10b30d1e2aaa028e31f099d779436d370c4b6a5883021de58bdb8", unrolled_symbol_table = "9281101270c690ce12d8b1457e8008d465e3489b0b7e9eed8db82bc954994790", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + add r0 r1 into r2; + output r2 as u8.private; +""", dce_ast = "b1c280356837bfdd1eabf96df4e80a172ae52dbaa90b610f610f3497046866bc", destructured_ast = "b1c280356837bfdd1eabf96df4e80a172ae52dbaa90b610f610f3497046866bc", errors = "", flattened_ast = "8293489de0f0b563e1ed848260a741f20dee0b8caca7849d84de6c8d1aa1b5e3", initial_ast = "219d864046c10b30d1e2aaa028e31f099d779436d370c4b6a5883021de58bdb8", initial_symbol_table = "7fa525bbbccab774e3f15cadb4b08ef0f3b58e40d1c02cd0e5242d35d19a3493", inlined_ast = "b1c280356837bfdd1eabf96df4e80a172ae52dbaa90b610f610f3497046866bc", ssa_ast = "6ffb555f57267fd4ab803ed30fba27516b4aab0098a58a5a4da55ddbf7cc004c", type_checked_symbol_table = "9281101270c690ce12d8b1457e8008d465e3489b0b7e9eed8db82bc954994790", unrolled_ast = "219d864046c10b30d1e2aaa028e31f099d779436d370c4b6a5883021de58bdb8", unrolled_symbol_table = "9281101270c690ce12d8b1457e8008d465e3489b0b7e9eed8db82bc954994790", warnings = "" }] }]] diff --git a/tests/expectations/compiler/records/external_nested_record.out b/tests/expectations/compiler/records/external_nested_record.out index 0f72bce7b9..8b55219d21 100644 --- a/tests/expectations/compiler/records/external_nested_record.out +++ b/tests/expectations/compiler/records/external_nested_record.out @@ -1,7 +1,32 @@ namespace = "Compile" expectation = "Pass" outputs = [[{ compile = [ - { bytecode = "40ad5099cd6e309d5adbba30460c340377d555868e7a90c087c440f195339d16", dce_ast = "900c4b9018194c85f2ca523cb559f9f597265d3a23d410a757017cd803fbffb1", destructured_ast = "900c4b9018194c85f2ca523cb559f9f597265d3a23d410a757017cd803fbffb1", errors = "", flattened_ast = "b8253c762a2456d82dd47c27018cac6d44083a9eaafafcd60e1b83f8b0d16aa1", initial_ast = "0603c5de85d72aff1b82ae064e9f056a5a12f4a3c9a43b7110245f71ab184179", initial_symbol_table = "b59a64e702cf908299e322a302bbff0b310c263353e4e2d40ac9c2cf55014e35", inlined_ast = "900c4b9018194c85f2ca523cb559f9f597265d3a23d410a757017cd803fbffb1", ssa_ast = "0603c5de85d72aff1b82ae064e9f056a5a12f4a3c9a43b7110245f71ab184179", type_checked_symbol_table = "0de9af52dc5b3b905b76c91bfeecc8f18ec3888395e81acf47f377599a044a23", unrolled_ast = "0603c5de85d72aff1b82ae064e9f056a5a12f4a3c9a43b7110245f71ab184179", unrolled_symbol_table = "0de9af52dc5b3b905b76c91bfeecc8f18ec3888395e81acf47f377599a044a23", warnings = "" }, - { bytecode = "083986d9c9e5b956838b3c35367b3a7c4dbf4eb5ab13e44de0d129e320089abe", dce_ast = "f793f932d3d092553d17307793c58592b869e5926000d798ec85d82ecc6d178e", destructured_ast = "f793f932d3d092553d17307793c58592b869e5926000d798ec85d82ecc6d178e", errors = "", flattened_ast = "2311a42d662fc48ae0063d65e32035c349f709e2f7428b50f388ec6d2a3dbcaa", initial_ast = "3035438b326eef0eacc00dbe4829c09021b73a037709aa7c2a22860e5dd9a26a", initial_symbol_table = "b5a798a81b37a96d61bce196fbe0f86bd73d66869e638eb56f53b47016add539", inlined_ast = "f793f932d3d092553d17307793c58592b869e5926000d798ec85d82ecc6d178e", ssa_ast = "b3b45e5d3481e68154563fdc64f460e69fd00395eccb5a319eb5e81ca7f7d3c9", type_checked_symbol_table = "7b6cf777b20c4a7877425c13379ea3aab6660ab65f8b285a561a464a3aaa2018", unrolled_ast = "b3b45e5d3481e68154563fdc64f460e69fd00395eccb5a319eb5e81ca7f7d3c9", unrolled_symbol_table = "7b6cf777b20c4a7877425c13379ea3aab6660ab65f8b285a561a464a3aaa2018", warnings = "" }, - { bytecode = "1643ea06597a6d4bdffb84b9802843e24ac3772d64604b69e46cead51127b653", dce_ast = "2a62e891e972abf4d485b73acc2fd39eb970af5cb42590d16b7275f6a7eb5f8c", destructured_ast = "2a62e891e972abf4d485b73acc2fd39eb970af5cb42590d16b7275f6a7eb5f8c", errors = "", flattened_ast = "992fc3e592c2877917c17d95cda4c49941da939bbc09a8fcd2356f09fcc64dec", initial_ast = "a3ac974e10d37be232ec426fe64976ac2e2701d160d8777f4c92e177cf8e3140", initial_symbol_table = "5b2736f499ffabe8a999fe80a7c8fa5eae6cf56b7b0ef4fe211a1cea4631061e", inlined_ast = "2a62e891e972abf4d485b73acc2fd39eb970af5cb42590d16b7275f6a7eb5f8c", ssa_ast = "e8f62eeaa66db3f359e2965887d4412a182248577aeecbe721e520df7cc8f262", type_checked_symbol_table = "b2d7ffbf87933dd4f2b4929b31bbdadaeff8663344393e0cfeff2845387159bd", unrolled_ast = "e8f62eeaa66db3f359e2965887d4412a182248577aeecbe721e520df7cc8f262", unrolled_symbol_table = "b2d7ffbf87933dd4f2b4929b31bbdadaeff8663344393e0cfeff2845387159bd", warnings = "" }, + { bytecode = """ +program child.aleo; + +record child_rec: + owner as address.private; + + +function main: + input r0 as child_rec.record; +""", dce_ast = "900c4b9018194c85f2ca523cb559f9f597265d3a23d410a757017cd803fbffb1", destructured_ast = "900c4b9018194c85f2ca523cb559f9f597265d3a23d410a757017cd803fbffb1", errors = "", flattened_ast = "b8253c762a2456d82dd47c27018cac6d44083a9eaafafcd60e1b83f8b0d16aa1", initial_ast = "0603c5de85d72aff1b82ae064e9f056a5a12f4a3c9a43b7110245f71ab184179", initial_symbol_table = "b59a64e702cf908299e322a302bbff0b310c263353e4e2d40ac9c2cf55014e35", inlined_ast = "900c4b9018194c85f2ca523cb559f9f597265d3a23d410a757017cd803fbffb1", ssa_ast = "0603c5de85d72aff1b82ae064e9f056a5a12f4a3c9a43b7110245f71ab184179", type_checked_symbol_table = "0de9af52dc5b3b905b76c91bfeecc8f18ec3888395e81acf47f377599a044a23", unrolled_ast = "0603c5de85d72aff1b82ae064e9f056a5a12f4a3c9a43b7110245f71ab184179", unrolled_symbol_table = "0de9af52dc5b3b905b76c91bfeecc8f18ec3888395e81acf47f377599a044a23", warnings = "" }, + { bytecode = """ +import child.aleo; +program inter.aleo; + + + +function use_child: + input r0 as child.aleo/child_rec.record; +""", dce_ast = "f793f932d3d092553d17307793c58592b869e5926000d798ec85d82ecc6d178e", destructured_ast = "f793f932d3d092553d17307793c58592b869e5926000d798ec85d82ecc6d178e", errors = "", flattened_ast = "2311a42d662fc48ae0063d65e32035c349f709e2f7428b50f388ec6d2a3dbcaa", initial_ast = "3035438b326eef0eacc00dbe4829c09021b73a037709aa7c2a22860e5dd9a26a", initial_symbol_table = "b5a798a81b37a96d61bce196fbe0f86bd73d66869e638eb56f53b47016add539", inlined_ast = "f793f932d3d092553d17307793c58592b869e5926000d798ec85d82ecc6d178e", ssa_ast = "b3b45e5d3481e68154563fdc64f460e69fd00395eccb5a319eb5e81ca7f7d3c9", type_checked_symbol_table = "7b6cf777b20c4a7877425c13379ea3aab6660ab65f8b285a561a464a3aaa2018", unrolled_ast = "b3b45e5d3481e68154563fdc64f460e69fd00395eccb5a319eb5e81ca7f7d3c9", unrolled_symbol_table = "7b6cf777b20c4a7877425c13379ea3aab6660ab65f8b285a561a464a3aaa2018", warnings = "" }, + { bytecode = """ +import child.aleo; +import inter.aleo; +program parent.aleo; + + + +function main: +""", dce_ast = "2a62e891e972abf4d485b73acc2fd39eb970af5cb42590d16b7275f6a7eb5f8c", destructured_ast = "2a62e891e972abf4d485b73acc2fd39eb970af5cb42590d16b7275f6a7eb5f8c", errors = "", flattened_ast = "992fc3e592c2877917c17d95cda4c49941da939bbc09a8fcd2356f09fcc64dec", initial_ast = "a3ac974e10d37be232ec426fe64976ac2e2701d160d8777f4c92e177cf8e3140", initial_symbol_table = "5b2736f499ffabe8a999fe80a7c8fa5eae6cf56b7b0ef4fe211a1cea4631061e", inlined_ast = "2a62e891e972abf4d485b73acc2fd39eb970af5cb42590d16b7275f6a7eb5f8c", ssa_ast = "e8f62eeaa66db3f359e2965887d4412a182248577aeecbe721e520df7cc8f262", type_checked_symbol_table = "b2d7ffbf87933dd4f2b4929b31bbdadaeff8663344393e0cfeff2845387159bd", unrolled_ast = "e8f62eeaa66db3f359e2965887d4412a182248577aeecbe721e520df7cc8f262", unrolled_symbol_table = "b2d7ffbf87933dd4f2b4929b31bbdadaeff8663344393e0cfeff2845387159bd", warnings = "" }, ] }]] diff --git a/tests/expectations/compiler/records/gates_is_allowed.out b/tests/expectations/compiler/records/gates_is_allowed.out index c5e9bb8811..f8192a64a2 100644 --- a/tests/expectations/compiler/records/gates_is_allowed.out +++ b/tests/expectations/compiler/records/gates_is_allowed.out @@ -1,3 +1,17 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "cdfda5c02b9b486f79d17a9edef9df16a4fa359ae21e048bbf6c5a22bdf9b38e", dce_ast = "056366508d4a248cd4ed6fb04a69efbb07f6f79ffc889f872afd5e1279785e96", destructured_ast = "056366508d4a248cd4ed6fb04a69efbb07f6f79ffc889f872afd5e1279785e96", errors = "", flattened_ast = "03ae9b01404a08345cc315de9d11190899294a8b7970fffa9296a0d2f6e5e11f", initial_ast = "655e847661250ba3937f6419a9d920797a794cad63feb65196bec00d658234fe", initial_symbol_table = "7b7370a95949739bbb1b6fa3139ba90670c42d68eac051eaabfe4aa759775481", inlined_ast = "056366508d4a248cd4ed6fb04a69efbb07f6f79ffc889f872afd5e1279785e96", ssa_ast = "5e28e91d5318baefa8d55e6817659de0c72416b7fdb8ef77df5e4e3a5703b8d1", type_checked_symbol_table = "c0de0856800efab5e0591eda8ac78e3bfe858a9205d46401a07a0c91077767a9", unrolled_ast = "655e847661250ba3937f6419a9d920797a794cad63feb65196bec00d658234fe", unrolled_symbol_table = "c0de0856800efab5e0591eda8ac78e3bfe858a9205d46401a07a0c91077767a9", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +record Token: + owner as address.private; + amount as u64.private; + gates as u64.private; + + +function main: + input r0 as u64.private; + input r1 as u64.private; + cast self.caller r0 r1 into r2 as Token.record; + output r2 as Token.record; +""", dce_ast = "056366508d4a248cd4ed6fb04a69efbb07f6f79ffc889f872afd5e1279785e96", destructured_ast = "056366508d4a248cd4ed6fb04a69efbb07f6f79ffc889f872afd5e1279785e96", errors = "", flattened_ast = "03ae9b01404a08345cc315de9d11190899294a8b7970fffa9296a0d2f6e5e11f", initial_ast = "655e847661250ba3937f6419a9d920797a794cad63feb65196bec00d658234fe", initial_symbol_table = "7b7370a95949739bbb1b6fa3139ba90670c42d68eac051eaabfe4aa759775481", inlined_ast = "056366508d4a248cd4ed6fb04a69efbb07f6f79ffc889f872afd5e1279785e96", ssa_ast = "5e28e91d5318baefa8d55e6817659de0c72416b7fdb8ef77df5e4e3a5703b8d1", type_checked_symbol_table = "c0de0856800efab5e0591eda8ac78e3bfe858a9205d46401a07a0c91077767a9", unrolled_ast = "655e847661250ba3937f6419a9d920797a794cad63feb65196bec00d658234fe", unrolled_symbol_table = "c0de0856800efab5e0591eda8ac78e3bfe858a9205d46401a07a0c91077767a9", warnings = "" }] }]] diff --git a/tests/expectations/compiler/records/init_expression.out b/tests/expectations/compiler/records/init_expression.out index a67f7b91b6..1108f0ef75 100644 --- a/tests/expectations/compiler/records/init_expression.out +++ b/tests/expectations/compiler/records/init_expression.out @@ -1,3 +1,22 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f243717a23b7bcbf2e4656d741a9e43b8a60184892683964efb628e22e36e7f1", dce_ast = "69b116454ce349eb479f08eebd42729a9284642d664c83ac65cfa86f2e1309c2", destructured_ast = "9e1726ad46b3ee2de7496cf5f834127ad440b59b76f8ec9c69b3ac733c61bd36", errors = "", flattened_ast = "da220e2edfb44d1e871b010cfe2663e40e06e3c71c472710f781dd2c585e2184", initial_ast = "8160dc0cbe7e1bc57e65f46d78222c56e3ec7f1786a31c18adf1705985b25365", initial_symbol_table = "3fd1cc6a2ce3920f6a8669981cc229d991818bc1baa451da4f15c15182445a80", inlined_ast = "9e1726ad46b3ee2de7496cf5f834127ad440b59b76f8ec9c69b3ac733c61bd36", ssa_ast = "8b9a5676e89823fa5d8b88ddad56f8fe2f518910cec99abc3ceb026cc0692d27", type_checked_symbol_table = "ca911d7fe1163c60a9cfb288fcb2863dc9cac2f114ff4c48d8aff5bd82908159", unrolled_ast = "8160dc0cbe7e1bc57e65f46d78222c56e3ec7f1786a31c18adf1705985b25365", unrolled_symbol_table = "ca911d7fe1163c60a9cfb288fcb2863dc9cac2f114ff4c48d8aff5bd82908159", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +record Token: + owner as address.private; + amount as u64.private; + + +function mint: + input r0 as address.private; + input r1 as u64.private; + cast r0 r1 into r2 as Token.record; + output r2 as Token.record; + + +function main: + input r0 as address.private; + mul 1u64 1u64 into r1; + output r1 as u64.private; +""", dce_ast = "69b116454ce349eb479f08eebd42729a9284642d664c83ac65cfa86f2e1309c2", destructured_ast = "9e1726ad46b3ee2de7496cf5f834127ad440b59b76f8ec9c69b3ac733c61bd36", errors = "", flattened_ast = "da220e2edfb44d1e871b010cfe2663e40e06e3c71c472710f781dd2c585e2184", initial_ast = "8160dc0cbe7e1bc57e65f46d78222c56e3ec7f1786a31c18adf1705985b25365", initial_symbol_table = "3fd1cc6a2ce3920f6a8669981cc229d991818bc1baa451da4f15c15182445a80", inlined_ast = "9e1726ad46b3ee2de7496cf5f834127ad440b59b76f8ec9c69b3ac733c61bd36", ssa_ast = "8b9a5676e89823fa5d8b88ddad56f8fe2f518910cec99abc3ceb026cc0692d27", type_checked_symbol_table = "ca911d7fe1163c60a9cfb288fcb2863dc9cac2f114ff4c48d8aff5bd82908159", unrolled_ast = "8160dc0cbe7e1bc57e65f46d78222c56e3ec7f1786a31c18adf1705985b25365", unrolled_symbol_table = "ca911d7fe1163c60a9cfb288fcb2863dc9cac2f114ff4c48d8aff5bd82908159", warnings = "" }] }]] diff --git a/tests/expectations/compiler/records/init_expression_shorthand.out b/tests/expectations/compiler/records/init_expression_shorthand.out index 170c392df4..fb65f6f887 100644 --- a/tests/expectations/compiler/records/init_expression_shorthand.out +++ b/tests/expectations/compiler/records/init_expression_shorthand.out @@ -1,3 +1,22 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "0df6e3d77f2b3503e1b948582ccf17e40ef1cc0ba784bfb0ee91dd6388003630", dce_ast = "a9f2a052ca981a5a23ce47ba13c410311e10d5fc87f2648ba62f850a8a2d5c6e", destructured_ast = "58ec5e057d5129e2db6d8f699eae5a5d061d4fe62fb7878c84f94f67ee47ebf9", errors = "", flattened_ast = "b4a27bb564c16bac85dbafbc00a4c4c47350b04d2b0fef002efd7b8ecc1def36", initial_ast = "3917e2251c71ec95bbb6cf5731dcf43126aafa4115a3b2a7767c1a0b1aa70eb6", initial_symbol_table = "002e762d77a8521f1679eab9904bf7357422d0fa74a5ac1b3652a90ad588c0bb", inlined_ast = "58ec5e057d5129e2db6d8f699eae5a5d061d4fe62fb7878c84f94f67ee47ebf9", ssa_ast = "3fda30235b60f942f2ce28e0b32749e04924c5b226e78a2184cdaa3b36b3a2ee", type_checked_symbol_table = "833e07fbb1a747d1575ee49268dc2948de1475fed19731cd8083a23d0231c605", unrolled_ast = "923de60415b7eb88a8ba42c16c831e73fb586d1c46599f85aafc8d69b6920033", unrolled_symbol_table = "833e07fbb1a747d1575ee49268dc2948de1475fed19731cd8083a23d0231c605", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +record Token: + owner as address.private; + amount as u64.private; + + +function mint: + input r0 as address.private; + input r1 as u64.private; + cast r0 r1 into r2 as Token.record; + output r2 as Token.record; + + +function main: + input r0 as address.private; + add 1u64 1u64 into r1; + output r1 as u64.private; +""", dce_ast = "a9f2a052ca981a5a23ce47ba13c410311e10d5fc87f2648ba62f850a8a2d5c6e", destructured_ast = "58ec5e057d5129e2db6d8f699eae5a5d061d4fe62fb7878c84f94f67ee47ebf9", errors = "", flattened_ast = "b4a27bb564c16bac85dbafbc00a4c4c47350b04d2b0fef002efd7b8ecc1def36", initial_ast = "3917e2251c71ec95bbb6cf5731dcf43126aafa4115a3b2a7767c1a0b1aa70eb6", initial_symbol_table = "002e762d77a8521f1679eab9904bf7357422d0fa74a5ac1b3652a90ad588c0bb", inlined_ast = "58ec5e057d5129e2db6d8f699eae5a5d061d4fe62fb7878c84f94f67ee47ebf9", ssa_ast = "3fda30235b60f942f2ce28e0b32749e04924c5b226e78a2184cdaa3b36b3a2ee", type_checked_symbol_table = "833e07fbb1a747d1575ee49268dc2948de1475fed19731cd8083a23d0231c605", unrolled_ast = "923de60415b7eb88a8ba42c16c831e73fb586d1c46599f85aafc8d69b6920033", unrolled_symbol_table = "833e07fbb1a747d1575ee49268dc2948de1475fed19731cd8083a23d0231c605", warnings = "" }] }]] diff --git a/tests/expectations/compiler/records/nested_record.out b/tests/expectations/compiler/records/nested_record.out index cd3b6d8cf6..7524925eff 100644 --- a/tests/expectations/compiler/records/nested_record.out +++ b/tests/expectations/compiler/records/nested_record.out @@ -1,3 +1,27 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "9477487eb30939ab953ae2b069d924cc89d50b2b1062bfad64dcb7c79d817b6f", dce_ast = "e25a6bd09d054c3f041c70e6c4013b1269fdba734e6e78f35c3b69dd8c4ce2d0", destructured_ast = "00db00056443bc6d46a70373f3f22b51ffc5bc724314b2314a3bf1f7fc6ec69c", errors = "", flattened_ast = "4fc89fc15a0c119400a045fd7a2809a811f82634e71c624729154e17956367f8", initial_ast = "ce249307b5be89ebd81d36aea76c5563a1bf06d8abc410a7efdaf5d42fc9c8e1", initial_symbol_table = "5b8c5b2a0876c74dc30026b2f2b559851bed7fd78570aca2d73ff6bf6f6b978f", inlined_ast = "00db00056443bc6d46a70373f3f22b51ffc5bc724314b2314a3bf1f7fc6ec69c", ssa_ast = "a3ef314961cd5905bfba1087318a02acf3ba098a373fc0a6fd8fdf3f5b1ebd14", type_checked_symbol_table = "494c29aaab2d05abfc510da4877b5c111d765c8dc7408436b6e1b2f0e5a3a905", unrolled_ast = "ce249307b5be89ebd81d36aea76c5563a1bf06d8abc410a7efdaf5d42fc9c8e1", unrolled_symbol_table = "494c29aaab2d05abfc510da4877b5c111d765c8dc7408436b6e1b2f0e5a3a905", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +struct Amount: + amount as u64; + amt as u64; + +record Token: + owner as address.private; + amount as Amount.private; + + +function mint: + input r0 as address.private; + input r1 as u64.private; + cast r1 r1 into r2 as Amount; + cast r0 r2 into r3 as Token.record; + output r3 as Token.record; + + +function main: + input r0 as address.private; + add 1u64 1u64 into r1; + output r1 as u64.private; +""", dce_ast = "e25a6bd09d054c3f041c70e6c4013b1269fdba734e6e78f35c3b69dd8c4ce2d0", destructured_ast = "00db00056443bc6d46a70373f3f22b51ffc5bc724314b2314a3bf1f7fc6ec69c", errors = "", flattened_ast = "4fc89fc15a0c119400a045fd7a2809a811f82634e71c624729154e17956367f8", initial_ast = "ce249307b5be89ebd81d36aea76c5563a1bf06d8abc410a7efdaf5d42fc9c8e1", initial_symbol_table = "5b8c5b2a0876c74dc30026b2f2b559851bed7fd78570aca2d73ff6bf6f6b978f", inlined_ast = "00db00056443bc6d46a70373f3f22b51ffc5bc724314b2314a3bf1f7fc6ec69c", ssa_ast = "a3ef314961cd5905bfba1087318a02acf3ba098a373fc0a6fd8fdf3f5b1ebd14", type_checked_symbol_table = "494c29aaab2d05abfc510da4877b5c111d765c8dc7408436b6e1b2f0e5a3a905", unrolled_ast = "ce249307b5be89ebd81d36aea76c5563a1bf06d8abc410a7efdaf5d42fc9c8e1", unrolled_symbol_table = "494c29aaab2d05abfc510da4877b5c111d765c8dc7408436b6e1b2f0e5a3a905", warnings = "" }] }]] diff --git a/tests/expectations/compiler/records/nested_record_as_function_io.out b/tests/expectations/compiler/records/nested_record_as_function_io.out index 74393a9ff5..06590c9ac2 100644 --- a/tests/expectations/compiler/records/nested_record_as_function_io.out +++ b/tests/expectations/compiler/records/nested_record_as_function_io.out @@ -1,7 +1,42 @@ namespace = "Compile" expectation = "Pass" outputs = [[{ compile = [ - { bytecode = "0b3e8f36b3896428089aaa9b617346162bfa8391b2b1cc75d42dbac006e43935", dce_ast = "a5ccb0b7d744595e5b7d5c141b6b8bb057e395db63f34a7b9c02d6a3400810f5", destructured_ast = "a5ccb0b7d744595e5b7d5c141b6b8bb057e395db63f34a7b9c02d6a3400810f5", errors = "", flattened_ast = "99981748c19be5ec946d6786bb8c61056a2c0c89006cc256784ff55aad16d092", initial_ast = "c870708760c403e0e46ff83e7d74f3c4eb216d8c491edd71ff0459f117cbbdc3", initial_symbol_table = "c953e3bff6aadcc83960d916ee9cfed52a14318806f8aa98df5f2852d37cbc6e", inlined_ast = "a5ccb0b7d744595e5b7d5c141b6b8bb057e395db63f34a7b9c02d6a3400810f5", ssa_ast = "d0127391d923a2c9fbcd0f01cb20c3337801426a595a644ec840d2dec8d71aa6", type_checked_symbol_table = "e36903969c31dc13732b73e6f9b2f0dab5cd8e5ae16984e414047e68edd27f06", unrolled_ast = "c870708760c403e0e46ff83e7d74f3c4eb216d8c491edd71ff0459f117cbbdc3", unrolled_symbol_table = "e36903969c31dc13732b73e6f9b2f0dab5cd8e5ae16984e414047e68edd27f06", warnings = "" }, - { bytecode = "d8e307618b82982b119cbe3021c598824ea758eee84ca2c4faf121d4bc8c16c0", dce_ast = "397fc94cd8b0277f666f6a8cb2d145f44f43a8709d8b1d91890f6ff44466717a", destructured_ast = "397fc94cd8b0277f666f6a8cb2d145f44f43a8709d8b1d91890f6ff44466717a", errors = "", flattened_ast = "e2fd31f33193492ef8a3027869618a26c8e257b12e7a42221c01adcbc186eea8", initial_ast = "60b69111a28cdb34c2cb3cf3a7531a8ad49f128e543bdde432224cf04c654624", initial_symbol_table = "a521ec4402a5871487e54490c745901d6a87a44931d3f34dfb10ff1d7057d170", inlined_ast = "397fc94cd8b0277f666f6a8cb2d145f44f43a8709d8b1d91890f6ff44466717a", ssa_ast = "ef3e9d3142c9bb9a7879c68fbc56bc6d13b524e7e9d90f73b4a2605c09419535", type_checked_symbol_table = "5ee2c8dfa9ae436e63eeac3d8cf4e63ff3741a85ca686522da876e6dd402bd96", unrolled_ast = "60ffc72796bcb5f714be3f720b9f27666a8de0488b46f3fba693aeb5e63d6828", unrolled_symbol_table = "5ee2c8dfa9ae436e63eeac3d8cf4e63ff3741a85ca686522da876e6dd402bd96", warnings = "" }, - { bytecode = "a70f46e3334bc265915ca2076c31338cddeff63574362603c7ab0bf065494128", dce_ast = "29c33e54172af371074530b5245143eef6ff2fc7f9ee8900e246f11bd3299c97", destructured_ast = "29c33e54172af371074530b5245143eef6ff2fc7f9ee8900e246f11bd3299c97", errors = "", flattened_ast = "321c82b52e3cd2b1b2057e85b65ff3d9bfd70b163d065cecf57a98159fa95c6c", initial_ast = "c74d819aafa9edb960e8408ceb1b3ee2b5de2c9ae343590f32911b497446d65b", initial_symbol_table = "057e2f94b94bfff1d548946bcd59edf8e675e0c92fea1517597bcc32d993b762", inlined_ast = "29c33e54172af371074530b5245143eef6ff2fc7f9ee8900e246f11bd3299c97", ssa_ast = "54c51b42c1b2d911ebe11e697831fd994cf9da2f49ab4f77473fedf8b9931835", type_checked_symbol_table = "a0a55e439b4e9f90a3bf9b7a184acfb75a5f4c18ffd7e1e625b5312f456537f4", unrolled_ast = "2feeb1f565012e518714d6713df15fd2f921b7ec414c6dc2abf0fd727a1d0e8c", unrolled_symbol_table = "a0a55e439b4e9f90a3bf9b7a184acfb75a5f4c18ffd7e1e625b5312f456537f4", warnings = "" }, + { bytecode = """ +program program_a.aleo; + +record X: + owner as address.private; + val as u32.private; + + +function mint2: + input r0 as u32.private; + cast self.signer r0 into r1 as X.record; + output r1 as X.record; +""", dce_ast = "a5ccb0b7d744595e5b7d5c141b6b8bb057e395db63f34a7b9c02d6a3400810f5", destructured_ast = "a5ccb0b7d744595e5b7d5c141b6b8bb057e395db63f34a7b9c02d6a3400810f5", errors = "", flattened_ast = "99981748c19be5ec946d6786bb8c61056a2c0c89006cc256784ff55aad16d092", initial_ast = "c870708760c403e0e46ff83e7d74f3c4eb216d8c491edd71ff0459f117cbbdc3", initial_symbol_table = "c953e3bff6aadcc83960d916ee9cfed52a14318806f8aa98df5f2852d37cbc6e", inlined_ast = "a5ccb0b7d744595e5b7d5c141b6b8bb057e395db63f34a7b9c02d6a3400810f5", ssa_ast = "d0127391d923a2c9fbcd0f01cb20c3337801426a595a644ec840d2dec8d71aa6", type_checked_symbol_table = "e36903969c31dc13732b73e6f9b2f0dab5cd8e5ae16984e414047e68edd27f06", unrolled_ast = "c870708760c403e0e46ff83e7d74f3c4eb216d8c491edd71ff0459f117cbbdc3", unrolled_symbol_table = "e36903969c31dc13732b73e6f9b2f0dab5cd8e5ae16984e414047e68edd27f06", warnings = "" }, + { bytecode = """ +import program_a.aleo; +program program_b.aleo; + + + +function foobar: + input r0 as program_a.aleo/X.record; + output r0.val as u32.private; + + +function boofar: + input r0 as program_a.aleo/X.record; + output r0 as program_a.aleo/X.record; +""", dce_ast = "397fc94cd8b0277f666f6a8cb2d145f44f43a8709d8b1d91890f6ff44466717a", destructured_ast = "397fc94cd8b0277f666f6a8cb2d145f44f43a8709d8b1d91890f6ff44466717a", errors = "", flattened_ast = "e2fd31f33193492ef8a3027869618a26c8e257b12e7a42221c01adcbc186eea8", initial_ast = "60b69111a28cdb34c2cb3cf3a7531a8ad49f128e543bdde432224cf04c654624", initial_symbol_table = "a521ec4402a5871487e54490c745901d6a87a44931d3f34dfb10ff1d7057d170", inlined_ast = "397fc94cd8b0277f666f6a8cb2d145f44f43a8709d8b1d91890f6ff44466717a", ssa_ast = "ef3e9d3142c9bb9a7879c68fbc56bc6d13b524e7e9d90f73b4a2605c09419535", type_checked_symbol_table = "5ee2c8dfa9ae436e63eeac3d8cf4e63ff3741a85ca686522da876e6dd402bd96", unrolled_ast = "60ffc72796bcb5f714be3f720b9f27666a8de0488b46f3fba693aeb5e63d6828", unrolled_symbol_table = "5ee2c8dfa9ae436e63eeac3d8cf4e63ff3741a85ca686522da876e6dd402bd96", warnings = "" }, + { bytecode = """ +import program_a.aleo; +import program_b.aleo; +program program_c.aleo; + + + +function main: + assert.eq 1u32 1u32; +""", dce_ast = "29c33e54172af371074530b5245143eef6ff2fc7f9ee8900e246f11bd3299c97", destructured_ast = "29c33e54172af371074530b5245143eef6ff2fc7f9ee8900e246f11bd3299c97", errors = "", flattened_ast = "321c82b52e3cd2b1b2057e85b65ff3d9bfd70b163d065cecf57a98159fa95c6c", initial_ast = "c74d819aafa9edb960e8408ceb1b3ee2b5de2c9ae343590f32911b497446d65b", initial_symbol_table = "057e2f94b94bfff1d548946bcd59edf8e675e0c92fea1517597bcc32d993b762", inlined_ast = "29c33e54172af371074530b5245143eef6ff2fc7f9ee8900e246f11bd3299c97", ssa_ast = "54c51b42c1b2d911ebe11e697831fd994cf9da2f49ab4f77473fedf8b9931835", type_checked_symbol_table = "a0a55e439b4e9f90a3bf9b7a184acfb75a5f4c18ffd7e1e625b5312f456537f4", unrolled_ast = "2feeb1f565012e518714d6713df15fd2f921b7ec414c6dc2abf0fd727a1d0e8c", unrolled_symbol_table = "a0a55e439b4e9f90a3bf9b7a184acfb75a5f4c18ffd7e1e625b5312f456537f4", warnings = "" }, ] }]] diff --git a/tests/expectations/compiler/records/record_declaration_out_of_order.out b/tests/expectations/compiler/records/record_declaration_out_of_order.out index b0c313ee89..0c1034f395 100644 --- a/tests/expectations/compiler/records/record_declaration_out_of_order.out +++ b/tests/expectations/compiler/records/record_declaration_out_of_order.out @@ -1,3 +1,17 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "9c274bbe580ab8d20c474474f15f2ed4f0913a91d3e9938197cbe29b6f1e273e", dce_ast = "d539c3593943275cd7f4eb2dde377d0be520c64a2d15a00e41ad7242068ffd68", destructured_ast = "d539c3593943275cd7f4eb2dde377d0be520c64a2d15a00e41ad7242068ffd68", errors = "", flattened_ast = "bfff4d02525394ef7e29496626789c64dbf4f8b92810fbc79ba38faef114ae69", initial_ast = "0b156106d2f50efe97476dfdd1f07741b2db336c50cfd89113c0eb011b718ea6", initial_symbol_table = "3f9924dd0dd047baffbbd264bff45deeeb9c7f0e5b85cec1f09d368ccf2da34d", inlined_ast = "d539c3593943275cd7f4eb2dde377d0be520c64a2d15a00e41ad7242068ffd68", ssa_ast = "53c908cf360f5469c561d84a7fc021d985a9cf5e9ed8dc050b0d3937339f14ab", type_checked_symbol_table = "b63238fe925dc148180f075a969645f67188ebf518232f630a7c84c8d9fd68a2", unrolled_ast = "0b156106d2f50efe97476dfdd1f07741b2db336c50cfd89113c0eb011b718ea6", unrolled_symbol_table = "b63238fe925dc148180f075a969645f67188ebf518232f630a7c84c8d9fd68a2", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +record Token: + owner as address.private; + amount as u64.private; + + +function main: + input r0 as u64.private; + input r1 as u64.private; + add r0 r1 into r2; + cast self.caller r2 into r3 as Token.record; + output r3 as Token.record; +""", dce_ast = "d539c3593943275cd7f4eb2dde377d0be520c64a2d15a00e41ad7242068ffd68", destructured_ast = "d539c3593943275cd7f4eb2dde377d0be520c64a2d15a00e41ad7242068ffd68", errors = "", flattened_ast = "bfff4d02525394ef7e29496626789c64dbf4f8b92810fbc79ba38faef114ae69", initial_ast = "0b156106d2f50efe97476dfdd1f07741b2db336c50cfd89113c0eb011b718ea6", initial_symbol_table = "3f9924dd0dd047baffbbd264bff45deeeb9c7f0e5b85cec1f09d368ccf2da34d", inlined_ast = "d539c3593943275cd7f4eb2dde377d0be520c64a2d15a00e41ad7242068ffd68", ssa_ast = "53c908cf360f5469c561d84a7fc021d985a9cf5e9ed8dc050b0d3937339f14ab", type_checked_symbol_table = "b63238fe925dc148180f075a969645f67188ebf518232f630a7c84c8d9fd68a2", unrolled_ast = "0b156106d2f50efe97476dfdd1f07741b2db336c50cfd89113c0eb011b718ea6", unrolled_symbol_table = "b63238fe925dc148180f075a969645f67188ebf518232f630a7c84c8d9fd68a2", warnings = "" }] }]] diff --git a/tests/expectations/compiler/records/record_init_out_of_order.out b/tests/expectations/compiler/records/record_init_out_of_order.out index b2c3a7d7a3..a44519ad7e 100644 --- a/tests/expectations/compiler/records/record_init_out_of_order.out +++ b/tests/expectations/compiler/records/record_init_out_of_order.out @@ -1,3 +1,17 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "8c8992021f4a3ff29c9d5b1ddb3a34e14878b9cd822ac6e470018a4e268b2769", dce_ast = "237ed96bfc2bcb15043481d52b1a8c1ebaf9337803c67eb3a3ab4fd169dd7454", destructured_ast = "237ed96bfc2bcb15043481d52b1a8c1ebaf9337803c67eb3a3ab4fd169dd7454", errors = "", flattened_ast = "fb24e616b49908385cbe1fd252847b8c0e92147cc206bc11f9fb1f29e5721e1e", initial_ast = "0f4e4004f2763ca95cc6d9ea35a30157f8b6f8453126065697cbe334e34144f3", initial_symbol_table = "6feca07193b306037d0a93baef8f35b166890e11fb15af517d5f5c424c0840ca", inlined_ast = "237ed96bfc2bcb15043481d52b1a8c1ebaf9337803c67eb3a3ab4fd169dd7454", ssa_ast = "09da4292294f513073a69a66e3a8478973affe50ea7d426e6161a3a9afe8af62", type_checked_symbol_table = "e084cc1575d2853a823d08df5615028b18a39cc1b839ae41ac46f305cf5af81d", unrolled_ast = "0e01d06487035888e2f16e325cf5d40f8999eed94ff22d0ca6f8da1f7154e461", unrolled_symbol_table = "e084cc1575d2853a823d08df5615028b18a39cc1b839ae41ac46f305cf5af81d", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +record Token: + owner as address.private; + amount as u64.private; + + +function main: + input r0 as address.private; + input r1 as u64.private; + mul r1 r1 into r2; + cast r0 r2 into r3 as Token.record; + output r3 as Token.record; +""", dce_ast = "237ed96bfc2bcb15043481d52b1a8c1ebaf9337803c67eb3a3ab4fd169dd7454", destructured_ast = "237ed96bfc2bcb15043481d52b1a8c1ebaf9337803c67eb3a3ab4fd169dd7454", errors = "", flattened_ast = "fb24e616b49908385cbe1fd252847b8c0e92147cc206bc11f9fb1f29e5721e1e", initial_ast = "0f4e4004f2763ca95cc6d9ea35a30157f8b6f8453126065697cbe334e34144f3", initial_symbol_table = "6feca07193b306037d0a93baef8f35b166890e11fb15af517d5f5c424c0840ca", inlined_ast = "237ed96bfc2bcb15043481d52b1a8c1ebaf9337803c67eb3a3ab4fd169dd7454", ssa_ast = "09da4292294f513073a69a66e3a8478973affe50ea7d426e6161a3a9afe8af62", type_checked_symbol_table = "e084cc1575d2853a823d08df5615028b18a39cc1b839ae41ac46f305cf5af81d", unrolled_ast = "0e01d06487035888e2f16e325cf5d40f8999eed94ff22d0ca6f8da1f7154e461", unrolled_symbol_table = "e084cc1575d2853a823d08df5615028b18a39cc1b839ae41ac46f305cf5af81d", warnings = "" }] }]] diff --git a/tests/expectations/compiler/records/record_with_visibility.out b/tests/expectations/compiler/records/record_with_visibility.out index c2627bbb48..d0c8c768ff 100644 --- a/tests/expectations/compiler/records/record_with_visibility.out +++ b/tests/expectations/compiler/records/record_with_visibility.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "d93b3c0884c41a79a8f5c116f07a8f6c8f5107c9b46c72ce6f0b84aa64eefb0f", dce_ast = "cfd232d35ee8cd3768e4924eb4e438a62ad3a04e3df77844c3354aac907a6350", destructured_ast = "cfd232d35ee8cd3768e4924eb4e438a62ad3a04e3df77844c3354aac907a6350", errors = "", flattened_ast = "1473c921dc87393d1bec2cd3469f66c642909f87032fbfb4fdec7db088a07df3", initial_ast = "02e791ec58d79b95c1dcd9eaad1fccc95c503995a5ef053c45fe4d4d71025458", initial_symbol_table = "4399efef323bcfeaa73dd0b4a290600d5d85e36cf99c5d6ffb4fcb3ea59353a3", inlined_ast = "cfd232d35ee8cd3768e4924eb4e438a62ad3a04e3df77844c3354aac907a6350", ssa_ast = "98f1a58e417e30e98196535b5ab67f80a47c00e2fa3ac8136fb6918d7d13ecd6", type_checked_symbol_table = "20557e7ee74980978625fbd09ed9defc27cc1657ebd95dec0d88a34f80fcf73c", unrolled_ast = "02e791ec58d79b95c1dcd9eaad1fccc95c503995a5ef053c45fe4d4d71025458", unrolled_symbol_table = "20557e7ee74980978625fbd09ed9defc27cc1657ebd95dec0d88a34f80fcf73c", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +record Token: + owner as address.private; + amount as u64.private; + flag as boolean.private; + + +function main: + input r0 as u64.private; + input r1 as u64.private; + add r0 r1 into r2; + cast self.caller r2 true into r3 as Token.record; + output r3 as Token.record; +""", dce_ast = "cfd232d35ee8cd3768e4924eb4e438a62ad3a04e3df77844c3354aac907a6350", destructured_ast = "cfd232d35ee8cd3768e4924eb4e438a62ad3a04e3df77844c3354aac907a6350", errors = "", flattened_ast = "1473c921dc87393d1bec2cd3469f66c642909f87032fbfb4fdec7db088a07df3", initial_ast = "02e791ec58d79b95c1dcd9eaad1fccc95c503995a5ef053c45fe4d4d71025458", initial_symbol_table = "4399efef323bcfeaa73dd0b4a290600d5d85e36cf99c5d6ffb4fcb3ea59353a3", inlined_ast = "cfd232d35ee8cd3768e4924eb4e438a62ad3a04e3df77844c3354aac907a6350", ssa_ast = "98f1a58e417e30e98196535b5ab67f80a47c00e2fa3ac8136fb6918d7d13ecd6", type_checked_symbol_table = "20557e7ee74980978625fbd09ed9defc27cc1657ebd95dec0d88a34f80fcf73c", unrolled_ast = "02e791ec58d79b95c1dcd9eaad1fccc95c503995a5ef053c45fe4d4d71025458", unrolled_symbol_table = "20557e7ee74980978625fbd09ed9defc27cc1657ebd95dec0d88a34f80fcf73c", warnings = "" }] }]] diff --git a/tests/expectations/compiler/return/ifelse_chain.out b/tests/expectations/compiler/return/ifelse_chain.out index 93f00601a1..5d0d9478b3 100644 --- a/tests/expectations/compiler/return/ifelse_chain.out +++ b/tests/expectations/compiler/return/ifelse_chain.out @@ -1,3 +1,32 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "1902fe1d777e9d4f106c0daa1f947807fd49e952960f10101e78e47ddf8d5f48", dce_ast = "d1a2969debc86ca62ad8beb0cc2dbc226521eb845399be0fb841df3041fc4e87", destructured_ast = "d1a2969debc86ca62ad8beb0cc2dbc226521eb845399be0fb841df3041fc4e87", errors = "", flattened_ast = "e50d2d001ea761618e59dc13b8b2f3834615637bfad5f740db2e2ad35d4f6679", initial_ast = "6ea28950d64ac41eeb8da3d87cb6e3810996f20e112e0642f59a60f761714f1d", initial_symbol_table = "204fa2d504700c7fa4ff175fd95dca964cb3c7fde4cc23b7972f840ca497ce15", inlined_ast = "d1a2969debc86ca62ad8beb0cc2dbc226521eb845399be0fb841df3041fc4e87", ssa_ast = "2fb78fa3dc48ebb722b5e868aeae878da7e6eba06843316f0ebd1451adda1d7c", type_checked_symbol_table = "56f92976ed0897f850ed6a2c9ea6545c48381a8311b1b72f1866a533cbfb3d36", unrolled_ast = "6ea28950d64ac41eeb8da3d87cb6e3810996f20e112e0642f59a60f761714f1d", unrolled_symbol_table = "56f92976ed0897f850ed6a2c9ea6545c48381a8311b1b72f1866a533cbfb3d36", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as field.private; + is.eq r0 0field into r1; + not r1 into r2; + is.eq r0 1field into r3; + and r2 r3 into r4; + not r3 into r5; + is.eq r0 2field into r6; + and r2 r5 into r7; + and r7 r6 into r8; + not r6 into r9; + is.eq r0 3field into r10; + and r7 r9 into r11; + and r11 r10 into r12; + not r10 into r13; + is.eq r0 4field into r14; + and r11 r13 into r15; + and r15 r14 into r16; + ternary r16 4u32 5u32 into r17; + ternary r12 3u32 r17 into r18; + ternary r8 2u32 r18 into r19; + ternary r4 1u32 r19 into r20; + ternary r1 0u32 r20 into r21; + output r21 as u32.private; +""", dce_ast = "d1a2969debc86ca62ad8beb0cc2dbc226521eb845399be0fb841df3041fc4e87", destructured_ast = "d1a2969debc86ca62ad8beb0cc2dbc226521eb845399be0fb841df3041fc4e87", errors = "", flattened_ast = "e50d2d001ea761618e59dc13b8b2f3834615637bfad5f740db2e2ad35d4f6679", initial_ast = "6ea28950d64ac41eeb8da3d87cb6e3810996f20e112e0642f59a60f761714f1d", initial_symbol_table = "204fa2d504700c7fa4ff175fd95dca964cb3c7fde4cc23b7972f840ca497ce15", inlined_ast = "d1a2969debc86ca62ad8beb0cc2dbc226521eb845399be0fb841df3041fc4e87", ssa_ast = "2fb78fa3dc48ebb722b5e868aeae878da7e6eba06843316f0ebd1451adda1d7c", type_checked_symbol_table = "56f92976ed0897f850ed6a2c9ea6545c48381a8311b1b72f1866a533cbfb3d36", unrolled_ast = "6ea28950d64ac41eeb8da3d87cb6e3810996f20e112e0642f59a60f761714f1d", unrolled_symbol_table = "56f92976ed0897f850ed6a2c9ea6545c48381a8311b1b72f1866a533cbfb3d36", warnings = "" }] }]] diff --git a/tests/expectations/compiler/scalar/add.out b/tests/expectations/compiler/scalar/add.out index fb011a3df1..a7a5427ed8 100644 --- a/tests/expectations/compiler/scalar/add.out +++ b/tests/expectations/compiler/scalar/add.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "bfac2c829066d9dc43d56bc1d4e4f592f42e576220f3e3cfd57b060b7bb17222", dce_ast = "3fe252397f2113835b430dff46a4526acc4001f378ef08afe95321e4f8032cf4", destructured_ast = "3fe252397f2113835b430dff46a4526acc4001f378ef08afe95321e4f8032cf4", errors = "", flattened_ast = "a6dd54f6913bb6eac591a2b84098c93995fc187c322bfa5d061a307c6e52973c", initial_ast = "a9277d3302097491315497980a38ef99484be22383c0dddb835bff6224e7f419", initial_symbol_table = "fa202704c32803dd5a46673bb1ce18f4db31f10844f59e0dd951bfed478abf56", inlined_ast = "3fe252397f2113835b430dff46a4526acc4001f378ef08afe95321e4f8032cf4", ssa_ast = "464c6602c9026fa17e9661a5da82aa214f644bdf2a3153255c844897b649a19d", type_checked_symbol_table = "577d0a03f442778c7c07da5fe974c45fe418fe1cab9238773d4749a3f99d2731", unrolled_ast = "a9277d3302097491315497980a38ef99484be22383c0dddb835bff6224e7f419", unrolled_symbol_table = "577d0a03f442778c7c07da5fe974c45fe418fe1cab9238773d4749a3f99d2731", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as scalar.private; + input r1 as scalar.private; + input r2 as scalar.private; + add r0 r1 into r3; + is.eq r3 r2 into r4; + output r4 as boolean.private; +""", dce_ast = "3fe252397f2113835b430dff46a4526acc4001f378ef08afe95321e4f8032cf4", destructured_ast = "3fe252397f2113835b430dff46a4526acc4001f378ef08afe95321e4f8032cf4", errors = "", flattened_ast = "a6dd54f6913bb6eac591a2b84098c93995fc187c322bfa5d061a307c6e52973c", initial_ast = "a9277d3302097491315497980a38ef99484be22383c0dddb835bff6224e7f419", initial_symbol_table = "fa202704c32803dd5a46673bb1ce18f4db31f10844f59e0dd951bfed478abf56", inlined_ast = "3fe252397f2113835b430dff46a4526acc4001f378ef08afe95321e4f8032cf4", ssa_ast = "464c6602c9026fa17e9661a5da82aa214f644bdf2a3153255c844897b649a19d", type_checked_symbol_table = "577d0a03f442778c7c07da5fe974c45fe418fe1cab9238773d4749a3f99d2731", unrolled_ast = "a9277d3302097491315497980a38ef99484be22383c0dddb835bff6224e7f419", unrolled_symbol_table = "577d0a03f442778c7c07da5fe974c45fe418fe1cab9238773d4749a3f99d2731", warnings = "" }] }]] diff --git a/tests/expectations/compiler/scalar/cmp.out b/tests/expectations/compiler/scalar/cmp.out index 457087edec..7c8c204412 100644 --- a/tests/expectations/compiler/scalar/cmp.out +++ b/tests/expectations/compiler/scalar/cmp.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "09f008c4bdc1d4ba78adbf989c031779310385b96fa346f7979a810c7d7cb118", dce_ast = "66d83acfd9a06322425e09b5691545749d12e7a6f4fc48ce9537834736947338", destructured_ast = "a676f1c076f8f2e49f28622bae440180b2aab8054d4e40803c0175e04acfcfdc", errors = "", flattened_ast = "9318b44dfc53fe955b4e9f0e25698efc3f534516a5de08a1b97fd5b3e22bb735", initial_ast = "153ccea2abeb003f157df0e389977b2f7f81ab1137739e1d24fc384331f0c405", initial_symbol_table = "689be29e57d11aea34e9688b20ee4d248138608580bb297a240a404748b85280", inlined_ast = "a676f1c076f8f2e49f28622bae440180b2aab8054d4e40803c0175e04acfcfdc", ssa_ast = "de9438205d63cdba290b0f240ea4e848f49abd7224c136062f721bcc75c1c8ad", type_checked_symbol_table = "9019299e1eb4d4ba951ffa22c1139815f243f7d25887bcbc5a2bb20fc28232c5", unrolled_ast = "153ccea2abeb003f157df0e389977b2f7f81ab1137739e1d24fc384331f0c405", unrolled_symbol_table = "9019299e1eb4d4ba951ffa22c1139815f243f7d25887bcbc5a2bb20fc28232c5", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as scalar.private; + input r1 as scalar.private; + lte r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "66d83acfd9a06322425e09b5691545749d12e7a6f4fc48ce9537834736947338", destructured_ast = "a676f1c076f8f2e49f28622bae440180b2aab8054d4e40803c0175e04acfcfdc", errors = "", flattened_ast = "9318b44dfc53fe955b4e9f0e25698efc3f534516a5de08a1b97fd5b3e22bb735", initial_ast = "153ccea2abeb003f157df0e389977b2f7f81ab1137739e1d24fc384331f0c405", initial_symbol_table = "689be29e57d11aea34e9688b20ee4d248138608580bb297a240a404748b85280", inlined_ast = "a676f1c076f8f2e49f28622bae440180b2aab8054d4e40803c0175e04acfcfdc", ssa_ast = "de9438205d63cdba290b0f240ea4e848f49abd7224c136062f721bcc75c1c8ad", type_checked_symbol_table = "9019299e1eb4d4ba951ffa22c1139815f243f7d25887bcbc5a2bb20fc28232c5", unrolled_ast = "153ccea2abeb003f157df0e389977b2f7f81ab1137739e1d24fc384331f0c405", unrolled_symbol_table = "9019299e1eb4d4ba951ffa22c1139815f243f7d25887bcbc5a2bb20fc28232c5", warnings = "" }] }]] diff --git a/tests/expectations/compiler/scalar/eq.out b/tests/expectations/compiler/scalar/eq.out index 0d9edd13a3..12eec751ef 100644 --- a/tests/expectations/compiler/scalar/eq.out +++ b/tests/expectations/compiler/scalar/eq.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "5c71b9ef5f7774188b6b5be9f6ed558b26059dc5d008d590e2f6860076bcd893", dce_ast = "b95286c15cec8801180520063c1e7bba5f8391cd1c5a2241314363042379dd8f", destructured_ast = "b153e45d51676efd59dbe1d3d0cce8deb20dde8c52cdbf0632e351170cd646cf", errors = "", flattened_ast = "b54bafa0dd1e48a6b7f4a014af2f0d951bc3601d861295a8b0cc363a3db156f5", initial_ast = "6aa18cfaecedd7b3648846ac62e198983f7ec7e2edf41bbd900115c19b8d6c22", initial_symbol_table = "689be29e57d11aea34e9688b20ee4d248138608580bb297a240a404748b85280", inlined_ast = "b153e45d51676efd59dbe1d3d0cce8deb20dde8c52cdbf0632e351170cd646cf", ssa_ast = "ec82de18700c282153e16509520b7fc9d60c14e08744ee2b25a16cc9d0bd9545", type_checked_symbol_table = "ad47ccc3d36b1aeddf0f6c035473b5febaa4a93bd84f2a14c12476196b7045ce", unrolled_ast = "6aa18cfaecedd7b3648846ac62e198983f7ec7e2edf41bbd900115c19b8d6c22", unrolled_symbol_table = "ad47ccc3d36b1aeddf0f6c035473b5febaa4a93bd84f2a14c12476196b7045ce", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as scalar.private; + input r1 as scalar.private; + is.neq r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "b95286c15cec8801180520063c1e7bba5f8391cd1c5a2241314363042379dd8f", destructured_ast = "b153e45d51676efd59dbe1d3d0cce8deb20dde8c52cdbf0632e351170cd646cf", errors = "", flattened_ast = "b54bafa0dd1e48a6b7f4a014af2f0d951bc3601d861295a8b0cc363a3db156f5", initial_ast = "6aa18cfaecedd7b3648846ac62e198983f7ec7e2edf41bbd900115c19b8d6c22", initial_symbol_table = "689be29e57d11aea34e9688b20ee4d248138608580bb297a240a404748b85280", inlined_ast = "b153e45d51676efd59dbe1d3d0cce8deb20dde8c52cdbf0632e351170cd646cf", ssa_ast = "ec82de18700c282153e16509520b7fc9d60c14e08744ee2b25a16cc9d0bd9545", type_checked_symbol_table = "ad47ccc3d36b1aeddf0f6c035473b5febaa4a93bd84f2a14c12476196b7045ce", unrolled_ast = "6aa18cfaecedd7b3648846ac62e198983f7ec7e2edf41bbd900115c19b8d6c22", unrolled_symbol_table = "ad47ccc3d36b1aeddf0f6c035473b5febaa4a93bd84f2a14c12476196b7045ce", warnings = "" }] }]] diff --git a/tests/expectations/compiler/scalar/operator_methods.out b/tests/expectations/compiler/scalar/operator_methods.out index 087612ed97..0ee3720ea2 100644 --- a/tests/expectations/compiler/scalar/operator_methods.out +++ b/tests/expectations/compiler/scalar/operator_methods.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "36a164c1507612060ab556cee9d668118147a8f6bedb09e8eea30c9ce800f907", dce_ast = "6e3ad020081d385389124d92866003b7d1337f68ac02abf10611c3b9c4e9b101", destructured_ast = "a0f26dd3e194d8ecef2d1d4ad1db1ab6567baad7247e30120c06f02e4447f02b", errors = "", flattened_ast = "e5b9db13a4cddc67fef7f8cace9007beb67d725f0c6ffcb4c876d9130b6ec36d", initial_ast = "6650df46002160124bb05c956ef8c7f3b7004d2e54778d6bdda9b1f5dcbd8626", initial_symbol_table = "689be29e57d11aea34e9688b20ee4d248138608580bb297a240a404748b85280", inlined_ast = "a0f26dd3e194d8ecef2d1d4ad1db1ab6567baad7247e30120c06f02e4447f02b", ssa_ast = "96bb1e3367291c0a89ecc3287b968771acee9a6a9201875c5d0978e0208ed5e3", type_checked_symbol_table = "2e64c8dd96a90e64e7c6f709b1594efe1111ae222b5852d9d9b2cf0ecbfe77ac", unrolled_ast = "6650df46002160124bb05c956ef8c7f3b7004d2e54778d6bdda9b1f5dcbd8626", unrolled_symbol_table = "2e64c8dd96a90e64e7c6f709b1594efe1111ae222b5852d9d9b2cf0ecbfe77ac", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as scalar.private; + input r1 as scalar.private; + is.eq r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "6e3ad020081d385389124d92866003b7d1337f68ac02abf10611c3b9c4e9b101", destructured_ast = "a0f26dd3e194d8ecef2d1d4ad1db1ab6567baad7247e30120c06f02e4447f02b", errors = "", flattened_ast = "e5b9db13a4cddc67fef7f8cace9007beb67d725f0c6ffcb4c876d9130b6ec36d", initial_ast = "6650df46002160124bb05c956ef8c7f3b7004d2e54778d6bdda9b1f5dcbd8626", initial_symbol_table = "689be29e57d11aea34e9688b20ee4d248138608580bb297a240a404748b85280", inlined_ast = "a0f26dd3e194d8ecef2d1d4ad1db1ab6567baad7247e30120c06f02e4447f02b", ssa_ast = "96bb1e3367291c0a89ecc3287b968771acee9a6a9201875c5d0978e0208ed5e3", type_checked_symbol_table = "2e64c8dd96a90e64e7c6f709b1594efe1111ae222b5852d9d9b2cf0ecbfe77ac", unrolled_ast = "6650df46002160124bb05c956ef8c7f3b7004d2e54778d6bdda9b1f5dcbd8626", unrolled_symbol_table = "2e64c8dd96a90e64e7c6f709b1594efe1111ae222b5852d9d9b2cf0ecbfe77ac", warnings = "" }] }]] diff --git a/tests/expectations/compiler/scalar/scalar.out b/tests/expectations/compiler/scalar/scalar.out index 7c393963fe..4bc5d4608e 100644 --- a/tests/expectations/compiler/scalar/scalar.out +++ b/tests/expectations/compiler/scalar/scalar.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "2ef042858531dce1d8583ebee5f799243cabbf2327d245957c535a35c146aef9", dce_ast = "363486996189f58dd61c8f870d04d8a0866182988752f753bee9ac4f5189c066", destructured_ast = "363486996189f58dd61c8f870d04d8a0866182988752f753bee9ac4f5189c066", errors = "", flattened_ast = "79dc2e03456aefcd846315cc29aa9b945f7a0fd9982f4b77a4648dc3078b0158", initial_ast = "54c4974b341a6c6606e0c97c7d68cc3f482e363a5cc7b4e6fa7b4fee0829fa02", initial_symbol_table = "473d6a9c94ce262fae794be27e7aef3a427119fda8608eb0aebb196ac1f78c54", inlined_ast = "363486996189f58dd61c8f870d04d8a0866182988752f753bee9ac4f5189c066", ssa_ast = "7ea4178f85831e1c416e8bbfd418a3283139ddba456e4360276f2e3f3f0bd3fb", type_checked_symbol_table = "2f307932b0cbc2ca4f7423aa958aebab6babf6cdc94cff68a4da2b2e84ec5b11", unrolled_ast = "54c4974b341a6c6606e0c97c7d68cc3f482e363a5cc7b4e6fa7b4fee0829fa02", unrolled_symbol_table = "2f307932b0cbc2ca4f7423aa958aebab6babf6cdc94cff68a4da2b2e84ec5b11", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as scalar.private; + add 1scalar r0 into r1; + is.eq r1 0scalar into r2; + output r2 as boolean.private; +""", dce_ast = "363486996189f58dd61c8f870d04d8a0866182988752f753bee9ac4f5189c066", destructured_ast = "363486996189f58dd61c8f870d04d8a0866182988752f753bee9ac4f5189c066", errors = "", flattened_ast = "79dc2e03456aefcd846315cc29aa9b945f7a0fd9982f4b77a4648dc3078b0158", initial_ast = "54c4974b341a6c6606e0c97c7d68cc3f482e363a5cc7b4e6fa7b4fee0829fa02", initial_symbol_table = "473d6a9c94ce262fae794be27e7aef3a427119fda8608eb0aebb196ac1f78c54", inlined_ast = "363486996189f58dd61c8f870d04d8a0866182988752f753bee9ac4f5189c066", ssa_ast = "7ea4178f85831e1c416e8bbfd418a3283139ddba456e4360276f2e3f3f0bd3fb", type_checked_symbol_table = "2f307932b0cbc2ca4f7423aa958aebab6babf6cdc94cff68a4da2b2e84ec5b11", unrolled_ast = "54c4974b341a6c6606e0c97c7d68cc3f482e363a5cc7b4e6fa7b4fee0829fa02", unrolled_symbol_table = "2f307932b0cbc2ca4f7423aa958aebab6babf6cdc94cff68a4da2b2e84ec5b11", warnings = "" }] }]] diff --git a/tests/expectations/compiler/scalar/ternary.out b/tests/expectations/compiler/scalar/ternary.out index 23ffc96cc6..78b9c01c95 100644 --- a/tests/expectations/compiler/scalar/ternary.out +++ b/tests/expectations/compiler/scalar/ternary.out @@ -1,3 +1,17 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "23e6cb091f2093299d0ea6100cce0c3af523c81111da120d423976348681eda9", dce_ast = "d64ef0db38c612033a001c67e24cd49241f12721bc99c1e4db7d22ee21bed95d", destructured_ast = "d64ef0db38c612033a001c67e24cd49241f12721bc99c1e4db7d22ee21bed95d", errors = "", flattened_ast = "93a8127ad98bafd98a590dd5aeaa30dc09995496234ae6a9af65979e2c850d4e", initial_ast = "2a0531cf8132bed35359f8b4cb42bea1e00ca2073408652d8e1e6d3d27898386", initial_symbol_table = "fa202704c32803dd5a46673bb1ce18f4db31f10844f59e0dd951bfed478abf56", inlined_ast = "d64ef0db38c612033a001c67e24cd49241f12721bc99c1e4db7d22ee21bed95d", ssa_ast = "62a8070c73b9fc85238dfbacbdf238885d9d916ea1a8beff437ae92987edf9e6", type_checked_symbol_table = "577d0a03f442778c7c07da5fe974c45fe418fe1cab9238773d4749a3f99d2731", unrolled_ast = "2a0531cf8132bed35359f8b4cb42bea1e00ca2073408652d8e1e6d3d27898386", unrolled_symbol_table = "577d0a03f442778c7c07da5fe974c45fe418fe1cab9238773d4749a3f99d2731", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as scalar.private; + input r1 as scalar.private; + input r2 as scalar.private; + is.eq r1 1scalar into r3; + is.eq r0 1scalar into r4; + is.eq r2 2scalar into r5; + ternary r3 r4 r5 into r6; + output r6 as boolean.private; +""", dce_ast = "d64ef0db38c612033a001c67e24cd49241f12721bc99c1e4db7d22ee21bed95d", destructured_ast = "d64ef0db38c612033a001c67e24cd49241f12721bc99c1e4db7d22ee21bed95d", errors = "", flattened_ast = "93a8127ad98bafd98a590dd5aeaa30dc09995496234ae6a9af65979e2c850d4e", initial_ast = "2a0531cf8132bed35359f8b4cb42bea1e00ca2073408652d8e1e6d3d27898386", initial_symbol_table = "fa202704c32803dd5a46673bb1ce18f4db31f10844f59e0dd951bfed478abf56", inlined_ast = "d64ef0db38c612033a001c67e24cd49241f12721bc99c1e4db7d22ee21bed95d", ssa_ast = "62a8070c73b9fc85238dfbacbdf238885d9d916ea1a8beff437ae92987edf9e6", type_checked_symbol_table = "577d0a03f442778c7c07da5fe974c45fe418fe1cab9238773d4749a3f99d2731", unrolled_ast = "2a0531cf8132bed35359f8b4cb42bea1e00ca2073408652d8e1e6d3d27898386", unrolled_symbol_table = "577d0a03f442778c7c07da5fe974c45fe418fe1cab9238773d4749a3f99d2731", warnings = "" }] }]] diff --git a/tests/expectations/compiler/signature/signature.out b/tests/expectations/compiler/signature/signature.out index 41281d8653..0c22280aa1 100644 --- a/tests/expectations/compiler/signature/signature.out +++ b/tests/expectations/compiler/signature/signature.out @@ -1,3 +1,35 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "9a042a6076c83bb376f10443261e56704956030b03df62da5d5f4742ac10c74d", dce_ast = "2949f1e4a4122944d8290090c64803da4b01a906ae80f638bfc1ec476c532c9b", destructured_ast = "5b538c9ed88a40b1edd4637f54285fdd57c6ff958eadcba54df999d8ead20f3d", errors = "", flattened_ast = "e557a38874f1309f1096546ebfb13100af7770ca3c43bdf1d6b473e7ea0d803b", initial_ast = "eaba8c7e44dacd5223292622bdb6d6f372dea1d9d113f091fbcfc8b61ca96039", initial_symbol_table = "70a3be0d7dcfa274581f374e661b48f26ed51cb4532c9566e0de9d76eb8c1cb9", inlined_ast = "5b538c9ed88a40b1edd4637f54285fdd57c6ff958eadcba54df999d8ead20f3d", ssa_ast = "1d8578ea33d84f2462b0d59ed44801a07f335a64596b919926e921943324f821", type_checked_symbol_table = "0a541ea8d67a3cab711d7ec8cb1cf264c1ec58c5a08d43efb9970b38b37f2260", unrolled_ast = "eaba8c7e44dacd5223292622bdb6d6f372dea1d9d113f091fbcfc8b61ca96039", unrolled_symbol_table = "0a541ea8d67a3cab711d7ec8cb1cf264c1ec58c5a08d43efb9970b38b37f2260", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +struct foo: + a as u8; + b as scalar; + + +function verify_field: + input r0 as signature.private; + input r1 as address.private; + input r2 as field.private; + sign.verify r0 r1 r2 into r3; + sign.verify r0 r1 r2 into r4; + assert.eq r3 r4; + + +function verify_foo: + input r0 as signature.private; + input r1 as address.private; + input r2 as foo.private; + sign.verify r0 r1 r2 into r3; + sign.verify r0 r1 r2 into r4; + assert.eq r3 r4; + + +function literal_ops_on_signature: + input r0 as boolean.private; + input r1 as signature.private; + input r2 as signature.private; + ternary r0 r1 r2 into r3; + output r3 as signature.private; +""", dce_ast = "2949f1e4a4122944d8290090c64803da4b01a906ae80f638bfc1ec476c532c9b", destructured_ast = "5b538c9ed88a40b1edd4637f54285fdd57c6ff958eadcba54df999d8ead20f3d", errors = "", flattened_ast = "e557a38874f1309f1096546ebfb13100af7770ca3c43bdf1d6b473e7ea0d803b", initial_ast = "eaba8c7e44dacd5223292622bdb6d6f372dea1d9d113f091fbcfc8b61ca96039", initial_symbol_table = "70a3be0d7dcfa274581f374e661b48f26ed51cb4532c9566e0de9d76eb8c1cb9", inlined_ast = "5b538c9ed88a40b1edd4637f54285fdd57c6ff958eadcba54df999d8ead20f3d", ssa_ast = "1d8578ea33d84f2462b0d59ed44801a07f335a64596b919926e921943324f821", type_checked_symbol_table = "0a541ea8d67a3cab711d7ec8cb1cf264c1ec58c5a08d43efb9970b38b37f2260", unrolled_ast = "eaba8c7e44dacd5223292622bdb6d6f372dea1d9d113f091fbcfc8b61ca96039", unrolled_symbol_table = "0a541ea8d67a3cab711d7ec8cb1cf264c1ec58c5a08d43efb9970b38b37f2260", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/assign.out b/tests/expectations/compiler/statements/assign.out index 14b4d2e7d1..244507351b 100644 --- a/tests/expectations/compiler/statements/assign.out +++ b/tests/expectations/compiler/statements/assign.out @@ -1,3 +1,17 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "5487f807b82f67172b386aaf992fed06bcb134d1749202c409a300633a37a9bf", dce_ast = "f06f4f184c5dad19a346fdcf168240765bda3758ace5f0b80451c60adf544374", destructured_ast = "c3d78a54d7b38b9e47ef92ab94d93d3530f94f28d14a9a105d00686e750ca862", errors = "", flattened_ast = "8a821b2ed86abdf4344ec3e58b1f13cfa8d42cd2fbcd692b60b975ff968df287", initial_ast = "6019b8c22dc3784fa95210eecf929efcb66246ce03f9ae5d867e187d4bcc8788", initial_symbol_table = "c5296c3c050ba748e66ec721f6a058fd4fdb612afbe9e41054cd482b67e6e6f9", inlined_ast = "c3d78a54d7b38b9e47ef92ab94d93d3530f94f28d14a9a105d00686e750ca862", ssa_ast = "fe7e915193461f768fdf91bf468873c767d5f6b6964a2f36fc5b47018aca2472", type_checked_symbol_table = "d57006f90dddfbb3c280166cfd60539aa64e2db1cb424f8d3f4c72a3087910da", unrolled_ast = "6019b8c22dc3784fa95210eecf929efcb66246ce03f9ae5d867e187d4bcc8788", unrolled_symbol_table = "d57006f90dddfbb3c280166cfd60539aa64e2db1cb424f8d3f4c72a3087910da", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + is.eq r0 0u8 into r2; + add r1 1u8 into r3; + add r1 2u8 into r4; + ternary r2 r3 r4 into r5; + ternary r2 r3 r5 into r6; + output r6 as u8.private; +""", dce_ast = "f06f4f184c5dad19a346fdcf168240765bda3758ace5f0b80451c60adf544374", destructured_ast = "c3d78a54d7b38b9e47ef92ab94d93d3530f94f28d14a9a105d00686e750ca862", errors = "", flattened_ast = "8a821b2ed86abdf4344ec3e58b1f13cfa8d42cd2fbcd692b60b975ff968df287", initial_ast = "6019b8c22dc3784fa95210eecf929efcb66246ce03f9ae5d867e187d4bcc8788", initial_symbol_table = "c5296c3c050ba748e66ec721f6a058fd4fdb612afbe9e41054cd482b67e6e6f9", inlined_ast = "c3d78a54d7b38b9e47ef92ab94d93d3530f94f28d14a9a105d00686e750ca862", ssa_ast = "fe7e915193461f768fdf91bf468873c767d5f6b6964a2f36fc5b47018aca2472", type_checked_symbol_table = "d57006f90dddfbb3c280166cfd60539aa64e2db1cb424f8d3f4c72a3087910da", unrolled_ast = "6019b8c22dc3784fa95210eecf929efcb66246ce03f9ae5d867e187d4bcc8788", unrolled_symbol_table = "d57006f90dddfbb3c280166cfd60539aa64e2db1cb424f8d3f4c72a3087910da", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/block.out b/tests/expectations/compiler/statements/block.out index 81003cbf51..864f3803de 100644 --- a/tests/expectations/compiler/statements/block.out +++ b/tests/expectations/compiler/statements/block.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "9f2bbabd0f858db6e5f4e529fdd5e246023994bf27bbabe6dc1aa6bbf8bf5cfd", dce_ast = "a67dd749de940cfb6178589a3cee151421b0fe59c8b0a9b088fd2df13a1b0327", destructured_ast = "a67dd749de940cfb6178589a3cee151421b0fe59c8b0a9b088fd2df13a1b0327", errors = "", flattened_ast = "cd83d20fc3ca8cbed971b4bc4eec01122ececcad666ff3574cf6f3bcdd71d77e", initial_ast = "2d472d7bb8a500e9e65488129e69017f22feca53fc8a4900f58fa70cc30fb16d", initial_symbol_table = "6509016b6899f5938f44b2dab2c895fb70c487d9413773a25f58619ab9b0a9be", inlined_ast = "a67dd749de940cfb6178589a3cee151421b0fe59c8b0a9b088fd2df13a1b0327", ssa_ast = "ae4b1451d5a14f4b988437ce8a0c5a0c23080a5d6711350fbe768b667f699639", type_checked_symbol_table = "a5d794d5bef4b835ddb9b80bc89ae26e95f0bfdbb347192ea01936ec37025ef6", unrolled_ast = "2d472d7bb8a500e9e65488129e69017f22feca53fc8a4900f58fa70cc30fb16d", unrolled_symbol_table = "a5d794d5bef4b835ddb9b80bc89ae26e95f0bfdbb347192ea01936ec37025ef6", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + add r0 5u32 into r1; + is.eq r1 8u32 into r2; + output r2 as boolean.private; +""", dce_ast = "a67dd749de940cfb6178589a3cee151421b0fe59c8b0a9b088fd2df13a1b0327", destructured_ast = "a67dd749de940cfb6178589a3cee151421b0fe59c8b0a9b088fd2df13a1b0327", errors = "", flattened_ast = "cd83d20fc3ca8cbed971b4bc4eec01122ececcad666ff3574cf6f3bcdd71d77e", initial_ast = "2d472d7bb8a500e9e65488129e69017f22feca53fc8a4900f58fa70cc30fb16d", initial_symbol_table = "6509016b6899f5938f44b2dab2c895fb70c487d9413773a25f58619ab9b0a9be", inlined_ast = "a67dd749de940cfb6178589a3cee151421b0fe59c8b0a9b088fd2df13a1b0327", ssa_ast = "ae4b1451d5a14f4b988437ce8a0c5a0c23080a5d6711350fbe768b667f699639", type_checked_symbol_table = "a5d794d5bef4b835ddb9b80bc89ae26e95f0bfdbb347192ea01936ec37025ef6", unrolled_ast = "2d472d7bb8a500e9e65488129e69017f22feca53fc8a4900f58fa70cc30fb16d", unrolled_symbol_table = "a5d794d5bef4b835ddb9b80bc89ae26e95f0bfdbb347192ea01936ec37025ef6", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/chain.out b/tests/expectations/compiler/statements/chain.out index 9b80485fb3..f56154e078 100644 --- a/tests/expectations/compiler/statements/chain.out +++ b/tests/expectations/compiler/statements/chain.out @@ -1,3 +1,16 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f6aaf7f7a13fb233511385db7479f2612e7a77734ee6a189f063bd3d33a7afaa", dce_ast = "b43faebb2985c920347a8d103943a3d3fd53dae5ce6a62647c9067c7d009132f", destructured_ast = "b11799e3b04a7c0d53a117d990176c346076772d0a1e86e48884cef62618ee04", errors = "", flattened_ast = "1efcab145973980eabc68bb0ec6624b8b5d42bba4c38771f88b7a2cee35cdef3", initial_ast = "8e0c70c47df22261563266d35bc5f3a25169c65c705ed9e33bbe51a92611dccc", initial_symbol_table = "fbff18c8e518cc59798797648b6845d8968c59a71c7f87af586f9defffdd546d", inlined_ast = "b11799e3b04a7c0d53a117d990176c346076772d0a1e86e48884cef62618ee04", ssa_ast = "2d738c04e5ae989b25373b5d96877981a85862653298922e8feffde828808c07", type_checked_symbol_table = "1c499f9d112fdf719a72b2435ef012d7b5e4b41cc0c67ff5c90f5b39cf6e11bc", unrolled_ast = "8e0c70c47df22261563266d35bc5f3a25169c65c705ed9e33bbe51a92611dccc", unrolled_symbol_table = "1c499f9d112fdf719a72b2435ef012d7b5e4b41cc0c67ff5c90f5b39cf6e11bc", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + is.eq r0 1u32 into r1; + is.eq r0 2u32 into r2; + ternary r2 2u32 3u32 into r3; + ternary r1 1u32 r3 into r4; + is.eq r4 r0 into r5; + output r5 as boolean.private; +""", dce_ast = "b43faebb2985c920347a8d103943a3d3fd53dae5ce6a62647c9067c7d009132f", destructured_ast = "b11799e3b04a7c0d53a117d990176c346076772d0a1e86e48884cef62618ee04", errors = "", flattened_ast = "1efcab145973980eabc68bb0ec6624b8b5d42bba4c38771f88b7a2cee35cdef3", initial_ast = "8e0c70c47df22261563266d35bc5f3a25169c65c705ed9e33bbe51a92611dccc", initial_symbol_table = "fbff18c8e518cc59798797648b6845d8968c59a71c7f87af586f9defffdd546d", inlined_ast = "b11799e3b04a7c0d53a117d990176c346076772d0a1e86e48884cef62618ee04", ssa_ast = "2d738c04e5ae989b25373b5d96877981a85862653298922e8feffde828808c07", type_checked_symbol_table = "1c499f9d112fdf719a72b2435ef012d7b5e4b41cc0c67ff5c90f5b39cf6e11bc", unrolled_ast = "8e0c70c47df22261563266d35bc5f3a25169c65c705ed9e33bbe51a92611dccc", unrolled_symbol_table = "1c499f9d112fdf719a72b2435ef012d7b5e4b41cc0c67ff5c90f5b39cf6e11bc", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/expr_statement.out b/tests/expectations/compiler/statements/expr_statement.out index 546c0d397b..c7ce7f42d3 100644 --- a/tests/expectations/compiler/statements/expr_statement.out +++ b/tests/expectations/compiler/statements/expr_statement.out @@ -1,3 +1,20 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "401bb4388cffbc9e0df078a93024b669f7de284cfe97f564143486a27cb070ab", dce_ast = "fe589fd7800068d9e3452a51b48e0af5462c39bfecbf670290ee8880f52a4b05", destructured_ast = "bedc21928bb999a9644ee94c09ff6b44ae4cc46296b31b2a3e67d448ed272fec", errors = "", flattened_ast = "db92a5e180f9ae7502df883de11b44aea7c08e8fee517d1cfa7bdda51777fbbf", initial_ast = "eaa9f399bc9592a47c43d90c07ee8813e6a11327a31c9c4a4019ddf49bfd31c2", initial_symbol_table = "230456a912e68c6bf7bc61830676d9977f6aee13e2ae69546b077d939c547002", inlined_ast = "fe589fd7800068d9e3452a51b48e0af5462c39bfecbf670290ee8880f52a4b05", ssa_ast = "98648a4077c879caa3646f9610036e6843e9940a61af40705985ddc8da2325df", type_checked_symbol_table = "72c1cdf55cba381c3beb41099f7b8e32a7f0ec9bfb91f05182d8fff3e478c4f1", unrolled_ast = "eaa9f399bc9592a47c43d90c07ee8813e6a11327a31c9c4a4019ddf49bfd31c2", unrolled_symbol_table = "72c1cdf55cba381c3beb41099f7b8e32a7f0ec9bfb91f05182d8fff3e478c4f1", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +closure foo: + input r0 as u8; + input r1 as u8; + assert.eq r0 r1; + + +function main: + input r0 as u8.private; + input r1 as u8.private; + call foo r0 r1; + add r0 r1 into r2; + output r2 as u8.private; +""", dce_ast = "fe589fd7800068d9e3452a51b48e0af5462c39bfecbf670290ee8880f52a4b05", destructured_ast = "bedc21928bb999a9644ee94c09ff6b44ae4cc46296b31b2a3e67d448ed272fec", errors = "", flattened_ast = "db92a5e180f9ae7502df883de11b44aea7c08e8fee517d1cfa7bdda51777fbbf", initial_ast = "eaa9f399bc9592a47c43d90c07ee8813e6a11327a31c9c4a4019ddf49bfd31c2", initial_symbol_table = "230456a912e68c6bf7bc61830676d9977f6aee13e2ae69546b077d939c547002", inlined_ast = "fe589fd7800068d9e3452a51b48e0af5462c39bfecbf670290ee8880f52a4b05", ssa_ast = "98648a4077c879caa3646f9610036e6843e9940a61af40705985ddc8da2325df", type_checked_symbol_table = "72c1cdf55cba381c3beb41099f7b8e32a7f0ec9bfb91f05182d8fff3e478c4f1", unrolled_ast = "eaa9f399bc9592a47c43d90c07ee8813e6a11327a31c9c4a4019ddf49bfd31c2", unrolled_symbol_table = "72c1cdf55cba381c3beb41099f7b8e32a7f0ec9bfb91f05182d8fff3e478c4f1", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/iteration_basic.out b/tests/expectations/compiler/statements/iteration_basic.out index 8b7c8ca8d5..d574e1b12a 100644 --- a/tests/expectations/compiler/statements/iteration_basic.out +++ b/tests/expectations/compiler/statements/iteration_basic.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "41bf59ecf2ab2485e223b6501897613108441d2d881640d2d235f79201615cd3", dce_ast = "49e5e652220c7363f8456a48aacaba9768f0bfaccff18425f9201156194fb5ce", destructured_ast = "49e5e652220c7363f8456a48aacaba9768f0bfaccff18425f9201156194fb5ce", errors = "", flattened_ast = "b4ca778e94be2312fd745641784c84d39d3cd4994dec31d622bc1903d06bbe13", initial_ast = "c853d211f0b9902b1978a581b79719747d48e271dc56f1a73237ff53581f6375", initial_symbol_table = "fbff18c8e518cc59798797648b6845d8968c59a71c7f87af586f9defffdd546d", inlined_ast = "49e5e652220c7363f8456a48aacaba9768f0bfaccff18425f9201156194fb5ce", ssa_ast = "b40a70be25d97306588239f437b2ac56433322bea24c3e5f897b5f87c4853e4e", type_checked_symbol_table = "9c755ac6de6948601c6b5adfb40ab6ca04078e174f138e8ad27592c4f01a275d", unrolled_ast = "b39f8f9a660f6f85e936c7305764806ce1fdee4097556428d9681453f792ea62", unrolled_symbol_table = "85a0ed39469e64279b86e43dc54f422e7680521404a58414453c511604cea265", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + sub r0 1u32 into r1; + sub r1 1u32 into r2; + sub r2 1u32 into r3; + is.eq r3 0u32 into r4; + output r4 as boolean.private; +""", dce_ast = "49e5e652220c7363f8456a48aacaba9768f0bfaccff18425f9201156194fb5ce", destructured_ast = "49e5e652220c7363f8456a48aacaba9768f0bfaccff18425f9201156194fb5ce", errors = "", flattened_ast = "b4ca778e94be2312fd745641784c84d39d3cd4994dec31d622bc1903d06bbe13", initial_ast = "c853d211f0b9902b1978a581b79719747d48e271dc56f1a73237ff53581f6375", initial_symbol_table = "fbff18c8e518cc59798797648b6845d8968c59a71c7f87af586f9defffdd546d", inlined_ast = "49e5e652220c7363f8456a48aacaba9768f0bfaccff18425f9201156194fb5ce", ssa_ast = "b40a70be25d97306588239f437b2ac56433322bea24c3e5f897b5f87c4853e4e", type_checked_symbol_table = "9c755ac6de6948601c6b5adfb40ab6ca04078e174f138e8ad27592c4f01a275d", unrolled_ast = "b39f8f9a660f6f85e936c7305764806ce1fdee4097556428d9681453f792ea62", unrolled_symbol_table = "85a0ed39469e64279b86e43dc54f422e7680521404a58414453c511604cea265", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/iteration_nested.out b/tests/expectations/compiler/statements/iteration_nested.out index 1f9eadd3ee..bb45b86282 100644 --- a/tests/expectations/compiler/statements/iteration_nested.out +++ b/tests/expectations/compiler/statements/iteration_nested.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e6fba28a70e1d844cc46f8e9dcf040658b9431f4fd49a4896dfc7ffb3ebfeb25", dce_ast = "7a7b7dd51563b8199d2de27e345c59f4053dfcba829c1ca6f1b16d58d0fe5b6a", destructured_ast = "7a7b7dd51563b8199d2de27e345c59f4053dfcba829c1ca6f1b16d58d0fe5b6a", errors = "", flattened_ast = "4ec88aa2da726e5ea30fbd75c97e80f1aab21674e31bd06845123a8527f249df", initial_ast = "7c9468d2e25b8d770277e8ae01d776a99c2fe1b2b3cc5a26fa45924fbb255629", initial_symbol_table = "693367bfa3262d97165d4f65744db680a42887af9466271e997ce5ecfb4e4ad8", inlined_ast = "7a7b7dd51563b8199d2de27e345c59f4053dfcba829c1ca6f1b16d58d0fe5b6a", ssa_ast = "f1c9aab6abecb5132f37e0a83ddebbe79eb90c10a8dd08be7b87aa310b0ba880", type_checked_symbol_table = "2df26b219d452e5c67834698c8ccd216f94185f885b10e5d2fb7d52cf364a8fe", unrolled_ast = "a5f436cc41ecc729d5108f79abaa12a65d4036c3994541ae1cf475b734ccd3c5", unrolled_symbol_table = "b89ab5cc076c8120d75083c1b01cab5c0bdb9c8a1527da28df2763b584375659", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + add r0 1u32 into r1; + add r1 1u32 into r2; + add r2 1u32 into r3; + add r3 1u32 into r4; + output r4 as u32.private; +""", dce_ast = "7a7b7dd51563b8199d2de27e345c59f4053dfcba829c1ca6f1b16d58d0fe5b6a", destructured_ast = "7a7b7dd51563b8199d2de27e345c59f4053dfcba829c1ca6f1b16d58d0fe5b6a", errors = "", flattened_ast = "4ec88aa2da726e5ea30fbd75c97e80f1aab21674e31bd06845123a8527f249df", initial_ast = "7c9468d2e25b8d770277e8ae01d776a99c2fe1b2b3cc5a26fa45924fbb255629", initial_symbol_table = "693367bfa3262d97165d4f65744db680a42887af9466271e997ce5ecfb4e4ad8", inlined_ast = "7a7b7dd51563b8199d2de27e345c59f4053dfcba829c1ca6f1b16d58d0fe5b6a", ssa_ast = "f1c9aab6abecb5132f37e0a83ddebbe79eb90c10a8dd08be7b87aa310b0ba880", type_checked_symbol_table = "2df26b219d452e5c67834698c8ccd216f94185f885b10e5d2fb7d52cf364a8fe", unrolled_ast = "a5f436cc41ecc729d5108f79abaa12a65d4036c3994541ae1cf475b734ccd3c5", unrolled_symbol_table = "b89ab5cc076c8120d75083c1b01cab5c0bdb9c8a1527da28df2763b584375659", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/multiple_returns.out b/tests/expectations/compiler/statements/multiple_returns.out index 2abcc1cfdb..a4ca88ef40 100644 --- a/tests/expectations/compiler/statements/multiple_returns.out +++ b/tests/expectations/compiler/statements/multiple_returns.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e8fad70723ee17dc768faab9e2ee64ec338b6b1bd4ec1d9350791665c1abd697", dce_ast = "4bbb3efdf7be6bd5d87995ed2787265dca604575a2b898a7a9cbe0b889bc235b", destructured_ast = "690ca5d32129c085b7897ff25c87a8a95cfc0cf35cec0f3d5742aa68ef4a1a31", errors = "", flattened_ast = "9ce05cb73e1f012bada5972095cc1c0602d96bd63a4fe58029f2c073a8eab51c", initial_ast = "bbcf9d2685d85c7655c97568ff51cb46dd1aee6ee92af6eb4b9ef6b917ce928e", initial_symbol_table = "fbff18c8e518cc59798797648b6845d8968c59a71c7f87af586f9defffdd546d", inlined_ast = "690ca5d32129c085b7897ff25c87a8a95cfc0cf35cec0f3d5742aa68ef4a1a31", ssa_ast = "d9f3b16b2a063335a36b56798ffaf578d6f04fbe70003ec15a30783590c1dce4", type_checked_symbol_table = "547e915a015c4525dea0cdebf573bd82f8b5719b0eae671afc8a05bc48833938", unrolled_ast = "bbcf9d2685d85c7655c97568ff51cb46dd1aee6ee92af6eb4b9ef6b917ce928e", unrolled_symbol_table = "547e915a015c4525dea0cdebf573bd82f8b5719b0eae671afc8a05bc48833938", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + is.eq r0 3u32 into r1; + ternary r1 true false into r2; + output r2 as boolean.private; +""", dce_ast = "4bbb3efdf7be6bd5d87995ed2787265dca604575a2b898a7a9cbe0b889bc235b", destructured_ast = "690ca5d32129c085b7897ff25c87a8a95cfc0cf35cec0f3d5742aa68ef4a1a31", errors = "", flattened_ast = "9ce05cb73e1f012bada5972095cc1c0602d96bd63a4fe58029f2c073a8eab51c", initial_ast = "bbcf9d2685d85c7655c97568ff51cb46dd1aee6ee92af6eb4b9ef6b917ce928e", initial_symbol_table = "fbff18c8e518cc59798797648b6845d8968c59a71c7f87af586f9defffdd546d", inlined_ast = "690ca5d32129c085b7897ff25c87a8a95cfc0cf35cec0f3d5742aa68ef4a1a31", ssa_ast = "d9f3b16b2a063335a36b56798ffaf578d6f04fbe70003ec15a30783590c1dce4", type_checked_symbol_table = "547e915a015c4525dea0cdebf573bd82f8b5719b0eae671afc8a05bc48833938", unrolled_ast = "bbcf9d2685d85c7655c97568ff51cb46dd1aee6ee92af6eb4b9ef6b917ce928e", unrolled_symbol_table = "547e915a015c4525dea0cdebf573bd82f8b5719b0eae671afc8a05bc48833938", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/mutate.out b/tests/expectations/compiler/statements/mutate.out index d93108ec30..2e63249818 100644 --- a/tests/expectations/compiler/statements/mutate.out +++ b/tests/expectations/compiler/statements/mutate.out @@ -1,3 +1,17 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4f4c5c377fed78feede8ee754c9f838f449f8d00cf771b2bb65884e876f90b7e", dce_ast = "1bf4801943a35c63849ec343cf26a5888fa9852805514a499fc1162bbb51e31a", destructured_ast = "9ad6ed4557a609671cf3ea7d235114c74fd03717675f28c728240a61d72f38eb", errors = "", flattened_ast = "ebf21ee2f562b59de5164c9965fbb2e822bd5c8e847def54c41738d4df96a25e", initial_ast = "b6b526e4450475b5f337242783f48a4dd7342a4b5c9639b23d490bfd96a63a1a", initial_symbol_table = "fbff18c8e518cc59798797648b6845d8968c59a71c7f87af586f9defffdd546d", inlined_ast = "9ad6ed4557a609671cf3ea7d235114c74fd03717675f28c728240a61d72f38eb", ssa_ast = "23fb955e50de14a4131b2db621a24d05ac52d5ac7af341e7dde5d24479203cda", type_checked_symbol_table = "a3be54023f98304a5cc208259f2287f70181c602ec496bc36df8e16ada051de8", unrolled_ast = "b6b526e4450475b5f337242783f48a4dd7342a4b5c9639b23d490bfd96a63a1a", unrolled_symbol_table = "a3be54023f98304a5cc208259f2287f70181c602ec496bc36df8e16ada051de8", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + is.eq r0 3u32 into r1; + ternary r1 1u32 0u32 into r2; + is.eq r0 3u32 into r3; + is.eq r2 1u32 into r4; + is.eq r2 0u32 into r5; + ternary r3 r4 r5 into r6; + output r6 as boolean.private; +""", dce_ast = "1bf4801943a35c63849ec343cf26a5888fa9852805514a499fc1162bbb51e31a", destructured_ast = "9ad6ed4557a609671cf3ea7d235114c74fd03717675f28c728240a61d72f38eb", errors = "", flattened_ast = "ebf21ee2f562b59de5164c9965fbb2e822bd5c8e847def54c41738d4df96a25e", initial_ast = "b6b526e4450475b5f337242783f48a4dd7342a4b5c9639b23d490bfd96a63a1a", initial_symbol_table = "fbff18c8e518cc59798797648b6845d8968c59a71c7f87af586f9defffdd546d", inlined_ast = "9ad6ed4557a609671cf3ea7d235114c74fd03717675f28c728240a61d72f38eb", ssa_ast = "23fb955e50de14a4131b2db621a24d05ac52d5ac7af341e7dde5d24479203cda", type_checked_symbol_table = "a3be54023f98304a5cc208259f2287f70181c602ec496bc36df8e16ada051de8", unrolled_ast = "b6b526e4450475b5f337242783f48a4dd7342a4b5c9639b23d490bfd96a63a1a", unrolled_symbol_table = "a3be54023f98304a5cc208259f2287f70181c602ec496bc36df8e16ada051de8", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/operations/add_assign.out b/tests/expectations/compiler/statements/operations/add_assign.out index 4348c5e19c..f8a3ab6802 100644 --- a/tests/expectations/compiler/statements/operations/add_assign.out +++ b/tests/expectations/compiler/statements/operations/add_assign.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f9bb06bbdb06665d260633e11e377d5b2a428e169220f31b9ad9cd8ac8c94f6d", dce_ast = "018126b1bbb84d342a819f36b23ce9b6e68cd862562db83376cf61344103b7ee", destructured_ast = "018126b1bbb84d342a819f36b23ce9b6e68cd862562db83376cf61344103b7ee", errors = "", flattened_ast = "b5f30a511177f0ef462c7604003daca6cf89e4d4c402ab635e6fa35100c58b27", initial_ast = "786ce77eead62bf47c1ff5c00e4e2699118f1a41b79db2383ce844d13acca503", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "018126b1bbb84d342a819f36b23ce9b6e68cd862562db83376cf61344103b7ee", ssa_ast = "4db0697a00c7c000e48392d0be6e40eb3a5c27ac4f9c9442558961617cce6621", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "786ce77eead62bf47c1ff5c00e4e2699118f1a41b79db2383ce844d13acca503", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + add 1u8 r0 into r1; + output r1 as u8.private; +""", dce_ast = "018126b1bbb84d342a819f36b23ce9b6e68cd862562db83376cf61344103b7ee", destructured_ast = "018126b1bbb84d342a819f36b23ce9b6e68cd862562db83376cf61344103b7ee", errors = "", flattened_ast = "b5f30a511177f0ef462c7604003daca6cf89e4d4c402ab635e6fa35100c58b27", initial_ast = "786ce77eead62bf47c1ff5c00e4e2699118f1a41b79db2383ce844d13acca503", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "018126b1bbb84d342a819f36b23ce9b6e68cd862562db83376cf61344103b7ee", ssa_ast = "4db0697a00c7c000e48392d0be6e40eb3a5c27ac4f9c9442558961617cce6621", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "786ce77eead62bf47c1ff5c00e4e2699118f1a41b79db2383ce844d13acca503", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/operations/and_assign.out b/tests/expectations/compiler/statements/operations/and_assign.out index 9d71af48b5..ff57be40a6 100644 --- a/tests/expectations/compiler/statements/operations/and_assign.out +++ b/tests/expectations/compiler/statements/operations/and_assign.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "7b9e392bda5b29d56ff94dc3eaefe68313d852336209db998714308d19ea6102", dce_ast = "d83c2cfbe7bf676fec0845a5e9251e43ce213a7d40bc9f695978429e5b4a86e5", destructured_ast = "d83c2cfbe7bf676fec0845a5e9251e43ce213a7d40bc9f695978429e5b4a86e5", errors = "", flattened_ast = "f13e07a9dc3fd6be29c0a6a6a4a24b55ecc21969d0727ce2bbe79d09747cc0c0", initial_ast = "2828aaa6e47f5d658f33094a37622c1206fe7d7c9050e1fbed30d8b87edece71", initial_symbol_table = "e03b4d8eaccf3cd016b4eb081690ba20dc331352711628cd8a2d3290c1995b9b", inlined_ast = "d83c2cfbe7bf676fec0845a5e9251e43ce213a7d40bc9f695978429e5b4a86e5", ssa_ast = "e436693135f765ec1e2237a0c073ac52dea3781c6c62d8a4d55cca8a3bdbf080", type_checked_symbol_table = "f002030b982fc51b61e7c8a8df5141139c28eece313f2f41a61052bed8c0ab79", unrolled_ast = "2828aaa6e47f5d658f33094a37622c1206fe7d7c9050e1fbed30d8b87edece71", unrolled_symbol_table = "f002030b982fc51b61e7c8a8df5141139c28eece313f2f41a61052bed8c0ab79", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + and true r0 into r1; + output r1 as boolean.private; +""", dce_ast = "d83c2cfbe7bf676fec0845a5e9251e43ce213a7d40bc9f695978429e5b4a86e5", destructured_ast = "d83c2cfbe7bf676fec0845a5e9251e43ce213a7d40bc9f695978429e5b4a86e5", errors = "", flattened_ast = "f13e07a9dc3fd6be29c0a6a6a4a24b55ecc21969d0727ce2bbe79d09747cc0c0", initial_ast = "2828aaa6e47f5d658f33094a37622c1206fe7d7c9050e1fbed30d8b87edece71", initial_symbol_table = "e03b4d8eaccf3cd016b4eb081690ba20dc331352711628cd8a2d3290c1995b9b", inlined_ast = "d83c2cfbe7bf676fec0845a5e9251e43ce213a7d40bc9f695978429e5b4a86e5", ssa_ast = "e436693135f765ec1e2237a0c073ac52dea3781c6c62d8a4d55cca8a3bdbf080", type_checked_symbol_table = "f002030b982fc51b61e7c8a8df5141139c28eece313f2f41a61052bed8c0ab79", unrolled_ast = "2828aaa6e47f5d658f33094a37622c1206fe7d7c9050e1fbed30d8b87edece71", unrolled_symbol_table = "f002030b982fc51b61e7c8a8df5141139c28eece313f2f41a61052bed8c0ab79", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/operations/bitand_assign.out b/tests/expectations/compiler/statements/operations/bitand_assign.out index ac13540bd9..9e071352ee 100644 --- a/tests/expectations/compiler/statements/operations/bitand_assign.out +++ b/tests/expectations/compiler/statements/operations/bitand_assign.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "6dab0d771ad5e0b95b5ded8ffb214368621dc0ee9434113549f85abd0eb6c626", dce_ast = "4c5044e5c267370f1bced8591b993c0c0e3294f725d4f13048cd43c7351d9ad3", destructured_ast = "4c5044e5c267370f1bced8591b993c0c0e3294f725d4f13048cd43c7351d9ad3", errors = "", flattened_ast = "b65e7563e2529a622e062867c8102f92b56bf727f2f2ba0ffb6238b8d1523b6d", initial_ast = "d5f8d0aa726f24a263d8a8052b08abd443a28b9bac4efda57d17d58edf47099d", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "4c5044e5c267370f1bced8591b993c0c0e3294f725d4f13048cd43c7351d9ad3", ssa_ast = "d86b1082bb92ee18f8938afc0d8ff1f043c9aeba73ae8fbf6156ba0ba6b1b81f", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "d5f8d0aa726f24a263d8a8052b08abd443a28b9bac4efda57d17d58edf47099d", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + and 1u8 r0 into r1; + output r1 as u8.private; +""", dce_ast = "4c5044e5c267370f1bced8591b993c0c0e3294f725d4f13048cd43c7351d9ad3", destructured_ast = "4c5044e5c267370f1bced8591b993c0c0e3294f725d4f13048cd43c7351d9ad3", errors = "", flattened_ast = "b65e7563e2529a622e062867c8102f92b56bf727f2f2ba0ffb6238b8d1523b6d", initial_ast = "d5f8d0aa726f24a263d8a8052b08abd443a28b9bac4efda57d17d58edf47099d", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "4c5044e5c267370f1bced8591b993c0c0e3294f725d4f13048cd43c7351d9ad3", ssa_ast = "d86b1082bb92ee18f8938afc0d8ff1f043c9aeba73ae8fbf6156ba0ba6b1b81f", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "d5f8d0aa726f24a263d8a8052b08abd443a28b9bac4efda57d17d58edf47099d", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/operations/bitor_assign.out b/tests/expectations/compiler/statements/operations/bitor_assign.out index a23d8f2e6a..3076979857 100644 --- a/tests/expectations/compiler/statements/operations/bitor_assign.out +++ b/tests/expectations/compiler/statements/operations/bitor_assign.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f551499188e28449b06b9aa17ef8af4d1daedbf0ac75484b5e3f8e81836ffb63", dce_ast = "2e71a8563a713a929ef9a97653422261d3176060bac0e35176ab2647d44a9b7c", destructured_ast = "2e71a8563a713a929ef9a97653422261d3176060bac0e35176ab2647d44a9b7c", errors = "", flattened_ast = "756bc884e81396ff00403f1ac3f97a5616faf6abace9e629a17ed2be63df9831", initial_ast = "a48a2440a8280169dfe0a6e43807580f4c5d9214712b2bc65ac14f3f60376363", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "2e71a8563a713a929ef9a97653422261d3176060bac0e35176ab2647d44a9b7c", ssa_ast = "c1eeec4760577855cd026969f8feb7603bfcc02c0124651568b00319641c5578", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "a48a2440a8280169dfe0a6e43807580f4c5d9214712b2bc65ac14f3f60376363", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + or 1u8 r0 into r1; + output r1 as u8.private; +""", dce_ast = "2e71a8563a713a929ef9a97653422261d3176060bac0e35176ab2647d44a9b7c", destructured_ast = "2e71a8563a713a929ef9a97653422261d3176060bac0e35176ab2647d44a9b7c", errors = "", flattened_ast = "756bc884e81396ff00403f1ac3f97a5616faf6abace9e629a17ed2be63df9831", initial_ast = "a48a2440a8280169dfe0a6e43807580f4c5d9214712b2bc65ac14f3f60376363", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "2e71a8563a713a929ef9a97653422261d3176060bac0e35176ab2647d44a9b7c", ssa_ast = "c1eeec4760577855cd026969f8feb7603bfcc02c0124651568b00319641c5578", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "a48a2440a8280169dfe0a6e43807580f4c5d9214712b2bc65ac14f3f60376363", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/operations/bitxor_assign.out b/tests/expectations/compiler/statements/operations/bitxor_assign.out index d81a26b293..df8bb7d8eb 100644 --- a/tests/expectations/compiler/statements/operations/bitxor_assign.out +++ b/tests/expectations/compiler/statements/operations/bitxor_assign.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "cc7cc1d77829ab20a01838d82d9d75e2f4d9b5231667aeeb7517083740d299f5", dce_ast = "116f705522f64a545ee85565520936ad2fc56356ca0d4cacbcba1c4f8c09245f", destructured_ast = "116f705522f64a545ee85565520936ad2fc56356ca0d4cacbcba1c4f8c09245f", errors = "", flattened_ast = "bb244e9de1cc4d76843dc12ff1c45fd8c8a965d93d8d5a9ff9dc34c9b3f57217", initial_ast = "3e938db85b4b5d1ca32a18dc6af6d067f4f3156b845e196d083cb980ee2bc3b1", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "116f705522f64a545ee85565520936ad2fc56356ca0d4cacbcba1c4f8c09245f", ssa_ast = "88a09c4436aff6e61ee4ff0de4098e8c591dd0ea80c23b7e75137c73d07d0b17", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "3e938db85b4b5d1ca32a18dc6af6d067f4f3156b845e196d083cb980ee2bc3b1", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + xor 1u8 r0 into r1; + output r1 as u8.private; +""", dce_ast = "116f705522f64a545ee85565520936ad2fc56356ca0d4cacbcba1c4f8c09245f", destructured_ast = "116f705522f64a545ee85565520936ad2fc56356ca0d4cacbcba1c4f8c09245f", errors = "", flattened_ast = "bb244e9de1cc4d76843dc12ff1c45fd8c8a965d93d8d5a9ff9dc34c9b3f57217", initial_ast = "3e938db85b4b5d1ca32a18dc6af6d067f4f3156b845e196d083cb980ee2bc3b1", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "116f705522f64a545ee85565520936ad2fc56356ca0d4cacbcba1c4f8c09245f", ssa_ast = "88a09c4436aff6e61ee4ff0de4098e8c591dd0ea80c23b7e75137c73d07d0b17", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "3e938db85b4b5d1ca32a18dc6af6d067f4f3156b845e196d083cb980ee2bc3b1", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/operations/div_assign.out b/tests/expectations/compiler/statements/operations/div_assign.out index 32218e6990..8209302675 100644 --- a/tests/expectations/compiler/statements/operations/div_assign.out +++ b/tests/expectations/compiler/statements/operations/div_assign.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "852a26ba7ae67c2f2cdf00814963c66786bd383cb645b9740b782cb07e747c41", dce_ast = "2fccab048633b4bf945e5bd8defc6b4af820c1d77d797fbb8307cf371bcf418a", destructured_ast = "2fccab048633b4bf945e5bd8defc6b4af820c1d77d797fbb8307cf371bcf418a", errors = "", flattened_ast = "e64fbb5256594cd26cc6ad46039449b980dcf8da7ab87a520172aa8925f32631", initial_ast = "c4b22438c396cf9b44c553dcc3a32a8fbb7dec0d334a80e6282bc28536d8e127", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "2fccab048633b4bf945e5bd8defc6b4af820c1d77d797fbb8307cf371bcf418a", ssa_ast = "9f9c72a9f18ded47c4ebf08d0c3688e0c757c3cc9100615ad5ed859dc9027c1b", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "c4b22438c396cf9b44c553dcc3a32a8fbb7dec0d334a80e6282bc28536d8e127", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + div 1u8 r0 into r1; + output r1 as u8.private; +""", dce_ast = "2fccab048633b4bf945e5bd8defc6b4af820c1d77d797fbb8307cf371bcf418a", destructured_ast = "2fccab048633b4bf945e5bd8defc6b4af820c1d77d797fbb8307cf371bcf418a", errors = "", flattened_ast = "e64fbb5256594cd26cc6ad46039449b980dcf8da7ab87a520172aa8925f32631", initial_ast = "c4b22438c396cf9b44c553dcc3a32a8fbb7dec0d334a80e6282bc28536d8e127", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "2fccab048633b4bf945e5bd8defc6b4af820c1d77d797fbb8307cf371bcf418a", ssa_ast = "9f9c72a9f18ded47c4ebf08d0c3688e0c757c3cc9100615ad5ed859dc9027c1b", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "c4b22438c396cf9b44c553dcc3a32a8fbb7dec0d334a80e6282bc28536d8e127", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/operations/mul_assign.out b/tests/expectations/compiler/statements/operations/mul_assign.out index e8c2d69884..2142f83f14 100644 --- a/tests/expectations/compiler/statements/operations/mul_assign.out +++ b/tests/expectations/compiler/statements/operations/mul_assign.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e458b602541d030c368e1e498d1dae92b0a26e9505a02ca3cd93858ca3bdb277", dce_ast = "172ea791250878b86bf45982e72454bc4d77a5dd1b8e7c931a9678892140fcb8", destructured_ast = "172ea791250878b86bf45982e72454bc4d77a5dd1b8e7c931a9678892140fcb8", errors = "", flattened_ast = "f9365e77ddc8f125482b359d2cfd1bfff2701c6d609fbc61a1f7de27cb15769c", initial_ast = "402cc7bf351e8f7360fb4371055e91d192e40770a10408a67766988c3b0e2baf", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "172ea791250878b86bf45982e72454bc4d77a5dd1b8e7c931a9678892140fcb8", ssa_ast = "ff0329347065a8368cda4a26df7dbd77aae78c909f1136a6f68ecee4b25d228e", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "402cc7bf351e8f7360fb4371055e91d192e40770a10408a67766988c3b0e2baf", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + mul 1u8 r0 into r1; + output r1 as u8.private; +""", dce_ast = "172ea791250878b86bf45982e72454bc4d77a5dd1b8e7c931a9678892140fcb8", destructured_ast = "172ea791250878b86bf45982e72454bc4d77a5dd1b8e7c931a9678892140fcb8", errors = "", flattened_ast = "f9365e77ddc8f125482b359d2cfd1bfff2701c6d609fbc61a1f7de27cb15769c", initial_ast = "402cc7bf351e8f7360fb4371055e91d192e40770a10408a67766988c3b0e2baf", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "172ea791250878b86bf45982e72454bc4d77a5dd1b8e7c931a9678892140fcb8", ssa_ast = "ff0329347065a8368cda4a26df7dbd77aae78c909f1136a6f68ecee4b25d228e", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "402cc7bf351e8f7360fb4371055e91d192e40770a10408a67766988c3b0e2baf", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/operations/or_assign.out b/tests/expectations/compiler/statements/operations/or_assign.out index 3c115dfb76..a213f83a33 100644 --- a/tests/expectations/compiler/statements/operations/or_assign.out +++ b/tests/expectations/compiler/statements/operations/or_assign.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "6d6695b67fa8f1cff43f2d00c6ce7e118342fb3e0bd05008d952820bf0e6dca8", dce_ast = "150dfd94218cd0042d61ab0e64d9ba9aa96982191cdbe8c0c038cc24bcf23332", destructured_ast = "150dfd94218cd0042d61ab0e64d9ba9aa96982191cdbe8c0c038cc24bcf23332", errors = "", flattened_ast = "4e25f9060a8fd7d625110ad7a1211938dcc8d1b85682c4f68db89c45e36abe75", initial_ast = "1b435ce8e4044d8a85f773295720a077da989d83a51608d296e4627d6fc8d3e9", initial_symbol_table = "e03b4d8eaccf3cd016b4eb081690ba20dc331352711628cd8a2d3290c1995b9b", inlined_ast = "150dfd94218cd0042d61ab0e64d9ba9aa96982191cdbe8c0c038cc24bcf23332", ssa_ast = "a9c1798902cc14427219a2cd1a4b8d4e9b68470e7a167647d8696c996f34a324", type_checked_symbol_table = "f002030b982fc51b61e7c8a8df5141139c28eece313f2f41a61052bed8c0ab79", unrolled_ast = "1b435ce8e4044d8a85f773295720a077da989d83a51608d296e4627d6fc8d3e9", unrolled_symbol_table = "f002030b982fc51b61e7c8a8df5141139c28eece313f2f41a61052bed8c0ab79", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + or true r0 into r1; + output r1 as boolean.private; +""", dce_ast = "150dfd94218cd0042d61ab0e64d9ba9aa96982191cdbe8c0c038cc24bcf23332", destructured_ast = "150dfd94218cd0042d61ab0e64d9ba9aa96982191cdbe8c0c038cc24bcf23332", errors = "", flattened_ast = "4e25f9060a8fd7d625110ad7a1211938dcc8d1b85682c4f68db89c45e36abe75", initial_ast = "1b435ce8e4044d8a85f773295720a077da989d83a51608d296e4627d6fc8d3e9", initial_symbol_table = "e03b4d8eaccf3cd016b4eb081690ba20dc331352711628cd8a2d3290c1995b9b", inlined_ast = "150dfd94218cd0042d61ab0e64d9ba9aa96982191cdbe8c0c038cc24bcf23332", ssa_ast = "a9c1798902cc14427219a2cd1a4b8d4e9b68470e7a167647d8696c996f34a324", type_checked_symbol_table = "f002030b982fc51b61e7c8a8df5141139c28eece313f2f41a61052bed8c0ab79", unrolled_ast = "1b435ce8e4044d8a85f773295720a077da989d83a51608d296e4627d6fc8d3e9", unrolled_symbol_table = "f002030b982fc51b61e7c8a8df5141139c28eece313f2f41a61052bed8c0ab79", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/operations/pow_assign.out b/tests/expectations/compiler/statements/operations/pow_assign.out index 98303d5d22..11db7b7a25 100644 --- a/tests/expectations/compiler/statements/operations/pow_assign.out +++ b/tests/expectations/compiler/statements/operations/pow_assign.out @@ -1,3 +1,28 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "69c6644fb42c55979ce03fb2d5d6712f6eee57bafc5853fd5866a04a44e4e534", dce_ast = "ba18d4627b0d09bd0197afe3b5173ad9cf40c2d296850844a761e7a8e2d13842", destructured_ast = "ba18d4627b0d09bd0197afe3b5173ad9cf40c2d296850844a761e7a8e2d13842", errors = "", flattened_ast = "a5b0f9b902436bc0b7af473b8c01978493262f08af3ef7946026a0fb8ae4b7d1", initial_ast = "b2d4e08e83e84b7ab019d73b0da579c82d848fba5365290a8a2c1ef6d9ab9303", initial_symbol_table = "0809d7da060ff5a1856d1ab77a8709b29e9bdf9636c0a543f9f5ebda9dc3ae81", inlined_ast = "ba18d4627b0d09bd0197afe3b5173ad9cf40c2d296850844a761e7a8e2d13842", ssa_ast = "d26ac2545cc3d867d070e08d487b8d626a84bfa729d547cee06273938448c741", type_checked_symbol_table = "88b7ca411ce5d2755794f68ea0775f224570da3d461eda27f5f9deab6b07ab64", unrolled_ast = "b2d4e08e83e84b7ab019d73b0da579c82d848fba5365290a8a2c1ef6d9ab9303", unrolled_symbol_table = "88b7ca411ce5d2755794f68ea0775f224570da3d461eda27f5f9deab6b07ab64", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function unsigned: + input r0 as u8.private; + input r1 as u8.private; + input r2 as u16.private; + input r3 as u32.private; + pow r0 r1 into r4; + pow r4 r2 into r5; + pow r5 r3 into r6; + output r6 as u8.private; + + +closure signed: + input r0 as i8; + input r1 as u8; + input r2 as u16; + input r3 as u32; + pow r0 r1 into r4; + pow r4 r2 into r5; + pow r5 r3 into r6; + output r6 as i8; +""", dce_ast = "ba18d4627b0d09bd0197afe3b5173ad9cf40c2d296850844a761e7a8e2d13842", destructured_ast = "ba18d4627b0d09bd0197afe3b5173ad9cf40c2d296850844a761e7a8e2d13842", errors = "", flattened_ast = "a5b0f9b902436bc0b7af473b8c01978493262f08af3ef7946026a0fb8ae4b7d1", initial_ast = "b2d4e08e83e84b7ab019d73b0da579c82d848fba5365290a8a2c1ef6d9ab9303", initial_symbol_table = "0809d7da060ff5a1856d1ab77a8709b29e9bdf9636c0a543f9f5ebda9dc3ae81", inlined_ast = "ba18d4627b0d09bd0197afe3b5173ad9cf40c2d296850844a761e7a8e2d13842", ssa_ast = "d26ac2545cc3d867d070e08d487b8d626a84bfa729d547cee06273938448c741", type_checked_symbol_table = "88b7ca411ce5d2755794f68ea0775f224570da3d461eda27f5f9deab6b07ab64", unrolled_ast = "b2d4e08e83e84b7ab019d73b0da579c82d848fba5365290a8a2c1ef6d9ab9303", unrolled_symbol_table = "88b7ca411ce5d2755794f68ea0775f224570da3d461eda27f5f9deab6b07ab64", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/operations/rem_assign.out b/tests/expectations/compiler/statements/operations/rem_assign.out index cf04805b09..3bf3b354f1 100644 --- a/tests/expectations/compiler/statements/operations/rem_assign.out +++ b/tests/expectations/compiler/statements/operations/rem_assign.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f67d2ba495c6cbed24bf76003e4521182d8aaec5f8a3d42ab1929d56af65452b", dce_ast = "7c8e8b39e72d27ec8d25b9356a30524c101b4e8bd0f88fe4c602add1dbe6c6c2", destructured_ast = "7c8e8b39e72d27ec8d25b9356a30524c101b4e8bd0f88fe4c602add1dbe6c6c2", errors = "", flattened_ast = "4d46b4f9ad1b72a598e976e82e5af654c9c7846e43ebf9a41a5ad186355308d7", initial_ast = "5fd27e5bdd9d950d5f4fc71626a4d4dc42136026a356f1c2053523f5bafc9d76", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "7c8e8b39e72d27ec8d25b9356a30524c101b4e8bd0f88fe4c602add1dbe6c6c2", ssa_ast = "346262abc8997da5b214066bd4421159ef612c626b16fbe3aca7edf47c762dc0", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "5fd27e5bdd9d950d5f4fc71626a4d4dc42136026a356f1c2053523f5bafc9d76", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + rem 1u8 r0 into r1; + output r1 as u8.private; +""", dce_ast = "7c8e8b39e72d27ec8d25b9356a30524c101b4e8bd0f88fe4c602add1dbe6c6c2", destructured_ast = "7c8e8b39e72d27ec8d25b9356a30524c101b4e8bd0f88fe4c602add1dbe6c6c2", errors = "", flattened_ast = "4d46b4f9ad1b72a598e976e82e5af654c9c7846e43ebf9a41a5ad186355308d7", initial_ast = "5fd27e5bdd9d950d5f4fc71626a4d4dc42136026a356f1c2053523f5bafc9d76", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "7c8e8b39e72d27ec8d25b9356a30524c101b4e8bd0f88fe4c602add1dbe6c6c2", ssa_ast = "346262abc8997da5b214066bd4421159ef612c626b16fbe3aca7edf47c762dc0", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "5fd27e5bdd9d950d5f4fc71626a4d4dc42136026a356f1c2053523f5bafc9d76", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/operations/shl_assign.out b/tests/expectations/compiler/statements/operations/shl_assign.out index 507f818917..3fe42f0752 100644 --- a/tests/expectations/compiler/statements/operations/shl_assign.out +++ b/tests/expectations/compiler/statements/operations/shl_assign.out @@ -1,3 +1,28 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "c7e481877eba9b3d2f0f08797c30c5404e6da930c4fc82bf58a7bdeb46ba251e", dce_ast = "aa622b8e204f1d29a0800e019c65a9c33358385e9ff0ba9dfd0cbf9d92b6f869", destructured_ast = "aa622b8e204f1d29a0800e019c65a9c33358385e9ff0ba9dfd0cbf9d92b6f869", errors = "", flattened_ast = "53511fb990cf9ddab8c8331d50836d99f5ef3c42647e996e1e9fddb8559defe5", initial_ast = "9ee78cbd65beec132d97110aeba5adea156e75321681cbff6adb04d2e3f947c4", initial_symbol_table = "0809d7da060ff5a1856d1ab77a8709b29e9bdf9636c0a543f9f5ebda9dc3ae81", inlined_ast = "aa622b8e204f1d29a0800e019c65a9c33358385e9ff0ba9dfd0cbf9d92b6f869", ssa_ast = "f47344badbc0f56cf32fa8d5ec2766452f1bf1e529e906157e3faf6a852538e9", type_checked_symbol_table = "88b7ca411ce5d2755794f68ea0775f224570da3d461eda27f5f9deab6b07ab64", unrolled_ast = "9ee78cbd65beec132d97110aeba5adea156e75321681cbff6adb04d2e3f947c4", unrolled_symbol_table = "88b7ca411ce5d2755794f68ea0775f224570da3d461eda27f5f9deab6b07ab64", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function unsigned: + input r0 as u8.private; + input r1 as u8.private; + input r2 as u16.private; + input r3 as u32.private; + shl r0 r1 into r4; + shl r4 r2 into r5; + shl r5 r3 into r6; + output r6 as u8.private; + + +closure signed: + input r0 as i8; + input r1 as u8; + input r2 as u16; + input r3 as u32; + shl r0 r1 into r4; + shl r4 r2 into r5; + shl r5 r3 into r6; + output r6 as i8; +""", dce_ast = "aa622b8e204f1d29a0800e019c65a9c33358385e9ff0ba9dfd0cbf9d92b6f869", destructured_ast = "aa622b8e204f1d29a0800e019c65a9c33358385e9ff0ba9dfd0cbf9d92b6f869", errors = "", flattened_ast = "53511fb990cf9ddab8c8331d50836d99f5ef3c42647e996e1e9fddb8559defe5", initial_ast = "9ee78cbd65beec132d97110aeba5adea156e75321681cbff6adb04d2e3f947c4", initial_symbol_table = "0809d7da060ff5a1856d1ab77a8709b29e9bdf9636c0a543f9f5ebda9dc3ae81", inlined_ast = "aa622b8e204f1d29a0800e019c65a9c33358385e9ff0ba9dfd0cbf9d92b6f869", ssa_ast = "f47344badbc0f56cf32fa8d5ec2766452f1bf1e529e906157e3faf6a852538e9", type_checked_symbol_table = "88b7ca411ce5d2755794f68ea0775f224570da3d461eda27f5f9deab6b07ab64", unrolled_ast = "9ee78cbd65beec132d97110aeba5adea156e75321681cbff6adb04d2e3f947c4", unrolled_symbol_table = "88b7ca411ce5d2755794f68ea0775f224570da3d461eda27f5f9deab6b07ab64", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/operations/shr_assign.out b/tests/expectations/compiler/statements/operations/shr_assign.out index cc494c3df9..cbcb6b82d7 100644 --- a/tests/expectations/compiler/statements/operations/shr_assign.out +++ b/tests/expectations/compiler/statements/operations/shr_assign.out @@ -1,3 +1,28 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "c9b6d8b47fbe5b72e82bc81b952ba14ed281fd0bde9182bf8c6d8e165fa84001", dce_ast = "8ede1fd80cf77adf16d57fa2e898257f81217ede9bd6ad61344d3f00827093fb", destructured_ast = "8ede1fd80cf77adf16d57fa2e898257f81217ede9bd6ad61344d3f00827093fb", errors = "", flattened_ast = "e16a6b73d2090ce113026f3d7dc56967f317af5d76bfd35b2dc69176c4333651", initial_ast = "cf5a997976b3f406e930a11d661e439ba8f965dcdfd533c7eac311afb6c75100", initial_symbol_table = "0809d7da060ff5a1856d1ab77a8709b29e9bdf9636c0a543f9f5ebda9dc3ae81", inlined_ast = "8ede1fd80cf77adf16d57fa2e898257f81217ede9bd6ad61344d3f00827093fb", ssa_ast = "cc8aaa6ba45850e26a485c5a9941c66b756419c317d886b12a05b26a2ba326d4", type_checked_symbol_table = "88b7ca411ce5d2755794f68ea0775f224570da3d461eda27f5f9deab6b07ab64", unrolled_ast = "cf5a997976b3f406e930a11d661e439ba8f965dcdfd533c7eac311afb6c75100", unrolled_symbol_table = "88b7ca411ce5d2755794f68ea0775f224570da3d461eda27f5f9deab6b07ab64", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function unsigned: + input r0 as u8.private; + input r1 as u8.private; + input r2 as u16.private; + input r3 as u32.private; + shr r0 r1 into r4; + shr r4 r2 into r5; + shr r5 r3 into r6; + output r6 as u8.private; + + +closure signed: + input r0 as i8; + input r1 as u8; + input r2 as u16; + input r3 as u32; + shr r0 r1 into r4; + shr r4 r2 into r5; + shr r5 r3 into r6; + output r6 as i8; +""", dce_ast = "8ede1fd80cf77adf16d57fa2e898257f81217ede9bd6ad61344d3f00827093fb", destructured_ast = "8ede1fd80cf77adf16d57fa2e898257f81217ede9bd6ad61344d3f00827093fb", errors = "", flattened_ast = "e16a6b73d2090ce113026f3d7dc56967f317af5d76bfd35b2dc69176c4333651", initial_ast = "cf5a997976b3f406e930a11d661e439ba8f965dcdfd533c7eac311afb6c75100", initial_symbol_table = "0809d7da060ff5a1856d1ab77a8709b29e9bdf9636c0a543f9f5ebda9dc3ae81", inlined_ast = "8ede1fd80cf77adf16d57fa2e898257f81217ede9bd6ad61344d3f00827093fb", ssa_ast = "cc8aaa6ba45850e26a485c5a9941c66b756419c317d886b12a05b26a2ba326d4", type_checked_symbol_table = "88b7ca411ce5d2755794f68ea0775f224570da3d461eda27f5f9deab6b07ab64", unrolled_ast = "cf5a997976b3f406e930a11d661e439ba8f965dcdfd533c7eac311afb6c75100", unrolled_symbol_table = "88b7ca411ce5d2755794f68ea0775f224570da3d461eda27f5f9deab6b07ab64", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/operations/sub_assign.out b/tests/expectations/compiler/statements/operations/sub_assign.out index c67ec562b8..b5f066d0e1 100644 --- a/tests/expectations/compiler/statements/operations/sub_assign.out +++ b/tests/expectations/compiler/statements/operations/sub_assign.out @@ -1,3 +1,12 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e2d11ed53799ed66404c1913fe646293953de9e3b44fca9a3add80e04e9a34fc", dce_ast = "6358b17492d7ef077506d97baf94270c253d557d320c8e1dd41c0500f90a1537", destructured_ast = "6358b17492d7ef077506d97baf94270c253d557d320c8e1dd41c0500f90a1537", errors = "", flattened_ast = "8ed20c081bce62eaeb22c95170a30846776366fcc7ade1943c9fce125538b340", initial_ast = "63f2beb522b578398f5e7329335289fa405dea83dbf6fcc2e338a2fc39afcefc", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "6358b17492d7ef077506d97baf94270c253d557d320c8e1dd41c0500f90a1537", ssa_ast = "6feb4290304332a1c9d7151546e1ff522667fdaf050b2a5d2c5c08f84970577c", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "63f2beb522b578398f5e7329335289fa405dea83dbf6fcc2e338a2fc39afcefc", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + sub 1u8 r0 into r1; + output r1 as u8.private; +""", dce_ast = "6358b17492d7ef077506d97baf94270c253d557d320c8e1dd41c0500f90a1537", destructured_ast = "6358b17492d7ef077506d97baf94270c253d557d320c8e1dd41c0500f90a1537", errors = "", flattened_ast = "8ed20c081bce62eaeb22c95170a30846776366fcc7ade1943c9fce125538b340", initial_ast = "63f2beb522b578398f5e7329335289fa405dea83dbf6fcc2e338a2fc39afcefc", initial_symbol_table = "b15cc8e072ff309d5fda50dd004627788721e3e6a91300c8fa120607bdb28f55", inlined_ast = "6358b17492d7ef077506d97baf94270c253d557d320c8e1dd41c0500f90a1537", ssa_ast = "6feb4290304332a1c9d7151546e1ff522667fdaf050b2a5d2c5c08f84970577c", type_checked_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", unrolled_ast = "63f2beb522b578398f5e7329335289fa405dea83dbf6fcc2e338a2fc39afcefc", unrolled_symbol_table = "67cb444b36ef53383675c7e5eeec189f58b59db699d528a9d2fe8c285e522e02", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out b/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out index 0f8d955290..477be9a14a 100644 --- a/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out +++ b/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f8245e78b1dfaf2eeeb6aff9629ee561cdf6bf80f029c173fd32c6c002ad6e73", dce_ast = "05d186960b057135d774e3de8c236b696741be00362515024057cc61a065d49a", destructured_ast = "05d186960b057135d774e3de8c236b696741be00362515024057cc61a065d49a", errors = "", flattened_ast = "b3994c5052f66bb60f6819dd3b1b0be78788dac8bfab05eb388c827840859965", initial_ast = "9c38807bbb24304691936a1d411fc7d7d7fea39778712b1c0d860eebc4b85962", initial_symbol_table = "ab8c94f05a269440d7a47836728bb70a448eccfda894c5121edb4db3fa0d069b", inlined_ast = "05d186960b057135d774e3de8c236b696741be00362515024057cc61a065d49a", ssa_ast = "ee8b01c25b736608a799d56f044ac621a3ad493d04c9cc2d9e6da0c556eebe31", type_checked_symbol_table = "7a8660ef95184b05777705f39e57f80dac142f64e88bddf489fe40a867c5ae26", unrolled_ast = "9c38807bbb24304691936a1d411fc7d7d7fea39778712b1c0d860eebc4b85962", unrolled_symbol_table = "7a8660ef95184b05777705f39e57f80dac142f64e88bddf489fe40a867c5ae26", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as boolean.private; + ternary r1 r0 2u8 into r2; + output r2 as u8.private; +""", dce_ast = "05d186960b057135d774e3de8c236b696741be00362515024057cc61a065d49a", destructured_ast = "05d186960b057135d774e3de8c236b696741be00362515024057cc61a065d49a", errors = "", flattened_ast = "b3994c5052f66bb60f6819dd3b1b0be78788dac8bfab05eb388c827840859965", initial_ast = "9c38807bbb24304691936a1d411fc7d7d7fea39778712b1c0d860eebc4b85962", initial_symbol_table = "ab8c94f05a269440d7a47836728bb70a448eccfda894c5121edb4db3fa0d069b", inlined_ast = "05d186960b057135d774e3de8c236b696741be00362515024057cc61a065d49a", ssa_ast = "ee8b01c25b736608a799d56f044ac621a3ad493d04c9cc2d9e6da0c556eebe31", type_checked_symbol_table = "7a8660ef95184b05777705f39e57f80dac142f64e88bddf489fe40a867c5ae26", unrolled_ast = "9c38807bbb24304691936a1d411fc7d7d7fea39778712b1c0d860eebc4b85962", unrolled_symbol_table = "7a8660ef95184b05777705f39e57f80dac142f64e88bddf489fe40a867c5ae26", warnings = "" }] }]] diff --git a/tests/expectations/compiler/statements/underscore_for_loop.out b/tests/expectations/compiler/statements/underscore_for_loop.out index 7ff237d5db..62219b7382 100644 --- a/tests/expectations/compiler/statements/underscore_for_loop.out +++ b/tests/expectations/compiler/statements/underscore_for_loop.out @@ -1,3 +1,11 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "61cc464cdc1104635ea399648d62a06b112dc3462634b3f992151c6e5572d6f7", dce_ast = "5f0575fcc735e68849c613d13d0af2f497a69f07ed5e0e560a4f9620fa550438", destructured_ast = "8741ccfe8d857512d4b15ddd3319f027e3d6070f1b5d54b643ce0f92bc9b3a74", errors = "", flattened_ast = "b97c7e66892e032d25802a5a915bd139efcc11fc476b996a3cb52d1b7d93b18e", initial_ast = "8edaf2a23a7e65051bf3e4ced5eece2f6de1339ca084d363c33b9c91930ae403", initial_symbol_table = "6509016b6899f5938f44b2dab2c895fb70c487d9413773a25f58619ab9b0a9be", inlined_ast = "8741ccfe8d857512d4b15ddd3319f027e3d6070f1b5d54b643ce0f92bc9b3a74", ssa_ast = "41fcd8ba84c849134813ff374afdcbe8ef35ec7c83883a2f043196b64326b645", type_checked_symbol_table = "5062ff54022ce573c87a47bc3435be475765352fe49d33a80117a7c99f9455f1", unrolled_ast = "56aa8c7dc5296377393e122a6efbb6efc3ee7f034e6b27f6d1b5c91f5a0168c4", unrolled_symbol_table = "767bcafca0e607359b4fbedc2993c6b450d69b3f44e41fb25674b17da2f4aea3", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + output true as boolean.private; +""", dce_ast = "5f0575fcc735e68849c613d13d0af2f497a69f07ed5e0e560a4f9620fa550438", destructured_ast = "8741ccfe8d857512d4b15ddd3319f027e3d6070f1b5d54b643ce0f92bc9b3a74", errors = "", flattened_ast = "b97c7e66892e032d25802a5a915bd139efcc11fc476b996a3cb52d1b7d93b18e", initial_ast = "8edaf2a23a7e65051bf3e4ced5eece2f6de1339ca084d363c33b9c91930ae403", initial_symbol_table = "6509016b6899f5938f44b2dab2c895fb70c487d9413773a25f58619ab9b0a9be", inlined_ast = "8741ccfe8d857512d4b15ddd3319f027e3d6070f1b5d54b643ce0f92bc9b3a74", ssa_ast = "41fcd8ba84c849134813ff374afdcbe8ef35ec7c83883a2f043196b64326b645", type_checked_symbol_table = "5062ff54022ce573c87a47bc3435be475765352fe49d33a80117a7c99f9455f1", unrolled_ast = "56aa8c7dc5296377393e122a6efbb6efc3ee7f034e6b27f6d1b5c91f5a0168c4", unrolled_symbol_table = "767bcafca0e607359b4fbedc2993c6b450d69b3f44e41fb25674b17da2f4aea3", warnings = "" }] }]] diff --git a/tests/expectations/compiler/structs/external_record.out b/tests/expectations/compiler/structs/external_record.out index 5247549a16..a0d3237ddc 100644 --- a/tests/expectations/compiler/structs/external_record.out +++ b/tests/expectations/compiler/structs/external_record.out @@ -1,7 +1,57 @@ namespace = "Compile" expectation = "Pass" outputs = [[{ compile = [ - { bytecode = "6341f6fcccbfa86b71e0eac445b9d0ee558c74ef896183ee82b456b9e7fb2270", dce_ast = "ea1edb23d0539d5c6af1d224d82f00494a4809b5a59a3fe6ef7d151639f590c8", destructured_ast = "ea1edb23d0539d5c6af1d224d82f00494a4809b5a59a3fe6ef7d151639f590c8", errors = "", flattened_ast = "51b1fc2019f67cf0624405a13151677297b6b87207d41bde6e45edd221163898", initial_ast = "d4a02a93f27d962ced13da70e6e78fb8b53c585fab7232c4afb6ebdb97751880", initial_symbol_table = "340c54b67bf4ed5c52a8c178e9cd7f7f8aa1d733cc157327b14cd9658b386ae6", inlined_ast = "ea1edb23d0539d5c6af1d224d82f00494a4809b5a59a3fe6ef7d151639f590c8", ssa_ast = "196758b126b3b83c899c1d7bfccc7caf76b275f5ea5797da6d7b62f9d46d13cb", type_checked_symbol_table = "d972634f150980436170caf1f7ebaa08f35f59f0c68166ca2df8a9ebdf4c71e5", unrolled_ast = "d4a02a93f27d962ced13da70e6e78fb8b53c585fab7232c4afb6ebdb97751880", unrolled_symbol_table = "d972634f150980436170caf1f7ebaa08f35f59f0c68166ca2df8a9ebdf4c71e5", warnings = "" }, - { bytecode = "e902cc1e73a94c6024944460951f6207587ed939584c016908554b23280b94ec", dce_ast = "b29a50cae659e63902e0137059becdf6f15d00c7aeded8f68ef97a95e9de2fbc", destructured_ast = "b29a50cae659e63902e0137059becdf6f15d00c7aeded8f68ef97a95e9de2fbc", errors = "", flattened_ast = "be815a3a27a747ffd6f1c6d87dccba6f90c6d90e3b78fd50112f77f5289fb5eb", initial_ast = "bf17af18b2264841e5933766b4bd190c7139d59d121e1c2a1b7a0c37715f90b2", initial_symbol_table = "3e72c903f6f9ab2438076da7c329b8cd369c9c3307d14bff4963e8a8f6bb18e0", inlined_ast = "b29a50cae659e63902e0137059becdf6f15d00c7aeded8f68ef97a95e9de2fbc", ssa_ast = "97069a75c94ed52904c922470f78a75abcab70ec1a7f5966febe8cae605efb8e", type_checked_symbol_table = "27f40a9e28a4b7d03d5c91be8a1893b766ac0e9be2d8a7c5ababe68b45ee01c7", unrolled_ast = "c82dddfcac1fec8f63b8dfce008fd6cb000b7f603fd22611ae000adefcb4246c", unrolled_symbol_table = "27f40a9e28a4b7d03d5c91be8a1893b766ac0e9be2d8a7c5ababe68b45ee01c7", warnings = "" }, - { bytecode = "b92b0c5017841d1c4ace13f7b040b9b7f84174bf74d49b8472f5f101f0d6caf8", dce_ast = "819770e49c3158317e2a112c99aed86f6cc14b4c61eda5acbf796973fcdeedc7", destructured_ast = "819770e49c3158317e2a112c99aed86f6cc14b4c61eda5acbf796973fcdeedc7", errors = "", flattened_ast = "afb3257ab605fb3ba64f07f5400edce3206ea852d567f5e16962c9e6b0b3c47b", initial_ast = "65349655f9b288bcb18caaa1d1216e7678f0e3919b740719d1a9f9660124f7ec", initial_symbol_table = "78c72f7c5e19d1f0fbd6073ed85b5f7977f912d671e4c522bd27652647b19733", inlined_ast = "819770e49c3158317e2a112c99aed86f6cc14b4c61eda5acbf796973fcdeedc7", ssa_ast = "6af16bac66f4da284d7bb27542f90f77a4eb6ffcc7915aa1ea64953a899437e9", type_checked_symbol_table = "6c8f504dd11151208a41f10109046e49a18fb4609706a71c01a11eb5d16128bb", unrolled_ast = "6ad3178891c74b6042bddee324c5dce52addcf62565d3457154b907863926f9a", unrolled_symbol_table = "6c8f504dd11151208a41f10109046e49a18fb4609706a71c01a11eb5d16128bb", warnings = "" }, + { bytecode = """ +program child.aleo; + +record A: + owner as address.private; + val as u32.private; + + +function mint: + input r0 as address.private; + input r1 as u32.private; + cast r0 r1 into r2 as A.record; + output r2 as A.record; +""", dce_ast = "ea1edb23d0539d5c6af1d224d82f00494a4809b5a59a3fe6ef7d151639f590c8", destructured_ast = "ea1edb23d0539d5c6af1d224d82f00494a4809b5a59a3fe6ef7d151639f590c8", errors = "", flattened_ast = "51b1fc2019f67cf0624405a13151677297b6b87207d41bde6e45edd221163898", initial_ast = "d4a02a93f27d962ced13da70e6e78fb8b53c585fab7232c4afb6ebdb97751880", initial_symbol_table = "340c54b67bf4ed5c52a8c178e9cd7f7f8aa1d733cc157327b14cd9658b386ae6", inlined_ast = "ea1edb23d0539d5c6af1d224d82f00494a4809b5a59a3fe6ef7d151639f590c8", ssa_ast = "196758b126b3b83c899c1d7bfccc7caf76b275f5ea5797da6d7b62f9d46d13cb", type_checked_symbol_table = "d972634f150980436170caf1f7ebaa08f35f59f0c68166ca2df8a9ebdf4c71e5", unrolled_ast = "d4a02a93f27d962ced13da70e6e78fb8b53c585fab7232c4afb6ebdb97751880", unrolled_symbol_table = "d972634f150980436170caf1f7ebaa08f35f59f0c68166ca2df8a9ebdf4c71e5", warnings = "" }, + { bytecode = """ +import child.aleo; +program parent.aleo; + + +record B: + owner as address.private; + val as u32.private; + + +function wrapper_mint: + input r0 as address.private; + input r1 as u32.private; + call child.aleo/mint self.caller 1u32 into r2; + cast self.caller r1 into r3 as B.record; + output r2 as child.aleo/A.record; + output r3 as B.record; +""", dce_ast = "b29a50cae659e63902e0137059becdf6f15d00c7aeded8f68ef97a95e9de2fbc", destructured_ast = "b29a50cae659e63902e0137059becdf6f15d00c7aeded8f68ef97a95e9de2fbc", errors = "", flattened_ast = "be815a3a27a747ffd6f1c6d87dccba6f90c6d90e3b78fd50112f77f5289fb5eb", initial_ast = "bf17af18b2264841e5933766b4bd190c7139d59d121e1c2a1b7a0c37715f90b2", initial_symbol_table = "3e72c903f6f9ab2438076da7c329b8cd369c9c3307d14bff4963e8a8f6bb18e0", inlined_ast = "b29a50cae659e63902e0137059becdf6f15d00c7aeded8f68ef97a95e9de2fbc", ssa_ast = "97069a75c94ed52904c922470f78a75abcab70ec1a7f5966febe8cae605efb8e", type_checked_symbol_table = "27f40a9e28a4b7d03d5c91be8a1893b766ac0e9be2d8a7c5ababe68b45ee01c7", unrolled_ast = "c82dddfcac1fec8f63b8dfce008fd6cb000b7f603fd22611ae000adefcb4246c", unrolled_symbol_table = "27f40a9e28a4b7d03d5c91be8a1893b766ac0e9be2d8a7c5ababe68b45ee01c7", warnings = "" }, + { bytecode = """ +import child.aleo; +import parent.aleo; +program grandparent.aleo; + + + +record C: + owner as address.private; + val as u32.private; + + +function double_wrapper_mint: + input r0 as address.private; + input r1 as u32.private; + call parent.aleo/wrapper_mint r0 r1 into r2 r3; + cast r0 r1 into r4 as C.record; + output r2 as child.aleo/A.record; + output r3 as parent.aleo/B.record; + output r4 as C.record; +""", dce_ast = "819770e49c3158317e2a112c99aed86f6cc14b4c61eda5acbf796973fcdeedc7", destructured_ast = "819770e49c3158317e2a112c99aed86f6cc14b4c61eda5acbf796973fcdeedc7", errors = "", flattened_ast = "afb3257ab605fb3ba64f07f5400edce3206ea852d567f5e16962c9e6b0b3c47b", initial_ast = "65349655f9b288bcb18caaa1d1216e7678f0e3919b740719d1a9f9660124f7ec", initial_symbol_table = "78c72f7c5e19d1f0fbd6073ed85b5f7977f912d671e4c522bd27652647b19733", inlined_ast = "819770e49c3158317e2a112c99aed86f6cc14b4c61eda5acbf796973fcdeedc7", ssa_ast = "6af16bac66f4da284d7bb27542f90f77a4eb6ffcc7915aa1ea64953a899437e9", type_checked_symbol_table = "6c8f504dd11151208a41f10109046e49a18fb4609706a71c01a11eb5d16128bb", unrolled_ast = "6ad3178891c74b6042bddee324c5dce52addcf62565d3457154b907863926f9a", unrolled_symbol_table = "6c8f504dd11151208a41f10109046e49a18fb4609706a71c01a11eb5d16128bb", warnings = "" }, ] }]] diff --git a/tests/expectations/compiler/structs/external_struct.out b/tests/expectations/compiler/structs/external_struct.out index 4024ddd373..9a237be6ac 100644 --- a/tests/expectations/compiler/structs/external_struct.out +++ b/tests/expectations/compiler/structs/external_struct.out @@ -1,7 +1,135 @@ namespace = "Compile" expectation = "Pass" outputs = [[{ compile = [ - { bytecode = "c562a0b23873460644ce0af83bd46d2a4010f5d667aafd72940cfa0dd3a1c893", dce_ast = "3d04c9faddeaf8bc7839934ecc75b0dfe973c198e0c19bf0683a16ba3f13cdef", destructured_ast = "3d04c9faddeaf8bc7839934ecc75b0dfe973c198e0c19bf0683a16ba3f13cdef", errors = "", flattened_ast = "c3d8cff7286b7d1187046982da77a9527f2753d62e914407cb5d42b4242636fd", initial_ast = "067591039f4d58fae5acf7c987d08fead46a25d06278ec74b3d0e41851a1f2e3", initial_symbol_table = "b9d02d1b85ab19ec91480212bbfe3b765bc663861026aa9dbb97b31ec1e4996b", inlined_ast = "3d04c9faddeaf8bc7839934ecc75b0dfe973c198e0c19bf0683a16ba3f13cdef", ssa_ast = "af24b1aeb7c1a05116ed5c1a718067de95c2365a0532e9d97bd1cf69912a70fa", type_checked_symbol_table = "135897b1dbcb1676d36ac8d1aa865381e9530287bb7449442ea446c29bb6449c", unrolled_ast = "067591039f4d58fae5acf7c987d08fead46a25d06278ec74b3d0e41851a1f2e3", unrolled_symbol_table = "135897b1dbcb1676d36ac8d1aa865381e9530287bb7449442ea446c29bb6449c", warnings = "" }, - { bytecode = "5a1ca0038e83880d6d2cd5413ca4e8ec01e2622d635d6d8b2cb64463cd5c4817", dce_ast = "26bd4e6f56705dd313f4fa58b964be29576620e0b6a2fc25d9ad55bd89a88413", destructured_ast = "56c2bd2789e46f95b9e93b225777b4a6178cbedd75256c4adf21df9f65485ea5", errors = "", flattened_ast = "42734a56fa5e1bcd21832d5c83e314cbc249b5d8437ebbc072052a07fbb22070", initial_ast = "90f2be69e327a67e772bab6e517a1efe90d6fbbdcda2ab69e73c48dd5ea413cd", initial_symbol_table = "f2ae8eee41238514bb792b1b782feab70aa865807bb489187726796a3d5198b7", inlined_ast = "56c2bd2789e46f95b9e93b225777b4a6178cbedd75256c4adf21df9f65485ea5", ssa_ast = "a112118a15f292e6c7f1c19cea3d817142e53f4eeb9519991d451d2544473fd7", type_checked_symbol_table = "f7765fa8c7a391f3250f9c2ff124729fe8592f32dbc82d7e9428682df49ea351", unrolled_ast = "163290d0f28722f746b4d4541abe84c17a91c65a8c7d690b98b7f0af19994ad5", unrolled_symbol_table = "f7765fa8c7a391f3250f9c2ff124729fe8592f32dbc82d7e9428682df49ea351", warnings = "" }, - { bytecode = "81e7b663dbb9d60c89b80b448c71ada9bdc7a93fac808bd8d1b6ca3ab053f914", dce_ast = "b3ae1144d78b74320dde8741d8b779408a633b5a152efce15f6c9f38abe957ad", destructured_ast = "b4c4946001c3c5eeb47744a365a7908728a8de9b8d8a8cf0fe3d4072870168e3", errors = "", flattened_ast = "c4c6d893a4252bdd83ff40b1109057545c57474e4636188b22dd7f936a14e42c", initial_ast = "0cc09a6fcaafb39da24c46d650f915c6352b593958d991f45b0ec61ef3bf01bb", initial_symbol_table = "de21200cc8a95064b4a4b2d7a1f194d3b54595212e607ee49edd716cbf6dd17e", inlined_ast = "b4c4946001c3c5eeb47744a365a7908728a8de9b8d8a8cf0fe3d4072870168e3", ssa_ast = "1b9583fe511e9f5705f2cd4d0566d697929b8c2480709f9c14378658e64a67f5", type_checked_symbol_table = "4e42579ae5f24adba68080229fc51fd767334ad987d82c6f755fe90d20b4cd29", unrolled_ast = "3f95452c2a8d57484c7814740d596de17d20bf04d812e7b106ca1eb1273be3cd", unrolled_symbol_table = "4e42579ae5f24adba68080229fc51fd767334ad987d82c6f755fe90d20b4cd29", warnings = "" }, + { bytecode = """ +program child.aleo; + +struct Two: + val1 as u32; + val2 as u32; + +struct One: + two as [Two; 2u32]; + +struct Baz: + one as One; + +struct Bar: + baz as [Baz; 2u32]; + +struct Foo: + bar as [Bar; 1u32]; + +record Boo: + owner as address.private; + val as u32.private; + + +function create: + cast 1u32 2u32 into r0 as Two; + cast 3u32 4u32 into r1 as Two; + cast r0 r1 into r2 as [Two; 2u32]; + cast r2 into r3 as One; + cast r3 into r4 as Baz; + cast 5u32 6u32 into r5 as Two; + cast 7u32 8u32 into r6 as Two; + cast r5 r6 into r7 as [Two; 2u32]; + cast r7 into r8 as One; + cast r8 into r9 as Baz; + cast r4 r9 into r10 as [Baz; 2u32]; + cast r10 into r11 as Bar; + cast r11 into r12 as [Bar; 1u32]; + cast r12 into r13 as Foo; + cast self.caller 10u32 into r14 as Boo.record; + output r13 as Foo.private; + output r14 as Boo.record; +""", dce_ast = "3d04c9faddeaf8bc7839934ecc75b0dfe973c198e0c19bf0683a16ba3f13cdef", destructured_ast = "3d04c9faddeaf8bc7839934ecc75b0dfe973c198e0c19bf0683a16ba3f13cdef", errors = "", flattened_ast = "c3d8cff7286b7d1187046982da77a9527f2753d62e914407cb5d42b4242636fd", initial_ast = "067591039f4d58fae5acf7c987d08fead46a25d06278ec74b3d0e41851a1f2e3", initial_symbol_table = "b9d02d1b85ab19ec91480212bbfe3b765bc663861026aa9dbb97b31ec1e4996b", inlined_ast = "3d04c9faddeaf8bc7839934ecc75b0dfe973c198e0c19bf0683a16ba3f13cdef", ssa_ast = "af24b1aeb7c1a05116ed5c1a718067de95c2365a0532e9d97bd1cf69912a70fa", type_checked_symbol_table = "135897b1dbcb1676d36ac8d1aa865381e9530287bb7449442ea446c29bb6449c", unrolled_ast = "067591039f4d58fae5acf7c987d08fead46a25d06278ec74b3d0e41851a1f2e3", unrolled_symbol_table = "135897b1dbcb1676d36ac8d1aa865381e9530287bb7449442ea446c29bb6449c", warnings = "" }, + { bytecode = """ +import child.aleo; +program parent.aleo; + +struct Two: + val1 as u32; + val2 as u32; + +struct One: + two as [Two; 2u32]; + +struct Baz: + one as One; + +struct Bar: + baz as [Baz; 2u32]; + +struct Foo: + bar as [Bar; 1u32]; + + +struct Woo: + a as u32; + b as u32; + +record BooHoo: + owner as address.private; + val as u32.private; + woo as Woo.private; + + +function create_wrapper: + call child.aleo/create into r0 r1; + output r0 as Foo.private; + output r1 as child.aleo/Boo.record; + + +function create_another_wrapper: + call child.aleo/create into r0 r1; + cast 1u32 2u32 into r2 as Woo; + cast self.caller 10u32 r2 into r3 as BooHoo.record; + cast 3u32 4u32 into r4 as Woo; + output r0 as Foo.private; + output r1 as child.aleo/Boo.record; + output r3 as BooHoo.record; + output r4 as Woo.private; +""", dce_ast = "26bd4e6f56705dd313f4fa58b964be29576620e0b6a2fc25d9ad55bd89a88413", destructured_ast = "56c2bd2789e46f95b9e93b225777b4a6178cbedd75256c4adf21df9f65485ea5", errors = "", flattened_ast = "42734a56fa5e1bcd21832d5c83e314cbc249b5d8437ebbc072052a07fbb22070", initial_ast = "90f2be69e327a67e772bab6e517a1efe90d6fbbdcda2ab69e73c48dd5ea413cd", initial_symbol_table = "f2ae8eee41238514bb792b1b782feab70aa865807bb489187726796a3d5198b7", inlined_ast = "56c2bd2789e46f95b9e93b225777b4a6178cbedd75256c4adf21df9f65485ea5", ssa_ast = "a112118a15f292e6c7f1c19cea3d817142e53f4eeb9519991d451d2544473fd7", type_checked_symbol_table = "f7765fa8c7a391f3250f9c2ff124729fe8592f32dbc82d7e9428682df49ea351", unrolled_ast = "163290d0f28722f746b4d4541abe84c17a91c65a8c7d690b98b7f0af19994ad5", unrolled_symbol_table = "f7765fa8c7a391f3250f9c2ff124729fe8592f32dbc82d7e9428682df49ea351", warnings = "" }, + { bytecode = """ +import child.aleo; +import parent.aleo; +program grandparent.aleo; + +struct Two: + val1 as u32; + val2 as u32; + +struct One: + two as [Two; 2u32]; + +struct Baz: + one as One; + +struct Bar: + baz as [Baz; 2u32]; + +struct Foo: + bar as [Bar; 1u32]; + + +struct Woo: + a as u32; + b as u32; + + + +function main: + input r0 as u32.private; + add 1u32 r0 into r1; + output r1 as u32.private; + + +function omega_wrapper: + call parent.aleo/create_another_wrapper into r0 r1 r2 r3; + output r0 as Foo.private; + output r1 as child.aleo/Boo.record; + output r2 as parent.aleo/BooHoo.record; + output r3 as Woo.private; +""", dce_ast = "b3ae1144d78b74320dde8741d8b779408a633b5a152efce15f6c9f38abe957ad", destructured_ast = "b4c4946001c3c5eeb47744a365a7908728a8de9b8d8a8cf0fe3d4072870168e3", errors = "", flattened_ast = "c4c6d893a4252bdd83ff40b1109057545c57474e4636188b22dd7f936a14e42c", initial_ast = "0cc09a6fcaafb39da24c46d650f915c6352b593958d991f45b0ec61ef3bf01bb", initial_symbol_table = "de21200cc8a95064b4a4b2d7a1f194d3b54595212e607ee49edd716cbf6dd17e", inlined_ast = "b4c4946001c3c5eeb47744a365a7908728a8de9b8d8a8cf0fe3d4072870168e3", ssa_ast = "1b9583fe511e9f5705f2cd4d0566d697929b8c2480709f9c14378658e64a67f5", type_checked_symbol_table = "4e42579ae5f24adba68080229fc51fd767334ad987d82c6f755fe90d20b4cd29", unrolled_ast = "3f95452c2a8d57484c7814740d596de17d20bf04d812e7b106ca1eb1273be3cd", unrolled_symbol_table = "4e42579ae5f24adba68080229fc51fd767334ad987d82c6f755fe90d20b4cd29", warnings = "" }, ] }]] diff --git a/tests/expectations/compiler/structs/external_struct_in_async_function.out b/tests/expectations/compiler/structs/external_struct_in_async_function.out index 85b92059ce..0175ec0673 100644 --- a/tests/expectations/compiler/structs/external_struct_in_async_function.out +++ b/tests/expectations/compiler/structs/external_struct_in_async_function.out @@ -1,6 +1,35 @@ namespace = "Compile" expectation = "Pass" outputs = [[{ compile = [ - { bytecode = "688608475dba90bb7f4b89d00988f9f4944d15a84f89f6b1b78e4c1ec1b342ca", dce_ast = "7d4857f2b1507ba362be0e6a1aa273a2c849cb6080fbfb4a9759232ba7701d0a", destructured_ast = "073fe0dab04571576a62611e9781356da18c58cbf08d910ab61d2179f249bc5d", errors = "", flattened_ast = "e8a54be927eb0d70f57e05142476382f2c3ef64b9d0a52a3e95b2bad0ba46764", initial_ast = "b4c949f6c13875d2cfdc35c1cfeeb6eee60eaa02b40736f21f7299643f554bf6", initial_symbol_table = "52de8e39e7909bf371547bcd54ab3e76fd09cbd6544a5772d042c4d25c996e2c", inlined_ast = "7d4857f2b1507ba362be0e6a1aa273a2c849cb6080fbfb4a9759232ba7701d0a", ssa_ast = "ba1b08fbe9a242a88e6c13d8be7691a1fb2e9bf45abd6c089ea0f4659ec38866", type_checked_symbol_table = "b15217927f45cc35af145e9c260af0d8ac353f397a29ca444ff4a95258610db8", unrolled_ast = "b4c949f6c13875d2cfdc35c1cfeeb6eee60eaa02b40736f21f7299643f554bf6", unrolled_symbol_table = "b15217927f45cc35af145e9c260af0d8ac353f397a29ca444ff4a95258610db8", warnings = "" }, - { bytecode = "7881a6c09234d93975545436c75faf7d6a17d6d1c5723d8b29b214ca130eed23", dce_ast = "97153aa38aad12f2695c1e457270bd678add4d96f01f78660a9be0ab8cd409bf", destructured_ast = "97153aa38aad12f2695c1e457270bd678add4d96f01f78660a9be0ab8cd409bf", errors = "", flattened_ast = "a5a1c8def04670f3c5177946811bd27dcae5b045fce181e5e3307d9964686341", initial_ast = "b1348090a951e00cbf76c62d734fa808bfceea5b4169aa6da15a08ff185cbc50", initial_symbol_table = "c9f26fb8c18222d0819c01087efc4aae88ea8944dec03710d94c38c24e0d077a", inlined_ast = "97153aa38aad12f2695c1e457270bd678add4d96f01f78660a9be0ab8cd409bf", ssa_ast = "39e50a1b965cf6d4c19750d75edd4b1a8f8c02c04bbcb361f4fa70cebdc39574", type_checked_symbol_table = "ed3db1e139955da3a7df17d8abdf36ddcabf05e2cb0cc6af012cce4a4fc67fae", unrolled_ast = "f1c461c8b0f677d0954ff6d29ab29abb648b57c7c141ddaf116a28d837e2b546", unrolled_symbol_table = "ed3db1e139955da3a7df17d8abdf36ddcabf05e2cb0cc6af012cce4a4fc67fae", warnings = "" }, + { bytecode = """ +program parent.aleo; + +struct TestStruct: + data0 as u128; + data1 as u128; + + + +function init: + cast 0u128 1u128 into r0 as TestStruct; + async init r0 into r1; + output r1 as parent.aleo/init.future; + +finalize init: + input r0 as TestStruct.public; + assert.eq 0u32 0u32; + +""", dce_ast = "7d4857f2b1507ba362be0e6a1aa273a2c849cb6080fbfb4a9759232ba7701d0a", destructured_ast = "073fe0dab04571576a62611e9781356da18c58cbf08d910ab61d2179f249bc5d", errors = "", flattened_ast = "e8a54be927eb0d70f57e05142476382f2c3ef64b9d0a52a3e95b2bad0ba46764", initial_ast = "b4c949f6c13875d2cfdc35c1cfeeb6eee60eaa02b40736f21f7299643f554bf6", initial_symbol_table = "52de8e39e7909bf371547bcd54ab3e76fd09cbd6544a5772d042c4d25c996e2c", inlined_ast = "7d4857f2b1507ba362be0e6a1aa273a2c849cb6080fbfb4a9759232ba7701d0a", ssa_ast = "ba1b08fbe9a242a88e6c13d8be7691a1fb2e9bf45abd6c089ea0f4659ec38866", type_checked_symbol_table = "b15217927f45cc35af145e9c260af0d8ac353f397a29ca444ff4a95258610db8", unrolled_ast = "b4c949f6c13875d2cfdc35c1cfeeb6eee60eaa02b40736f21f7299643f554bf6", unrolled_symbol_table = "b15217927f45cc35af145e9c260af0d8ac353f397a29ca444ff4a95258610db8", warnings = "" }, + { bytecode = """ +import parent.aleo; +program child.aleo; + +struct TestStruct: + data0 as u128; + data1 as u128; + + +function main: + output 1u32 as u32.private; +""", dce_ast = "97153aa38aad12f2695c1e457270bd678add4d96f01f78660a9be0ab8cd409bf", destructured_ast = "97153aa38aad12f2695c1e457270bd678add4d96f01f78660a9be0ab8cd409bf", errors = "", flattened_ast = "a5a1c8def04670f3c5177946811bd27dcae5b045fce181e5e3307d9964686341", initial_ast = "b1348090a951e00cbf76c62d734fa808bfceea5b4169aa6da15a08ff185cbc50", initial_symbol_table = "c9f26fb8c18222d0819c01087efc4aae88ea8944dec03710d94c38c24e0d077a", inlined_ast = "97153aa38aad12f2695c1e457270bd678add4d96f01f78660a9be0ab8cd409bf", ssa_ast = "39e50a1b965cf6d4c19750d75edd4b1a8f8c02c04bbcb361f4fa70cebdc39574", type_checked_symbol_table = "ed3db1e139955da3a7df17d8abdf36ddcabf05e2cb0cc6af012cce4a4fc67fae", unrolled_ast = "f1c461c8b0f677d0954ff6d29ab29abb648b57c7c141ddaf116a28d837e2b546", unrolled_symbol_table = "ed3db1e139955da3a7df17d8abdf36ddcabf05e2cb0cc6af012cce4a4fc67fae", warnings = "" }, ] }]] diff --git a/tests/expectations/compiler/structs/inline.out b/tests/expectations/compiler/structs/inline.out index 42b61d9ee0..27fab8d68e 100644 --- a/tests/expectations/compiler/structs/inline.out +++ b/tests/expectations/compiler/structs/inline.out @@ -1,3 +1,14 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "ec61be65e2947187dd58fdd1cf6f98301443d81e225b3ba2a3971b38ed950b05", dce_ast = "6da69e57d85dca6aeb6d2667e1528e86483ac9868f1ccb4a5b4a886893be5abf", destructured_ast = "6da69e57d85dca6aeb6d2667e1528e86483ac9868f1ccb4a5b4a886893be5abf", errors = "", flattened_ast = "97edd75c3be5d9423ec75cc43195724f29a4f391e275b21aa6005102364eca46", initial_ast = "8240026b64541e67f9c2d69f59793310262c3b570caed19025a988551526e389", initial_symbol_table = "c26f65afb3f8c6a068dd98b49503e30e69d0ce68c50727723a78e0bd77ce7095", inlined_ast = "6da69e57d85dca6aeb6d2667e1528e86483ac9868f1ccb4a5b4a886893be5abf", ssa_ast = "af27b467011e346f5e23d55919c971abbdee3d977fa6f66f1f2874edd69838c5", type_checked_symbol_table = "3ea359eb04e150a68c8d9f940330ce63d689114d2bb47211dffcfd7370a6b1ba", unrolled_ast = "8240026b64541e67f9c2d69f59793310262c3b570caed19025a988551526e389", unrolled_symbol_table = "3ea359eb04e150a68c8d9f940330ce63d689114d2bb47211dffcfd7370a6b1ba", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +struct Foo: + x as u32; + + +function main: + input r0 as u32.private; + cast r0 into r1 as Foo; + output r1.x as u32.private; +""", dce_ast = "6da69e57d85dca6aeb6d2667e1528e86483ac9868f1ccb4a5b4a886893be5abf", destructured_ast = "6da69e57d85dca6aeb6d2667e1528e86483ac9868f1ccb4a5b4a886893be5abf", errors = "", flattened_ast = "97edd75c3be5d9423ec75cc43195724f29a4f391e275b21aa6005102364eca46", initial_ast = "8240026b64541e67f9c2d69f59793310262c3b570caed19025a988551526e389", initial_symbol_table = "c26f65afb3f8c6a068dd98b49503e30e69d0ce68c50727723a78e0bd77ce7095", inlined_ast = "6da69e57d85dca6aeb6d2667e1528e86483ac9868f1ccb4a5b4a886893be5abf", ssa_ast = "af27b467011e346f5e23d55919c971abbdee3d977fa6f66f1f2874edd69838c5", type_checked_symbol_table = "3ea359eb04e150a68c8d9f940330ce63d689114d2bb47211dffcfd7370a6b1ba", unrolled_ast = "8240026b64541e67f9c2d69f59793310262c3b570caed19025a988551526e389", unrolled_symbol_table = "3ea359eb04e150a68c8d9f940330ce63d689114d2bb47211dffcfd7370a6b1ba", warnings = "" }] }]] diff --git a/tests/expectations/compiler/structs/member_variable.out b/tests/expectations/compiler/structs/member_variable.out index 2d0a55c625..fa34f87efc 100644 --- a/tests/expectations/compiler/structs/member_variable.out +++ b/tests/expectations/compiler/structs/member_variable.out @@ -1,3 +1,16 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "762d4097e94ed495b4a3996bae354d8c1b9396d0620e8f794ae4356829a6e89d", dce_ast = "a7f28cc5f9919c72ef312cdfe442d985a2f1e1ac488d4e1a1f9ed212d0e9ffff", destructured_ast = "a7f28cc5f9919c72ef312cdfe442d985a2f1e1ac488d4e1a1f9ed212d0e9ffff", errors = "", flattened_ast = "8845d50db3bfe49287e668ae154fa034204bfa55269013cc73733398e1022b1a", initial_ast = "6da87355d5a0e9536d0696f385d66382858d2c36a8ed24ebec49d95beac55980", initial_symbol_table = "96982aa1a232b95f3cce88dc995284e778631b168af89eb4f049f360cf5c2009", inlined_ast = "a7f28cc5f9919c72ef312cdfe442d985a2f1e1ac488d4e1a1f9ed212d0e9ffff", ssa_ast = "cf645e1be13a0e77fe51422b2577805ec94ef0d975301860f0a950ca291dbea4", type_checked_symbol_table = "5bc0f2db28ffc8161fe3be96fe3af4fc1b8d5a518c1ea8389f035b4e93aa30b6", unrolled_ast = "6da87355d5a0e9536d0696f385d66382858d2c36a8ed24ebec49d95beac55980", unrolled_symbol_table = "5bc0f2db28ffc8161fe3be96fe3af4fc1b8d5a518c1ea8389f035b4e93aa30b6", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +struct Foo: + x as u32; + + +function main: + input r0 as boolean.private; + cast 1u32 into r1 as Foo; + is.eq r1.x 1u32 into r2; + is.eq r2 r0 into r3; + output r3 as boolean.private; +""", dce_ast = "a7f28cc5f9919c72ef312cdfe442d985a2f1e1ac488d4e1a1f9ed212d0e9ffff", destructured_ast = "a7f28cc5f9919c72ef312cdfe442d985a2f1e1ac488d4e1a1f9ed212d0e9ffff", errors = "", flattened_ast = "8845d50db3bfe49287e668ae154fa034204bfa55269013cc73733398e1022b1a", initial_ast = "6da87355d5a0e9536d0696f385d66382858d2c36a8ed24ebec49d95beac55980", initial_symbol_table = "96982aa1a232b95f3cce88dc995284e778631b168af89eb4f049f360cf5c2009", inlined_ast = "a7f28cc5f9919c72ef312cdfe442d985a2f1e1ac488d4e1a1f9ed212d0e9ffff", ssa_ast = "cf645e1be13a0e77fe51422b2577805ec94ef0d975301860f0a950ca291dbea4", type_checked_symbol_table = "5bc0f2db28ffc8161fe3be96fe3af4fc1b8d5a518c1ea8389f035b4e93aa30b6", unrolled_ast = "6da87355d5a0e9536d0696f385d66382858d2c36a8ed24ebec49d95beac55980", unrolled_symbol_table = "5bc0f2db28ffc8161fe3be96fe3af4fc1b8d5a518c1ea8389f035b4e93aa30b6", warnings = "" }] }]] diff --git a/tests/expectations/compiler/structs/redefine_external_struct.out b/tests/expectations/compiler/structs/redefine_external_struct.out index 7dfe1b01d5..be5df32e95 100644 --- a/tests/expectations/compiler/structs/redefine_external_struct.out +++ b/tests/expectations/compiler/structs/redefine_external_struct.out @@ -1,6 +1,66 @@ namespace = "Compile" expectation = "Pass" outputs = [[{ compile = [ - { bytecode = "313d955a664b50823386dc1f0d7141f5fc80174c965209376991ff0a5d0012f9", dce_ast = "1970939a0425fa00978dc2822b28f011d3c27a16aa6d9e4bad7ff681a0a7411f", destructured_ast = "1970939a0425fa00978dc2822b28f011d3c27a16aa6d9e4bad7ff681a0a7411f", errors = "", flattened_ast = "03e9facafccbbc398b682d08a79df26fdd778b91f2f4bed225ce5a5323e2171b", initial_ast = "74b39a65214c6dd05311092d4e59bd51eae97ebd18d1d680b1db55cfb54beddf", initial_symbol_table = "74e53781a60f54132c609b3b03492c4250036c379e5204b93329a9f57d49fe91", inlined_ast = "1970939a0425fa00978dc2822b28f011d3c27a16aa6d9e4bad7ff681a0a7411f", ssa_ast = "9d457405594c43b13f129dcd8b95302086654fa55355b387c83aabaaee1f2d6d", type_checked_symbol_table = "8851bc9f35e154359b0cbcc34f19cd64e3ebfcbacd301e070ad4b44e399d897c", unrolled_ast = "74b39a65214c6dd05311092d4e59bd51eae97ebd18d1d680b1db55cfb54beddf", unrolled_symbol_table = "8851bc9f35e154359b0cbcc34f19cd64e3ebfcbacd301e070ad4b44e399d897c", warnings = "" }, - { bytecode = "391aaceb8bee155d767833247676b44806a300637213cd0d4c2dcc23f93396c1", dce_ast = "a40a9b93296c22a41a527727f8cf61dc11dbed23ac00c3577333a63d6d1393f8", destructured_ast = "cdce20251477a5fa781fb90ae69dd08e12710b9d39363d4eecbfb81ac05e7481", errors = "", flattened_ast = "435f235eed4f63f31e391e6455014bd64de1320f147d156e4453414dca21752f", initial_ast = "4406bc30d232c90c5069c388652b051dbb9e5378a20f38e69cf9f847ae83aee0", initial_symbol_table = "bb3a69180106d91616ac9d6778fe8aee0fbdaab72b1b079183ebd0fcf772e359", inlined_ast = "cdce20251477a5fa781fb90ae69dd08e12710b9d39363d4eecbfb81ac05e7481", ssa_ast = "fcc3c8e717138f0c75a3c7765b26af7e5d009d1d7afd239b782ef56f0b0f3763", type_checked_symbol_table = "92c4575a892476360e9efc1a118f534c1901622faca71626bb5778f76332e5cb", unrolled_ast = "2f3e72af631b9e4cdd067c40959e112bb0a7d1a5076a6c44b818c322ab4229f7", unrolled_symbol_table = "92c4575a892476360e9efc1a118f534c1901622faca71626bb5778f76332e5cb", warnings = "" }, + { bytecode = """ +program child.aleo; + +struct Two: + val1 as u32; + val2 as u32; + +struct One: + two as [Two; 2u32]; + +struct Baz: + one as One; + +struct Bar: + baz as [Baz; 2u32]; + +struct Foo: + bar as [Bar; 1u32]; + + +function create: + cast 1u32 2u32 into r0 as Two; + cast 3u32 4u32 into r1 as Two; + cast r0 r1 into r2 as [Two; 2u32]; + cast r2 into r3 as One; + cast r3 into r4 as Baz; + cast 5u32 6u32 into r5 as Two; + cast 7u32 8u32 into r6 as Two; + cast r5 r6 into r7 as [Two; 2u32]; + cast r7 into r8 as One; + cast r8 into r9 as Baz; + cast r4 r9 into r10 as [Baz; 2u32]; + cast r10 into r11 as Bar; + cast r11 into r12 as [Bar; 1u32]; + cast r12 into r13 as Foo; + output r13 as Foo.private; +""", dce_ast = "1970939a0425fa00978dc2822b28f011d3c27a16aa6d9e4bad7ff681a0a7411f", destructured_ast = "1970939a0425fa00978dc2822b28f011d3c27a16aa6d9e4bad7ff681a0a7411f", errors = "", flattened_ast = "03e9facafccbbc398b682d08a79df26fdd778b91f2f4bed225ce5a5323e2171b", initial_ast = "74b39a65214c6dd05311092d4e59bd51eae97ebd18d1d680b1db55cfb54beddf", initial_symbol_table = "74e53781a60f54132c609b3b03492c4250036c379e5204b93329a9f57d49fe91", inlined_ast = "1970939a0425fa00978dc2822b28f011d3c27a16aa6d9e4bad7ff681a0a7411f", ssa_ast = "9d457405594c43b13f129dcd8b95302086654fa55355b387c83aabaaee1f2d6d", type_checked_symbol_table = "8851bc9f35e154359b0cbcc34f19cd64e3ebfcbacd301e070ad4b44e399d897c", unrolled_ast = "74b39a65214c6dd05311092d4e59bd51eae97ebd18d1d680b1db55cfb54beddf", unrolled_symbol_table = "8851bc9f35e154359b0cbcc34f19cd64e3ebfcbacd301e070ad4b44e399d897c", warnings = "" }, + { bytecode = """ +import child.aleo; +program parent.aleo; + +struct Two: + val1 as u32; + val2 as u32; + +struct One: + two as [Two; 2u32]; + +struct Baz: + one as One; + +struct Bar: + baz as [Baz; 2u32]; + +struct Foo: + bar as [Bar; 1u32]; + + +function create_wrapper: + call child.aleo/create into r0; + output r0 as Foo.private; +""", dce_ast = "a40a9b93296c22a41a527727f8cf61dc11dbed23ac00c3577333a63d6d1393f8", destructured_ast = "cdce20251477a5fa781fb90ae69dd08e12710b9d39363d4eecbfb81ac05e7481", errors = "", flattened_ast = "435f235eed4f63f31e391e6455014bd64de1320f147d156e4453414dca21752f", initial_ast = "4406bc30d232c90c5069c388652b051dbb9e5378a20f38e69cf9f847ae83aee0", initial_symbol_table = "bb3a69180106d91616ac9d6778fe8aee0fbdaab72b1b079183ebd0fcf772e359", inlined_ast = "cdce20251477a5fa781fb90ae69dd08e12710b9d39363d4eecbfb81ac05e7481", ssa_ast = "fcc3c8e717138f0c75a3c7765b26af7e5d009d1d7afd239b782ef56f0b0f3763", type_checked_symbol_table = "92c4575a892476360e9efc1a118f534c1901622faca71626bb5778f76332e5cb", unrolled_ast = "2f3e72af631b9e4cdd067c40959e112bb0a7d1a5076a6c44b818c322ab4229f7", unrolled_symbol_table = "92c4575a892476360e9efc1a118f534c1901622faca71626bb5778f76332e5cb", warnings = "" }, ] }]] diff --git a/tests/expectations/compiler/structs/struct_declaration_out_of_order.out b/tests/expectations/compiler/structs/struct_declaration_out_of_order.out index 0dfa220c19..5c120c8ecf 100644 --- a/tests/expectations/compiler/structs/struct_declaration_out_of_order.out +++ b/tests/expectations/compiler/structs/struct_declaration_out_of_order.out @@ -1,3 +1,43 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "863e38ce365f290cb635173708362b07c114f9c938e377d5373d2cdbd5555098", dce_ast = "81a07e90a02d1819b7a507066af8c4890a435bc44f29a76082eae87567518ad6", destructured_ast = "81a07e90a02d1819b7a507066af8c4890a435bc44f29a76082eae87567518ad6", errors = "", flattened_ast = "155b30d8457f01a785c924db88f2e56cb8eed24f0b4734162002e6c8c5641b84", initial_ast = "6f30585164eb4d8aff31f8427cb667740fde41ed391820f1536201b027933020", initial_symbol_table = "be950b64dff74bb4ad08faa37527874d28cc07461aa058f03d4d5e8994984d51", inlined_ast = "81a07e90a02d1819b7a507066af8c4890a435bc44f29a76082eae87567518ad6", ssa_ast = "753d548ee07f7271eea880232061fa6cf6fbe0cf33305adf27b99e77084a4d75", type_checked_symbol_table = "b3a46c44d3dce231e93a790aaf2ca0a2428a35e7180603c314191673e969a871", unrolled_ast = "6f30585164eb4d8aff31f8427cb667740fde41ed391820f1536201b027933020", unrolled_symbol_table = "b3a46c44d3dce231e93a790aaf2ca0a2428a35e7180603c314191673e969a871", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +struct A: + data as u8; + +struct C: + data as u8; + +struct E: + data as u8; + +struct D: + c as C; + e as E; + +struct B: + a as A; + d as D; + +struct H: + data as u8; + +struct I: + h as H; + +struct G: + i as I; + +struct F: + b as B; + g as G; + + +function foo: + input r0 as F.private; + add r0.b.a.data r0.b.d.c.data into r1; + add r1 r0.b.d.e.data into r2; + add r2 r0.g.i.h.data into r3; + output r3 as u8.private; +""", dce_ast = "81a07e90a02d1819b7a507066af8c4890a435bc44f29a76082eae87567518ad6", destructured_ast = "81a07e90a02d1819b7a507066af8c4890a435bc44f29a76082eae87567518ad6", errors = "", flattened_ast = "155b30d8457f01a785c924db88f2e56cb8eed24f0b4734162002e6c8c5641b84", initial_ast = "6f30585164eb4d8aff31f8427cb667740fde41ed391820f1536201b027933020", initial_symbol_table = "be950b64dff74bb4ad08faa37527874d28cc07461aa058f03d4d5e8994984d51", inlined_ast = "81a07e90a02d1819b7a507066af8c4890a435bc44f29a76082eae87567518ad6", ssa_ast = "753d548ee07f7271eea880232061fa6cf6fbe0cf33305adf27b99e77084a4d75", type_checked_symbol_table = "b3a46c44d3dce231e93a790aaf2ca0a2428a35e7180603c314191673e969a871", unrolled_ast = "6f30585164eb4d8aff31f8427cb667740fde41ed391820f1536201b027933020", unrolled_symbol_table = "b3a46c44d3dce231e93a790aaf2ca0a2428a35e7180603c314191673e969a871", warnings = "" }] }]] diff --git a/tests/expectations/compiler/structs/struct_init_out_of_order.out b/tests/expectations/compiler/structs/struct_init_out_of_order.out index f49be4c6a2..f22821e26e 100644 --- a/tests/expectations/compiler/structs/struct_init_out_of_order.out +++ b/tests/expectations/compiler/structs/struct_init_out_of_order.out @@ -1,3 +1,24 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e8b13087d9609aaed141be0bd8bcdcf8941faa1eff034046212c276ff58e0cf4", dce_ast = "59a9f98ca454b037595d7c67fad52659ae3fe74abe176b2df69e3596d1f1d011", destructured_ast = "59a9f98ca454b037595d7c67fad52659ae3fe74abe176b2df69e3596d1f1d011", errors = "", flattened_ast = "7deb3bedd967ca8e4f02dd2c03c9b77d56a3f9d005220ccee2c13880b900a701", initial_ast = "38ffc7c2ebcb99ee4a9e936f5566d3de081f67722eab7d87c5a1de167a22430e", initial_symbol_table = "ca7bf7eee449f8c777a7469fa6796b322a48f2e41473fe947476d5b188b5efe8", inlined_ast = "59a9f98ca454b037595d7c67fad52659ae3fe74abe176b2df69e3596d1f1d011", ssa_ast = "5c2c8a5ba3777ea8842fb4c8632ba563f84ffc888822043c4c7072862944553d", type_checked_symbol_table = "8652c3474da00cbc5113a3d5551b14dfec8a13b16176262e0f9d283c67ec1439", unrolled_ast = "38ffc7c2ebcb99ee4a9e936f5566d3de081f67722eab7d87c5a1de167a22430e", unrolled_symbol_table = "8652c3474da00cbc5113a3d5551b14dfec8a13b16176262e0f9d283c67ec1439", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +struct Foo: + a as u8; + b as u16; + +struct Bar: + a as u8; + b as u8; + + +function main: + input r0 as u8.private; + input r1 as u16.private; + add r0 r0 into r2; + mul r1 r1 into r3; + cast r2 r3 into r4 as Foo; + cast r0 r2 into r5 as Bar; + output r4 as Foo.private; + output r5 as Bar.private; +""", dce_ast = "59a9f98ca454b037595d7c67fad52659ae3fe74abe176b2df69e3596d1f1d011", destructured_ast = "59a9f98ca454b037595d7c67fad52659ae3fe74abe176b2df69e3596d1f1d011", errors = "", flattened_ast = "7deb3bedd967ca8e4f02dd2c03c9b77d56a3f9d005220ccee2c13880b900a701", initial_ast = "38ffc7c2ebcb99ee4a9e936f5566d3de081f67722eab7d87c5a1de167a22430e", initial_symbol_table = "ca7bf7eee449f8c777a7469fa6796b322a48f2e41473fe947476d5b188b5efe8", inlined_ast = "59a9f98ca454b037595d7c67fad52659ae3fe74abe176b2df69e3596d1f1d011", ssa_ast = "5c2c8a5ba3777ea8842fb4c8632ba563f84ffc888822043c4c7072862944553d", type_checked_symbol_table = "8652c3474da00cbc5113a3d5551b14dfec8a13b16176262e0f9d283c67ec1439", unrolled_ast = "38ffc7c2ebcb99ee4a9e936f5566d3de081f67722eab7d87c5a1de167a22430e", unrolled_symbol_table = "8652c3474da00cbc5113a3d5551b14dfec8a13b16176262e0f9d283c67ec1439", warnings = "" }] }]] diff --git a/tests/expectations/compiler/tuple/function_call_returns_tuple.out b/tests/expectations/compiler/tuple/function_call_returns_tuple.out index d144b52895..a845d21e86 100644 --- a/tests/expectations/compiler/tuple/function_call_returns_tuple.out +++ b/tests/expectations/compiler/tuple/function_call_returns_tuple.out @@ -1,3 +1,31 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f8a3d7352634db2882bc62840443ed6981ab356b6037c6bce8b2361189e82319", dce_ast = "252f3f18bb963961137514ba6814d68d4bb8b5c5e5d1fd6955ffd1c7ef47b8b5", destructured_ast = "ddbd78b291884bdb3178218807f0cc05b7b94a0ea135bbde6ea89c3ba5628e7e", errors = "", flattened_ast = "253ed245e59e1c3386dd35fe54366164073540f1541d8d361969912b7ef9fca1", initial_ast = "0c172f9b4921fc30d51d61eaa6205537ce6b0e1146864050154ad4a09edfaeea", initial_symbol_table = "28331a05f099f64dd23806fdf848c1d57d30b17b9ea7b5e309f4d7a7e8d4162b", inlined_ast = "b75a62d1460c2384bf73343eaa865225f3215f3fc2657f3149e2e4a71e112a39", ssa_ast = "7f57febaeac178acde1e72b5b4287ec436a1cd62a3cc941b4bd3faec97bac7a4", type_checked_symbol_table = "449efa2e1b7143cb9523cd40a1da99bd54863c3fd68e39a820173bddc544226c", unrolled_ast = "0c172f9b4921fc30d51d61eaa6205537ce6b0e1146864050154ad4a09edfaeea", unrolled_symbol_table = "449efa2e1b7143cb9523cd40a1da99bd54863c3fd68e39a820173bddc544226c", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +closure foo: + input r0 as u8; + input r1 as u8; + is.eq r0 r1 into r2; + add r0 r1 into r3; + sub r0 r1 into r4; + ternary r2 r0 r3 into r5; + ternary r2 r1 r4 into r6; + output r5 as u8; + output r6 as u8; + + +function bar: + input r0 as boolean.private; + input r1 as u8.private; + input r2 as u8.private; + call foo r1 r2 into r3 r4; + call foo r3 r4 into r5 r6; + call foo r4 r3 into r7 r8; + ternary r0 r5 r7 into r9; + ternary r0 r6 r8 into r10; + output r9 as u8.private; + output r10 as u8.private; +""", dce_ast = "252f3f18bb963961137514ba6814d68d4bb8b5c5e5d1fd6955ffd1c7ef47b8b5", destructured_ast = "ddbd78b291884bdb3178218807f0cc05b7b94a0ea135bbde6ea89c3ba5628e7e", errors = "", flattened_ast = "253ed245e59e1c3386dd35fe54366164073540f1541d8d361969912b7ef9fca1", initial_ast = "0c172f9b4921fc30d51d61eaa6205537ce6b0e1146864050154ad4a09edfaeea", initial_symbol_table = "28331a05f099f64dd23806fdf848c1d57d30b17b9ea7b5e309f4d7a7e8d4162b", inlined_ast = "b75a62d1460c2384bf73343eaa865225f3215f3fc2657f3149e2e4a71e112a39", ssa_ast = "7f57febaeac178acde1e72b5b4287ec436a1cd62a3cc941b4bd3faec97bac7a4", type_checked_symbol_table = "449efa2e1b7143cb9523cd40a1da99bd54863c3fd68e39a820173bddc544226c", unrolled_ast = "0c172f9b4921fc30d51d61eaa6205537ce6b0e1146864050154ad4a09edfaeea", unrolled_symbol_table = "449efa2e1b7143cb9523cd40a1da99bd54863c3fd68e39a820173bddc544226c", warnings = "" }] }]] diff --git a/tests/expectations/compiler/tuple/function_early_return.out b/tests/expectations/compiler/tuple/function_early_return.out index dd25f96d1e..8f169639ba 100644 --- a/tests/expectations/compiler/tuple/function_early_return.out +++ b/tests/expectations/compiler/tuple/function_early_return.out @@ -1,3 +1,18 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "cab2a38bed741bf7b4ae067086da9762dfce98c256155aece53158ebbfad7198", dce_ast = "176f43a5b2919fd6191d8236e7f9bf63198d6da91e0bdfdf87f8d913d06393f7", destructured_ast = "176f43a5b2919fd6191d8236e7f9bf63198d6da91e0bdfdf87f8d913d06393f7", errors = "", flattened_ast = "aafddc5b1c0e4aae46750722919836b3e71a8ce1cc2647ad4e8bf56981229109", initial_ast = "462ac51169ef56e2645c0159f763f0c42b41252ba99be2a834f99f5653d7f94d", initial_symbol_table = "02d8475760a0faec680f291b8ebffd8c294c4ca08dc5f1ac1b0455d0496f4262", inlined_ast = "176f43a5b2919fd6191d8236e7f9bf63198d6da91e0bdfdf87f8d913d06393f7", ssa_ast = "79bba39bc18a544b54c02d10076536ff0e7fdd471cda3098056c1952b93ac39a", type_checked_symbol_table = "1a7cebc963d8796f8da0423a51cf68fdcf0b879910e0306bd3f5212034658704", unrolled_ast = "462ac51169ef56e2645c0159f763f0c42b41252ba99be2a834f99f5653d7f94d", unrolled_symbol_table = "1a7cebc963d8796f8da0423a51cf68fdcf0b879910e0306bd3f5212034658704", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + is.eq r0 r1 into r2; + add r0 r1 into r3; + sub r0 r1 into r4; + ternary r2 r0 r3 into r5; + ternary r2 r1 r4 into r6; + output r5 as u8.private; + output r6 as u8.private; +""", dce_ast = "176f43a5b2919fd6191d8236e7f9bf63198d6da91e0bdfdf87f8d913d06393f7", destructured_ast = "176f43a5b2919fd6191d8236e7f9bf63198d6da91e0bdfdf87f8d913d06393f7", errors = "", flattened_ast = "aafddc5b1c0e4aae46750722919836b3e71a8ce1cc2647ad4e8bf56981229109", initial_ast = "462ac51169ef56e2645c0159f763f0c42b41252ba99be2a834f99f5653d7f94d", initial_symbol_table = "02d8475760a0faec680f291b8ebffd8c294c4ca08dc5f1ac1b0455d0496f4262", inlined_ast = "176f43a5b2919fd6191d8236e7f9bf63198d6da91e0bdfdf87f8d913d06393f7", ssa_ast = "79bba39bc18a544b54c02d10076536ff0e7fdd471cda3098056c1952b93ac39a", type_checked_symbol_table = "1a7cebc963d8796f8da0423a51cf68fdcf0b879910e0306bd3f5212034658704", unrolled_ast = "462ac51169ef56e2645c0159f763f0c42b41252ba99be2a834f99f5653d7f94d", unrolled_symbol_table = "1a7cebc963d8796f8da0423a51cf68fdcf0b879910e0306bd3f5212034658704", warnings = "" }] }]] diff --git a/tests/expectations/compiler/tuple/function_return.out b/tests/expectations/compiler/tuple/function_return.out index cd865ae0a4..05a617986a 100644 --- a/tests/expectations/compiler/tuple/function_return.out +++ b/tests/expectations/compiler/tuple/function_return.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4ab0ff9007818a0bf7b45a22297f4a5bdbed8a46d1b2a70e6f6d2f347f8e8b1e", dce_ast = "f86cd01830670f276fa2cc89b9dba8ee82df5a97b79b5297984c4dc103a1b3d3", destructured_ast = "f86cd01830670f276fa2cc89b9dba8ee82df5a97b79b5297984c4dc103a1b3d3", errors = "", flattened_ast = "e3cbdb31a5091aa67207ed708448099ba6bd9eddcc7288a43bc5519465a58b4a", initial_ast = "3170899acffd48b3bc59d29fe68513d53778b7d0e30219164d1f61b1db76dab8", initial_symbol_table = "02d8475760a0faec680f291b8ebffd8c294c4ca08dc5f1ac1b0455d0496f4262", inlined_ast = "f86cd01830670f276fa2cc89b9dba8ee82df5a97b79b5297984c4dc103a1b3d3", ssa_ast = "d3e858bb66c02b7aa17e6b0c422aede9f612a7265ab7f3290f83fbabcd5c0a99", type_checked_symbol_table = "706161fceb5ee6c17b0bd4b90cae4637f7e635810321123ce21946b80ae23ce2", unrolled_ast = "3170899acffd48b3bc59d29fe68513d53778b7d0e30219164d1f61b1db76dab8", unrolled_symbol_table = "706161fceb5ee6c17b0bd4b90cae4637f7e635810321123ce21946b80ae23ce2", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + add r0 r1 into r2; + add r1 r0 into r3; + output r2 as u8.private; + output r3 as u8.private; +""", dce_ast = "f86cd01830670f276fa2cc89b9dba8ee82df5a97b79b5297984c4dc103a1b3d3", destructured_ast = "f86cd01830670f276fa2cc89b9dba8ee82df5a97b79b5297984c4dc103a1b3d3", errors = "", flattened_ast = "e3cbdb31a5091aa67207ed708448099ba6bd9eddcc7288a43bc5519465a58b4a", initial_ast = "3170899acffd48b3bc59d29fe68513d53778b7d0e30219164d1f61b1db76dab8", initial_symbol_table = "02d8475760a0faec680f291b8ebffd8c294c4ca08dc5f1ac1b0455d0496f4262", inlined_ast = "f86cd01830670f276fa2cc89b9dba8ee82df5a97b79b5297984c4dc103a1b3d3", ssa_ast = "d3e858bb66c02b7aa17e6b0c422aede9f612a7265ab7f3290f83fbabcd5c0a99", type_checked_symbol_table = "706161fceb5ee6c17b0bd4b90cae4637f7e635810321123ce21946b80ae23ce2", unrolled_ast = "3170899acffd48b3bc59d29fe68513d53778b7d0e30219164d1f61b1db76dab8", unrolled_symbol_table = "706161fceb5ee6c17b0bd4b90cae4637f7e635810321123ce21946b80ae23ce2", warnings = "" }] }]] diff --git a/tests/expectations/compiler/tuple/function_return_nothing.out b/tests/expectations/compiler/tuple/function_return_nothing.out index 49a4eae1d4..2e4a3ca2b5 100644 --- a/tests/expectations/compiler/tuple/function_return_nothing.out +++ b/tests/expectations/compiler/tuple/function_return_nothing.out @@ -1,3 +1,11 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e997c02547a6881722d6ea219cf748dd821a13a4a7f2e4063aad71bb683a94c2", dce_ast = "841ba7ea96bcdbceca1dd9d6d53676fb7a6aab7f9f46f8195d8725ab6927d149", destructured_ast = "841ba7ea96bcdbceca1dd9d6d53676fb7a6aab7f9f46f8195d8725ab6927d149", errors = "", flattened_ast = "fd15fe07e96f61c9936872758776ecf8efe6bd1a6eab93b9bddf4df0bc4ed47b", initial_ast = "a076b480260c5ea0ea36da0405e311ce0dd8bff6400243213a1c8e71296e54b2", initial_symbol_table = "462cd81513e909c609e0576e90c7597534b5344a5ed8e34dba5d31aff90a0bc4", inlined_ast = "841ba7ea96bcdbceca1dd9d6d53676fb7a6aab7f9f46f8195d8725ab6927d149", ssa_ast = "a076b480260c5ea0ea36da0405e311ce0dd8bff6400243213a1c8e71296e54b2", type_checked_symbol_table = "623e5ab19827aca9f7189760af4e2126bbc139361d4686a3fc9f0c17ae068a90", unrolled_ast = "a076b480260c5ea0ea36da0405e311ce0dd8bff6400243213a1c8e71296e54b2", unrolled_symbol_table = "623e5ab19827aca9f7189760af4e2126bbc139361d4686a3fc9f0c17ae068a90", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + input r1 as boolean.private; +""", dce_ast = "841ba7ea96bcdbceca1dd9d6d53676fb7a6aab7f9f46f8195d8725ab6927d149", destructured_ast = "841ba7ea96bcdbceca1dd9d6d53676fb7a6aab7f9f46f8195d8725ab6927d149", errors = "", flattened_ast = "fd15fe07e96f61c9936872758776ecf8efe6bd1a6eab93b9bddf4df0bc4ed47b", initial_ast = "a076b480260c5ea0ea36da0405e311ce0dd8bff6400243213a1c8e71296e54b2", initial_symbol_table = "462cd81513e909c609e0576e90c7597534b5344a5ed8e34dba5d31aff90a0bc4", inlined_ast = "841ba7ea96bcdbceca1dd9d6d53676fb7a6aab7f9f46f8195d8725ab6927d149", ssa_ast = "a076b480260c5ea0ea36da0405e311ce0dd8bff6400243213a1c8e71296e54b2", type_checked_symbol_table = "623e5ab19827aca9f7189760af4e2126bbc139361d4686a3fc9f0c17ae068a90", unrolled_ast = "a076b480260c5ea0ea36da0405e311ce0dd8bff6400243213a1c8e71296e54b2", unrolled_symbol_table = "623e5ab19827aca9f7189760af4e2126bbc139361d4686a3fc9f0c17ae068a90", warnings = "" }] }]] diff --git a/tests/expectations/compiler/tuple/function_return_unit.out b/tests/expectations/compiler/tuple/function_return_unit.out index 49a4eae1d4..2e4a3ca2b5 100644 --- a/tests/expectations/compiler/tuple/function_return_unit.out +++ b/tests/expectations/compiler/tuple/function_return_unit.out @@ -1,3 +1,11 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e997c02547a6881722d6ea219cf748dd821a13a4a7f2e4063aad71bb683a94c2", dce_ast = "841ba7ea96bcdbceca1dd9d6d53676fb7a6aab7f9f46f8195d8725ab6927d149", destructured_ast = "841ba7ea96bcdbceca1dd9d6d53676fb7a6aab7f9f46f8195d8725ab6927d149", errors = "", flattened_ast = "fd15fe07e96f61c9936872758776ecf8efe6bd1a6eab93b9bddf4df0bc4ed47b", initial_ast = "a076b480260c5ea0ea36da0405e311ce0dd8bff6400243213a1c8e71296e54b2", initial_symbol_table = "462cd81513e909c609e0576e90c7597534b5344a5ed8e34dba5d31aff90a0bc4", inlined_ast = "841ba7ea96bcdbceca1dd9d6d53676fb7a6aab7f9f46f8195d8725ab6927d149", ssa_ast = "a076b480260c5ea0ea36da0405e311ce0dd8bff6400243213a1c8e71296e54b2", type_checked_symbol_table = "623e5ab19827aca9f7189760af4e2126bbc139361d4686a3fc9f0c17ae068a90", unrolled_ast = "a076b480260c5ea0ea36da0405e311ce0dd8bff6400243213a1c8e71296e54b2", unrolled_symbol_table = "623e5ab19827aca9f7189760af4e2126bbc139361d4686a3fc9f0c17ae068a90", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as boolean.private; + input r1 as boolean.private; +""", dce_ast = "841ba7ea96bcdbceca1dd9d6d53676fb7a6aab7f9f46f8195d8725ab6927d149", destructured_ast = "841ba7ea96bcdbceca1dd9d6d53676fb7a6aab7f9f46f8195d8725ab6927d149", errors = "", flattened_ast = "fd15fe07e96f61c9936872758776ecf8efe6bd1a6eab93b9bddf4df0bc4ed47b", initial_ast = "a076b480260c5ea0ea36da0405e311ce0dd8bff6400243213a1c8e71296e54b2", initial_symbol_table = "462cd81513e909c609e0576e90c7597534b5344a5ed8e34dba5d31aff90a0bc4", inlined_ast = "841ba7ea96bcdbceca1dd9d6d53676fb7a6aab7f9f46f8195d8725ab6927d149", ssa_ast = "a076b480260c5ea0ea36da0405e311ce0dd8bff6400243213a1c8e71296e54b2", type_checked_symbol_table = "623e5ab19827aca9f7189760af4e2126bbc139361d4686a3fc9f0c17ae068a90", unrolled_ast = "a076b480260c5ea0ea36da0405e311ce0dd8bff6400243213a1c8e71296e54b2", unrolled_symbol_table = "623e5ab19827aca9f7189760af4e2126bbc139361d4686a3fc9f0c17ae068a90", warnings = "" }] }]] diff --git a/tests/expectations/compiler/tuple/function_return_varying_modes.out b/tests/expectations/compiler/tuple/function_return_varying_modes.out index 24ce349153..7c8f2f986f 100644 --- a/tests/expectations/compiler/tuple/function_return_varying_modes.out +++ b/tests/expectations/compiler/tuple/function_return_varying_modes.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "1743c6b346840b6c0bf0662b87f679119996cf9d3023c1236730fd0f5ff28df4", dce_ast = "e1fbb3b52e99a3c41f55777aad1f538279085c6cf146ecc81eaadb6f9d4d9a85", destructured_ast = "e1fbb3b52e99a3c41f55777aad1f538279085c6cf146ecc81eaadb6f9d4d9a85", errors = "", flattened_ast = "c58ad513cd49d45e46ed14af87499ebfc54c1919d6444334889e15d66acf3719", initial_ast = "131b516d13cfe96d36942dc343141ffb16a04dea084f2049240da786b1a1ce98", initial_symbol_table = "02d8475760a0faec680f291b8ebffd8c294c4ca08dc5f1ac1b0455d0496f4262", inlined_ast = "e1fbb3b52e99a3c41f55777aad1f538279085c6cf146ecc81eaadb6f9d4d9a85", ssa_ast = "b33b3d89333330ebd7d4022c94dc67fa621b763e772b8cd5026aca59ded091de", type_checked_symbol_table = "706161fceb5ee6c17b0bd4b90cae4637f7e635810321123ce21946b80ae23ce2", unrolled_ast = "131b516d13cfe96d36942dc343141ffb16a04dea084f2049240da786b1a1ce98", unrolled_symbol_table = "706161fceb5ee6c17b0bd4b90cae4637f7e635810321123ce21946b80ae23ce2", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + add r0 r1 into r2; + add r1 r0 into r3; + output r2 as u8.public; + output r3 as u8.private; +""", dce_ast = "e1fbb3b52e99a3c41f55777aad1f538279085c6cf146ecc81eaadb6f9d4d9a85", destructured_ast = "e1fbb3b52e99a3c41f55777aad1f538279085c6cf146ecc81eaadb6f9d4d9a85", errors = "", flattened_ast = "c58ad513cd49d45e46ed14af87499ebfc54c1919d6444334889e15d66acf3719", initial_ast = "131b516d13cfe96d36942dc343141ffb16a04dea084f2049240da786b1a1ce98", initial_symbol_table = "02d8475760a0faec680f291b8ebffd8c294c4ca08dc5f1ac1b0455d0496f4262", inlined_ast = "e1fbb3b52e99a3c41f55777aad1f538279085c6cf146ecc81eaadb6f9d4d9a85", ssa_ast = "b33b3d89333330ebd7d4022c94dc67fa621b763e772b8cd5026aca59ded091de", type_checked_symbol_table = "706161fceb5ee6c17b0bd4b90cae4637f7e635810321123ce21946b80ae23ce2", unrolled_ast = "131b516d13cfe96d36942dc343141ffb16a04dea084f2049240da786b1a1ce98", unrolled_symbol_table = "706161fceb5ee6c17b0bd4b90cae4637f7e635810321123ce21946b80ae23ce2", warnings = "" }] }]] diff --git a/tests/expectations/compiler/tuple/return_with_different_modes.out b/tests/expectations/compiler/tuple/return_with_different_modes.out index 09face4997..639ea7038f 100644 --- a/tests/expectations/compiler/tuple/return_with_different_modes.out +++ b/tests/expectations/compiler/tuple/return_with_different_modes.out @@ -1,3 +1,15 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "1743c6b346840b6c0bf0662b87f679119996cf9d3023c1236730fd0f5ff28df4", dce_ast = "d378241a51f0a18d144b6da325ffaaa192c68f5a0df8d92d68acb7a4e9186eda", destructured_ast = "d378241a51f0a18d144b6da325ffaaa192c68f5a0df8d92d68acb7a4e9186eda", errors = "", flattened_ast = "2c490cae01032d9caa1dd16699f913352b6320c6c3e8149aa0ccd9794fe8447c", initial_ast = "d3af28fb4c08480851152d0826f94fb82a97c9caead30ad7181b32a92e1b5d66", initial_symbol_table = "8651059b3325b480030d0d0f87bed40422fd81a81ef450f7abd62aeabeaec8b9", inlined_ast = "d378241a51f0a18d144b6da325ffaaa192c68f5a0df8d92d68acb7a4e9186eda", ssa_ast = "4309af78f3dc6df5cb82ca1952180a29520c86df1750393c698770aec99cb62c", type_checked_symbol_table = "94525a281086ca6470b36eac9ce8b7c4a98d8fb1ba22a965508c4b51196a0def", unrolled_ast = "d3af28fb4c08480851152d0826f94fb82a97c9caead30ad7181b32a92e1b5d66", unrolled_symbol_table = "94525a281086ca6470b36eac9ce8b7c4a98d8fb1ba22a965508c4b51196a0def", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u8.private; + input r1 as u8.private; + add r0 r1 into r2; + add r1 r0 into r3; + output r2 as u8.public; + output r3 as u8.private; +""", dce_ast = "d378241a51f0a18d144b6da325ffaaa192c68f5a0df8d92d68acb7a4e9186eda", destructured_ast = "d378241a51f0a18d144b6da325ffaaa192c68f5a0df8d92d68acb7a4e9186eda", errors = "", flattened_ast = "2c490cae01032d9caa1dd16699f913352b6320c6c3e8149aa0ccd9794fe8447c", initial_ast = "d3af28fb4c08480851152d0826f94fb82a97c9caead30ad7181b32a92e1b5d66", initial_symbol_table = "8651059b3325b480030d0d0f87bed40422fd81a81ef450f7abd62aeabeaec8b9", inlined_ast = "d378241a51f0a18d144b6da325ffaaa192c68f5a0df8d92d68acb7a4e9186eda", ssa_ast = "4309af78f3dc6df5cb82ca1952180a29520c86df1750393c698770aec99cb62c", type_checked_symbol_table = "94525a281086ca6470b36eac9ce8b7c4a98d8fb1ba22a965508c4b51196a0def", unrolled_ast = "d3af28fb4c08480851152d0826f94fb82a97c9caead30ad7181b32a92e1b5d66", unrolled_symbol_table = "94525a281086ca6470b36eac9ce8b7c4a98d8fb1ba22a965508c4b51196a0def", warnings = "" }] }]] diff --git a/tests/expectations/compiler/tuple/tuple_access.out b/tests/expectations/compiler/tuple/tuple_access.out index 0b432fbe6e..6b2b4ed13d 100644 --- a/tests/expectations/compiler/tuple/tuple_access.out +++ b/tests/expectations/compiler/tuple/tuple_access.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "66ae5f7e0fec4de855fa451272351313df6f03b4a3799edd57ce21da859051da", dce_ast = "a8b10c0657fb9323ad21216678d2ad65fade0778c59b947a90a9e3ecfaf93a2f", destructured_ast = "a8b10c0657fb9323ad21216678d2ad65fade0778c59b947a90a9e3ecfaf93a2f", errors = "", flattened_ast = "590acb1260ed3237eafc58b3f4f4d7c07d6d9ab05e88eef50f346ffd49e5dd20", initial_ast = "0f374a92d27d0c66e79376b5d728b95da2ec88e2fc449b1bc60b1a7c31eeec1e", initial_symbol_table = "25a7b8073b584de59f0196e3b53e49beb674c9416d92fe66ae30d3e5fdc36062", inlined_ast = "a8b10c0657fb9323ad21216678d2ad65fade0778c59b947a90a9e3ecfaf93a2f", ssa_ast = "deafd8729422b274dd872a76b0cf3f2f9e3437eee1f1994d6147eb897047183c", type_checked_symbol_table = "0538976cc67f52628beb62dcdb3849aa5bddbe9d0ceefcadaf27e98ee4074e09", unrolled_ast = "0f374a92d27d0c66e79376b5d728b95da2ec88e2fc449b1bc60b1a7c31eeec1e", unrolled_symbol_table = "0538976cc67f52628beb62dcdb3849aa5bddbe9d0ceefcadaf27e98ee4074e09", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function baz: + input r0 as u8.private; + input r1 as u8.private; + add r0 r1 into r2; + output r2 as u8.private; +""", dce_ast = "a8b10c0657fb9323ad21216678d2ad65fade0778c59b947a90a9e3ecfaf93a2f", destructured_ast = "a8b10c0657fb9323ad21216678d2ad65fade0778c59b947a90a9e3ecfaf93a2f", errors = "", flattened_ast = "590acb1260ed3237eafc58b3f4f4d7c07d6d9ab05e88eef50f346ffd49e5dd20", initial_ast = "0f374a92d27d0c66e79376b5d728b95da2ec88e2fc449b1bc60b1a7c31eeec1e", initial_symbol_table = "25a7b8073b584de59f0196e3b53e49beb674c9416d92fe66ae30d3e5fdc36062", inlined_ast = "a8b10c0657fb9323ad21216678d2ad65fade0778c59b947a90a9e3ecfaf93a2f", ssa_ast = "deafd8729422b274dd872a76b0cf3f2f9e3437eee1f1994d6147eb897047183c", type_checked_symbol_table = "0538976cc67f52628beb62dcdb3849aa5bddbe9d0ceefcadaf27e98ee4074e09", unrolled_ast = "0f374a92d27d0c66e79376b5d728b95da2ec88e2fc449b1bc60b1a7c31eeec1e", unrolled_symbol_table = "0538976cc67f52628beb62dcdb3849aa5bddbe9d0ceefcadaf27e98ee4074e09", warnings = "" }] }]] diff --git a/tests/expectations/compiler/tuple/tuple_destructure.out b/tests/expectations/compiler/tuple/tuple_destructure.out index 5623614973..87674a4cea 100644 --- a/tests/expectations/compiler/tuple/tuple_destructure.out +++ b/tests/expectations/compiler/tuple/tuple_destructure.out @@ -1,3 +1,24 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "404bfa1fcdb0b113686f984a5d33322565e6acbb2438db7def4dd40d20f52093", dce_ast = "57bf00fde3d2dab5e46c659b417ba64066ea601234b6e9152691594bdbdb4d6f", destructured_ast = "f58eaa4c621abf68ec83c832671532b54ad5c5aec4ee5db237cabcbf1e368dd6", errors = "", flattened_ast = "76d50e498e05b2f475fcf8435556b68edb254bb1cc3d419c7808d7a3c4258ac4", initial_ast = "7ee49a48c707b315ee79a3276ad45eb2276bb2576cc88c515aee83ffcdf2de76", initial_symbol_table = "f8e70d3f8083339069f5f21b185bd2b8f79bbeb8356f1ffd6862bae7310075a8", inlined_ast = "57bf00fde3d2dab5e46c659b417ba64066ea601234b6e9152691594bdbdb4d6f", ssa_ast = "8234ee43fce74547bc2d54776d5970c7b5d6b209681c1cccbf01bb73700c9f3d", type_checked_symbol_table = "b857c3089099dcaaeb0c586fc2065294bf547c9aba89d542e8a9b7cf61c0b097", unrolled_ast = "7ee49a48c707b315ee79a3276ad45eb2276bb2576cc88c515aee83ffcdf2de76", unrolled_symbol_table = "b857c3089099dcaaeb0c586fc2065294bf547c9aba89d542e8a9b7cf61c0b097", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +closure bax: + input r0 as u8; + add r0 r0 into r1; + mul r0 r0 into r2; + output r1 as u8; + output r2 as u8; + + +function baz: + input r0 as u8.private; + input r1 as u8.private; + call bax r1 into r2 r3; + add r0 r1 into r4; + add r4 r2 into r5; + add r5 r3 into r6; + output r6 as u8.private; +""", dce_ast = "57bf00fde3d2dab5e46c659b417ba64066ea601234b6e9152691594bdbdb4d6f", destructured_ast = "f58eaa4c621abf68ec83c832671532b54ad5c5aec4ee5db237cabcbf1e368dd6", errors = "", flattened_ast = "76d50e498e05b2f475fcf8435556b68edb254bb1cc3d419c7808d7a3c4258ac4", initial_ast = "7ee49a48c707b315ee79a3276ad45eb2276bb2576cc88c515aee83ffcdf2de76", initial_symbol_table = "f8e70d3f8083339069f5f21b185bd2b8f79bbeb8356f1ffd6862bae7310075a8", inlined_ast = "57bf00fde3d2dab5e46c659b417ba64066ea601234b6e9152691594bdbdb4d6f", ssa_ast = "8234ee43fce74547bc2d54776d5970c7b5d6b209681c1cccbf01bb73700c9f3d", type_checked_symbol_table = "b857c3089099dcaaeb0c586fc2065294bf547c9aba89d542e8a9b7cf61c0b097", unrolled_ast = "7ee49a48c707b315ee79a3276ad45eb2276bb2576cc88c515aee83ffcdf2de76", unrolled_symbol_table = "b857c3089099dcaaeb0c586fc2065294bf547c9aba89d542e8a9b7cf61c0b097", warnings = "" }] }]] diff --git a/tests/expectations/compiler/tuple/tuple_in_assignment.out b/tests/expectations/compiler/tuple/tuple_in_assignment.out index 2206068b15..e6f5153b1a 100644 --- a/tests/expectations/compiler/tuple/tuple_in_assignment.out +++ b/tests/expectations/compiler/tuple/tuple_in_assignment.out @@ -1,3 +1,13 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "e58af56a6497ae064f0ac928ee1f89df6f05c41482ef3619acbacd8f1dfae217", dce_ast = "f42036031402eb4b732c6f15ab92ae64b18d8bbf2541ac13713bc38fcbf90af7", destructured_ast = "669ed6d76abd9b2c27cd5b02ae9e26a22b83a820e41f9f1b92434cd411905906", errors = "", flattened_ast = "e6ee7eebf86689080af2a309eda4eb0ea070312960247705e1f35229945148f0", initial_ast = "58135ff261cc746b5900469ced400c8dce6e30f753a4ab6b0b93cf928119b9e4", initial_symbol_table = "cd1a6955665f14fd45fa3972a2ed55995bbd2649d48cd20fb8ef344753cd6d1a", inlined_ast = "669ed6d76abd9b2c27cd5b02ae9e26a22b83a820e41f9f1b92434cd411905906", ssa_ast = "f9ac72939415349c29b89bfaaece6ca54cebb8d167f3417fc0ca4503c7ae6d0e", type_checked_symbol_table = "e4e2e9ef8e05f677fd8edbcbdc2f94f62f2206a4cdab45e9feb3dd9155ce8d50", unrolled_ast = "58135ff261cc746b5900469ced400c8dce6e30f753a4ab6b0b93cf928119b9e4", unrolled_symbol_table = "e4e2e9ef8e05f677fd8edbcbdc2f94f62f2206a4cdab45e9feb3dd9155ce8d50", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function baz: + input r0 as u8.private; + input r1 as u16.private; + add 1u8 1u8 into r2; + output r2 as u8.private; +""", dce_ast = "f42036031402eb4b732c6f15ab92ae64b18d8bbf2541ac13713bc38fcbf90af7", destructured_ast = "669ed6d76abd9b2c27cd5b02ae9e26a22b83a820e41f9f1b92434cd411905906", errors = "", flattened_ast = "e6ee7eebf86689080af2a309eda4eb0ea070312960247705e1f35229945148f0", initial_ast = "58135ff261cc746b5900469ced400c8dce6e30f753a4ab6b0b93cf928119b9e4", initial_symbol_table = "cd1a6955665f14fd45fa3972a2ed55995bbd2649d48cd20fb8ef344753cd6d1a", inlined_ast = "669ed6d76abd9b2c27cd5b02ae9e26a22b83a820e41f9f1b92434cd411905906", ssa_ast = "f9ac72939415349c29b89bfaaece6ca54cebb8d167f3417fc0ca4503c7ae6d0e", type_checked_symbol_table = "e4e2e9ef8e05f677fd8edbcbdc2f94f62f2206a4cdab45e9feb3dd9155ce8d50", unrolled_ast = "58135ff261cc746b5900469ced400c8dce6e30f753a4ab6b0b93cf928119b9e4", unrolled_symbol_table = "e4e2e9ef8e05f677fd8edbcbdc2f94f62f2206a4cdab45e9feb3dd9155ce8d50", warnings = "" }] }]] diff --git a/tests/expectations/compiler/tuple/tuple_in_definition.out b/tests/expectations/compiler/tuple/tuple_in_definition.out index d792b53baa..5d35b52373 100644 --- a/tests/expectations/compiler/tuple/tuple_in_definition.out +++ b/tests/expectations/compiler/tuple/tuple_in_definition.out @@ -1,3 +1,11 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "26120360e31f59b6a23dae65fe61c87e9e310aa11c12d90e995485dbeef81151", dce_ast = "05f72ceba4a6170af107ea6f04c61d026da39ac3044b302e482782058714f74c", destructured_ast = "33d7533144d6449afcf0685632abedbab432bfe11b19e63adc1bc708947a185b", errors = "", flattened_ast = "c3b9e5220dfbd1a2a90ae353884f520e13eda51da01a96e9f87b0d8557bf2cc8", initial_ast = "4b63efd197346a9a4d3cd8a15e9f94dfd4c42f82af5434c1ededede49af2d6b2", initial_symbol_table = "3ec5268ababb12c85551a8b27519461805353f1a55cd6acdca32b142c944c625", inlined_ast = "33d7533144d6449afcf0685632abedbab432bfe11b19e63adc1bc708947a185b", ssa_ast = "219654cedb5bde80cb3fd95f5d0b4f131cb84931ad848b35ea96d0d7eccea397", type_checked_symbol_table = "b68a9ba626a5ea7cab7f2b02d7502a0d5811fc890f07306782a17665adba3b84", unrolled_ast = "4b63efd197346a9a4d3cd8a15e9f94dfd4c42f82af5434c1ededede49af2d6b2", unrolled_symbol_table = "b68a9ba626a5ea7cab7f2b02d7502a0d5811fc890f07306782a17665adba3b84", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function baz: + add 1u8 1u8 into r0; + output r0 as u8.private; +""", dce_ast = "05f72ceba4a6170af107ea6f04c61d026da39ac3044b302e482782058714f74c", destructured_ast = "33d7533144d6449afcf0685632abedbab432bfe11b19e63adc1bc708947a185b", errors = "", flattened_ast = "c3b9e5220dfbd1a2a90ae353884f520e13eda51da01a96e9f87b0d8557bf2cc8", initial_ast = "4b63efd197346a9a4d3cd8a15e9f94dfd4c42f82af5434c1ededede49af2d6b2", initial_symbol_table = "3ec5268ababb12c85551a8b27519461805353f1a55cd6acdca32b142c944c625", inlined_ast = "33d7533144d6449afcf0685632abedbab432bfe11b19e63adc1bc708947a185b", ssa_ast = "219654cedb5bde80cb3fd95f5d0b4f131cb84931ad848b35ea96d0d7eccea397", type_checked_symbol_table = "b68a9ba626a5ea7cab7f2b02d7502a0d5811fc890f07306782a17665adba3b84", unrolled_ast = "4b63efd197346a9a4d3cd8a15e9f94dfd4c42f82af5434c1ededede49af2d6b2", unrolled_symbol_table = "b68a9ba626a5ea7cab7f2b02d7502a0d5811fc890f07306782a17665adba3b84", warnings = "" }] }]] diff --git a/tests/expectations/compiler/tuple/tuple_in_loop.out b/tests/expectations/compiler/tuple/tuple_in_loop.out index ad1b073e3f..f8e3040ae8 100644 --- a/tests/expectations/compiler/tuple/tuple_in_loop.out +++ b/tests/expectations/compiler/tuple/tuple_in_loop.out @@ -1,3 +1,94 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "9ef5de2d557b3a8119e5545ab597779492a53ca6f7097a946262eb65c1acdca7", dce_ast = "108683817fd2e9c6e1410cf05b70c670232e6695a758dfebfa253eb01a3c38d4", destructured_ast = "00c99ddcaf0d8f9913ab5bc98e4699d877d286de1287d66856028cc00739f6f0", errors = "", flattened_ast = "ca6aa37b1f80c8a656f9e0666321633b16abdfcbaac926a19760850c7e6027fa", initial_ast = "de829a425dc7ff52193bcf9f28a646050bc86ef38c2f9ebb5b994cbc0ce47fe5", initial_symbol_table = "ad75c84b75c9b8d8141d2d4993a65138e31ac05ae2dcb1e5d628afce4aa99782", inlined_ast = "00c99ddcaf0d8f9913ab5bc98e4699d877d286de1287d66856028cc00739f6f0", ssa_ast = "1f63cde97ec219fb4804498f65d401d88bb03f9e180fe945cc4ac0a18d385eb4", type_checked_symbol_table = "38f71064716b90ed10311163b2f545d3cf6527460e32f7281aa5b0bc78ba13e6", unrolled_ast = "dd459b73921cb41b131eead97c613965ad5888ba0eeb38763e95d7615a04eaa8", unrolled_symbol_table = "936f97bfcee50a6fd455bb9d9f8c1422764d78484fb31c5214eef0d9b9dc40bb", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function foo: + input r0 as u8.private; + input r1 as u8.private; + input r2 as boolean.private; + add r0 r1 into r3; + add r1 1u8 into r4; + add r3 r3 into r5; + ternary r2 r4 r3 into r6; + ternary r2 r5 r4 into r7; + add r6 r7 into r8; + add r7 1u8 into r9; + add r8 r8 into r10; + ternary r2 r9 r8 into r11; + ternary r2 r10 r9 into r12; + add r11 r12 into r13; + add r12 1u8 into r14; + add r13 r13 into r15; + ternary r2 r14 r13 into r16; + ternary r2 r15 r14 into r17; + add r16 r17 into r18; + add r17 1u8 into r19; + add r18 r18 into r20; + ternary r2 r19 r18 into r21; + ternary r2 r20 r19 into r22; + add r21 r22 into r23; + add r22 1u8 into r24; + add r23 r23 into r25; + ternary r2 r24 r23 into r26; + ternary r2 r25 r24 into r27; + add r26 r27 into r28; + add r27 1u8 into r29; + add r28 r28 into r30; + ternary r2 r29 r28 into r31; + ternary r2 r30 r29 into r32; + add r31 r32 into r33; + add r32 1u8 into r34; + add r33 r33 into r35; + ternary r2 r34 r33 into r36; + ternary r2 r35 r34 into r37; + add r36 r37 into r38; + add r37 1u8 into r39; + add r38 r38 into r40; + ternary r2 r39 r38 into r41; + ternary r2 r40 r39 into r42; + add r41 r42 into r43; + add r42 1u8 into r44; + add r43 r43 into r45; + ternary r2 r44 r43 into r46; + ternary r2 r45 r44 into r47; + add r46 r47 into r48; + add r47 1u8 into r49; + add r48 r48 into r50; + ternary r2 r49 r48 into r51; + ternary r2 r50 r49 into r52; + add r51 r52 into r53; + add r52 1u8 into r54; + add r53 r53 into r55; + ternary r2 r54 r53 into r56; + ternary r2 r55 r54 into r57; + add r56 r57 into r58; + add r57 1u8 into r59; + add r58 r58 into r60; + ternary r2 r59 r58 into r61; + ternary r2 r60 r59 into r62; + add r61 r62 into r63; + add r62 1u8 into r64; + add r63 r63 into r65; + ternary r2 r64 r63 into r66; + ternary r2 r65 r64 into r67; + add r66 r67 into r68; + add r67 1u8 into r69; + add r68 r68 into r70; + ternary r2 r69 r68 into r71; + ternary r2 r70 r69 into r72; + add r71 r72 into r73; + add r72 1u8 into r74; + add r73 r73 into r75; + ternary r2 r74 r73 into r76; + ternary r2 r75 r74 into r77; + add r76 r77 into r78; + add r77 1u8 into r79; + add r78 r78 into r80; + ternary r2 r79 r78 into r81; + ternary r2 r80 r79 into r82; + add r81 r82 into r83; + output r83 as u8.private; +""", dce_ast = "108683817fd2e9c6e1410cf05b70c670232e6695a758dfebfa253eb01a3c38d4", destructured_ast = "00c99ddcaf0d8f9913ab5bc98e4699d877d286de1287d66856028cc00739f6f0", errors = "", flattened_ast = "ca6aa37b1f80c8a656f9e0666321633b16abdfcbaac926a19760850c7e6027fa", initial_ast = "de829a425dc7ff52193bcf9f28a646050bc86ef38c2f9ebb5b994cbc0ce47fe5", initial_symbol_table = "ad75c84b75c9b8d8141d2d4993a65138e31ac05ae2dcb1e5d628afce4aa99782", inlined_ast = "00c99ddcaf0d8f9913ab5bc98e4699d877d286de1287d66856028cc00739f6f0", ssa_ast = "1f63cde97ec219fb4804498f65d401d88bb03f9e180fe945cc4ac0a18d385eb4", type_checked_symbol_table = "38f71064716b90ed10311163b2f545d3cf6527460e32f7281aa5b0bc78ba13e6", unrolled_ast = "dd459b73921cb41b131eead97c613965ad5888ba0eeb38763e95d7615a04eaa8", unrolled_symbol_table = "936f97bfcee50a6fd455bb9d9f8c1422764d78484fb31c5214eef0d9b9dc40bb", warnings = "" }] }]] diff --git a/tests/expectations/compiler/tuple/unit.out b/tests/expectations/compiler/tuple/unit.out index d08e7e937b..87b37b6618 100644 --- a/tests/expectations/compiler/tuple/unit.out +++ b/tests/expectations/compiler/tuple/unit.out @@ -1,3 +1,48 @@ namespace = "Compile" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "0b868939da4554de26106307f8749db7e5c629b71ec06c0870b138bc7ffabad4", dce_ast = "c963649c5ab9a1fd4f8883e674465a2c4b331b9e0fa9cc8ea5b938dc65ca8e30", destructured_ast = "c963649c5ab9a1fd4f8883e674465a2c4b331b9e0fa9cc8ea5b938dc65ca8e30", errors = "", flattened_ast = "63bfc28e505ec93892a04a9c61e20040aba6af50526c30b19847ea0a02a26d23", initial_ast = "5656071e540418bee7f1d24156ca443a68904977039c84ca8b060ead7d0195f3", initial_symbol_table = "5931e9e8bf3df8ca226d00a479f35404edcc010093d1eb360dc67d82391b1538", inlined_ast = "c963649c5ab9a1fd4f8883e674465a2c4b331b9e0fa9cc8ea5b938dc65ca8e30", ssa_ast = "5656071e540418bee7f1d24156ca443a68904977039c84ca8b060ead7d0195f3", type_checked_symbol_table = "bac9de371b7871ec03c288aa6f1f932d59509e79fbecdda79dca5f1944e347d6", unrolled_ast = "5656071e540418bee7f1d24156ca443a68904977039c84ca8b060ead7d0195f3", unrolled_symbol_table = "bac9de371b7871ec03c288aa6f1f932d59509e79fbecdda79dca5f1944e347d6", warnings = "" }] }]] +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function foo: + input r0 as u8.private; + input r1 as u8.private; + assert.eq r0 r1; + assert.eq r1 r0; + + +function bar: + input r0 as u8.private; + input r1 as u8.private; + assert.eq r0 r1; + assert.eq r1 r0; + + +function baz: + input r0 as u8.private; + input r1 as u8.private; + assert.eq r0 r1; + assert.eq r1 r0; + + +function floo: + input r0 as u8.private; + input r1 as u8.private; + assert.eq r0 r1; + assert.eq r1 r0; + + +function blar: + input r0 as u8.private; + input r1 as u8.private; + assert.eq r0 r1; + assert.eq r1 r0; + + +function blaz: + input r0 as u8.private; + input r1 as u8.private; + assert.eq r0 r1; + assert.eq r1 r0; +""", dce_ast = "c963649c5ab9a1fd4f8883e674465a2c4b331b9e0fa9cc8ea5b938dc65ca8e30", destructured_ast = "c963649c5ab9a1fd4f8883e674465a2c4b331b9e0fa9cc8ea5b938dc65ca8e30", errors = "", flattened_ast = "63bfc28e505ec93892a04a9c61e20040aba6af50526c30b19847ea0a02a26d23", initial_ast = "5656071e540418bee7f1d24156ca443a68904977039c84ca8b060ead7d0195f3", initial_symbol_table = "5931e9e8bf3df8ca226d00a479f35404edcc010093d1eb360dc67d82391b1538", inlined_ast = "c963649c5ab9a1fd4f8883e674465a2c4b331b9e0fa9cc8ea5b938dc65ca8e30", ssa_ast = "5656071e540418bee7f1d24156ca443a68904977039c84ca8b060ead7d0195f3", type_checked_symbol_table = "bac9de371b7871ec03c288aa6f1f932d59509e79fbecdda79dca5f1944e347d6", unrolled_ast = "5656071e540418bee7f1d24156ca443a68904977039c84ca8b060ead7d0195f3", unrolled_symbol_table = "bac9de371b7871ec03c288aa6f1f932d59509e79fbecdda79dca5f1944e347d6", warnings = "" }] }]] diff --git a/tests/expectations/execution/array_sum.out b/tests/expectations/execution/array_sum.out index 5f22671cf0..12f667e8cb 100644 --- a/tests/expectations/execution/array_sum.out +++ b/tests/expectations/execution/array_sum.out @@ -1,6 +1,26 @@ namespace = "Execute" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f8442f404e7a865ea2161ba7fa50f682ad3b4fe62585456913ccc47a01a6c5ef", dce_ast = "c7ba27f49e6f31d04bb5762f352e542756c20d6e16759d9e37446215f5b4f766", destructured_ast = "c7ba27f49e6f31d04bb5762f352e542756c20d6e16759d9e37446215f5b4f766", errors = "", flattened_ast = "a49903007fdf7ce6862704a7fed251751a88ac821013f686b5fff72ac8f01cc5", initial_ast = "55b89c0a219d048aa18bdd9daabb476975ccc90a470bae25c22cbad29cf85725", initial_symbol_table = "217daa5389911907f053713ca920c21f995c320126353162563e080807e1ccf4", inlined_ast = "c7ba27f49e6f31d04bb5762f352e542756c20d6e16759d9e37446215f5b4f766", ssa_ast = "8f09921e9df332dfd3898785d6fb65a1e540b6083548f23e7b8ff2fecba77055", type_checked_symbol_table = "4d6f1f781bed1c3cd702a76481bb5a45b7b2592fa4b248a494ec46bde4a0569a", unrolled_ast = "6b9db187fa8194a6df04963467ad0a88dbb6a43abfadabef4e434845eff36336", unrolled_symbol_table = "ad8fbdc3c2a496a9da0e1f84a22d2659921381b1900c7361a4658e7f3eaaa344", warnings = "" }], execute = [ +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function sum_manually: + input r0 as [u64; 4u32].private; + add r0[0u32] r0[1u32] into r1; + add r1 r0[2u32] into r2; + add r2 r0[3u32] into r3; + output r3 as u64.private; + + +function sum_with_loop: + input r0 as [u64; 4u32].private; + add 0u64 r0[0u32] into r1; + add r1 r0[1u32] into r2; + add r2 r0[2u32] into r3; + add r3 r0[3u32] into r4; + output r4 as u64.private; +""", dce_ast = "c7ba27f49e6f31d04bb5762f352e542756c20d6e16759d9e37446215f5b4f766", destructured_ast = "c7ba27f49e6f31d04bb5762f352e542756c20d6e16759d9e37446215f5b4f766", errors = "", flattened_ast = "a49903007fdf7ce6862704a7fed251751a88ac821013f686b5fff72ac8f01cc5", initial_ast = "55b89c0a219d048aa18bdd9daabb476975ccc90a470bae25c22cbad29cf85725", initial_symbol_table = "217daa5389911907f053713ca920c21f995c320126353162563e080807e1ccf4", inlined_ast = "c7ba27f49e6f31d04bb5762f352e542756c20d6e16759d9e37446215f5b4f766", ssa_ast = "8f09921e9df332dfd3898785d6fb65a1e540b6083548f23e7b8ff2fecba77055", type_checked_symbol_table = "4d6f1f781bed1c3cd702a76481bb5a45b7b2592fa4b248a494ec46bde4a0569a", unrolled_ast = "6b9db187fa8194a6df04963467ad0a88dbb6a43abfadabef4e434845eff36336", unrolled_symbol_table = "ad8fbdc3c2a496a9da0e1f84a22d2659921381b1900c7361a4658e7f3eaaa344", warnings = "" }], execute = [ { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqx5vu65atwnfh8752c43amzrv92ewszvz7u6lf4rjmp7p6wxgfrz92w7c3r6rrp86zsv04lu3p0fsqq8qj88g5naxq8afle0l2feyntzpykcq6qvgjuncs7c8tuu4cvy9lvhpcxknfrpwy9g6v4yldz9lutq9xt45f9hyhu4phvf868sszzxr5fgp294u4j6gr3vwwwg8q3ju4t5awqnh2aryp9s5lfp0p5fl3ekqwg588amjwdyqu7r93vzkkm7ar7s745ayp6ncju5g06f9auyc0zwntspkuy3mudsd6vhcu0zcz9vgq32qx6ktlxw5uq7wjfl20eh7xmts5lvecg22j2mf2du5y0pf7cvny925u78ff7lvgl67r7wuqyqpqqxjs2xykys67mgh8lj9fy94uw9huukadsyu65ns3cvp2zusan4t4zj8fyrpqj22cj27yl5gl5625q8qr6e854p2nmn9qatr295he56fuj38plg2f3w449yexvh5gvlvrnl9w5mtgwm7avt8fkemqpympnqwnv5pachhn4e9jxqzap5csd5r7up73jcvxc98evwv2pfaqagfyq6djmwfys5wfysh5gf9khwkwqvqxyqe5tfc7rj5ht2nzpa8wa0zcczds6m9jyezh94r95usge7q2hnc8njcwyu0ax52v92w55gg40qyqagpz9nz665w5aku20tdtux9zf9j6plfhe5ykahgv70fh7myc2vffws37s6n87g8d2643eydn7tunytgwa5tng42zetautsju7qyd2ztwlckrqqusyu7t4ltg9v2332sf87n2uv97s97nlnwpnlsxus66pdtjntq9ts0tk6zxuwtjfnne5qku0wz8y6j7zw9py0vmhnzw7zns3642a2jeupmvn2qc9elnsvztr0ps52l2jsk3826nsuwkz3rcuegvlk06y6dugkay92ssarcgluhffdkfav2tnl7qa8llmpxvclt2qvq58gwyjc9dv2ypjxy0dql0398z4ggtk54shszxrgelv8cqc64h7qf0s3kpg4hfxaes3k0m0578e2453yvu5qvgxw03kfnwawsmwhyppqe3sx33p2tdj9pxjmf54dc05awpsqcc2fvs8tklj997c0xsjrdpqk8h89jr9jkscp8ln8a3x2kpujg89hcyyfvzgc5mfae3depr96sgqvqqqqqqqqqqppk00dddde9yufqpz4m9selnhc4ldvwv76u4umk4s7gmwucr6rvm7gprzkdg7psvvq2jtmtqjf57qqqws48m75wsygd9sn67uxrqdrurh2r7f7cpfxlszwh8pp9vhdfrvr5l4xghs6fswunrkda8quke6vqpqxpq04qgskn7t7gr355wersrl68zqdjr0hj5ulmal5tvgfhc2dus4xt3qjkgp0zzhgs9zp5ftzz9v4ljrnj7c37exvhqeecws5wnnvcv0wzfz6w6cp2mppys8dhflsvxqyqq55xjj2", transitions = [{ function = "sum_manually", id = "au149wvd6tuy2pvz5zpj2mxrysurlf6v7ne2kj4t2xuj8j49mupfc9s38v355", program = "test.aleo", scm = "1893779522364008370528920564800894353816316246386419733877530996647548645046field", tcm = "7975307881435548581927347671860337126690869146772124069070420940707216867640field", tpk = "512383684471783892777788076619862839966981157566564726912316434903274880697group", inputs = [{ id = "3871832004960206007194165418359746087744526367165127597780555009460394183717field", type = "private", value = "ciphertext1qgqz35t2hd2sk5jvjsmzp3yzgar9yzmgrefkrlqcsdln72dc9arljpxaaue8w5thxecsncyc79g76p82jcx04fufracrdydvd9p2pxxcqq2fev2d" }], outputs = [{ id = "7459779374237983347184823155747031487499963576865774196908999556002209801556field", type = "private", value = "ciphertext1qyq9nwrm5fzlegwaumw953fkf8uhfpmjm3uxkxe32ln2zc4ej53surcfdn0yn" }] }] } }, { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqzgk9d7v3lfm8e2zjcg4khtfmqrykh34kacdh37l5lyh7lm8sdp3v7yqhs3y34p879ue4h84r8a3sqqy8ar6emfl4avcm3uwwgk30td78ltv8dgg7cz4urkah8pgepmyuv56jz453p7fty3vn5pcsck4fymqvhpgcmrf65940p3x4h7n0942mael283rfguee8zhhnuw9v36da04243w7zxtmjmzm98905hzhrjuqt5rcpuycammny6nmf30cq7czckglj439h7p3u46wy2t4xdl528hawru7kap4rupkgvxvcs906tzcpmxxfa4yrtkl5p89aqk4ffhcvvacy3ttun8k3l8p9ypnnexzx9djvcm5ejjvjmxzrmw08vgv6kf3sr0jmcj7j20w8ytvec2unnr3kaf977sr3pzphdfxhw880h5xnjuvzw5yv9gxnf2nekkvglgpuk0c7s9988pddf39ckwfa2vxv3q266ce3vy9we9hy2v9edu7dh2tydpg0d0n2xx5vj4llcehrcu8hjqxj8qd52zuq0hyvtmh2vwtxc4enp39qnn5gajqnsmnfhyk6n9mx5gpw4ery6k6s6mz399mu95ru6vk70sq0cuf9nzvrxe8gzlq4zgc6rkju2kuuppk7vwmfgp9jdzawk7ph35u8ga3ywkc9v3dvdjy83ypwytqpuw7tjdkajdp28xyuuyz3t08zte0dk4emmx2lufk248fs3zwz5s84dj7ysmp8ukda89x2ucg33482adw3645m7fhv95sq9pymwnm4jqpk5f2alg73m4ck2jn94y7lcj5n0ef6gd36dr9wv53zuhp8wy0gqf9vt9s9x4rc443nuumuk0t39w2uttxj2yg3zqhywqpqhuyrwzlsgyygjlx8yazk7zwflqgc58sx6x4jrzcn74r7xpt294rkyjd3zkswf0l6nq8hj9fay84kqtcy382p8j6gxpw9t5gp564vx8lmjt57vsxe6ulauyrpyn2t7tx3lgv40p8g5qaqjrhzs4j8fsq6rcu8mv9zurm6qhqjanvng6e9kskyl4v5c8qknze70n090wjzzfx8e8j0yskuqeempzqpf6wtslrsmttxkkmxll8svlggks56m9fj8d9e5gf03dwqjv4qm8d3856qyrngruzz7pzagt56rda0wepsrkq9cpg54njf25svqvqqqqqqqqqqpcvp7r7kxwxmjkvujqs5r2chxct8xjnavucpuygjsvd5xn97cwmpk7meuwtu937ty3ls6275rqzdqqqfp24fl6z6va407yhdgfcz56jv47hpck5rf028xtuy7uxs0ru0qn6g0uu6nd88gt8q6g8arf59e3qqqyvsvt7g3u52huqtepkqghgg5prprns2e3dcn5m0sau0c4dz993s36hmzkw6j29587h36mztpn6ca3ldnur8pf0g7tj4293hhyeag8xtjledt5qcje83dsaq997m7l9qsqqqquj8fn", transitions = [{ function = "sum_with_loop", id = "au1gndhxhdnwatf9qxkx4hyfyy69uf6w004fwzlmty93nhq5em2qsfqygfpky", program = "test.aleo", scm = "7410915781437728459378166429703486561569640859133578857905554519607570043435field", tcm = "4622791303988101841327005652441860772220114266951663803601422301383920316221field", tpk = "2648975399333506891066430487012965830441159294533947089744287387271134408105group", inputs = [{ id = "772635140311600224499625393792585633609227532332583845718848508798666411485field", type = "private", value = "ciphertext1qgqw6xer529098zj3rgm2nrg3dj20hv4nq4nd5g5qrwh4v335g07yqyhjdspaz3f70jg9v4d8ygguw8ua3s2eaqjjakfxsgyce7zaq94p5q5hl7t" }], outputs = [{ id = "2420554371177431671531694917613942509941429348142036766297981901624867129673field", type = "private", value = "ciphertext1qyq22jv42rfhtk4vm2gdrscyntg34xxxcpz89azdxurffu9tupmquqcmdutsr" }] }] } }, ] }]] diff --git a/tests/expectations/execution/assert_early_return.out b/tests/expectations/execution/assert_early_return.out index 6baca29881..09032988d7 100644 --- a/tests/expectations/execution/assert_early_return.out +++ b/tests/expectations/execution/assert_early_return.out @@ -1,6 +1,18 @@ namespace = "Execute" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "dcedc1bc91c69a0293e85eaf247f91c31ecdc7da396f8bd029a791b623b27f0b", dce_ast = "8d9c60afeb23fdfd453535e5bf370fe112f584bfe577ca242894b95b95ae317f", destructured_ast = "8d9c60afeb23fdfd453535e5bf370fe112f584bfe577ca242894b95b95ae317f", errors = "", flattened_ast = "5510f15ec8ca2ce3ceeda7e7602762a46501a477d78a9de1bdbbcc49fae5671a", initial_ast = "e8a19b119ac7b49ae5dcfce634d667acd10b703bceff4671d96f4afe20ea4679", initial_symbol_table = "4385b8b53e4d4eb5db19a127df6fd852718a2459ba96434cfe4a9629b05b8ec9", inlined_ast = "8d9c60afeb23fdfd453535e5bf370fe112f584bfe577ca242894b95b95ae317f", ssa_ast = "f88a870f6a619b2a1366e44c4dbcc0e32d91800ce0b35a0e887613ed4eddde93", type_checked_symbol_table = "ef8e911b1fef63398da28ece44e13f6e4ae15541181ec8e7a3c0e48b967b2cb2", unrolled_ast = "e8a19b119ac7b49ae5dcfce634d667acd10b703bceff4671d96f4afe20ea4679", unrolled_symbol_table = "ef8e911b1fef63398da28ece44e13f6e4ae15541181ec8e7a3c0e48b967b2cb2", warnings = "" }], execute = [ +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + lt r0 5u32 into r1; + or false r1 into r2; + assert.eq r2 true; + ternary r1 true true into r3; + output r3 as boolean.private; +""", dce_ast = "8d9c60afeb23fdfd453535e5bf370fe112f584bfe577ca242894b95b95ae317f", destructured_ast = "8d9c60afeb23fdfd453535e5bf370fe112f584bfe577ca242894b95b95ae317f", errors = "", flattened_ast = "5510f15ec8ca2ce3ceeda7e7602762a46501a477d78a9de1bdbbcc49fae5671a", initial_ast = "e8a19b119ac7b49ae5dcfce634d667acd10b703bceff4671d96f4afe20ea4679", initial_symbol_table = "4385b8b53e4d4eb5db19a127df6fd852718a2459ba96434cfe4a9629b05b8ec9", inlined_ast = "8d9c60afeb23fdfd453535e5bf370fe112f584bfe577ca242894b95b95ae317f", ssa_ast = "f88a870f6a619b2a1366e44c4dbcc0e32d91800ce0b35a0e887613ed4eddde93", type_checked_symbol_table = "ef8e911b1fef63398da28ece44e13f6e4ae15541181ec8e7a3c0e48b967b2cb2", unrolled_ast = "e8a19b119ac7b49ae5dcfce634d667acd10b703bceff4671d96f4afe20ea4679", unrolled_symbol_table = "ef8e911b1fef63398da28ece44e13f6e4ae15541181ec8e7a3c0e48b967b2cb2", warnings = "" }], execute = [ { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqyvqt730zv9tjp289fd47x9gcc3xd03jpwl8x59nedg925t7jufap9cn948s3amdwedd66qum2a4yqq8t8fzffpwfmrs5gxef340ps3gymz3ge898gq0uktcvc8twqnkcpyuxxpp0gp2l2yyv226c5a8w4xq06ehgq5tgduazzy7wp583qe6p0lgenkmxd9uvefxsxwync94r6wreu4elmue04yxwdaw346g6jtcqxzye5nev0gns58cpsn4vvsjpkzvyk52kvypq50kypz0thcczxre6xagevwlkh70964cqlszdkjjvpfz7c8ypppmepv48cw54fg0e22yehuyktw7z0wrupcyrs7arv0yvp3hz9sm8ejnl36pmv89q7gv0cpysrfxqdjn546tg89wudqt2uya6qwny0mus2pvxqjzrza8vaqvh77mrsw5cze06jsqzgfk6c72rfq9rqzgrnz30arwlv30yxtpk9l4rrd5dw2lxkll9f8hv992l935uxhyrlpudu785ms8rjpspck9000qzwd46p3f99xkj3adjxl0jxej5ksx9rt00ycs9g5udhgwjzrr4xxtdn2jsjfkf4njuu5x6s4rm7h2q9ywhheyek9d5zzdhde4jj2u53l822gts2dt3rwkpqsg6a8mhenk3hjakj4nxjtwdqpayemp4p5hqq7x5mvj82wmqrq24yz7njzswq76tjx66v93nqfw3n89kvauga6gxlv0yf384pkus80muczzmlcja7rhe0ll92fxkaqr5g9zyj8s7g6z6fn4rg4jjm70h2wl44zc6j538qjsxnpzlp5vm9l77ncvh02esuzrkk02na9h4lynujrqayqh30aqxughwvehwxmjd4gc9qmgl0tgksyvpmevwatklrc8qet0mvqd4neu9skppv5v7jeph2ev5vamrt0usdrxn50l47q0j6fsk8uxf42j22lt2rtz59qj0dvpdsavun0qd64gy66qflc0fnga7pc8ejn6wahz402ctg8xn9vwcwjv05krmw2lezjztzmxzf7f2yn7st88qd2cgts9pu6gckypzq8qagz33mvlkfetznpmnc7zv6lx08vsuj38j7sw6ujdrcntp4u24mghkqtr8hrwvjjyusnlsz432dd7hdyq4erx2m9enl6jtvgdwmah9y4pdq9dudz58n2tqxqvqqqqqqqqqqqx49luc5ltce6nldndf0kr40cj94q2he05pe3mzrqzr80uwtrtsc39css06lq66kntnf405spxf6qqqtrtketcdsmehc48retlk95f3483hyapjlhdg8jjvu7tlny07dvh5p6wv2fsuzcq7vd8tsh47pj0qqqxg9wljy2z6t8mmkpg3kq6n5nerk69qnhda0clhtylj2spmj92gs2ygydtg3cj3mqja3nj8wxa5pqsrxr0u6f2etgcul6luukn5p3kmpxxz6l8twg6ed5c79xuwjpdu8qyqq28alxn", transitions = [{ function = "main", id = "au14f2670sc8ctrx6yxh6ul437nldqujkpeuwke2h3v9e4jeqgnmgqsvv6qgg", program = "test.aleo", scm = "2303738667493433860273317733707681990458101881183765024674076257655590754869field", tcm = "956295719465073094565613190152229406522389368662418205874320011543205263268field", tpk = "4440143486107103992672711015966996078009453027120325474960931472576699485110group", inputs = [{ id = "1949397954224848824575951368219471374317423483328237061474447511813071331229field", type = "private", value = "ciphertext1qyqvw6l0n2n2hfk6l3s4vhm6fr3q7edyln3amu9mkgkfvr6g6zg6gzseuzhlk" }], outputs = [{ id = "588623943503757267501820045717084110015013266930773589316823232307129930688field", type = "private", value = "ciphertext1qyq8g5f3dwdpjrv0j8jpzkya05c65w66zypnuf9xutpxsv26q56zqzst43x3z" }] }] } }, { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqze9c0ap4lzdsc6dfxaevcnapq8asgl5h82qug87t04vxu5lqrcrzrv9p6wv8y6cxz8hm36clg2espq83637qdhymk6dlysnl37tgranak3pelhvnhxyxjxnx7dj6nhskzuw7y5g7mhwtqvn7pwmn274tusqxps4jhzppt08pmgarhafrxgp0u9xvgpnpgw7ynvzq6w2pmzuxhk5wmndqj9c4hxs728rzy9ea5qyqzdy39k9yus0cm37s57t4algvc2jz9f9dd0funwxl0xere34lctwms67783l2393vsysjtxkf9nkcq2sxgpl9pyjv2egc3678yt9v9zsf4l06hwf0dkgdjkl89auu7fgkdp5pg5se334ynstqunlc2w7eqqp4q655v0xtxxgyepr2t8c0nxa68pteuf72s4ztw76t888kn9ttsqla2ze3frpae6s8mr7zqgqpsqylmnkrzuvjd7e2384fz0u7r9qaul8r48w77t2ss7sgd3t2sx7mntynthyasvmfd9mamy7vl20uyrqxjlr0yw4dhg6nuu2ahqq3hv5kg237hm4fhyqk20z3yrx9l9dk4xtnfglt6ed8u4csnn78nuruwt7qelwnqn7pjkz95fy6nc4j7njm60ta60k8f5xp7qlxgc2554ah6a3tatl7fw4046uqr8gvj7nf2we5pzdn287aqctjuf6k09433s8fkk3k4tnmswxss4j67xdf42yr0zv96qt5umtph8f8dk9g2sec2cu505m02skl0jvmgyqy929qpy39cypnsq46n2h5xw2xdx4r4lxtpejvhlmdjvrxx2amlah65vckgsch8qkqr72yhezepestxreunl8m3lkwhl3hf228x0rwnm9ta2rzxuvfsgt7yjhwuqu73pewjffp8l9h696v0e9sxtqu3kj3jymy2etx4anq2hhxykerag9wgwz385rafg60n52f23q84ckg8j368l4sg0hx8fq99zcg2yl0yv99ntqj2c3kus0jwgrysgwx3jtfxr6rl009nyemhzqyqmzva7cdc87jp4e3hqyswf4hzazngdmzqf08gh462da57jzrcp86e0tr7p3qjzfx94en4g6hhysha0780n84trnqrr40jnuywaaeq24v9n4ynsvdwq8gwq5azm0l9jrhzm6xrvxhcrf9k48puzkhj8qqdqvqqqqqqqqqqqmlue7vd5mfradxfnjf9vztg6rp29ewlp3xc7gx23ack27yrru80qg6a0xgg4ajhn4x37q9jq4mjsyq22hhqmzzweprta6gfezs9s87kxrlw9jeksa9zeqsn2ww7wnhp0520hdlpvu7wep3s7u4lcapswfcqqy0fghkv6lgvlm564lq43kv4xcqzsr0x3lq39ekhas82pleq06q3r9pzzquzyq6akxdqsj24ty74eyzlrjzv5t4e5v0ww43mee39neua3q2s9hvghketljjccmr7mfc2sqqq4f4ut5", transitions = [{ function = "main", id = "au10j060xemhs6hp22q5z9f666j9jjyx3ddrp9p0d8pf4kdq5j27sys3zqngj", program = "test.aleo", scm = "4900036025129937911534831193930720357249672696528783301190811935205857609210field", tcm = "235738461878268264507244718392472317265018971642030445084183397632412772752field", tpk = "4152732181525065617351199828917779834060023954124968050606284621055360799826group", inputs = [{ id = "8074222261243563712897852261345879392213326355389000002015095766254732085943field", type = "private", value = "ciphertext1qyqphpe0wgwrqph360vc5m6ewu4dv3qq6d890sfddxjrwfjmcgm2jqgw89lgc" }], outputs = [{ id = "3194122436616881424292291350925952583187555336316524560479373486165793182061field", type = "private", value = "ciphertext1qyq86n235v5ggscdchqvt6k4hms3c8gkh4jzydf283rt622lrl9yzqg5s07wx" }] }] } }, { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqq00r9s5y8p7uz89emtzg9yq4yxmthtftne3lpqf76rvkdeqduujsz0nhf3dzs5c6zwt25feum9whgpqyqh7t8t2d4gc8cetzxx793wlv52rlszsc5yu7gpksrvmzf92vytva6hs0s6l4tlga3zhejm5a3j0qpmhrvy00uzlmepupjspnp8lsehat5jqenq58ww3382569vr0v5svv34c6ke7mtm4zxzt5cm9dqhyqtvc89x463g2q3s57dwfcafhzrv32zg47ddpjq8h07zx8kjdhkldca5s7kg2ye2l99h6mcllsd2vcqsu0hmw4arx908wfcsz757q6djsf8rkvueft90xu3ymuhwfun0td9s2uagr2a5w3cjjhg59nhgx9grv5dlpt4l2ykx779q026ysyvt3er49u336tkqf9vgpndpjkjund66pvlem3jaf20srmved7w6svfszhazjva27e2pc30vnqq0h209jp6lywlg3gvw4pe0tq075qf95dhat63w496rssgxuaewnx2ju5jxq087zlf79efqfnqkkexe06audzf4l8vq5fq89pz9fnc8tqjm4qlfc7akajalayvsv0jjl0fkdkxszq02wkdrpj22y6qpssmszalk9rsj9dpw7jujjgp890ta3fmprman3a60fnkp5yg9x7vt9z29ze2n4gqcg2v0wa9u72u38h3wn76wq36w60z8jkq6meu8ssqaemv7rpfku9qw4720rje2cvganrg5dsl9d6pl6zcp2mqa5e0658dzv0wtu3k7pgc7zr2fm0ffvvd6cgdmwetffazz3q95q22udwmy9y7w57ethudpdy0uvpyg37x2m4n5n6t08s4jw74t64tjymdc8aw9jatze4attqsvv28klkpgtl2t5tuz8h2xus0f9m49v8l9hlrcqvhvngq7cu03qs24l5pqqekjxshxmwuajgek36cphd8my5rspmd262jvrdeytzacgrgdzfre63n8lv8w88twzc50qdtswduszaum2ayz2vtcsmt4zua7qg04uz02d2sx2pk8cujh8rv76xmnaezqqtlgv9f06cjdxgawsqxqflsdrua5hx24kwk8sq7jc3umqwazl6pjvfnspsldj7lu4u29rtpqyuhe2u8z25mxrea53zfc8dh3r2tyw0fnl4x79t6h23vjgw6lxq8qvqqqqqqqqqqqe7nnktqsl2pwhq450csr34wdam6s6qnyd4muldvw627ft2a9xag3dlzef8m52pfnfa5cl5vj982qqqz2jzrzpqmlynw5f3vfftfxlvl36jshw9e0urgrh8wq89h0le0uts5z5ayp86uum6em8ftava4qssqq88edxa6futpjkpgk44k2w6nra32h95y5nxzm4lercytu62gm7wqmt75wv5m980rkxthzsf5lx2jmq3fmcx6s4wfcxm2ha4cu0chs5jhlnx8ds7yjps7dqruxms78zdxsyqqdyg39a", transitions = [{ function = "main", id = "au10gyaju6yr9me6d8l28fwhx65w2zls2t0ccfy3t5pngax55nnq5qqqxrny8", program = "test.aleo", scm = "5258565730318103630533845951156419665533866493701567935669993589597692371521field", tcm = "2890782865234133958171457586056509922468321574973631315281975799959033914364field", tpk = "8230740749397616342957301999706650915153644162812370837746638975145956411137group", inputs = [{ id = "88204195335974216418759683303292216043779078355613167945781354727344920385field", type = "private", value = "ciphertext1qyqpvkn6v5kk9tuapl84vqu3jte0f2w7qxuyt73s82kswx76qdz57yqktgrnz" }], outputs = [{ id = "3914369771983733353164101765555458008753606209615886837893508835416845292078field", type = "private", value = "ciphertext1qyq0nqz7sswcmmh9ass9v2n0cfrghtuzgx7ey3yrqd9uhtkvf6d2qps6rkspa" }] }] } }, diff --git a/tests/expectations/execution/cast_coersion.out b/tests/expectations/execution/cast_coersion.out index 026acb45e4..a1a9f7d8a3 100644 --- a/tests/expectations/execution/cast_coersion.out +++ b/tests/expectations/execution/cast_coersion.out @@ -1,6 +1,28 @@ namespace = "Execute" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "675912267b82b91bd854fa2ef169b85c74ecaac6b73a157d7e99818e256b53b1", dce_ast = "2a0e5585007503ef568572b188bae1212a4839548f624b022aafca1ce8e2cf24", destructured_ast = "8bc445642f52d44cedf36737681f945b99b647953026bb44a836eac1c3cd5d69", errors = "", flattened_ast = "8e2378df83a8f59228993ec32ae9fbe19318052a3ced6b451b6f720ca6171257", initial_ast = "409d57cef21ca167d937cf70c1d7c116bc900e502831b395698e9d3f13ae0961", initial_symbol_table = "736ef33d4ea34eb43862ee271decb4587901ab41e91e4f8e41b8f99d1f8b557c", inlined_ast = "8bc445642f52d44cedf36737681f945b99b647953026bb44a836eac1c3cd5d69", ssa_ast = "7f12fbc88f56e33590cbb790827e4ec6a04fa9be41e6c1f2bf48515e430d9dc5", type_checked_symbol_table = "1c73cb243b5146909a9fbd64fb8862bd15578904deaa7ce579d713e635bd0719", unrolled_ast = "409d57cef21ca167d937cf70c1d7c116bc900e502831b395698e9d3f13ae0961", unrolled_symbol_table = "1c73cb243b5146909a9fbd64fb8862bd15578904deaa7ce579d713e635bd0719", warnings = "" }], execute = [ +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +struct foo: + data as field; + + +function main: + input r0 as boolean.private; + input r1 as group.private; + input r2 as address.private; + cast r1 into r3 as field; + cast r3 into r4 as foo; + cast 1field into r5 as foo; + cast r2 into r6 as field; + cast r6 into r7 as foo; + ternary r0 r4.data r4.data into r8; + cast r8 into r9 as foo; + ternary r0 r5.data r7.data into r10; + cast r10 into r11 as foo; + output r9 as foo.private; + output r11 as foo.private; +""", dce_ast = "2a0e5585007503ef568572b188bae1212a4839548f624b022aafca1ce8e2cf24", destructured_ast = "8bc445642f52d44cedf36737681f945b99b647953026bb44a836eac1c3cd5d69", errors = "", flattened_ast = "8e2378df83a8f59228993ec32ae9fbe19318052a3ced6b451b6f720ca6171257", initial_ast = "409d57cef21ca167d937cf70c1d7c116bc900e502831b395698e9d3f13ae0961", initial_symbol_table = "736ef33d4ea34eb43862ee271decb4587901ab41e91e4f8e41b8f99d1f8b557c", inlined_ast = "8bc445642f52d44cedf36737681f945b99b647953026bb44a836eac1c3cd5d69", ssa_ast = "7f12fbc88f56e33590cbb790827e4ec6a04fa9be41e6c1f2bf48515e430d9dc5", type_checked_symbol_table = "1c73cb243b5146909a9fbd64fb8862bd15578904deaa7ce579d713e635bd0719", unrolled_ast = "409d57cef21ca167d937cf70c1d7c116bc900e502831b395698e9d3f13ae0961", unrolled_symbol_table = "1c73cb243b5146909a9fbd64fb8862bd15578904deaa7ce579d713e635bd0719", warnings = "" }], execute = [ { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqyt4zzckxnnhmmnhjkgd89s2rzvj3twtld6sutzyngp2zt806e8ppqeng4ncxrztaqkdunmfqd7e5qqyphrfleuraudqzcyuxf8acjvm2t4ctdd8eqq0rhjrcq9s5hmnzuk977q64mg8lynee7hrf5lm7a2qypanafzdqyhlp92v4y9fp8xw0r9dasz4c0kfs55vgu7fq5cmjdrl7gt0rf7n2a38hnq847jzwqn5qtcpcshsjk2dg2guq457ch69suupz7pjuv8pnu9msq2ycmf4jp4zaklepqg5pg9nw2x90nukyn8qcq80639h742a53eljcwwsakj0cdg7gjcp3unzdcmd82yql46kucd2pa6qg0vjh4fdka6c2s69nh6pgqaypmzhvpjgpxx69r53zqzywj9m038h9g9hahsdcny7p85c40a2r03x2k97d522d4eadv4ez4vz8sxtv9q47ypelecj606k86aakk37axfeycl6ntc33n3x69qcjs3x9frxdhtf0x4vql0gphuhmasl42q0tvw9lmnac6mlmmxn0awl8nd38gz6way833pdv4lrng3znp9yzw32h7j0hg9asmtkv66zkagk3pvqzwzmq5e3yv3vag7gk0j3g86twz6pear8n7cns50xft9m578fueq483dnwm4k2t0hnlld62mk5udcqyq6xat893r73vh3hqv583lck0lk8524rvm8fdzfy347rxt7yr5zjmwcwtgev05r6tna752xqwy3gxceal39et2pdkafvlzj5yrdewqmjkf29mt4wqwevp8v4wq7qpa2wmp8dfqp6p5w9p67uc300pvrgqa7nwyz57rcfmv9q2c655pap3a2s034l3e24w0usjaqtg2kl4a3sxmk6scruwlpetes8aqgqsstk6cqhhxqun0dat7nacynvm0836sc9046xtl2srhkm8g07tu4uaeungljgqz3kzlf5d382llmedvya2c9jpe5vl7u825d70qe4ntawxm7p7xcprlauh2xnhpzvtj9uwjz26zasafxehjr6hz92847w7938edzdqf95yn6lrte6f3mur58rmehrptws8u4typ5wnl202uel2qz820xg5ju2jtuad0pzue6r6h8fw62syl5ksncn4tpe0nt4y8jtz5tlaakzvalcen4dn2f29y33d70htdq0qvqqqqqqqqqqppyuhyzdzsczx2slcgjtlau0gkpnuzmcdvmq2y69e28h9k0fehrjc8m8y49rksysscaaxnav4qpnqqqp35klxztq9p9sw82cmqn9vcdrk20m33fdq52y9hqm4pgfgvw7emxj520wfjhyhnlpru7lts8u9rvpqy0dgv62fj7lcmc4mey05e5wekfrhk8frqejq8mnffyd2wt3esds3rej37cc08wzpmyzzcuvy2hmc370czsx3z6gks08lu805x0m0ruzcn40f3lzxjf8h8gtedsmcppzsqqq09wlp9", transitions = [{ function = "main", id = "au19ru855myk4t0aw9tawe5ftq2kdmm4nuu7d4waynh5emvl5lyu59q40pw0c", program = "test.aleo", scm = "976314679729564700856316609545716173163081344239778489091042818470177990760field", tcm = "4346953566447634214157280385182045626270093194427104596054934347800656899000field", tpk = "7835567325899127550325463306228588669553911215612671657187814910151824399315group", inputs = [ { id = "6553328887630693918140800407584311566408184361951185023715750666420867125941field", type = "private", value = "ciphertext1qyqrl26w4vwmsf5p6708na5w3ww6jkq2du0pqjmfz55t5adux5kfjpchujf78" }, { id = "6949753692437523787678502261587020559735106657718800640882220306538353449741field", type = "private", value = "ciphertext1qgqy8wgk3rxhjd7dm26p68w22ympfhjxf35h4vywsg8krwtfp82vxp83uraceaudrnf43xp0xs9z4kdjgj6e83w4zguuthypdqx3ujl9qgzmfqag" }, diff --git a/tests/expectations/execution/chain.out b/tests/expectations/execution/chain.out index 33fbb1bf02..90b84e6282 100644 --- a/tests/expectations/execution/chain.out +++ b/tests/expectations/execution/chain.out @@ -1,6 +1,19 @@ namespace = "Execute" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "f6aaf7f7a13fb233511385db7479f2612e7a77734ee6a189f063bd3d33a7afaa", dce_ast = "a172dc2d0aa013289712d534ebc157adb7cec67796f708faea31970a051ec0e5", destructured_ast = "749bea4883e5c8d589e7beef106b7eab4e8d11faf8a275962eb0a9dd834a0c0f", errors = "", flattened_ast = "8aa42c48a8d35fbadb8f9a27a8e0102fdd17ca72f28656bfe5af7664540e6c4e", initial_ast = "74426941096b3fc3154c3f0925212a2a30fc13e23d4a13bbdecbecf6e460ec82", initial_symbol_table = "6509016b6899f5938f44b2dab2c895fb70c487d9413773a25f58619ab9b0a9be", inlined_ast = "749bea4883e5c8d589e7beef106b7eab4e8d11faf8a275962eb0a9dd834a0c0f", ssa_ast = "a17a7c9223e4067b834734861d45709c0042a57b60c92b3d59ef327e4c01e6e6", type_checked_symbol_table = "9cde38c1c78dabc185e6d664e18afad86baaae5745eaf8e51c5709a3a62a3e14", unrolled_ast = "74426941096b3fc3154c3f0925212a2a30fc13e23d4a13bbdecbecf6e460ec82", unrolled_symbol_table = "9cde38c1c78dabc185e6d664e18afad86baaae5745eaf8e51c5709a3a62a3e14", warnings = "" }], execute = [ +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + is.eq r0 1u32 into r1; + is.eq r0 2u32 into r2; + ternary r2 2u32 3u32 into r3; + ternary r1 1u32 r3 into r4; + is.eq r4 r0 into r5; + output r5 as boolean.private; +""", dce_ast = "a172dc2d0aa013289712d534ebc157adb7cec67796f708faea31970a051ec0e5", destructured_ast = "749bea4883e5c8d589e7beef106b7eab4e8d11faf8a275962eb0a9dd834a0c0f", errors = "", flattened_ast = "8aa42c48a8d35fbadb8f9a27a8e0102fdd17ca72f28656bfe5af7664540e6c4e", initial_ast = "74426941096b3fc3154c3f0925212a2a30fc13e23d4a13bbdecbecf6e460ec82", initial_symbol_table = "6509016b6899f5938f44b2dab2c895fb70c487d9413773a25f58619ab9b0a9be", inlined_ast = "749bea4883e5c8d589e7beef106b7eab4e8d11faf8a275962eb0a9dd834a0c0f", ssa_ast = "a17a7c9223e4067b834734861d45709c0042a57b60c92b3d59ef327e4c01e6e6", type_checked_symbol_table = "9cde38c1c78dabc185e6d664e18afad86baaae5745eaf8e51c5709a3a62a3e14", unrolled_ast = "74426941096b3fc3154c3f0925212a2a30fc13e23d4a13bbdecbecf6e460ec82", unrolled_symbol_table = "9cde38c1c78dabc185e6d664e18afad86baaae5745eaf8e51c5709a3a62a3e14", warnings = "" }], execute = [ { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqq9ctvd7nqe5r4628udh2c5a99furju8lz6nuyr9ja7aye507tzq6rmm6vsl5czaj3qwhchma07mjuqq8t8fzffpwfmrs5gxef340ps3gymz3ge898gq0uktcvc8twqnkcpyuxxpp0gp2l2yyv226c5a8w4xq2lk5huzyasj8s9rzsttd7af9zq4305t4unvl4dlhr0vackf7wsqyt59qsd7z8lpv7ekzrx9ahx92qvk5lpw7nhpt3n8c3vtzlr8ggcmslg8afje6t7vh7a8v87jnvnpmh78uvrts7cj3fr5ef8uhxrc0qp9lagt7y2f9nmxt2wm3ygfv9vr85t3gt6gqqunptft0z7senak565qe0xh5ugpcpeqnsdg5sq3lsgplyaajree0hw0mygv07hp5wj7pzd0fcmcj6vmyuvcjrgsht82ry275c2zn04qt53mcj55qq6qjensru5hfdcfcecve8h6r78ge5sdevcl4ptdjccuxsuu5t6v7vqewwhepynp9qx57j2yvgfzg6sskgh7qrf7g0frc40j5hyrd5a2fzc822s9tqh256rpwk6xsfu82asrht7vwr4c83rrduql2j8fsjle225dvqgjmncgukfv3k3kyznfrkuzp9u3pfvc95se5hvlqxurzhafavw3zhdl7pugjuzfcugk7n9s82r8xvpf35z7mj776ynyrka2x37k9samtk04runyvk40cs5l488j0nj8vxq878rm25y6gk9hgqmzqq0z3j9vwtq9hj8hwzrnxq924xlcqef5rt78w2dcpl8ekaal7r59j6mgsake9jqaaaejejkwz9s6fkgwvptpmwzy6jxw6hyrjha8y37v0utd59j60p7zjsrr3eh40q3lac25vfs2ujpe8jkasnx7ay773f8nzzk7e5sv9yctc5y5pvm53yae90ad3qvx78zq2zr38up38q42x0wjxj52rnwgl9lru2tk3ktaekqxshgyuryua2vgz6u74uxs6mmngkq49fym3grymjh7v3xypnj6tcd3th9xrp9wz7ue9ry58ytdnlrtx4ed99a62jcgrja0rn6y9gszd5ehx0cq49wcwwkk03x20zhdydsh707pxu4x893yrzrkqvtkzx3gwkhv6xsjkncys6cvtfdfa46ktetqh2hufun0uzz9vjw2nd6yzcary9uzgsqqvqqqqqqqqqqqzh6hthzayscauryrcc3lurfu0xegy5f2c2wz54fltl8enxsqmhtclvuvphqq7cavk3xp4arg88xqqqfrrxvaz00l69zxyx37x86eyy33pfmnux77cpsak2mjzkyspdrpq8e74kcr3fjsgf0rpwvm95cqp5pqylhhnq8y77ugms2qes7ce6m778xf7jkpvjz7mltnd6eyxa6fkysm5rscwfmsfs9rq2d9gfqql83fv3vs6ajfxlhuzmv7kupwzupshsg898pln7ppy2qquk54j608vyusqqqu226wq", transitions = [{ function = "main", id = "au14f2670sc8ctrx6yxh6ul437nldqujkpeuwke2h3v9e4jeqgnmgqsvv6qgg", program = "test.aleo", scm = "2303738667493433860273317733707681990458101881183765024674076257655590754869field", tcm = "956295719465073094565613190152229406522389368662418205874320011543205263268field", tpk = "4440143486107103992672711015966996078009453027120325474960931472576699485110group", inputs = [{ id = "1949397954224848824575951368219471374317423483328237061474447511813071331229field", type = "private", value = "ciphertext1qyqvw6l0n2n2hfk6l3s4vhm6fr3q7edyln3amu9mkgkfvr6g6zg6gzseuzhlk" }], outputs = [{ id = "588623943503757267501820045717084110015013266930773589316823232307129930688field", type = "private", value = "ciphertext1qyq8g5f3dwdpjrv0j8jpzkya05c65w66zypnuf9xutpxsv26q56zqzst43x3z" }] }] } }, { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqwc5hxvld7dt7hm7m5n038v2vn9hj4clae8hj8ssxyg9eseejwxyuqjteqsrfr7glaxx9a82q6qkcpq83637qdhymk6dlysnl37tgranak3pelhvnhxyxjxnx7dj6nhskzuw7y5g7mhwtqvn7pwmn274tusqxr84cuanufnxva8285cp7ky94n3zvkqhqf0ha2nppyry0ree5aggpqepmlty45dswctk4wx0c4p2qw4gjajzy0tk3v35kvlrpxfhlsf6sexyr6t3688qtqt0nfrucxcum7674xeun8czc0rjn2jx79z4sqsf29fle7yk88rcrwjk9hx6n2l9kfqa8wzzhv8jecktr9ml5jsa4qvhh58c0sy9y2grhmmue2eymczxwzxuyjn3l8u0azmnnum7e8cmq0qna4ldelrd2pdm6seylqsw33ncmm24a07p5aqsvd7xt0ttygsy4ssdcq8uu4hd072xs58g2szcxvdx5hnjalwr9s4vmka0mz6x3hpnrun63r2mkrmjx7e89skwym2qpkkua07h5fw9t5p4k9vcfcmvml70a3emgnza7ccdawfuj09kzxuk5jany7t63m69w5ng0288ad9squmruvahrn5t5mlj44lge7nep5mdn8tusug454wv2pm562j2jv6z2g0wl2aqm78nat4nyev3ckwwcqt2jjqw2t3skh9aw3c5cylm2fnrensz2cyh42sdl0u9xxxfy6nqxm8t8w9tt8eweuncjxfjg5m2lnj25ldgdxdfn0779s0s480g2zsp6m03le24ywzy84ffjrresjht3snjueks0hjkqy960rh54vvx5gp0v7rj0r76333w7n8e42remxfvgyezuk8qlceumhvqyg07nmcckqurzqga2fah0yxd9ldrftmvqmepkltkk2zrtej2yxdhrsqsxtp4c2vt9g2fp8n2pr0nmjsx6pjz0kxfz3k273vnanctfj7g2s8a2esgqhpy24px76fh6j4y5harq6spdsl3tem7r86c0x9ktzd2gxq65fyqktmpdhnwy3lrayrhveh6rw04hfdjelmllqs5jmps387znjlzqkqzk3snzv3njf32rqqh46arnenpegq2cflvpg9ltl8dxjw3dwc0vqgnvzrasrx7pn4x90j29kfdtv6l8d00qlh3tm7f828duus62w3vszqvqqqqqqqqqqqnz6e6hgyucw8wj6s6ujek5dvayumxmcrgazfm3wctxq95kk0rxyrzy99lhpjrhze3pphqh9g49esqqgkjw45dj60axhp3d3v7e3xknlg0lp522qchkrf2hpuhzlr4c7npk8suuwtmqfsvfkce38f2c0dh5qq9zumrsgfmt05m6u7tg5vdd23yncuysyvhmpz0lcrx0j6grh3xqq2mtckutcu05dfk4t0pnug59exz3jjfjjv6jh5vtpqttvpn8n665lc6vy0tu4szy80uldfa3upsyysyqqwkfss6", transitions = [{ function = "main", id = "au10j060xemhs6hp22q5z9f666j9jjyx3ddrp9p0d8pf4kdq5j27sys3zqngj", program = "test.aleo", scm = "4900036025129937911534831193930720357249672696528783301190811935205857609210field", tcm = "235738461878268264507244718392472317265018971642030445084183397632412772752field", tpk = "4152732181525065617351199828917779834060023954124968050606284621055360799826group", inputs = [{ id = "8074222261243563712897852261345879392213326355389000002015095766254732085943field", type = "private", value = "ciphertext1qyqphpe0wgwrqph360vc5m6ewu4dv3qq6d890sfddxjrwfjmcgm2jqgw89lgc" }], outputs = [{ id = "3194122436616881424292291350925952583187555336316524560479373486165793182061field", type = "private", value = "ciphertext1qyq86n235v5ggscdchqvt6k4hms3c8gkh4jzydf283rt622lrl9yzqg5s07wx" }] }] } }, { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqv7dw3ka4ejksgxtx6akhekvvf07p4yc9ya4r0qhf2mxu3fv658yqg8q7p2qteg25lsm4xzhp78zgpqyqh7t8t2d4gc8cetzxx793wlv52rlszsc5yu7gpksrvmzf92vytva6hs0s6l4tlga3zhejm5a3j0qzlhh8kwgxsyy9hcvfljmjsgf2mmuntlnkfkuashw698tmf4wzccz7pn5vrdwjxxe59ll34f77j9uqvqjlcqfz6djdgd48x5gj4rmrqua3ucag77kpdmufrdq7wmqx8flmtyf3axhglp3sg8em2estzv5vprgyak8k0crwwecc5ggt0z9ar5nlfzmu5m7pkvafusae27k6uxlmvmajuj25ykmum6hj8vlxdyurczvpx884rtkgmzz8np682a867ukdflum4c87fv8f5wfp0s2fxmphhtq62r4atxeg76g6vtenlafgssxal8thl8meu6ugyqevnt2ez9a2yx7jrdet42p5fp6zxdch82nkdrwk4ez7djkltw4t3k90whdqfgqyv287wen99g2gmxh6e9500mr3xgt2lht68u34feg8xrk559fwtkd98w07j7ny6tj7as4g97zdn7kqwydywp0fsn62szjrnp2mz4yh5wy7ee0wy0ufxw3azpl24rjqcaqsnwsql3mma60r5l0pa2yulxeypr0cd34vvnqu9s4frveakpgl662wjg622a633pxy3kqcgtku3ccxvzvkfugxnec58pt7fwt4jpwu88hsj6zqc47qzmmqrjmc9wwlycqvuga2mn648vk32mfhqfpadguu6renda5d8au7x44x04rakhdc8qrzafahn28pd4pnvcmsyqdnmd789ezmupeewec2jhwptxgn9yrmqqqw9zm9gh66vpmxfhmmheauqdnakqv0ue2sr0fnqnf5lj2x56ws80ht3yuvln6tw5qypsgcuq6wlyzxl7grr9mwl5r9xhenvdqtg6gp63729vy88gdquzyqfythm5tmumkrzkaf728awasrsd85vnxswgr55gvyvglzg5svlhe2elc7qjqluufsa7x4ar4cakxv243sgcp03prmdshll60cd7e6e6zfcy0js3csenmrzhak25r5c6jttll4rknpsse7yrkqaehvkh3jk38qmx9pmpssygk5ece0d98a6avqzu4x7zdgxqvqqqqqqqqqqq9y8x9q96t2fhnwxwm2cucn9cm8r02v5pusrhe3naz07ynz65n80zldkx2sc7x0286qa8984aj2ssyqwd3k675gq2vr2rjvvr8ekht4ltzs0el5hn7uv3hgfctwk0xramaqahwj3urycvt4ztmmzy503985pqxxh2r8fl2n65t7x32t0vhqkfu9q7ygry6vmkaqr378lu4qpufesejkd57res5aj02a8cf7acyv4aw88g0xypsh63nm98vwmcg3wg3hv6sr4chvxu3rm28qjpsdrj3e5qyqq3j7lvs", transitions = [{ function = "main", id = "au10gyaju6yr9me6d8l28fwhx65w2zls2t0ccfy3t5pngax55nnq5qqqxrny8", program = "test.aleo", scm = "5258565730318103630533845951156419665533866493701567935669993589597692371521field", tcm = "2890782865234133958171457586056509922468321574973631315281975799959033914364field", tpk = "8230740749397616342957301999706650915153644162812370837746638975145956411137group", inputs = [{ id = "88204195335974216418759683303292216043779078355613167945781354727344920385field", type = "private", value = "ciphertext1qyqpvkn6v5kk9tuapl84vqu3jte0f2w7qxuyt73s82kswx76qdz57yqktgrnz" }], outputs = [{ id = "3914369771983733353164101765555458008753606209615886837893508835416845292078field", type = "private", value = "ciphertext1qyq0nqz7sswcmmh9ass9v2n0cfrghtuzgx7ey3yrqd9uhtkvf6d2qps6rkspa" }] }] } }, diff --git a/tests/expectations/execution/complex_finalization.out b/tests/expectations/execution/complex_finalization.out index 8933bfee99..bb4e53a429 100644 --- a/tests/expectations/execution/complex_finalization.out +++ b/tests/expectations/execution/complex_finalization.out @@ -1,11 +1,141 @@ namespace = "Execute" expectation = "Pass" outputs = [[{ compile = [ - { bytecode = "52779e86c63e1768f658aa3b1bbdaaa43251abbc0ea64c1d898a9e85cba92bb5", dce_ast = "5a575b2f164da6a3cd46a931c22e669547b5e4d9f9c7c05be2e0e3e4fadfe0d5", destructured_ast = "0671bc2face4c33922cdec4c53618fc14489f8346d8acfe1bf144dd696e9611e", errors = "", flattened_ast = "b5ed12dd399d58be21f0a2a7a043b9daf7b23d6b4219df3d8da8518f352832e6", initial_ast = "e6bc75a3724b70577f756022a39ffb50372edc46e13b2fd4ab577e1e912a29c9", initial_symbol_table = "f7b34d530665598aa8aba5e5336aa060585283b8b2a76dc98306ff173a203071", inlined_ast = "5a575b2f164da6a3cd46a931c22e669547b5e4d9f9c7c05be2e0e3e4fadfe0d5", ssa_ast = "7217c90bbea4fdec312462ca844b543af8dc5196616fd1587ec3c7d4f7c84f3a", type_checked_symbol_table = "0e02485a2b69bbeb947d1e5c948468b9e7528bd682057d9c85a57faaaa83fdc9", unrolled_ast = "e6bc75a3724b70577f756022a39ffb50372edc46e13b2fd4ab577e1e912a29c9", unrolled_symbol_table = "0e02485a2b69bbeb947d1e5c948468b9e7528bd682057d9c85a57faaaa83fdc9", warnings = "" }, - { bytecode = "745bf39548194d111a724d0f689714d35016d491c0ca78bcc82b500affe6dd05", dce_ast = "ba53501ad2f5854c6dcd49e17a9c208e7a3c5ded4fc30507b9ce9353b237e61e", destructured_ast = "77a4ce1ae7af068cc283b615a58d453187a5df45ad1c971947750f448ae307bb", errors = "", flattened_ast = "fb18dd53c61b7f4332ee7d82f11c82e6fa4d4c6bbf4a793052552a04f297c507", initial_ast = "326e0b5b0b4599e0e82bc3c83fbc13b30cbf76279dbf4d0c4773255f05964325", initial_symbol_table = "1243dd49dd17a9f777fcdc00d5c44fd2fb083705b8d5a35bae91be413bcbd3fa", inlined_ast = "ba53501ad2f5854c6dcd49e17a9c208e7a3c5ded4fc30507b9ce9353b237e61e", ssa_ast = "a7180c0d2198909f330b3b00414d1dc13f8f697c2d335d0279bdb6ef0b56b6ac", type_checked_symbol_table = "4c0efa312c0552ae635997b4efbeab453e3cffa1ab9deff3e9b0e99225d0d863", unrolled_ast = "326e0b5b0b4599e0e82bc3c83fbc13b30cbf76279dbf4d0c4773255f05964325", unrolled_symbol_table = "4c0efa312c0552ae635997b4efbeab453e3cffa1ab9deff3e9b0e99225d0d863", warnings = "" }, - { bytecode = "63f847c74fa6d9e087be27e6cdbe40035b78675c173b83f75929ab082d1362c8", dce_ast = "22f3f544c5331fee78a3b81381f6695bdaa06f437c4a56142b36da1e852d9840", destructured_ast = "c1e81066ab08a49915eaaed5b82b323ab1b7227157be6916832ff22eb658b15c", errors = "", flattened_ast = "eba4b124fd3df6170a5cbfaad89f0e6d398cb2cba50d61b3c18f00381a6b3be9", initial_ast = "2c14e776b891d7131858e07a8dba4dbf727b3d01dbf4d2e22415711d688dc7c3", initial_symbol_table = "6223f92c3bd5bbad5da2f567698b6e984ece97d3134095b26cc0b1d11079f60c", inlined_ast = "22f3f544c5331fee78a3b81381f6695bdaa06f437c4a56142b36da1e852d9840", ssa_ast = "1f4225e1f83eb88bb3368544c3b2a077da163281476eaeb688334dac41bc0a9d", type_checked_symbol_table = "e22aa51f2a565205fe03a6f3b00552bd2e3442e100315dab5f2805a7f8b4cb69", unrolled_ast = "31db5dfbc43b124cb4780c1d629ee28de4a249a5aba21727a0dcb9726d4322f6", unrolled_symbol_table = "e22aa51f2a565205fe03a6f3b00552bd2e3442e100315dab5f2805a7f8b4cb69", warnings = "" }, - { bytecode = "d1e5f85421db54ae081514b026936fe5000a36feaa60a4cf7b28212303f6456f", dce_ast = "8accc3977c89a2e948b39f6abc2c7f989e52313aac237bcb25469e4bc91fc4f1", destructured_ast = "5407ddb3a931cde7e50dc466557108fde8f6ebfd8d446cdb44855542208f4056", errors = "", flattened_ast = "3fa8070cfe4be62533fb8b3d899c490f940686a97ae01ee0c8f6f7743527d726", initial_ast = "387aba043fde6ead4d99bf4eb5c817051491a7d16aecd6383411e3cbc6aaefd5", initial_symbol_table = "7d0a0d54b673b8428f972bec8346ca6830248f69cb3fba4b42c32e1a72cc1b0f", inlined_ast = "8accc3977c89a2e948b39f6abc2c7f989e52313aac237bcb25469e4bc91fc4f1", ssa_ast = "0ad477f1c1bc42ebcd4098caf856428e5be9a0845972cbd2908dcf53c6ce45a0", type_checked_symbol_table = "ea10fb298006b83389a483e12f9b97b7e1f691dc0a1aee602e74e10d915e8b0c", unrolled_ast = "f93e4fd19542c5af01a5e0aec60e9f6265491a0952cafabfb7cdcfac00bd81b9", unrolled_symbol_table = "ea10fb298006b83389a483e12f9b97b7e1f691dc0a1aee602e74e10d915e8b0c", warnings = "" }, - { bytecode = "7eae5abe4170258417df0bc1e66ec3ff346dfc2a1b325844241bf5e2c7430a12", dce_ast = "9c779149583480acdca132daad34c2577ec0d09e28c36b11ecf91beb556cc7b5", destructured_ast = "5677314a7b55bf523441d3c40029daedf97666fb7821159b0c88654776ea2932", errors = "", flattened_ast = "35f966d0d86e1e38c2c6650d83e62d701a9b9440766b78919ee0b509c3255cf7", initial_ast = "f731cdda879e0134eb5b1cf0d64d3cf5abbee2fd2ce758d3afac05ee07fb885f", initial_symbol_table = "8272b3774900302d111cc659f82a49e7df702875ceb4e54787c068bcac901a85", inlined_ast = "9c779149583480acdca132daad34c2577ec0d09e28c36b11ecf91beb556cc7b5", ssa_ast = "8a4f2ea8f8118515b8843aad5a201824dc2c6b06046f68698dde622f5ace3c4f", type_checked_symbol_table = "3b9ce08a512a197af239b00944b50298885603f4f723debc4ee96b281d28bc4c", unrolled_ast = "79017a53e402d0c7aad500a44936f4e06e418407b4a2b40f2bf69a185c4865c0", unrolled_symbol_table = "3b9ce08a512a197af239b00944b50298885603f4f723debc4ee96b281d28bc4c", warnings = "" }, + { bytecode = """ +program zero_program.aleo; + + + +mapping counts: +\tkey as address.public; +\tvalue as u64.public; + + +function c: + async c self.signer into r0; + output r0 as zero_program.aleo/c.future; + +finalize c: + input r0 as address.public; + get.or_use counts[r0] 0u64 into r1; + add r1 1u64 into r2; + set r2 into counts[r0]; + +""", dce_ast = "5a575b2f164da6a3cd46a931c22e669547b5e4d9f9c7c05be2e0e3e4fadfe0d5", destructured_ast = "0671bc2face4c33922cdec4c53618fc14489f8346d8acfe1bf144dd696e9611e", errors = "", flattened_ast = "b5ed12dd399d58be21f0a2a7a043b9daf7b23d6b4219df3d8da8518f352832e6", initial_ast = "e6bc75a3724b70577f756022a39ffb50372edc46e13b2fd4ab577e1e912a29c9", initial_symbol_table = "f7b34d530665598aa8aba5e5336aa060585283b8b2a76dc98306ff173a203071", inlined_ast = "5a575b2f164da6a3cd46a931c22e669547b5e4d9f9c7c05be2e0e3e4fadfe0d5", ssa_ast = "7217c90bbea4fdec312462ca844b543af8dc5196616fd1587ec3c7d4f7c84f3a", type_checked_symbol_table = "0e02485a2b69bbeb947d1e5c948468b9e7528bd682057d9c85a57faaaa83fdc9", unrolled_ast = "e6bc75a3724b70577f756022a39ffb50372edc46e13b2fd4ab577e1e912a29c9", unrolled_symbol_table = "0e02485a2b69bbeb947d1e5c948468b9e7528bd682057d9c85a57faaaa83fdc9", warnings = "" }, + { bytecode = """ +program one_program.aleo; + + + +mapping counts: +\tkey as address.public; +\tvalue as u64.public; + + +function d: + async d self.signer into r0; + output r0 as one_program.aleo/d.future; + +finalize d: + input r0 as address.public; + get.or_use counts[r0] 0u64 into r1; + add r1 1u64 into r2; + set r2 into counts[r0]; + +""", dce_ast = "ba53501ad2f5854c6dcd49e17a9c208e7a3c5ded4fc30507b9ce9353b237e61e", destructured_ast = "77a4ce1ae7af068cc283b615a58d453187a5df45ad1c971947750f448ae307bb", errors = "", flattened_ast = "fb18dd53c61b7f4332ee7d82f11c82e6fa4d4c6bbf4a793052552a04f297c507", initial_ast = "326e0b5b0b4599e0e82bc3c83fbc13b30cbf76279dbf4d0c4773255f05964325", initial_symbol_table = "1243dd49dd17a9f777fcdc00d5c44fd2fb083705b8d5a35bae91be413bcbd3fa", inlined_ast = "ba53501ad2f5854c6dcd49e17a9c208e7a3c5ded4fc30507b9ce9353b237e61e", ssa_ast = "a7180c0d2198909f330b3b00414d1dc13f8f697c2d335d0279bdb6ef0b56b6ac", type_checked_symbol_table = "4c0efa312c0552ae635997b4efbeab453e3cffa1ab9deff3e9b0e99225d0d863", unrolled_ast = "326e0b5b0b4599e0e82bc3c83fbc13b30cbf76279dbf4d0c4773255f05964325", unrolled_symbol_table = "4c0efa312c0552ae635997b4efbeab453e3cffa1ab9deff3e9b0e99225d0d863", warnings = "" }, + { bytecode = """ +import zero_program.aleo; +import one_program.aleo; +program two_program.aleo; + + + +mapping counts: +\tkey as address.public; +\tvalue as u64.public; + + +function b: + call zero_program.aleo/c into r0; + call one_program.aleo/d into r1; + async b r0 r1 self.signer into r2; + output r2 as two_program.aleo/b.future; + +finalize b: + input r0 as zero_program.aleo/c.future; + input r1 as one_program.aleo/d.future; + input r2 as address.public; + await r0; + await r1; + get.or_use counts[r2] 0u64 into r3; + add r3 1u64 into r4; + set r4 into counts[r2]; + +""", dce_ast = "22f3f544c5331fee78a3b81381f6695bdaa06f437c4a56142b36da1e852d9840", destructured_ast = "c1e81066ab08a49915eaaed5b82b323ab1b7227157be6916832ff22eb658b15c", errors = "", flattened_ast = "eba4b124fd3df6170a5cbfaad89f0e6d398cb2cba50d61b3c18f00381a6b3be9", initial_ast = "2c14e776b891d7131858e07a8dba4dbf727b3d01dbf4d2e22415711d688dc7c3", initial_symbol_table = "6223f92c3bd5bbad5da2f567698b6e984ece97d3134095b26cc0b1d11079f60c", inlined_ast = "22f3f544c5331fee78a3b81381f6695bdaa06f437c4a56142b36da1e852d9840", ssa_ast = "1f4225e1f83eb88bb3368544c3b2a077da163281476eaeb688334dac41bc0a9d", type_checked_symbol_table = "e22aa51f2a565205fe03a6f3b00552bd2e3442e100315dab5f2805a7f8b4cb69", unrolled_ast = "31db5dfbc43b124cb4780c1d629ee28de4a249a5aba21727a0dcb9726d4322f6", unrolled_symbol_table = "e22aa51f2a565205fe03a6f3b00552bd2e3442e100315dab5f2805a7f8b4cb69", warnings = "" }, + { bytecode = """ +import zero_program.aleo; +import one_program.aleo; +import two_program.aleo; +program three_program.aleo; + + + +mapping counts: +\tkey as address.public; +\tvalue as u64.public; + + +function e: + call two_program.aleo/b into r0; + call one_program.aleo/d into r1; + call zero_program.aleo/c into r2; + async e r0 r1 r2 self.signer into r3; + output r3 as three_program.aleo/e.future; + +finalize e: + input r0 as two_program.aleo/b.future; + input r1 as one_program.aleo/d.future; + input r2 as zero_program.aleo/c.future; + input r3 as address.public; + await r0; + await r1; + await r2; + get.or_use counts[r3] 0u64 into r4; + add r4 1u64 into r5; + set r5 into counts[r3]; + +""", dce_ast = "8accc3977c89a2e948b39f6abc2c7f989e52313aac237bcb25469e4bc91fc4f1", destructured_ast = "5407ddb3a931cde7e50dc466557108fde8f6ebfd8d446cdb44855542208f4056", errors = "", flattened_ast = "3fa8070cfe4be62533fb8b3d899c490f940686a97ae01ee0c8f6f7743527d726", initial_ast = "387aba043fde6ead4d99bf4eb5c817051491a7d16aecd6383411e3cbc6aaefd5", initial_symbol_table = "7d0a0d54b673b8428f972bec8346ca6830248f69cb3fba4b42c32e1a72cc1b0f", inlined_ast = "8accc3977c89a2e948b39f6abc2c7f989e52313aac237bcb25469e4bc91fc4f1", ssa_ast = "0ad477f1c1bc42ebcd4098caf856428e5be9a0845972cbd2908dcf53c6ce45a0", type_checked_symbol_table = "ea10fb298006b83389a483e12f9b97b7e1f691dc0a1aee602e74e10d915e8b0c", unrolled_ast = "f93e4fd19542c5af01a5e0aec60e9f6265491a0952cafabfb7cdcfac00bd81b9", unrolled_symbol_table = "ea10fb298006b83389a483e12f9b97b7e1f691dc0a1aee602e74e10d915e8b0c", warnings = "" }, + { bytecode = """ +import zero_program.aleo; +import one_program.aleo; +import two_program.aleo; +import three_program.aleo; +program four_program.aleo; + + + +mapping counts: +\tkey as address.public; +\tvalue as u64.public; + + +function a: + call two_program.aleo/b into r0; + call three_program.aleo/e into r1; + async a r0 r1 self.signer into r2; + output r2 as four_program.aleo/a.future; + +finalize a: + input r0 as two_program.aleo/b.future; + input r1 as three_program.aleo/e.future; + input r2 as address.public; + await r0; + await r1; + get.or_use counts[r2] 0u64 into r3; + add r3 1u64 into r4; + set r4 into counts[r2]; + +""", dce_ast = "9c779149583480acdca132daad34c2577ec0d09e28c36b11ecf91beb556cc7b5", destructured_ast = "5677314a7b55bf523441d3c40029daedf97666fb7821159b0c88654776ea2932", errors = "", flattened_ast = "35f966d0d86e1e38c2c6650d83e62d701a9b9440766b78919ee0b509c3255cf7", initial_ast = "f731cdda879e0134eb5b1cf0d64d3cf5abbee2fd2ce758d3afac05ee07fb885f", initial_symbol_table = "8272b3774900302d111cc659f82a49e7df702875ceb4e54787c068bcac901a85", inlined_ast = "9c779149583480acdca132daad34c2577ec0d09e28c36b11ecf91beb556cc7b5", ssa_ast = "8a4f2ea8f8118515b8843aad5a201824dc2c6b06046f68698dde622f5ace3c4f", type_checked_symbol_table = "3b9ce08a512a197af239b00944b50298885603f4f723debc4ee96b281d28bc4c", unrolled_ast = "79017a53e402d0c7aad500a44936f4e06e418407b4a2b40f2bf69a185c4865c0", unrolled_symbol_table = "3b9ce08a512a197af239b00944b50298885603f4f723debc4ee96b281d28bc4c", warnings = "" }, ], execute = [{ errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyzsqqqqqqqqqqqpqqqqqqqqqqqqxqqqqqqqqqqqqyqqqqqqqqqqqqsqqqqqqqqqqqpsqqqqqqqqqqq5var0y5tumwfxn2zhxyzg3k9ytf2qyzq9pamq2z4f84ap98xg7rdfsqfujtpxsxtk9qv8wf5hzcqu409ty4pcczufvcj2e7cq27mskjvehfm54xuds97z2mtgxadqxesl20pdmvy0lpa68lahq4ze2ysqu6kl9z2y6dhcc6q3dzhv6a5unfcux2nnluemlvzljwevw75mmh6wdz55k9vfgf6fpjkzwsh0lg3qq2ntatu9m8q8yggunm6ar0ntmfpa27utlz6xtjfmr3vk4tdpzpaj0dud0gghhttmseey5srlsaasqr96h8a63avwz44d5e9wcc3ymgd2d33pw8q4r0a2d2pt3zl02y5w9zecfhewspp4q35s92u2qkrkrqfrvd6xkd2chwll850ehch4f7jtpfdqefcnc022v5n33a4tnhs7mf8y9n5z2gd7wzkmx66w6cru3jqxfauzk34l3g5lqnkamavjejl4rr58ysfn5n2248t4acse46dh7j7ll7znu8hrqqvr5k9mpvpz6xgqh2q358zgh4qtuygxcz84h5aazze4kys75vczensdqjpnnzk79g0q5mfs0z3tgecy2ye0qx8jqjasp7u73agrlgca5h66ehqp6m6f22m8nk3a5xen3m2p70w5ne4dnpwx4s3de3w4npsyyaswml0p6a88srf474kugak4dcev249ph64d4xudem7sl8j6l4e590v527ek8jne84sj2jej3ht9l9w92m0alc4kpqqp6xdyu695uh58p03jeas9pj96fmsgn2ckt9cgdlpgwylscs94wgyux7n95ap57jj4erpeqau956xcz66r4r3qzh5yg5vuy8ns03e2mvamcm0kgwuyaa9yzzy7xqeecf6xxagcdzsnf4veq2pw00f99yn4szy6marlqq5sq8hy25qs9ked9rkrh88jwt0xd286032ye4kcywtth5w24xuz0kfa6ptwkaq73ckcpqv28jzkhj52zln9ue95yth88dr9m5kpc96z5sgvpy8kjyxd7ap0krua6mpc30lawys9at5ej8a7r7qerpldlgfthpy7lgwfdsv0sqlt7qfyz2nfsc2k7rn000hg0jlkz2vfh4qfsg69zwznkxy9er6f9gqptu78awm35q5en7fu0dwkpu2vlp07nl53pfm6ar20wkjftydt4ej6t0ygzws4vqpuza8982j39qjgr3rdc34qa8qxunfwrt8m3phjglud5twgayhw5m7cqruv90my863c55ajas66yxmga2ymj35k9pl2szsghl3kvu6jh8dyr57qqu34qxglr49a2q95lmkqxtz3vkzd9j29eqsxcl4xk8w3tahu3aktntq7uq85usnur6smyue8jd0j9znwq5w3da7rym73v4jcfsyha09cddzes6jaknes9hywy2v0w9nzsn3dswqzehwh50xtg944dprhdz3rnpx6t8a0n23n4hukwr45p0lkexy6jsg3h6v04s02y0npd7klsl3gtfupmeu5nm8mlh4s94n82dvvmzhrsuqlveg0f5m272970khqvmnkzdgx72llenfag4xvqzmngnn56qgcpzhw4gc5yzm2rq73r87wwhl0wql35v88ffmgx8hmt2gm3zuk2tmvvswttruf09urktw6ga73xr9ws8ehwm28weqnnl6f9rlfhdwahdy3m49g3953jpa4v3gtc7xpufacauhled78ha3yw7lzcves576vyq8ev6r8cq7v4sh2rv4d4yh0ryzkljm9uxsgu88y005vfl6uhqasgx7ezykl6s2k4avfkuuxpceuxxqdsrvxm7t6fwekgk7chw676e40wfrsplk87qagu7teh0tm6u0ukadfaxd8mfyznqylm4nu7vnmwv5phhr2fy8cupqwwta62840700g9f950ux7vxjxfjsnvswwnxkag3jkr5a7kmtyvf6qcycttxfg2gcczmddn0pzn87sa60zxc266g2gchye73nfvzryxap5tefz4f396hsy04m7zx243m0fuxfd6vt57yycqz2wqkpdfrvzps7spc2dkuud66m70s90jjn3dtks6v5dlgpqjudnga8l38rk299hv8e8wd8m2nd22qdac6jfp78qgrnjlwj3atlnm6p2fdrlphnp53jv5ymyrn5e4h2yv4sa804k6erzwsxpxz6ej2zjxxqkqpwxmnfmgkkyqwuk0ly48c5tmhs8u0lya2nw2mkq2j3myz79n077x36xe2tgw4e5a7a7n8qp3gcpl2wfcucqcmnwh4msk45eahfq9jja7ekud2q2drn2sw9crwlvjyyttlzpllr2ykg76rm6dyvwe5scqy3jgr6hcy0g8xg7rs96n923jynuzzyphru7zdtrpyl9wal75kl2cx2khc0ahe79048u6p7t38swps8qrvcszkj3s36qlagvsw8knrdgrdnv7r7lgvpyzdwfxyczwmeq7n9ftnhjszstl7j7nctn9ghhwwtgay2ly94xe720j3a5jfw5kfqyp34lthzpxl8l7gc2e0xus76mdy8fcnc8c8pf7skufqen4ee58yzzguek8werd7yw5z8a0k5qtwyw5v9xdsus2666t0vjn2ymznnaurja6m4psenpdgzsm7as23jswggp9dtjd57p7n7aaw0k8vkksalxzpau0chsmppddldedgehfz24588yar3kxkc8qfpwmgkaz226apzsg5ch9yxfl6383t690yxslj2yy6csatsjgm82jj8rvydx96tlnasgnx4yk6qrrqs0gcy77uz7sqqnzfdzrzey33m4csvhcnn72efk7qy2njghg6wgwlnfyram0cqs8m5jnr6zhumc7vfnxqrdhah9h6e47rp7j2xp9j3urthges52tavwhmfnpvhww9npsyv5qelmkmzkwlnxpwuu8lzcssc7c6tayzafrnzkxvlqzrmat78c3gfy5a9enhakc83qxrd0as9lkknlkadlt5pdtla07lmsmw4ch6dtfymd2cjk0njfcdqr86fgcyk28sdwarxz3f0436ldxv9jaeckvxq3jsr8lwmv2em7vc9lt32zuhvgucexu4c53c8ddeklsm429sa5dyyfsfnyt82j7sw52pse6xekqpcvj79k6m4sg5sypysx3073avcaex5c6ew0ujlk6tkdpu9tetth4mvxkg03sv9jsm8jt0mxk5u7agqwvd6fvkl4lwp0cz8ssvl6srkw5m5ucs7dqddfzmmxhkcjrzu6055nxq07uw7cuxjpnrc87c4ghgnl9w0fw9vjlrmu4p0k0h3dnsgatezldlqlhsry6hzhss9m0es8yh8h7wuv43s3saujrey5emc7n3taf7vuy9eqfw20rlpfxpapgl6237zx3qny6qxruywljpq5v0ry008c3h9zxf3ua9nhdxv4q2r87sf8hfrdefctmt8wjwh9ygu3xue2v954937sccrhjx2jgu9qxtc4mvtvz9z233he5lly96u3denxvcs2l4j92s7lp08605tclrqwgg3w2z0nmmpugfjhc3lj6lutvvwzvjyc6u4p850f9xuc8cg8fv80gw3d0ky7659ljrn3asc63cmwhvnmd2vwf3waypxxz8vnnl5lzp774e6cjw7ctnu84z6lw9ue5rvsp5jj6x4mkfdqja56x3qn2uevqg6t59xsedgczrkcflrhk97z9xev49u65xjsjjzgyy602yuue53s4kzkvqv6p62unmdnxlv3kmrafqc9ppeh8pa6k5pcyj0xassxjxszf44t5lca6rhurv96eyapxvrvr3jv209fgq23gacmjw4y020ncyg6p7hcegxvkf2xen62j8chm84ue5fqvmalrkdwgz8rmhdrpa4gwq07c3aletke44mjugtt6m94k538xev766lc8h0g4r478c6hv5egzxjfft2snapr2xuzwawv8ulhjrn5kgsqm4qhcvk70rjf6h7eukcqf83zehyr3g64zlsfshm2tduyn2lekmh2ue5k2vf69qvajyas44qyhujrj6pmedm3el4jalsh40kl55x8qv9mxr079jmcw2xchmhrqc872x8qpduf0a8dys4m0eqqcg425fnxlnee0s0excss3hw3fsefkpndrgnls0nlnqgz65h3yyslafy2mnmlvgn0aywgp43wg3la9cuqz98mutlrwvq8k7gal3k687gude23tnqy69sjemf2r5d3vxst2fgqftxd5p7xq0naf9jpraq23lg3v6u33mtaud0tfzjvxrtealcx77cv8h8x9kymy2as89deuvyktcdxq9yr66w4q203v9e20av5kq0xvvzfa3j2hjkhuqms5mhax4avuhemr9m3t7dd7uzk9c5de44z00cpgydtshgl2llpkqs8rpueg234tfzxexmyg8ctmf9y6strwpvqr4ldzzdvcyz0wl50l4gveymhdv3qqatcjzj2u4mwacnt63mva6wy0aeqz2rehygdtsuvkdt7hk6e7msuxgqvzs49ndeyaq0ajal676rmqtcg0spvg32jd4zrxsnexzzjkekph5p7kyedhmc3lhc4xluzqnhpkcxvjwa65c82trrkf3aypt4y07qvw3phqg2vyq38vtasqh9pzhc3xyppyfd3f0u86v5n4d6laj2sxsckdyds443egz0weu5tzywvmyjkpu9twf5nvl2x7akaddy9ewunuua9lysj332u8ejllcc0qcmc5473r04lzhkk0y0eujs74p02ucm0gdwqxyqacwepargxravjyyaj3ksvzx6r64tsxzwkxua93tyjqa43f9qw2l9z3d8pqez9ektnkcwemq94vue6x9m00zlajpmdf8w5ylyq09umc5hhxy42csc9ek29zcu42ze9hq82vdjq0rxenhajl90ewlnw3y9cg0llz5eqkn6ld7g72pazpwxnfmgx0cnth00lp6hxdjrry47q9qxas507yzvwgqsuxfalkm0sdgyl2nmrdpsqyk3ks6m8pv8q65xm0dqctgd8dk7xt5d32kc0nwcy4rk6arsmes4klwxx2ctydfrqtx30cz5mflz29222g6rck9r5rv8k9yjfey5efd87ecre26vg4vu96603tkfm8tz35wejfv0nka9xuqg0a7hqlrsmy3jtev8lz6uzlqmkwg0cecs37w2g8ld4p2ndvrg9pfvrwyv3nypyn42z0ryr980lkc7seqpzp8yfv2xk5dyhxe6tal6pq398ayc0gufvjtjhrq5gd9xt2fv8mw9gjvv450u3kvj2asgqf5gv2een5vtk779lmyrk6jwagf7gq7teh3f0wvf243pstnv5293e259sxqqqqqqqqqqqwqj3a42phh73vy8ulpws0het7ss7pgdckg6ewukl27098u39eyvyufztgalf2ej6c3v4chackxzcqq90mh3763y2jengjjvz3nep85llygeka8du9r27srhwpdvc7n35kfjmkr5xjfuspgmgwas0lyd6xkqqrs7snaesg6hslzwm2jgkrddrrrf0l3ltfrfsq474c36vuhl0klgrtjdxw0k9qgwa4us0yqx7pm43k37yflq32saxh4h0hg2ec5kxxyy3t8wur4mch05gxmhe45qw8sagzqqdhuwg5", transitions = [ { function = "c", id = "au1qyvwmkzt573s9tk7xkatvaeqrpkqexxzv5rs6u8qg9emg4y5jqgsavzal2", inputs = [], program = "zero_program.aleo", scm = "5897094027323026732582000041395493778965159040056808723489728586696701664724field", tcm = "2553775328193142624284857276491107855038586595332068289064268167217173432363field", tpk = "5623264355502088525489655606156803223176963418640315466365974249858112877284group", outputs = [{ id = "890191710122231110203529870127655644143017144365056445657329457706577967091field", type = "future", value = """ { diff --git a/tests/expectations/execution/cond_exec_in_finalize.out b/tests/expectations/execution/cond_exec_in_finalize.out index ab8963d49d..cc7f20c606 100644 --- a/tests/expectations/execution/cond_exec_in_finalize.out +++ b/tests/expectations/execution/cond_exec_in_finalize.out @@ -1,6 +1,30 @@ namespace = "Execute" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "4c9b370477c0b08af171a80b375e88adaa53684d7419d52effb5504bbc5e9b59", dce_ast = "c45e0ac0e118cfb19985499297124ec4b036450879a86c7b9deb8e2783d65b8e", destructured_ast = "5d359e7a833089b922e8120e18495aeaa2c934b3635d049b5a664821e4848ca2", errors = "", flattened_ast = "ed13779e30ec49a94037b9091a346e8c583b0e810bd7fd7f66763d81748a50f9", initial_ast = "27c7103cf4aef0e2bb8a1abb044f3aa3a02b6d58c08a0f2cca78d13f7b061665", initial_symbol_table = "17dc9f6dcb320c160ffe1d26761b75b37ee44fe25619f2013fc6bc58b6583db1", inlined_ast = "c45e0ac0e118cfb19985499297124ec4b036450879a86c7b9deb8e2783d65b8e", ssa_ast = "5d2d844bb95e6a45dffd4786aa55c2483f7cda49617cb74671e9687c1cb75a74", type_checked_symbol_table = "1d48096d1a93db0bb2462a54823dfaaedbfec9797947ad5642e106a3e01579e3", unrolled_ast = "27c7103cf4aef0e2bb8a1abb044f3aa3a02b6d58c08a0f2cca78d13f7b061665", unrolled_symbol_table = "1d48096d1a93db0bb2462a54823dfaaedbfec9797947ad5642e106a3e01579e3", warnings = "" }], execute = [ +outputs = [[{ compile = [{ bytecode = """ +program cond_exec_in_finalize.aleo; + + + + +function a: + input r0 as u64.private; + input r1 as u64.private; + async a r0 r1 into r2; + output r2 as cond_exec_in_finalize.aleo/a.future; + +finalize a: + input r0 as u64.public; + input r1 as u64.public; + is.eq r1 0u64 into r2; + branch.eq r2 false to end_then_0_0; + assert.eq r1 0u64; + branch.eq true true to end_otherwise_0_1; + position end_then_0_0; + div r0 r1 into r3; + assert.eq r3 1u64; + position end_otherwise_0_1; + +""", dce_ast = "c45e0ac0e118cfb19985499297124ec4b036450879a86c7b9deb8e2783d65b8e", destructured_ast = "5d359e7a833089b922e8120e18495aeaa2c934b3635d049b5a664821e4848ca2", errors = "", flattened_ast = "ed13779e30ec49a94037b9091a346e8c583b0e810bd7fd7f66763d81748a50f9", initial_ast = "27c7103cf4aef0e2bb8a1abb044f3aa3a02b6d58c08a0f2cca78d13f7b061665", initial_symbol_table = "17dc9f6dcb320c160ffe1d26761b75b37ee44fe25619f2013fc6bc58b6583db1", inlined_ast = "c45e0ac0e118cfb19985499297124ec4b036450879a86c7b9deb8e2783d65b8e", ssa_ast = "5d2d844bb95e6a45dffd4786aa55c2483f7cda49617cb74671e9687c1cb75a74", type_checked_symbol_table = "1d48096d1a93db0bb2462a54823dfaaedbfec9797947ad5642e106a3e01579e3", unrolled_ast = "27c7103cf4aef0e2bb8a1abb044f3aa3a02b6d58c08a0f2cca78d13f7b061665", unrolled_symbol_table = "1d48096d1a93db0bb2462a54823dfaaedbfec9797947ad5642e106a3e01579e3", warnings = "" }], execute = [ { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqq0rxwjqlxmc8acm0xaxeewz905709n3wjz45gmdpv6q0yy2pqhzj0dj7zaq2x32veqxg2aqveccuyqqys9vejps3830l50n6znqk47m7tf00xv4qnpg9vpz4l45rqs7n2hdyxutqjjd6w3j3le0p64u5dpjq2jhfant7td2w0wrr0r5v762k8lujm2r3rq283jfkl0aqrnfuhhklhxpe5zrhvcndj95p8drpw7fsqggqfk9e40l7nw600kel4p36ggaapgjpzpqlanwuuwlj3mas52p6qefk7xkacgcldxka9saqf4wwgqu9e87lv9jy68fzr65nujqdlxkds23l30nqejxfh0d6ycvvmgfzutps9ggafhelp0vc7zude43yjsrnx3348l4wzgu4nncayjlc88sw60h02lkn79ak8hszv4gqejvdlam4v5ylx5wsde7y5af0jrwkn2qp6st8j0ns5hafgh6mex29dt7ah26clzzmgm6ack4wvq64905ja9xuzsex6rf3uvahk89wzhlzx5eqwq7894l2l0f7vkmglk8d85987qttja0ug87594vxrkaadd008ary7fw94xyzga40cea6rlqqksq6qk52l549ze48pwenug4pg8g9lrfe3xqsl6dezyxa2a7vtnk83rhhw4uv9h4q4cas9v9r2meqkxmgspwe2r4gxyhn8zu2rraz9xspvj2skkarq30rv58zdqa6a6fftucu8l6788afecfl5r22dta56xfm6ze432hcxupq54sqpsug3dh2a6jqdkpw75pn7kdf60yfj0nru6w920cp808jxch6v3rj04rej26rvyqk5uz90k5kdlrg4c6hdxje2qtueffyw4mjr93yyuq8qjccstrq4qaad77dv42yl3wf5d0pqgceeurf4dtrzey0dt6jtz0tmynmvyzhcqycrcks09wslyy699lufkjcwknxju3t88vh9vffj0xmr5fzsh6cr72mjhwsrelh8lt023xeg0x9zvwn63pgz2es37p5dzlc3kut8sqp2tfy5vpazc58c5u25wg69aqa9vgjxkk94uwugx2n80jhwjqpugpxx9huu297v629hdjchld26c394rydn9t4rckf8ka63q3reelczq9uqdrgjh4azp353rx5x3matwx550cu9kgtwd7jnf76gl67nppkqfqvqqqqqqqqqqqwt6l5ch7kf7lrjfkpz83v2yw4mek6f6www8lwjucqpev25xf2x63tztw2x2mmqpp022yy8faa5csqqz5chxf3fde47ngzntjzhche0lv9ya3ywfagh8qxs490phu0n8pu0pz966d627zse28nap87cn65cpqy370fjf7z03rtrwshkz3fdu3hmknkdcx2sw72yv7elklj780n4qrq3lx7dmmuez3pj84zhhdhvuk9j9cpzxu74hfjkym23dkqya4cqkrtf5xhl06kpnqs6lfahpxjtysyqqwxuqrc", transitions = [{ function = "a", id = "au1gssvavae6ac53rs8ksw8j9ga3hccp67z28xh36qf4062l8690spsyfy53e", program = "cond_exec_in_finalize.aleo", scm = "1886094021537141979658158678736082193414687088300410876802743154665441796198field", tcm = "5925913616768344982910633865433077509444975263571425771517515198551312511915field", tpk = "769969058670211305403054972674090607838301017799111639698834153018520792433group", inputs = [ { id = "7626202372721641535512265492191969309447186797313499247653268394332453807927field", type = "private", value = "ciphertext1qyq85ue2r3j05nsht40nt5rxeewyzevhu40pl090yfrte5wvw0w3szqhtt7p9" }, { id = "1443812050965843742096133489395435648284251851376088034812367117905213557076field", type = "private", value = "ciphertext1qyqycthe92m9vq7n2jmqwq6yzrzdlvn3444uel0j6u7g74vyy4nggqc4kmcpq" }, diff --git a/tests/expectations/execution/counter.out b/tests/expectations/execution/counter.out index 685a1bd441..431473d2b6 100644 --- a/tests/expectations/execution/counter.out +++ b/tests/expectations/execution/counter.out @@ -1,6 +1,53 @@ namespace = "Execute" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "34f95c324649b856e6e1178f1db6dfb00abe322f43e2ea08b37ba9065c6f3897", dce_ast = "87a498de52d504e6d37f5227a57d7ae0128a354a333f5b30106230735665293c", destructured_ast = "b8e7938837dfc3472dce7a958a04ff50a94e484ae2105ee1921256787a01ed26", errors = "", flattened_ast = "d30829dc6d894b5b770bd49f41056cd441c93b56d618babb87ab998b34859aed", initial_ast = "19721e772e221eb97e37f1c93467922f709e85ce513f52509ada17ee6d772f43", initial_symbol_table = "ae28dea8208d31b498caf1c490ae89eb7056b194f3e35a90dea9ad87895d65d2", inlined_ast = "87a498de52d504e6d37f5227a57d7ae0128a354a333f5b30106230735665293c", ssa_ast = "b25c2fed543056a8d3210f3c547a3e59b0fcf3889d03226c9c262ef96003577b", type_checked_symbol_table = "37cfeb2a87c005d3348d6a67685f6243886663b0c54a7c3b0a60c9c9e7316be6", unrolled_ast = "9d6a97290f777830354c88a540cefbf102082a3e0c68cc8973515f4304509347", unrolled_symbol_table = "1e3c1f6215a5fd621bc62e76d428a89dbeebe6c188555a36f68f70987da78dea", warnings = "" }], execute = [ +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +mapping counter: +\tkey as address.public; +\tvalue as u64.public; + + +function dubble: + async dubble self.caller into r0; + output r0 as test.aleo/dubble.future; + +finalize dubble: + input r0 as address.public; + add 0_0u64 234u64 into r1; + add r1 0_1u64 into r2; + get.or_use counter[r0] r2 into r3; + add r3 1__u64 into r4; + set r4 into counter[r0]; + get counter[r0] into r5; + add r5 0___1u64 into r6; + set r6 into counter[r0]; + + + + +function unsafe_increment: + async unsafe_increment self.caller into r0; + output r0 as test.aleo/unsafe_increment.future; + +finalize unsafe_increment: + input r0 as address.public; + get counter[r0] into r1; + add r1 1u64 into r2; + add r2 1u64 into r3; + add r3 1u64 into r4; + add r4 1u64 into r5; + add r5 1u64 into r6; + add r6 1u64 into r7; + add r7 1u64 into r8; + add r8 1u64 into r9; + add r9 1u64 into r10; + add r10 0__1u64 into r11; + set r11 into counter[r0]; + +""", dce_ast = "87a498de52d504e6d37f5227a57d7ae0128a354a333f5b30106230735665293c", destructured_ast = "b8e7938837dfc3472dce7a958a04ff50a94e484ae2105ee1921256787a01ed26", errors = "", flattened_ast = "d30829dc6d894b5b770bd49f41056cd441c93b56d618babb87ab998b34859aed", initial_ast = "19721e772e221eb97e37f1c93467922f709e85ce513f52509ada17ee6d772f43", initial_symbol_table = "ae28dea8208d31b498caf1c490ae89eb7056b194f3e35a90dea9ad87895d65d2", inlined_ast = "87a498de52d504e6d37f5227a57d7ae0128a354a333f5b30106230735665293c", ssa_ast = "b25c2fed543056a8d3210f3c547a3e59b0fcf3889d03226c9c262ef96003577b", type_checked_symbol_table = "37cfeb2a87c005d3348d6a67685f6243886663b0c54a7c3b0a60c9c9e7316be6", unrolled_ast = "9d6a97290f777830354c88a540cefbf102082a3e0c68cc8973515f4304509347", unrolled_symbol_table = "1e3c1f6215a5fd621bc62e76d428a89dbeebe6c188555a36f68f70987da78dea", warnings = "" }], execute = [ { errors = "", status = "aborted", verified = false, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqp5lf5rvda34lj66ey06fy5v5y8dmqmd0nxx0ywzjw7kkf3r0qwz90vmk4uvmpmrccdzj4w8tm2lypqxvfqlmmzxxpkc473c9s87y080gtjfrtnceqdy0jfp6l2lxqgun7hcy9wgcwh856ug2ca4qqfenfsqw3snk3ayvn258s6944p6wxya8j996t872pr5vdcuxdxn8yfs4ujz3quwu35udud6fk7hcqznves7qwjwsrgxcxdfhs80jj2hr5jmgjgul3fdmtms8t65jdage57wlzsfzel9e48vpz8sau496j70yu3qcpk7qgmtr68hl9kqy94fp3w34e6zz4azqfnrjz82u98g63mrr6pa3ef34w8n3kyr45sz0l8cmxsekqq9t5j9jy9lksw0wnn58k7jyfud0l983tqt4emr7sd5u3chpc9at76y43cnjx99l24uktv70m9962sx9lxc5a9hv7eh5fqjgwvflff5yl6zzwrmz5edutqxqr9gvfc3vjvvtdpuh46xqx3lv0sj3pjjvcnqf5drdynn37xr0xdq94ef0t333c0f7n8kdg9u57gkytq3cgu94zx86grwrr7wqljza86cqrx6jk6uqgq9qxf3gm8y9g54ntk7mg9e6ff6fcj83fupqvptjdknygrfpczrsjwnjeteyadpn47znzfvg29s5qea80wdg7vcu08hlwurcqx3ha2u3dre4gsq9y3jfv5w2hqfltf58esahpu6kjkcwj324uzuh5d5wjt38zptld6cvzxgtewrjusdc3cz789uhare62vqu4cv24ryzdln0ssldz7lgs5glgrzvfqzt6km5tzp4vem6srwtn93xjwahqjmv0zq88mfwl22960yv0ufgl83dudy9s27svht4uvnk54uhgap8wuwdqnhra6mzt0ndcd05py3egzvrfj4qt5unuz44zz4a8tsdtd0rkk4y6v4lksaekp23al67rh9ttut9xysxw3jxqsxw50w70h68d2px4stssw4w5p2dupljmf9wn0qhqpav85qeeaudmxxrsdf546fuu8my3ewnrszaamf9gjeveqtmk6perrsljzqxhw5daqqsgnc79g7m7gzzryslqy57j33j2xsz55jzqahm7grss3m56jhxwy82v5v5pk7sdxdcawql8cg5um4z0jj0dkzkumxht57czqvqqqqqqqqqqpg2wesjekvvp8rvnvh9529sjgfrdu2x74qej909vk352qf7uneaay38rwpcwet7hgs5k5davn0wvqqqtzwacjvnl2e006ufve83hm4s4rzupv5y6ymhhy6h6z26kuz6pgd3duj3a5nkk6urhtjxy8lf3zpgqqy7xr6vam98hfqft3uxcm90yedkaf3n5npy2jkd032qlzvyzezvqcl3acm0azpu75ran0gs6vj9v9xs6h0mkkny6hphyu724gs7nqz02fflmuq993fyfmsd5zyegnwzfqqqq4h5zpp", transitions = [{ function = "dubble", id = "au1xe9ss45s52a7s6pa806dwgkdaazn7vs3zvspwhpuqn0rfymz7g8qnt9f6l", inputs = [], program = "test.aleo", scm = "2701033919833853562637728369527609701654193986187336931878103571063109198360field", tcm = "4767822739789057211554348258725193428142828427072824810197371556604343646664field", tpk = "5335156928382662463417682951586372143768154017026570642038100848385013470524group", outputs = [{ id = "4946982913093244233049959804312122789186741969911776114977991679216808685109field", type = "future", value = """ { program_id: test.aleo, diff --git a/tests/expectations/execution/eq.out b/tests/expectations/execution/eq.out index 56c0da0245..edd5de94c9 100644 --- a/tests/expectations/execution/eq.out +++ b/tests/expectations/execution/eq.out @@ -1,6 +1,17 @@ namespace = "Execute" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "15a3a90b1837b318b43b3f3bfc5e454a8821357b4c3feb01da00a4db810bde89", dce_ast = "255151d0fc6c790384f2b36b69cec857a19849c44543f2a87cfece95ddd38f53", destructured_ast = "255151d0fc6c790384f2b36b69cec857a19849c44543f2a87cfece95ddd38f53", errors = "", flattened_ast = "1785ff1b2256e77111ae8fe51c6403d8c3b10b79733292baaf4d2da1351be672", initial_ast = "9e916a48054e924200a2327e6003f3e2c6330b64592f9afbcc180b763aa93900", initial_symbol_table = "c9bb0e664995804ae4d47b4fa1ceedab0ad0095a15caa65c32a207da98a833bb", inlined_ast = "255151d0fc6c790384f2b36b69cec857a19849c44543f2a87cfece95ddd38f53", ssa_ast = "6139c602eee1ce0aa88df2eb050c210c5232f06e8798895de7a02527c695ee86", type_checked_symbol_table = "5d0645cbcb3c81a980454fab3e7c8282db0415eaf663a68674bd1cba36076841", unrolled_ast = "9e916a48054e924200a2327e6003f3e2c6330b64592f9afbcc180b763aa93900", unrolled_symbol_table = "5d0645cbcb3c81a980454fab3e7c8282db0415eaf663a68674bd1cba36076841", warnings = "" }], execute = [ +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as u32.private; + input r1 as u32.private; + assert.eq r0 r1; + is.eq r0 r1 into r2; + output r2 as boolean.private; +""", dce_ast = "255151d0fc6c790384f2b36b69cec857a19849c44543f2a87cfece95ddd38f53", destructured_ast = "255151d0fc6c790384f2b36b69cec857a19849c44543f2a87cfece95ddd38f53", errors = "", flattened_ast = "1785ff1b2256e77111ae8fe51c6403d8c3b10b79733292baaf4d2da1351be672", initial_ast = "9e916a48054e924200a2327e6003f3e2c6330b64592f9afbcc180b763aa93900", initial_symbol_table = "c9bb0e664995804ae4d47b4fa1ceedab0ad0095a15caa65c32a207da98a833bb", inlined_ast = "255151d0fc6c790384f2b36b69cec857a19849c44543f2a87cfece95ddd38f53", ssa_ast = "6139c602eee1ce0aa88df2eb050c210c5232f06e8798895de7a02527c695ee86", type_checked_symbol_table = "5d0645cbcb3c81a980454fab3e7c8282db0415eaf663a68674bd1cba36076841", unrolled_ast = "9e916a48054e924200a2327e6003f3e2c6330b64592f9afbcc180b763aa93900", unrolled_symbol_table = "5d0645cbcb3c81a980454fab3e7c8282db0415eaf663a68674bd1cba36076841", warnings = "" }], execute = [ { errors = "SnarkVMError(Failed to evaluate instruction (assert.eq r0 r1 ;): 'assert.eq' failed: '0u32' is not equal to '1u32' (should be equal))", status = "none", verified = false, warnings = "" }, { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqx22a34a0zztt9jqh5wf05enkltq2v5haxf3nngscm5ul6tnp4pa0fpwcd47cfx368h2zlml75x4upqyrnmn07yf2uzg53su96s4434tz5c0vyrspjvh5mpdg9hyrsvruglqd5ujvhwjl02m99g7d4s98cjqphmhczeg98mk6y8ekjklyllh0rnrt65wt6m544kkql9an5n02tm5nc6y5pmd438k2qfcxuudgp9kqm545ztmjxu68whlnkkec37u8wvrkn8a5lmd5kxxve6ayxxz00cmu8s0v9jzd85hnxewvzhpay2wqp7a0v2my4k7z5zx8u3ldx4h2tdwc02ccaq3q6lucsgyswnuecp3wdfmdrz6s2ekrjm2as4gnjt7zqzkq7y57mezgk3yqhcjhaqtc44nrslznc7w9npmxkj2qu7ee8y2v7j4achafgf2vhlfgjz59j7cs9syrhx2wpr9v3s23vf585fresnnk0cnneysz8mwx3dlacvfmur9ah5kgps0v8xu0n725pdwzxnh4qgqw3xamrwurwpacpwegdwgrj8xrpsatjwqf0gnta34etacf485d4hma99meevcfn6cqm8vrqvqk23uqkjek53fd4gp9hxuwh9jjx79ngq4xw0c5k4k4p36a6ywhgpshhmlshhenvcy95xm4xe6pewd58tv5qcgmxwm0myne7vr7laqgf63q9ulkxgz6xyyv3xrkwyyrcgrkjcuqn0nkd8gadpkgh4th4034mg5w0x9y8p4ge64j25dzl28nvfympcz7v7qf5ndqs3rx984js86kehy8netzftfafmmm0sf3qd55xgsumqufyxqnlhxm7lelpkunywgsmwt6m59xvqzvca3uyu7lwhq8uqjusan0fd6rrxr0nzzr8yjg3yxkze7esn88t8cxz6aleawp4pydp5gg9yascqm4760jtghhgq2sjgk75tk3zln3xk3cv5zdujyu42g6dwcf9v6w0lcqmd73j5k466ad6xqjg7ftaawnwalnewwp4ckfqthwzszdtxrqhz2m2zsehm7w6x24lfpewazamn29vwrzggwpqgg8vsws3ql0qsf0zwzka67qk6wxnwhdlc09m6j3dxhahd5mff0mw5n0cwj8szvjlqa4gmta40hj3mekzs0c9fl3m52dhtw8ahn67y35luqgm8kggqvqqqqqqqqqqqscg65mg7ha067fm9x9d9fzk9a05vf79d05jtk5jukxj0vff9h0v6s9jn6c3xnc6777x3w5ahaf4qqq048hdw3t6fx5t0nhpctux0h7jr7vcxpedevw0rm2p0zcptt59nv8hl2nypswhgnlmlg8fgxl0cggqq85pcx8kkhdygsjlgjau0300mfl24r70wveycq38cg7szfyd4ccqv66n8uh7dwe6gn4yrr6vhtsjrj732ut3zh4klg5ek4ks6yrz06srr3a2nfnuyqpeun2wk63chwfgsqqqw24nlx", transitions = [{ function = "main", id = "au1vmzfta6zy5yrh7dmgq4kr92cjvr6tmwnxguawrkscwph9sapngyq3xzl33", program = "test.aleo", scm = "6847040677223132793748545475372195696130417602435382529339173243220980601344field", tcm = "4571179220108761820137637274591263343931560548835641677917358596650028410158field", tpk = "7320235361266753660867089687085915667607134461691518948277006011175174455549group", inputs = [ { id = "3030414102350222254510473051761565848361368618573163557613003397561582199342field", type = "private", value = "ciphertext1qyqdyr0zw0xzuhrt7cfkmas4ya30f9aukyhf9clhmz9vmmj8794cuqg0rt38e" }, diff --git a/tests/expectations/execution/flattened_function_and_inline_matches.out b/tests/expectations/execution/flattened_function_and_inline_matches.out index 9709ed3f4f..db62f5dcb1 100644 --- a/tests/expectations/execution/flattened_function_and_inline_matches.out +++ b/tests/expectations/execution/flattened_function_and_inline_matches.out @@ -1,6 +1,153 @@ namespace = "Execute" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "1524806e8239505d72e66621c387acc0e3342a9507535f00db692088eb933b1b", dce_ast = "69876b0a87e8c14ed0085f25354da4a7f2bfaa351dfb5230f9b7f37bcf33d6e3", destructured_ast = "d84d9587cb336791a142e889eb248c425e51acc8f3b8f17561ec1aea5b554378", errors = "", flattened_ast = "c9c69ccdd00a39a9f600ceba6ee7ac5e47c47b1abf8d8857264581cc18795fa6", initial_ast = "e5ad05937041eea6b511f067c946adc83282a76f09d9c67fd58aba4cddae9d0c", initial_symbol_table = "33492050657dd82b8780af78e6cbb3768d50f190428f200a6a43472d50a9aa50", inlined_ast = "558c25fa346d7e139cb309899cba630557836983ce4f147c2eef009343a670c2", ssa_ast = "c11c83b8011667b9803def78e26c978af8a407a0bc550aa01d57f2a21d64d769", type_checked_symbol_table = "f57a951ffd325863f2c35e4b4a4118d3ebbf721a03dd621c731c9a9258af2dbc", unrolled_ast = "e5ad05937041eea6b511f067c946adc83282a76f09d9c67fd58aba4cddae9d0c", unrolled_symbol_table = "f57a951ffd325863f2c35e4b4a4118d3ebbf721a03dd621c731c9a9258af2dbc", warnings = "" }], execute = [ +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +struct Extra: + c as u8; + +struct Data: + a as u8; + b as u8; + c as Extra; + + + + +function bar: + input r0 as boolean.private; + input r1 as boolean.private; + input r2 as u8.private; + input r3 as u8.private; + cast r2 into r4 as Extra; + cast r2 r3 r4 into r5 as Data; + cast r2 into r6 as Extra; + cast r2 r3 r6 into r7 as Data; + is.eq r2 r3 into r8; + add r2 r3 into r9; + sub r2 r3 into r10; + add r9 r5.a into r11; + add r10 r5.b into r12; + ternary r8 r2 r11 into r13; + ternary r8 r3 r12 into r14; + ternary r8 r7.a r7.a into r15; + ternary r8 r7.b r7.b into r16; + ternary r8 r7.c.c r7.c.c into r17; + cast r17 into r18 as Extra; + cast r15 r16 r18 into r19 as Data; + cast r13 into r20 as Extra; + cast r13 r19.c.c r20 into r21 as Data; + is.eq r13 r19.c.c into r22; + add r13 r19.c.c into r23; + sub r13 r19.c.c into r24; + add r23 r19.a into r25; + add r24 r19.b into r26; + ternary r22 r13 r25 into r27; + ternary r22 r19.c.c r26 into r28; + ternary r22 r21.a r21.a into r29; + ternary r22 r21.b r21.b into r30; + ternary r22 r21.c.c r21.c.c into r31; + cast r31 into r32 as Extra; + cast r29 r30 r32 into r33 as Data; + cast r14 into r34 as Extra; + cast r14 r19.b r34 into r35 as Data; + is.eq r14 r19.b into r36; + add r14 r19.b into r37; + sub r14 r19.b into r38; + add r37 r19.a into r39; + add r38 r19.b into r40; + ternary r36 r14 r39 into r41; + ternary r36 r19.b r40 into r42; + ternary r36 r35.a r35.a into r43; + ternary r36 r35.b r35.b into r44; + ternary r36 r35.c.c r35.c.c into r45; + cast r45 into r46 as Extra; + cast r43 r44 r46 into r47 as Data; + cast r19.a into r48 as Extra; + cast r19.a r14 r48 into r49 as Data; + is.eq r19.a r14 into r50; + add r19.a r14 into r51; + sub r19.a r14 into r52; + add r51 r19.a into r53; + add r52 r19.b into r54; + ternary r50 r19.a r53 into r55; + ternary r50 r14 r54 into r56; + ternary r50 r49.a r49.a into r57; + ternary r50 r49.b r49.b into r58; + ternary r50 r49.c.c r49.c.c into r59; + cast r59 into r60 as Extra; + cast r57 r58 r60 into r61 as Data; + ternary r1 r41 r55 into r62; + ternary r1 r42 r56 into r63; + ternary r1 r47.a r61.a into r64; + ternary r1 r47.b r61.b into r65; + ternary r1 r47.c.c r61.c.c into r66; + cast r66 into r67 as Extra; + cast r64 r65 r67 into r68 as Data; + ternary r0 r27 r62 into r69; + ternary r0 r28 r63 into r70; + ternary r0 r33.a r68.a into r71; + ternary r0 r33.b r68.b into r72; + ternary r0 r33.c.c r68.c.c into r73; + cast r73 into r74 as Extra; + cast r71 r72 r74 into r75 as Data; + output r69 as u8.private; + output r70 as u8.private; + output r75 as Data.private; + + +closure floo: + input r0 as u8; + input r1 as u8; + input r2 as Data; + cast r0 into r3 as Extra; + cast r0 r1 r3 into r4 as Data; + is.eq r0 r1 into r5; + add r0 r1 into r6; + sub r0 r1 into r7; + add r6 r2.a into r8; + add r7 r2.b into r9; + ternary r5 r0 r8 into r10; + ternary r5 r1 r9 into r11; + ternary r5 r4.a r4.a into r12; + ternary r5 r4.b r4.b into r13; + ternary r5 r4.c.c r4.c.c into r14; + cast r14 into r15 as Extra; + cast r12 r13 r15 into r16 as Data; + output r10 as u8; + output r11 as u8; + output r16 as Data; + + +function blar: + input r0 as boolean.private; + input r1 as boolean.private; + input r2 as u8.private; + input r3 as u8.private; + cast r2 into r4 as Extra; + cast r2 r3 r4 into r5 as Data; + call floo r2 r3 r5 into r6 r7 r8; + call floo r6 r8.c.c r8 into r9 r10 r11; + call floo r7 r8.b r8 into r12 r13 r14; + call floo r8.a r7 r8 into r15 r16 r17; + ternary r1 r12 r15 into r18; + ternary r1 r13 r16 into r19; + ternary r1 r14.a r17.a into r20; + ternary r1 r14.b r17.b into r21; + ternary r1 r14.c.c r17.c.c into r22; + cast r22 into r23 as Extra; + cast r20 r21 r23 into r24 as Data; + ternary r0 r9 r18 into r25; + ternary r0 r10 r19 into r26; + ternary r0 r11.a r24.a into r27; + ternary r0 r11.b r24.b into r28; + ternary r0 r11.c.c r24.c.c into r29; + cast r29 into r30 as Extra; + cast r27 r28 r30 into r31 as Data; + output r25 as u8.private; + output r26 as u8.private; + output r31 as Data.private; +""", dce_ast = "69876b0a87e8c14ed0085f25354da4a7f2bfaa351dfb5230f9b7f37bcf33d6e3", destructured_ast = "d84d9587cb336791a142e889eb248c425e51acc8f3b8f17561ec1aea5b554378", errors = "", flattened_ast = "c9c69ccdd00a39a9f600ceba6ee7ac5e47c47b1abf8d8857264581cc18795fa6", initial_ast = "e5ad05937041eea6b511f067c946adc83282a76f09d9c67fd58aba4cddae9d0c", initial_symbol_table = "33492050657dd82b8780af78e6cbb3768d50f190428f200a6a43472d50a9aa50", inlined_ast = "558c25fa346d7e139cb309899cba630557836983ce4f147c2eef009343a670c2", ssa_ast = "c11c83b8011667b9803def78e26c978af8a407a0bc550aa01d57f2a21d64d769", type_checked_symbol_table = "f57a951ffd325863f2c35e4b4a4118d3ebbf721a03dd621c731c9a9258af2dbc", unrolled_ast = "e5ad05937041eea6b511f067c946adc83282a76f09d9c67fd58aba4cddae9d0c", unrolled_symbol_table = "f57a951ffd325863f2c35e4b4a4118d3ebbf721a03dd621c731c9a9258af2dbc", warnings = "" }], execute = [ { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqvug2lq5jm7kagadge93k94cygmha8c8l0prlgwtd4zcg3smezu7awtmqu2syzx4p5nmeku9wecrsqq8pkldp26xys0ng59w3nnxv796hr9n2824kml8w3dfxjp8euw4egyxs545z3qstczv792vcu0qqssq93zpfrrp90776hc4qshq2642a45uqa3q3vlsk5lwpzvmpach26unpdkdgdxnw27jxdfwlwmvcy65qv52lte8af3z7mdg204l7ca2l6ewgrnsesu23hpfmtu49vpu02te6v8qgpsxpu52wd2rc3vczlqhsq3g9hulls5gdffy9r8cwnxacatml4yh6cu0j0t8slyrwvsjkmxxqm0v4t0j0qqpgsddcxspeh85vspu4a3aemxslplpf0jz7eflgcvefeu6yml23hz6xf0zw5qwvj67xlqwht3vwn6ykuq4u2jhrx2ws0q9ydkpxuflz24l0zzuca4tumhcnnpzzn8pakfh7rhe8qmv3e3qf7wy9er2lqftlfrg0rl9rntyayvqqp6mqpgsv8aau2n3lxjxqckynl356489px3vaw2mdz42rp2neupprnupevzflcqxgsm344yf3r2sqgwz5qyr207ny7n4j2ptdeg6apgcj6vv6mml7hxw592t6q083qwpvsmpufcjl70e9n80jdutvw22qqt3m9fntq2dwqejapppzuzhsdwp0wcy3awj4gu6d9x7x6dlec8uxm0hcn0s6pdn924m270xds08h5ljremf5rdm3w5pxvjfhkdm8tcpemsak4fv025eadd2u5gx2zxqf9ez3u3hevcjegt98r6sj6fdaspz0dvc74367w4y4dtsaxzzcwcy5c596fmu26fh5278f0n7und7fqr6tlpggrf704nq6p6fr2qzyhk7zylxu0q3t3ucpe34enstsadfsfjrgetu2u302hxexyeykn6cd83x9nu6ak2kzgudfhcw30jtlzwgxyhr6qafv2su2d3rd4y2y0xuj8sdn94ew67esjlfnzxfee9lmq7r7akpf7zad3jjhjs9s75dnh3x62dwyuxlxqhfvrwjvrwzpe9p6npke6qcs0n7yzwdeeecvdw8zpxetpzgpnrq9f7nat2mqtfv5pnt3ssg2gekpdvw5wn2q666s9kdx7eypa6mtsqdgzpa5ts2mqwkfzaccrqvqqqqqqqqqqq7lg2vyxzxkwecktt7k93c5va2ghlek8fxzt5y7lfcd2ydel95msncqr0m82jex0nsdqsv7l7lk3qqqwv6rl7dya5rdrd5d4hqzxu8cjq2n2pmxfy2hzq5xk6atnte4su78fs74ldh48nmq6fauta75kpugqq9cm0ahn4dgv6hjq0c26rmeeyq2qlyf54jxs64xdsdp60av46vtstt3fwqrdlhhh6l49y086trksqga9dtnet8q68ju65a7pcrr3gjcdhteecq3wd65af09qwdkfxf9yqyqqwu0nd0", transitions = [{ function = "bar", id = "au1p58lq5w85avngfh30427w5jctrkf5fh9h8qshvt3hf3r5umvd5gq5wj8jj", program = "test.aleo", scm = "1893779522364008370528920564800894353816316246386419733877530996647548645046field", tcm = "7975307881435548581927347671860337126690869146772124069070420940707216867640field", tpk = "512383684471783892777788076619862839966981157566564726912316434903274880697group", inputs = [ { id = "1531850374981700234317362560327096304118262075151346904203834021187461370021field", type = "private", value = "ciphertext1qyqg6u4nh3rhtm7jg093rzflv73snx0v9evtc3cjck9ux6ywputgqyg69ff96" }, { id = "678191410855210397352295986321172250933469641996123274026649469209708483390field", type = "private", value = "ciphertext1qyq83jx9ycv03u6lknuvc90yx6ukurtwjumxt7e4x2warwlf2g40wrqvvmutl" }, diff --git a/tests/expectations/execution/group_operations.out b/tests/expectations/execution/group_operations.out index 05b4783844..434493fe99 100644 --- a/tests/expectations/execution/group_operations.out +++ b/tests/expectations/execution/group_operations.out @@ -1,6 +1,23 @@ namespace = "Execute" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "5c20fda21a40464a1462524cf913438776a39383a671949312f48ce8ceb2dd16", dce_ast = "d6d5fec74e5db150b5bc3ee7c3eaf6f8d8a6ea4cf795395f956c49a9f528943b", destructured_ast = "d6d5fec74e5db150b5bc3ee7c3eaf6f8d8a6ea4cf795395f956c49a9f528943b", errors = "", flattened_ast = "7c7a7642738b57f1cc0bde5abaf2f292ae4afc4e993b5fbf5a50e0ecd25bdc93", initial_ast = "ed47c02e77446d3937b4e1764cd6ee82bfc48e0b909b4b699dff5dce0f886e0a", initial_symbol_table = "454cfafcd0058981ee306ef97e8be62c1dc21fd77cc43f7947d4f0e96cf8939f", inlined_ast = "d6d5fec74e5db150b5bc3ee7c3eaf6f8d8a6ea4cf795395f956c49a9f528943b", ssa_ast = "34bf93dd7701246f7905a79239543071b9e83e4b54312b287cde6233396bd7b8", type_checked_symbol_table = "1b60c70e0ab5c5920116d9752cd4145e16562cf70b85d0a19a0b873f22aa1930", unrolled_ast = "ed47c02e77446d3937b4e1764cd6ee82bfc48e0b909b4b699dff5dce0f886e0a", unrolled_symbol_table = "1b60c70e0ab5c5920116d9752cd4145e16562cf70b85d0a19a0b873f22aa1930", warnings = "" }], execute = [ +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function main: + input r0 as group.private; + cast r0 into r1 as group.x; + cast r0 into r2 as field; + cast r0 into r3 as group.x; + assert.eq r1 r2; + assert.eq r1 r3; + cast r0 into r4 as group.y; + cast r0 into r5 as group.y; + assert.eq r4 r5; + output r1 as field.private; + output r4 as field.private; +""", dce_ast = "d6d5fec74e5db150b5bc3ee7c3eaf6f8d8a6ea4cf795395f956c49a9f528943b", destructured_ast = "d6d5fec74e5db150b5bc3ee7c3eaf6f8d8a6ea4cf795395f956c49a9f528943b", errors = "", flattened_ast = "7c7a7642738b57f1cc0bde5abaf2f292ae4afc4e993b5fbf5a50e0ecd25bdc93", initial_ast = "ed47c02e77446d3937b4e1764cd6ee82bfc48e0b909b4b699dff5dce0f886e0a", initial_symbol_table = "454cfafcd0058981ee306ef97e8be62c1dc21fd77cc43f7947d4f0e96cf8939f", inlined_ast = "d6d5fec74e5db150b5bc3ee7c3eaf6f8d8a6ea4cf795395f956c49a9f528943b", ssa_ast = "34bf93dd7701246f7905a79239543071b9e83e4b54312b287cde6233396bd7b8", type_checked_symbol_table = "1b60c70e0ab5c5920116d9752cd4145e16562cf70b85d0a19a0b873f22aa1930", unrolled_ast = "ed47c02e77446d3937b4e1764cd6ee82bfc48e0b909b4b699dff5dce0f886e0a", unrolled_symbol_table = "1b60c70e0ab5c5920116d9752cd4145e16562cf70b85d0a19a0b873f22aa1930", warnings = "" }], execute = [ { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqq29jr5ux67v48knthj09ydltn9au9ullvvkm0eegp00g285w6j4ge8pv5yn9wa60v3vhtlca0ydqgqqxkr6srpqnmex0fym4hwuup3nkfe94v0w3nmtzrrcjgx6t2n395rqlswq48vzy7ytzpemm2vmn726qtm2x0s56mqsxgn82ecy6chfqvr978232g6fyy2p9le7d0m4guegrwklrgrpxkyrfg978qayn92rcq6z7uxszhsq5v942m25ddhzvw25xu5wfa80tvxf2azf4ncwlnskctnew8yxw8mfhlpp49x5dgflfuqtzu9pgurrrwy284yuu0qr3rkp873qyvc29082cj8envmlkwy93kwh96qa4x9k4gsfx7sy2pznycgr3fxd75ft6chdj2fnws6p602nqvy4c0nuzn4glcrw4gu766mu49ajwdcl8hnxq4meaee0xzzqm2uqrpzsqgz69hezj3zqv0eg6u2rq6egks45gm6hf8452r3z76f9edyxaqvnsrj56fusageknc5ku47jqyvdgsra5wwxnlg42g4nrh2tykfgqgryd2ve0g2dpypde97gfq7p5tuvq3qh936vumqs9u9e68evzq5cvjvqa780tkzl759zlcfm6jkcg7xap62k660frpg4unwy72m6lmn2v6qu0hms00t3rzer4g0vz5pylg9wu8k0yek5323xhj3cu3cdpllmuccppnnkhh323a8vj8qwc8xmn4mwx4j3rll7r8ctvfs5zp2y3jaupa52tjmh9kegdh8n4qgjrdux0dae47szq4sj4hu97nvz4u2jaewh0apr9ypxwszckx9a45mq378cuxxzt0n7hy8cgq8c4y6vluj7h5jc8skcxhdjykeym6cezrqmea8xyldp2salm8crf5v9rwuyz3d9xlq3muqs7j4askrhm8suzgpfa70389mrvthlfcw68ryxw6vw8dthdfhcatqg3srl0c8sygkdgrah3kd32v29zvwwhxqjgqcytza5hn6tgyqjr67xuyugy3p66q4wpt7ngmu9y9c2wg4rq8pdps7yp2qgvhglq3dmv58gfzkx68yjkkzzyw86xhfnx76acstsvwkz6jzaaq99l9hpqjg3vg53ducgyamxfvsezwh7er2yvhw6vv07d65rfgvzsw3an6hzu3pnsfqk6a74a6gegcqqvqqqqqqqqqqqd6dud2mpvw35xcdcjhk290qj7a0dd6kjzjv6xzvs9apgdvfrs6mg0qluk7tpjxfvwdx3v8d7gjyqqqzewwm0zu7fkw68upkyu2vjynsnkd608054u5y5e4udzecqkemftszt7wr6u760atzztpr7pwmaxvpqyjneeejsrptj89cxt0e8u588lcdcs6949zv9a7y20r28jg5e8wqw66lsgqktsn8dpdgzg775nf5j7f40ws4svl5aj5mxt7cxyxetnes8nfxrkfy84eqanvrf20jht65qqqqkrgzhe", transitions = [{ function = "main", id = "au187rdc4puukgm858grjen9hlju98zsxchjlp70qcnst4mqa50pvgsdm5c6z", program = "test.aleo", scm = "2327679852219863520750135973975927612406245355707501973328033844670451201794field", tcm = "3844470742177765790277948503279806454368346487809526349970596034872755219279field", tpk = "7188069057750201933901557007451835366414439173171544553468899428394116031625group", inputs = [{ id = "786516318711484326613495654243100207572155770400750643552404887917704296823field", type = "private", value = "ciphertext1qgqqgyhkhuszf3uq6cay2cxah9zwksh5y7nz5dvj4p5csln5jrl4vynzf025kty8qhrdyqdudrxaakmfqvg03p7zw09qf679kr59wdtrpqvpmfrg" }], outputs = [ { id = "4920504549694252467898887871291311869682793258770415339727943050319280424047field", type = "private", value = "ciphertext1qgqy93faa4epx3wp3pw3gsqyn84mrky595skqa4h623nwkxpffvagqgpkyw6czjq2zhw880ymgw39m8n5kzf2amsucgc69dr8t5nzf3mqc56ylrd" }, { id = "6907416366855981672604353773902525944445124252525136965525426148151909017079field", type = "private", value = "ciphertext1qgqzup20c94akxu99q5yhy7es79gdhf0atp5efaml7qhve0v9mtvqrh6pgx7cmtdx8eafj23vdz7vprxe5c3la0de97tmkdxjgn5e5ucp556zgc7" }, diff --git a/tests/expectations/execution/metadata.out b/tests/expectations/execution/metadata.out index 4cf7d2d801..78bf704b57 100644 --- a/tests/expectations/execution/metadata.out +++ b/tests/expectations/execution/metadata.out @@ -1,6 +1,33 @@ namespace = "Execute" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "c5fbc61b3a7b1400dda65dc947a495d14f1b43986550cd889efd4cc653912355", dce_ast = "1e50eaf77ff3f385d9355f5df95656230dcf2517cca5ba414c804083e867dcd6", destructured_ast = "2994c3f5f24c6b2b6e7d9804511b5c90fff8f3f2f048ef0ddbe7a9809aef219b", errors = "", flattened_ast = "537d17595b4dea625a8e46cf3b28307963ba74f75bff3b028d8162463c5fc280", initial_ast = "2046f4b2df6c90aed76613afc85d1784a8e293bd203efedd32bb416715982d63", initial_symbol_table = "10998586280d1ca360372389b512bc2af12c88a4bcfd4f7e2c99756ddf1b04e8", inlined_ast = "1e50eaf77ff3f385d9355f5df95656230dcf2517cca5ba414c804083e867dcd6", ssa_ast = "a90f345a4a71399b2e61dddfa5c5ec22826bba09fb1828cbb68708b84f17c472", type_checked_symbol_table = "2f5f1d4b4e58e58f307e1b920c43c5289eefe1a677246067a85c1b0b6a04a767", unrolled_ast = "2046f4b2df6c90aed76613afc85d1784a8e293bd203efedd32bb416715982d63", unrolled_symbol_table = "2f5f1d4b4e58e58f307e1b920c43c5289eefe1a677246067a85c1b0b6a04a767", warnings = "" }], execute = [ +outputs = [[{ compile = [{ bytecode = """ +program metadata.aleo; + + + + +function is_block_height: + input r0 as u32.private; + async is_block_height r0 into r1; + output r1 as metadata.aleo/is_block_height.future; + +finalize is_block_height: + input r0 as u32.public; + assert.eq r0 block.height; + + + + +function is_network_id: + input r0 as u16.private; + async is_network_id r0 into r1; + output r1 as metadata.aleo/is_network_id.future; + +finalize is_network_id: + input r0 as u16.public; + assert.eq r0 network.id; + +""", dce_ast = "1e50eaf77ff3f385d9355f5df95656230dcf2517cca5ba414c804083e867dcd6", destructured_ast = "2994c3f5f24c6b2b6e7d9804511b5c90fff8f3f2f048ef0ddbe7a9809aef219b", errors = "", flattened_ast = "537d17595b4dea625a8e46cf3b28307963ba74f75bff3b028d8162463c5fc280", initial_ast = "2046f4b2df6c90aed76613afc85d1784a8e293bd203efedd32bb416715982d63", initial_symbol_table = "10998586280d1ca360372389b512bc2af12c88a4bcfd4f7e2c99756ddf1b04e8", inlined_ast = "1e50eaf77ff3f385d9355f5df95656230dcf2517cca5ba414c804083e867dcd6", ssa_ast = "a90f345a4a71399b2e61dddfa5c5ec22826bba09fb1828cbb68708b84f17c472", type_checked_symbol_table = "2f5f1d4b4e58e58f307e1b920c43c5289eefe1a677246067a85c1b0b6a04a767", unrolled_ast = "2046f4b2df6c90aed76613afc85d1784a8e293bd203efedd32bb416715982d63", unrolled_symbol_table = "2f5f1d4b4e58e58f307e1b920c43c5289eefe1a677246067a85c1b0b6a04a767", warnings = "" }], execute = [ { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqwnt9kc7w5mlsy92749ly00s3d8aje529f6qrun8ra8utk7dse49ezfwj8erxuclwetdthkz20z9uqqylhezq3dmrqm3cm4tawnuznt5gc2fv8psgvswzavf79my3t8ahzhj9x5epa9k6s9vznyh8mp4qsnqg8n8aza9sfw3kryelnz8k0p7sx375kzu754wlhy3k5rdq3vz0gnxs0dh0pcz5nchj72ug77suxnxqe20ln5arx2lrvykq6ela5tfzajjew2jmr2e2nfjzafrt3alsplf2llm62deuq02xa4406r5heqhvpp30p46fjt7u7xc3mhv6j65l5cdnmuxzu9d9ngewapqs3d4ad9jpq42ltsmdt9gtv8utv9hqywe4gp9jw4dsapm4nlmeu02hhn6tj44065j5k6l3lrjksmhfletr6kvu92usrlgqdwvhnv87g36afl7hcsrwepsc8nlepqngw2q4r3kpyq20avfgrnft528axwr7e9jjr66dmt63ylatjvh65rc69uqz3nkvemqtqlzescl08dx3xjy36a5u7x89vh5vjkvkpfz5edep3av8f2p37f7d9vjnq3zfrn3p85zx7gjyqg7qyqrqh5hg70a7klgy5eq0vrth7pz7e7g8t57pkju5k9z6xwexvg4uz2svry0mk7latuz3z6ynyc9cprfmcjkjwmezs4vl7w3kk4hlhumkzm2v3jvzqahx2m9e86p557c8pjtudkgd499geem5jf5u9qxuz5mcpdvegqm43x4dn6uyrdzjmzz6mgcadv0y0gced4dh20t757kgms6u45ma5kezmc6ghf9n538arp076gjrkp9y7lggntqr2v8aqvpuyw7szd0f9d8hrlsyff6re23xpp288aeadrh8lwqdjkpgwhdv95vn8araf5t8tgrtm22w8r7turzcqtyllzl8s9cfeczzst6ec4narg7da76fcq5neycd6slgx68g63yyv6g63ae9m7ztepxvxw4852aadryfy49zemrzhqquypkaehrf66qwwjhf3gwnm5aamtv79v4zeps0xf5urc5cw8xlaltapg0pm54kjplc3udlz587zkd82qzj7vlzljeup57t4hggmafzf303yx8l3ypvq25cvm4jfympct84an2f7q53pqymcgzgxwln29ga909uhv2c6nss0qvqqqqqqqqqqq4ydt9dssx08jcecc7lpc8x4npzm45nzx4gjeepzltl42xqtu6ljaegs3vmkyp9gmcxejarwucjysyq9gjdqfq9ugcxqc2dlwxzhgw6ltxctn0gva6m6hz9a5lm8la0fm2nctmj3kksdal53ktu3wffgmfypq9sp749hfxy8wvdnsagqs4w3hxr83qkpdacm92er3htljzqz4yzss8valjgymcql5xm5uqxwuar3549jrkl577ww5mxvxarkcs97jpulpht09q6w4axjxj254ezzahy4sqqq7sy9wf", transitions = [{ function = "is_block_height", id = "au1mdg84h5sf70jd3jcz5ly6v7d2d65jthy2c9mp00ftsd7d7wasq9sywmyl4", program = "metadata.aleo", scm = "1980270338266624580494901677581519840423416572710948745278059423752506827747field", tcm = "8338099097402671626408038034858578087638496090147697571937791628404909729345field", tpk = "4174266389141840694112770464623549736508472115786023137592436699114609405528group", inputs = [{ id = "6254483773873152836214079053344956162296914127394184523955489854019104782235field", type = "private", value = "ciphertext1qyqg8xn2lx3ukujrthuh67jazc3h5v96hhc7zacwef08y7a9lpu92pq3dsj78" }], outputs = [{ id = "3584812567307540139221803946418691936915110293757497103263084678323624798088field", type = "future", value = """ { program_id: metadata.aleo, diff --git a/tests/expectations/execution/mint.out b/tests/expectations/execution/mint.out index 8f7e1b865b..8e3eaccbcc 100644 --- a/tests/expectations/execution/mint.out +++ b/tests/expectations/execution/mint.out @@ -1,6 +1,20 @@ namespace = "Execute" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "d47819ba59e730eb159ee9e33fef5a35aac6062e70c743a749157d54824a45d9", dce_ast = "3dbc345d506a24072db8e3228eb4bbc99b41df7d673a112d3a351ea493acafb8", destructured_ast = "3dbc345d506a24072db8e3228eb4bbc99b41df7d673a112d3a351ea493acafb8", errors = "", flattened_ast = "f99c95ce74a5e971118299b787c572047809ea6b45dc7b7d83f6cdb08979e21d", initial_ast = "bbdd126cd1b3eaeaa719c45b93549653529addb4edd833d367c362e981cdc3e4", initial_symbol_table = "b1030d2b7e1dc433bcd3691ff89d35caa81dfd394c85f9aa93632c6fdd8ab4b6", inlined_ast = "3dbc345d506a24072db8e3228eb4bbc99b41df7d673a112d3a351ea493acafb8", ssa_ast = "92d71ac22b15e4595e2805ead2085b705bdc72550563ef46024e234ceb17e0b8", type_checked_symbol_table = "231df4a77d82b439bd0d83a23be38e6b0fad8d10817908a60a65a1467aa9e68b", unrolled_ast = "daf988283c1682dbbaa69c9588be2654d0d8f161918e696d7a9609854b9e5311", unrolled_symbol_table = "231df4a77d82b439bd0d83a23be38e6b0fad8d10817908a60a65a1467aa9e68b", warnings = "" }], execute = [ +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + +record Token: + owner as address.private; + amount as u64.private; + flag as boolean.constant; + + +function mint: + input r0 as address.private; + input r1 as u64.private; + cast r0 r1 true into r2 as Token.record; + output r2 as Token.record; +""", dce_ast = "3dbc345d506a24072db8e3228eb4bbc99b41df7d673a112d3a351ea493acafb8", destructured_ast = "3dbc345d506a24072db8e3228eb4bbc99b41df7d673a112d3a351ea493acafb8", errors = "", flattened_ast = "f99c95ce74a5e971118299b787c572047809ea6b45dc7b7d83f6cdb08979e21d", initial_ast = "bbdd126cd1b3eaeaa719c45b93549653529addb4edd833d367c362e981cdc3e4", initial_symbol_table = "b1030d2b7e1dc433bcd3691ff89d35caa81dfd394c85f9aa93632c6fdd8ab4b6", inlined_ast = "3dbc345d506a24072db8e3228eb4bbc99b41df7d673a112d3a351ea493acafb8", ssa_ast = "92d71ac22b15e4595e2805ead2085b705bdc72550563ef46024e234ceb17e0b8", type_checked_symbol_table = "231df4a77d82b439bd0d83a23be38e6b0fad8d10817908a60a65a1467aa9e68b", unrolled_ast = "daf988283c1682dbbaa69c9588be2654d0d8f161918e696d7a9609854b9e5311", unrolled_symbol_table = "231df4a77d82b439bd0d83a23be38e6b0fad8d10817908a60a65a1467aa9e68b", warnings = "" }], execute = [ { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqpv7w3dzev6sak90ly70mwxydt494x88tuyym6pfw8sr5fy9y0zdkru4j4vvxmudjy4da22mczmzcpqyphrfleuraudqzcyuxf8acjvm2t4ctdd8eqq0rhjrcq9s5hmnzuk977q64mg8lynee7hrf5lm7a2qq7tv3axyrdqjapj4su7k7rjm6rh3k8kmt4n0zjhmwhpm7a2yaq7q6wu3gw2ucnmnqrkdcxna8yjcqt8fujq8t6wdfc20aplwx0pezgzt3q3agw6maprc6dlfmdetk9c4c6ay6hlvw8xf83dx7j36klu4cquyypq6wj78x2p8aqrsqsfanhr3h229jagmptrtpy9hjetf7qsue97ga6scqqgx4lyxd3nqqt9akqry27am87yuyqpsafcsjnuu603jujxtepc70xm0pd3uxwyzp0qv2a7swaan4ys08gvljq2mncsurksxysac8k6hdx7c0jalrc5sf9qjgmc49pw4y4jaxnuca6wqd52mxzeya39gtyjl0py3prut3lj6r98qzwx4v6ar6f9m4mxsrv0nsy9twzh80xnf7xcjur6fjm43j3at5h9nha29l3rq7csdrvp9wkefhzj7q8zueluz0u4n5g8wf6ne5050jslg448x3eca39yg6x7eru79tqzle4lay6v8464hqc3n660j4tlruph9uhvdsugh47f4sl6f0grwk8txvle7whdlcwn8mmvcpu2d3lhv9zmqd06kswypdm5th9h0dw4qt67x4l2l9vpvqs0r7shg7adnezjr8yfrzvqzr387ttvq7c27nrlr2xf78wg0f3726z398v8l4mpvxcquqs4rjn0kffspkxe8u8qhkzcs2fnptc28zkja3wsufee9t5p0us6q6mfsgplsnhq5akyftdnjeatnjfhhqp8fckhu39033367yw7jg0k065882yu0e3pafnsttngwymcmmg9j9e24htqrt2rllrngzd3spdkhefjn878wt3r9t79kn99ygrmd6tlqd3zkw4rpwvvhvc6fw2cy2gl4tp3h3kr6h6f3nrwnyuerhvv2vkt2ly0ch6vtyy33vfzeyap0wp3ud280xrm376ua7sy95d96p438q8lhh5at6e6x0qg3yfs2aqz072s8y8m80y7dh93tqgn57c72md76zrdkuus3t2ax3uedfnskqfqvqqqqqqqqqqpa4q4lhjg8smyty9e8g8cy2zdn6revlv9nu5dt7mndkeh4jgk7nsae2jvtll62q0m8dl9rsjzlwfqqqf66rhr2q6wx5qdutj8g3zvttuv24q9xjslwc68fewd2et4snf6pnreyz768fruazvq06x6p2xj8sqqxek9cqtcwr2dg39ry6e89cmufadcvxmwmc4wl2c37vprhnm40hsjuflplcytsgkpd3fchzy3j8q2cjqtu0vr0arngfwlwj4zj3ch38vj2879wqvguecfkw97nadf7zhsqqqydj89c", transitions = [{ function = "mint", id = "au1sghrqk9s5998jacu40qw6nwpvkxj9wfqlyus2rymu7cm9lewu5psgwe7zf", program = "test.aleo", scm = "976314679729564700856316609545716173163081344239778489091042818470177990760field", tcm = "4346953566447634214157280385182045626270093194427104596054934347800656899000field", tpk = "7835567325899127550325463306228588669553911215612671657187814910151824399315group", inputs = [ { id = "7855253885486279710229453851594786218259580934362540680646828300595665281202field", type = "private", value = "ciphertext1qgqf7p64udkc2uzcsemzy2k4p6q0h6arl68ujpmva4dqllyte8wwjrhdnldv5w6c9rxuxz55xge5czjzqrdqhk884hgvzmqlqmlpncldzqwl8x46" }, { id = "5426061205580372303096592424694483165889188915103920753208915604989483184458field", type = "private", value = "ciphertext1qyqxqzkt4kvyxgc53dfat7kvmr2z4d4v9q2dyklu2528hq7ehamfsqq8zekty" }, diff --git a/tests/expectations/execution/primitive_casts.out b/tests/expectations/execution/primitive_casts.out index 3e913d32fb..1ced9a80cf 100644 --- a/tests/expectations/execution/primitive_casts.out +++ b/tests/expectations/execution/primitive_casts.out @@ -1,6 +1,513 @@ namespace = "Execute" expectation = "Pass" -outputs = [[{ compile = [{ bytecode = "558400159426d4e89eb78e174a495d3dd2816aa4e78e5988d58a62d3c4d39392", dce_ast = "2a72e11ce73e37385aa3ac762c9114dbf5667bfbe12a58994636a7a8b5bccda5", destructured_ast = "2a72e11ce73e37385aa3ac762c9114dbf5667bfbe12a58994636a7a8b5bccda5", errors = "", flattened_ast = "596e90d7e1c8160687c1ce1079c1cf8871ed89aca9326104f73c41610ffbd1c7", initial_ast = "0b101b555f20ff7068e10248afe70c5b9fc68afd891cbb7e6ed7210cd65bc676", initial_symbol_table = "9e7d17a4e02b7e7daff030ee0600a9284c49c15fa1a2843c367d31e71286f343", inlined_ast = "2a72e11ce73e37385aa3ac762c9114dbf5667bfbe12a58994636a7a8b5bccda5", ssa_ast = "fa4b2aee6af80d118660d054c70bb7eaf68fbcdd9eea92ce7391b34af8c422bb", type_checked_symbol_table = "b1b413b0da0165deee231441b15c131a145712daa1fc7db9a5d0f0ab0ad5f093", unrolled_ast = "0b101b555f20ff7068e10248afe70c5b9fc68afd891cbb7e6ed7210cd65bc676", unrolled_symbol_table = "b1b413b0da0165deee231441b15c131a145712daa1fc7db9a5d0f0ab0ad5f093", warnings = "" }], execute = [ +outputs = [[{ compile = [{ bytecode = """ +program test.aleo; + + + +function address_cast: + input r0 as address.private; + cast r0 into r1 as address; + cast r0 into r2 as boolean; + cast r0 into r3 as field; + cast r0 into r4 as group; + cast r0 into r5 as i8; + cast r0 into r6 as i16; + cast r0 into r7 as i32; + cast r0 into r8 as i64; + cast r0 into r9 as i128; + cast r0 into r10 as u8; + cast r0 into r11 as u16; + cast r0 into r12 as u32; + cast r0 into r13 as u64; + cast r0 into r14 as u128; + cast r0 into r15 as scalar; + output r1 as address.private; + output r2 as boolean.private; + output r3 as field.private; + output r4 as group.private; + output r5 as i8.private; + output r6 as i16.private; + output r7 as i32.private; + output r8 as i64.private; + output r9 as i128.private; + output r10 as u8.private; + output r11 as u16.private; + output r12 as u32.private; + output r13 as u64.private; + output r14 as u128.private; + output r15 as scalar.private; + + +function bool_cast: + input r0 as boolean.private; + cast r0 into r1 as address; + cast r0 into r2 as boolean; + cast r0 into r3 as field; + cast r0 into r4 as group; + cast r0 into r5 as i8; + cast r0 into r6 as i16; + cast r0 into r7 as i32; + cast r0 into r8 as i64; + cast r0 into r9 as i128; + cast r0 into r10 as u8; + cast r0 into r11 as u16; + cast r0 into r12 as u32; + cast r0 into r13 as u64; + cast r0 into r14 as u128; + cast r0 into r15 as scalar; + output r1 as address.private; + output r2 as boolean.private; + output r3 as field.private; + output r4 as group.private; + output r5 as i8.private; + output r6 as i16.private; + output r7 as i32.private; + output r8 as i64.private; + output r9 as i128.private; + output r10 as u8.private; + output r11 as u16.private; + output r12 as u32.private; + output r13 as u64.private; + output r14 as u128.private; + output r15 as scalar.private; + + +function field_casts: + input r0 as field.private; + cast r0 into r1 as boolean; + cast r0 into r2 as field; + cast r0 into r3 as group; + cast r0 into r4 as i8; + cast r0 into r5 as i16; + cast r0 into r6 as i32; + cast r0 into r7 as i64; + cast r0 into r8 as i128; + cast r0 into r9 as u8; + cast r0 into r10 as u16; + cast r0 into r11 as u32; + cast r0 into r12 as u64; + cast r0 into r13 as u128; + output r1 as boolean.private; + output r2 as field.private; + output r3 as group.private; + output r4 as i8.private; + output r5 as i16.private; + output r6 as i32.private; + output r7 as i64.private; + output r8 as i128.private; + output r9 as u8.private; + output r10 as u16.private; + output r11 as u32.private; + output r12 as u64.private; + output r13 as u128.private; + + +function group_casts: + input r0 as group.private; + cast r0 into r1 as address; + cast r0 into r2 as boolean; + cast r0 into r3 as field; + cast r0 into r4 as group; + cast r0 into r5 as i8; + cast r0 into r6 as i16; + cast r0 into r7 as i32; + cast r0 into r8 as i64; + cast r0 into r9 as i128; + cast r0 into r10 as u8; + cast r0 into r11 as u16; + cast r0 into r12 as u32; + cast r0 into r13 as u64; + cast r0 into r14 as u128; + output r1 as address.private; + output r2 as boolean.private; + output r3 as field.private; + output r4 as group.private; + output r5 as i8.private; + output r6 as i16.private; + output r7 as i32.private; + output r8 as i64.private; + output r9 as i128.private; + output r10 as u8.private; + output r11 as u16.private; + output r12 as u32.private; + output r13 as u64.private; + output r14 as u128.private; + + +function i8_casts: + input r0 as i8.private; + cast r0 into r1 as address; + cast r0 into r2 as boolean; + cast r0 into r3 as field; + cast r0 into r4 as group; + cast r0 into r5 as i8; + cast r0 into r6 as i16; + cast r0 into r7 as i32; + cast r0 into r8 as i64; + cast r0 into r9 as i128; + cast r0 into r10 as u8; + cast r0 into r11 as u16; + cast r0 into r12 as u32; + cast r0 into r13 as u64; + cast r0 into r14 as u128; + cast r0 into r15 as scalar; + output r1 as address.private; + output r2 as boolean.private; + output r3 as field.private; + output r4 as group.private; + output r5 as i8.private; + output r6 as i16.private; + output r7 as i32.private; + output r8 as i64.private; + output r9 as i128.private; + output r10 as u8.private; + output r11 as u16.private; + output r12 as u32.private; + output r13 as u64.private; + output r14 as u128.private; + output r15 as scalar.private; + + +function i16_casts: + input r0 as i16.private; + cast r0 into r1 as address; + cast r0 into r2 as boolean; + cast r0 into r3 as field; + cast r0 into r4 as group; + cast r0 into r5 as i8; + cast r0 into r6 as i16; + cast r0 into r7 as i32; + cast r0 into r8 as i64; + cast r0 into r9 as i128; + cast r0 into r10 as u8; + cast r0 into r11 as u16; + cast r0 into r12 as u32; + cast r0 into r13 as u64; + cast r0 into r14 as u128; + cast r0 into r15 as scalar; + output r1 as address.private; + output r2 as boolean.private; + output r3 as field.private; + output r4 as group.private; + output r5 as i8.private; + output r6 as i16.private; + output r7 as i32.private; + output r8 as i64.private; + output r9 as i128.private; + output r10 as u8.private; + output r11 as u16.private; + output r12 as u32.private; + output r13 as u64.private; + output r14 as u128.private; + output r15 as scalar.private; + + +function i32_casts: + input r0 as i32.private; + cast r0 into r1 as address; + cast r0 into r2 as boolean; + cast r0 into r3 as field; + cast r0 into r4 as group; + cast r0 into r5 as i8; + cast r0 into r6 as i16; + cast r0 into r7 as i32; + cast r0 into r8 as i64; + cast r0 into r9 as i128; + cast r0 into r10 as u8; + cast r0 into r11 as u16; + cast r0 into r12 as u32; + cast r0 into r13 as u64; + cast r0 into r14 as u128; + cast r0 into r15 as scalar; + output r1 as address.private; + output r2 as boolean.private; + output r3 as field.private; + output r4 as group.private; + output r5 as i8.private; + output r6 as i16.private; + output r7 as i32.private; + output r8 as i64.private; + output r9 as i128.private; + output r10 as u8.private; + output r11 as u16.private; + output r12 as u32.private; + output r13 as u64.private; + output r14 as u128.private; + output r15 as scalar.private; + + +function i64_casts: + input r0 as i64.private; + cast r0 into r1 as address; + cast r0 into r2 as boolean; + cast r0 into r3 as field; + cast r0 into r4 as group; + cast r0 into r5 as i8; + cast r0 into r6 as i16; + cast r0 into r7 as i32; + cast r0 into r8 as i64; + cast r0 into r9 as i128; + cast r0 into r10 as u8; + cast r0 into r11 as u16; + cast r0 into r12 as u32; + cast r0 into r13 as u64; + cast r0 into r14 as u128; + cast r0 into r15 as scalar; + output r1 as address.private; + output r2 as boolean.private; + output r3 as field.private; + output r4 as group.private; + output r5 as i8.private; + output r6 as i16.private; + output r7 as i32.private; + output r8 as i64.private; + output r9 as i128.private; + output r10 as u8.private; + output r11 as u16.private; + output r12 as u32.private; + output r13 as u64.private; + output r14 as u128.private; + output r15 as scalar.private; + + +function i128_casts: + input r0 as i128.private; + cast r0 into r1 as address; + cast r0 into r2 as boolean; + cast r0 into r3 as field; + cast r0 into r4 as group; + cast r0 into r5 as i8; + cast r0 into r6 as i16; + cast r0 into r7 as i32; + cast r0 into r8 as i64; + cast r0 into r9 as i128; + cast r0 into r10 as u8; + cast r0 into r11 as u16; + cast r0 into r12 as u32; + cast r0 into r13 as u64; + cast r0 into r14 as u128; + cast r0 into r15 as scalar; + output r1 as address.private; + output r2 as boolean.private; + output r3 as field.private; + output r4 as group.private; + output r5 as i8.private; + output r6 as i16.private; + output r7 as i32.private; + output r8 as i64.private; + output r9 as i128.private; + output r10 as u8.private; + output r11 as u16.private; + output r12 as u32.private; + output r13 as u64.private; + output r14 as u128.private; + output r15 as scalar.private; + + +function u8_casts: + input r0 as u8.private; + cast r0 into r1 as address; + cast r0 into r2 as boolean; + cast r0 into r3 as field; + cast r0 into r4 as group; + cast r0 into r5 as i8; + cast r0 into r6 as i16; + cast r0 into r7 as i32; + cast r0 into r8 as i64; + cast r0 into r9 as i128; + cast r0 into r10 as u8; + cast r0 into r11 as u16; + cast r0 into r12 as u32; + cast r0 into r13 as u64; + cast r0 into r14 as u128; + cast r0 into r15 as scalar; + output r1 as address.private; + output r2 as boolean.private; + output r3 as field.private; + output r4 as group.private; + output r5 as i8.private; + output r6 as i16.private; + output r7 as i32.private; + output r8 as i64.private; + output r9 as i128.private; + output r10 as u8.private; + output r11 as u16.private; + output r12 as u32.private; + output r13 as u64.private; + output r14 as u128.private; + output r15 as scalar.private; + + +function u16_casts: + input r0 as u16.private; + cast r0 into r1 as address; + cast r0 into r2 as boolean; + cast r0 into r3 as field; + cast r0 into r4 as group; + cast r0 into r5 as i8; + cast r0 into r6 as i16; + cast r0 into r7 as i32; + cast r0 into r8 as i64; + cast r0 into r9 as i128; + cast r0 into r10 as u8; + cast r0 into r11 as u16; + cast r0 into r12 as u32; + cast r0 into r13 as u64; + cast r0 into r14 as u128; + cast r0 into r15 as scalar; + output r1 as address.private; + output r2 as boolean.private; + output r3 as field.private; + output r4 as group.private; + output r5 as i8.private; + output r6 as i16.private; + output r7 as i32.private; + output r8 as i64.private; + output r9 as i128.private; + output r10 as u8.private; + output r11 as u16.private; + output r12 as u32.private; + output r13 as u64.private; + output r14 as u128.private; + output r15 as scalar.private; + + +function u32_casts: + input r0 as u32.private; + cast r0 into r1 as address; + cast r0 into r2 as boolean; + cast r0 into r3 as field; + cast r0 into r4 as group; + cast r0 into r5 as i8; + cast r0 into r6 as i16; + cast r0 into r7 as i32; + cast r0 into r8 as i64; + cast r0 into r9 as i128; + cast r0 into r10 as u8; + cast r0 into r11 as u16; + cast r0 into r12 as u32; + cast r0 into r13 as u64; + cast r0 into r14 as u128; + cast r0 into r15 as scalar; + output r1 as address.private; + output r2 as boolean.private; + output r3 as field.private; + output r4 as group.private; + output r5 as i8.private; + output r6 as i16.private; + output r7 as i32.private; + output r8 as i64.private; + output r9 as i128.private; + output r10 as u8.private; + output r11 as u16.private; + output r12 as u32.private; + output r13 as u64.private; + output r14 as u128.private; + output r15 as scalar.private; + + +function u64_casts: + input r0 as u64.private; + cast r0 into r1 as address; + cast r0 into r2 as boolean; + cast r0 into r3 as field; + cast r0 into r4 as group; + cast r0 into r5 as i8; + cast r0 into r6 as i16; + cast r0 into r7 as i32; + cast r0 into r8 as i64; + cast r0 into r9 as i128; + cast r0 into r10 as u8; + cast r0 into r11 as u16; + cast r0 into r12 as u32; + cast r0 into r13 as u64; + cast r0 into r14 as u128; + cast r0 into r15 as scalar; + output r1 as address.private; + output r2 as boolean.private; + output r3 as field.private; + output r4 as group.private; + output r5 as i8.private; + output r6 as i16.private; + output r7 as i32.private; + output r8 as i64.private; + output r9 as i128.private; + output r10 as u8.private; + output r11 as u16.private; + output r12 as u32.private; + output r13 as u64.private; + output r14 as u128.private; + output r15 as scalar.private; + + +function u128_casts: + input r0 as u128.private; + cast r0 into r1 as address; + cast r0 into r2 as boolean; + cast r0 into r3 as field; + cast r0 into r4 as group; + cast r0 into r5 as i8; + cast r0 into r6 as i16; + cast r0 into r7 as i32; + cast r0 into r8 as i64; + cast r0 into r9 as i128; + cast r0 into r10 as u8; + cast r0 into r11 as u16; + cast r0 into r12 as u32; + cast r0 into r13 as u64; + cast r0 into r14 as u128; + cast r0 into r15 as scalar; + output r1 as address.private; + output r2 as boolean.private; + output r3 as field.private; + output r4 as group.private; + output r5 as i8.private; + output r6 as i16.private; + output r7 as i32.private; + output r8 as i64.private; + output r9 as i128.private; + output r10 as u8.private; + output r11 as u16.private; + output r12 as u32.private; + output r13 as u64.private; + output r14 as u128.private; + output r15 as scalar.private; + + +function scalar_cast: + input r0 as scalar.private; + cast r0 into r1 as address; + cast r0 into r2 as boolean; + cast r0 into r3 as field; + cast r0 into r4 as group; + cast r0 into r5 as i8; + cast r0 into r6 as i16; + cast r0 into r7 as i32; + cast r0 into r8 as i64; + cast r0 into r9 as i128; + cast r0 into r10 as u8; + cast r0 into r11 as u16; + cast r0 into r12 as u32; + cast r0 into r13 as u64; + cast r0 into r14 as u128; + cast r0 into r15 as scalar; + output r1 as address.private; + output r2 as boolean.private; + output r3 as field.private; + output r4 as group.private; + output r5 as i8.private; + output r6 as i16.private; + output r7 as i32.private; + output r8 as i64.private; + output r9 as i128.private; + output r10 as u8.private; + output r11 as u16.private; + output r12 as u32.private; + output r13 as u64.private; + output r14 as u128.private; + output r15 as scalar.private; +""", dce_ast = "2a72e11ce73e37385aa3ac762c9114dbf5667bfbe12a58994636a7a8b5bccda5", destructured_ast = "2a72e11ce73e37385aa3ac762c9114dbf5667bfbe12a58994636a7a8b5bccda5", errors = "", flattened_ast = "596e90d7e1c8160687c1ce1079c1cf8871ed89aca9326104f73c41610ffbd1c7", initial_ast = "0b101b555f20ff7068e10248afe70c5b9fc68afd891cbb7e6ed7210cd65bc676", initial_symbol_table = "9e7d17a4e02b7e7daff030ee0600a9284c49c15fa1a2843c367d31e71286f343", inlined_ast = "2a72e11ce73e37385aa3ac762c9114dbf5667bfbe12a58994636a7a8b5bccda5", ssa_ast = "fa4b2aee6af80d118660d054c70bb7eaf68fbcdd9eea92ce7391b34af8c422bb", type_checked_symbol_table = "b1b413b0da0165deee231441b15c131a145712daa1fc7db9a5d0f0ab0ad5f093", unrolled_ast = "0b101b555f20ff7068e10248afe70c5b9fc68afd891cbb7e6ed7210cd65bc676", unrolled_symbol_table = "b1b413b0da0165deee231441b15c131a145712daa1fc7db9a5d0f0ab0ad5f093", warnings = "" }], execute = [ { errors = "SnarkVMError(Failed to evaluate instruction (cast r0 into r2 as boolean;): Failed to convert field to boolean: field element is not zero or one)", status = "none", verified = false, warnings = "" }, { errors = "", status = "accepted", verified = true, warnings = "", execution = { global_state_root = "sr1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gk0xu", proof = "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqr9t73c7ur3wphtpfxmugwau2krnqz7zvppqsc6xjaq03mkvc6y8ce5yx67jzv4j7vyak4h548y2uqqy0s7fz947x6ycthac9jpe06lzuzd9yydl7lvpe4lgxap86x4tcan3pt5jy4hqs89myqljrwne9ycqte7pnv2saqzv8zguwm0k0v05l3r6xlcdj4p27qt43j44w7kkx5tpqlhq65a5p6x358uspz7836a5q22jxdxdhrf3cfvjuwsrdq5wphfg0yljyuf0eh866s98ldlf8dan53jjcapldf2lm9cxac70p2lsyqpqkm85csyupnfaefwgce8pwk92x0l9khtec7ksp2ylyt9f4ngk590lmmacmsueurc8y20f8s894qzv0gc6k5fh0mmeh43pufleqtpwluu9a7van0f943f8wpenlgwdju3t75ckacw5rs2pedc5yndd4fqywmkr0mwdjn0f9f29nf5hccy8wzmemnyhargy5r7swnan4jk2quxsv66kykq8nh8m6y86dkeg85qqqc4p0rs2tq9dzk0qa7r6s203ad7kn3xpagek3fsuzah5plh9d50l2a5ghxmnt6m63sr9xpr26sd2qcl7edp2vw8l67dskwem2ktxk9tsmupga4xcyr3n5awqc0t0c6eqj322gh3ut398xml2asxx2w575ppm3am3um9da957cu4yqtlgklaae35zd67kmtwg57d5a2a25xju846dx9ytvj0953wwyh5ezly4l42mgmmga88q0g7eyf80w54t2wvpj0d72uvc8hg3ahzdtpd5lpshn23fnzyfhjqd5qkxg5tf404pjup9snrj25frwr6586zuuke3dk0zx20mvnxnypjysn4hz4n4ejscuqrcjenkunqk9ungezprd77m20u99kn7p7xwpk27c4ef9sfhanpnc0xrc847zqcwfyasz58d6gvg2clh7ppfwcgfh8npxdezujgzzywsyfjgh4wuvvz4zadzpk3ncf069ulm8w8q3lsmxh4xauszma349nwre87s0tgezt0l7392qdg45n6zsen3whdy2cx4ahqufjmsrjmn7upna75jh8euyp55cxrrlkx8jta9hq9txdc7klhg9tw2sqnkr5eydqr26vf8te2u0jtlf3w3nvlh2ewutp0qedyltdz3gqcq9du82wttcsqvqqqqqqqqqqp2vytpxkm66stlawctz7s0py8cdy5p58kq72e3wzjk3qxll6u79mdpwfdfjq6ksj29nu6fk0vcegqqqy4r3y734ckuvdk4svg2nzemncrd9z8w3976ptnjlwf4qpryax639et2sdshqftkazg064zj6h5hgqq93x7fh828m59eyxwaqad7en8al6gkryavfkawsv4tfqyd4yuras339g68wejexp25vxgzdfzf87ra99645kll99cs7p5963m86yave58fugucjq63qehlpwn80ff4emsyqqjsrxwh", transitions = [{ function = "bool_cast", id = "au1vxsqq85uzyxvy2k0qylq8s2gsd3etuu4ckfa6wy8rrny3dcdgyqszln7hm", program = "test.aleo", scm = "2273075582360443326451938231856015807711165656796230579989764810685688490856field", tcm = "4997724197499109479392119364652053918729566448250116943429037180294488682414field", tpk = "1840775000742132221378217470390403415772894197711079446698402298218210582564group", inputs = [{ id = "3652773017842723677695414936555553623545505167243357822542337827471217256094field", type = "private", value = "ciphertext1qyqzvs3wx8nhw7nes3c4m09yxuq60e3fqrpsyzqkrwn2yczyr35agzcxhzwnd" }], outputs = [ { id = "1489903468267774922477104600233457150822527790489645507079505097147284139318field", type = "private", value = "ciphertext1qgqd7qgs5hnngcm7fefm5h5ch4yc7ln86k78j35xfqjx3n7jvx79jqdnh0lzv3ntqjccdw5nj8lhz50cwuf6acufdpnuhyhj7fee8k2lqvgga0ym" },