|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkodkod.engine.ucore.StrategyUtils
public final class StrategyUtils
A collection of utility methods for implementing logic-level reduction strategies.
Method Summary | |
---|---|
static IntSet |
coreWithVar(ResolutionTrace trace,
int maxVariable)
Returns the indices of the clauses in the unsatifiable core of the given trace that have the specified maximum variable. |
static IntSet |
maxCoreVars(ResolutionTrace trace)
Returns the maximum variables of the clauses in the unsatisfiable core of the given trace. |
static java.util.Set<Formula> |
topFormulas(Formula formula)
Returns the top-level components of the given formula. |
static IntSet |
topVars(TranslationLog log)
Returns the variables that correspond to the top-level subformulas of log.formula |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.Set<Formula> topFormulas(Formula formula)
public static IntSet topVars(TranslationLog log)
{ v: int | some r: log.records | r.node in topFormulas(log.formula) and v = abs(r.literal) and no r': log.records | r'.node = r.node && abs(r'.literal) > v }
public static IntSet maxCoreVars(ResolutionTrace trace)
public static IntSet coreWithVar(ResolutionTrace trace, int maxVariable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |