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
4c23cf3d
Commit
4c23cf3d
authored
4 years ago
by
François Bobot
Browse files
Options
Downloads
Patches
Plain Diff
Change a message to use Filepath
parent
fbdb744c
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
src/plugins/value/utils/library_functions.ml
+4
-2
4 additions, 2 deletions
src/plugins/value/utils/library_functions.ml
tests/libc/oracle/string_h.res.oracle
+2
-4
2 additions, 4 deletions
tests/libc/oracle/string_h.res.oracle
with
6 additions
and
6 deletions
src/plugins/value/utils/library_functions.ml
+
4
−
2
View file @
4c23cf3d
...
...
@@ -96,11 +96,13 @@ let unsupported_specs_tbl =
let
warn_unsupported_spec
name
=
try
let
header
=
Hashtbl
.
find
unsupported_specs_tbl
name
in
let
path
=
Filename
.(
concat
(
concat
Fc_config
.
datadir
"libc"
)
header
)
in
let
path
=
Filepath
.
Normalized
.
of_string
path
in
Value_parameters
.
warning
~
once
:
true
~
current
:
true
~
wkey
:
Value_parameters
.
wkey_libc_unsupported_spec
"@[The specification of function '%s' is currently not supported by Eva.@ \
Consider adding %
s
@ to the analyzed source files.@]"
name
(
Fc_config
.
datadir
^
"/libc/"
^
header
)
Consider adding %
a
@ to the analyzed source files.@]"
name
Filepath
.
Normalized
.
pretty
path
with
Not_found
->
()
...
...
This diff is collapsed.
Click to expand it.
tests/libc/oracle/string_h.res.oracle
+
2
−
4
View file @
4c23cf3d
...
...
@@ -245,8 +245,7 @@
[eva] using specification for function strdup
[eva:libc:unsupported-spec] string_h.c:146: Warning:
The specification of function 'strdup' is currently not supported by Eva.
Consider adding FRAMA-C-INSTALL/share/frama-c/share/libc/string.c
to the analyzed source files.
Consider adding FRAMAC_SHARE/libc/string.c to the analyzed source files.
[eva] string_h.c:146: Warning: ignoring unsupported \allocates clause
[eva] string_h.c:146:
function strdup: precondition 'valid_string_s' got status valid.
...
...
@@ -256,8 +255,7 @@
[eva] using specification for function strndup
[eva:libc:unsupported-spec] string_h.c:147: Warning:
The specification of function 'strndup' is currently not supported by Eva.
Consider adding FRAMA-C-INSTALL/share/frama-c/share/libc/string.c
to the analyzed source files.
Consider adding FRAMAC_SHARE/libc/string.c to the analyzed source files.
[eva] string_h.c:147: Warning: ignoring unsupported \allocates clause
[eva] string_h.c:147:
function strndup: precondition 'valid_string_s' got status valid.
...
...
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