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
e8b0b40f
Commit
e8b0b40f
authored
3 years ago
by
Allan Blanchard
Committed by
Patrick Baudin
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[tests] Fixes make wrapper test
parent
3c5fe842
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
share/analysis-scripts/make_wrapper.py
+6
-3
6 additions, 3 deletions
share/analysis-scripts/make_wrapper.py
tests/fc_script/oracle/make-wrapper.res
+1
-1
1 addition, 1 deletion
tests/fc_script/oracle/make-wrapper.res
with
7 additions
and
4 deletions
share/analysis-scripts/make_wrapper.py
+
6
−
3
View file @
e8b0b40f
...
...
@@ -87,7 +87,7 @@ with subprocess.Popen(cmd_list, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
else
:
break
re_missing_spec
=
re
.
compile
(
"
Neither code nor specification for function ([^,]+),
"
)
re_missing_spec
=
re
.
compile
(
"
Neither code nor
(
specification
|[^ ]+ assigns clause)
for function ([^,]+),
"
)
re_recursive_call_start
=
re
.
compile
(
"
detected recursive call
"
)
re_recursive_call_stack_start
=
re
.
compile
(
r
"
^\s+stack:
"
)
re_recursive_call_stack_end
=
re
.
compile
(
r
"
^\[
"
)
...
...
@@ -134,7 +134,8 @@ for line in lines:
assert
False
match
=
re_missing_spec
.
search
(
line
)
if
match
:
fname
=
match
.
group
(
1
)
spec_kind
=
match
.
group
(
1
)
fname
=
match
.
group
(
2
)
def
_action
(
fname
):
out
=
subprocess
.
Popen
(
...
...
@@ -174,7 +175,9 @@ for line in lines:
print
(
"
Find the sources defining it and add them,
"
+
"
or provide a stub.
"
)
tip
=
{
"
message
"
:
"
Found function with missing spec:
"
"
message
"
:
"
Found function with missing
"
+
spec_kind
+
"
:
"
+
fname
+
"
\n
"
+
"
Looking for files defining it...
"
,
...
...
This diff is collapsed.
Click to expand it.
tests/fc_script/oracle/make-wrapper.res
+
1
−
1
View file @
e8b0b40f
...
...
@@ -11,7 +11,7 @@
Consider
patching
,
stubbing
or
adding
an
ACSL
specification
to
the
recursive
call
,
then
re
-
run
the
analysis
.
***
recommendation
#
2
***
2
.
Found
function
with
missing
spec
:
large_name_to_force_line_break_in_stack_msg
2
.
Found
function
with
missing
spec
ification
:
large_name_to_force_line_break_in_stack_msg
Looking
for
files
defining
it
...
Add
the
following
file
to
the
list
of
sources
to
be
parsed
:
make
-
wrapper
.
c
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