Skip to content

Commit e236e67

Browse files
Leo AltjavierSande
authored andcommitted
update cli tests
1 parent e291db5 commit e236e67

File tree

6 files changed

+10
-10
lines changed
  • test/cmdlineTests
    • model_checker_invariants_all
    • model_checker_invariants_contract_reentrancy
    • model_checker_invariants_contract
    • model_checker_invariants_reentrancy
    • standard_model_checker_invariants_contract
    • standard_model_checker_invariants_reentrancy

6 files changed

+10
-10
lines changed

test/cmdlineTests/model_checker_invariants_all/err

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Warning: Return value of low-level calls not used.
55
| ^^^^^^^^^^^
66

77
Info: Contract invariant(s) for model_checker_invariants_all/input.sol:test:
8-
((x <= 0) || true)
8+
(!(x >= 1) || true)
99
Reentrancy property(ies) for model_checker_invariants_all/input.sol:test:
10-
(((!(x <= 0) || (x' <= 0)) && (!(x <= 0) || (<errorCode> <= 0))) || true)
10+
(((!(x <= 0) || !(x' >= 1)) && (!(x <= 0) || !(<errorCode> >= 1))) || true)
1111
<errorCode> = 0 -> no errors
1212
<errorCode> = 1 -> Assertion failed at assert(x == 0)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Info: Contract invariant(s) for model_checker_invariants_contract/input.sol:test:
2-
((x <= 0) || true)
2+
(!(x >= 1) || true)

test/cmdlineTests/model_checker_invariants_contract_reentrancy/err

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Warning: Return value of low-level calls not used.
55
| ^^^^^^^^^^^
66

77
Info: Contract invariant(s) for model_checker_invariants_contract_reentrancy/input.sol:test:
8-
((x <= 0) || true)
8+
(!(x >= 1) || true)
99
Reentrancy property(ies) for model_checker_invariants_contract_reentrancy/input.sol:test:
10-
(((!(x <= 0) || (x' <= 0)) && (!(x <= 0) || (<errorCode> <= 0))) || true)
10+
(((!(x <= 0) || !(x' >= 1)) && (!(x <= 0) || !(<errorCode> >= 1))) || true)
1111
<errorCode> = 0 -> no errors
1212
<errorCode> = 1 -> Assertion failed at assert(x == 0)

test/cmdlineTests/model_checker_invariants_reentrancy/err

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ Warning: Return value of low-level calls not used.
55
| ^^^^^^^^^^^
66

77
Info: Reentrancy property(ies) for model_checker_invariants_reentrancy/input.sol:test:
8-
(((!(x <= 0) || (x' <= 0)) && (!(x <= 0) || (<errorCode> <= 0))) || true)
8+
(((!(x <= 0) || !(x' >= 1)) && (!(x <= 0) || !(<errorCode> >= 1))) || true)
99
<errorCode> = 0 -> no errors
1010
<errorCode> = 1 -> Assertion failed at assert(x < 10)

test/cmdlineTests/standard_model_checker_invariants_contract/output.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"component": "general",
66
"errorCode": "1180",
77
"formattedMessage": "Info: Contract invariant(s) for A:test:
8-
((x <= 0) || true)
8+
(!(x >= 1) || true)
99

1010

1111
",
1212
"message": "Contract invariant(s) for A:test:
13-
((x <= 0) || true)
13+
(!(x >= 1) || true)
1414
",
1515
"severity": "info",
1616
"type": "Info"

test/cmdlineTests/standard_model_checker_invariants_reentrancy/output.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
"component": "general",
2626
"errorCode": "1180",
2727
"formattedMessage": "Info: Reentrancy property(ies) for A:test:
28-
(((!(x <= 0) || (x' <= 0)) && (!(x <= 0) || (<errorCode> <= 0))) || true)
28+
(((!(x <= 0) || !(x' >= 1)) && (!(x <= 0) || !(<errorCode> >= 1))) || true)
2929
<errorCode> = 0 -> no errors
3030
<errorCode> = 1 -> Assertion failed at assert(x < 10)
3131

3232

3333
",
3434
"message": "Reentrancy property(ies) for A:test:
35-
(((!(x <= 0) || (x' <= 0)) && (!(x <= 0) || (<errorCode> <= 0))) || true)
35+
(((!(x <= 0) || !(x' >= 1)) && (!(x <= 0) || !(<errorCode> >= 1))) || true)
3636
<errorCode> = 0 -> no errors
3737
<errorCode> = 1 -> Assertion failed at assert(x < 10)
3838
",

0 commit comments

Comments
 (0)