aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal/SMTChecker.h
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-04-30 22:30:41 +0800
committerchriseth <chris@ethereum.org>2018-05-15 20:28:08 +0800
commit4117e859eb5780873177cf1c93eb8379e17ed247 (patch)
tree037215fc1ac785a087ac3d9935b1c1aa37a187e1 /libsolidity/formal/SMTChecker.h
parent2dbb35d4a8fc4321d59a670343b439232c92eaa9 (diff)
downloaddexon-solidity-4117e859eb5780873177cf1c93eb8379e17ed247.tar.gz
dexon-solidity-4117e859eb5780873177cf1c93eb8379e17ed247.tar.zst
dexon-solidity-4117e859eb5780873177cf1c93eb8379e17ed247.zip
[SMTChecker] Declaring all state vars before any function is visited
Diffstat (limited to 'libsolidity/formal/SMTChecker.h')
-rw-r--r--libsolidity/formal/SMTChecker.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/formal/SMTChecker.h b/libsolidity/formal/SMTChecker.h
index 6e64235e..50d40ab9 100644
--- a/libsolidity/formal/SMTChecker.h
+++ b/libsolidity/formal/SMTChecker.h
@@ -50,6 +50,8 @@ private:
// because the order of expression evaluation is undefined
// TODO: or just force a certain order, but people might have a different idea about that.
+ virtual bool visit(ContractDefinition const& _node) override;
+ virtual void endVisit(ContractDefinition const& _node) override;
virtual void endVisit(VariableDeclaration const& _node) override;
virtual bool visit(FunctionDefinition const& _node) override;
virtual void endVisit(FunctionDefinition const& _node) override;