def execute_cmdLine_instructions(instructions, m, l):
opt_lut = dict()<EOL>inst_lut = dict()<EOL>for k, v in six.iteritems(instructions):<EOL><INDENT>bits = k.split('<STR_LIT:->', <NUM_LIT:1>)<EOL>if len(bits) == <NUM_LIT:1>:<EOL><INDENT>if v not in m.modules:<EOL><INDENT>raise KeyError("<STR_LIT>" % v)<EOL><DEDENT>inst_lut[bits[<NUM_LIT:0>]] = v<EOL><DEDENT>else:<EOL><INDENT>if not bits[<NUM_LIT:0>] in opt_lut:<EOL><INDENT>opt_lut[bits[<NUM_LIT:0>]] = list()<EOL><DEDENT>opt_lut[bits[<NUM_LIT:0>]].append((bits[<NUM_LIT:1>], v))<EOL><DEDENT><DEDENT>inst_list = sort_by_successors(<EOL>six.viewkeys(inst_lut),<EOL>lambda inst: [v for (k, v) in opt_lut.get(inst, ())<EOL>if k in m.modules[inst_lut[inst]].deps]<EOL>)<EOL>for k in reversed(tuple(inst_list)):<EOL><INDENT>if k in m.insts:<EOL><INDENT>raise NotImplementedError(<EOL>"<STR_LIT>")<EOL><DEDENT>settings = dict()<EOL>if k in opt_lut:<EOL><INDENT>for k2, v2 in opt_lut[k]:<EOL><INDENT>settings[k2] = v2<EOL><DEDENT><DEDENT>m.create_instance(k, inst_lut[k], settings)<EOL><DEDENT>for k in opt_lut:<EOL><INDENT>if k in inst_lut:<EOL><INDENT>continue<EOL><DEDENT>for k2, v2 in opt_lut[k]:<EOL><INDENT>if k not in m.insts:<EOL><INDENT>raise ValueError("<STR_LIT>" % k)<EOL><DEDENT>m.change_setting(k, k2, v2)<EOL><DEDENT><DEDENT>
Applies the instructions given via
        <instructions> on the manager <m>