Skip to content

Commit fb4a4f6

Browse files
committed
Update failing test
1 parent c9a6996 commit fb4a4f6

File tree

1 file changed

+48
-45
lines changed

1 file changed

+48
-45
lines changed

tests/semantic/rule_typecompat/rule_typecompat.err

+48-45
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,26 @@ The argument's declared type is T in file rule_typecompat.dl at line 6
2222
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 18
2323
A(x) :- F(x,x).
2424
--^-------------
25-
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 18
25+
Following constraints are incompatible:
26+
Type of variable 'x' should be a subtype of 'R' in file rule_typecompat.dl at line 18
2627
A(x) :- F(x,x).
27-
----------^-----
28-
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 18
28+
--------^-------
29+
Type of variable 'x' should be a subtype of 'T' in file rule_typecompat.dl at line 18
2930
A(x) :- F(x,x).
30-
------------^---
31+
--------^-------
3132
Warning: Variable y only occurs once in file rule_typecompat.dl at line 20
3233
A(x) :- F(y,x).
3334
----------^-----
3435
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 23
3536
A(x) :- G(x,x).
3637
--^-------------
37-
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 23
38+
Following constraints are incompatible:
39+
Type of variable 'x' should be a subtype of 'R' in file rule_typecompat.dl at line 23
3840
A(x) :- G(x,x).
39-
----------^-----
40-
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 23
41+
--------^-------
42+
Type of variable 'x' should be a subtype of 'T' in file rule_typecompat.dl at line 23
4143
A(x) :- G(x,x).
42-
------------^---
44+
--------^-------
4345
Warning: Variable y only occurs once in file rule_typecompat.dl at line 25
4446
A(x) :- G(x,y).
4547
------------^---
@@ -58,12 +60,13 @@ G(x,y) :- A(x).
5860
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 33
5961
A(x) :- B(x), C(x).
6062
--^-----------------
61-
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 33
63+
Following constraints are incompatible:
64+
Type of variable 'x' should be a subtype of 'Q' in file rule_typecompat.dl at line 33
6265
A(x) :- B(x), C(x).
63-
----------^---------
64-
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 33
66+
--------------^-----
67+
Type of variable 'x' should be a subtype of 'S' in file rule_typecompat.dl at line 33
6568
A(x) :- B(x), C(x).
66-
----------------^---
69+
--------^-----------
6770
Warning: Variable y only occurs once in file rule_typecompat.dl at line 36
6871
A(x) :- A(x), B(y), C(z).
6972
----------------^---------
@@ -85,39 +88,49 @@ F(x,y) :- F(x,z), G(z,x).
8588
Error: Unable to deduce type for variable v in file rule_typecompat.dl at line 47
8689
F(x,y) :- F(x,v), F(w,y), A(v), D(v).
8790
--------------^-----------------------
88-
Warning: Variable w only occurs once in file rule_typecompat.dl at line 47
91+
Following constraints are incompatible:
92+
Type of variable 'v' should be a subtype of 'R' in file rule_typecompat.dl at line 47
8993
F(x,y) :- F(x,v), F(w,y), A(v), D(v).
90-
--------------------^-----------------
91-
Error: Unable to deduce type for variable v in file rule_typecompat.dl at line 47
94+
--------------------------------^-----
95+
Type of variable 'v' should be a subtype of 'T' in file rule_typecompat.dl at line 47
9296
F(x,y) :- F(x,v), F(w,y), A(v), D(v).
93-
----------------------------^---------
94-
Error: Unable to deduce type for variable v in file rule_typecompat.dl at line 47
97+
----------^---------------------------
98+
Warning: Variable w only occurs once in file rule_typecompat.dl at line 47
9599
F(x,y) :- F(x,v), F(w,y), A(v), D(v).
96-
----------------------------------^---
100+
--------------------^-----------------
97101
Warning: Variable v only occurs once in file rule_typecompat.dl at line 48
98102
F(x,y) :- F(x,v), F(w,y), A(w), D(w).
99103
--------------^-----------------------
100104
Error: Unable to deduce type for variable w in file rule_typecompat.dl at line 48
101105
F(x,y) :- F(x,v), F(w,y), A(w), D(w).
102106
--------------------^-----------------
103-
Error: Unable to deduce type for variable w in file rule_typecompat.dl at line 48
107+
Following constraints are incompatible:
108+
Type of variable 'w' should be a subtype of 'R' in file rule_typecompat.dl at line 48
104109
F(x,y) :- F(x,v), F(w,y), A(w), D(w).
105-
----------------------------^---------
106-
Error: Unable to deduce type for variable w in file rule_typecompat.dl at line 48
110+
------------------^-------------------
111+
Type of variable 'w' should be a subtype of 'T' in file rule_typecompat.dl at line 48
107112
F(x,y) :- F(x,v), F(w,y), A(w), D(w).
108-
----------------------------------^---
113+
--------------------------^-----------
109114
Error: Unable to deduce type for variable v in file rule_typecompat.dl at line 49
110115
F(x,y) :- F(x,v), F(w,y), A(w), D(v).
111116
--------------^-----------------------
117+
Following constraints are incompatible:
118+
Type of variable 'v' should be a subtype of 'R' in file rule_typecompat.dl at line 49
119+
F(x,y) :- F(x,v), F(w,y), A(w), D(v).
120+
--------------------------------^-----
121+
Type of variable 'v' should be a subtype of 'T' in file rule_typecompat.dl at line 49
122+
F(x,y) :- F(x,v), F(w,y), A(w), D(v).
123+
----------^---------------------------
112124
Error: Unable to deduce type for variable w in file rule_typecompat.dl at line 49
113125
F(x,y) :- F(x,v), F(w,y), A(w), D(v).
114126
--------------------^-----------------
115-
Error: Unable to deduce type for variable w in file rule_typecompat.dl at line 49
127+
Following constraints are incompatible:
128+
Type of variable 'w' should be a subtype of 'R' in file rule_typecompat.dl at line 49
116129
F(x,y) :- F(x,v), F(w,y), A(w), D(v).
117-
----------------------------^---------
118-
Error: Unable to deduce type for variable v in file rule_typecompat.dl at line 49
130+
------------------^-------------------
131+
Type of variable 'w' should be a subtype of 'T' in file rule_typecompat.dl at line 49
119132
F(x,y) :- F(x,v), F(w,y), A(w), D(v).
120-
----------------------------------^---
133+
--------------------------^-----------
121134
Warning: Variable w only occurs once in file rule_typecompat.dl at line 52
122135
F(x,y) :- F(x,v), F(w,y), !H(v), !D(v).
123136
--------------------^-------------------
@@ -127,33 +140,23 @@ F(x,y) :- F(x,v), F(w,y), !H(w), !D(w).
127140
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 57
128141
F(x,y) :- F(x,y), x > y.
129142
--^----------------------
143+
Following constraints are incompatible:
144+
var(y) <: var(x)
130145
Error: Unable to deduce type for variable y in file rule_typecompat.dl at line 57
131146
F(x,y) :- F(x,y), x > y.
132147
----^--------------------
133-
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 57
134-
F(x,y) :- F(x,y), x > y.
135-
------------^------------
136-
Error: Unable to deduce type for variable y in file rule_typecompat.dl at line 57
137-
F(x,y) :- F(x,y), x > y.
138-
--------------^----------
139-
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 57
140-
F(x,y) :- F(x,y), x > y.
141-
------------------^------
142-
Error: Unable to deduce type for variable y in file rule_typecompat.dl at line 57
143-
F(x,y) :- F(x,y), x > y.
144-
----------------------^--
148+
Following constraints are incompatible:
149+
var(x) <: var(y)
145150
Error: Unable to deduce type for variable v in file rule_typecompat.dl at line 59
146151
F(x,y) :- F(x,v), F(w,y), w != v.
147152
--------------^-------------------
153+
Following constraints are incompatible:
154+
var(w) <: var(v)
148155
Error: Unable to deduce type for variable w in file rule_typecompat.dl at line 59
149156
F(x,y) :- F(x,v), F(w,y), w != v.
150157
--------------------^-------------
151-
Error: Unable to deduce type for variable w in file rule_typecompat.dl at line 59
152-
F(x,y) :- F(x,v), F(w,y), w != v.
153-
--------------------------^-------
154-
Error: Unable to deduce type for variable v in file rule_typecompat.dl at line 59
155-
F(x,y) :- F(x,v), F(w,y), w != v.
156-
-------------------------------^--
158+
Following constraints are incompatible:
159+
var(v) <: var(w)
157160
Error: Ungrounded variable t in file rule_typecompat.dl at line 62
158161
F(x,y) :- F(x,y), x > t.
159162
----------------------^--
@@ -166,4 +169,4 @@ F(x,y) :- F(x,y), t < x.
166169
Warning: Variable t only occurs once in file rule_typecompat.dl at line 63
167170
F(x,y) :- F(x,y), t < x.
168171
------------------^------
169-
36 errors generated, evaluation aborted
172+
18 errors generated, evaluation aborted

0 commit comments

Comments
 (0)