[SMTChecker] Apply const eval to arithmetic binary expressions

This commit is contained in:
Leonardo Alt
2020-12-16 14:58:00 +01:00
parent e347545597
commit 80e85b772b
6 changed files with 67 additions and 13 deletions
@@ -50,7 +50,9 @@ contract MyConc{
}
}
// ====
// SMTIgnoreCex: yes
// ----
// Warning 2519: (773-792): This declaration shadows an existing declaration.
// Warning 2018: (1009-1086): Function state mutability can be restricted to view
// Warning 4984: (985-1002): CHC: Overflow (resulting value larger than 2**256 - 1) happens here.\nCounterexample:\nA = 1, should_be_constant = 0, should_be_constant_2 = 2, not_constant = 0, not_constant_2 = 115792089237316195423570985008687907853269984665640564039457584007913129639926, not_constant_3 = 0\n\nTransaction trace:\nconstructor()
// Warning 4984: (985-1002): CHC: Overflow (resulting value larger than 2**256 - 1) happens here.