diff --git a/complete-tests/test0.bril b/complete-tests/test0.bril new file mode 100644 index 0000000..1994f94 --- /dev/null +++ b/complete-tests/test0.bril @@ -0,0 +1,44 @@ +{ + "functions": [ + { + "args": [], + "instrs": [ + { + "label": "start" + }, + { + "dest": "tmp.0", + "op": "const", + "type": "int", + "value": 1 + }, + { + "dest": "tmp.1", + "op": "const", + "type": "int", + "value": 2 + }, + { + "args": [ + "tmp.0", + "tmp.1" + ], + "dest": "tmp.2", + "funcs": [], + "labels": [], + "op": "add", + "type": "int" + }, + { + "args": [ + "tmp.2" + ], + "funcs": [], + "labels": [], + "op": "return" + } + ], + "name": "main" + } + ] +} diff --git a/complete-tests/test0.rvar b/complete-tests/test0.rvar new file mode 100644 index 0000000..95289ea --- /dev/null +++ b/complete-tests/test0.rvar @@ -0,0 +1,3 @@ +(Program '() + (Prim '+ + (list (Int 1) (Int 2))))