lean4-htt/tests/playground/ir.lean
2019-11-14 16:54:36 -08:00

11 lines
220 B
Text

import init.lean.compiler.ir
open Lean.IR
def tst1 : IO Unit :=
let fbody : FnBody :=
FnBody.vdecl `x IRType.uint32 (Expr.lit (LitVal.num 0)) $
FnBody.ret `x;
IO.println $ format fbody
def main : IO Unit :=
tst1