3#ifndef __CPROVER_STRING_H_INCLUDED
5#define __CPROVER_STRING_H_INCLUDED
14int _getopt(
int argc,
char *
const argv[],
const char *optstring)
24 char *
const arg = argv[
optind];
25 if(arg[0] !=
'-' || arg[1] ==
'\0' || (arg[1] ==
'-' && arg[2] ==
'\0'))
45#ifdef __CPROVER_STRING_ABSTRACTION
48 "getopt zero-termination of 3rd argument");
73 return optstring[0] ==
':' ?
':' :
'?';
14int _getopt(
int argc,
char *
const argv[],
const char *optstring) {
…}
79int _getopt(
int argc,
char *
const argv[],
const char *optstring);
81int getopt(
int argc,
char *
const argv[],
const char *optstring)
84 return _getopt(argc, argv, optstring);
81int getopt(
int argc,
char *
const argv[],
const char *optstring) {
…}
92#ifndef __CPROVER_GETOPT_H_INCLUDED
94#define __CPROVER_GETOPT_H_INCLUDED
100 const char *optstring,
111 return getopt(argc, argv, optstring);
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
int getopt_long(int argc, char *const argv[], const char *optstring, const struct option *longopts, int *longindex)
int getopt(int argc, char *const argv[], const char *optstring)
__CPROVER_bool __VERIFIER_nondet___CPROVER_bool(void)
size_t __VERIFIER_nondet_size_t(void)
int _getopt(int argc, char *const argv[], const char *optstring)
size_t strlen(const char *s)