mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #6647 from ethereum/smt_tuple_decl
[SMTChecker] Support tuple type declaration
This commit is contained in:
@@ -12,4 +12,3 @@ contract C
|
||||
}
|
||||
|
||||
// ----
|
||||
// Warning: (153-156): Assertion checker does not yet implement tuples and inline arrays.
|
||||
|
||||
@@ -12,5 +12,4 @@ contract C
|
||||
}
|
||||
|
||||
// ----
|
||||
// Warning: (153-156): Assertion checker does not yet implement tuples and inline arrays.
|
||||
// Warning: (163-176): Assertion violation happens here
|
||||
|
||||
@@ -12,5 +12,4 @@ contract C
|
||||
}
|
||||
// ----
|
||||
// Warning: (131-146): Insufficient funds happens here
|
||||
// Warning: (131-146): Assertion checker does not yet implement this type.
|
||||
// Warning: (195-219): Assertion violation happens here
|
||||
|
||||
@@ -15,7 +15,5 @@ contract C
|
||||
}
|
||||
// ----
|
||||
// Warning: (217-232): Insufficient funds happens here
|
||||
// Warning: (217-232): Assertion checker does not yet implement this type.
|
||||
// Warning: (236-251): Insufficient funds happens here
|
||||
// Warning: (236-251): Assertion checker does not yet implement this type.
|
||||
// Warning: (295-324): Assertion violation happens here
|
||||
|
||||
@@ -12,7 +12,5 @@ contract C
|
||||
}
|
||||
// ----
|
||||
// Warning: (134-149): Insufficient funds happens here
|
||||
// Warning: (134-149): Assertion checker does not yet implement this type.
|
||||
// Warning: (153-169): Insufficient funds happens here
|
||||
// Warning: (153-169): Assertion checker does not yet implement this type.
|
||||
// Warning: (213-237): Assertion violation happens here
|
||||
|
||||
@@ -8,5 +8,5 @@ contract C
|
||||
}
|
||||
// ----
|
||||
// Warning: (76-96): Unused local variable.
|
||||
// Warning: (99-114): Assertion checker does not yet implement tuples and inline arrays.
|
||||
// Warning: (99-114): Assertion checker does not yet implement inline arrays.
|
||||
// Warning: (99-114): Internal error: Expression undefined for SMT solver.
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract C
|
||||
{
|
||||
function f() public pure {
|
||||
uint a = 1;
|
||||
uint b = 3;
|
||||
a += ((((b))));
|
||||
assert(a == 3);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (122-136): Assertion violation happens here
|
||||
Reference in New Issue
Block a user