Skip to content

Commit a0c8df3

Browse files
author
Leo Alt
committed
update tests round1
1 parent d59533e commit a0c8df3

File tree

65 files changed

+71
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+71
-0
lines changed

test/libsolidity/smtCheckerTests/array_members/length_same_after_assignment_2.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ contract C {
2323
// ====
2424
// SMTEngine: all
2525
// ----
26+
// Warning 0: (0-380): Contract invariants for :C:\n!(arr.length <= 2)\n!(arr.length <= 3)\n!(arr[2].length <= 3)\n

test/libsolidity/smtCheckerTests/array_members/length_same_after_assignment_2_fail.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ contract C {
2727
// Warning 6328: (291-317): CHC: Assertion violation happens here.
2828
// Warning 6328: (321-347): CHC: Assertion violation happens here.
2929
// Warning 6328: (351-374): CHC: Assertion violation happens here.
30+
// Warning 0: (0-380): Contract invariants for :C:\n!(arr.length <= 2)\n!(arr.length <= 3)\n!(arr[2].length <= 3)\n

test/libsolidity/smtCheckerTests/array_members/length_same_after_assignment_3.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ contract C {
2828
// ====
2929
// SMTEngine: all
3030
// ----
31+
// Warning 0: (0-440): Contract invariants for :C:\n!(arr.length <= 7)\n!(arr.length <= 8)\n((arr[5].length <= 0) && (arr[8].length <= 0))\n

test/libsolidity/smtCheckerTests/array_members/length_same_after_assignment_3_fail.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ contract C {
3030
// Warning 6328: (349-375): CHC: Assertion violation happens here.\nCounterexample:\narr = [[], [], [], [], [], [], [], [], []]\nx = 0\ny = 0\nz = 9\nt = 0\n\nTransaction trace:\nC.constructor()\nState: arr = [[], [], [], [], [], [], [], [], []]\nC.f()
3131
// Warning 6328: (379-402): CHC: Assertion violation happens here.\nCounterexample:\narr = [[], [], [], [], [], [], [], [], []]\nx = 0\ny = 0\nz = 9\nt = 0\n\nTransaction trace:\nC.constructor()\nState: arr = [[], [], [], [], [], [], [], [], []]\nC.f()
3232
// Warning 6328: (406-432): CHC: Assertion violation happens here.\nCounterexample:\narr = [[], [], [], [], [], [], [], [], []]\nx = 0\ny = 0\nz = 9\nt = 0\n\nTransaction trace:\nC.constructor()\nState: arr = [[], [], [], [], [], [], [], [], []]\nC.f()
33+
// Warning 0: (0-438): Contract invariants for :C:\n!(arr.length <= 7)\n!(arr.length <= 8)\n

test/libsolidity/smtCheckerTests/array_members/push_overflow_1_safe.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ contract C {
99
// ====
1010
// SMTEngine: all
1111
// ----
12+
// Warning 0: (0-135): Contract invariants for :C:\n(!((x[x.length] := 23)[0] <= 41) && !((x[x.length] := 23)[0] >= 43))\n

test/libsolidity/smtCheckerTests/array_members/push_overflow_1_safe_no_overflow_assumption.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ contract C {
99
// ====
1010
// SMTEngine: all
1111
// ----
12+
// Warning 0: (0-121): Contract invariants for :C:\n(!((x[x.length] := 23)[0] >= 43) && !((x[x.length] := 23)[0] <= 41))\n

test/libsolidity/smtCheckerTests/blockchain_state/this_does_not_change_external_call.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ contract C {
1717
// ====
1818
// SMTEngine: all
1919
// ----
20+
// Warning 0: (57-239): Contract invariants for :C:\n((!((address(this) + ((- 1) * t)) = 0) || (<errorCode> <= 0)) && (!((address(this) + ((- 1) * t)) >= 0) || ((t' + ((- 1) * address(this))) <= 0)) && (!((address(this) + ((- 1) * t)) <= 0) || ((address(this) + ((- 1) * t')) <= 0)))\n((!(<errorCode> >= 2) || !((address(this) + ((- 1) * t)) = 0)) && (!((address(this) + ((- 1) * t)) >= 0) || ((t' + ((- 1) * address(this))) <= 0)) && (((address(this) + ((- 1) * t')) <= 0) || !((address(this) + ((- 1) * t)) <= 0)))\n(((t + ((- 1) * address(this))) >= 0) && ((t + ((- 1) * address(this))) <= 0))\n

test/libsolidity/smtCheckerTests/control_flow/branches_inside_modifiers_1.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ contract C {
2323
// SMTEngine: all
2424
// ----
2525
// Warning 6328: (327-341): CHC: Assertion violation happens here.\nCounterexample:\nx = 7\n\nTransaction trace:\nC.constructor()\nState: x = 0\nC.g()\n C.f() -- internal call
26+
// Warning 0: (0-350): Contract invariants for :C:\n((x = 0) || (x = 7))\n

test/libsolidity/smtCheckerTests/control_flow/branches_inside_modifiers_2.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ contract C {
2323
// SMTEngine: all
2424
// ----
2525
// Warning 6328: (333-347): CHC: Assertion violation happens here.\nCounterexample:\nx = 3\n\nTransaction trace:\nC.constructor()\nState: x = 0\nC.g()\n C.f() -- internal call
26+
// Warning 0: (0-356): Contract invariants for :C:\n((x = 0) || (x = 3))\n

test/libsolidity/smtCheckerTests/control_flow/branches_inside_modifiers_3.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ contract C {
2323
// SMTEngine: all
2424
// ----
2525
// Warning 6328: (326-340): CHC: Assertion violation happens here.\nCounterexample:\nx = 3\n\nTransaction trace:\nC.constructor()\nState: x = 0\nC.g()\n C.f() -- internal call
26+
// Warning 0: (0-349): Contract invariants for :C:\n((x = 0) || (x = 3))\n

0 commit comments

Comments
 (0)