We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a764bb commit d67cfb7Copy full SHA for d67cfb7
program-analysis/echidna/example/multiabi.sol
@@ -0,0 +1,32 @@
1
+pragma solidity ^0.8.0;
2
+
3
+contract Flag {
4
5
+ bool flag = false;
6
7
+ function flip() public {
8
+ flag = !flag;
9
+ }
10
11
+ function get() public returns (bool) {
12
+ return flag;
13
14
15
+ function test_fail() public {
16
+ assert(false);
17
18
+}
19
20
21
+contract EchidnaTest {
22
+ Flag f;
23
24
+ constructor() {
25
+ f = new Flag();
26
27
28
+ function test_flag_is_false() public {
29
+ assert(f.get() == false);
30
31
32
program-analysis/echidna/example/multiabi.yaml
@@ -0,0 +1,3 @@
+testMode: assertion
+testLimit: 50000
+multi-abi: true
0 commit comments