diff_before_after
Apply a rename, type, or comment action to a function and compare decompilation before and after to verify readability improvements. Returns side-by-side diff with action and change detection.
Instructions
Apply a rename/type/comment action and return the before/after decompilation side by side. Actions: 'rename_func' ({name}), 'set_type' ({type}), 'set_comment' ({comment}). Useful to verify a rename or type change actually improved readability. Returns {before, after, action_applied, changes_detected}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addr | Yes | Function address | |
| action | Yes | Action: 'rename_func', 'set_type', 'set_comment' | |
| action_args | Yes | Arguments for the action | |
| instance_id | Yes | Target IDA instance ID (required) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| before | No | ||
| after | No | ||
| action_applied | No | ||
| changes_detected | No | ||
| error | No |