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
4fe330e6
Commit
4fe330e6
authored
4 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[Logic] add attributes to identified_axiomatics
parent
647587cc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/kernel_services/ast_data/property.ml
+7
-5
7 additions, 5 deletions
src/kernel_services/ast_data/property.ml
src/kernel_services/ast_data/property.mli
+2
-1
2 additions, 1 deletion
src/kernel_services/ast_data/property.mli
with
9 additions
and
6 deletions
src/kernel_services/ast_data/property.ml
+
7
−
5
View file @
4fe330e6
...
...
@@ -119,7 +119,8 @@ type identified_extended = {
and
identified_axiomatic
=
{
iax_name
:
string
;
iax_props
:
identified_property
list
iax_props
:
identified_property
list
;
iax_attrs
:
attributes
;
}
and
identified_lemma
=
{
...
...
@@ -849,10 +850,11 @@ let rec pretty_debug fmt = function
Cil_types_debug
.
pp_toplevel_predicate
il_pred
Cil_types_debug
.
pp_attributes
il_attrs
Cil_types_debug
.
pp_location
il_loc
|
IPAxiomatic
{
iax_name
;
iax_props
}
->
Format
.
fprintf
fmt
"IPAxiomatic(%a,%a)"
|
IPAxiomatic
{
iax_name
;
iax_props
;
iax_attrs
}
->
Format
.
fprintf
fmt
"IPAxiomatic(%a,%a
,%a
)"
Cil_types_debug
.
pp_string
iax_name
(
Cil_types_debug
.
pp_list
pretty_debug
)
iax_props
Cil_types_debug
.
pp_attributes
iax_attrs
|
IPLemma
{
il_name
;
il_labels
;
il_args
;
il_pred
;
il_attrs
;
il_loc
}
->
Format
.
fprintf
fmt
"IPLemma(%a,%a,%a,%a,%a,%a)"
Cil_types_debug
.
pp_string
il_name
...
...
@@ -1549,9 +1551,9 @@ let ip_of_code_annot_single kf stmt ca = match ip_of_code_annot kf stmt ca with
let
ip_of_global_annotation
a
=
let
once
=
true
in
let
rec
aux
acc
=
function
|
Daxiomatic
(
iax_name
,
l
,
_
,
_
)
->
|
Daxiomatic
(
iax_name
,
l
,
iax_attrs
,
_
)
->
let
iax_props
=
List
.
fold_left
aux
[]
l
in
IPAxiomatic
{
iax_name
;
iax_props
}
::
(
iax_props
@
acc
)
IPAxiomatic
{
iax_name
;
iax_props
;
iax_attrs
}
::
(
iax_props
@
acc
)
|
Dlemma
(
il_name
,
true
,
il_labels
,
il_args
,
il_pred
,
il_attrs
,
il_loc
)
->
ip_axiom
{
il_name
;
il_labels
;
il_args
;
il_pred
;
il_attrs
;
il_loc
}
::
acc
|
Dlemma
(
il_name
,
false
,
il_labels
,
il_args
,
il_pred
,
il_attrs
,
il_loc
)
->
...
...
This diff is collapsed.
Click to expand it.
src/kernel_services/ast_data/property.mli
+
2
−
1
View file @
4fe330e6
...
...
@@ -149,7 +149,8 @@ type identified_extended = {
and
identified_axiomatic
=
{
iax_name
:
string
;
iax_props
:
identified_property
list
iax_props
:
identified_property
list
;
iax_attrs
:
attributes
;
}
and
identified_lemma
=
{
...
...
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