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
0bbc8657
Commit
0bbc8657
authored
4 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Cosmetic change
parent
39454ae9
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
src/plugins/wp/Cvalues.ml
+4
-7
4 additions, 7 deletions
src/plugins/wp/Cvalues.ml
with
4 additions
and
7 deletions
src/plugins/wp/Cvalues.ml
+
4
−
7
View file @
0bbc8657
...
...
@@ -147,11 +147,9 @@ module OPAQUE_COMP_BYTES_LENGTH = WpContext.Generator(Cil_datatype.Compinfo)
Wp_parameters
.
fatal
"Asking for opaque struct length on non opaque struct"
;
let
result
=
Lang
.
t_int
in
let
name
=
"BytesLength"
in
let
size
=
Lang
.(
generated_f
~
params
:
[]
~
result
"%s_of_%s"
name
(
comp_id
c
))
in
(* Registration *)
let
f_name
=
"BytesLength_of_"
^
(
comp_id
c
)
in
let
l_name
=
"Positive_"
^
f_name
in
let
size
=
Lang
.
generated_f
~
params
:
[]
~
result
"%s"
f_name
in
Definitions
.
define_symbol
{
d_cluster
=
Definitions
.
compinfo
c
;
d_lfun
=
size
;
d_types
=
0
;
d_params
=
[]
;
...
...
@@ -159,8 +157,7 @@ module OPAQUE_COMP_BYTES_LENGTH = WpContext.Generator(Cil_datatype.Compinfo)
}
;
let
min_size
=
if
Cil
.
acceptEmptyCompinfo
()
then
e_zero
else
e_one
in
Definitions
.
define_lemma
{
l_kind
=
`Axiom
;
l_name
=
"Positive_"
^
name
^
"_of_"
^
Lang
.
comp_id
c
;
l_kind
=
`Axiom
;
l_name
;
l_types
=
0
;
l_triggers
=
[]
;
l_forall
=
[]
;
l_cluster
=
Definitions
.
compinfo
c
;
l_lemma
=
Lang
.
F
.(
p_leq
min_size
(
e_fun
size
[]
))
...
...
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