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
93ce65d5
Commit
93ce65d5
authored
3 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[libc] more precise postconditions for atomic gcc builtins
parent
7507c9f0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
share/libc/__fc_gcc_builtins.h
+8
-0
8 additions, 0 deletions
share/libc/__fc_gcc_builtins.h
with
8 additions
and
0 deletions
share/libc/__fc_gcc_builtins.h
+
8
−
0
View file @
93ce65d5
...
@@ -263,48 +263,56 @@ int __builtin_popcountll (unsigned long long x);
...
@@ -263,48 +263,56 @@ int __builtin_popcountll (unsigned long long x);
/*@
/*@
requires validity: \valid_read(mem);
requires validity: \valid_read(mem);
assigns \result \from *mem, indirect:model;
assigns \result \from *mem, indirect:model;
ensures load_value: \result == *mem;
*/
*/
__UINT8_T
__atomic_load_1
(
__UINT8_T
*
mem
,
int
model
);
__UINT8_T
__atomic_load_1
(
__UINT8_T
*
mem
,
int
model
);
/*@
/*@
requires validity: \valid_read(mem);
requires validity: \valid_read(mem);
assigns \result \from *mem, indirect: model;
assigns \result \from *mem, indirect: model;
ensures load_value: \result == *mem;
*/
*/
__UINT16_T
__atomic_load_2
(
__UINT16_T
*
mem
,
int
model
);
__UINT16_T
__atomic_load_2
(
__UINT16_T
*
mem
,
int
model
);
/*@
/*@
requires validity: \valid_read(mem);
requires validity: \valid_read(mem);
assigns \result \from *mem, indirect:model;
assigns \result \from *mem, indirect:model;
ensures load_value: \result == *mem;
*/
*/
__UINT32_T
__atomic_load_4
(
__UINT32_T
*
mem
,
int
model
);
__UINT32_T
__atomic_load_4
(
__UINT32_T
*
mem
,
int
model
);
/*@
/*@
requires validity: \valid_read(mem);
requires validity: \valid_read(mem);
assigns \result \from *mem, indirect:model;
assigns \result \from *mem, indirect:model;
ensures load_value: \result == *mem;
*/
*/
__UINT64_T
__atomic_load_8
(
__UINT64_T
*
mem
,
int
model
);
__UINT64_T
__atomic_load_8
(
__UINT64_T
*
mem
,
int
model
);
/*@
/*@
requires validity: \valid(mem);
requires validity: \valid(mem);
assigns *mem \from val, indirect: model;
assigns *mem \from val, indirect: model;
ensures store_value: *mem == val;
*/
*/
void
__atomic_store_1
(
__UINT8_T
*
mem
,
__UINT8_T
val
,
int
model
);
void
__atomic_store_1
(
__UINT8_T
*
mem
,
__UINT8_T
val
,
int
model
);
/*@
/*@
requires validity: \valid(mem);
requires validity: \valid(mem);
assigns *mem \from val, indirect: model;
assigns *mem \from val, indirect: model;
ensures store_value: *mem == val;
*/
*/
void
__atomic_store_2
(
__UINT16_T
*
mem
,
__UINT16_T
val
,
int
model
);
void
__atomic_store_2
(
__UINT16_T
*
mem
,
__UINT16_T
val
,
int
model
);
/*@
/*@
requires validity: \valid(mem);
requires validity: \valid(mem);
assigns *mem \from val, indirect: model;
assigns *mem \from val, indirect: model;
ensures store_value: *mem == val;
*/
*/
void
__atomic_store_4
(
__UINT32_T
*
mem
,
__UINT32_T
val
,
int
model
);
void
__atomic_store_4
(
__UINT32_T
*
mem
,
__UINT32_T
val
,
int
model
);
/*@
/*@
requires validity: \valid(mem);
requires validity: \valid(mem);
assigns *mem \from val, indirect: model;
assigns *mem \from val, indirect: model;
ensures store_value: *mem == val;
*/
*/
void
__atomic_store_8
(
__UINT64_T
*
mem
,
__UINT64_T
val
,
int
model
);
void
__atomic_store_8
(
__UINT64_T
*
mem
,
__UINT64_T
val
,
int
model
);
...
...
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