OpenCoverage

getlimits.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/getlimits.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2void-
3usage (int status)-
4{-
5 if (status !=
status != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
6 0
status != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
7 )-
8 do { fprintf (-
9 stderr-
10 , -
11 dcgettext (((void *)0), -
12 "Try '%s --help' for more information.\n"-
13 , 5)-
14 , program_name); }
never executed: end of block
while (0);
0
15 else-
16 {-
17 printf (-
18 dcgettext (((void *)0), -
19 "Usage: %s\n"-
20 , 5)-
21-
22 -
23 , program_name);-
24-
25 fputs_unlocked (-
26 dcgettext (((void *)0), -
27 "Output platform dependent limits in a format useful for shell scripts.\n\n"-
28 , 5)-
29 ,-
30 stdout-
31 )-
32-
33-
34 ;-
35 fputs_unlocked (-
36 dcgettext (((void *)0), -
37 " --help display this help and exit\n"-
38 , 5)-
39 ,-
40 stdout-
41 );-
42 fputs_unlocked (-
43 dcgettext (((void *)0), -
44 " --version output version information and exit\n"-
45 , 5)-
46 ,-
47 stdout-
48 );-
49 emit_ancillary_info ("getlimits");-
50 }
never executed: end of block
0
51 exit (status);
never executed: exit (status);
0
52}-
53-
54-
55-
56-
57-
58static char const *-
59decimal_absval_add_one (char *buf)-
60{-
61 -
62 _Bool -
63 negative = (buf[1] == '-');-
64 char *absnum = buf + 1 + negative;-
65 char *p = absnum + strlen (absnum);-
66 absnum[-1] = '0';-
67 while (*--
*--p == '9'Description
TRUEnever evaluated
FALSEevaluated 729 times by 1 test
Evaluated by:
  • getlimits
p == '9'
*--p == '9'Description
TRUEnever evaluated
FALSEevaluated 729 times by 1 test
Evaluated by:
  • getlimits
)
0-729
68 *
never executed: *p = '0';
p = '0';
never executed: *p = '0';
0
69 ++*p;-
70 char *result = -
71 (((
(( absnum )<( p ))Description
TRUEevaluated 729 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0-729
72 absnum
(( absnum )<( p ))Description
TRUEevaluated 729 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0-729
73 )<(
(( absnum )<( p ))Description
TRUEevaluated 729 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0-729
74 p
(( absnum )<( p ))Description
TRUEevaluated 729 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0-729
75 ))
(( absnum )<( p ))Description
TRUEevaluated 729 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
?(
0-729
76 absnum-
77 ):(-
78 p-
79 ))-
80 ;-
81 if (negative
negativeDescription
TRUEevaluated 270 times by 1 test
Evaluated by:
  • getlimits
FALSEevaluated 459 times by 1 test
Evaluated by:
  • getlimits
)
270-459
82 *--
executed 270 times by 1 test: *--result = '-';
Executed by:
  • getlimits
result = '-';
executed 270 times by 1 test: *--result = '-';
Executed by:
  • getlimits
270
83 return
executed 729 times by 1 test: return result;
Executed by:
  • getlimits
result;
executed 729 times by 1 test: return result;
Executed by:
  • getlimits
729
84}-
85static void print_FLT (float x) { char buf[( (1 + (((((24) * 1) * 146 + 484) / 485) + 1) + -
8616 -
87+ 1 + ( -100 < ((-37)) && (38) < 100 ? 3 : -1000 < ((-37)) && (38) < 1000 ? 4 : -10000 < ((-37)) && (38) < 10000 ? 5 : -100000 < ((-37)) && (38) < 100000 ? 6 : -1000000 < ((-37)) && (38) < 1000000 ? 7 : (((((sizeof (int) * 8) - (! ((__typeof__ (int)) 0 < (__typeof__ (int)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (int)) 0 < (__typeof__ (int)) -1))) )) + 1)]; ftoastr (buf, sizeof buf, FTOASTR_LEFT_JUSTIFY, 0, x); puts (buf); }
executed 54 times by 1 test: end of block
Executed by:
  • getlimits
54
88static void print_DBL (double x) { char buf[( (1 + (((((53) * 1) * 146 + 484) / 485) + 1) + -
8916 -
90+ 1 + ( -100 < ((-307)) && (308) < 100 ? 3 : -1000 < ((-307)) && (308) < 1000 ? 4 : -10000 < ((-307)) && (308) < 10000 ? 5 : -100000 < ((-307)) && (308) < 100000 ? 6 : -1000000 < ((-307)) && (308) < 1000000 ? 7 : (((((sizeof (int) * 8) - (! ((__typeof__ (int)) 0 < (__typeof__ (int)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (int)) 0 < (__typeof__ (int)) -1))) )) + 1)]; dtoastr (buf, sizeof buf, FTOASTR_LEFT_JUSTIFY, 0, x); puts (buf); }
executed 54 times by 1 test: end of block
Executed by:
  • getlimits
54
91static void print_LDBL (long double x) { char buf[((1 + (((((64) * 1) * 146 + 484) / 485) + 1) + -
9216 -
93+ 1 + ( -100 < ((-4931)) && (4932) < 100 ? 3 : -1000 < ((-4931)) && (4932) < 1000 ? 4 : -10000 < ((-4931)) && (4932) < 10000 ? 5 : -100000 < ((-4931)) && (4932) < 100000 ? 6 : -1000000 < ((-4931)) && (4932) < 1000000 ? 7 : (((((sizeof (int) * 8) - (! ((__typeof__ (int)) 0 < (__typeof__ (int)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (int)) 0 < (__typeof__ (int)) -1))) )) + 1)]; ldtoastr (buf, sizeof buf, FTOASTR_LEFT_JUSTIFY, 0, x); puts (buf); }
executed 54 times by 1 test: end of block
Executed by:
  • getlimits
54
94-
95int-
96main (int argc, char **argv)-
97{-
98 char limit[1 + -
99 (((-
100 ((((((sizeof (intmax_t) * 8) - (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) + 1)-
101 )>(-
102 ((((((sizeof (uintmax_t) * 8) - (! ((__typeof__ (uintmax_t)) 0 < (__typeof__ (uintmax_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (uintmax_t)) 0 < (__typeof__ (uintmax_t)) -1))) + 1)-
103 ))?(-
104 ((((((sizeof (intmax_t) * 8) - (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) + 1)-
105 ):(-
106 ((((((sizeof (uintmax_t) * 8) - (! ((__typeof__ (uintmax_t)) 0 < (__typeof__ (uintmax_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (uintmax_t)) 0 < (__typeof__ (uintmax_t)) -1))) + 1)-
107 ))-
108 -
109 ];-
110-
111 ;-
112 set_program_name (argv[0]);-
113 setlocale (-
114 6-
115 , "");-
116 bindtextdomain ("coreutils", "/usr/local/share/locale");-
117 textdomain ("coreutils");-
118-
119 initialize_exit_failure (-
120 1-
121 );-
122 atexit (close_stdout);-
123-
124 parse_long_options (argc, argv, "getlimits", "GNU coreutils", "8.29.19-49b126",-
125 usage, ("Padraig Brady"), (char const *) -
126 ((void *)0)-
127 );-
128 sprintf (limit + 1, "%"-
129 "l" "u"-
130 , (uintmax_t) 0x7f); printf ("CHAR""_MAX=%s\n", limit + 1); printf ("CHAR""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (-
131 (-
(-0x7f - 1)Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0x7f - 1)
(-0x7f - 1)Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0-27
132 ) { sprintf (limit + 1, "%"-
133 "l" "d"-
134 , (intmax_t) -
135 (-0x7f - 1)-
136 ); printf ("CHAR""_MIN=%s\n", limit + 1); printf ("CHAR""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
executed 27 times by 1 test: end of block
Executed by:
  • getlimits
;
27
137 sprintf (limit + 1, "%"-
138 "l" "u"-
139 , (uintmax_t) 0x7f); printf ("SCHAR""_MAX=%s\n", limit + 1); printf ("SCHAR""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (-
140 (-
(-0x7f - 1)Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0x7f - 1)
(-0x7f - 1)Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0-27
141 ) { sprintf (limit + 1, "%"-
142 "l" "d"-
143 , (intmax_t) -
144 (-0x7f - 1)-
145 ); printf ("SCHAR""_MIN=%s\n", limit + 1); printf ("SCHAR""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
executed 27 times by 1 test: end of block
Executed by:
  • getlimits
;
27
146 sprintf (limit + 1, "%"-
147 "l" "u"-
148 , (uintmax_t) -
149 (0x7f * 2 + 1)-
150 ); printf ("UCHAR""_MAX=%s\n", limit + 1); printf ("UCHAR""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (0) { sprintf (limit + 1, "%"
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("UCHAR""_MIN=%s\n", limit + 1); printf ("UCHAR""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
-
151 "l" "d"
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("UCHAR""_MIN=%s\n", limit + 1); printf ("UCHAR""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
-
152 , (intmax_t) 0); printf ("UCHAR""_MIN=%s\n", limit + 1); printf ("UCHAR""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("UCHAR""_MIN=%s\n", limit + 1); printf ("UCHAR""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
;
-
153 sprintf (limit + 1, "%"-
154 "l" "u"-
155 , (uintmax_t) 0x7fff); printf ("SHRT""_MAX=%s\n", limit + 1); printf ("SHRT""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (-
156 (-
(-0x7fff - 1)Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0x7fff - 1)
(-0x7fff - 1)Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0-27
157 ) { sprintf (limit + 1, "%"-
158 "l" "d"-
159 , (intmax_t) -
160 (-0x7fff - 1)-
161 ); printf ("SHRT""_MIN=%s\n", limit + 1); printf ("SHRT""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
executed 27 times by 1 test: end of block
Executed by:
  • getlimits
;
27
162 sprintf (limit + 1, "%"-
163 "l" "u"-
164 , (uintmax_t) 0x7fffffff); printf ("INT""_MAX=%s\n", limit + 1); printf ("INT""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (-
165 (-
(-0x7fffffff - 1)Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0x7fffffff - 1)
(-0x7fffffff - 1)Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0-27
166 ) { sprintf (limit + 1, "%"-
167 "l" "d"-
168 , (intmax_t) -
169 (-0x7fffffff - 1)-
170 ); printf ("INT""_MIN=%s\n", limit + 1); printf ("INT""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
executed 27 times by 1 test: end of block
Executed by:
  • getlimits
;
27
171 sprintf (limit + 1, "%"-
172 "l" "u"-
173 , (uintmax_t) -
174 (0x7fffffff * 2U + 1U)-
175 ); printf ("UINT""_MAX=%s\n", limit + 1); printf ("UINT""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (0) { sprintf (limit + 1, "%"
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("UINT""_MIN=%s\n", limit + 1); printf ("UINT""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
-
176 "l" "d"
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("UINT""_MIN=%s\n", limit + 1); printf ("UINT""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
-
177 , (intmax_t) 0); printf ("UINT""_MIN=%s\n", limit + 1); printf ("UINT""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("UINT""_MIN=%s\n", limit + 1); printf ("UINT""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
;
-
178 sprintf (limit + 1, "%"-
179 "l" "u"-
180 , (uintmax_t) 0x7fffffffffffffffL); printf ("LONG""_MAX=%s\n", limit + 1); printf ("LONG""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (-
181 (-
(-0x7fffffffffffffffL - 1L)Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0x7fffffffffffffffL - 1L)
(-0x7fffffffffffffffL - 1L)Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0-27
182 ) { sprintf (limit + 1, "%"-
183 "l" "d"-
184 , (intmax_t) -
185 (-0x7fffffffffffffffL - 1L)-
186 ); printf ("LONG""_MIN=%s\n", limit + 1); printf ("LONG""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
executed 27 times by 1 test: end of block
Executed by:
  • getlimits
;
27
187 sprintf (limit + 1, "%"-
188 "l" "u"-
189 , (uintmax_t) -
190 (0x7fffffffffffffffL * 2UL + 1UL)-
191 ); printf ("ULONG""_MAX=%s\n", limit + 1); printf ("ULONG""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (0) { sprintf (limit + 1, "%"
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("ULONG""_MIN=%s\n", limit + 1); printf ("ULONG""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
-
192 "l" "d"
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("ULONG""_MIN=%s\n", limit + 1); printf ("ULONG""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
-
193 , (intmax_t) 0); printf ("ULONG""_MIN=%s\n", limit + 1); printf ("ULONG""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("ULONG""_MIN=%s\n", limit + 1); printf ("ULONG""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
;
-
194 sprintf (limit + 1, "%"-
195 "l" "u"-
196 , (uintmax_t) -
197 (18446744073709551615UL)-
198 ); printf ("SIZE""_MAX=%s\n", limit + 1); printf ("SIZE""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (0) { sprintf (limit + 1, "%"
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("SIZE""_MIN=%s\n", limit + 1); printf ("SIZE""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
-
199 "l" "d"
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("SIZE""_MIN=%s\n", limit + 1); printf ("SIZE""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
-
200 , (intmax_t) 0); printf ("SIZE""_MIN=%s\n", limit + 1); printf ("SIZE""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("SIZE""_MIN=%s\n", limit + 1); printf ("SIZE""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
;
-
201 sprintf (limit + 1, "%"-
202 "l" "u"-
203 , (uintmax_t) 0x7fffffffffffffffL); printf ("SSIZE""_MAX=%s\n", limit + 1); printf ("SSIZE""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (((
((ssize_t) ~ (...1) * 2 + 1))))Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
ssize_t) ~ ((ssize_t) (! (! ((ssize_t) 0 < (ssize_t) -1)) ? (ssize_t) -1 : ((((ssize_t) 1 << ((sizeof (ssize_t) * 8) - 2)) - 1) * 2 + 1))))
((ssize_t) ~ (...1) * 2 + 1))))Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
) { sprintf (limit + 1, "%"
0-27
204 "l" "d"-
205 , (intmax_t) ((ssize_t) ~ ((ssize_t) (! (! ((ssize_t) 0 < (ssize_t) -1)) ? (ssize_t) -1 : ((((ssize_t) 1 << ((sizeof (ssize_t) * 8) - 2)) - 1) * 2 + 1))))); printf ("SSIZE""_MIN=%s\n", limit + 1); printf ("SSIZE""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
executed 27 times by 1 test: end of block
Executed by:
  • getlimits
;
27
206 sprintf (limit + 1, "%"-
207 "l" "u"-
208 , (uintmax_t) ((time_t) (! (! ((time_t) 0 < (time_t) -1)) ? (time_t) -1 : ((((time_t) 1 << ((sizeof (time_t) * 8) - 2)) - 1) * 2 + 1)))); printf ("TIME_T""_MAX=%s\n", limit + 1); printf ("TIME_T""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (((
((time_t) ~ ((...1) * 2 + 1))))Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
time_t) ~ ((time_t) (! (! ((time_t) 0 < (time_t) -1)) ? (time_t) -1 : ((((time_t) 1 << ((sizeof (time_t) * 8) - 2)) - 1) * 2 + 1))))
((time_t) ~ ((...1) * 2 + 1))))Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
) { sprintf (limit + 1, "%"
0-27
209 "l" "d"-
210 , (intmax_t) ((time_t) ~ ((time_t) (! (! ((time_t) 0 < (time_t) -1)) ? (time_t) -1 : ((((time_t) 1 << ((sizeof (time_t) * 8) - 2)) - 1) * 2 + 1))))); printf ("TIME_T""_MIN=%s\n", limit + 1); printf ("TIME_T""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
executed 27 times by 1 test: end of block
Executed by:
  • getlimits
;
27
211 sprintf (limit + 1, "%"-
212 "l" "u"-
213 , (uintmax_t) ((uid_t) (! (! ((uid_t) 0 < (uid_t) -1)) ? (uid_t) -1 : ((((uid_t) 1 << ((sizeof (uid_t) * 8) - 2)) - 1) * 2 + 1)))); printf ("UID_T""_MAX=%s\n", limit + 1); printf ("UID_T""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (0) { sprintf (limit + 1, "%"
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("UID_T""_MIN=%s\n", limit + 1); printf ("UID_T""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
-
214 "l" "d"
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("UID_T""_MIN=%s\n", limit + 1); printf ("UID_T""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
-
215 , (intmax_t) 0); printf ("UID_T""_MIN=%s\n", limit + 1); printf ("UID_T""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("UID_T""_MIN=%s\n", limit + 1); printf ("UID_T""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
;
-
216 sprintf (limit + 1, "%"-
217 "l" "u"-
218 , (uintmax_t) ((gid_t) (! (! ((gid_t) 0 < (gid_t) -1)) ? (gid_t) -1 : ((((gid_t) 1 << ((sizeof (gid_t) * 8) - 2)) - 1) * 2 + 1)))); printf ("GID_T""_MAX=%s\n", limit + 1); printf ("GID_T""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (0) { sprintf (limit + 1, "%"
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("GID_T""_MIN=%s\n", limit + 1); printf ("GID_T""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
-
219 "l" "d"
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("GID_T""_MIN=%s\n", limit + 1); printf ("GID_T""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
-
220 , (intmax_t) 0); printf ("GID_T""_MIN=%s\n", limit + 1); printf ("GID_T""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("GID_T""_MIN=%s\n", limit + 1); printf ("GID_T""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
;
-
221 sprintf (limit + 1, "%"-
222 "l" "u"-
223 , (uintmax_t) ((pid_t) (! (! ((pid_t) 0 < (pid_t) -1)) ? (pid_t) -1 : ((((pid_t) 1 << ((sizeof (pid_t) * 8) - 2)) - 1) * 2 + 1)))); printf ("PID_T""_MAX=%s\n", limit + 1); printf ("PID_T""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (((
((pid_t) ~ ((p...1) * 2 + 1))))Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
pid_t) ~ ((pid_t) (! (! ((pid_t) 0 < (pid_t) -1)) ? (pid_t) -1 : ((((pid_t) 1 << ((sizeof (pid_t) * 8) - 2)) - 1) * 2 + 1))))
((pid_t) ~ ((p...1) * 2 + 1))))Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
) { sprintf (limit + 1, "%"
0-27
224 "l" "d"-
225 , (intmax_t) ((pid_t) ~ ((pid_t) (! (! ((pid_t) 0 < (pid_t) -1)) ? (pid_t) -1 : ((((pid_t) 1 << ((sizeof (pid_t) * 8) - 2)) - 1) * 2 + 1))))); printf ("PID_T""_MIN=%s\n", limit + 1); printf ("PID_T""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
executed 27 times by 1 test: end of block
Executed by:
  • getlimits
;
27
226 sprintf (limit + 1, "%"-
227 "l" "u"-
228 , (uintmax_t) ((off_t) (! (! ((off_t) 0 < (off_t) -1)) ? (off_t) -1 : ((((off_t) 1 << ((sizeof (off_t) * 8) - 2)) - 1) * 2 + 1)))); printf ("OFF_T""_MAX=%s\n", limit + 1); printf ("OFF_T""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (((
((off_t) ~ ((o...1) * 2 + 1))))Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
off_t) ~ ((off_t) (! (! ((off_t) 0 < (off_t) -1)) ? (off_t) -1 : ((((off_t) 1 << ((sizeof (off_t) * 8) - 2)) - 1) * 2 + 1))))
((off_t) ~ ((o...1) * 2 + 1))))Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
) { sprintf (limit + 1, "%"
0-27
229 "l" "d"-
230 , (intmax_t) ((off_t) ~ ((off_t) (! (! ((off_t) 0 < (off_t) -1)) ? (off_t) -1 : ((((off_t) 1 << ((sizeof (off_t) * 8) - 2)) - 1) * 2 + 1))))); printf ("OFF_T""_MIN=%s\n", limit + 1); printf ("OFF_T""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
executed 27 times by 1 test: end of block
Executed by:
  • getlimits
;
27
231 sprintf (limit + 1, "%"-
232 "l" "u"-
233 , (uintmax_t) -
234 (9223372036854775807L)-
235 ); printf ("INTMAX""_MAX=%s\n", limit + 1); printf ("INTMAX""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (-
236 (-
(-9223372036854775807L -1)Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
9223372036854775807L -1)
(-9223372036854775807L -1)Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • getlimits
FALSEnever evaluated
0-27
237 ) { sprintf (limit + 1, "%"-
238 "l" "d"-
239 , (intmax_t) -
240 (-9223372036854775807L -1)-
241 ); printf ("INTMAX""_MIN=%s\n", limit + 1); printf ("INTMAX""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
executed 27 times by 1 test: end of block
Executed by:
  • getlimits
;
27
242 sprintf (limit + 1, "%"-
243 "l" "u"-
244 , (uintmax_t) -
245 (18446744073709551615UL)-
246 ); printf ("UINTMAX""_MAX=%s\n", limit + 1); printf ("UINTMAX""_OFLOW=%s\n", decimal_absval_add_one (limit)); if (0) { sprintf (limit + 1, "%"
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("UINTMAX""_MIN=%s\n", limit + 1); printf ("UINTMAX""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
-
247 "l" "d"
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("UINTMAX""_MIN=%s\n", limit + 1); printf ("UINTMAX""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
-
248 , (intmax_t) 0); printf ("UINTMAX""_MIN=%s\n", limit + 1); printf ("UINTMAX""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
dead code: { sprintf (limit + 1, "%" "l" "d" , (intmax_t) 0); printf ("UINTMAX""_MIN=%s\n", limit + 1); printf ("UINTMAX""_UFLOW=%s\n", decimal_absval_add_one (limit)); }
;
-
249-
250-
251 printf ("FLT""_MIN="); print_FLT (1.17549435082228750797e-38F); printf ("FLT""_MAX="); print_FLT (3.40282346638528859812e+38F);;-
252 printf ("DBL""_MIN="); print_DBL (((double)2.22507385850720138309e-308L)); printf ("DBL""_MAX="); print_DBL (((double)1.79769313486231570815e+308L));;-
253 printf ("LDBL""_MIN="); print_LDBL (3.36210314311209350626e-4932L); printf ("LDBL""_MAX="); print_LDBL (1.18973149535723176502e+4932L);;-
254-
255 return
executed 27 times by 1 test: return 0 ;
Executed by:
  • getlimits
executed 27 times by 1 test: return 0 ;
Executed by:
  • getlimits
27
256 0
executed 27 times by 1 test: return 0 ;
Executed by:
  • getlimits
27
257 ;
executed 27 times by 1 test: return 0 ;
Executed by:
  • getlimits
27
258}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2