summaryrefslogtreecommitdiff
path: root/src/mongo/db/test_output/exec/sbe/s_b_e_if_test/if_with_fill_empty.txt
blob: dc27e00ba7560b8303bcb1b683a3be47b02f4960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Golden test output of SBEIfTest/IfWithFillEmpty
-- INPUT EXPRESSION:

    if (s1 ?: s2) 
    then "then" 
    else "else" 


-- COMPILED EXPRESSION:
[0x0000-0x0040]
0x0000: pushAccessVal(accessor: <accessor>);
0x0009: jmpNothing(target: 0x0013);
0x000e: jmp(target: 0x001d);
0x0013: pop();
0x0014: pushAccessVal(accessor: <accessor>);
0x001d: jmpNothing(target: 0x0040);
0x0022: jmpTrue(target: 0x0036);
0x0027: pushConstVal(value: "else");
0x0031: jmp(target: 0x0040);
0x0036: pushConstVal(value: "then");


-- EXECUTE VARIATION:
SLOTS: [1: Nothing, 2: Nothing]
RESULT: Nothing

-- EXECUTE VARIATION:
SLOTS: [1: Nothing, 2: false]
RESULT: "else"

-- EXECUTE VARIATION:
SLOTS: [1: Nothing, 2: true]
RESULT: "then"

-- EXECUTE VARIATION:
SLOTS: [1: false, 2: Nothing]
RESULT: "else"

-- EXECUTE VARIATION:
SLOTS: [1: false, 2: false]
RESULT: "else"

-- EXECUTE VARIATION:
SLOTS: [1: false, 2: true]
RESULT: "else"

-- EXECUTE VARIATION:
SLOTS: [1: true, 2: Nothing]
RESULT: "then"

-- EXECUTE VARIATION:
SLOTS: [1: true, 2: false]
RESULT: "then"

-- EXECUTE VARIATION:
SLOTS: [1: true, 2: true]
RESULT: "then"