Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
e42bdaeb
Commit
e42bdaeb
authored
5 years ago
by
Patrick Baudin
Committed by
Virgile Prevosto
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[libC] fixes specification of abort and exit functions
parent
54ca5b81
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
share/libc/stdlib.h
+7
-3
7 additions, 3 deletions
share/libc/stdlib.h
tests/libc/oracle/fc_libc.1.res.oracle
+10
-4
10 additions, 4 deletions
tests/libc/oracle/fc_libc.1.res.oracle
with
17 additions
and
7 deletions
share/libc/stdlib.h
+
7
−
3
View file @
e42bdaeb
...
...
@@ -454,8 +454,11 @@ extern void *realloc(void *ptr, size_t size);
/* ISO C: 7.20.4 */
/*@ assigns \nothing;
@ ensures never_terminates: \false; */
/*@
assigns \exit_status \from \nothing;
exits status: \exit_status != EXIT_SUCCESS;
ensures never_terminates: \false;
*/
extern
void
abort
(
void
)
__attribute__
((
__noreturn__
));
/*@ assigns \result \from \nothing ;*/
...
...
@@ -465,7 +468,8 @@ extern int atexit(void (*func)(void));
extern
int
at_quick_exit
(
void
(
*
func
)(
void
));
/*@
assigns \nothing;
assigns \exit_status \from status;
exits status: \exit_status == status;
ensures never_terminates: \false;
*/
extern
void
exit
(
int
status
)
__attribute__
((
__noreturn__
));
...
...
This diff is collapsed.
Click to expand it.
tests/libc/oracle/fc_libc.1.res.oracle
+
10
−
4
View file @
e42bdaeb
...
...
@@ -2346,8 +2346,11 @@ extern void free(void *p);
*/
extern void *realloc(void *ptr, size_t size);
/*@ ensures never_terminates: \false;
assigns \nothing; */
/*@ exits status: \exit_status ≢ 0;
ensures never_terminates: \false;
assigns \exit_status \from \nothing;
*/
extern __attribute__((__noreturn__)) void abort(void);
/*@ assigns \result;
...
...
@@ -2358,8 +2361,11 @@ extern int atexit(void (*func)(void));
assigns \result \from \nothing; */
extern int at_quick_exit(void (*func)(void));
/*@ ensures never_terminates: \false;
assigns \nothing; */
/*@ exits status: \exit_status ≡ \old(status);
ensures never_terminates: \false;
assigns \exit_status \from status;
*/
extern __attribute__((__noreturn__)) void exit(int status);
/*@ ensures never_terminates: \false;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment