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
16
Merge Requests
16
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
09db98a3
Commit
09db98a3
authored
Sep 04, 2015
by
MARCHE Claude
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try Why3: Tree view of goals
parent
907c910f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
16 deletions
+26
-16
src/trywhy3/trywhy3.ml
src/trywhy3/trywhy3.ml
+26
-16
No files found.
src/trywhy3/trywhy3.ml
View file @
09db98a3
...
...
@@ -163,23 +163,33 @@ let run textbox preview (_ : D.mouseEvent Js.t) : bool Js.t =
Stdlib
.
Mstr
.
fold
(
fun
thname
th
acc
->
let
tasks
=
Task
.
split_theory
th
None
None
in
let
tasks
=
List
.
fold_left
(
fun
acc
t
->
let
tasks
=
List
.
map
(
fun
t
->
let
(
id
,
expl
,_
)
=
Termcode
.
goal_expl_task
~
root
:
true
t
in
let
expl
=
match
expl
with
|
Some
s
->
s
|
None
->
id
.
Ident
.
id_string
in
let
tl
=
Trans
.
apply
split_trans
t
in
List
.
rev_append
tl
acc
)
[]
tasks
in
let
tasks
=
List
.
rev_map
(
fun
task
->
let
(
id
,
expl
,_
)
=
Termcode
.
goal_expl_task
~
root
:
false
task
in
let
expl
=
match
expl
with
|
Some
s
->
s
|
None
->
id
.
Ident
.
id_string
in
let
result
=
run_alt_ergo_on_task
task
in
[
Html
.
of_string
(
expl
^
" : "
^
result
)])
tasks
let
tasks
=
List
.
map
(
fun
task
->
let
(
id
,
expl
,_
)
=
Termcode
.
goal_expl_task
~
root
:
false
task
in
let
expl
=
match
expl
with
|
Some
s
->
s
|
None
->
id
.
Ident
.
id_string
in
let
result
=
run_alt_ergo_on_task
task
in
let
result
=
if
String
.
length
result
>
80
then
"..."
^
String
.
sub
result
(
String
.
length
result
-
80
)
80
else
result
in
[
Html
.
of_string
(
expl
^
" : "
^
result
)])
tl
in
[
Html
.
of_string
expl
;
Html
.
ul
tasks
])
tasks
in
[
Html
.
of_string
(
"Theory "
^
thname
);
Html
.
ul
tasks
]
::
acc
)
...
...
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