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
126
Issues
126
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
907c910f
Commit
907c910f
authored
Sep 04, 2015
by
MARCHE Claude
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing another use of Str
parent
74fdf9ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
15 deletions
+1
-15
src/core/ident.ml
src/core/ident.ml
+1
-6
src/session/termcode.ml
src/session/termcode.ml
+0
-9
No files found.
src/core/ident.ml
View file @
907c910f
...
...
@@ -44,13 +44,8 @@ let lab_compare l1 l2 = Pervasives.compare l1.lab_tag l2.lab_tag
(* functions for working with counterexample model labels *)
let
model_trace_regexp
=
Str
.
regexp
"model_trace:"
let
is_model_trace_label
label
=
try
ignore
(
Str
.
search_forward
model_trace_regexp
label
.
lab_string
0
);
true
with
Not_found
->
false
Lexlib
.
has_prefix
"model_trace:"
label
.
lab_string
let
get_model_trace_label
~
labels
=
Slab
.
choose
(
Slab
.
filter
is_model_trace_label
labels
)
...
...
src/session/termcode.ml
View file @
907c910f
...
...
@@ -16,19 +16,10 @@ open Term
(*******************************)
(*
let expl_regexp = Str.regexp "expl:\\(.*\\)"
*)
let
collect_expls
lab
=
Ident
.
Slab
.
fold
(
fun
lab
acc
->
let
lab
=
lab
.
Ident
.
lab_string
in
(*
if Str.string_match expl_regexp lab 0
then Str.matched_group 1 lab :: acc
else acc
*)
try
let
s
=
Lexlib
.
remove_prefix
"expl:"
lab
in
s
::
acc
with
Not_found
->
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