@@ -647,6 +647,18 @@ issue3784: variant2: {
647
647
cname?: string
648
648
}
649
649
}
650
+ -- issue3958.cue --
651
+ issue3958: t1: {
652
+ #schema: int | *1
653
+ #schema: int | *3
654
+
655
+ test1: #schema & {int | *2}
656
+ test2: #schema & {int | *4}
657
+ }
658
+ issue3958: t2: {
659
+ a: (int | *4) & (int | *1) & (int | *3) & (int | *8)
660
+ b: (int | *4) & (int | *1) & (int | *3)
661
+ }
650
662
-- out/evalalpha --
651
663
(struct){
652
664
disambiguateClosed: (struct){
@@ -1732,6 +1744,17 @@ issue3784: variant2: {
1732
1744
}
1733
1745
}
1734
1746
}
1747
+ issue3958: (struct){
1748
+ t1: (struct){
1749
+ #schema: (int){ |((int){ int }, (int){ 3 }, (int){ 1 }) }
1750
+ test1: (int){ |(*(int){ 3 }, (int){ int }, (int){ 1 }, (int){ 2 }) }
1751
+ test2: (int){ |(*(int){ 3 }, (int){ int }, (int){ 1 }, (int){ 4 }) }
1752
+ }
1753
+ t2: (struct){
1754
+ a: (int){ |((int){ int }, (int){ 8 }, (int){ 3 }, (int){ 1 }, (int){ 4 }) }
1755
+ b: (int){ |(*(int){ 3 }, (int){ int }, (int){ 1 }, (int){ 4 }) }
1756
+ }
1757
+ }
1735
1758
issue770: (struct){
1736
1759
#A: (#struct){
1737
1760
v: (string){ |((string){ "a" }, (string){ "b" }, (string){ "c" }) }
@@ -2608,7 +2631,23 @@ diff old new
2608
2631
}
2609
2632
}
2610
2633
}
2611
- @@ -1216,10 +1097,10 @@
2634
+ @@ -1204,12 +1085,12 @@
2635
+ issue3958: (struct){
2636
+ t1: (struct){
2637
+ #schema: (int){ |((int){ int }, (int){ 3 }, (int){ 1 }) }
2638
+ - test1: (int){ |((int){ int }, (int){ 2 }, (int){ 3 }, (int){ 1 }) }
2639
+ - test2: (int){ |((int){ int }, (int){ 4 }, (int){ 3 }, (int){ 1 }) }
2640
+ + test1: (int){ |(*(int){ 3 }, (int){ int }, (int){ 1 }, (int){ 2 }) }
2641
+ + test2: (int){ |(*(int){ 3 }, (int){ int }, (int){ 1 }, (int){ 4 }) }
2642
+ }
2643
+ t2: (struct){
2644
+ a: (int){ |((int){ int }, (int){ 8 }, (int){ 3 }, (int){ 1 }, (int){ 4 }) }
2645
+ - b: (int){ |((int){ int }, (int){ 3 }, (int){ 1 }, (int){ 4 }) }
2646
+ + b: (int){ |(*(int){ 3 }, (int){ int }, (int){ 1 }, (int){ 4 }) }
2647
+ }
2648
+ }
2649
+ issue770: (struct){
2650
+ @@ -1227,10 +1108,10 @@
2612
2651
v: (string){ |(*(string){ "a" }, (string){ "b" }, (string){ "c" }) }
2613
2652
}
2614
2653
c: (#struct){
@@ -2622,54 +2661,54 @@ diff old new
2622
2661
}
2623
2662
}
2624
2663
-- out/evalalpha/stats --
2625
- Leaks: 2786
2664
+ Leaks: 2856
2626
2665
Freed: 0
2627
2666
Reused: 0
2628
- Allocs: 2786
2667
+ Allocs: 2856
2629
2668
Retain: 0
2630
2669
2631
- Unifications: 686
2632
- Conjuncts: 2767
2633
- Disjuncts: 1290
2670
+ Unifications: 694
2671
+ Conjuncts: 2853
2672
+ Disjuncts: 1352
2634
2673
2635
2674
CloseIDElems: 6129
2636
- NumCloseIDs: 317
2675
+ NumCloseIDs: 321
2637
2676
-- diff/-out/evalalpha/stats<==>+out/eval/stats --
2638
2677
diff old new
2639
2678
--- old
2640
2679
+++ new
2641
2680
@@ -1,9 +1,12 @@
2642
2681
-Leaks: 9
2643
- -Freed: 2786
2644
- -Reused: 2771
2682
+ -Freed: 2856
2683
+ -Reused: 2841
2645
2684
-Allocs: 24
2646
2685
-Retain: 123
2647
2686
-
2648
- -Unifications: 1427
2649
- -Conjuncts: 4068
2650
- -Disjuncts: 2909
2651
- +Leaks: 2786
2687
+ -Unifications: 1435
2688
+ -Conjuncts: 4154
2689
+ -Disjuncts: 2979
2690
+ +Leaks: 2856
2652
2691
+Freed: 0
2653
2692
+Reused: 0
2654
- +Allocs: 2786
2693
+ +Allocs: 2856
2655
2694
+Retain: 0
2656
2695
+
2657
- +Unifications: 686
2658
- +Conjuncts: 2767
2659
- +Disjuncts: 1290
2696
+ +Unifications: 694
2697
+ +Conjuncts: 2853
2698
+ +Disjuncts: 1352
2660
2699
+
2661
2700
+CloseIDElems: 6129
2662
- +NumCloseIDs: 317
2701
+ +NumCloseIDs: 321
2663
2702
-- out/eval/stats --
2664
2703
Leaks: 9
2665
- Freed: 2786
2666
- Reused: 2771
2704
+ Freed: 2856
2705
+ Reused: 2841
2667
2706
Allocs: 24
2668
2707
Retain: 123
2669
2708
2670
- Unifications: 1427
2671
- Conjuncts: 4068
2672
- Disjuncts: 2909
2709
+ Unifications: 1435
2710
+ Conjuncts: 4154
2711
+ Disjuncts: 2979
2673
2712
-- diff/todo/p2 --
2674
2713
noChildError.issue1808.#type: one disjunction options eliminated due to earlier detected structural cycle. May be okay, but investigate.
2675
2714
issue2209.simplified.full._X: ditto
@@ -3885,6 +3924,17 @@ Result:
3885
3924
}
3886
3925
}
3887
3926
}
3927
+ issue3958: (struct){
3928
+ t1: (struct){
3929
+ #schema: (int){ |((int){ int }, (int){ 3 }, (int){ 1 }) }
3930
+ test1: (int){ |((int){ int }, (int){ 2 }, (int){ 3 }, (int){ 1 }) }
3931
+ test2: (int){ |((int){ int }, (int){ 4 }, (int){ 3 }, (int){ 1 }) }
3932
+ }
3933
+ t2: (struct){
3934
+ a: (int){ |((int){ int }, (int){ 8 }, (int){ 3 }, (int){ 1 }, (int){ 4 }) }
3935
+ b: (int){ |((int){ int }, (int){ 3 }, (int){ 1 }, (int){ 4 }) }
3936
+ }
3937
+ }
3888
3938
issue770: (struct){
3889
3939
#A: (#struct){
3890
3940
v: (string){ |((string){ "a" }, (string){ "b" }, (string){ "c" }) }
@@ -5153,6 +5203,27 @@ Result:
5153
5203
}
5154
5204
}
5155
5205
}
5206
+ --- issue3958.cue
5207
+ {
5208
+ issue3958: {
5209
+ t1: {
5210
+ #schema: (int|*1)
5211
+ #schema: (int|*3)
5212
+ test1: (〈0;#schema〉 & {
5213
+ (int|*2)
5214
+ })
5215
+ test2: (〈0;#schema〉 & {
5216
+ (int|*4)
5217
+ })
5218
+ }
5219
+ }
5220
+ issue3958: {
5221
+ t2: {
5222
+ a: ((((int|*4) & (int|*1)) & (int|*3)) & (int|*8))
5223
+ b: (((int|*4) & (int|*1)) & (int|*3))
5224
+ }
5225
+ }
5226
+ }
5156
5227
--- issue770.cue
5157
5228
{
5158
5229
issue770: {
0 commit comments