-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
563 additions
and
11 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
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
251 changes: 251 additions & 0 deletions
251
tests/integration/teal/roundtrip/app_roundtrip_(byte[],byte[3])_v6.teal
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,251 @@ | ||
#pragma version 6 | ||
txna ApplicationArgs 0 | ||
store 3 | ||
load 3 | ||
callsub roundtripper_1 | ||
store 2 | ||
byte 0x151f7c75 | ||
load 2 | ||
concat | ||
log | ||
int 1 | ||
return | ||
|
||
// tuple_complement | ||
tuplecomplement_0: | ||
store 8 | ||
load 8 | ||
load 8 | ||
int 0 | ||
extract_uint16 | ||
dig 1 | ||
len | ||
substring3 | ||
store 0 | ||
load 8 | ||
extract 2 3 | ||
store 1 | ||
load 0 | ||
callsub arraycomplement_3 | ||
store 0 | ||
load 1 | ||
callsub arraycomplement_5 | ||
store 1 | ||
load 0 | ||
store 27 | ||
load 27 | ||
store 26 | ||
int 5 | ||
store 25 | ||
load 25 | ||
itob | ||
extract 6 0 | ||
load 1 | ||
concat | ||
load 26 | ||
concat | ||
store 9 | ||
load 9 | ||
retsub | ||
|
||
// round_tripper | ||
roundtripper_1: | ||
store 4 | ||
load 4 | ||
callsub tuplecomplement_0 | ||
store 6 | ||
load 6 | ||
callsub tuplecomplement_0 | ||
store 7 | ||
load 4 | ||
store 31 | ||
load 31 | ||
store 30 | ||
int 6 | ||
store 28 | ||
load 28 | ||
load 31 | ||
len | ||
+ | ||
store 29 | ||
load 29 | ||
int 65536 | ||
< | ||
assert | ||
load 28 | ||
itob | ||
extract 6 0 | ||
load 6 | ||
store 31 | ||
load 30 | ||
load 31 | ||
concat | ||
store 30 | ||
load 29 | ||
store 28 | ||
load 28 | ||
load 31 | ||
len | ||
+ | ||
store 29 | ||
load 29 | ||
int 65536 | ||
< | ||
assert | ||
load 28 | ||
itob | ||
extract 6 0 | ||
concat | ||
load 7 | ||
store 31 | ||
load 30 | ||
load 31 | ||
concat | ||
store 30 | ||
load 29 | ||
store 28 | ||
load 28 | ||
itob | ||
extract 6 0 | ||
concat | ||
load 30 | ||
concat | ||
store 5 | ||
load 5 | ||
retsub | ||
|
||
// numerical_comp | ||
numericalcomp_2: | ||
store 15 | ||
int 255 | ||
load 15 | ||
- | ||
store 16 | ||
load 16 | ||
int 256 | ||
< | ||
assert | ||
load 16 | ||
retsub | ||
|
||
// array_complement | ||
arraycomplement_3: | ||
store 10 | ||
load 10 | ||
int 1 | ||
int 0 | ||
* | ||
int 2 | ||
+ | ||
getbyte | ||
store 12 | ||
load 10 | ||
int 1 | ||
int 1 | ||
* | ||
int 2 | ||
+ | ||
getbyte | ||
store 13 | ||
load 10 | ||
int 1 | ||
int 2 | ||
* | ||
int 2 | ||
+ | ||
getbyte | ||
store 14 | ||
load 12 | ||
callsub numericalcomp_2 | ||
store 12 | ||
load 13 | ||
callsub numericalcomp_2 | ||
store 13 | ||
load 14 | ||
callsub numericalcomp_2 | ||
store 14 | ||
int 3 | ||
store 17 | ||
load 17 | ||
itob | ||
extract 6 0 | ||
byte 0x00 | ||
int 0 | ||
load 12 | ||
setbyte | ||
byte 0x00 | ||
int 0 | ||
load 13 | ||
setbyte | ||
concat | ||
byte 0x00 | ||
int 0 | ||
load 14 | ||
setbyte | ||
concat | ||
concat | ||
store 11 | ||
load 11 | ||
retsub | ||
|
||
// numerical_comp | ||
numericalcomp_4: | ||
store 23 | ||
int 255 | ||
load 23 | ||
- | ||
store 24 | ||
load 24 | ||
int 256 | ||
< | ||
assert | ||
load 24 | ||
retsub | ||
|
||
// array_complement | ||
arraycomplement_5: | ||
store 18 | ||
load 18 | ||
int 1 | ||
int 0 | ||
* | ||
getbyte | ||
store 20 | ||
load 18 | ||
int 1 | ||
int 1 | ||
* | ||
getbyte | ||
store 21 | ||
load 18 | ||
int 1 | ||
int 2 | ||
* | ||
getbyte | ||
store 22 | ||
load 20 | ||
callsub numericalcomp_4 | ||
store 20 | ||
load 21 | ||
callsub numericalcomp_4 | ||
store 21 | ||
load 22 | ||
callsub numericalcomp_4 | ||
store 22 | ||
byte 0x00 | ||
int 0 | ||
load 20 | ||
setbyte | ||
byte 0x00 | ||
int 0 | ||
load 21 | ||
setbyte | ||
concat | ||
byte 0x00 | ||
int 0 | ||
load 22 | ||
setbyte | ||
concat | ||
store 19 | ||
load 19 | ||
retsub |
Oops, something went wrong.