12#ifndef CPROVER_GOTO_INSTRUMENT_UNWINDSET_H
13#define CPROVER_GOTO_INSTRUMENT_UNWINDSET_H
40 const std::list<std::string> &unwindset,
45 std::optional<unsigned>
50 const std::string &file_name,
59 typedef std::map<irep_idt, std::optional<unsigned>>
loop_mapt;
64 std::map<std::pair<irep_idt, unsigned>, std::optional<unsigned>>;
68 std::string loop_limit,
73#define OPT_UNWINDSET \
78#define HELP_UNWINDSET \
79 " {y--show-loops} \t show the loops in the program\n" \
80 " {y--unwind} {unr} \t unwind loops {unr} times\n" \
81 " {y--unwindset} [{uT}{y:}]{uL}{y:}{uB},... \t " \
82 "unwind loop {uL} with a bound of {uB} (optionally restricted to thread " \
83 "{uT}) (use {y--show-loops} to get the loop IDs)\n"
Abstract interface to eager or lazy GOTO models.
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
std::optional< unsigned > get_limit(const irep_idt &loop, unsigned thread_id) const
void parse_unwindset_one_loop(std::string loop_limit, abstract_goto_modelt &goto_model, message_handlert &message_handler)
void parse_unwind(const std::string &unwind)
void parse_unwindset(const std::list< std::string > &unwindset, abstract_goto_modelt &goto_model, message_handlert &message_handler)
void parse_unwindset_file(const std::string &file_name, abstract_goto_modelt &goto_model, message_handlert &message_handler)
std::map< std::pair< irep_idt, unsigned >, std::optional< unsigned > > thread_loop_mapt
std::optional< unsigned > global_limit
thread_loop_mapt thread_loop_map
std::map< irep_idt, std::optional< unsigned > > loop_mapt
const std::string thread_id