77 std::vector<std::pair<std::string, std::vector<Net*>>>
output_nets;
93 std::map<u64, std::vector<std::pair<std::string, BooleanFunction>>>
outputs;
Result< StateTransitionGraph > solve_fsm(const Configuration &config)
Recover the state transition graph of an FSM from the netlist that implements it.
The state transition graph of an FSM, i.e., the behavior that its netlist implements.
std::vector< std::pair< std::string, std::vector< Net * > > > output_nets
The outputs of the FSM, each given as a name and the nets that make up that output.
Result< std::string > generate_dot_graph(const std::filesystem::path &graph_path="", const u32 max_condition_length=128, const u32 base=10) const
Render the state transition graph in the DOT format.
std::map< u64, std::map< u64, BooleanFunction > > transitions
A map from each state to its successor states, together with the condition under which the respective...
u32 get_state_size() const
Get the number of flip-flops that make up the state register, i.e., the bit-size of a state.
std::vector< Gate * > state_register
The flip-flops that make up the state register, in the order that determines the encoding of a state.
Netlist * netlist
The netlist that implements the FSM.
Result< std::string > to_string(const u32 base=10) const
Render the state transition graph as human-readable text, without truncating anything.
std::map< u64, std::vector< std::pair< std::string, BooleanFunction > > > outputs
A map from each state to the value of every output of the FSM in that state.
Result< std::monostate > write_txt(const std::filesystem::path &file_path, const u32 base=10) const
Write the state transition graph to a text file, without truncating anything.