Finish basic CFA implementation

This commit is contained in:
Yoshi Askharoun
2025-07-27 13:34:56 -05:00
parent 2719ac2f26
commit a0f6f1f66e
2 changed files with 62 additions and 7 deletions
+1
View File
@@ -32,6 +32,7 @@ partial class Decompiler
var methodBody = _context.GetMethodBody(startOffset).ToArray();
var controlBlocks = ControlFlowAnalyzer.CreateGraph(methodBody);
var dotGraph = ControlFlowAnalyzer.SerializeToGraphviz(controlBlocks);
Stack<CodeBlockInfo> blockStack = [];
blockStack.Push(new(0, methodBody[^1].Offset, SyntaxKind.Block, null));