Label l = s.getNewLabel();
LocalAsgnNode n = (LocalAsgnNode)optArgs.get(j);
String argName = n.getName();
Variable av = s.getLocalVariable(argName, 0);
if (s instanceof IRMethod) ((IRMethod)s).addArgDesc("opt", argName);
s.addInstr(new ReceiveOptArgInstr18(av, argIndex));
s.addInstr(BNEInstr.create(av, UndefinedValue.UNDEFINED, l)); // if 'av' is not undefined, go to default
build(n, s);
s.addInstr(new LabelInstr(l));
}
return argIndex;