eoc/racket/complete-tests/test1.bril

63 lines
1.1 KiB
Plaintext

{
"functions": [
{
"args": [],
"instrs": [
{
"label": "start"
},
{
"dest": "tmp.0",
"op": "const",
"type": "int",
"value": 1
},
{
"dest": "tmp.1",
"op": "const",
"type": "int",
"value": 0
},
{
"args": [
"tmp.1",
"tmp.0"
],
"dest": "tmp.1",
"funcs": [],
"labels": [],
"op": "sub",
"type": "int"
},
{
"dest": "tmp.2",
"op": "const",
"type": "int",
"value": 2
},
{
"args": [
"tmp.1",
"tmp.2"
],
"dest": "tmp.3",
"funcs": [],
"labels": [],
"op": "add",
"type": "int"
},
{
"args": [
"tmp.3"
],
"funcs": [],
"labels": [],
"op": "return"
}
],
"name": "main"
}
]
}