Search in sources :

Example 76 with Variable

use of kodkod.ast.Variable in project org.alloytools.alloy by AlloyTools.

the class MED001 method sn_cure_2.

/**
 * Returns the sn_cure_2 axiom.
 *
 * @return sn_cure_2
 */
public final Formula sn_cure_2() {
    final Variable x0 = Variable.unary("X0");
    final Expression x1 = UNIV.difference(x0.join(gt));
    final Formula f0 = x1.in(releaselg).not().and(x0.in(bcapacitysn)).and(x0.in(qilt27).not()).and(x0.join(gt).in(conditionhyper));
    return f0.implies(x1.in(conditionnormo)).forAll(x0.oneOf(UNIV));
}
Also used : Formula(kodkod.ast.Formula) Variable(kodkod.ast.Variable) Expression(kodkod.ast.Expression)

Example 77 with Variable

use of kodkod.ast.Variable in project org.alloytools.alloy by AlloyTools.

the class MED001 method sn_cure_1.

/**
 * Returns the sn_cure_1 axiom.
 *
 * @return sn_cure_1
 */
public final Formula sn_cure_1() {
    final Variable x0 = Variable.unary("X0");
    final Expression x1 = UNIV.difference(x0.join(gt));
    final Formula f0 = x1.in(bsecretioni).and(x0.in(bcapacitysn)).and(x0.in(qilt27)).and(x0.join(gt).in(conditionhyper));
    return f0.implies(x1.in(conditionnormo)).forAll(x0.oneOf(UNIV));
}
Also used : Formula(kodkod.ast.Formula) Variable(kodkod.ast.Variable) Expression(kodkod.ast.Expression)

Example 78 with Variable

use of kodkod.ast.Variable in project org.alloytools.alloy by AlloyTools.

the class MED001 method su_completion.

/**
 * Returns the su_completion axiom.
 *
 * @return su_completion
 */
public final Formula su_completion() {
    final Variable x0 = Variable.unary("X0");
    final Expression x1 = UNIV.difference(x0.join(gt));
    final Formula f0 = x1.in(bsecretioni);
    return f0.implies(x1.in(drugsu).and(x0.in(bcapacityex).not())).forAll(x0.oneOf(UNIV));
}
Also used : Formula(kodkod.ast.Formula) Variable(kodkod.ast.Variable) Expression(kodkod.ast.Expression)

Example 79 with Variable

use of kodkod.ast.Variable in project org.alloytools.alloy by AlloyTools.

the class MED001 method ne_cure.

/**
 * Returns the ne_cure axiom.
 *
 * @return ne_cure
 */
public final Formula ne_cure() {
    final Variable x0 = Variable.unary("X0");
    final Expression x1 = UNIV.difference(x0.join(gt));
    final Formula f0 = x1.in(releaselg).not().or(x1.in(uptakepg)).and(x0.in(bcapacityne)).and(x1.in(bsecretioni)).and(x0.join(gt).in(conditionhyper));
    return f0.implies(x1.in(conditionnormo)).forAll(x0.oneOf(UNIV));
}
Also used : Formula(kodkod.ast.Formula) Variable(kodkod.ast.Variable) Expression(kodkod.ast.Expression)

Example 80 with Variable

use of kodkod.ast.Variable in project org.alloytools.alloy by AlloyTools.

the class MED001 method trans_ax2.

/**
 * Returns the trans_ax2 axiom.
 *
 * @return trans_ax2
 */
public final Formula trans_ax2() {
    final Variable x0 = Variable.unary("X0");
    final Expression x1 = UNIV.difference(x0.join(gt));
    final Formula f0 = x0.in(s1).and(x1.in(conditionnormo).not());
    final Formula f1 = x1.intersection(s2).intersection(bcapacityne.union(bcapacityex)).some().and(x1.join(gt).in(conditionhyper));
    return f0.implies(f1).forAll(x0.oneOf(UNIV));
}
Also used : Formula(kodkod.ast.Formula) Variable(kodkod.ast.Variable) Expression(kodkod.ast.Expression)

Aggregations

Variable (kodkod.ast.Variable)221 Formula (kodkod.ast.Formula)151 Expression (kodkod.ast.Expression)80 Decls (kodkod.ast.Decls)24 Solution (kodkod.engine.Solution)24 Relation (kodkod.ast.Relation)23 IntExpression (kodkod.ast.IntExpression)22 Bounds (kodkod.instance.Bounds)21 Universe (kodkod.instance.Universe)21 ArrayList (java.util.ArrayList)19 TupleFactory (kodkod.instance.TupleFactory)19 TupleSet (kodkod.instance.TupleSet)15 Solver (kodkod.engine.Solver)14 Decl (kodkod.ast.Decl)12 QuantifiedFormula (kodkod.ast.QuantifiedFormula)10 Test (org.junit.Test)10 Instance (kodkod.instance.Instance)8 BinaryExpression (kodkod.ast.BinaryExpression)5 SumExpression (kodkod.ast.SumExpression)3 Expr (edu.mit.csail.sdg.ast.Expr)2