From 3771288cffdd53c1ff87857374bd13c550b355dc Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Fri, 21 Oct 2016 16:19:09 +0200 Subject: ExprCompose: add new api The ExprComposes uses directly its arguments sizes to guess the slices locations. Old api: ExprCompose([(a, 0, 32), (b, 32, 64)]) becomes: ExprCompose(a, b) --- example/expression/expr_grapher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/expression/expr_grapher.py') diff --git a/example/expression/expr_grapher.py b/example/expression/expr_grapher.py index 22dff7cf..3137e6d2 100644 --- a/example/expression/expr_grapher.py +++ b/example/expression/expr_grapher.py @@ -8,7 +8,7 @@ c = ExprId("C") d = ExprId("D") m = ExprMem(a + b + c + a) -e1 = ExprCompose([(a + b - (c * a) / m | b, 0, 32), (a + m, 32, 64)]) +e1 = ExprCompose(a + b - (c * a) / m | b, a + m) e2 = ExprInt64(15) e = ExprCond(d, e1, e2)[0:32] -- cgit 1.4.1