aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal/SolverInterface.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-11-22 11:20:09 +0800
committerGitHub <noreply@github.com>2017-11-22 11:20:09 +0800
commitf47604c14ba5f2b6c27b35e84d3cf57710040b7e (patch)
treee4a05c73c3dc1b4487b60a2db4bb070186ab0b09 /libsolidity/formal/SolverInterface.h
parent4e0723ce27b343b9dd7c423542b9261d7c48927b (diff)
parent8538a25f8d97f8416d20ace7dcd1bd760a425db9 (diff)
downloaddexon-solidity-f47604c14ba5f2b6c27b35e84d3cf57710040b7e.tar
dexon-solidity-f47604c14ba5f2b6c27b35e84d3cf57710040b7e.tar.gz
dexon-solidity-f47604c14ba5f2b6c27b35e84d3cf57710040b7e.tar.bz2
dexon-solidity-f47604c14ba5f2b6c27b35e84d3cf57710040b7e.tar.lz
dexon-solidity-f47604c14ba5f2b6c27b35e84d3cf57710040b7e.tar.xz
dexon-solidity-f47604c14ba5f2b6c27b35e84d3cf57710040b7e.tar.zst
dexon-solidity-f47604c14ba5f2b6c27b35e84d3cf57710040b7e.zip
Merge pull request #2993 from ethereum/trackVariables
SMT checker for various things
Diffstat (limited to 'libsolidity/formal/SolverInterface.h')
-rw-r--r--libsolidity/formal/SolverInterface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/formal/SolverInterface.h b/libsolidity/formal/SolverInterface.h
index 70dc1585..a69d19d5 100644
--- a/libsolidity/formal/SolverInterface.h
+++ b/libsolidity/formal/SolverInterface.h
@@ -52,6 +52,7 @@ class Expression
{
friend class SolverInterface;
public:
+ explicit Expression(bool _v): name(_v ? "true" : "false") {}
Expression(size_t _number): name(std::to_string(_number)) {}
Expression(u256 const& _number): name(_number.str()) {}
Expression(bigint const& _number): name(_number.str()) {}