aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/ExpressionClasses.cpp
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-09-14 21:49:55 +0800
committerchriseth <chris@ethereum.org>2018-09-18 20:28:21 +0800
commita1d73a7befd2f3d72c18d4cb539edab5111c681f (patch)
treebd440467d4d2f4d2c275b47f51057933cac2aaef /libevmasm/ExpressionClasses.cpp
parent06ffcd0502c1c06788bec9b1e1e4db3f7c42ed4d (diff)
downloaddexon-solidity-a1d73a7befd2f3d72c18d4cb539edab5111c681f.tar.gz
dexon-solidity-a1d73a7befd2f3d72c18d4cb539edab5111c681f.tar.zst
dexon-solidity-a1d73a7befd2f3d72c18d4cb539edab5111c681f.zip
Split simplification rules into two functions.
Diffstat (limited to 'libevmasm/ExpressionClasses.cpp')
-rw-r--r--libevmasm/ExpressionClasses.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libevmasm/ExpressionClasses.cpp b/libevmasm/ExpressionClasses.cpp
index 69b33ec5..42a1819a 100644
--- a/libevmasm/ExpressionClasses.cpp
+++ b/libevmasm/ExpressionClasses.cpp
@@ -184,6 +184,7 @@ string ExpressionClasses::fullDAGToString(ExpressionClasses::Id _id) const
ExpressionClasses::Id ExpressionClasses::tryToSimplify(Expression const& _expr)
{
static Rules rules;
+ assertThrow(rules.isInitialized(), OptimizerException, "Rule list not properly initialized.");
if (
!_expr.item ||