mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
SMTChecker tests
This commit is contained in:
+1
@@ -35,3 +35,4 @@ contract C {
|
||||
// SMTEngine: all
|
||||
// ----
|
||||
// Warning 6328: (540-554): CHC: Assertion violation happens here.\nCounterexample:\nx = 1, owner = 0x0\ny = 1\n\nTransaction trace:\nC.constructor()\nState: x = 0, owner = 0x0\nC.g(1){ msg.sender: 0x0 }
|
||||
// Info 1180: Contract invariant(s) for :C:\n(owner <= 0)\n
|
||||
|
||||
@@ -15,3 +15,4 @@ contract C
|
||||
// ====
|
||||
// SMTEngine: all
|
||||
// ----
|
||||
// Info 1180: Contract invariant(s) for :C:\n(x <= 0)\n
|
||||
|
||||
@@ -39,3 +39,4 @@ contract D is B,C {
|
||||
// Warning 6328: (160-174): CHC: Assertion violation happens here.\nCounterexample:\nx = 1\n\nTransaction trace:\nB.constructor()\nState: x = 0\nA.f()
|
||||
// Warning 6328: (193-207): CHC: Assertion violation happens here.\nCounterexample:\nx = 2\n\nTransaction trace:\nC.constructor()\nState: x = 0\nA.f()
|
||||
// Warning 6328: (226-240): CHC: Assertion violation happens here.\nCounterexample:\nx = 3\n\nTransaction trace:\nD.constructor()\nState: x = 0\nA.f()
|
||||
// Info 1180: Contract invariant(s) for :C:\n((x = 0) || (x = 2))\nContract invariant(s) for :D:\n((x = 0) || (x = 3))\nContract invariant(s) for :B:\n((x = 0) || (x = 1))\n
|
||||
|
||||
@@ -17,3 +17,4 @@ contract C
|
||||
// SMTEngine: all
|
||||
// ----
|
||||
// Warning 6328: (76-90): CHC: Assertion violation happens here.\nCounterexample:\nx = 3\n\nTransaction trace:\nC.constructor()\nState: x = 0\nC.f()
|
||||
// Info 1180: Contract invariant(s) for :C:\n(x = 3)\n
|
||||
|
||||
@@ -21,3 +21,4 @@ contract C is A {
|
||||
// SMTEngine: all
|
||||
// ----
|
||||
// Warning 6328: (83-98): CHC: Assertion violation happens here.\nCounterexample:\nx = 0\n = 0\n\nTransaction trace:\nC.constructor()\nState: x = 0\nC.f()
|
||||
// Info 1180: Contract invariant(s) for :C:\n((x >= 0) && (x <= 0))\n
|
||||
|
||||
Reference in New Issue
Block a user