about summary refs log tree commit diff stats
path: root/example
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2022-02-22 15:01:41 +0100
committerGitHub <noreply@github.com>2022-02-22 15:01:41 +0100
commitfb02fe52a4ee8473d40b460022c9c39c93027e57 (patch)
tree248178762a148eb93591e9dd1eed8f78bb724de9 /example
parent53f1cbece50351d59ad22b09b4606138f980f0ba (diff)
parent7a169b17d57f630b2bbf034720b8cdb3fce2d0bc (diff)
downloadmiasm-fb02fe52a4ee8473d40b460022c9c39c93027e57.tar.gz
miasm-fb02fe52a4ee8473d40b460022c9c39c93027e57.zip
Merge pull request #1415 from WilliamBruneau/fix_ctype_prop
Fix ctype_propagation.py example
Diffstat (limited to 'example')
-rw-r--r--example/ida/ctype_propagation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/ida/ctype_propagation.py b/example/ida/ctype_propagation.py
index 3dcd8b98..4cc8907a 100644
--- a/example/ida/ctype_propagation.py
+++ b/example/ida/ctype_propagation.py
@@ -314,7 +314,7 @@ def analyse_function():
     lbl_real_start = loc_db.get_offset_location(addr)
     lbl_head = loc_db.get_or_create_name_location("start")
 
-    first_block = asmcfg.label2block(lbl_real_start)
+    first_block = asmcfg.loc_key_to_block(lbl_real_start)
 
     assignblk_head = AssignBlock(
         [
@@ -323,7 +323,7 @@ def analyse_function():
         ],
         first_block.lines[0]
     )
-    irb_head = IRBlock(lbl_head, [assignblk_head])
+    irb_head = IRBlock(loc_db, lbl_head, [assignblk_head])
     ircfg.blocks[lbl_head] = irb_head
     ircfg.add_uniq_edge(lbl_head, lbl_real_start)