diff options
| author | Tim Blazytko <tim.blazytko@rub.de> | 2016-01-07 09:59:35 +0100 |
|---|---|---|
| committer | Tim Blazytko <tim.blazytko@rub.de> | 2016-01-07 09:59:35 +0100 |
| commit | 9c449fc9d7333ee1ca005241fdc48d811d1f9132 (patch) | |
| tree | a9641fcfa862266749f6ab49b39146b798ed4f71 /miasm2/expression/smt2_helper.py | |
| parent | d5b122237af4d552e710b4816bc1b7d6e0b52b03 (diff) | |
| download | miasm-9c449fc9d7333ee1ca005241fdc48d811d1f9132.tar.gz miasm-9c449fc9d7333ee1ca005241fdc48d811d1f9132.zip | |
smt2_translator: fixed comments
Diffstat (limited to 'miasm2/expression/smt2_helper.py')
| -rw-r--r-- | miasm2/expression/smt2_helper.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm2/expression/smt2_helper.py b/miasm2/expression/smt2_helper.py index 355a3ba1..f7737116 100644 --- a/miasm2/expression/smt2_helper.py +++ b/miasm2/expression/smt2_helper.py @@ -32,7 +32,7 @@ def smt2_and(a, b): def smt2_ite(cond, a, b): """ - If-then-else: a ? b : c + If-then-else: cond ? a : b """ return "(ite {} {} {})".format(cond, a, b) @@ -188,7 +188,7 @@ def bv_rotate_left(a, b, size): symbolic values for b, the implementation is based on a C implementation. - Therefore, the rotation will be computes as + Therefore, the rotation will be computed as a << (b & (size - 1))) | (a >> (size - (b & (size - 1)))) :param a: bit vector @@ -217,7 +217,7 @@ def bv_rotate_right(a, b, size): symbolic values for b, the implementation is based on a C implementation. - Therefore, the rotation will be computes as + Therefore, the rotation will be computed as a >> (b & (size - 1))) | (a << (size - (b & (size - 1)))) :param a: bit vector |