mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-23 10:12:21 +03:00
173 lines
3.8 KiB
Plaintext
173 lines
3.8 KiB
Plaintext
---
|
|
namespace: ParseStatement
|
|
expectation: Pass
|
|
outputs:
|
|
- Conditional:
|
|
condition:
|
|
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}"
|
|
then:
|
|
statements:
|
|
- Return:
|
|
expression:
|
|
Literal:
|
|
Integer:
|
|
- U8
|
|
- "0"
|
|
- span:
|
|
lo: 14
|
|
hi: 17
|
|
- 0
|
|
finalize_arguments: ~
|
|
span:
|
|
lo: 7
|
|
hi: 18
|
|
id: 0
|
|
span:
|
|
lo: 5
|
|
hi: 20
|
|
id: 0
|
|
otherwise: ~
|
|
span:
|
|
lo: 0
|
|
hi: 20
|
|
id: 0
|
|
- Conditional:
|
|
condition:
|
|
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
|
|
then:
|
|
statements:
|
|
- Return:
|
|
expression:
|
|
Literal:
|
|
Integer:
|
|
- U8
|
|
- "0"
|
|
- span:
|
|
lo: 16
|
|
hi: 19
|
|
- 0
|
|
finalize_arguments: ~
|
|
span:
|
|
lo: 9
|
|
hi: 20
|
|
id: 0
|
|
span:
|
|
lo: 7
|
|
hi: 22
|
|
id: 0
|
|
otherwise: ~
|
|
span:
|
|
lo: 0
|
|
hi: 22
|
|
id: 0
|
|
- Conditional:
|
|
condition:
|
|
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
|
|
then:
|
|
statements: []
|
|
span:
|
|
lo: 7
|
|
hi: 9
|
|
id: 0
|
|
otherwise:
|
|
Block:
|
|
statements: []
|
|
span:
|
|
lo: 15
|
|
hi: 17
|
|
id: 0
|
|
span:
|
|
lo: 0
|
|
hi: 17
|
|
id: 0
|
|
- Conditional:
|
|
condition:
|
|
Binary:
|
|
left:
|
|
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}"
|
|
right:
|
|
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}"
|
|
op: Add
|
|
span:
|
|
lo: 3
|
|
hi: 6
|
|
id: 0
|
|
then:
|
|
statements: []
|
|
span:
|
|
lo: 7
|
|
hi: 9
|
|
id: 0
|
|
otherwise:
|
|
Conditional:
|
|
condition:
|
|
Binary:
|
|
left:
|
|
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}"
|
|
right:
|
|
Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}"
|
|
op: Add
|
|
span:
|
|
lo: 18
|
|
hi: 21
|
|
id: 0
|
|
then:
|
|
statements: []
|
|
span:
|
|
lo: 22
|
|
hi: 24
|
|
id: 0
|
|
otherwise:
|
|
Block:
|
|
statements: []
|
|
span:
|
|
lo: 30
|
|
hi: 32
|
|
id: 0
|
|
span:
|
|
lo: 15
|
|
hi: 32
|
|
id: 0
|
|
span:
|
|
lo: 0
|
|
hi: 32
|
|
id: 0
|
|
- Conditional:
|
|
condition:
|
|
Binary:
|
|
left:
|
|
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}"
|
|
right:
|
|
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}"
|
|
op: Add
|
|
span:
|
|
lo: 3
|
|
hi: 6
|
|
id: 0
|
|
then:
|
|
statements:
|
|
- Return:
|
|
expression:
|
|
Literal:
|
|
Integer:
|
|
- U8
|
|
- "0"
|
|
- span:
|
|
lo: 16
|
|
hi: 19
|
|
- 0
|
|
finalize_arguments: ~
|
|
span:
|
|
lo: 9
|
|
hi: 20
|
|
id: 0
|
|
span:
|
|
lo: 7
|
|
hi: 22
|
|
id: 0
|
|
otherwise: ~
|
|
span:
|
|
lo: 0
|
|
hi: 22
|
|
id: 0
|