diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-10-12 17:05:21 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-10-12 17:05:21 +0200 |
| commit | 7a2d73b85a246614f633d49e25211351d4a985f2 (patch) | |
| tree | ff11015766d5019e9e95b0d91c91b9f5a3678fd4 | |
| parent | 3cd3675165cd96c030401fbb1e6392898507a71b (diff) | |
| download | miasm-7a2d73b85a246614f633d49e25211351d4a985f2.tar.gz miasm-7a2d73b85a246614f633d49e25211351d4a985f2.zip | |
Simplifier: clear cache on pass enabling
| -rw-r--r-- | miasm2/expression/simplifications.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/miasm2/expression/simplifications.py b/miasm2/expression/simplifications.py index e090d806..9114cbbe 100644 --- a/miasm2/expression/simplifications.py +++ b/miasm2/expression/simplifications.py @@ -99,6 +99,9 @@ class ExpressionSimplifier(object): Callback signature: Expr callback(ExpressionSimplifier, Expr) """ + # Clear cache of simplifiied expressions when adding a new pass + self.simplified_exprs.clear() + for k, v in passes.items(): self.expr_simp_cb[k] = fast_unify(self.expr_simp_cb.get(k, []) + v) |