This repository has been archived by the owner on Oct 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for
_lengthof
Scilla operation (#40)
* Add Iterate test. Doesn't work as _lengthof isn't there * Add _lengthof op and fix/add simple-iterate test * Some assertions and code formatting * Fix unused variable used in ASSERT
- Loading branch information
1 parent
4708f95
commit 0b4d4e0
Showing
13 changed files
with
796 additions
and
26 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
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"contract_info": { | ||
"scilla_major_version": "0", | ||
"vname": "SimpleIterate", | ||
"params": [], | ||
"fields": [], | ||
"transitions": [ | ||
{ | ||
"vname": "NEvents", | ||
"params": [ { "vname": "nlist", "type": "List (Int32)" } ] | ||
} | ||
], | ||
"procedures": [ | ||
{ "vname": "EventN", "params": [ { "vname": "n", "type": "Int32" } ] } | ||
], | ||
"events": [ | ||
{ "vname": "FooN", "params": [ { "vname": "n", "type": "Int32" } ] } | ||
], | ||
"ADTs": [ | ||
{ | ||
"tname": "Option", | ||
"tparams": [ "'A" ], | ||
"tmap": [ | ||
{ "cname": "Some", "argtypes": [ "'A" ] }, | ||
{ "cname": "None", "argtypes": [] } | ||
] | ||
}, | ||
{ | ||
"tname": "Bool", | ||
"tparams": [], | ||
"tmap": [ | ||
{ "cname": "True", "argtypes": [] }, | ||
{ "cname": "False", "argtypes": [] } | ||
] | ||
}, | ||
{ | ||
"tname": "Nat", | ||
"tparams": [], | ||
"tmap": [ | ||
{ "cname": "Zero", "argtypes": [] }, | ||
{ "cname": "Succ", "argtypes": [ "Nat" ] } | ||
] | ||
}, | ||
{ | ||
"tname": "List", | ||
"tparams": [ "'A" ], | ||
"tmap": [ | ||
{ "cname": "Cons", "argtypes": [ "'A", "List ('A)" ] }, | ||
{ "cname": "Nil", "argtypes": [] } | ||
] | ||
}, | ||
{ | ||
"tname": "Pair", | ||
"tparams": [ "'A", "'B" ], | ||
"tmap": [ { "cname": "Pair", "argtypes": [ "'A", "'B" ] } ] | ||
} | ||
] | ||
}, | ||
"warnings": [], | ||
"gas_remaining": "9999" | ||
} | ||
|
Oops, something went wrong.