-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: compare
arc4.Address
against Account
- Loading branch information
Showing
19 changed files
with
325 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 44 additions & 36 deletions
80
test_cases/arc4_types/out/Arc4RefTypesContract.approval.mir
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#pragma version 10 | ||
|
||
test_cases.arc4_types.reference_types.Arc4RefTypesContract.clear_state_program: | ||
// arc4_types/reference_types.py:20 | ||
// arc4_types/reference_types.py:22 | ||
// return True | ||
int 1 | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
test_cases/arc4_types/out/Arc4RefTypesContract.ssa.opt_pass_2.ir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
contract test_cases.arc4_types.reference_types.Arc4RefTypesContract: | ||
program approval: | ||
subroutine test_cases.arc4_types.reference_types.Arc4RefTypesContract.approval_program() -> uint64: | ||
block@0: // L5 | ||
let sender_address#0: bytes = (txn Sender) | ||
let tmp%0#0: bytes = (txn Sender) | ||
let tmp%1#0: uint64 = (== sender_address#0 tmp%0#0) | ||
(assert tmp%1#0) | ||
let checked_address#0: bytes = (txn Sender) | ||
let tmp%3#0: uint64 = (len checked_address#0) | ||
let tmp%4#0: uint64 = (== 32u tmp%3#0) | ||
(assert tmp%4#0) // Address length is 32 bytes | ||
let unchecked_address#0: bytes = (txn Sender) | ||
let tmp%7#0: uint64 = (== sender_address#0 checked_address#0) | ||
goto tmp%7#0 ? block@1 : block@3 | ||
block@1: // and_contd_L16 | ||
let tmp%8#0: uint64 = (== checked_address#0 unchecked_address#0) | ||
goto tmp%8#0 ? block@2 : block@3 | ||
block@2: // bool_true_L16 | ||
let and_result%9#0: uint64 = 1u | ||
goto block@4 | ||
block@3: // bool_false_L16 | ||
let and_result%9#1: uint64 = 0u | ||
goto block@4 | ||
block@4: // bool_merge_L16 | ||
let and_result%9#2: uint64 = φ(and_result%9#0 <- block@2, and_result%9#1 <- block@3) | ||
(assert and_result%9#2) | ||
return 1u | ||
|
||
program clear-state: | ||
subroutine test_cases.arc4_types.reference_types.Arc4RefTypesContract.clear_state_program() -> uint64: | ||
block@0: // L21 | ||
return 1u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.