diff options
author | Leonardo Alt <leonardoaltt@gmail.com> | 2017-12-12 03:09:17 +0800 |
---|---|---|
committer | Leonardo Alt <leonardoaltt@gmail.com> | 2017-12-14 00:39:10 +0800 |
commit | 2af4d7c7dd3379d8956907413258cea884c80794 (patch) | |
tree | 3a71dc6e65b555f11d6cc3667c12564f1c647808 /libsolidity/formal/SolverInterface.h | |
parent | bfc54463181a617c1a523826b34c210222c98740 (diff) | |
download | dexon-solidity-2af4d7c7dd3379d8956907413258cea884c80794.tar.gz dexon-solidity-2af4d7c7dd3379d8956907413258cea884c80794.tar.zst dexon-solidity-2af4d7c7dd3379d8956907413258cea884c80794.zip |
[SMTChecker] Keep track of current path conditions
Diffstat (limited to 'libsolidity/formal/SolverInterface.h')
-rw-r--r-- | libsolidity/formal/SolverInterface.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libsolidity/formal/SolverInterface.h b/libsolidity/formal/SolverInterface.h index 74c993e8..88487310 100644 --- a/libsolidity/formal/SolverInterface.h +++ b/libsolidity/formal/SolverInterface.h @@ -72,6 +72,11 @@ public: }, _trueValue.sort); } + static Expression implies(Expression _a, Expression _b) + { + return !std::move(_a) || std::move(_b); + } + friend Expression operator!(Expression _a) { return Expression("not", std::move(_a), Sort::Bool); |