F
code input
Output
main = undefined;
Compilation result globalEnvironment = [ ("main",(0,4)), ("false",(0,10)), ("true",(0,16)), ("not",(1,22)), ("negate",(1,29)), ("|",(2,36)), ("&",(2,46)), ("+",(2,56)), ("-",(2,66)), ("*",(2,76)), ("/",(2,86)), ("==",(2,96)), ("<",(2,106)), ("if",(3,116)) ] instructionsMf = [ Reset, Pushfun "main", Call, Halt, Pushfun "undefined", Update 0, Slide 1, Unwind, Call, Return, Pushval (Bool False), Update 0, Slide 1, Unwind, Call, Return, Pushval (Bool True), Update 0, Slide 1, Unwind, Call, Return, Pushparam 1, Unwind, Call, Operator Not, Update 1, Slide 2, Return, Pushparam 1, Unwind, Call, Operator Negate, Update 1, Slide 2, Return, Pushparam 1, Unwind, Call, Pushparam 3, Unwind, Call, Operator Or, Update 2, Slide 3, Return, Pushparam 1, Unwind, Call, Pushparam 3, Unwind, Call, Operator And, Update 2, Slide 3, Return, Pushparam 1, Unwind, Call, Pushparam 3, Unwind, Call, Operator Plus, Update 2, Slide 3, Return, Pushparam 1, Unwind, Call, Pushparam 3, Unwind, Call, Operator Minus, Update 2, Slide 3, Return, Pushparam 1, Unwind, Call, Pushparam 3, Unwind, Call, Operator Times, Update 2, Slide 3, Return, Pushparam 1, Unwind, Call, Pushparam 3, Unwind, Call, Operator DividedBy, Update 2, Slide 3, Return, Pushparam 1, Unwind, Call, Pushparam 3, Unwind, Call, Operator Equals, Update 2, Slide 3, Return, Pushparam 1, Unwind, Call, Pushparam 3, Unwind, Call, Operator LessThan, Update 2, Slide 3, Return, Pushparam 1, Unwind, Call, Pushparam 3, Pushparam 5, Operator If, Update 3, Slide 4, Unwind, Call, Return ] Emulation trace I: Reset h0: DEF "<" 2 106 P: 1 h1: DEF "|" 2 36 h2: DEF "if" 3 116 h3: DEF "*" 2 76 h4: DEF "not" 1 22 h5: DEF "false" 0 10 h6: DEF "-" 2 66 h7: DEF "+" 2 56 h8: DEF "main" 0 4 h9: DEF "true" 0 16 h10: DEF "negate" 1 29 h11: DEF "/" 2 86 h12: DEF "==" 2 96 h13: DEF "&" 2 46 I: Pushfun "main" s0: h8 h0: DEF "<" 2 106 P: 2 h1: DEF "|" 2 36 h2: DEF "if" 3 116 h3: DEF "*" 2 76 h4: DEF "not" 1 22 h5: DEF "false" 0 10 h6: DEF "-" 2 66 h7: DEF "+" 2 56 h8: DEF "main" 0 4 h9: DEF "true" 0 16 h10: DEF "negate" 1 29 h11: DEF "/" 2 86 h12: DEF "==" 2 96 h13: DEF "&" 2 46 I: Call s0: c3 h0: DEF "<" 2 106 P: 4 s1: h8 h1: DEF "|" 2 36 h2: DEF "if" 3 116 h3: DEF "*" 2 76 h4: DEF "not" 1 22 h5: DEF "false" 0 10 h6: DEF "-" 2 66 h7: DEF "+" 2 56 h8: DEF "main" 0 4 h9: DEF "true" 0 16 h10: DEF "negate" 1 29 h11: DEF "/" 2 86 h12: DEF "==" 2 96 h13: DEF "&" 2 46 I: Pushfun "undefined" Error: cannot step