11using  Microsoft . VisualStudio . TestTools . UnitTesting ; 
22using  System . IO ; 
3+ using  TypeCobol . Analysis . Graph ; 
34using  TypeCobol . Test ; 
45using  static  TypeCobol . Analysis . Test . CfgTestUtils ; 
6+ using  CFG  =  TypeCobol . Analysis . Graph . ControlFlowGraph < TypeCobol . Compiler . Nodes . Node , 
7+     TypeCobol . Analysis . Dfa . DfaBasicBlockInfo < TypeCobol . Compiler . Symbols . VariableSymbol > > ; 
58
69namespace  TypeCobol . Analysis . Test 
710{ 
@@ -19,7 +22,7 @@ public void HanoiPrgCfgExtendedDominator()
1922
2023            string  expectedDomsFile  =  Path . Combine ( BasicCfgPrograms ,  "HanoiPrg.doms" ) ; 
2124            StringWriter  writer  =  new  StringWriter ( ) ; 
22-             dfaResults . Graphs [ 0 ] . DumpDominators ( blocks_dominators . Item2 ,  writer ) ; 
25+             CFG . DumpDominators ( blocks_dominators . Item2 ,  writer ) ; 
2326            // compare with expected result 
2427            string  result  =  writer . ToString ( ) ; 
2528            string  expected  =  File . ReadAllText ( expectedDomsFile ) ; 
@@ -36,7 +39,7 @@ private static void HanoiPrgCfgExtendedImmediateDominator(bool duplicate)
3639
3740            string  expectedDomsFile  =  Path . Combine ( BasicCfgPrograms ,  "HanoiPrg.idoms" ) ; 
3841            StringWriter  writer  =  new  StringWriter ( ) ; 
39-             dfaResults . Graphs [ 0 ] . DumpDominators ( idoms ,  writer ) ; 
42+             CFG . DumpDominators ( idoms ,  writer ) ; 
4043            // compare with expected result 
4144            string  result  =  writer . ToString ( ) ; 
4245            string  expected  =  File . ReadAllText ( expectedDomsFile ) ; 
0 commit comments