Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added evaluation/empty_relations2 test.
- Loading branch information
Showing
5 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Souffle - A Datalog Compiler | ||
// Copyright (c) 2020, The Souffle Developers. All rights reserved | ||
// Licensed under the Universal Permissive License v 1.0 as shown at: | ||
// - https://opensource.org/licenses/UPL | ||
// - <souffle root>/licenses/SOUFFLE-UPL.txt | ||
|
||
// Tests redundant relation removal when two clauses end up being internally identical. | ||
// See issue #1745. | ||
|
||
.decl a(x:number) | ||
a(1). | ||
a(2). | ||
|
||
.decl empty(x:number) | ||
|
||
.decl useless(A:number) | ||
useless(W) :- a(W). | ||
|
||
.decl out(A:number) | ||
.output out | ||
out(K) :- a(K), empty(K). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Warning: No rules/facts defined for relation empty in file empty.dl at line 14 | ||
.decl empty(x:number) | ||
------^--------------- |
Empty file.
Empty file.