(graph, blockID, nodeID)
| 51 | } |
| 52 | |
| 53 | export function recordInBasicBlock(graph, blockID, nodeID) { |
| 54 | if (nodeID === undefined) { |
| 55 | FES.internalError('undefined nodeID in `recordInBasicBlock()`'); |
| 56 | } |
| 57 | if (blockID === undefined) { |
| 58 | FES.internalError('undefined blockID in `recordInBasicBlock()'); |
| 59 | } |
| 60 | graph.blockInstructions[blockID] = graph.blockInstructions[blockID] || []; |
| 61 | graph.blockInstructions[blockID].push(nodeID); |
| 62 | } |
| 63 | |
| 64 | export function getBlockDataFromID(graph, id) { |
| 65 | return { |
no test coverage detected