Beispiel #1
0
 def include(self, seed, criterion, exclude=False):
     try:
         s = self.all_seeds[seed]
     except KeyError:
         s = self.all_seeds[seed] = set(), set()
     s[exclude].add(criterion)
     self.criteria_bits.setdefault(criterion, 0)
Beispiel #2
0
 def include(self, seed, criterion, exclude=False):
     try:
         s = self.all_seeds[seed]
     except KeyError:
         s = self.all_seeds[seed] = set(), set()
     s[exclude].add(criterion)
     self.criteria_bits.setdefault(criterion, 0)
Beispiel #3
0
def sequential_disjuncts(c):
    pre = True
    out = set()
    for cond in c:
        out.update(disjuncts(intersect(pre, cond)))
        pre = intersect(pre, negate(cond))
    return list(out)
def sequential_disjuncts(c):
    pre = True
    out = set()
    for cond in c:
        out.update(disjuncts(intersect(pre, cond)))
        pre = intersect(pre, negate(cond))
    return list(out)
Beispiel #5
0
 def add_criterion(self, criterion):
     my_seeds = self.criteria_seeds.setdefault(criterion, set())
     self.reseed(criterion)
     for seed in self.all_seeds:
         if implies(istype(seed), criterion):
             self.include(seed, criterion)
             my_seeds.add(seed)
     return my_seeds
Beispiel #6
0
 def add_criterion(self, criterion):
     my_seeds = self.criteria_seeds.setdefault(criterion, set())
     self.reseed(criterion)
     for seed in self.all_seeds:
         if implies(istype(seed), criterion):
             self.include(seed, criterion)
             my_seeds.add(seed)
     return my_seeds
Beispiel #7
0
 def __init__(self, owner, expr):
     self.constraints = set()
Beispiel #8
0
 def __init__(self, owner, expr):
     self.constraints = set()