1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- \newcommand{\itm}[1]{\ensuremath{\mathit{#1}}}
- \newcommand{\Stmt}{\itm{stmt}}
- \newcommand{\Exp}{\itm{exp}}
- \newcommand{\Def}{\itm{def}}
- \newcommand{\Type}{\itm{type}}
- \newcommand{\FType}{\itm{ftype}}
- \newcommand{\Instr}{\itm{instr}}
- \newcommand{\Block}{\itm{block}}
- \newcommand{\Tail}{\itm{tail}}
- \newcommand{\Prog}{\itm{prog}}
- \newcommand{\Arg}{\itm{arg}}
- \newcommand{\Atm}{\itm{atm}}
- \newcommand{\Reg}{\itm{reg}}
- \newcommand{\Int}{\itm{int}}
- \newcommand{\Var}{\itm{var}}
- \newcommand{\Op}{\itm{op}}
- \newcommand{\key}[1]{\texttt{#1}}
- \newcommand{\code}[1]{\texttt{#1}}
- \newcommand{\LP}[0]{\key{(}}
- \newcommand{\RP}[0]{\key{)}}
- \newcommand{\LS}[0]{\key{[}}
- \newcommand{\RS}[0]{\key{]}}
- \newcommand{\INT}[1]{\key{(Int}\;#1\key{)}}
- \newcommand{\BOOL}[1]{\key{(Bool}\;#1\key{)}}
- \newcommand{\READ}{\key{(Prim}\;\code{'read}\;\key{'())}}
- \newcommand{\NEG}[1]{\key{(Prim}\;\code{'-}\;\code{(list}\;#1\;\code{))}}
- \newcommand{\PROGRAM}[2]{\code{(Program}\;#1\;#2\code{)}}
- \newcommand{\PROGRAMDEFSEXP}[3]{\code{(ProgramDefsExp}~#1~#2~#3\code{)}}
- \newcommand{\PROGRAMDEFS}[2]{\code{(ProgramDefs}~#1~#2\code{)}}
- \newcommand{\ADD}[2]{\key{(Prim}\;\code{'+}\;\code{(list}\;#1\;#2\code{))}}
- \newcommand{\AND}[2]{\key{(Prim}\;\code{'and}\;\code{(list}\;#1\;#2\code{))}}
- \newcommand{\OR}[2]{\key{(Prim}\;\code{'or}\;\code{(list}\;#1\;#2\code{))}}
- \newcommand{\NOT}[1]{\key{(Prim}\;\code{'not}\;\code{(list}\;#1\;\code{))}}
- \newcommand{\UNIOP}[2]{\key{(Prim}\;#1\;\code{(list}\;#2\;\code{))}}
- \newcommand{\BINOP}[3]{\key{(Prim}\;#1\;\code{(list}\;#2\;#3\code{))}}
- \newcommand{\VAR}[1]{\key{(Var}\;#1\key{)}}
- \newcommand{\LET}[3]{\key{(Let}~#1~#2~#3\key{)}}
- \newcommand{\IF}[3]{\key{(If}\,#1\;#2\;#3\key{)}}
- \newcommand{\VECTOR}[1]{\key{(Prim}\;\code{'vector}\;\code{(list}\;#1^{*}\code{))}}
- \newcommand{\VECREF}[2]{\key{(Prim}\;\code{'vector-ref}\;\code{(list}\;#1\;#2\code{))}}
- \newcommand{\VECSET}[3]{\key{(Prim}\;\code{'vector-set}\;\code{(list}\;#1\;#2\;#3\code{))}}
- \newcommand{\VOID}[1]{\key{(Void)}}
- \newcommand{\APPLY}[2]{\key{(Apply}\;#1\;#2\code{)}}
- \newcommand{\FUNDEF}[5]{\key{(Def}~#1~#2~#3~#4~#5\code{)}}
- \newcommand{\ASSIGN}[2]{\key{(Assign}~#1\;#2\key{)}}
- \newcommand{\RETURN}[1]{\key{(Return}~#1\key{)}}
- \newcommand{\SEQ}[2]{\key{(Seq}~#1~#2\key{)}}
- \newcommand{\GOTO}[1]{\key{(Goto}~#1\key{)}}
- \newcommand{\IFSTMT}[3]{\key{(IfStmt}\,#1\;#2\;#3\key{)}}
- \newcommand{\IMM}[1]{\key{(Imm}\;#1\key{)}}
- \newcommand{\REG}[1]{\key{(Reg}\;#1\key{)}}
- \newcommand{\BYTEREG}[1]{\key{(ByteReg}\;#1\key{)}}
- \newcommand{\DEREF}[2]{\key{(Deref}~#1~#2\key{)}}
- \newcommand{\CFG}[1]{\key{(CFG}\;#1\key{)}}
- \newcommand{\BLOCK}[2]{\key{(Block}\;#1\;#2\key{)}}
- \newcommand{\STACKLOC}[1]{(\key{stack}\;#1)}
- \newcommand{\BININSTR}[3]{\key{(Instr}\;#1\;\key{(list}\;#2\;#3\key{))}}
- \newcommand{\UNIINSTR}[2]{\key{(Instr}\;#1\;\key{(list}\;#2\key{))}}
- \newcommand{\CALLQ}[1]{\key{(Callq}~#1\key{)}}
- \newcommand{\RETQ}{\key{(Retq)}}
- \newcommand{\PUSHQ}[1]{\key{(Pushq}~#1\key{)}}
- \newcommand{\POPQ}[1]{\key{(Popq}~#1\key{)}}
- \newcommand{\JMP}[1]{\key{(Jmp}~#1\key{)}}
- \newcommand{\JMPIF}[2]{\key{(JmpIf}~#1~#2\key{)}}
- \newcommand{\TTKEY}[1]{{\normalfont\tt #1}}
|