leo/tests/expectations/parser/expression/binary/bit_and.out
Pranav Gaddamadugu 440cced9d8 Cleanup
2023-08-17 17:49:29 -04:00

547 lines
13 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
- 1
op: BitwiseAnd
span:
lo: 0
hi: 9
id: 2
- Binary:
left:
Literal:
Integer:
- U8
- "2"
- span:
lo: 0
hi: 3
- 0
right:
Literal:
Integer:
- U8
- "3"
- span:
lo: 4
hi: 7
- 1
op: BitwiseAnd
span:
lo: 0
hi: 7
id: 2
- Binary:
left:
Binary:
left:
Literal:
Integer:
- U8
- "1"
- span:
lo: 0
hi: 3
- 0
right:
Literal:
Integer:
- U8
- "2"
- span:
lo: 6
hi: 9
- 1
op: BitwiseAnd
span:
lo: 0
hi: 9
id: 2
right:
Literal:
Integer:
- U8
- "3"
- span:
lo: 12
hi: 15
- 3
op: BitwiseAnd
span:
lo: 0
hi: 15
id: 4
- Binary:
left:
Binary:
left:
Literal:
Integer:
- U8
- "1"
- span:
lo: 0
hi: 3
- 0
right:
Binary:
left:
Literal:
Integer:
- U8
- "2"
- span:
lo: 6
hi: 9
- 1
right:
Literal:
Integer:
- U8
- "3"
- span:
lo: 12
hi: 15
- 2
op: BitwiseAnd
span:
lo: 6
hi: 15
id: 3
op: BitwiseOr
span:
lo: 0
hi: 15
id: 4
right:
Literal:
Integer:
- U8
- "4"
- span:
lo: 18
hi: 21
- 5
op: BitwiseOr
span:
lo: 0
hi: 21
id: 6
- Binary:
left:
Binary:
left:
Literal:
Integer:
- U8
- "1"
- span:
lo: 0
hi: 3
- 0
right:
Literal:
Integer:
- U8
- "2"
- span:
lo: 6
hi: 9
- 1
op: BitwiseAnd
span:
lo: 0
hi: 9
id: 2
right:
Literal:
Integer:
- U8
- "3"
- span:
lo: 12
hi: 15
- 3
op: BitwiseAnd
span:
lo: 0
hi: 15
id: 4
- Binary:
left:
Binary:
left:
Binary:
left:
Literal:
Integer:
- U8
- "1"
- span:
lo: 0
hi: 3
- 0
right:
Binary:
left:
Literal:
Integer:
- U8
- "2"
- span:
lo: 6
hi: 9
- 1
right:
Literal:
Integer:
- U8
- "3"
- span:
lo: 12
hi: 15
- 2
op: BitwiseAnd
span:
lo: 6
hi: 15
id: 3
op: BitwiseOr
span:
lo: 0
hi: 15
id: 4
right:
Binary:
left:
Literal:
Integer:
- U8
- "4"
- span:
lo: 18
hi: 21
- 5
right:
Literal:
Integer:
- U8
- "5"
- span:
lo: 24
hi: 27
- 6
op: BitwiseAnd
span:
lo: 18
hi: 27
id: 7
op: BitwiseOr
span:
lo: 0
hi: 27
id: 8
right:
Literal:
Integer:
- U8
- "6"
- span:
lo: 30
hi: 33
- 9
op: BitwiseOr
span:
lo: 0
hi: 33
id: 10
- Unary:
receiver:
Unary:
receiver:
Binary:
left:
Identifier: "{\"id\":\"0\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"id\":\"2\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: BitwiseAnd
span:
lo: 2
hi: 10
id: 3
op: Negate
span:
lo: 1
hi: 10
id: 4
op: Not
span:
lo: 0
hi: 10
id: 5
- Binary:
left:
Binary:
left:
Binary:
left:
Identifier: "{\"id\":\"0\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}"
right:
Identifier: "{\"id\":\"2\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}"
op: BitwiseAnd
span:
lo: 0
hi: 8
id: 3
right:
Identifier: "{\"id\":\"5\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}"
op: BitwiseAnd
span:
lo: 0
hi: 15
id: 6
right:
Identifier: "{\"id\":\"8\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}"
op: BitwiseAnd
span:
lo: 0
hi: 22
id: 9
- Unary:
receiver:
Binary:
left:
Identifier: "{\"id\":\"0\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}"
right:
Identifier: "{\"id\":\"2\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}"
op: BitwiseAnd
span:
lo: 1
hi: 9
id: 3
op: Negate
span:
lo: 0
hi: 9
id: 4
- Binary:
left:
Unary:
receiver:
Identifier: "{\"id\":\"0\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
op: Negate
span:
lo: 1
hi: 3
id: 1
right:
Identifier: "{\"id\":\"3\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}"
op: BitwiseAnd
span:
lo: 1
hi: 11
id: 4
- Unary:
receiver:
Binary:
left:
Identifier: "{\"id\":\"0\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"id\":\"2\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: BitwiseAnd
span:
lo: 2
hi: 10
id: 3
op: Negate
span:
lo: 0
hi: 10
id: 4
- Binary:
left:
Unary:
receiver:
Binary:
left:
Identifier: "{\"id\":\"0\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"id\":\"2\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: BitwiseAnd
span:
lo: 2
hi: 10
id: 3
op: Negate
span:
lo: 1
hi: 10
id: 4
right:
Identifier: "{\"id\":\"6\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}"
op: BitwiseAnd
span:
lo: 1
hi: 18
id: 7
- Unary:
receiver:
Binary:
left:
Identifier: "{\"id\":\"0\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}"
right:
Identifier: "{\"id\":\"2\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}"
op: BitwiseAnd
span:
lo: 1
hi: 9
id: 3
op: Not
span:
lo: 0
hi: 9
id: 4
- Binary:
left:
Unary:
receiver:
Identifier: "{\"id\":\"0\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
op: Not
span:
lo: 1
hi: 3
id: 1
right:
Identifier: "{\"id\":\"3\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}"
op: BitwiseAnd
span:
lo: 1
hi: 11
id: 4
- Unary:
receiver:
Binary:
left:
Identifier: "{\"id\":\"0\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"id\":\"2\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: BitwiseAnd
span:
lo: 2
hi: 10
id: 3
op: Not
span:
lo: 0
hi: 10
id: 4
- Binary:
left:
Unary:
receiver:
Binary:
left:
Identifier: "{\"id\":\"0\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"id\":\"2\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: BitwiseAnd
span:
lo: 2
hi: 10
id: 3
op: Not
span:
lo: 1
hi: 10
id: 4
right:
Identifier: "{\"id\":\"6\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}"
op: BitwiseAnd
span:
lo: 1
hi: 18
id: 7
- Binary:
left:
Binary:
left:
Binary:
left:
Identifier: "{\"id\":\"0\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}"
right:
Identifier: "{\"id\":\"2\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}"
op: BitwiseAnd
span:
lo: 1
hi: 9
id: 3
right:
Binary:
left:
Identifier: "{\"id\":\"4\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}"
right:
Identifier: "{\"id\":\"6\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}"
op: BitwiseAnd
span:
lo: 12
hi: 20
id: 7
op: BitwiseAnd
span:
lo: 1
hi: 20
id: 8
right:
Binary:
left:
Binary:
left:
Identifier: "{\"id\":\"10\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}"
right:
Identifier: "{\"id\":\"12\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}"
op: BitwiseAnd
span:
lo: 26
hi: 34
id: 13
right:
Binary:
left:
Identifier: "{\"id\":\"14\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}"
right:
Identifier: "{\"id\":\"16\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}"
op: BitwiseAnd
span:
lo: 37
hi: 45
id: 17
op: BitwiseAnd
span:
lo: 26
hi: 45
id: 18
op: BitwiseAnd
span:
lo: 1
hi: 46
id: 19