Exemple #1
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)
Exemple #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)