private static void CopyBranchStackSize(ref Dictionary<Instruction, int> stackSizes, Instruction target, int stackSize) { if (stackSizes == null) stackSizes = new Dictionary<Instruction, int>(); var branchStackSize = stackSize; int computedSize; if (stackSizes.TryGetValue(target, out computedSize)) branchStackSize = System.Math.Max(branchStackSize, computedSize); stackSizes[target] = branchStackSize; }