File: socket.1.res.oracle

package info (click to toggle)
frama-c 20161101%2Bsilicon%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 42,324 kB
  • ctags: 35,695
  • sloc: ml: 200,142; ansic: 31,465; makefile: 2,334; sh: 1,643; lisp: 259; python: 85; asm: 26
file content (263 lines) | stat: -rw-r--r-- 12,964 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
[kernel] Parsing share/libc/__fc_builtin_for_normalization.i (no preprocessing)
[kernel] Parsing tests/libc/socket.c (with preprocessing)
[value] Analyzing a complete application starting at main
[value] Computing initial state
[value] Initial state computed
[value:initial-state] Values of globals at initialization
  __fc_sockfds[0..1023] ∈ {0}
  __fc_socket_counter ∈ [--..--]
  __fc_open_sock_fds ∈ [--..--]
  __FC_errno ∈ [--..--]
  __fc_stderr ∈ {{ NULL ; &S___fc_stderr[0] }}
  __fc_stdin ∈ {{ NULL ; &S___fc_stdin[0] }}
  __fc_stdout ∈ {{ NULL ; &S___fc_stdout[0] }}
  __fc_fopen[0..511] ∈ {0}
  __p_fc_fopen ∈ {{ &__fc_fopen[0] }}
  __fc_random_counter ∈ {0}
  __fc_rand_max ∈ {32767}
  __fc_heap_status ∈ [--..--]
  __fc_time ∈ [--..--]
  __fc_time_tm ∈ {0}
  __p_fc_time_tm ∈ {{ &__fc_time_tm }}
  optarg ∈ {{ NULL ; &S_optarg[0] }}
  optind ∈ [--..--]
  opterr ∈ [--..--]
  optopt ∈ [--..--]
  __fc_fds[0..1023] ∈ {0}
  in6addr_any ∈ {0}
  in6addr_loopback.s6_addr[0..15] ∈ {255}
  sent_msg ∈ {{ "World" }}
  rcv_buffer[0..9] ∈ {0}
  socket_fd[0..1] ∈ {0}
  nondet ∈ [--..--]
  S___fc_stderr[0..1] ∈ [--..--]
  S___fc_stdin[0..1] ∈ [--..--]
  S___fc_stdout[0..1] ∈ [--..--]
  S_optarg[0..1] ∈ [--..--]
[value] computing for function init_sockets <- main.
        Called from tests/libc/socket.c:125.
[value] computing for function socketpair <- init_sockets <- main.
        Called from tests/libc/socket.c:50.
[value] using specification for function socketpair
share/libc/sys/socket.h:265:[value] function socketpair: precondition got status valid.
[value] Done for function socketpair
[value] computing for function fprintf <- init_sockets <- main.
        Called from tests/libc/socket.c:52.
[value] using specification for function fprintf
[value] Done for function fprintf
[value] computing for function exit <- init_sockets <- main.
        Called from tests/libc/socket.c:53.
[value] using specification for function exit
share/libc/stdlib.h:253:[value] function exit: no state left in which to evaluate postcondition, status not computed.
[value] Done for function exit
tests/libc/socket.c:55:[value] assertion got status valid.
[value] Recording results for init_sockets
[value] Done for function init_sockets
[value] computing for function test_read <- main.
        Called from tests/libc/socket.c:126.
[value] computing for function init_reception <- test_read <- main.
        Called from tests/libc/socket.c:60.
[value] Call to builtin bzero(({{ (void *)&rcv_buffer }},{10}))
[value] computing for function write <- init_reception <- test_read <- main.
        Called from tests/libc/socket.c:44.
[value] using specification for function write
share/libc/unistd.h:872:[value] function write: precondition got status valid.
share/libc/unistd.h:873:[value] function write: precondition got status valid.
[value] Done for function write
[value] Recording results for init_reception
[value] Done for function init_reception
[value] computing for function read <- test_read <- main.
        Called from tests/libc/socket.c:61.
[value] using specification for function read
share/libc/unistd.h:822:[value] function read: precondition got status valid.
share/libc/unistd.h:823:[value] function read: precondition got status valid.
[value] Done for function read
[value] computing for function printf <- test_read <- main.
        Called from tests/libc/socket.c:62.
[value] using specification for function printf
[value] Done for function printf
[value] Recording results for test_read
[value] Done for function test_read
[value] computing for function test_readv <- main.
        Called from tests/libc/socket.c:127.
[value] computing for function init_reception <- test_readv <- main.
        Called from tests/libc/socket.c:68.
[value] Call to builtin bzero(({{ (void *)&rcv_buffer }},{10}))
[value] computing for function write <- init_reception <- test_readv <- main.
        Called from tests/libc/socket.c:44.
[value] Done for function write
[value] Recording results for init_reception
[value] Done for function init_reception
[value] computing for function readv <- test_readv <- main.
        Called from tests/libc/socket.c:69.
[value] using specification for function readv
share/libc/sys/uio.h:33:[value] function readv: precondition got status valid.
share/libc/sys/uio.h:36:[value] warning: no \from part
                 for clause 'assigns *((char *)(iov + (0 .. iovcnt - 1))->iov_base + (0 ..));' of
                 function readv
[value] Done for function readv
tests/libc/socket.c:72:[value] warning: accessing uninitialized left-value.
                 assert \initialized((char *)rcv_buffer_scattered1);
[value] computing for function printf <- test_readv <- main.
        Called from tests/libc/socket.c:75.
[value] Done for function printf
[value] Recording results for test_readv
[value] Done for function test_readv
[value] computing for function test_recvmsg <- main.
        Called from tests/libc/socket.c:128.
[value] computing for function init_reception <- test_recvmsg <- main.
        Called from tests/libc/socket.c:82.
[value] Call to builtin bzero(({{ (void *)&rcv_buffer }},{10}))
[value] computing for function write <- init_reception <- test_recvmsg <- main.
        Called from tests/libc/socket.c:44.
[value] Done for function write
[value] Recording results for init_reception
[value] Done for function init_reception
[value] computing for function recvmsg <- test_recvmsg <- main.
        Called from tests/libc/socket.c:90.
[value] using specification for function recvmsg
share/libc/sys/socket.h:214:[value] function recvmsg: precondition got status valid.
share/libc/sys/socket.h:215:[value] function recvmsg: precondition got status valid.
share/libc/sys/socket.h:216:[value] function recvmsg: precondition got status valid.
share/libc/sys/socket.h:217:[value] function recvmsg: precondition got status valid.
[value] Done for function recvmsg
tests/libc/socket.c:92:[value] warning: accessing uninitialized left-value.
                 assert \initialized((char *)rcv_buffer_scattered1);
[value] computing for function printf <- test_recvmsg <- main.
        Called from tests/libc/socket.c:95.
[value] Done for function printf
[value] Recording results for test_recvmsg
[value] Done for function test_recvmsg
[value] computing for function test_server_echo <- main.
        Called from tests/libc/socket.c:129.
[value] computing for function socket <- test_server_echo <- main.
        Called from tests/libc/socket.c:100.
[value] using specification for function socket
[value] Done for function socket
[value] computing for function memset <- test_server_echo <- main.
        Called from tests/libc/socket.c:103.
[value] using specification for function memset
share/libc/string.h:81:[value] function memset: precondition got status valid.
tests/libc/socket.c:103:[value] cannot evaluate ACSL term, unsupported ACSL construct: logic functions or predicates
[value] Done for function memset
[value] computing for function bind <- test_server_echo <- main.
        Called from tests/libc/socket.c:107.
[value] using specification for function bind
share/libc/sys/socket.h:174:[value] function bind: precondition got status valid.
share/libc/sys/socket.h:175:[value] function bind: precondition got status valid.
[value] Done for function bind
[value] computing for function listen <- test_server_echo <- main.
        Called from tests/libc/socket.c:108.
[value] using specification for function listen
share/libc/sys/socket.h:188:[value] function listen: precondition got status valid.
[value] Done for function listen
[value] computing for function accept <- test_server_echo <- main.
        Called from tests/libc/socket.c:111.
[value] using specification for function accept
share/libc/sys/socket.h:155:[value] function accept: precondition got status valid.
tests/libc/socket.c:111:[value] function accept, behavior addr_null: assumes got status invalid; behavior not evaluated.
share/libc/sys/socket.h:165:[value] function accept, behavior addr_not_null: precondition got status valid.
share/libc/sys/socket.h:166:[value] function accept, behavior addr_not_null: precondition got status valid.
[value] Done for function accept
[value] computing for function accept <- test_server_echo <- main.
        Called from tests/libc/socket.c:112.
tests/libc/socket.c:112:[value] function accept, behavior addr_not_null: assumes got status invalid; behavior not evaluated.
share/libc/sys/socket.h:161:[value] function accept, behavior addr_null: precondition got status valid.
tests/libc/socket.c:112:[value] warning: Completely invalid destination for assigns
                 clause *((char *)addr + (0 .. *addrlen - 1)). Ignoring.
[value] Done for function accept
[value] computing for function read <- test_server_echo <- main.
        Called from tests/libc/socket.c:115.
[value] Done for function read
[value] computing for function write <- test_server_echo <- main.
        Called from tests/libc/socket.c:117.
[value] Done for function write
[value] computing for function close <- test_server_echo <- main.
        Called from tests/libc/socket.c:118.
[value] using specification for function close
share/libc/unistd.h:729:[value] function close: precondition got status valid.
[value] Done for function close
[value] computing for function close <- test_server_echo <- main.
        Called from tests/libc/socket.c:119.
[value] Done for function close
[value] Recording results for test_server_echo
[value] Done for function test_server_echo
[value] Recording results for main
[value] done for function main
[value] ====== VALUES COMPUTED ======
[value:final-states] Values at end of function init_sockets:
  __fc_socket_counter ∈ [--..--]
  socket_fd[0..1] ∈ [0..1023]
  S___fc_stderr[0..1] ∈ [--..--]
[value:final-states] Values at end of function init_reception:
  __fc_fds[0..1023] ∈ [--..--]
  rcv_buffer[0..9] ∈ {0}
[value:final-states] Values at end of function test_read:
  __fc_fds[0..1023] ∈ [--..--]
  rcv_buffer[0..9] ∈ [--..--]
  S___fc_stdout[0..1] ∈ [--..--]
[value:final-states] Values at end of function test_readv:
  __fc_fds[0..1023] ∈ [--..--]
  rcv_buffer[0..9] ∈ {0}
  rcv_buffer_scattered1[0] ∈ [--..--]
                       [1] ∈ [--..--] or UNINITIALIZED
  rcv_buffer_scattered2[0..4] ∈ [--..--] or UNINITIALIZED
  rcv_buffer_scattered3[0..2] ∈ [--..--] or UNINITIALIZED
  rcv_buffer_scattered_iovec[0].iov_base ∈
                            {{ (void *)&rcv_buffer_scattered1 }}
                            [0].iov_len ∈ {2}
                            [1].iov_base ∈
                            {{ (void *)&rcv_buffer_scattered2 }}
                            [1].iov_len ∈ {5}
                            [2].iov_base ∈
                            {{ (void *)&rcv_buffer_scattered3 }}
                            [2].iov_len ∈ {3}
  S___fc_stdout[0..1] ∈ [--..--]
[value:final-states] Values at end of function test_recvmsg:
  __fc_sockfds[0..1023] ∈ [--..--]
  __fc_fds[0..1023] ∈ [--..--]
  rcv_buffer[0..9] ∈ {0}
  rcv_buffer_scattered1[0] ∈ [--..--]
                       [1] ∈ [--..--] or UNINITIALIZED
  rcv_buffer_scattered2[0..4] ∈ [--..--] or UNINITIALIZED
  rcv_buffer_scattered3[0..2] ∈ [--..--] or UNINITIALIZED
  rcv_buffer_scattered_iovec[0].iov_base ∈
                            {{ (void *)&rcv_buffer_scattered1 }}
                            [0].iov_len ∈ {2}
                            [1].iov_base ∈
                            {{ (void *)&rcv_buffer_scattered2 }}
                            [1].iov_len ∈ {5}
                            [2].iov_base ∈
                            {{ (void *)&rcv_buffer_scattered3 }}
                            [2].iov_len ∈ {3}
  hdr.msg_name ∈ {0}
     .msg_namelen ∈ [--..--]
     .[bits 96 to 127] ∈ UNINITIALIZED
     .msg_iov ∈ {{ &rcv_buffer_scattered_iovec[0] }}
     .msg_iovlen ∈ {3}
     .[bits 224 to 255] ∈ UNINITIALIZED
     .msg_control ∈ {0}
     .msg_controllen ∈ [--..--]
     .msg_flags ∈ [--..--] or UNINITIALIZED
  S___fc_stdout[0..1] ∈ [--..--]
[value:final-states] Values at end of function test_server_echo:
  __fc_sockfds[0..1023] ∈ [--..--]
  __fc_socket_counter ∈ [--..--]
  __fc_fds[0..1023] ∈ [--..--]
  fd ∈ [-1..1023]
  addr ∈ [--..--] or UNINITIALIZED
  addrlen ∈ {8} or UNINITIALIZED
  client_fd ∈ [-1..1023] or UNINITIALIZED
  buf[0..63] ∈ [--..--] or UNINITIALIZED
  r ∈ [-1..64] or UNINITIALIZED
  __retres ∈ {0; 1; 5; 20; 100; 200; 300; 400}
[value:final-states] Values at end of function main:
  __fc_sockfds[0..1023] ∈ [--..--]
  __fc_socket_counter ∈ [--..--]
  __fc_fds[0..1023] ∈ [--..--]
  rcv_buffer[0..9] ∈ {0}
  socket_fd[0..1] ∈ [0..1023]
  r ∈ {0; 1; 5; 20; 100; 200; 300; 400}
  __retres ∈ {0}
  S___fc_stderr[0..1] ∈ [--..--]
  S___fc_stdout[0..1] ∈ [--..--]