private ILogicalConstruct FindChildBlockBelongsTo(ILogicalConstruct parent, CFGBlockLogicalConstruct block) { V_0 = null; V_1 = block; do { if (V_1.get_Parent() != parent) { V_1 = (ILogicalConstruct)V_1.get_Parent(); } else { V_0 = V_1; break; } }while (V_1.get_Parent() != null); return(V_0); }
private void AddSwitchCFGBlockToMap(CFGBlockLogicalConstruct cfgConstruct) { V_0 = cfgConstruct.get_Parent() as ILogicalConstruct; if (!this.logicalConstructToSwitchBlocksMap.TryGetValue(V_0, out V_1)) { V_1 = new List <CFGBlockLogicalConstruct>(); this.logicalConstructToSwitchBlocksMap.Add(V_0, V_1); } V_1.Add(cfgConstruct); return; }