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
abe7fd4a
Commit
abe7fd4a
authored
4 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[Slicing] avoid crash due to invalid command line
parent
ee4a22eb
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/slicing/slicingCmds.ml
+8
-0
8 additions, 0 deletions
src/plugins/slicing/slicingCmds.ml
with
8 additions
and
0 deletions
src/plugins/slicing/slicingCmds.ml
+
8
−
0
View file @
abe7fd4a
...
...
@@ -529,6 +529,7 @@ let select_stmt_annots set mark ~spare ~threat ~user_assert ~slicing_pragma ~lo
(** Registered as a slicing selection function:
Add a selection of the annotations related to a function. *)
let
select_func_annots
set
mark
~
spare
~
threat
~
user_assert
~
slicing_pragma
~
loop_inv
~
loop_var
kf
=
try
let
zones_decl_vars
,
pragmas
=
!
Db
.
Properties
.
Interp
.
To_zone
.
from_func_annots
Kinstr
.
iter_from_func
(
Some
...
...
@@ -538,6 +539,13 @@ let select_func_annots set mark ~spare ~threat ~user_assert ~slicing_pragma ~loo
kf
in
let
set
=
select_ZoneAnnot_pragmas
set
~
spare
pragmas
kf
in
select_ZoneAnnot_zones_decl_vars
set
mark
(
get_or_raise
zones_decl_vars
)
kf
with
Kernel_function
.
No_Definition
->
SlicingParameters
.
warning
~
wkey
:
SlicingParameters
.
wkey_cmdline
"No definition for function '%a'. \
Slicing requests from the command line are ignored."
Kernel_function
.
pretty
kf
;
Cil_datatype
.
Varinfo
.
Map
.
empty
(** Registered as a slicing selection function:
Add selection of function outputs.
...
...
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