Пример #1
0
 def _encode_automata_functions(self) -> List[str]:
     aht_nodes = get_reachable_from(self.aht.init_node,
                                    self.aht_transitions,
                                    self.dstPropMgr)[0]
     return [
         declare_enum(TYPE_A_STATE, map(lambda n: smt_name_q(n), aht_nodes))
     ]
Пример #2
0
 def _encode_model_functions(self) -> List[str]:
     return [declare_enum(TYPE_MODEL_STATE, map(smt_name_m, self.model_states))] + \
            [declare_fun(self.tau_desc)] + \
            [declare_fun(d) for d in self.desc_by_outSig.values()]
Пример #3
0
 def _encode_automata_functions(self) -> List[str]:
     atm_states = chain(*lmap(lambda a: a.nodes, self.atm_by_sig.values()))
     return [declare_enum(TYPE_A_STATE, map(smt_name_q, atm_states))]
Пример #4
0
 def _encode_automata_functions(self) -> List[str]:
     return [
         declare_enum(TYPE_A_STATE, map(smt_name_q, self.automaton.nodes))
     ]
Пример #5
0
 def _encode_model_functions(self,
                             model_states: Iterable[int]) -> List[str]:
     return [declare_enum(TYPE_MODEL_STATE, map(smt_name_m, model_states))] + \
            [declare_fun(self.tau_desc)] + \
            [declare_fun(d) for d in self.descr_by_output.values()]