From 5dec442348a47a8b68fa13e53805f31786ce6127 Mon Sep 17 00:00:00 2001 From: serpilliere Date: Tue, 8 May 2012 18:33:55 +0200 Subject: remove useless ExprSliceTo exprsliceto is only used in exprcompose, so it can be removed from IL representation, and exprcompose will deal start/stop fields WARNING: as IL is modified, it may break a lot of scripts --- example/expression/manip_expression5.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'example/expression/manip_expression5.py') diff --git a/example/expression/manip_expression5.py b/example/expression/manip_expression5.py index cc54515d..165d9eef 100644 --- a/example/expression/manip_expression5.py +++ b/example/expression/manip_expression5.py @@ -61,15 +61,15 @@ print (i2+s).canonize() cc = ExprCond(a, b, c) -o = ExprCompose([ExprSliceTo(a[:8], 8, 16), - ExprSliceTo(a[8:16], 0, 8)]) +o = ExprCompose([(a[:8], 8, 16), + (a[8:16], 0, 8)]) print o print o.canonize() -o = ExprCompose([ExprSliceTo(a[8:16], 0, 8), - ExprSliceTo(a[:8], 8, 16)]) -print o -print o.canonize() +o2 = ExprCompose([(a[8:16], 0, 8), + (a[:8], 8, 16)]) +print o2 +print o2.canonize() print ExprMem(o).canonize() -- cgit 1.4.1