Commit 2e0d566
Port Assignment-3/Python helper to AbstractInterpretation as well
Mirror the C++ port: AbstractStateManager was folded into
AbstractInterpretation upstream and removed; the Python helper
similarly switches from 'pysvf.AbstractStateManager(svfir, ander)' to
'pysvf.AbstractInterpretation.getAEInstance()'.
That requires the matching SVF-Python change (PR on bjjwwang/SVF-Python2:
fix/port-AE-bindings-to-AbstractInterpretation) to land first so a
fresh pysvf wheel actually exposes 'AbstractInterpretation.getAEInstance()'.
The Andersen instance is no longer needed: the AI singleton pulls
SVFIR from PAG::getPAG() and runs its own pointer analysis when
needed. Drop the explicit 'self.ander = pysvf.AndersenWaveDiff(...)'
line.
Verified end-to-end:
- 'python3 -c "import ast; ast.parse(open(...))"' on the patched
helper -> syntax OK.
- Built the matching SVF-Python wheel in 'docker run --rm
ubuntu:24.04', installed it, and 'import Assignment_3_Helper'
succeeds — both AbstractExecutionHelper and AbstractExecution
classes resolve.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 862e370 commit 2e0d566
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
| 226 | + | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
| |||
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
449 | | - | |
450 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
451 | 455 | | |
452 | 456 | | |
453 | 457 | | |
| |||
0 commit comments