about summary refs log tree commit diff stats
path: root/example/symbol_exec/depgraph.py
diff options
context:
space:
mode:
authorIvan “CLOVIS” Canet <ivan.canet@gmail.com>2022-03-15 14:35:13 +0100
committerIvan “CLOVIS” Canet <ivan.canet@gmail.com>2022-03-15 14:35:13 +0100
commite71c3152d1e57a95b5243e7d4c814eed4bad870a (patch)
tree03580c2c18f002146bde0013e4d84ff4910d416d /example/symbol_exec/depgraph.py
parentb9ecc43cf5ae1583cb9a1e053bac5be2e6c68aa0 (diff)
downloadmiasm-e71c3152d1e57a95b5243e7d4c814eed4bad870a.tar.gz
miasm-e71c3152d1e57a95b5243e7d4c814eed4bad870a.zip
Fixed no-op in example/expression/simplification_add
Previously, the test would not do anything, as the simplification added in the test is already a part of the default enabled simplifications:

```
Without adding the simplification:
	a + a + a = a * 0x3
After adding the simplification:
	a + a + a = a * 0x3
```

This also meant that editing the added simplification would have no effect (since the expression was already modified by the default simplifier, it would never match the custom one).

This commit replaces `expr_simp` by a newly-created `simp` that doesn't have any simplifications enabled, so the one added by the test has an impact.
Diffstat (limited to 'example/symbol_exec/depgraph.py')
0 files changed, 0 insertions, 0 deletions