Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
122
Issues
122
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
664e954f
Commit
664e954f
authored
Oct 22, 2012
by
MARCHE Claude
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jessie3: logic type decl
parent
4a12677c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
7 deletions
+25
-7
.gitignore
.gitignore
+3
-0
src/jessie/ACSLtoWhy3.ml
src/jessie/ACSLtoWhy3.ml
+14
-1
src/jessie/tests/basic/axiomatic.c
src/jessie/tests/basic/axiomatic.c
+3
-3
src/jessie/tests/basic/oracle/axiomatic.res.oracle
src/jessie/tests/basic/oracle/axiomatic.res.oracle
+5
-3
No files found.
.gitignore
View file @
664e954f
...
...
@@ -29,6 +29,7 @@ why3.conf
/distrib
/why3regtests.err
/why3regtests.out
/META
# /lib/why3/
/lib/why3/META
...
...
@@ -100,6 +101,7 @@ why3.conf
/doc/manual.gls
/doc/manual.ist
/doc/manual.out
/doc/manual.image.out
/doc/*.haux
/doc/*.pdf
/doc/html/
...
...
@@ -200,4 +202,5 @@ pvsbin/
/src/jessie/autom4te.cache/
/src/jessie/config.log
/src/jessie/config.status
/src/jessie/Makefile
/src/jessie/ptests_local_config.ml
src/jessie/ACSLtoWhy3.ml
View file @
664e954f
...
...
@@ -249,7 +249,20 @@ let add_decls_as_theory theories id decls =
let
rec
annot
~
in_axiomatic
a
_loc
(
theories
,
decls
)
=
match
a
with
|
Dtype
(
_
,
_
)
->
Self
.
not_yet_implemented
"annot Dtype"
|
Dtype
(
lt
,
loc
)
->
let
targs
=
List
.
map
(
fun
s
->
Ty
.
create_tvsymbol
(
Ident
.
id_fresh
s
))
lt
.
lt_params
in
let
tdef
=
match
lt
.
lt_def
with
|
None
->
None
|
Some
_
->
Self
.
not_yet_implemented
"annot Dtype non abstract"
in
let
ts
=
Ty
.
create_tysymbol
(
Ident
.
id_user
lt
.
lt_name
(
Loc
.
extract
loc
))
targs
tdef
in
let
d
=
Decl
.
create_ty_decl
ts
in
(
theories
,
d
::
decls
)
|
Dfun_or_pred
(
_
,
_
)
->
Self
.
not_yet_implemented
"annot Dfun_or_pred"
|
Dlemma
(
name
,
is_axiom
,
labels
,
vars
,
p
,
loc
)
->
begin
...
...
src/jessie/tests/basic/axiomatic.c
View file @
664e954f
...
...
@@ -5,9 +5,9 @@
/*@ axiomatic Bag {
@ type bag;
@ logic bag my_union(bag b1,bag b2);
@ axiom union_comm: \forall bag b1,b2;
@ my_union(b1,b2) == my_union(b2,b1);
@
//
logic bag my_union(bag b1,bag b2);
@
//
axiom union_comm: \forall bag b1,b2;
@
//
my_union(b1,b2) == my_union(b2,b1);
@ }
@*/
...
...
src/jessie/tests/basic/oracle/axiomatic.res.oracle
View file @
664e954f
[kernel] preprocessing with "gcc -C -E -I. tests/basic/axiomatic.c"
[kernel] Plug-in jessie3 aborted: unimplemented feature.
You may send a feature request at http://bts.frama-c.com with:
'[Plug-in jessie3] annot Dtype'.
[jessie3] user error: WARNING: Variable Frama_C_copy_block not translated
[jessie3] user error: WARNING: Variable Frama_C_bzero not translated
[jessie3] found 0 decls
[jessie3] made 1 theories
[jessie3] running theory 1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment