From 4b257d2d82c6323c6bc521017d0649b8cc7b3747 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Fri, 9 Feb 2018 10:01:53 +0100 Subject: IRBlock: irblock iterates on its assignblks --- example/expression/get_read_write.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'example/expression/get_read_write.py') diff --git a/example/expression/get_read_write.py b/example/expression/get_read_write.py index a31105b2..b4a0773b 100644 --- a/example/expression/get_read_write.py +++ b/example/expression/get_read_write.py @@ -16,10 +16,10 @@ l.offset, l.l = 0, 15 ir_arch.add_instr(l) print '*' * 80 -for lbl, b in ir_arch.blocks.items(): - print b - for irs in b.assignblks: - o_r, o_w = get_rw(irs) +for lbl, irblock in ir_arch.blocks.items(): + print irblock + for assignblk in irblock: + o_r, o_w = get_rw(assignblk) print 'read: ', [str(x) for x in o_r] print 'written:', [str(x) for x in o_w] print -- cgit 1.4.1