about summary refs log tree commit diff stats
path: root/example/ida/menu.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-12-22 19:20:12 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2019-01-16 14:50:14 +0100
commit6531ba9630367b7bcdfd9b78d7a3584285a12de4 (patch)
treebbb4a88caa0334ed1c269dcbeb8c6b4f6186aff0 /example/ida/menu.py
parentf201c480a1e4e491569be6512e8f4eabe9bb3a41 (diff)
downloadmiasm-6531ba9630367b7bcdfd9b78d7a3584285a12de4.tar.gz
miasm-6531ba9630367b7bcdfd9b78d7a3584285a12de4.zip
Example/IDA: updt graph ir + menu
Diffstat (limited to 'example/ida/menu.py')
-rw-r--r--example/ida/menu.py19
1 files changed, 3 insertions, 16 deletions
diff --git a/example/ida/menu.py b/example/ida/menu.py
index a0eecf67..f98bd75e 100644
--- a/example/ida/menu.py
+++ b/example/ida/menu.py
@@ -3,13 +3,12 @@
 - Miasm > Symbolic execution (icon 81, F3)
 - Miasm > Dependency graph (icon 79, F4)
 - Miasm > Graph IR (icon 188, F7)
-- Miasm > Graph IR (simplified) (icon 191, F8)
 - Miasm > RPYC server (icon 182, F10)
 - Miasm > Type propagation (icon 38, F11)
 """
 
 from symbol_exec import symbolic_exec
-from graph_ir import build_graph
+from graph_ir import function_graph_ir
 try:
     from rpyc_ida import serve_threaded
 except ImportError:
@@ -59,22 +58,10 @@ handler_symb.attach_to_menu("Miasm/Symbolic exec")
 handler_depgraph = Handler(launch_depgraph)
 handler_depgraph.register("miasm:depgraph", "Dependency graph", shortcut="F4", icon=79)
 handler_depgraph.attach_to_menu("Miasm/Dependency graph")
-handler_graph = Handler(build_graph)
+
+handler_graph = Handler(function_graph_ir)
 handler_graph.register("miasm:graphir", "Graph IR", shortcut="F7", icon=188)
 handler_graph.attach_to_menu("Miasm/Graph IR")
-handler_graph_simp = Handler(lambda: build_graph(simplify=True))
-handler_graph_simp.register("miasm:graphirsimp",
-                            "Graph IR (simplified)", shortcut="F8", icon=191)
-handler_graph_simp.attach_to_menu("Miasm/Graph IR (simplified)")
-handler_graph_simp = Handler(lambda: build_graph(simplify=True, ssa=True))
-handler_graph_simp.register("miasm:graphirssa",
-                            "Graph IR (SSA)", shortcut="F8", icon=191)
-handler_graph_simp.attach_to_menu("Miasm/Graph IR (SSA)")
-
-handler_graph_simp = Handler(lambda: build_graph(simplify=True, ssa_simplify=True))
-handler_graph_simp.register("miasm:graphirssasimple",
-                            "Graph IR (SSA Simplified)", shortcut="F8", icon=191)
-handler_graph_simp.attach_to_menu("Miasm/Graph IR (SSA Simplified)")
 
 if serve_threaded is not None:
     handler_rpyc = Handler(serve_threaded)