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
4737eb90
Commit
4737eb90
authored
Oct 12, 2015
by
MARCHE Claude
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try why3: fix order of lemmas and functions in a theory
parent
32a60ef7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
.gitignore
.gitignore
+1
-0
src/trywhy3/trywhy3.ml
src/trywhy3/trywhy3.ml
+4
-2
No files found.
.gitignore
View file @
4737eb90
...
...
@@ -161,6 +161,7 @@ pvsbin/
/lib/isabelle/Why3_Number.thy
/lib/isabelle/why3.ML
/lib/isabelle/last_build
/lib/isabelle/bv
# /src/driver/
/src/driver/driver_lexer.ml
...
...
src/trywhy3/trywhy3.ml
View file @
4737eb90
...
...
@@ -132,7 +132,7 @@ let why3_prove theories =
Stdlib
.
Mstr
.
fold
(
fun
thname
th
acc
->
let
tasks
=
Task
.
split_theory
th
None
None
in
let
tasks
=
List
.
map
let
tasks
=
List
.
rev_
map
(
fun
t
->
let
(
id
,
expl
,_
)
=
Termcode
.
goal_expl_task
~
root
:
true
t
in
let
expl
=
match
expl
with
...
...
@@ -278,10 +278,12 @@ let add_why3_cmd buttonname f input_lang =
(
fun
_ev
->
let
global
=
Js
.
Unsafe
.
global
in
let
editor
=
Js
.
Unsafe
.
get
global
(
Js
.
string
"editor"
)
in
let
lang
=
let
lang
=
"en"
(*
Js.to_string
(Js.Unsafe.meth_call editor "getAttribute"
[| Js.Unsafe.inject (Js.string "lang") |])
*)
in
let
code
=
Js
.
to_string
(
Js
.
Unsafe
.
meth_call
editor
"getValue"
[
|
|
])
in
log
(
"Why3 is running, lang = "
^
lang
);
...
...
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