1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.qedeq.kernel.bo.logic.model; |
17 |
|
|
18 |
|
import org.qedeq.kernel.bo.test.QedeqBoTestCase; |
19 |
|
import org.qedeq.kernel.se.base.list.Element; |
20 |
|
import org.qedeq.kernel.xml.parser.BasicParser; |
21 |
|
|
22 |
|
|
23 |
|
@link |
24 |
|
|
25 |
|
@author |
26 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (148) |
Complexity: 50 |
Complexity Density: 0.51 |
|
27 |
|
public abstract class CalculateTruthTestCase extends QedeqBoTestCase { |
28 |
|
|
29 |
|
|
30 |
|
private Model model; |
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
@param |
37 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
38 |
189
|
public CalculateTruthTestCase(final Model model) {... |
39 |
189
|
super(); |
40 |
189
|
this.model = model; |
41 |
|
} |
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
@return |
47 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
48 |
189
|
public Model getModel() {... |
49 |
189
|
return model; |
50 |
|
} |
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
@param |
56 |
|
@return |
57 |
|
@throws |
58 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
141
|
protected boolean isTautology(final Element fomula) throws HeuristicException {... |
60 |
141
|
return CalculateTruth.isTautology(getModel(), fomula); |
61 |
|
} |
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
@throws |
69 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
70 |
4
|
public void testTautology01() throws Exception {... |
71 |
4
|
final Element ele = BasicParser.createElement( |
72 |
|
"<NOT><NOT><PREDVAR id=\"A\"/></NOT></NOT>"); |
73 |
|
|
74 |
4
|
assertFalse(isTautology(ele)); |
75 |
|
} |
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
@throws |
83 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
84 |
4
|
public void testTautology02() throws Exception {... |
85 |
4
|
final Element ele = BasicParser.createElement( |
86 |
|
"<OR><PREDVAR id=\"A\"/><NOT><PREDVAR id=\"A\"/></NOT></OR>"); |
87 |
|
|
88 |
4
|
assertTrue(isTautology(ele)); |
89 |
|
} |
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
@throws |
97 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
98 |
4
|
public void testTautology03() throws Exception {... |
99 |
4
|
final Element ele = BasicParser.createElement( |
100 |
|
"<AND><PREDVAR id=\"A\"/><NOT><PREDVAR id=\"A\"/></NOT></AND>"); |
101 |
|
|
102 |
4
|
assertFalse(isTautology(ele)); |
103 |
|
} |
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
|
109 |
|
|
110 |
|
@throws |
111 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
112 |
4
|
public void testTautology04() throws Exception {... |
113 |
4
|
final Element ele = BasicParser.createElement( |
114 |
|
"<IMPL><PREDVAR id=\"A\"/><NOT><PREDVAR id=\"A\"/></NOT></IMPL>"); |
115 |
|
|
116 |
4
|
assertFalse(isTautology(ele)); |
117 |
|
} |
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
|
|
123 |
|
|
124 |
|
@throws |
125 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
126 |
4
|
public void testTautology05() throws Exception {... |
127 |
4
|
final Element ele = BasicParser.createElement( |
128 |
|
"<IMPL><NOT><PREDVAR id=\"A\"/></NOT><PREDVAR id=\"A\"/></IMPL>"); |
129 |
|
|
130 |
4
|
assertFalse(isTautology(ele)); |
131 |
|
} |
132 |
|
|
133 |
|
|
134 |
|
|
135 |
|
|
136 |
|
|
137 |
|
|
138 |
|
@throws |
139 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
140 |
4
|
public void testTautology06() throws Exception {... |
141 |
4
|
final Element ele = BasicParser.createElement( |
142 |
|
"<IMPL><PREDVAR id=\"A\"/><PREDVAR id=\"A\"/></IMPL>"); |
143 |
|
|
144 |
4
|
assertTrue(isTautology(ele)); |
145 |
|
} |
146 |
|
|
147 |
|
|
148 |
|
|
149 |
|
|
150 |
|
|
151 |
|
|
152 |
|
@throws |
153 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
154 |
4
|
public void testTautology07() throws Exception {... |
155 |
4
|
final Element ele = BasicParser.createElement( |
156 |
|
"<IMPL><PREDVAR id=\"A\"/><NOT><NOT><PREDVAR id=\"A\"/></NOT></NOT></IMPL>"); |
157 |
|
|
158 |
4
|
assertTrue(isTautology(ele)); |
159 |
|
} |
160 |
|
|
161 |
|
|
162 |
|
|
163 |
|
|
164 |
|
|
165 |
|
|
166 |
|
@throws |
167 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
168 |
4
|
public void testTautology08() throws Exception {... |
169 |
4
|
final Element ele = BasicParser.createElement( |
170 |
|
"<EQUI><PREDVAR id=\"A\"/><NOT><NOT><PREDVAR id=\"A\"/></NOT></NOT></EQUI>"); |
171 |
|
|
172 |
4
|
assertTrue(isTautology(ele)); |
173 |
|
} |
174 |
|
|
175 |
|
|
176 |
|
|
177 |
|
|
178 |
|
|
179 |
|
|
180 |
|
@throws |
181 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
182 |
4
|
public void testTautology09() throws Exception {... |
183 |
4
|
final Element ele = BasicParser.createElement( |
184 |
|
"<IMPL><PREDVAR id=\"A\"/><OR><PREDVAR id=\"B\"/><PREDVAR id=\"A\"/></OR></IMPL>"); |
185 |
|
|
186 |
4
|
assertTrue(isTautology(ele)); |
187 |
|
} |
188 |
|
|
189 |
|
|
190 |
|
|
191 |
|
|
192 |
|
|
193 |
|
|
194 |
|
@throws |
195 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
196 |
4
|
public void testTautology10() throws Exception {... |
197 |
4
|
final Element ele = BasicParser.createElement( |
198 |
|
"<IMPL><PREDVAR id=\"A\"/><OR><NOT><PREDVAR id=\"B\"/></NOT><PREDVAR id=\"A\"/></OR></IMPL>"); |
199 |
|
|
200 |
4
|
assertTrue(isTautology(ele)); |
201 |
|
} |
202 |
|
|
203 |
|
|
204 |
|
|
205 |
|
|
206 |
|
|
207 |
|
|
208 |
|
@throws |
209 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
210 |
4
|
public void testTautology11() throws Exception {... |
211 |
4
|
final Element ele = BasicParser.createElement( |
212 |
|
"<IMPL><PREDVAR id=\"A\"/><AND><NOT><PREDVAR id=\"B\"/></NOT><PREDVAR id=\"A\"/></AND></IMPL>"); |
213 |
|
|
214 |
4
|
assertFalse(isTautology(ele)); |
215 |
|
} |
216 |
|
|
217 |
|
|
218 |
|
|
219 |
|
|
220 |
|
|
221 |
|
|
222 |
|
@throws |
223 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
224 |
4
|
public void testTautology12() throws Exception {... |
225 |
4
|
final Element ele = BasicParser.createElement( |
226 |
|
"<IMPL><PREDVAR id=\"A\"/><OR><PREDVAR id=\"A\"/><NOT><PREDVAR id=\"A\"/></NOT></OR></IMPL>"); |
227 |
|
|
228 |
4
|
assertTrue(isTautology(ele)); |
229 |
|
} |
230 |
|
|
231 |
|
|
232 |
|
|
233 |
|
|
234 |
|
|
235 |
|
|
236 |
|
@throws |
237 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
238 |
4
|
public void testTautology13() throws Exception {... |
239 |
4
|
final Element ele = BasicParser.createElement( |
240 |
|
"<IMPL><PREDVAR id=\"A\"/><OR><PREDVAR id=\"A\"/><PREDVAR id=\"B\"/><PREDVAR id=\"C\"/>" |
241 |
|
+ "<PREDVAR id=\"D\"/><PREDVAR id=\"E\"/><PREDVAR id=\"F\"/><PREDVAR id=\"G\"/>" |
242 |
|
+ "<PREDVAR id=\"H\"/><PREDVAR id=\"I\"/><PREDVAR id=\"J\"/></OR></IMPL>"); |
243 |
|
|
244 |
4
|
assertTrue(isTautology(ele)); |
245 |
|
} |
246 |
|
|
247 |
|
|
248 |
|
|
249 |
|
|
250 |
|
|
251 |
|
|
252 |
|
@throws |
253 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
254 |
4
|
public void testTautology14() throws Exception {... |
255 |
4
|
final Element ele = BasicParser.createElement( |
256 |
|
"<EQUI><OR><PREDVAR id=\"A\"/><PREDVAR id=\"B\"/></OR>" |
257 |
|
+ "<OR><PREDVAR id=\"B\"/><PREDVAR id=\"A\"/></OR></EQUI>"); |
258 |
|
|
259 |
4
|
assertTrue(isTautology(ele)); |
260 |
|
} |
261 |
|
|
262 |
|
|
263 |
|
|
264 |
|
|
265 |
|
|
266 |
|
|
267 |
|
@throws |
268 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
269 |
4
|
public void testTautology15() throws Exception {... |
270 |
4
|
final Element ele = BasicParser.createElement( |
271 |
|
"<EQUI><AND><PREDVAR id=\"A\"/><PREDVAR id=\"B\"/></AND>" |
272 |
|
+ "<AND><PREDVAR id=\"B\"/><PREDVAR id=\"A\"/></AND></EQUI>"); |
273 |
|
|
274 |
4
|
assertTrue(isTautology(ele)); |
275 |
|
} |
276 |
|
|
277 |
|
|
278 |
|
|
279 |
|
|
280 |
|
|
281 |
|
|
282 |
|
@throws |
283 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
284 |
4
|
public void testTautology16() throws Exception {... |
285 |
4
|
final Element ele = BasicParser.createElement( |
286 |
|
"<EQUI><AND><PREDVAR id=\"A\"/><PREDVAR id=\"B\"/></AND>" |
287 |
|
+ "<OR><PREDVAR id=\"B\"/><PREDVAR id=\"A\"/></OR></EQUI>"); |
288 |
|
|
289 |
4
|
assertFalse(isTautology(ele)); |
290 |
|
} |
291 |
|
|
292 |
|
|
293 |
|
|
294 |
|
|
295 |
|
|
296 |
|
|
297 |
|
@throws |
298 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
299 |
4
|
public void testTautology17() throws Exception {... |
300 |
4
|
final Element ele = BasicParser.createElement( |
301 |
|
"<EQUI><AND><NOT><PREDVAR id=\"A\"/></NOT><PREDVAR id=\"B\"/></AND>" |
302 |
|
+ "<NOT><OR><NOT><PREDVAR id=\"B\"/></NOT><PREDVAR id=\"A\"/></OR></NOT></EQUI>"); |
303 |
|
|
304 |
4
|
assertTrue(isTautology(ele)); |
305 |
|
} |
306 |
|
|
307 |
|
|
308 |
|
|
309 |
|
|
310 |
|
|
311 |
|
|
312 |
|
@throws |
313 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
314 |
4
|
public void testTautology18() throws Exception {... |
315 |
4
|
final Element ele = BasicParser.createElement( |
316 |
|
"<EQUI><PREDVAR id=\"A\"><VAR id=\"x\"/><VAR id=\"y\"/></PREDVAR>" |
317 |
|
+ "<PREDVAR id=\"A\"><VAR id=\"x\"/><VAR id=\"y\"/></PREDVAR></EQUI>"); |
318 |
|
|
319 |
4
|
assertTrue(isTautology(ele)); |
320 |
|
} |
321 |
|
|
322 |
|
|
323 |
|
|
324 |
|
|
325 |
|
|
326 |
|
|
327 |
|
@throws |
328 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
329 |
2
|
public void testTautology19() throws Exception {... |
330 |
2
|
final Element ele = BasicParser.createElement( |
331 |
|
"<EQUI><PREDVAR id=\"A\"><VAR id=\"x\"/><VAR id=\"y\"/></PREDVAR>" |
332 |
|
+ "<PREDVAR id=\"A\"><VAR id=\"y\"/><VAR id=\"x\"/></PREDVAR></EQUI>"); |
333 |
|
|
334 |
2
|
assertFalse(isTautology(ele)); |
335 |
|
} |
336 |
|
|
337 |
|
|
338 |
|
|
339 |
|
|
340 |
|
|
341 |
|
|
342 |
|
@throws |
343 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
344 |
2
|
public void testTautology20() throws Exception {... |
345 |
2
|
final Element ele = BasicParser.createElement( |
346 |
|
"<EQUI><PREDVAR id=\"A\"><VAR id=\"x\"/><VAR id=\"y\"/></PREDVAR>" |
347 |
|
+ "<PREDVAR id=\"A\"><VAR id=\"x\"/><VAR id=\"x\"/></PREDVAR></EQUI>"); |
348 |
|
|
349 |
2
|
assertFalse(isTautology(ele)); |
350 |
|
} |
351 |
|
|
352 |
|
|
353 |
|
|
354 |
|
|
355 |
|
|
356 |
|
|
357 |
|
@throws |
358 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
359 |
2
|
public void testTautology21() throws Exception {... |
360 |
2
|
final Element ele = BasicParser.createElement( |
361 |
|
"<EQUI><PREDVAR id=\"A\"><VAR id=\"y\"/></PREDVAR>" |
362 |
|
+ "<PREDVAR id=\"A\"><VAR id=\"x\"/></PREDVAR></EQUI>"); |
363 |
|
|
364 |
2
|
assertFalse(isTautology(ele)); |
365 |
|
} |
366 |
|
|
367 |
|
|
368 |
|
|
369 |
|
|
370 |
|
|
371 |
|
|
372 |
|
@throws |
373 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
374 |
4
|
public void testTautology22() throws Exception {... |
375 |
4
|
final Element ele = BasicParser.createElement( |
376 |
|
"<EQUI><PREDVAR id=\"A\"><VAR id=\"x\"/><VAR id=\"y\"/></PREDVAR>" |
377 |
|
+ "<PREDVAR id=\"A\"><VAR id=\"x\"/></PREDVAR></EQUI>"); |
378 |
|
|
379 |
4
|
assertFalse(isTautology(ele)); |
380 |
|
} |
381 |
|
|
382 |
|
|
383 |
|
|
384 |
|
|
385 |
|
|
386 |
|
|
387 |
|
@throws |
388 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
389 |
4
|
public void testTautology23() throws Exception {... |
390 |
4
|
final Element ele = BasicParser.createElement( |
391 |
|
"<EQUI><PREDVAR id=\"A\"/>" |
392 |
|
+ "<PREDVAR id=\"A\"><VAR id=\"x\"/></PREDVAR></EQUI>"); |
393 |
|
|
394 |
4
|
assertFalse(isTautology(ele)); |
395 |
|
} |
396 |
|
|
397 |
|
|
398 |
|
|
399 |
|
|
400 |
|
|
401 |
|
|
402 |
|
@throws |
403 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
404 |
4
|
public void testTautology24() throws Exception {... |
405 |
4
|
final Element ele = BasicParser.createElement( |
406 |
|
"<EQUI><PREDVAR id=\"A\"/>" |
407 |
|
+ "<PREDVAR id=\"B\"/></EQUI>"); |
408 |
|
|
409 |
4
|
assertFalse(isTautology(ele)); |
410 |
|
} |
411 |
|
|
412 |
|
|
413 |
|
|
414 |
|
|
415 |
|
|
416 |
|
|
417 |
|
@throws |
418 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
419 |
4
|
public void testTautology25() throws Exception {... |
420 |
4
|
final Element ele = BasicParser.createElement( |
421 |
|
"<IMPL><PREDVAR id=\"A\"/>" |
422 |
|
+ "<PREDVAR id=\"B\"/></IMPL>"); |
423 |
|
|
424 |
4
|
assertFalse(isTautology(ele)); |
425 |
|
} |
426 |
|
|
427 |
|
|
428 |
|
|
429 |
|
|
430 |
|
|
431 |
|
|
432 |
|
@throws |
433 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
434 |
4
|
public void testTautology26() throws Exception {... |
435 |
4
|
final Element ele = BasicParser.createElement( |
436 |
|
"<IMPL><PREDVAR id=\"A\"/>" |
437 |
|
+ "<PREDVAR id=\"A\"><VAR id=\"x\"/></PREDVAR></IMPL>"); |
438 |
|
|
439 |
4
|
assertFalse(isTautology(ele)); |
440 |
|
} |
441 |
|
|
442 |
|
|
443 |
|
|
444 |
|
|
445 |
|
|
446 |
|
|
447 |
|
@throws |
448 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
449 |
4
|
public void testTautology27() throws Exception {... |
450 |
4
|
final Element ele = BasicParser.createElement( |
451 |
|
"<FORALL><VAR id=\"x\"/><IMPL><PREDVAR id=\"A\"><VAR id=\"x\"/></PREDVAR>" |
452 |
|
+ "<PREDVAR id=\"A\"><VAR id=\"x\"/></PREDVAR></IMPL></FORALL>"); |
453 |
|
|
454 |
4
|
assertTrue(isTautology(ele)); |
455 |
|
} |
456 |
|
|
457 |
|
|
458 |
|
|
459 |
|
|
460 |
|
|
461 |
|
|
462 |
|
@throws |
463 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
464 |
2
|
public void testTautology28() throws Exception {... |
465 |
2
|
final Element ele = BasicParser.createElement( |
466 |
|
"<FORALL><VAR id=\"x\"/><FORALL><VAR id=\"y\"/><IMPL><PREDVAR id=\"A\"><VAR id=\"x\"/></PREDVAR>" |
467 |
|
+ "<PREDVAR id=\"A\"><VAR id=\"y\"/></PREDVAR></IMPL></FORALL></FORALL>"); |
468 |
|
|
469 |
2
|
assertFalse(isTautology(ele)); |
470 |
|
} |
471 |
|
|
472 |
|
|
473 |
|
|
474 |
|
|
475 |
|
|
476 |
|
|
477 |
|
@throws |
478 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
479 |
4
|
public void testTautology29() throws Exception {... |
480 |
4
|
final Element ele = BasicParser.createElement( |
481 |
|
"<FORALL><VAR id=\"x\"/><FORALL><VAR id=\"y\"/><IMPL><PREDVAR id=\"A\"><VAR id=\"x\"/><VAR id=\"y\"/></PREDVAR>" |
482 |
|
+ "<PREDVAR id=\"A\"><VAR id=\"x\"/><VAR id=\"y\"/></PREDVAR></IMPL></FORALL></FORALL>"); |
483 |
|
|
484 |
4
|
assertTrue(isTautology(ele)); |
485 |
|
} |
486 |
|
|
487 |
|
|
488 |
|
|
489 |
|
|
490 |
|
|
491 |
|
|
492 |
|
@throws |
493 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
494 |
4
|
public void testTautology30() throws Exception {... |
495 |
4
|
final Element ele = BasicParser.createElement( |
496 |
|
"<FORALL><VAR id=\"x\"/><FORALL><VAR id=\"y\"/><PREDVAR id=\"A\"><VAR id=\"x\"/><VAR id=\"y\"/></PREDVAR>" |
497 |
|
+ "<PREDVAR id=\"A\"><VAR id=\"x\"/><VAR id=\"y\"/></PREDVAR></FORALL></FORALL>"); |
498 |
|
|
499 |
4
|
assertTrue(isTautology(ele)); |
500 |
|
} |
501 |
|
|
502 |
|
|
503 |
|
|
504 |
|
|
505 |
|
|
506 |
|
|
507 |
|
@throws |
508 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
509 |
2
|
public void testTautology31() throws Exception {... |
510 |
2
|
final Element ele = BasicParser.createElement( |
511 |
|
"<FORALL><VAR id=\"x\"/><FORALL><VAR id=\"y\"/><PREDVAR id=\"A\"><VAR id=\"x\"/><VAR id=\"y\"/></PREDVAR>" |
512 |
|
+ "<PREDVAR id=\"A\"><VAR id=\"y\"/><VAR id=\"x\"/></PREDVAR></FORALL></FORALL>"); |
513 |
|
|
514 |
2
|
assertFalse(isTautology(ele)); |
515 |
|
} |
516 |
|
|
517 |
|
|
518 |
|
|
519 |
|
|
520 |
|
|
521 |
|
|
522 |
|
@throws |
523 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
524 |
4
|
public void testTautology32() throws Exception {... |
525 |
4
|
final Element ele = BasicParser.createElement( |
526 |
|
"<FORALL><VAR id=\"x\"/><EXISTS><VAR id=\"y\"/><IMPL><PREDVAR id=\"A\"><VAR id=\"x\"/></PREDVAR>" |
527 |
|
+ "<PREDVAR id=\"A\"><VAR id=\"y\"/></PREDVAR></IMPL></EXISTS></FORALL>"); |
528 |
|
|
529 |
4
|
assertTrue(isTautology(ele)); |
530 |
|
} |
531 |
|
|
532 |
|
|
533 |
|
|
534 |
|
|
535 |
|
|
536 |
|
|
537 |
|
@throws |
538 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
539 |
4
|
public void testTautology33() throws Exception {... |
540 |
4
|
final Element ele = BasicParser.createElement( |
541 |
|
"<EXISTSU><VAR id=\"y\"/><PREDCON id=\"equal\"><VAR id=\"x\"/><VAR id=\"y\"/></PREDCON>" |
542 |
|
+ "</EXISTSU>"); |
543 |
|
|
544 |
4
|
assertTrue(isTautology(ele)); |
545 |
|
} |
546 |
|
|
547 |
|
|
548 |
|
|
549 |
|
|
550 |
|
|
551 |
|
|
552 |
|
@throws |
553 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
554 |
2
|
public void testTautology34() throws Exception {... |
555 |
2
|
final Element ele = BasicParser.createElement( |
556 |
|
"<EXISTSU><VAR id=\"y\"/><PREDCON id=\"equal\"><VAR id=\"y\"/><VAR id=\"y\"/></PREDCON>" |
557 |
|
+ "</EXISTSU>"); |
558 |
|
|
559 |
2
|
assertFalse(isTautology(ele)); |
560 |
|
} |
561 |
|
|
562 |
|
|
563 |
|
|
564 |
|
|
565 |
|
|
566 |
|
|
567 |
|
@throws |
568 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
569 |
4
|
public void testTautology35() throws Exception {... |
570 |
4
|
final Element ele = BasicParser.createElement( |
571 |
|
"<EXISTS><VAR id=\"y\"/><PREDCON id=\"equal\"><VAR id=\"y\"/><VAR id=\"y\"/></PREDCON>" |
572 |
|
+ "</EXISTS>"); |
573 |
|
|
574 |
4
|
assertTrue(isTautology(ele)); |
575 |
|
} |
576 |
|
|
577 |
|
|
578 |
|
|
579 |
|
|
580 |
|
|
581 |
|
|
582 |
|
@throws |
583 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
584 |
4
|
public void testTautology36() throws Exception {... |
585 |
4
|
final Element ele = BasicParser.createElement( |
586 |
|
"<PREDCON id=\"equal\"><FUNVAR id=\"f\"><VAR id=\"y\"/></FUNVAR>" |
587 |
|
+ "<FUNVAR id=\"f\"><VAR id=\"y\"/></FUNVAR></PREDCON>"); |
588 |
|
|
589 |
4
|
assertTrue(isTautology(ele)); |
590 |
|
} |
591 |
|
|
592 |
|
|
593 |
|
|
594 |
|
|
595 |
|
|
596 |
|
|
597 |
|
@throws |
598 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
599 |
2
|
public void testTautology37() throws Exception {... |
600 |
2
|
final Element ele = BasicParser.createElement( |
601 |
|
"<PREDCON id=\"equal\"><FUNVAR id=\"f\"><VAR id=\"x\"/></FUNVAR>" |
602 |
|
+ "<FUNVAR id=\"f\"><VAR id=\"y\"/></FUNVAR></PREDCON>"); |
603 |
|
|
604 |
2
|
assertFalse(isTautology(ele)); |
605 |
|
} |
606 |
|
|
607 |
|
|
608 |
|
|
609 |
|
|
610 |
|
|
611 |
|
|
612 |
|
@throws |
613 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
614 |
4
|
public void testTautology38() throws Exception {... |
615 |
4
|
final Element ele = BasicParser.createElement( |
616 |
|
"<EXISTS><VAR id=\"y\"/><PREDCON id=\"equal\"><FUNVAR id=\"f\"><VAR id=\"x\"/></FUNVAR>" |
617 |
|
+ "<FUNVAR id=\"f\"><VAR id=\"y\"/></FUNVAR></PREDCON></EXISTS>"); |
618 |
|
|
619 |
4
|
assertTrue(isTautology(ele)); |
620 |
|
} |
621 |
|
|
622 |
|
|
623 |
|
|
624 |
|
|
625 |
|
|
626 |
|
|
627 |
|
@throws |
628 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
629 |
4
|
public void testTautology39() throws Exception {... |
630 |
4
|
final Element ele = BasicParser.createElement( |
631 |
|
"\n <AND>\n" + |
632 |
|
"\n" + |
633 |
|
"\n <PREDCON ref=\"TRUE\" />\n" + |
634 |
|
"\n" + |
635 |
|
"\n <NOT>\n" + |
636 |
|
"\n <PREDCON ref=\"FALSE\" />\n" + |
637 |
|
"\n </NOT>" + |
638 |
|
"\n" + |
639 |
|
"\n <IMPL>" + |
640 |
|
"\n <PREDVAR id=\"A\" />" + |
641 |
|
"\n <PREDVAR id=\"A\" />" + |
642 |
|
"\n </IMPL>" + |
643 |
|
"\n" + |
644 |
|
"\n <EQUI>" + |
645 |
|
"\n <PREDVAR id=\"A\" />" + |
646 |
|
"\n <PREDVAR id=\"A\" />" + |
647 |
|
"\n </EQUI>" + |
648 |
|
"\n" + |
649 |
|
"\n <EQUI>" + |
650 |
|
"\n <OR>" + |
651 |
|
"\n <PREDVAR id=\"A\" />" + |
652 |
|
"\n <PREDVAR id=\"B\" />" + |
653 |
|
"\n </OR>" + |
654 |
|
"\n <OR>" + |
655 |
|
"\n <PREDVAR id=\"B\" />" + |
656 |
|
"\n <PREDVAR id=\"A\" />" + |
657 |
|
"\n </OR>" + |
658 |
|
"\n </EQUI>" + |
659 |
|
"\n" + |
660 |
|
"\n <EQUI>" + |
661 |
|
"\n <AND>" + |
662 |
|
"\n <PREDVAR id=\"A\" />" + |
663 |
|
"\n <PREDVAR id=\"B\" />" + |
664 |
|
"\n </AND>" + |
665 |
|
"\n <AND>" + |
666 |
|
"\n <PREDVAR id=\"B\" />" + |
667 |
|
"\n <PREDVAR id=\"A\" />" + |
668 |
|
"\n </AND>" + |
669 |
|
"\n </EQUI>" + |
670 |
|
"\n" + |
671 |
|
"\n <IMPL>" + |
672 |
|
"\n <AND>" + |
673 |
|
"\n <PREDVAR id=\"A\" />" + |
674 |
|
"\n <PREDVAR id=\"B\" />" + |
675 |
|
"\n </AND>" + |
676 |
|
"\n <PREDVAR id=\"A\" />" + |
677 |
|
"\n </IMPL>" + |
678 |
|
"\n" + |
679 |
|
"\n <EQUI>" + |
680 |
|
"\n <EQUI>" + |
681 |
|
"\n <PREDVAR id=\"A\" />" + |
682 |
|
"\n <PREDVAR id=\"B\" />" + |
683 |
|
"\n </EQUI>" + |
684 |
|
"\n <EQUI>" + |
685 |
|
"\n <PREDVAR id=\"B\" />" + |
686 |
|
"\n <PREDVAR id=\"A\" />" + |
687 |
|
"\n </EQUI>" + |
688 |
|
"\n </EQUI>" + |
689 |
|
"\n" + |
690 |
|
"\n <EQUI>" + |
691 |
|
"\n <OR>" + |
692 |
|
"\n <PREDVAR id=\"A\" />" + |
693 |
|
"\n <OR>" + |
694 |
|
"\n <PREDVAR id=\"B\" />" + |
695 |
|
"\n <PREDVAR id=\"C\" />" + |
696 |
|
"\n </OR>" + |
697 |
|
"\n </OR>" + |
698 |
|
"\n <OR>" + |
699 |
|
"\n <OR>" + |
700 |
|
"\n <PREDVAR id=\"A\" />" + |
701 |
|
"\n <PREDVAR id=\"B\" />" + |
702 |
|
"\n </OR>" + |
703 |
|
"\n <PREDVAR id=\"C\" />" + |
704 |
|
"\n </OR>" + |
705 |
|
"\n </EQUI>" + |
706 |
|
"\n" + |
707 |
|
"\n <EQUI>" + |
708 |
|
"\n <AND>" + |
709 |
|
"\n <PREDVAR id=\"A\" />" + |
710 |
|
"\n <AND>" + |
711 |
|
"\n <PREDVAR id=\"B\" />" + |
712 |
|
"\n <PREDVAR id=\"C\" />" + |
713 |
|
"\n </AND>" + |
714 |
|
"\n </AND>" + |
715 |
|
"\n <AND>" + |
716 |
|
"\n <AND>" + |
717 |
|
"\n <PREDVAR id=\"A\" />" + |
718 |
|
"\n <PREDVAR id=\"B\" />" + |
719 |
|
"\n </AND>" + |
720 |
|
"\n <PREDVAR id=\"C\" />" + |
721 |
|
"\n </AND>" + |
722 |
|
"\n </EQUI>" + |
723 |
|
"\n" + |
724 |
|
"\n <EQUI>" + |
725 |
|
"\n <PREDVAR id=\"A\" />" + |
726 |
|
"\n <OR>" + |
727 |
|
"\n <PREDVAR id=\"A\" />" + |
728 |
|
"\n <PREDVAR id=\"A\" />" + |
729 |
|
"\n </OR>" + |
730 |
|
"\n </EQUI>" + |
731 |
|
"\n" + |
732 |
|
"\n <EQUI>" + |
733 |
|
"\n <PREDVAR id=\"A\" />" + |
734 |
|
"\n <AND>" + |
735 |
|
"\n <PREDVAR id=\"A\" />" + |
736 |
|
"\n <PREDVAR id=\"A\" />" + |
737 |
|
"\n </AND>" + |
738 |
|
"\n </EQUI>" + |
739 |
|
"\n" + |
740 |
|
"\n <EQUI>" + |
741 |
|
"\n <PREDVAR id=\"A\" />" + |
742 |
|
"\n <NOT>" + |
743 |
|
"\n <NOT>" + |
744 |
|
"\n <PREDVAR id=\"A\" />" + |
745 |
|
"\n </NOT>" + |
746 |
|
"\n </NOT>" + |
747 |
|
"\n </EQUI>" + |
748 |
|
"\n" + |
749 |
|
"\n <EQUI>" + |
750 |
|
"\n <IMPL>" + |
751 |
|
"\n <PREDVAR id=\"A\" />" + |
752 |
|
"\n <PREDVAR id=\"B\" />" + |
753 |
|
"\n </IMPL>" + |
754 |
|
"\n <IMPL>" + |
755 |
|
"\n <NOT>" + |
756 |
|
"\n <PREDVAR id=\"B\" />" + |
757 |
|
"\n </NOT>" + |
758 |
|
"\n <NOT>" + |
759 |
|
"\n <PREDVAR id=\"A\" />" + |
760 |
|
"\n </NOT>" + |
761 |
|
"\n </IMPL>" + |
762 |
|
"\n </EQUI>" + |
763 |
|
"\n" + |
764 |
|
"\n <EQUI>" + |
765 |
|
"\n <EQUI>" + |
766 |
|
"\n <PREDVAR id=\"A\" />" + |
767 |
|
"\n <PREDVAR id=\"B\" />" + |
768 |
|
"\n </EQUI>" + |
769 |
|
"\n <EQUI>" + |
770 |
|
"\n <NOT>" + |
771 |
|
"\n <PREDVAR id=\"A\" />" + |
772 |
|
"\n </NOT>" + |
773 |
|
"\n <NOT>" + |
774 |
|
"\n <PREDVAR id=\"B\" />" + |
775 |
|
"\n </NOT>" + |
776 |
|
"\n </EQUI>" + |
777 |
|
"\n </EQUI>" + |
778 |
|
"\n" + |
779 |
|
"\n <EQUI>" + |
780 |
|
"\n <IMPL>" + |
781 |
|
"\n <PREDVAR id=\"A\" />" + |
782 |
|
"\n <IMPL>" + |
783 |
|
"\n <PREDVAR id=\"B\" />" + |
784 |
|
"\n <PREDVAR id=\"C\" />" + |
785 |
|
"\n </IMPL>" + |
786 |
|
"\n </IMPL>" + |
787 |
|
"\n <IMPL>" + |
788 |
|
"\n <PREDVAR id=\"B\" />" + |
789 |
|
"\n <IMPL>" + |
790 |
|
"\n <PREDVAR id=\"A\" />" + |
791 |
|
"\n <PREDVAR id=\"C\" />" + |
792 |
|
"\n </IMPL>" + |
793 |
|
"\n </IMPL>" + |
794 |
|
"\n </EQUI>" + |
795 |
|
"\n" + |
796 |
|
"\n <EQUI>" + |
797 |
|
"\n <NOT>" + |
798 |
|
"\n <OR>" + |
799 |
|
"\n <PREDVAR id=\"A\" />" + |
800 |
|
"\n <PREDVAR id=\"B\" />" + |
801 |
|
"\n </OR>" + |
802 |
|
"\n </NOT>" + |
803 |
|
"\n <AND>" + |
804 |
|
"\n <NOT>" + |
805 |
|
"\n <PREDVAR id=\"A\" />" + |
806 |
|
"\n </NOT>" + |
807 |
|
"\n <NOT>" + |
808 |
|
"\n <PREDVAR id=\"B\" />" + |
809 |
|
"\n </NOT>" + |
810 |
|
"\n </AND>" + |
811 |
|
"\n </EQUI>" + |
812 |
|
"\n" + |
813 |
|
"\n <EQUI>" + |
814 |
|
"\n <NOT>" + |
815 |
|
"\n <AND>" + |
816 |
|
"\n <PREDVAR id=\"A\" />" + |
817 |
|
"\n <PREDVAR id=\"B\" />" + |
818 |
|
"\n </AND>" + |
819 |
|
"\n </NOT>" + |
820 |
|
"\n <OR>" + |
821 |
|
"\n <NOT>" + |
822 |
|
"\n <PREDVAR id=\"A\" />" + |
823 |
|
"\n </NOT>" + |
824 |
|
"\n <NOT>" + |
825 |
|
"\n <PREDVAR id=\"B\" />" + |
826 |
|
"\n </NOT>" + |
827 |
|
"\n </OR>" + |
828 |
|
"\n </EQUI>" + |
829 |
|
"\n" + |
830 |
|
"\n <EQUI>" + |
831 |
|
"\n <OR>" + |
832 |
|
"\n <PREDVAR id=\"A\" />" + |
833 |
|
"\n <AND>" + |
834 |
|
"\n <PREDVAR id=\"B\" />" + |
835 |
|
"\n <PREDVAR id=\"C\" />" + |
836 |
|
"\n </AND>" + |
837 |
|
"\n </OR>" + |
838 |
|
"\n <AND>" + |
839 |
|
"\n <OR>" + |
840 |
|
"\n <PREDVAR id=\"A\" />" + |
841 |
|
"\n <PREDVAR id=\"B\" />" + |
842 |
|
"\n </OR>" + |
843 |
|
"\n <OR>" + |
844 |
|
"\n <PREDVAR id=\"A\" />" + |
845 |
|
"\n <PREDVAR id=\"C\" />" + |
846 |
|
"\n </OR>" + |
847 |
|
"\n </AND>" + |
848 |
|
"\n </EQUI>" + |
849 |
|
"\n" + |
850 |
|
"\n <EQUI>" + |
851 |
|
"\n <AND>" + |
852 |
|
"\n <PREDVAR id=\"A\" />" + |
853 |
|
"\n <OR>" + |
854 |
|
"\n <PREDVAR id=\"B\" />" + |
855 |
|
"\n <PREDVAR id=\"C\" />" + |
856 |
|
"\n </OR>" + |
857 |
|
"\n </AND>" + |
858 |
|
"\n <OR>" + |
859 |
|
"\n <AND>" + |
860 |
|
"\n <PREDVAR id=\"A\" />" + |
861 |
|
"\n <PREDVAR id=\"B\" />" + |
862 |
|
"\n </AND>" + |
863 |
|
"\n <AND>" + |
864 |
|
"\n <PREDVAR id=\"A\" />" + |
865 |
|
"\n <PREDVAR id=\"C\" />" + |
866 |
|
"\n </AND>" + |
867 |
|
"\n </OR>" + |
868 |
|
"\n </EQUI>" + |
869 |
|
"\n" + |
870 |
|
"\n <EQUI>" + |
871 |
|
"\n <AND>" + |
872 |
|
"\n <PREDVAR id=\"A\" />" + |
873 |
|
"\n <PREDCON ref=\"TRUE\" />" + |
874 |
|
"\n </AND>" + |
875 |
|
"\n <PREDVAR id=\"A\" />" + |
876 |
|
"\n </EQUI>" + |
877 |
|
"\n" + |
878 |
|
"\n <EQUI>" + |
879 |
|
"\n <AND>" + |
880 |
|
"\n <PREDVAR id=\"A\" />" + |
881 |
|
"\n <PREDCON ref=\"FALSE\" />" + |
882 |
|
"\n </AND>" + |
883 |
|
"\n <PREDCON ref=\"FALSE\" />" + |
884 |
|
"\n </EQUI>" + |
885 |
|
"\n" + |
886 |
|
"\n <EQUI>" + |
887 |
|
"\n <OR>" + |
888 |
|
"\n <PREDVAR id=\"A\" />" + |
889 |
|
"\n <PREDCON ref=\"TRUE\" />" + |
890 |
|
"\n </OR>" + |
891 |
|
"\n <PREDCON ref=\"TRUE\" />" + |
892 |
|
"\n </EQUI>" + |
893 |
|
"\n" + |
894 |
|
"\n <EQUI>" + |
895 |
|
"\n <OR>" + |
896 |
|
"\n <PREDVAR id=\"A\" />" + |
897 |
|
"\n <PREDCON ref=\"FALSE\" />" + |
898 |
|
"\n </OR>" + |
899 |
|
"\n <PREDVAR id=\"A\" />" + |
900 |
|
"\n </EQUI>" + |
901 |
|
"\n" + |
902 |
|
"\n <EQUI>" + |
903 |
|
"\n <OR>" + |
904 |
|
"\n <PREDVAR id=\"A\" />" + |
905 |
|
"\n <NOT>" + |
906 |
|
"\n <PREDVAR id=\"A\" />" + |
907 |
|
"\n </NOT>" + |
908 |
|
"\n </OR>" + |
909 |
|
"\n <PREDCON ref=\"TRUE\" />" + |
910 |
|
"\n </EQUI>" + |
911 |
|
"\n" + |
912 |
|
"\n <EQUI>" + |
913 |
|
"\n <AND>" + |
914 |
|
"\n <PREDVAR id=\"A\" />" + |
915 |
|
"\n <NOT>" + |
916 |
|
"\n <PREDVAR id=\"A\" />" + |
917 |
|
"\n </NOT>" + |
918 |
|
"\n </AND>" + |
919 |
|
"\n <PREDCON ref=\"FALSE\" />" + |
920 |
|
"\n </EQUI>" + |
921 |
|
"\n" + |
922 |
|
"\n <EQUI>" + |
923 |
|
"\n <IMPL>" + |
924 |
|
"\n <PREDCON ref=\"TRUE\" />" + |
925 |
|
"\n <PREDVAR id=\"A\" />" + |
926 |
|
"\n </IMPL>" + |
927 |
|
"\n <PREDVAR id=\"A\" />" + |
928 |
|
"\n </EQUI>" + |
929 |
|
"\n" + |
930 |
|
"\n <EQUI>" + |
931 |
|
"\n <IMPL>" + |
932 |
|
"\n <PREDCON ref=\"FALSE\" />" + |
933 |
|
"\n <PREDVAR id=\"A\" />" + |
934 |
|
"\n </IMPL>" + |
935 |
|
"\n <PREDCON ref=\"TRUE\" />" + |
936 |
|
"\n </EQUI>" + |
937 |
|
"\n" + |
938 |
|
"\n <EQUI>" + |
939 |
|
"\n <IMPL>" + |
940 |
|
"\n <PREDVAR id=\"A\" />" + |
941 |
|
"\n <PREDCON ref=\"FALSE\" />" + |
942 |
|
"\n </IMPL>" + |
943 |
|
"\n <NOT>" + |
944 |
|
"\n <PREDVAR id=\"A\" />" + |
945 |
|
"\n </NOT>" + |
946 |
|
"\n </EQUI>" + |
947 |
|
"\n" + |
948 |
|
"\n <EQUI>" + |
949 |
|
"\n <IMPL>" + |
950 |
|
"\n <PREDVAR id=\"A\" />" + |
951 |
|
"\n <PREDCON ref=\"TRUE\" />" + |
952 |
|
"\n </IMPL>" + |
953 |
|
"\n <PREDCON ref=\"TRUE\" />" + |
954 |
|
"\n </EQUI>" + |
955 |
|
"\n" + |
956 |
|
"\n <EQUI>" + |
957 |
|
"\n <EQUI>" + |
958 |
|
"\n <PREDVAR id=\"A\" />" + |
959 |
|
"\n <PREDCON ref=\"TRUE\" />" + |
960 |
|
"\n </EQUI>" + |
961 |
|
"\n <PREDVAR id=\"A\" />" + |
962 |
|
"\n </EQUI>" + |
963 |
|
"\n " + |
964 |
|
"\n <IMPL>" + |
965 |
|
"\n <AND>" + |
966 |
|
"\n <IMPL>" + |
967 |
|
"\n <PREDVAR id=\"A\" />" + |
968 |
|
"\n <PREDVAR id=\"B\" />" + |
969 |
|
"\n </IMPL>" + |
970 |
|
"\n <IMPL>" + |
971 |
|
"\n <PREDVAR id=\"B\" />" + |
972 |
|
"\n <PREDVAR id=\"C\" />" + |
973 |
|
"\n </IMPL>" + |
974 |
|
"\n </AND>" + |
975 |
|
"\n <IMPL>" + |
976 |
|
"\n <PREDVAR id=\"A\" />" + |
977 |
|
"\n <PREDVAR id=\"C\" />" + |
978 |
|
"\n </IMPL>" + |
979 |
|
"\n </IMPL>" + |
980 |
|
"\n" + |
981 |
|
"\n <IMPL>" + |
982 |
|
"\n <AND>" + |
983 |
|
"\n <EQUI>" + |
984 |
|
"\n <PREDVAR id=\"A\" />" + |
985 |
|
"\n <PREDVAR id=\"B\" />" + |
986 |
|
"\n </EQUI>" + |
987 |
|
"\n <EQUI>" + |
988 |
|
"\n <PREDVAR id=\"C\" />" + |
989 |
|
"\n <PREDVAR id=\"B\" />" + |
990 |
|
"\n </EQUI>" + |
991 |
|
"\n </AND>" + |
992 |
|
"\n <EQUI>" + |
993 |
|
"\n <PREDVAR id=\"A\" />" + |
994 |
|
"\n <PREDVAR id=\"C\" />" + |
995 |
|
"\n </EQUI>" + |
996 |
|
"\n </IMPL>" + |
997 |
|
"\n" + |
998 |
|
"\n <EQUI>" + |
999 |
|
"\n <EQUI>" + |
1000 |
|
"\n <AND>" + |
1001 |
|
"\n <PREDVAR id=\"A\" />" + |
1002 |
|
"\n <PREDVAR id=\"B\" />" + |
1003 |
|
"\n </AND>" + |
1004 |
|
"\n <AND>" + |
1005 |
|
"\n <PREDVAR id=\"A\" />" + |
1006 |
|
"\n <PREDVAR id=\"C\" />" + |
1007 |
|
"\n </AND>" + |
1008 |
|
"\n </EQUI>" + |
1009 |
|
"\n <IMPL>" + |
1010 |
|
"\n <PREDVAR id=\"A\" />" + |
1011 |
|
"\n <EQUI>" + |
1012 |
|
"\n <PREDVAR id=\"B\" />" + |
1013 |
|
"\n <PREDVAR id=\"C\" />" + |
1014 |
|
"\n </EQUI>" + |
1015 |
|
"\n </IMPL>" + |
1016 |
|
"\n </EQUI>" + |
1017 |
|
"\n" + |
1018 |
|
"\n <EQUI>" + |
1019 |
|
"\n <EQUI>" + |
1020 |
|
"\n <AND>" + |
1021 |
|
"\n <PREDVAR id=\"A\" />" + |
1022 |
|
"\n <PREDVAR id=\"B\" />" + |
1023 |
|
"\n </AND>" + |
1024 |
|
"\n <AND>" + |
1025 |
|
"\n <PREDVAR id=\"A\" />" + |
1026 |
|
"\n <NOT>" + |
1027 |
|
"\n <PREDVAR id=\"B\" />" + |
1028 |
|
"\n </NOT>" + |
1029 |
|
"\n </AND>" + |
1030 |
|
"\n </EQUI>" + |
1031 |
|
"\n <NOT>" + |
1032 |
|
"\n <PREDVAR id=\"A\" />" + |
1033 |
|
"\n </NOT>" + |
1034 |
|
"\n </EQUI>" + |
1035 |
|
"\n" + |
1036 |
|
"\n <EQUI>" + |
1037 |
|
"\n <EQUI>" + |
1038 |
|
"\n <PREDVAR id=\"A\" />" + |
1039 |
|
"\n <AND>" + |
1040 |
|
"\n <PREDVAR id=\"A\" />" + |
1041 |
|
"\n <PREDVAR id=\"B\" />" + |
1042 |
|
"\n </AND>" + |
1043 |
|
"\n </EQUI>" + |
1044 |
|
"\n <IMPL>" + |
1045 |
|
"\n <PREDVAR id=\"A\" />" + |
1046 |
|
"\n <PREDVAR id=\"B\" />" + |
1047 |
|
"\n </IMPL>" + |
1048 |
|
"\n </EQUI>" + |
1049 |
|
"\n" + |
1050 |
|
"\n <IMPL>" + |
1051 |
|
"\n <IMPL>" + |
1052 |
|
"\n <PREDVAR id=\"A\" />" + |
1053 |
|
"\n <PREDVAR id=\"B\" />" + |
1054 |
|
"\n </IMPL>" + |
1055 |
|
"\n <IMPL>" + |
1056 |
|
"\n <AND>" + |
1057 |
|
"\n <PREDVAR id=\"A\" />" + |
1058 |
|
"\n <PREDVAR id=\"C\" />" + |
1059 |
|
"\n </AND>" + |
1060 |
|
"\n <AND>" + |
1061 |
|
"\n <PREDVAR id=\"B\" />" + |
1062 |
|
"\n <PREDVAR id=\"C\" />" + |
1063 |
|
"\n </AND>" + |
1064 |
|
"\n </IMPL>" + |
1065 |
|
"\n </IMPL>" + |
1066 |
|
"\n" + |
1067 |
|
"\n <IMPL>" + |
1068 |
|
"\n <EQUI>" + |
1069 |
|
"\n <PREDVAR id=\"A\" />" + |
1070 |
|
"\n <PREDVAR id=\"B\" />" + |
1071 |
|
"\n </EQUI>" + |
1072 |
|
"\n <EQUI>" + |
1073 |
|
"\n <AND>" + |
1074 |
|
"\n <PREDVAR id=\"A\" />" + |
1075 |
|
"\n <PREDVAR id=\"C\" />" + |
1076 |
|
"\n </AND>" + |
1077 |
|
"\n <AND>" + |
1078 |
|
"\n <PREDVAR id=\"B\" />" + |
1079 |
|
"\n <PREDVAR id=\"C\" />" + |
1080 |
|
"\n </AND>" + |
1081 |
|
"\n </EQUI>" + |
1082 |
|
"\n </IMPL>" + |
1083 |
|
"\n" + |
1084 |
|
"\n </AND>" + |
1085 |
|
"\n"); |
1086 |
|
|
1087 |
4
|
assertTrue(isTautology(ele)); |
1088 |
|
} |
1089 |
|
|
1090 |
|
|
1091 |
|
|
1092 |
|
|
1093 |
|
|
1094 |
|
|
1095 |
|
@throws |
1096 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
1097 |
4
|
public void testTautology40() throws Exception {... |
1098 |
4
|
final Element ele = BasicParser.createElement( |
1099 |
|
" <AND>" |
1100 |
|
+ "\n " |
1101 |
|
+ "\n <IMPL>" |
1102 |
|
+ "\n <FORALL>" |
1103 |
|
+ "\n <VAR id=\"x\" />" |
1104 |
|
+ "\n <IMPL>" |
1105 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1106 |
|
+ "\n <VAR id=\"x\" />" |
1107 |
|
+ "\n </PREDVAR>" |
1108 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1109 |
|
+ "\n <VAR id=\"x\" />" |
1110 |
|
+ "\n </PREDVAR>" |
1111 |
|
+ "\n </IMPL>" |
1112 |
|
+ "\n </FORALL>" |
1113 |
|
+ "\n <IMPL>" |
1114 |
|
+ "\n <FORALL>" |
1115 |
|
+ "\n <VAR id=\"x\" />" |
1116 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1117 |
|
+ "\n <VAR id=\"x\" />" |
1118 |
|
+ "\n </PREDVAR>" |
1119 |
|
+ "\n </FORALL>" |
1120 |
|
+ "\n <FORALL>" |
1121 |
|
+ "\n <VAR id=\"x\" />" |
1122 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1123 |
|
+ "\n <VAR id=\"x\" />" |
1124 |
|
+ "\n </PREDVAR>" |
1125 |
|
+ "\n </FORALL>" |
1126 |
|
+ "\n </IMPL>" |
1127 |
|
+ "\n </IMPL>" |
1128 |
|
+ "\n" |
1129 |
|
+ "\n <IMPL>" |
1130 |
|
+ "\n <FORALL>" |
1131 |
|
+ "\n <VAR id=\"x\" />" |
1132 |
|
+ "\n <IMPL>" |
1133 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1134 |
|
+ "\n <VAR id=\"x\" />" |
1135 |
|
+ "\n </PREDVAR>" |
1136 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1137 |
|
+ "\n <VAR id=\"x\" />" |
1138 |
|
+ "\n </PREDVAR>" |
1139 |
|
+ "\n </IMPL>" |
1140 |
|
+ "\n </FORALL>" |
1141 |
|
+ "\n <IMPL>" |
1142 |
|
+ "\n <EXISTS>" |
1143 |
|
+ "\n <VAR id=\"x\" />" |
1144 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1145 |
|
+ "\n <VAR id=\"x\" />" |
1146 |
|
+ "\n </PREDVAR>" |
1147 |
|
+ "\n </EXISTS>" |
1148 |
|
+ "\n <EXISTS>" |
1149 |
|
+ "\n <VAR id=\"x\" />" |
1150 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1151 |
|
+ "\n <VAR id=\"x\" />" |
1152 |
|
+ "\n </PREDVAR>" |
1153 |
|
+ "\n </EXISTS>" |
1154 |
|
+ "\n </IMPL>" |
1155 |
|
+ "\n </IMPL>" |
1156 |
|
+ "\n" |
1157 |
|
+ "\n <IMPL>" |
1158 |
|
+ "\n <EXISTS>" |
1159 |
|
+ "\n <VAR id=\"x\" />" |
1160 |
|
+ "\n <AND>" |
1161 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1162 |
|
+ "\n <VAR id=\"x\" />" |
1163 |
|
+ "\n </PREDVAR>" |
1164 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1165 |
|
+ "\n <VAR id=\"x\" />" |
1166 |
|
+ "\n </PREDVAR>" |
1167 |
|
+ "\n </AND>" |
1168 |
|
+ "\n </EXISTS>" |
1169 |
|
+ "\n <AND>" |
1170 |
|
+ "\n <EXISTS>" |
1171 |
|
+ "\n <VAR id=\"x\" />" |
1172 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1173 |
|
+ "\n <VAR id=\"x\" />" |
1174 |
|
+ "\n </PREDVAR>" |
1175 |
|
+ "\n </EXISTS>" |
1176 |
|
+ "\n <EXISTS>" |
1177 |
|
+ "\n <VAR id=\"x\" />" |
1178 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1179 |
|
+ "\n <VAR id=\"x\" />" |
1180 |
|
+ "\n </PREDVAR>" |
1181 |
|
+ "\n </EXISTS>" |
1182 |
|
+ "\n </AND>" |
1183 |
|
+ "\n </IMPL>" |
1184 |
|
+ "\n" |
1185 |
|
+ "\n <IMPL>" |
1186 |
|
+ "\n <OR>" |
1187 |
|
+ "\n <FORALL>" |
1188 |
|
+ "\n <VAR id=\"x\" />" |
1189 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1190 |
|
+ "\n <VAR id=\"x\" />" |
1191 |
|
+ "\n </PREDVAR>" |
1192 |
|
+ "\n </FORALL>" |
1193 |
|
+ "\n <FORALL>" |
1194 |
|
+ "\n <VAR id=\"x\" />" |
1195 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1196 |
|
+ "\n <VAR id=\"x\" />" |
1197 |
|
+ "\n </PREDVAR>" |
1198 |
|
+ "\n </FORALL>" |
1199 |
|
+ "\n </OR>" |
1200 |
|
+ "\n <FORALL>" |
1201 |
|
+ "\n <VAR id=\"x\" />" |
1202 |
|
+ "\n <OR>" |
1203 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1204 |
|
+ "\n <VAR id=\"x\" />" |
1205 |
|
+ "\n </PREDVAR>" |
1206 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1207 |
|
+ "\n <VAR id=\"x\" />" |
1208 |
|
+ "\n </PREDVAR>" |
1209 |
|
+ "\n </OR>" |
1210 |
|
+ "\n </FORALL>" |
1211 |
|
+ "\n </IMPL>" |
1212 |
|
+ "\n" |
1213 |
|
+ "\n <EQUI>" |
1214 |
|
+ "\n <EXISTS>" |
1215 |
|
+ "\n <VAR id=\"x\" />" |
1216 |
|
+ "\n <OR>" |
1217 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1218 |
|
+ "\n <VAR id=\"x\" />" |
1219 |
|
+ "\n </PREDVAR>" |
1220 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1221 |
|
+ "\n <VAR id=\"x\" />" |
1222 |
|
+ "\n </PREDVAR>" |
1223 |
|
+ "\n </OR>" |
1224 |
|
+ "\n </EXISTS>" |
1225 |
|
+ "\n <OR>" |
1226 |
|
+ "\n <EXISTS>" |
1227 |
|
+ "\n <VAR id=\"x\" />" |
1228 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1229 |
|
+ "\n <VAR id=\"x\" />" |
1230 |
|
+ "\n </PREDVAR>" |
1231 |
|
+ "\n </EXISTS>" |
1232 |
|
+ "\n <EXISTS>" |
1233 |
|
+ "\n <VAR id=\"x\" />" |
1234 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1235 |
|
+ "\n <VAR id=\"x\" />" |
1236 |
|
+ "\n </PREDVAR>" |
1237 |
|
+ "\n </EXISTS>" |
1238 |
|
+ "\n </OR>" |
1239 |
|
+ "\n </EQUI>" |
1240 |
|
+ "\n" |
1241 |
|
+ "\n <EQUI>" |
1242 |
|
+ "\n <FORALL>" |
1243 |
|
+ "\n <VAR id=\"x\" />" |
1244 |
|
+ "\n <AND>" |
1245 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1246 |
|
+ "\n <VAR id=\"x\" />" |
1247 |
|
+ "\n </PREDVAR>" |
1248 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1249 |
|
+ "\n <VAR id=\"x\" />" |
1250 |
|
+ "\n </PREDVAR>" |
1251 |
|
+ "\n </AND>" |
1252 |
|
+ "\n </FORALL>" |
1253 |
|
+ "\n <AND>" |
1254 |
|
+ "\n <FORALL>" |
1255 |
|
+ "\n <VAR id=\"x\" />" |
1256 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1257 |
|
+ "\n <VAR id=\"x\" />" |
1258 |
|
+ "\n </PREDVAR>" |
1259 |
|
+ "\n </FORALL>" |
1260 |
|
+ "\n <FORALL>" |
1261 |
|
+ "\n <VAR id=\"x\" />" |
1262 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1263 |
|
+ "\n <VAR id=\"x\" />" |
1264 |
|
+ "\n </PREDVAR>" |
1265 |
|
+ "\n </FORALL>" |
1266 |
|
+ "\n </AND>" |
1267 |
|
+ "\n </EQUI>" |
1268 |
|
+ "\n" |
1269 |
|
+ "\n <EQUI>" |
1270 |
|
+ "\n <FORALL>" |
1271 |
|
+ "\n <VAR id=\"x\" />" |
1272 |
|
+ "\n <FORALL>" |
1273 |
|
+ "\n <VAR id=\"y\" />" |
1274 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1275 |
|
+ "\n <VAR id=\"x\" />" |
1276 |
|
+ "\n <VAR id=\"y\" />" |
1277 |
|
+ "\n </PREDVAR>" |
1278 |
|
+ "\n </FORALL>" |
1279 |
|
+ "\n </FORALL>" |
1280 |
|
+ "\n <FORALL>" |
1281 |
|
+ "\n <VAR id=\"y\" />" |
1282 |
|
+ "\n <FORALL>" |
1283 |
|
+ "\n <VAR id=\"x\" />" |
1284 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1285 |
|
+ "\n <VAR id=\"x\" />" |
1286 |
|
+ "\n <VAR id=\"y\" />" |
1287 |
|
+ "\n </PREDVAR>" |
1288 |
|
+ "\n </FORALL>" |
1289 |
|
+ "\n </FORALL>" |
1290 |
|
+ "\n </EQUI>" |
1291 |
|
+ "\n" |
1292 |
|
+ "\n <EQUI>" |
1293 |
|
+ "\n <EXISTS>" |
1294 |
|
+ "\n <VAR id=\"x\" />" |
1295 |
|
+ "\n <EXISTS>" |
1296 |
|
+ "\n <VAR id=\"y\" />" |
1297 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1298 |
|
+ "\n <VAR id=\"x\" />" |
1299 |
|
+ "\n <VAR id=\"y\" />" |
1300 |
|
+ "\n </PREDVAR>" |
1301 |
|
+ "\n </EXISTS>" |
1302 |
|
+ "\n </EXISTS>" |
1303 |
|
+ "\n <EXISTS>" |
1304 |
|
+ "\n <VAR id=\"y\" />" |
1305 |
|
+ "\n <EXISTS>" |
1306 |
|
+ "\n <VAR id=\"x\" />" |
1307 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1308 |
|
+ "\n <VAR id=\"x\" />" |
1309 |
|
+ "\n <VAR id=\"y\" />" |
1310 |
|
+ "\n </PREDVAR>" |
1311 |
|
+ "\n </EXISTS>" |
1312 |
|
+ "\n </EXISTS>" |
1313 |
|
+ "\n </EQUI>" |
1314 |
|
+ "\n" |
1315 |
|
+ "\n <IMPL>" |
1316 |
|
+ "\n <FORALL>" |
1317 |
|
+ "\n <VAR id=\"x\" />" |
1318 |
|
+ "\n <IMPL>" |
1319 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1320 |
|
+ "\n <VAR id=\"x\" />" |
1321 |
|
+ "\n </PREDVAR>" |
1322 |
|
+ "\n <PREDVAR id=\"A\" />" |
1323 |
|
+ "\n </IMPL>" |
1324 |
|
+ "\n </FORALL>" |
1325 |
|
+ "\n <IMPL>" |
1326 |
|
+ "\n <FORALL>" |
1327 |
|
+ "\n <VAR id=\"x\" />" |
1328 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1329 |
|
+ "\n <VAR id=\"x\" />" |
1330 |
|
+ "\n </PREDVAR>" |
1331 |
|
+ "\n </FORALL>" |
1332 |
|
+ "\n <PREDVAR id=\"A\" />" |
1333 |
|
+ "\n </IMPL>" |
1334 |
|
+ "\n </IMPL>" |
1335 |
|
+ "\n" |
1336 |
|
+ "\n <EQUI>" |
1337 |
|
+ "\n <FORALL>" |
1338 |
|
+ "\n <VAR id=\"x\" />" |
1339 |
|
+ "\n <IMPL>" |
1340 |
|
+ "\n <PREDVAR id=\"A\" />" |
1341 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1342 |
|
+ "\n <VAR id=\"x\" />" |
1343 |
|
+ "\n </PREDVAR>" |
1344 |
|
+ "\n </IMPL>" |
1345 |
|
+ "\n </FORALL>" |
1346 |
|
+ "\n <IMPL>" |
1347 |
|
+ "\n <PREDVAR id=\"A\" />" |
1348 |
|
+ "\n <FORALL>" |
1349 |
|
+ "\n <VAR id=\"x\" />" |
1350 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1351 |
|
+ "\n <VAR id=\"x\" />" |
1352 |
|
+ "\n </PREDVAR>" |
1353 |
|
+ "\n </FORALL>" |
1354 |
|
+ "\n </IMPL>" |
1355 |
|
+ "\n </EQUI>" |
1356 |
|
+ "\n" |
1357 |
|
+ "\n <EQUI>" |
1358 |
|
+ "\n <FORALL>" |
1359 |
|
+ "\n <VAR id=\"x\" />" |
1360 |
|
+ "\n <AND>" |
1361 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1362 |
|
+ "\n <VAR id=\"x\" />" |
1363 |
|
+ "\n </PREDVAR>" |
1364 |
|
+ "\n <PREDVAR id=\"A\" />" |
1365 |
|
+ "\n </AND>" |
1366 |
|
+ "\n </FORALL>" |
1367 |
|
+ "\n <AND>" |
1368 |
|
+ "\n <FORALL>" |
1369 |
|
+ "\n <VAR id=\"x\" />" |
1370 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1371 |
|
+ "\n <VAR id=\"x\" />" |
1372 |
|
+ "\n </PREDVAR>" |
1373 |
|
+ "\n </FORALL>" |
1374 |
|
+ "\n <PREDVAR id=\"A\" />" |
1375 |
|
+ "\n </AND>" |
1376 |
|
+ "\n </EQUI>" |
1377 |
|
+ "\n" |
1378 |
|
+ "\n <EQUI>" |
1379 |
|
+ "\n <FORALL>" |
1380 |
|
+ "\n <VAR id=\"x\" />" |
1381 |
|
+ "\n <OR>" |
1382 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1383 |
|
+ "\n <VAR id=\"x\" />" |
1384 |
|
+ "\n </PREDVAR>" |
1385 |
|
+ "\n <PREDVAR id=\"A\" />" |
1386 |
|
+ "\n </OR>" |
1387 |
|
+ "\n </FORALL>" |
1388 |
|
+ "\n <OR>" |
1389 |
|
+ "\n <FORALL>" |
1390 |
|
+ "\n <VAR id=\"x\" />" |
1391 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1392 |
|
+ "\n <VAR id=\"x\" />" |
1393 |
|
+ "\n </PREDVAR>" |
1394 |
|
+ "\n </FORALL>" |
1395 |
|
+ "\n <PREDVAR id=\"A\" />" |
1396 |
|
+ "\n </OR>" |
1397 |
|
+ "\n </EQUI>" |
1398 |
|
+ "\n" |
1399 |
|
+ "\n <IMPL>" |
1400 |
|
+ "\n <FORALL>" |
1401 |
|
+ "\n <VAR id=\"x\" />" |
1402 |
|
+ "\n <EQUI>" |
1403 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1404 |
|
+ "\n <VAR id=\"x\" />" |
1405 |
|
+ "\n </PREDVAR>" |
1406 |
|
+ "\n <PREDVAR id=\"A\" />" |
1407 |
|
+ "\n </EQUI>" |
1408 |
|
+ "\n </FORALL>" |
1409 |
|
+ "\n <EQUI>" |
1410 |
|
+ "\n <FORALL>" |
1411 |
|
+ "\n <VAR id=\"x\" />" |
1412 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1413 |
|
+ "\n <VAR id=\"x\" />" |
1414 |
|
+ "\n </PREDVAR>" |
1415 |
|
+ "\n </FORALL>" |
1416 |
|
+ "\n <PREDVAR id=\"A\" />" |
1417 |
|
+ "\n </EQUI>" |
1418 |
|
+ "\n </IMPL>" |
1419 |
|
+ "\n" |
1420 |
|
+ "\n <IMPL>" |
1421 |
|
+ "\n <FORALL>" |
1422 |
|
+ "\n <VAR id=\"x\" />" |
1423 |
|
+ "\n <EQUI>" |
1424 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1425 |
|
+ "\n <VAR id=\"x\" />" |
1426 |
|
+ "\n </PREDVAR>" |
1427 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1428 |
|
+ "\n <VAR id=\"x\" />" |
1429 |
|
+ "\n </PREDVAR>" |
1430 |
|
+ "\n </EQUI>" |
1431 |
|
+ "\n </FORALL>" |
1432 |
|
+ "\n <EQUI>" |
1433 |
|
+ "\n <FORALL>" |
1434 |
|
+ "\n <VAR id=\"x\" />" |
1435 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1436 |
|
+ "\n <VAR id=\"x\" />" |
1437 |
|
+ "\n </PREDVAR>" |
1438 |
|
+ "\n </FORALL>" |
1439 |
|
+ "\n <FORALL>" |
1440 |
|
+ "\n <VAR id=\"x\" />" |
1441 |
|
+ "\n <PREDVAR id=\"\\psi\">" |
1442 |
|
+ "\n <VAR id=\"x\" />" |
1443 |
|
+ "\n </PREDVAR>" |
1444 |
|
+ "\n </FORALL>" |
1445 |
|
+ "\n </EQUI>" |
1446 |
|
+ "\n </IMPL>" |
1447 |
|
+ "\n" |
1448 |
|
+ "\n </AND>" |
1449 |
|
+ "\n" |
1450 |
|
); |
1451 |
|
|
1452 |
4
|
assertTrue(isTautology(ele)); |
1453 |
|
} |
1454 |
|
|
1455 |
|
|
1456 |
|
|
1457 |
|
|
1458 |
|
|
1459 |
|
|
1460 |
|
|
1461 |
|
|
1462 |
|
@throws |
1463 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
1464 |
2
|
public void testTautology41() throws Exception {... |
1465 |
2
|
final Element ele = BasicParser.createElement( |
1466 |
|
"\n <EQUI>" |
1467 |
|
+ "\n <FORALL>" |
1468 |
|
+ "\n <VAR id=\"x\" />" |
1469 |
|
+ "\n <EQUI>" |
1470 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1471 |
|
+ "\n <VAR id=\"x\" />" |
1472 |
|
+ "\n </PREDVAR>" |
1473 |
|
+ "\n <PREDVAR id=\"A\" />" |
1474 |
|
+ "\n </EQUI>" |
1475 |
|
+ "\n </FORALL>" |
1476 |
|
+ "\n <EQUI>" |
1477 |
|
+ "\n <FORALL>" |
1478 |
|
+ "\n <VAR id=\"x\" />" |
1479 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1480 |
|
+ "\n <VAR id=\"x\" />" |
1481 |
|
+ "\n </PREDVAR>" |
1482 |
|
+ "\n </FORALL>" |
1483 |
|
+ "\n <PREDVAR id=\"A\" />" |
1484 |
|
+ "\n </EQUI>" |
1485 |
|
+ "\n </EQUI>" |
1486 |
|
); |
1487 |
|
|
1488 |
2
|
assertFalse(isTautology(ele)); |
1489 |
|
} |
1490 |
|
|
1491 |
|
|
1492 |
|
|
1493 |
|
|
1494 |
|
|
1495 |
|
|
1496 |
|
@throws |
1497 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
1498 |
4
|
public void testTautology42() throws Exception {... |
1499 |
4
|
final Element ele = BasicParser.createElement( |
1500 |
|
"\n <IMPL>" |
1501 |
|
+ "\n <FORALL>" |
1502 |
|
+ "\n <VAR id=\"x\" />" |
1503 |
|
+ "\n <IMPL>" |
1504 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1505 |
|
+ "\n <VAR id=\"x\" />" |
1506 |
|
+ "\n </PREDVAR>" |
1507 |
|
+ "\n <PREDVAR id=\"A\" />" |
1508 |
|
+ "\n </IMPL>" |
1509 |
|
+ "\n </FORALL>" |
1510 |
|
+ "\n <IMPL>" |
1511 |
|
+ "\n <FORALL>" |
1512 |
|
+ "\n <VAR id=\"x\" />" |
1513 |
|
+ "\n <PREDVAR id=\"\\phi\">" |
1514 |
|
+ "\n <VAR id=\"x\" />" |
1515 |
|
+ "\n </PREDVAR>" |
1516 |
|
+ "\n </FORALL>" |
1517 |
|
+ "\n <PREDVAR id=\"A\" />" |
1518 |
|
+ "\n </IMPL>" |
1519 |
|
+ "\n </IMPL>" |
1520 |
|
|
1521 |
|
); |
1522 |
|
|
1523 |
4
|
assertTrue(isTautology(ele)); |
1524 |
|
} |
1525 |
|
|
1526 |
|
|
1527 |
|
|
1528 |
|
|
1529 |
|
|
1530 |
|
|
1531 |
|
|
1532 |
|
@throws |
1533 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
1534 |
4
|
public void testTautology43() throws Exception {... |
1535 |
4
|
final Element ele = BasicParser.createElement( |
1536 |
|
" <IMPL>\n" |
1537 |
|
+ " <FORALL>\n" |
1538 |
|
+ " <VAR id=\"z\"/>\n" |
1539 |
|
+ " <EQUI>\n" |
1540 |
|
+ " <PREDCON ref=\"in\">\n" |
1541 |
|
+ " <VAR id=\"z\"/>\n" |
1542 |
|
+ " <VAR id=\"x\"/>\n" |
1543 |
|
+ " </PREDCON>\n" |
1544 |
|
+ " <PREDCON ref=\"in\">\n" |
1545 |
|
+ " <VAR id=\"z\"/>\n" |
1546 |
|
+ " <VAR id=\"y\"/>\n" |
1547 |
|
+ " </PREDCON>\n" |
1548 |
|
+ " </EQUI>\n" |
1549 |
|
+ " </FORALL>\n" |
1550 |
|
+ " <PREDCON ref=\"l.equal\">\n" |
1551 |
|
+ " <VAR id=\"x\"/>\n" |
1552 |
|
+ " <VAR id=\"y\"/>\n" |
1553 |
|
+ " </PREDCON>\n" |
1554 |
|
+ " </IMPL>\n" |
1555 |
|
); |
1556 |
|
|
1557 |
4
|
assertTrue(isTautology(ele)); |
1558 |
|
} |
1559 |
|
|
1560 |
|
|
1561 |
|
|
1562 |
|
|
1563 |
|
|
1564 |
|
|
1565 |
|
|
1566 |
|
@throws |
1567 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
1568 |
5
|
public void testTautology44() throws Exception {... |
1569 |
5
|
final Element ele = BasicParser.createElement( |
1570 |
|
" <EQUI>\n" |
1571 |
|
+ " <PREDCON ref=\"in\">\n" |
1572 |
|
+ " <VAR id=\"y\"/>\n" |
1573 |
|
+ " <CLASS>\n" |
1574 |
|
+ " <VAR id=\"x\"/>\n" |
1575 |
|
+ " <PREDVAR id=\"\\phi\">\n" |
1576 |
|
+ " <VAR id=\"x\"/>\n" |
1577 |
|
+ " </PREDVAR>\n" |
1578 |
|
+ " </CLASS>\n" |
1579 |
|
+ " </PREDCON>\n" |
1580 |
|
+ " <AND>\n" |
1581 |
|
+ " <PREDCON ref=\"isSet\">\n" |
1582 |
|
+ " <VAR id=\"y\"/>\n" |
1583 |
|
+ " </PREDCON>\n" |
1584 |
|
+ " <PREDVAR id=\"\\phi\">\n" |
1585 |
|
+ " <VAR id=\"y\"/>\n" |
1586 |
|
+ " </PREDVAR>\n" |
1587 |
|
+ " </AND>\n" |
1588 |
|
+ " </EQUI>\n" |
1589 |
|
); |
1590 |
|
|
1591 |
5
|
assertTrue(isTautology(ele)); |
1592 |
|
} |
1593 |
|
|
1594 |
|
|
1595 |
|
|
1596 |
|
|
1597 |
|
|
1598 |
|
|
1599 |
|
@throws |
1600 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
1601 |
2
|
public void testTautology45() throws Exception {... |
1602 |
2
|
final Element ele = BasicParser.createElement( |
1603 |
|
"<PREDCON id=\"equal\">\n" |
1604 |
|
+ " <FUNCON id=\"complement\">\n" |
1605 |
|
+ " <VAR id=\"x\" />\n" |
1606 |
|
+ " </FUNCON>\n" |
1607 |
|
+ " <CLASS>\n" |
1608 |
|
+ " <VAR id=\"z\" />\n" |
1609 |
|
+ " <PREDCON ref=\"notIn\">\n" |
1610 |
|
+ " <VAR id=\"z\" />\n" |
1611 |
|
+ " <VAR id=\"x\" />\n" |
1612 |
|
+ " </PREDCON>\n" |
1613 |
|
+ " </CLASS>\n" |
1614 |
|
+ "</PREDCON>\n" |
1615 |
|
); |
1616 |
|
|
1617 |
2
|
assertTrue(isTautology(ele)); |
1618 |
|
} |
1619 |
|
|
1620 |
|
|
1621 |
|
|
1622 |
|
|
1623 |
|
|
1624 |
|
|
1625 |
|
@throws |
1626 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
1627 |
1
|
public void testTautology46() throws Exception {... |
1628 |
1
|
final Element ele = BasicParser.createElement( |
1629 |
|
" <EQUI>\n" |
1630 |
|
+ " <PREDCON ref=\"subclass\">\n" |
1631 |
|
+ " <VAR id=\"x\" />\n" |
1632 |
|
+ " <VAR id=\"y\" />\n" |
1633 |
|
+ " </PREDCON>\n" |
1634 |
|
+ " <PREDCON ref=\"l.equal\">\n" |
1635 |
|
+ " <FUNCON ref=\"intersection\">\n" |
1636 |
|
+ " <VAR id=\"x\" />\n" |
1637 |
|
+ " <FUNCON ref=\"complement\">\n" |
1638 |
|
+ " <VAR id=\"y\" />\n" |
1639 |
|
+ " </FUNCON>\n" |
1640 |
|
+ " </FUNCON>\n" |
1641 |
|
+ " <FUNCON ref=\"emptySet\" />\n" |
1642 |
|
+ " </PREDCON>\n" |
1643 |
|
+ " </EQUI>\n" |
1644 |
|
); |
1645 |
|
|
1646 |
1
|
assertTrue(isTautology(ele)); |
1647 |
|
} |
1648 |
|
|
1649 |
|
|
1650 |
|
|
1651 |
|
|
1652 |
|
|
1653 |
|
|
1654 |
|
@throws |
1655 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
4
-
|
|
1656 |
1
|
public void testTautology47() throws Exception {... |
1657 |
1
|
final Element ele = BasicParser.createElement( |
1658 |
|
"<AND>\n" |
1659 |
|
+ " <EQUI>\n" |
1660 |
|
+ " <PREDCON ref=\"subclass\">\n" |
1661 |
|
+ " <VAR id=\"x\" />\n" |
1662 |
|
+ " <VAR id=\"y\" />\n" |
1663 |
|
+ " </PREDCON>\n" |
1664 |
|
+ " <PREDCON ref=\"l.equal\">\n" |
1665 |
|
+ " <FUNCON ref=\"union\">\n" |
1666 |
|
+ " <FUNCON ref=\"complement\">\n" |
1667 |
|
+ " <VAR id=\"x\" />\n" |
1668 |
|
+ " </FUNCON>\n" |
1669 |
|
+ " <VAR id=\"y\" />\n" |
1670 |
|
+ " </FUNCON>\n" |
1671 |
|
+ " <FUNCON ref=\"universalClass\" />\n" |
1672 |
|
+ " </PREDCON>\n" |
1673 |
|
+ " </EQUI>\n" |
1674 |
|
+ " \n" |
1675 |
|
+ " <EQUI>\n" |
1676 |
|
+ " <PREDCON ref=\"subclass\">\n" |
1677 |
|
+ " <VAR id=\"x\" />\n" |
1678 |
|
+ " <FUNCON ref=\"complement\">\n" |
1679 |
|
+ " <VAR id=\"y\" />\n" |
1680 |
|
+ " </FUNCON>\n" |
1681 |
|
+ " </PREDCON>\n" |
1682 |
|
+ " <PREDCON ref=\"l.equal\">\n" |
1683 |
|
+ " <FUNCON ref=\"intersection\">\n" |
1684 |
|
+ " <VAR id=\"x\" />\n" |
1685 |
|
+ " <VAR id=\"y\" />\n" |
1686 |
|
+ " </FUNCON>\n" |
1687 |
|
+ " <FUNCON ref=\"emptySet\" />\n" |
1688 |
|
+ " </PREDCON>\n" |
1689 |
|
+ " </EQUI>\n" |
1690 |
|
+ " \n" |
1691 |
|
+ " <EQUI>\n" |
1692 |
|
+ " <PREDCON ref=\"subclass\">\n" |
1693 |
|
+ " <FUNCON ref=\"intersection\">\n" |
1694 |
|
+ " <VAR id=\"x\" />\n" |
1695 |
|
+ " <VAR id=\"y\" />\n" |
1696 |
|
+ " </FUNCON>\n" |
1697 |
|
+ " <VAR id=\"z\" />\n" |
1698 |
|
+ " </PREDCON>\n" |
1699 |
|
+ " <PREDCON ref=\"subclass\">\n" |
1700 |
|
+ " <VAR id=\"x\" />\n" |
1701 |
|
+ " <FUNCON ref=\"union\">\n" |
1702 |
|
+ " <FUNCON ref=\"complement\">\n" |
1703 |
|
+ " <VAR id=\"y\" />\n" |
1704 |
|
+ " </FUNCON>\n" |
1705 |
|
+ " <VAR id=\"z\" />\n" |
1706 |
|
+ " </FUNCON>\n" |
1707 |
|
+ " </PREDCON>\n" |
1708 |
|
+ " </EQUI> \n" |
1709 |
|
+ " \n" |
1710 |
|
+ "</AND>\n" |
1711 |
|
); |
1712 |
|
|
1713 |
1
|
assertTrue(isTautology(ele)); |
1714 |
|
} |
1715 |
|
|
1716 |
|
} |