40 for(std::size_t i=0; list[i]!=
nullptr; i++)
42 if(
strcmp(option, list[i])==0)
51 std::optional<std::size_t> optnr;
56 if(opt_string.size()==3)
65 option.
optstring=std::string(opt_string, 2, std::string::npos);
72 if(opt_string.size()==2)
81 option.
optstring=std::string(opt_string, 1, std::string::npos);
93 if(!optnr.has_value())
114 while(std::cin.
read(&ch, 1))
125 return arg.is_infile_name;
std::optional< std::size_t > getoptnr(char option) const
std::vector< optiont > options
void add_infile_arg(const std::string &arg)
std::size_t get_optnr(const std::string &option)
bool have_infile_arg() const
static bool in_list(const char *option, const char **list)
bool has_prefix(const std::string &s, const std::string &prefix)
Command line interpretation for goto-cc.
int __CPROVER_ID java::java io InputStream read
#define UNREACHABLE
This should be used to mark dead code.
void perror(const char *s)
FILE * fopen(const char *filename, const char *mode)
int strcmp(const char *s1, const char *s2)
std::string get_temporary_file(const std::string &prefix, const std::string &suffix)
Substitute for mkstemps (OpenBSD standard) for Windows, where it is unavailable.