-
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.
* experiments for foundry-like parametric tests * TestAdder contract and api functions * basic foundry semantics * run-elrond-tests.py => run_elrond_tests.py * WrappedBytes in MapBytesToBytes and ListBytes * test-adder.wat:keep function names * add initial script to run tests with concrete execution * add property-based testing with hypothesis * temp * temp * add claim generator * add error cases for foundry rules * multisig test * increase recursion limit * foundryGetStorage returns empty bytes if not found * use _kast for parsing/unparsing * fix wrapped bytes * after review: cleanup and add types * make testapi.rs a cargo package * codeHandle => codePathHandle * fix recursion limit and refactor kast/krun * add foundry tutorial to README.md * split foundry assert rule * implement foundry assume without ensures
- Loading branch information
1 parent
402eeb6
commit 304113e
Showing
46 changed files
with
9,190 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ | |
.kompile* | ||
|
||
*.pyc | ||
venv | ||
.hypothesis |
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,11 @@ | ||
|
||
module BYTES-TYPE | ||
import BYTES | ||
|
||
syntax WrappedBytes | ||
syntax BYTES | ||
|
||
syntax WrappedBytes ::= wrap(Bytes) [symbol, klabel(wrapBytes)] | ||
syntax Bytes ::= unwrap(WrappedBytes) [function, total, injective, symbol, klabel(unwrapBytes)] | ||
rule unwrap(wrap(A:Bytes)) => A | ||
endmodule |
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.