Skip to content

Commit f98c63b

Browse files
committed
Add state option to control AUTO_REFS and stuff; disable by default
1 parent f5f6408 commit f98c63b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

angr/engines/procedure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def process_procedure(self, state, successors, procedure, ret_to=None, arguments
2828
if procedure.is_syscall:
2929
state._inspect('syscall', BP_BEFORE, syscall_name=procedure.display_name)
3030

31-
cleanup_options = o.AUTO_REFS not in state.options
31+
cleanup_options = o.AUTO_REFS not in state.options and o.ADD_AUTO_REFS in state.options
3232
if cleanup_options:
3333
state.options.add(o.AST_DEPS)
3434
state.options.add(o.AUTO_REFS)

angr/sim_options.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112

113113
# this is an internal option to automatically track dependencies in SimProcedures
114114
AUTO_REFS = "AUTO_REFS"
115+
ADD_AUTO_REFS = "ADD_AUTO_REFS"
115116

116117
# Whether we should track dependencies in SimActions
117118
# If none of the ref options above exist, this option does nothing

0 commit comments

Comments
 (0)