コード例 #1
0
ファイル: atomic_predicate.py プロジェクト: bgyori/syndra
    def _assert(self, submodel, interpretation):
        node = interpretation(self.x)

        action = submodel.action
        atomic_action = AtomicAction.rem_action(node)
        has_rem_action = z3.Select(action, atomic_action)

        graph = submodel.pregraph_has_node
        has_function = Graph.has(graph)
        pregraph_has_node = z3.Select(has_function, node)

        return z3.And(has_rem_action, pregraph_has_node)
コード例 #2
0
    def _assert(self, submodel, interpretation):
        node = interpretation(self.x)

        action = submodel.action
        atomic_action = AtomicAction.rem_action(node)
        has_rem_action = z3.Select(action, atomic_action)

        graph = submodel.pregraph_has_node
        has_function = Graph.has(graph)
        pregraph_has_node = z3.Select(has_function, node)

        return z3.And(has_rem_action, pregraph_has_node)
コード例 #3
0
ファイル: atomic_predicate.py プロジェクト: bgyori/syndra
 def _assert(self, submodel, interpretation):
     action = submodel.action
     atomic_action = AtomicAction.unlink_action(
         interpretation(self.x), interpretation(self.y))
     has_action = z3.Select(action, atomic_action)
     return has_action
コード例 #4
0
 def _assert(self, submodel, interpretation):
     action = submodel.action
     atomic_action = AtomicAction.unlink_action(interpretation(self.x),
                                                interpretation(self.y))
     has_action = z3.Select(action, atomic_action)
     return has_action