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
125
Issues
125
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
fece06cb
Commit
fece06cb
authored
Oct 21, 2011
by
Asma Tafat-Bouzid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Longtable option
parent
28cd6584
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
9 deletions
+27
-9
examples/programs/vacid_0_binary_heaps/heap_model.why
examples/programs/vacid_0_binary_heaps/heap_model.why
+1
-1
src/ide/replay.ml
src/ide/replay.ml
+26
-8
No files found.
examples/programs/vacid_0_binary_heaps/heap_model.why
View file @
fece06cb
...
...
@@ -13,7 +13,7 @@ function model (h:logic_heap): (bag int) =
lemma
Model_empty
:
forall
a
:
array
int
.
model
(
a
,
0
)
=
empty_bag
lemma
Model_singleton
:
forall
a
:
array
int
.
model
(
a
,
1
)
=
singleton
(
a
[
0
]
)
lemma
Model_singleton
:
forall
a
:
array
int
.
model
(
a
,
1
)
=
singleton
(
A
.
get
a
0
)
lemma
Model_set
:
forall
a
a
': array int,v: int, i n : int.
...
...
src/ide/replay.ml
View file @
fece06cb
...
...
@@ -27,6 +27,7 @@ let opt_version = ref false
let
opt_stats
=
ref
true
let
opt_latex
=
ref
""
let
opt_latex2
=
ref
""
let
opt_longtable
=
ref
false
let
opt_html
=
ref
""
let
opt_force
=
ref
false
let
opt_smoke
=
ref
Session
.
SD_None
...
...
@@ -59,6 +60,9 @@ let spec = Arg.align [
(
"-latex2"
,
Arg
.
Set_string
opt_latex2
,
" [Dir_output] produce latex statistics"
)
;
(
"-longtable"
,
Arg
.
Set
opt_longtable
,
" produce latex statistics using longtable package"
)
;
(
"-html"
,
Arg
.
Set_string
opt_html
,
" [Dir_output] produce html statistics"
)
;
...
...
@@ -633,15 +637,29 @@ let () =
Whyconf
.
running_provers_max
(
Whyconf
.
get_main
config
);
M
.
smoke_detector
:=
!
opt_smoke
;
eprintf
" done@."
;
if
!
opt_latex
<>
""
then
print_latex_statistics
1
!
opt_latex
else
if
!
opt_latex2
<>
""
then
print_latex_statistics
2
!
opt_latex2
else
if
!
opt_longtable
&&
!
opt_latex
=
" "
&&
!
opt_latex2
=
" "
then
begin
add_to_check
found_obs
;
try
main_loop
()
with
Exit
->
eprintf
"main replayer exited unexpectedly@."
end
eprintf
"[Error] I can't use option longtable without latex ou latex2"
;
exit
1
end
;
if
!
opt_latex
<>
""
then
if
!
opt_longtable
then
print_latex_statistics
1
!
opt_latex
else
print_latex_statistics
1
!
opt_latex
else
if
!
opt_latex2
<>
""
then
if
!
opt_longtable
then
print_latex_statistics
2
!
opt_latex2
else
print_latex_statistics
2
!
opt_latex2
else
begin
add_to_check
found_obs
;
try
main_loop
()
with
Exit
->
eprintf
"main replayer exited unexpectedly@."
end
with
|
M
.
OutdatedSession
->
eprintf
"The session database '%s' is outdated, cannot replay@."
...
...
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