4 #ifndef __CPROVER_STDIO_H_INCLUDED
6 #define __CPROVER_STDIO_H_INCLUDED
10 #if defined(__OpenBSD__)
31 #ifndef __CPROVER_STDIO_H_INCLUDED
33 #define __CPROVER_STDIO_H_INCLUDED
51 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
57 "resource leak: fopen file not closed");
63 #ifndef __CPROVER_STDIO_H_INCLUDED
65 #define __CPROVER_STDIO_H_INCLUDED
68 #ifndef __CPROVER_STDLIB_H_INCLUDED
70 #define __CPROVER_STDLIB_H_INCLUDED
75 FILE *
fopen64(
const char *filename,
const char *mode);
77 FILE *
fopen(
const char *filename,
const char *mode)
90 #ifndef __CPROVER_STDIO_H_INCLUDED
92 # define __CPROVER_STDIO_H_INCLUDED
95 #ifndef __CPROVER_STDLIB_H_INCLUDED
97 # define __CPROVER_STDLIB_H_INCLUDED
104 FILE *_fopen(
const char *filename,
const char *mode)
109 # ifdef __CPROVER_STRING_ABSTRACTION
112 "fopen zero-termination of 1st argument");
121 fopen_result = fopen_error ? NULL :
malloc(
sizeof(FILE));
123 # ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
134 #ifndef __CPROVER_STDIO_H_INCLUDED
136 # define __CPROVER_STDIO_H_INCLUDED
139 #ifndef __CPROVER_STDLIB_H_INCLUDED
141 # define __CPROVER_STDLIB_H_INCLUDED
147 FILE *
fopen64(
const char *filename,
const char *mode)
152 #ifdef __CPROVER_STRING_ABSTRACTION
155 "fopen zero-termination of 1st argument");
164 #if !defined(__linux__) || defined(__GLIBC__)
165 fopen_result = fopen_error ? NULL :
malloc(
sizeof(FILE));
169 fopen_result = fopen_error ? NULL :
malloc(
sizeof(
int));
172 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
182 #ifndef __CPROVER_STDIO_H_INCLUDED
184 #define __CPROVER_STDIO_H_INCLUDED
187 FILE *
freopen64(
const char *filename,
const char *mode, FILE *f);
189 FILE *
freopen(
const char *filename,
const char *mode, FILE *f)
197 #ifndef __CPROVER_STDIO_H_INCLUDED
199 # define __CPROVER_STDIO_H_INCLUDED
202 FILE *
freopen64(
const char *filename,
const char *mode, FILE *f)
207 #if !defined(__linux__) || defined(__GLIBC__)
218 #ifndef __CPROVER_STDIO_H_INCLUDED
220 #define __CPROVER_STDIO_H_INCLUDED
223 #ifndef __CPROVER_STDLIB_H_INCLUDED
225 #define __CPROVER_STDLIB_H_INCLUDED
233 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
235 "fclose file must be open");
246 #ifndef __CPROVER_STDIO_H_INCLUDED
248 #define __CPROVER_STDIO_H_INCLUDED
251 #ifndef __CPROVER_STDLIB_H_INCLUDED
253 #define __CPROVER_STDLIB_H_INCLUDED
256 FILE *
fdopen(
int handle,
const char *mode)
261 #ifdef __CPROVER_STRING_ABSTRACTION
263 "fdopen zero-termination of 2nd argument");
266 #if !defined(__linux__) || defined(__GLIBC__)
267 FILE *f=
malloc(
sizeof(FILE));
271 FILE *f=
malloc(
sizeof(
int));
284 #ifndef __CPROVER_STDIO_H_INCLUDED
286 #define __CPROVER_STDIO_H_INCLUDED
289 #ifndef __CPROVER_STDLIB_H_INCLUDED
291 #define __CPROVER_STDLIB_H_INCLUDED
295 FILE *_fdopen(
int handle,
const char *mode)
300 #ifdef __CPROVER_STRING_ABSTRACTION
302 "fdopen zero-termination of 2nd argument");
305 FILE *f=
malloc(
sizeof(FILE));
313 #ifndef __CPROVER_STDIO_H_INCLUDED
315 #define __CPROVER_STDIO_H_INCLUDED
321 char *
fgets(
char *str,
int size, FILE *stream)
329 #if !defined(__linux__) || defined(__GLIBC__)
332 (void)*(
char *)stream;
336 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
338 "fgets file must be open");
341 #ifdef __CPROVER_STRING_ABSTRACTION
356 char contents_nondet[str_length];
359 str[str_length]=
'\0';
368 #ifndef __CPROVER_STDIO_H_INCLUDED
370 # define __CPROVER_STDIO_H_INCLUDED
376 char *
__fgets_chk(
char *str, __CPROVER_size_t bufsize,
int size, FILE *stream)
385 #if !defined(__linux__) || defined(__GLIBC__)
388 (void)*(
char *)stream;
392 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
397 #ifdef __CPROVER_STRING_ABSTRACTION
413 char contents_nondet[str_length];
416 str[str_length] =
'\0';
420 return error ? 0 : str;
425 #ifndef __CPROVER_STDIO_H_INCLUDED
427 #define __CPROVER_STDIO_H_INCLUDED
433 size_t fread(
void *ptr,
size_t size,
size_t nitems, FILE *stream)
437 size_t upper_bound = nitems * size;
442 #if !defined(__linux__) || defined(__GLIBC__)
445 (void)*(
char *)stream;
449 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
451 "fread file must be open");
454 for(
size_t i = 0; i < bytes_read && i < upper_bound; i++)
459 return bytes_read / size;
464 #ifndef __CPROVER_STDIO_H_INCLUDED
466 # define __CPROVER_STDIO_H_INCLUDED
473 __fread_chk(
void *ptr,
size_t ptrlen,
size_t size,
size_t nitems, FILE *stream)
477 size_t upper_bound = nitems * size;
482 #if !defined(__linux__) || defined(__GLIBC__)
485 (void)*(
char *)stream;
489 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
494 for(
size_t i = 0; i < bytes_read && i < upper_bound && i < ptrlen; i++)
499 return bytes_read / size;
504 #ifndef __CPROVER_STDIO_H_INCLUDED
506 #define __CPROVER_STDIO_H_INCLUDED
519 #if !defined(__linux__) || defined(__GLIBC__)
522 (void)*(
char *)stream;
526 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
528 "feof file must be open");
536 #ifndef __CPROVER_STDIO_H_INCLUDED
538 #define __CPROVER_STDIO_H_INCLUDED
551 #if !defined(__linux__) || defined(__GLIBC__)
554 (void)*(
char *)stream;
558 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
560 "feof file must be open");
568 #ifndef __CPROVER_STDIO_H_INCLUDED
570 #define __CPROVER_STDIO_H_INCLUDED
580 else if(stream == stdout)
582 else if(stream == stderr)
588 #if !defined(__linux__) || defined(__GLIBC__)
591 (void)*(
char*)stream;
594 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
596 "fileno file must be open");
604 #ifndef __CPROVER_STDIO_H_INCLUDED
606 #define __CPROVER_STDIO_H_INCLUDED
611 int fputs(
const char *s, FILE *stream)
616 #ifdef __CPROVER_STRING_ABSTRACTION
621 if(stream != stdout && stream != stderr)
623 #if !defined(__linux__) || defined(__GLIBC__)
626 (void)*(
char *)stream;
630 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
632 "fputs file must be open");
640 #ifndef __CPROVER_STDIO_H_INCLUDED
642 #define __CPROVER_STDIO_H_INCLUDED
654 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
657 "fflush file must be open");
665 #ifndef __CPROVER_STDIO_H_INCLUDED
667 #define __CPROVER_STDIO_H_INCLUDED
678 if(stream != stdin && stream != stdout && stream != stderr)
680 #if !defined(__linux__) || defined(__GLIBC__)
683 (void)*(
char *)stream;
687 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
689 "fpurge file must be open");
697 #ifndef __CPROVER_STDIO_H_INCLUDED
699 #define __CPROVER_STDIO_H_INCLUDED
711 #if !defined(__linux__) || defined(__GLIBC__)
714 (void)*(
char *)stream;
723 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
725 "fgetc file must be open");
733 #ifndef __CPROVER_STDIO_H_INCLUDED
735 #define __CPROVER_STDIO_H_INCLUDED
747 #if !defined(__linux__) || defined(__GLIBC__)
750 (void)*(
char *)stream;
754 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
756 "getc file must be open");
769 #ifndef __CPROVER_STDIO_H_INCLUDED
771 #define __CPROVER_STDIO_H_INCLUDED
788 #ifndef __CPROVER_STDIO_H_INCLUDED
790 #define __CPROVER_STDIO_H_INCLUDED
802 #if !defined(__linux__) || defined(__GLIBC__)
805 (void)*(
char *)stream;
809 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
811 "getw file must be open");
822 #ifndef __CPROVER_STDIO_H_INCLUDED
824 #define __CPROVER_STDIO_H_INCLUDED
829 int fseek(FILE *stream,
long offset,
int whence)
834 #if !defined(__linux__) || defined(__GLIBC__)
837 (void)*(
char*)stream;
842 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
844 "fseek file must be open");
852 #ifndef __CPROVER_STDIO_H_INCLUDED
854 #define __CPROVER_STDIO_H_INCLUDED
864 #if !defined(__linux__) || defined(__GLIBC__)
867 (void)*(
char*)stream;
870 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
872 "ftell file must be open");
880 #ifndef __CPROVER_STDIO_H_INCLUDED
882 #define __CPROVER_STDIO_H_INCLUDED
889 #if !defined(__linux__) || defined(__GLIBC__)
892 (void)*(
char*)stream;
895 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
897 "rewind file must be open");
903 #ifndef __CPROVER_STDIO_H_INCLUDED
905 #define __CPROVER_STDIO_H_INCLUDED
920 if(stream != stdout && stream != stderr)
922 #if !defined(__linux__) || defined(__GLIBC__)
925 (void)*(
char *)stream;
929 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
931 "fwrite file must be open");
941 #ifndef __CPROVER_STDIO_H_INCLUDED
943 #define __CPROVER_STDIO_H_INCLUDED
951 #ifdef __CPROVER_STRING_ABSTRACTION
964 #if !defined(__USE_ISOC99) || !defined(__REDIRECT)
966 # ifndef __CPROVER_STDIO_H_INCLUDED
968 # define __CPROVER_STDIO_H_INCLUDED
971 # ifndef __CPROVER_STDARG_H_INCLUDED
973 # define __CPROVER_STDARG_H_INCLUDED
990 #ifndef __CPROVER_STDIO_H_INCLUDED
992 # define __CPROVER_STDIO_H_INCLUDED
995 #ifndef __CPROVER_STDARG_H_INCLUDED
997 # define __CPROVER_STDARG_H_INCLUDED
1012 #if !defined(__USE_ISOC99) || !defined(__REDIRECT)
1014 # ifndef __CPROVER_STDIO_H_INCLUDED
1016 # define __CPROVER_STDIO_H_INCLUDED
1019 # ifndef __CPROVER_STDARG_H_INCLUDED
1020 # include <stdarg.h>
1021 # define __CPROVER_STDARG_H_INCLUDED
1038 #ifndef __CPROVER_STDIO_H_INCLUDED
1040 # define __CPROVER_STDIO_H_INCLUDED
1043 #ifndef __CPROVER_STDARG_H_INCLUDED
1044 # include <stdarg.h>
1045 # define __CPROVER_STDARG_H_INCLUDED
1060 #if !defined(__USE_ISOC99) || !defined(__REDIRECT)
1062 # ifndef __CPROVER_STDIO_H_INCLUDED
1064 # define __CPROVER_STDIO_H_INCLUDED
1067 # ifndef __CPROVER_STDARG_H_INCLUDED
1068 # include <stdarg.h>
1069 # define __CPROVER_STDARG_H_INCLUDED
1086 #ifndef __CPROVER_STDIO_H_INCLUDED
1088 # define __CPROVER_STDIO_H_INCLUDED
1091 #ifndef __CPROVER_STDARG_H_INCLUDED
1092 # include <stdarg.h>
1093 # define __CPROVER_STDARG_H_INCLUDED
1108 #if !defined(__USE_ISOC99) || !defined(__REDIRECT)
1110 # ifndef __CPROVER_STDIO_H_INCLUDED
1112 # define __CPROVER_STDIO_H_INCLUDED
1115 # ifndef __CPROVER_STDARG_H_INCLUDED
1116 # include <stdarg.h>
1117 # define __CPROVER_STDARG_H_INCLUDED
1129 #if !defined(__linux__) || defined(__GLIBC__)
1132 (void)*(
char *)stream;
1137 # if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
1141 void *a = va_arg(arg,
void *);
1148 void *a = va_arg(arg,
void *);
1153 # ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
1155 "vfscanf file must be open");
1165 #ifndef __CPROVER_STDIO_H_INCLUDED
1167 # define __CPROVER_STDIO_H_INCLUDED
1170 #ifndef __CPROVER_STDARG_H_INCLUDED
1171 # include <stdarg.h>
1172 # define __CPROVER_STDARG_H_INCLUDED
1187 #if !defined(__linux__) || defined(__GLIBC__)
1190 (void)*(
char *)stream;
1195 #if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
1199 void *a = va_arg(arg,
void *);
1206 void *a = va_arg(arg,
void *);
1211 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
1223 # ifndef __CPROVER_STDIO_H_INCLUDED
1225 # define __CPROVER_STDIO_H_INCLUDED
1228 # ifndef __CPROVER_STDARG_H_INCLUDED
1229 # include <stdarg.h>
1230 # define __CPROVER_STDARG_H_INCLUDED
1235 int __stdio_common_vfscanf(
1236 unsigned __int64 options,
1249 (void)*(
char *)stream;
1253 # if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
1257 void *a = va_arg(args,
void *);
1264 void *a = va_arg(args,
void *);
1269 # ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
1281 #if !defined(__USE_ISOC99) || !defined(__REDIRECT)
1283 # ifndef __CPROVER_STDIO_H_INCLUDED
1285 # define __CPROVER_STDIO_H_INCLUDED
1288 # ifndef __CPROVER_STDARG_H_INCLUDED
1289 # include <stdarg.h>
1290 # define __CPROVER_STDARG_H_INCLUDED
1303 #ifndef __CPROVER_STDIO_H_INCLUDED
1305 # define __CPROVER_STDIO_H_INCLUDED
1308 #ifndef __CPROVER_STDARG_H_INCLUDED
1309 # include <stdarg.h>
1310 # define __CPROVER_STDARG_H_INCLUDED
1321 #if !defined(__USE_ISOC99) || !defined(__REDIRECT)
1323 # ifndef __CPROVER_STDIO_H_INCLUDED
1325 # define __CPROVER_STDIO_H_INCLUDED
1328 # ifndef __CPROVER_STDARG_H_INCLUDED
1329 # include <stdarg.h>
1330 # define __CPROVER_STDARG_H_INCLUDED
1341 # if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
1345 void *a = va_arg(arg,
void *);
1352 void *a = va_arg(arg,
void *);
1364 #ifndef __CPROVER_STDIO_H_INCLUDED
1366 # define __CPROVER_STDIO_H_INCLUDED
1369 #ifndef __CPROVER_STDARG_H_INCLUDED
1370 # include <stdarg.h>
1371 # define __CPROVER_STDARG_H_INCLUDED
1385 #if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
1389 void *a = va_arg(arg,
void *);
1396 void *a = va_arg(arg,
void *);
1408 # ifndef __CPROVER_STDIO_H_INCLUDED
1410 # define __CPROVER_STDIO_H_INCLUDED
1413 # ifndef __CPROVER_STDARG_H_INCLUDED
1414 # include <stdarg.h>
1415 # define __CPROVER_STDARG_H_INCLUDED
1420 int __stdio_common_vsscanf(
1421 unsigned __int64 options,
1423 size_t buffer_count,
1435 # if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
1439 void *a = va_arg(args,
void *);
1446 void *a = va_arg(args,
void *);
1458 #ifndef __CPROVER_STDIO_H_INCLUDED
1460 # define __CPROVER_STDIO_H_INCLUDED
1463 #ifndef __CPROVER_STDARG_H_INCLUDED
1464 # include <stdarg.h>
1465 # define __CPROVER_STDARG_H_INCLUDED
1483 #ifndef __CPROVER_STDIO_H_INCLUDED
1485 # define __CPROVER_STDIO_H_INCLUDED
1488 #ifndef __CPROVER_STDARG_H_INCLUDED
1489 # include <stdarg.h>
1490 # define __CPROVER_STDARG_H_INCLUDED
1509 #ifndef __CPROVER_STDIO_H_INCLUDED
1511 #define __CPROVER_STDIO_H_INCLUDED
1514 #ifndef __CPROVER_STDARG_H_INCLUDED
1516 #define __CPROVER_STDARG_H_INCLUDED
1531 #ifndef __CPROVER_STDIO_H_INCLUDED
1533 # define __CPROVER_STDIO_H_INCLUDED
1536 #ifndef __CPROVER_STDARG_H_INCLUDED
1537 # include <stdarg.h>
1538 # define __CPROVER_STDARG_H_INCLUDED
1554 #ifndef __CPROVER_STDIO_H_INCLUDED
1556 #define __CPROVER_STDIO_H_INCLUDED
1559 #ifndef __CPROVER_STDARG_H_INCLUDED
1561 #define __CPROVER_STDARG_H_INCLUDED
1572 if(stream != stdout && stream != stderr)
1574 #if !defined(__linux__) || defined(__GLIBC__)
1577 (void)*(
char *)stream;
1584 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
1586 "vfprintf file must be open");
1594 #ifndef __CPROVER_STDIO_H_INCLUDED
1596 # define __CPROVER_STDIO_H_INCLUDED
1599 #ifndef __CPROVER_STDARG_H_INCLUDED
1600 # include <stdarg.h>
1601 # define __CPROVER_STDARG_H_INCLUDED
1617 if(stream != stdout && stream != stderr)
1619 #if !defined(__linux__) || defined(__GLIBC__)
1622 (void)*(
char *)stream;
1629 #ifdef __CPROVER_CUSTOM_BITVECTOR_ANALYSIS
1639 #ifndef __CPROVER_STDARG_H_INCLUDED
1640 # include <stdarg.h>
1641 # define __CPROVER_STDARG_H_INCLUDED
1646 int vasprintf(
char **ptr,
const char *fmt, va_list ap);
1651 va_start(list, fmt);
1659 #ifndef __CPROVER_STDIO_H_INCLUDED
1661 # define __CPROVER_STDIO_H_INCLUDED
1664 #ifndef __CPROVER_STDARG_H_INCLUDED
1665 # include <stdarg.h>
1666 # define __CPROVER_STDARG_H_INCLUDED
1681 #ifndef __CPROVER_STDIO_H_INCLUDED
1683 # define __CPROVER_STDIO_H_INCLUDED
1686 #ifndef __CPROVER_STDARG_H_INCLUDED
1687 # include <stdarg.h>
1688 # define __CPROVER_STDARG_H_INCLUDED
1708 #ifndef __CPROVER_STDIO_H_INCLUDED
1710 #define __CPROVER_STDIO_H_INCLUDED
1713 #ifndef __CPROVER_STDARG_H_INCLUDED
1715 #define __CPROVER_STDARG_H_INCLUDED
1718 #ifndef __CPROVER_STDLIB_H_INCLUDED
1720 #define __CPROVER_STDLIB_H_INCLUDED
1732 if(result_buffer_size<=0)
1735 *ptr=
malloc(result_buffer_size);
1739 for( ; i<result_buffer_size; ++i)
1754 #ifndef __CPROVER_STDIO_H_INCLUDED
1756 # define __CPROVER_STDIO_H_INCLUDED
1759 #ifndef __CPROVER_STDARG_H_INCLUDED
1760 # include <stdarg.h>
1761 # define __CPROVER_STDARG_H_INCLUDED
1766 int snprintf(
char *str,
size_t size,
const char *fmt, ...)
1769 va_start(list, fmt);
1770 int result =
vsnprintf(str, size, fmt, list);
1777 #ifndef __CPROVER_STDIO_H_INCLUDED
1779 # define __CPROVER_STDIO_H_INCLUDED
1782 #ifndef __CPROVER_STDARG_H_INCLUDED
1783 # include <stdarg.h>
1784 # define __CPROVER_STDARG_H_INCLUDED
1804 va_start(list, fmt);
1812 #ifndef __CPROVER_STDIO_H_INCLUDED
1814 # define __CPROVER_STDIO_H_INCLUDED
1817 #ifndef __CPROVER_STDARG_H_INCLUDED
1818 # include <stdarg.h>
1819 # define __CPROVER_STDARG_H_INCLUDED
1826 int vsnprintf(
char *str,
size_t size,
const char *fmt, va_list ap)
1830 #if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
1835 (void)va_arg(ap,
int);
1838 "vsnprintf object overlap");
1845 (void)va_arg(ap,
int);
1848 "vsnprintf object overlap");
1853 for(; i < size; ++i)
1866 #ifndef __CPROVER_STDIO_H_INCLUDED
1868 # define __CPROVER_STDIO_H_INCLUDED
1871 #ifndef __CPROVER_STDARG_H_INCLUDED
1872 # include <stdarg.h>
1873 # define __CPROVER_STDARG_H_INCLUDED
1890 #if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
1895 (void)va_arg(ap,
int);
1898 "vsnprintf object overlap");
1905 (void)va_arg(ap,
int);
1908 "vsnprintf object overlap");
1913 for(; i < size; ++i)
1928 # ifndef __CPROVER_STDIO_H_INCLUDED
1930 # define __CPROVER_STDIO_H_INCLUDED
1933 FILE *__acrt_iob_func(
unsigned fd)
1935 static FILE stdin_file;
1936 static FILE stdout_file;
1937 static FILE stderr_file;
1944 return &stdout_file;
1946 return &stderr_file;
1958 # ifndef __CPROVER_STDIO_H_INCLUDED
1960 # define __CPROVER_STDIO_H_INCLUDED
1963 # ifndef __CPROVER_STDARG_H_INCLUDED
1964 # include <stdarg.h>
1965 # define __CPROVER_STDARG_H_INCLUDED
1968 int __stdio_common_vfprintf(
1969 unsigned __int64 options,
1978 if(stream == __acrt_iob_func(1))
1989 # ifndef __CPROVER_STDIO_H_INCLUDED
1991 # define __CPROVER_STDIO_H_INCLUDED
1994 # ifndef __CPROVER_STDARG_H_INCLUDED
1995 # include <stdarg.h>
1996 # define __CPROVER_STDARG_H_INCLUDED
2001 int __stdio_common_vsprintf(
2002 unsigned __int64 options,
2015 for(; i < size; ++i)
2032 # ifndef __CPROVER_STDIO_H_INCLUDED
2034 # define __CPROVER_STDIO_H_INCLUDED
2039 int __srget(FILE *stream)
2054 # ifndef __CPROVER_STDIO_H_INCLUDED
2056 # define __CPROVER_STDIO_H_INCLUDED
2061 int __swbuf(
int c, FILE *stream)
__CPROVER_bool __CPROVER_w_ok(const void *,...)
mini_bddt restrict(const mini_bddt &u, unsigned var, const bool value)
int __VERIFIER_nondet_int(void)
int vscanf(const char *restrict format, va_list arg)
int __isoc99_sscanf(const char *restrict s, const char *restrict format,...)
void fclose_cleanup(void *stream)
int vsnprintf(char *str, size_t size, const char *fmt, va_list ap)
int vasprintf(char **ptr, const char *fmt, va_list ap)
int dprintf(int fd, const char *restrict format,...)
int __isoc99_vscanf(const char *restrict format, va_list arg)
int scanf(const char *restrict format,...)
int snprintf(char *str, size_t size, const char *fmt,...)
int __fprintf_chk(FILE *stream, int flag, const char *restrict format,...)
int sscanf(const char *restrict s, const char *restrict format,...)
int asprintf(char **ptr, const char *fmt,...)
size_t fwrite(const void *ptr, size_t size, size_t nitems, FILE *stream)
FILE * fdopen(int handle, const char *mode)
size_t fread(void *ptr, size_t size, size_t nitems, FILE *stream)
int __isoc99_fscanf(FILE *restrict stream, const char *restrict format,...)
int __printf_chk(int flag, const char *format,...)
int vfscanf(FILE *restrict stream, const char *restrict format, va_list arg)
int vsscanf(const char *restrict s, const char *restrict format, va_list arg)
int __isoc99_vsscanf(const char *restrict s, const char *restrict format, va_list arg)
int __builtin___vsnprintf_chk(char *str, size_t size, int flag, size_t bufsize, const char *fmt, va_list ap)
int fseek(FILE *stream, long offset, int whence)
char __VERIFIER_nondet_char(void)
int __builtin___snprintf_chk(char *str, size_t size, int flag, size_t bufsize, const char *fmt,...)
int fputs(const char *s, FILE *stream)
char * fgets(char *str, int size, FILE *stream)
int __isoc99_scanf(const char *restrict format,...)
FILE * fopen64(const char *filename, const char *mode)
char * __fgets_chk(char *str, __CPROVER_size_t bufsize, int size, FILE *stream)
FILE * freopen64(const char *filename, const char *mode, FILE *f)
__CPROVER_bool __VERIFIER_nondet___CPROVER_bool(void)
int printf(const char *format,...)
size_t __VERIFIER_nondet_size_t(void)
void rewind(FILE *stream)
int fprintf(FILE *stream, const char *restrict format,...)
int vdprintf(int fd, const char *restrict format, va_list arg)
int __vfprintf_chk(FILE *stream, int flag, const char *restrict format, va_list arg)
void perror(const char *s)
size_t __fread_chk(void *ptr, size_t ptrlen, size_t size, size_t nitems, FILE *stream)
int __isoc99_vfscanf(FILE *restrict stream, const char *restrict format, va_list arg)
FILE * freopen(const char *filename, const char *mode, FILE *f)
int vfprintf(FILE *stream, const char *restrict format, va_list arg)
long __VERIFIER_nondet_long(void)
int fscanf(FILE *restrict stream, const char *restrict format,...)
FILE * fopen(const char *filename, const char *mode)
void * malloc(__CPROVER_size_t malloc_size)