aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SMTChecker.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-06-19 01:25:22 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-06-25 22:17:50 +0800
commitc7f842d4cc860a8201a584cfbd43401b7ad271b4 (patch)
tree2e16b148a837091822a1cba360f6aaa14edaef5a /test/libsolidity/SMTChecker.cpp
parentd44743c87f09ff176cd82cd3840671ee753406ca (diff)
downloaddexon-solidity-c7f842d4cc860a8201a584cfbd43401b7ad271b4.tar.gz
dexon-solidity-c7f842d4cc860a8201a584cfbd43401b7ad271b4.tar.zst
dexon-solidity-c7f842d4cc860a8201a584cfbd43401b7ad271b4.zip
Do not change SMT tests
Diffstat (limited to 'test/libsolidity/SMTChecker.cpp')
-rw-r--r--test/libsolidity/SMTChecker.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/libsolidity/SMTChecker.cpp b/test/libsolidity/SMTChecker.cpp
index 11cfc26e..57f414db 100644
--- a/test/libsolidity/SMTChecker.cpp
+++ b/test/libsolidity/SMTChecker.cpp
@@ -427,21 +427,21 @@ BOOST_AUTO_TEST_CASE(storage_value_vars)
string text = R"(
contract C
{
- uint a;
+ address a;
bool b;
uint c;
function f(uint x) public {
if (x == 0)
{
- a = 100;
+ a = 0x0000000000000000000000000000000000000100;
b = true;
}
else
{
- a = 200;
+ a = 0x0000000000000000000000000000000000000200;
b = false;
}
- assert(a > 0 && b);
+ assert(a > 0x0000000000000000000000000000000000000000 && b);
}
}
)";
@@ -449,7 +449,7 @@ BOOST_AUTO_TEST_CASE(storage_value_vars)
text = R"(
contract C
{
- uint a;
+ address a;
bool b;
uint c;
function f() public view {
@@ -464,22 +464,22 @@ BOOST_AUTO_TEST_CASE(storage_value_vars)
function f(uint x) public {
if (x == 0)
{
- a = 100;
+ a = 0x0000000000000000000000000000000000000100;
b = true;
}
else
{
- a = 200;
+ a = 0x0000000000000000000000000000000000000200;
b = false;
}
- assert(b == (a < 200));
+ assert(b == (a < 0x0000000000000000000000000000000000000200));
}
function g() public view {
- require(a < 100);
+ require(a < 0x0000000000000000000000000000000000000100);
assert(c >= 0);
}
- uint a;
+ address a;
bool b;
uint c;
}