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
120
Issues
120
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
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
e7cba92c
Commit
e7cba92c
authored
May 30, 2017
by
Sylvain Dailler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some cleaning.
parent
921740fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
39 deletions
+6
-39
src/ide/why3ide.ml
src/ide/why3ide.ml
+0
-29
src/transform/case.ml
src/transform/case.ml
+6
-10
No files found.
src/ide/why3ide.ml
View file @
e7cba92c
...
...
@@ -200,14 +200,6 @@ let () =
Gconfig
.
init
()
(********************************)
(* Source language highlighting *)
(********************************)
...
...
@@ -249,10 +241,6 @@ let try_convert s =
with
Glib
.
Convert
.
Error
_
as
e
->
Printexc
.
to_string
e
(****************************)
(* Color handling in source *)
(****************************)
...
...
@@ -286,10 +274,6 @@ let erase_color_loc (v:GSourceView2.source_view) =
(*******************)
(* Graphical tools *)
(*******************)
...
...
@@ -375,19 +359,6 @@ let update_label_saved (label: GMisc.label) =
label
#
set_text
(
String
.
sub
s
1
(
String
.
length
s
-
1
))
(**********************)
(* Graphical elements *)
(**********************)
...
...
src/transform/case.ml
View file @
e7cba92c
open
Trans
open
Term
open
Ident
open
Ty
open
Decl
open
Theory
open
Task
...
...
@@ -16,7 +18,7 @@ exception Cannot_infer_type of string
let
debug_matching
=
Debug
.
register_info_flag
"print_match"
~
desc
:
"Print@ terms@ that@ were@ not@ successfully@ matched@ by@ ITP@ tactic@ apply."
let
rec
dup
n
x
=
if
n
=
0
then
[]
else
x
::
(
dup
(
n
-
1
)
x
)
(* let rec dup n x = if n = 0 then [] else x::(dup (n-1) x) *
)
let
gen_ident
=
Ident
.
id_fresh
...
...
@@ -509,12 +511,6 @@ let or_intro (left: bool) : Task.task Trans.trans =
end
|
_
->
[
d
])
None
(* TODO to be done ... *)
open
Ident
open
Ty
open
Term
open
Decl
(* TODO temporary for intros *)
let
rec
intros
n
pr
f
=
if
n
=
0
then
[
create_prop_decl
Pgoal
pr
f
]
else
...
...
@@ -715,9 +711,9 @@ let () = wrap_and_register
~
desc
:
"apply <prop> applies prop to the goal"
"apply"
(
Tprsymbol
Ttrans_l
)
apply
let
()
=
wrap_and_register
~
desc
:
"duplicate <int> duplicates the goal int times"
"duplicate"
(
Tint
Ttrans_l
)
(
fun
x
->
Trans
.
store
(
dup
x
)
)
(* let () = wrap_and_register *)
(* ~desc:"duplicate <int> duplicates the goal int times" "duplicate" *)
(* (Tint Ttrans_l) (fun x -> Trans.store (dup x)) *
)
let
()
=
wrap_and_register
~
desc
:
"use_th <theory> imports the theory"
"use_th"
...
...
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