diff options
| author | JJTech0130 <jjtech@jjtech.dev> | 2023-06-01 17:46:02 -0400 |
|---|---|---|
| committer | Kyle Martin <krm504@nyu.edu> | 2023-06-02 11:50:05 -0400 |
| commit | e6b1356e5e88fe30dd89914cdd91a2ebac7b6614 (patch) | |
| tree | 832151238e3a7941094f6534dc0014f128f4ac9f /python/workflow.py | |
| parent | 93db2c5ce0419b7bc62e12093907190baca8f30b (diff) | |
add AnalysisContext around ac
Diffstat (limited to 'python/workflow.py')
| -rw-r--r-- | python/workflow.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/workflow.py b/python/workflow.py index 01da17a9..702a1b87 100644 --- a/python/workflow.py +++ b/python/workflow.py @@ -40,7 +40,7 @@ class AnalysisContext: The ``AnalysisContext`` object is used to represent the current state of analysis for a given function. It allows direct modification of IL and other analysis information. """ - + def __init__(self, handle: core.BNAnalysisContextHandle): assert handle is not None self.handle = handle @@ -145,7 +145,7 @@ class Activity(object): def _action(self, ac: Any): try: if self.action is not None: - self.action(ac) + self.action(AnalysisContext(ac)) except: log_error(traceback.format_exc()) |
