// Souffle - A Datalog Compiler
// Copyright (c) 2017, 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

// Check that new knowledge generated by inserting into an eqrel is not lost.

.pragma "provenance" "explain"

.decl notEqrel(x:number,y:number)
.decl isEqrel(x:number, y:number) eqrel

notEqrel(x, y) :- isEqrel(x, y).
isEqrel(x, y) :- notEqrel(x, y).

isEqrel(0,1).

notEqrel(1,2).

.output isEqrel, notEqrel
