Skip to content

Commit

Permalink
Update expected test output to include conflict contribution output
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Evans committed Jun 28, 2024
1 parent d436b27 commit 916fca5
Show file tree
Hide file tree
Showing 12 changed files with 170 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bootstrap/test/hocc/G.expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ IELR(1) States
Ta : ShiftPrefix 11 prec p2
Gotos
A : 12
Conflict contributions
[Z ::= Tz · A B, {Ta}]
20 : Reduce E ::= epsilon
State 5 [5.0]
Kernel
[Z ::= Ty · A B, {Ta}]
Expand All @@ -127,6 +130,9 @@ IELR(1) States
Ta : ShiftPrefix 11 prec p2
Gotos
A : 13
Conflict contributions
[Z ::= Ty · A B, {Ta}]
20 : Reduce E ::= epsilon
State 6 [6.0]
Kernel
[S ::= Ta Z · Ta, {"⊥"}]
Expand Down Expand Up @@ -171,6 +177,9 @@ IELR(1) States
Gotos
C : 18
D : 19
Conflict contributions
[A ::= Ta · C D E, {Ta}]
20 : Reduce E ::= epsilon
State 12 [10.0]
Kernel
[Z ::= Tz A · B, {Ta, Tb}]
Expand Down Expand Up @@ -232,6 +241,9 @@ IELR(1) States
Ta : ShiftPrefix 17 prec p2
Gotos
D : 24
Conflict contributions
[A ::= Ta C · D E, {Ta}]
20 : Reduce E ::= epsilon
State 19 [16.0]
Kernel
[C ::= D ·, {Ta}]
Expand Down Expand Up @@ -275,6 +287,9 @@ IELR(1) States
Tc : Reduce E ::= epsilon prec p1
Gotos
E : 27
Conflict contributions
[A ::= Ta C D · E, {Ta}]
20 : Reduce E ::= epsilon
State 25 [20.1]
Kernel
[A ::= Ta C D · E, {Tb, Tc}]
Expand Down
21 changes: 21 additions & 0 deletions bootstrap/test/hocc/H.expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ IELR(1) States
Tz1 : ShiftPrefix 12
Gotos
Z : 13
Conflict contributions
[Y ::= Ty0 · Z, {Ta}]
24 : Reduce E ::= epsilon
State 5 [5.0]
Kernel
[Y ::= Ty1 · Z, {Ta}]
Expand All @@ -143,6 +146,9 @@ IELR(1) States
Tz1 : ShiftPrefix 12
Gotos
Z : 14
Conflict contributions
[Y ::= Ty1 · Z, {Ta}]
24 : Reduce E ::= epsilon
State 6 [6.0]
Kernel
[S ::= Ta Y · Ta, {"⊥"}]
Expand Down Expand Up @@ -189,6 +195,9 @@ IELR(1) States
Ta : ShiftPrefix 19 prec p2
Gotos
A : 20
Conflict contributions
[Z ::= Tz0 · A B, {Ta}]
24 : Reduce E ::= epsilon
State 12 [10.0]
Kernel
[Z ::= Tz1 · A B, {Ta}]
Expand All @@ -198,6 +207,9 @@ IELR(1) States
Ta : ShiftPrefix 19 prec p2
Gotos
A : 21
Conflict contributions
[Z ::= Tz1 · A B, {Ta}]
24 : Reduce E ::= epsilon
State 13 [11.0]
Kernel
[Y ::= Ty0 Z ·, {Ta, Tb}]
Expand Down Expand Up @@ -249,6 +261,9 @@ IELR(1) States
Gotos
C : 24
D : 25
Conflict contributions
[A ::= Ta · C D E, {Ta}]
24 : Reduce E ::= epsilon
State 20 [16.0]
Kernel
[Z ::= Tz0 A · B, {Ta, Tb}]
Expand Down Expand Up @@ -300,6 +315,9 @@ IELR(1) States
Ta : ShiftPrefix 23 prec p2
Gotos
D : 30
Conflict contributions
[A ::= Ta C · D E, {Ta}]
24 : Reduce E ::= epsilon
State 25 [20.0]
Kernel
[C ::= D ·, {Ta}]
Expand Down Expand Up @@ -343,6 +361,9 @@ IELR(1) States
Tc : Reduce E ::= epsilon prec p1
Gotos
E : 33
Conflict contributions
[A ::= Ta C D · E, {Ta}]
24 : Reduce E ::= epsilon
State 31 [24.1]
Kernel
[A ::= Ta C D · E, {Tb, Tc}]
Expand Down
3 changes: 3 additions & 0 deletions bootstrap/test/hocc/IelrFig1.expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ IELR(1) States
[A ::= Ta · Ta, {Ta}] prec p
Actions
Ta : Reduce A ::= Ta prec p
Conflict contributions
[A ::= Ta ·, {Ta}]
4 : Reduce A ::= Ta
State 5 [5.0]
Kernel
[S ::= Ta A · Ta, {"⊥"}] prec p
Expand Down
3 changes: 3 additions & 0 deletions bootstrap/test/hocc/IelrFig1_rno.expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ IELR(1) States
Ta :
CONFLICT ShiftPrefix 9 prec p
CONFLICT Reduce A ::= Ta prec p
Conflict contributions
[A ::= Ta ·, {Ta}]
4 : Reduce A ::= Ta
State 5 [5.0]
Kernel
[S ::= Ta A · Ta, {"⊥"}] prec p
Expand Down
24 changes: 24 additions & 0 deletions bootstrap/test/hocc/IelrFig2.expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ IELR(1) States
[C ::= Ta · Ta, {Tc}] prec p2
Actions
Ta : ShiftPrefix 13
Conflict contributions
[A ::= Ta · Ta, {Ta}]
12 : Reduce A ::= Ta Ta
[B ::= Ta · Ta, {Tb}]
12 : Reduce B ::= Ta Ta
State 5 [5.0]
Kernel
[S ::= Ta A · Ta, {"⊥"}]
Expand All @@ -130,6 +135,13 @@ IELR(1) States
[C ::= Ta · Ta, {Ta}] prec p2
Actions
Ta : ShiftPrefix 17
Conflict contributions
[A ::= Ta · Ta, {Tb}]
12 : Reduce A ::= Ta Ta
[B ::= Ta · Ta, {Ta}]
12 : Reduce B ::= Ta Ta
[C ::= Ta · Ta, {Ta}]
12 : Reduce C ::= Ta Ta
State 9 [8.0]
Kernel
[S ::= Tb A · Tb, {"⊥"}]
Expand Down Expand Up @@ -159,6 +171,11 @@ IELR(1) States
Ta : Reduce A ::= Ta Ta
Tb : Reduce B ::= Ta Ta prec p1
Tc : Reduce C ::= Ta Ta prec p2
Conflict contributions
[A ::= Ta Ta ·, {Ta}]
12 : Reduce A ::= Ta Ta
[B ::= Ta Ta ·, {Tb}]
12 : Reduce B ::= Ta Ta
State 14 [13.0]
Kernel
[S ::= Ta A Ta ·, {"⊥"}]
Expand All @@ -182,6 +199,13 @@ IELR(1) States
Actions
Ta : Reduce B ::= Ta Ta prec p1
Tb : Reduce A ::= Ta Ta
Conflict contributions
[A ::= Ta Ta ·, {Tb}]
12 : Reduce A ::= Ta Ta
[B ::= Ta Ta ·, {Ta}]
12 : Reduce B ::= Ta Ta
[C ::= Ta Ta ·, {Ta}]
12 : Reduce C ::= Ta Ta
State 18 [16.0]
Kernel
[S ::= Tb A Tb ·, {"⊥"}]
Expand Down
24 changes: 24 additions & 0 deletions bootstrap/test/hocc/IelrFig2_rno.expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ IELR(1) States
[C ::= Ta · Ta, {Tc}] prec p2
Actions
Ta : ShiftPrefix 13
Conflict contributions
[A ::= Ta · Ta, {Ta}]
12 : Reduce A ::= Ta Ta
[B ::= Ta · Ta, {Tb}]
12 : Reduce B ::= Ta Ta
State 5 [5.0]
Kernel
[S ::= Ta A · Ta, {"⊥"}]
Expand All @@ -130,6 +135,13 @@ IELR(1) States
[C ::= Ta · Ta, {Ta}] prec p2
Actions
Ta : ShiftPrefix 17
Conflict contributions
[A ::= Ta · Ta, {Tb}]
12 : Reduce A ::= Ta Ta
[B ::= Ta · Ta, {Ta}]
12 : Reduce B ::= Ta Ta
[C ::= Ta · Ta, {Ta}]
12 : Reduce C ::= Ta Ta
State 9 [8.0]
Kernel
[S ::= Tb A · Tb, {"⊥"}]
Expand Down Expand Up @@ -159,6 +171,11 @@ IELR(1) States
Ta : Reduce A ::= Ta Ta
Tb : Reduce B ::= Ta Ta prec p1
Tc : Reduce C ::= Ta Ta prec p2
Conflict contributions
[A ::= Ta Ta ·, {Ta}]
12 : Reduce A ::= Ta Ta
[B ::= Ta Ta ·, {Tb}]
12 : Reduce B ::= Ta Ta
State 14 [13.0]
Kernel
[S ::= Ta A Ta ·, {"⊥"}]
Expand All @@ -184,6 +201,13 @@ IELR(1) States
CONFLICT Reduce B ::= Ta Ta prec p1
CONFLICT Reduce C ::= Ta Ta prec p2
Tb : Reduce A ::= Ta Ta
Conflict contributions
[A ::= Ta Ta ·, {Tb}]
12 : Reduce A ::= Ta Ta
[B ::= Ta Ta ·, {Ta}]
12 : Reduce B ::= Ta Ta
[C ::= Ta Ta ·, {Ta}]
12 : Reduce C ::= Ta Ta
State 18 [16.0]
Kernel
[S ::= Tb A Tb ·, {"⊥"}]
Expand Down
24 changes: 24 additions & 0 deletions bootstrap/test/hocc/IelrFig3.expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ IELR(1) States
[C ::= Ta · Ta, {Ta}] prec p3
Actions
Ta : ShiftPrefix 13
Conflict contributions
[A ::= Ta · Ta, {Ta}]
12 : Reduce A ::= Ta Ta
[B ::= Ta · Ta, {Ta}]
12 : Reduce B ::= Ta Ta
[C ::= Ta · Ta, {Ta}]
12 : Reduce C ::= Ta Ta
State 5 [5.0]
Kernel
[S ::= Ta A · Ta, {"⊥"}]
Expand All @@ -128,6 +135,11 @@ IELR(1) States
[C ::= Ta · Ta, {Ta}] prec p3
Actions
Ta : ShiftPrefix 17
Conflict contributions
[B ::= Ta · Ta, {Ta}]
12 : Reduce B ::= Ta Ta
[C ::= Ta · Ta, {Ta}]
12 : Reduce C ::= Ta Ta
State 9 [8.0]
Kernel
[S ::= Tb A · Tb, {"⊥"}]
Expand Down Expand Up @@ -155,6 +167,13 @@ IELR(1) States
[C ::= Ta Ta ·, {Ta}] prec p3
Actions
Ta : Reduce A ::= Ta Ta prec p1
Conflict contributions
[A ::= Ta Ta ·, {Ta}]
12 : Reduce A ::= Ta Ta
[B ::= Ta Ta ·, {Ta}]
12 : Reduce B ::= Ta Ta
[C ::= Ta Ta ·, {Ta}]
12 : Reduce C ::= Ta Ta
State 14 [13.0]
Kernel
[S ::= Ta A Ta ·, {"⊥"}]
Expand All @@ -178,6 +197,11 @@ IELR(1) States
Actions
Ta : Reduce B ::= Ta Ta prec p2
Tb : Reduce A ::= Ta Ta prec p1
Conflict contributions
[B ::= Ta Ta ·, {Ta}]
12 : Reduce B ::= Ta Ta
[C ::= Ta Ta ·, {Ta}]
12 : Reduce C ::= Ta Ta
State 18 [16.0]
Kernel
[S ::= Tb A Tb ·, {"⊥"}]
Expand Down
14 changes: 14 additions & 0 deletions bootstrap/test/hocc/IelrFig3_rno.expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ IELR(1) States
[C ::= Ta · Ta, {Ta}] prec p3
Actions
Ta : ShiftPrefix 12
Conflict contributions
[A ::= Ta · Ta, {Ta}]
12 : Reduce A ::= Ta Ta
[B ::= Ta · Ta, {Ta}]
12 : Reduce B ::= Ta Ta
[C ::= Ta · Ta, {Ta}]
12 : Reduce C ::= Ta Ta
State 5 [5.0]
Kernel
[S ::= Ta A · Ta, {"⊥"}]
Expand Down Expand Up @@ -152,6 +159,13 @@ CONFLICT Reduce A ::= Ta Ta prec p1
CONFLICT Reduce B ::= Ta Ta prec p2
CONFLICT Reduce C ::= Ta Ta prec p3
Tb : Reduce A ::= Ta Ta prec p1
Conflict contributions
[A ::= Ta Ta ·, {Ta}]
12 : Reduce A ::= Ta Ta
[B ::= Ta Ta ·, {Ta}]
12 : Reduce B ::= Ta Ta
[C ::= Ta Ta ·, {Ta}]
12 : Reduce C ::= Ta Ta
State 13 [13.0]
Kernel
[S ::= Ta A Ta ·, {"⊥"}]
Expand Down
12 changes: 12 additions & 0 deletions bootstrap/test/hocc/IelrFig4_rno.expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ IELR(1) States
CONFLICT Reduce A ::= Ta
CONFLICT Reduce B ::= Ta
Tb : Reduce A ::= Ta
Conflict contributions
[A ::= Ta ·, {Ta}]
4 : Reduce A ::= Ta
[A ::= Ta ·, {Tb}]
4 : Reduce A ::= Ta
[B ::= Ta ·, {Ta}]
4 : Reduce B ::= Ta
State 5 [5.0]
Kernel
[Sn ::= Ta A · Ta, {"⊥"}]
Expand All @@ -111,6 +118,11 @@ CONFLICT Reduce B ::= Ta
Actions
Ta : Reduce A ::= Ta
Tb : Reduce B ::= Ta
Conflict contributions
[A ::= Ta ·, {Ta}]
4 : Reduce A ::= Ta
[B ::= Ta ·, {Tb}]
4 : Reduce B ::= Ta
State 8 [7.0]
Kernel
[Sn ::= Tb A · Ta, {"⊥"}]
Expand Down
9 changes: 9 additions & 0 deletions bootstrap/test/hocc/IelrFig5.expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ IELR(1) States
Gotos
C : 10
D : 11
Conflict contributions
[A ::= Ta · C D E, {Ta}]
14 : Reduce E ::= epsilon
State 5 [5.0]
Kernel
[S ::= Ta A · B Ta, {"⊥"}]
Expand Down Expand Up @@ -158,6 +161,9 @@ IELR(1) States
Ta : ShiftPrefix 9 prec p2
Gotos
D : 16
Conflict contributions
[A ::= Ta C · D E, {Ta}]
14 : Reduce E ::= epsilon
State 11 [10.0]
Kernel
[C ::= D ·, {Ta}]
Expand Down Expand Up @@ -199,6 +205,9 @@ IELR(1) States
Tc : Reduce E ::= epsilon prec p1
Gotos
E : 21
Conflict contributions
[A ::= Ta C D · E, {Ta}]
14 : Reduce E ::= epsilon
State 17 [15.0]
Kernel
[S ::= Ta A B Ta ·, {"⊥"}]
Expand Down
Loading

0 comments on commit 916fca5

Please sign in to comment.