2024-01-19 17:02:22 +03:00
|
|
|
---
|
|
|
|
source: tests/golden_tests.rs
|
2024-05-15 01:25:46 +03:00
|
|
|
input_file: tests/golden_tests/compile_file_o_all/expr.bend
|
2024-01-19 17:02:22 +03:00
|
|
|
---
|
2024-05-18 15:01:20 +03:00
|
|
|
@Expr/App = (a (b ((2 (a (b c))) c)))
|
2024-03-21 15:11:16 +03:00
|
|
|
|
2024-05-18 15:01:20 +03:00
|
|
|
@Expr/Dup = (a (b (c (d ((6 (a (b (c (d e))))) e)))))
|
2024-03-21 15:11:16 +03:00
|
|
|
|
2024-05-18 15:01:20 +03:00
|
|
|
@Expr/Let = (a (b (c ((5 (a (b (c d)))) d))))
|
2024-03-21 15:11:16 +03:00
|
|
|
|
2024-05-18 15:01:20 +03:00
|
|
|
@Expr/Num = (a ((1 (a b)) b))
|
2024-03-21 15:11:16 +03:00
|
|
|
|
2024-05-18 15:01:20 +03:00
|
|
|
@Expr/Op2 = (a (b (c ((8 (a (b (c d)))) d))))
|
2024-03-21 15:11:16 +03:00
|
|
|
|
2024-05-18 15:01:20 +03:00
|
|
|
@Expr/Var = (a ((0 (a b)) b))
|
2024-03-21 15:11:16 +03:00
|
|
|
|
2024-05-18 15:01:20 +03:00
|
|
|
@Op/Mul = ((2 a) a)
|
2024-03-21 15:11:16 +03:00
|
|
|
|
2024-05-18 15:01:20 +03:00
|
|
|
@Op/Sub = ((1 a) a)
|
2024-03-21 15:11:16 +03:00
|
|
|
|
2024-04-18 18:42:28 +03:00
|
|
|
@main = n
|
2024-05-10 22:42:32 +03:00
|
|
|
& @Expr/Let ~ (a (f (m n)))
|
|
|
|
& @Expr/Var ~ (0 a)
|
|
|
|
& @Expr/Op2 ~ (@Op/Mul (e f))
|
|
|
|
& @Expr/Op2 ~ (@Op/Sub (b (c (d e))))
|
|
|
|
& @Expr/Num ~ (2 b)
|
|
|
|
& @Expr/Num ~ (1 c)
|
|
|
|
& @Expr/Num ~ (3 d)
|
|
|
|
& @Expr/Dup ~ (g (h (i (l m))))
|
|
|
|
& @Expr/Var ~ (1 g)
|
|
|
|
& @Expr/Var ~ (2 h)
|
|
|
|
& @Expr/Var ~ (0 i)
|
|
|
|
& @Expr/App ~ (j (k l))
|
|
|
|
& @Expr/Var ~ (1 j)
|
|
|
|
& @Expr/Var ~ (2 k)
|