Deflat JavaScript control flow
analysis_deflat_control_flowRestore a canonical while(true)+switch dispatcher when its static execution order can be proven, improving code readability and enabling further analysis.
Instructions
Conservatively restore a canonical while(true)+switch dispatcher when its static order can be proven.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "analysis_deflat_control_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |