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
714a13d3
Commit
714a13d3
authored
5 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[test] test case for reported issue
parent
7d62b3d0
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
tests/spec/extend_extern.i
+7
-0
7 additions, 0 deletions
tests/spec/extend_extern.i
tests/spec/extend_extern.ml
+22
-0
22 additions, 0 deletions
tests/spec/extend_extern.ml
with
29 additions
and
0 deletions
tests/spec/extend_extern.i
0 → 100644
+
7
−
0
View file @
714a13d3
/* run.config
MACRO: PTEST_MAKE_MODULE make FRAMAC_USER_OFLAGS="-package why3" FRAMAC_USER_BFLAGS="-package why3"
MODULE: @PTEST_DIR@/@PTEST_NAME@.cmxs
OPT:
*/
/*@ predicate load(char * x) = \true ; */
/*@ why3 load("List"); */
This diff is collapsed.
Click to expand it.
tests/spec/extend_extern.ml
0 → 100644
+
22
−
0
View file @
714a13d3
open
Logic_typing
open
Cil_types
let
load_theory
=
function
|
{
pred_content
=
Papp
(
_
,
[]
,
[
{
term_node
=
TConst
(
LStr
_name
)
}
]
)
}
->
let
open
Why3
in
ignore
(
Theory
.
import_namespace
Theory
.
empty_ns
[
_name
]
)
|
_
->
assert
false
let
typing
~
typing_context
~
loc
lexprs
=
ignore
loc
;
let
type_predicate
=
typing_context
.
type_predicate
typing_context
(
Lenv
.
empty
()
)
in
let
predicates
=
List
.
map
type_predicate
lexprs
in
List
.
iter
load_theory
predicates
;
Ext_preds
predicates
let
()
=
Logic_typing
.
register_global_extension
"why3"
false
typing
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