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
fde36fa1
Commit
fde36fa1
authored
13 years ago
by
Julien Signoles
Browse files
Options
Downloads
Patches
Plain Diff
[e-acsl] use a function type instead of void when required
parent
3854f457
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/e-acsl/misc.ml
+2
-1
2 additions, 1 deletion
src/plugins/e-acsl/misc.ml
src/plugins/e-acsl/tests/e-acsl-runtime/oracle/stmt_contract.res.oracle
+128
-128
128 additions, 128 deletions
...acsl/tests/e-acsl-runtime/oracle/stmt_contract.res.oracle
with
130 additions
and
129 deletions
src/plugins/e-acsl/misc.ml
+
2
−
1
View file @
fde36fa1
...
...
@@ -45,7 +45,8 @@ let mk_call ?(loc=Location.unknown) ?result fname args =
(* the type is incorrect, but it doesn't matter *)
(* [JS 2011/04/12] should not generate a new variable by function name *)
(* [TODO] require a projectified table to associate an lval to each name *)
let
f
=
new_lval
~
loc
(
makeGlobalVar
fname
voidType
)
in
let
ty
=
TFun
(
voidType
,
None
,
false
,
[]
)
in
let
f
=
new_lval
~
loc
(
makeGlobalVar
fname
ty
)
in
mkStmt
~
valid_sid
:
true
(
Instr
(
Call
(
result
,
f
,
args
,
loc
)))
(* Build a C conditional doing a runtime assertion check. *)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/e-acsl/tests/e-acsl-runtime/oracle/stmt_contract.res.oracle
+
128
−
128
View file @
fde36fa1
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