leo/tests/expectations/parser/functions/const_param.out
2022-08-04 20:00:40 -07:00

85 lines
2.2 KiB
Plaintext

---
namespace: Parse
expectation: Pass
outputs:
- name: ""
network: ""
expected_input: []
imports: {}
functions:
"{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}":
annotations: []
identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}"
input:
- identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}"
mode: None
type_: U32
span:
lo: 13
hi: 14
- identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":30,\\\"hi\\\":31}\"}"
mode: Const
type_: I32
span:
lo: 30
hi: 31
output: U8
core_mapping: ~
block:
statements:
- Return:
expression:
Literal:
U8:
- "0"
- span:
lo: 57
hi: 60
span:
lo: 50
hi: 60
span:
lo: 44
hi: 63
span:
lo: 2
hi: 63
"{\"name\":\"x\",\"span\":\"{\\\"lo\\\":74,\\\"hi\\\":75}\"}":
annotations: []
identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":74,\\\"hi\\\":75}\"}"
input:
- identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}"
mode: Const
type_: U32
span:
lo: 85
hi: 86
- identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":93,\\\"hi\\\":94}\"}"
mode: None
type_: I32
span:
lo: 93
hi: 94
output: U8
core_mapping: ~
block:
statements:
- Return:
expression:
Literal:
U8:
- "0"
- span:
lo: 120
hi: 123
span:
lo: 113
hi: 123
span:
lo: 107
hi: 126
span:
lo: 65
hi: 126
circuits: {}