aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal/SymbolicIntVariable.h
diff options
context:
space:
mode:
authorLeonardo Alt <leonardoaltt@gmail.com>2018-02-17 16:34:38 +0800
committerLeonardo Alt <leonardoaltt@gmail.com>2018-03-01 01:05:20 +0800
commit3b2851ee4163bcfbca9e4e23650dfeee1a06653a (patch)
treeb63e69be2bd74b2809d8933aa01c15d7f4a321c8 /libsolidity/formal/SymbolicIntVariable.h
parentf41591b3ddfd3e5c065271058dadb3c6b7f31bbb (diff)
downloaddexon-solidity-3b2851ee4163bcfbca9e4e23650dfeee1a06653a.tar.gz
dexon-solidity-3b2851ee4163bcfbca9e4e23650dfeee1a06653a.tar.zst
dexon-solidity-3b2851ee4163bcfbca9e4e23650dfeee1a06653a.zip
Integer min and max values placed under SymbolicIntVar instead of SMTChecker
Diffstat (limited to 'libsolidity/formal/SymbolicIntVariable.h')
-rw-r--r--libsolidity/formal/SymbolicIntVariable.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libsolidity/formal/SymbolicIntVariable.h b/libsolidity/formal/SymbolicIntVariable.h
index efe05af8..0066bb75 100644
--- a/libsolidity/formal/SymbolicIntVariable.h
+++ b/libsolidity/formal/SymbolicIntVariable.h
@@ -39,12 +39,13 @@ public:
SymbolicIntVariable& operator=(SymbolicIntVariable const&) = default;
SymbolicIntVariable& operator=(SymbolicIntVariable&&) = default;
+ /// Sets the var to 0.
void setZeroValue(int _seq);
+ /// Sets the valid interval for the var.
void setUnknownValue(int _seq);
-private:
- smt::Expression minValue(IntegerType const& _t) const;
- smt::Expression maxValue(IntegerType const& _t) const;
+ static smt::Expression minValue(IntegerType const& _t);
+ static smt::Expression maxValue(IntegerType const& _t);
};
}