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

 // Test that aggregate loops are not converted to existence checks
.decl B(x:number, y:number)
.decl A,C(x:number)

C(3).
B(2, 3).
B(1, 3).

A(y) :- C(z), y = min x : B(x, z).
.printsize A
