// Souffle - A Datalog Compiler
// Copyright (c) 2018, 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 the use of unused variables in body constraints

.decl a(x:number)
.decl b(x:number, y:number)
a(x), b(x,y) :- x = 0, y = 0.

.decl c(x:number)
c(x) :- a(x), y = 0.
c(x) :- c(x), c(y), y != x.

.output a()
.output b()
.output c()
