Search in sources :

Example 1 with PredicateHierarchy

use of com.dat3m.dartagnan.solver.caat.predicates.PredicateHierarchy in project Dat3M by hernanponcedeleon.

the class CAATModel method from.

public static CAATModel from(Collection<? extends CAATPredicate> predicates, Collection<? extends Constraint> constraints) {
    Set<Constraint> consts = new HashSet<>(constraints);
    Set<CAATPredicate> preds = new HashSet<>(predicates);
    consts.forEach(c -> preds.add(c.getConstrainedPredicate()));
    PredicateHierarchy hierarchy = new PredicateHierarchy(preds);
    return new CAATModel(hierarchy, consts);
}
Also used : PredicateHierarchy(com.dat3m.dartagnan.solver.caat.predicates.PredicateHierarchy) Constraint(com.dat3m.dartagnan.solver.caat.constraints.Constraint) CAATPredicate(com.dat3m.dartagnan.solver.caat.predicates.CAATPredicate)

Aggregations

Constraint (com.dat3m.dartagnan.solver.caat.constraints.Constraint)1 CAATPredicate (com.dat3m.dartagnan.solver.caat.predicates.CAATPredicate)1 PredicateHierarchy (com.dat3m.dartagnan.solver.caat.predicates.PredicateHierarchy)1