leo/tests/expectations/parser/expression/binary/sub.out
Pranav Gaddamadugu 65ba316c4f Regen expectations
2023-08-09 17:38:33 -04:00

419 lines
9.3 KiB
Plaintext

---
namespace: ParseExpression
expectation: Pass
outputs:
- Binary:
left:
Literal:
Integer:
- U8
- "1"
- span:
lo: 0
hi: 3
- 0
right:
Literal:
Integer:
- U8
- "1"
- span:
lo: 6
hi: 9
- 0
op: Sub
span:
lo: 0
hi: 9
id: 0
- Binary:
left:
Literal:
Integer:
- U16
- "2"
- span:
lo: 0
hi: 4
- 0
right:
Literal:
Integer:
- U64
- "3"
- span:
lo: 5
hi: 9
- 0
op: Sub
span:
lo: 0
hi: 9
id: 0
- Binary:
left:
Binary:
left:
Literal:
Integer:
- U32
- "1"
- span:
lo: 0
hi: 4
- 0
right:
Literal:
Integer:
- U32
- "2"
- span:
lo: 7
hi: 11
- 0
op: Sub
span:
lo: 0
hi: 11
id: 0
right:
Literal:
Integer:
- U32
- "3"
- span:
lo: 14
hi: 18
- 0
op: Sub
span:
lo: 0
hi: 18
id: 0
- Binary:
left:
Binary:
left:
Literal:
Integer:
- U8
- "1"
- span:
lo: 0
hi: 3
- 0
right:
Literal:
Integer:
- U16
- "2"
- span:
lo: 6
hi: 10
- 0
op: Mul
span:
lo: 0
hi: 10
id: 0
right:
Binary:
left:
Literal:
Integer:
- U32
- "3"
- span:
lo: 13
hi: 17
- 0
right:
Literal:
Integer:
- I64
- "4"
- span:
lo: 20
hi: 24
- 0
op: Mul
span:
lo: 13
hi: 24
id: 0
op: Sub
span:
lo: 0
hi: 24
id: 0
- Unary:
receiver:
Unary:
receiver:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: Sub
span:
lo: 2
hi: 10
id: 0
op: Negate
span:
lo: 1
hi: 10
id: 0
op: Not
span:
lo: 0
hi: 10
id: 0
- Binary:
left:
Binary:
left:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}"
op: Sub
span:
lo: 0
hi: 8
id: 0
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}"
op: Sub
span:
lo: 0
hi: 15
id: 0
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}"
op: Sub
span:
lo: 0
hi: 22
id: 0
- Unary:
receiver:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}"
op: Sub
span:
lo: 1
hi: 9
id: 0
op: Negate
span:
lo: 0
hi: 9
id: 0
- Binary:
left:
Unary:
receiver:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
op: Negate
span:
lo: 1
hi: 3
id: 0
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}"
op: Sub
span:
lo: 1
hi: 11
id: 0
- Unary:
receiver:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: Sub
span:
lo: 2
hi: 10
id: 0
op: Negate
span:
lo: 0
hi: 10
id: 0
- Binary:
left:
Unary:
receiver:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: Sub
span:
lo: 2
hi: 10
id: 0
op: Negate
span:
lo: 1
hi: 10
id: 0
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}"
op: Sub
span:
lo: 1
hi: 18
id: 0
- Unary:
receiver:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}"
op: Sub
span:
lo: 1
hi: 9
id: 0
op: Not
span:
lo: 0
hi: 9
id: 0
- Binary:
left:
Unary:
receiver:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
op: Not
span:
lo: 1
hi: 3
id: 0
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}"
op: Sub
span:
lo: 1
hi: 11
id: 0
- Unary:
receiver:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: Sub
span:
lo: 2
hi: 10
id: 0
op: Not
span:
lo: 0
hi: 10
id: 0
- Binary:
left:
Unary:
receiver:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: Sub
span:
lo: 2
hi: 10
id: 0
op: Not
span:
lo: 1
hi: 10
id: 0
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}"
op: Sub
span:
lo: 1
hi: 18
id: 0
- Binary:
left:
Binary:
left:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}"
op: Sub
span:
lo: 1
hi: 9
id: 0
right:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}"
op: Sub
span:
lo: 13
hi: 21
id: 0
op: Shl
span:
lo: 1
hi: 21
id: 0
right:
Binary:
left:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}"
op: Sub
span:
lo: 27
hi: 35
id: 0
right:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}"
op: Sub
span:
lo: 39
hi: 47
id: 0
op: Shl
span:
lo: 27
hi: 47
id: 0
op: Sub
span:
lo: 1
hi: 48
id: 0