Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ecParser.mly
Original file line number Diff line number Diff line change
Expand Up @@ -3267,7 +3267,7 @@ smt_info:

smt_info1:
| t=word
{ `MAXLEMMAS (Some t) }
{ `MAXLEMMAS (Some t) }

| TIMEOUT EQ t=word
{ `TIMEOUT t }
Expand Down
8 changes: 3 additions & 5 deletions src/ecUtils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -642,18 +642,16 @@ module String = struct
then List.map fst matched
else aux matched (i+1)
end

in aux matched 0

let last_matching tomatch s =
first_matching (List.map rev tomatch) (rev s)
List.map rev (first_matching (List.map rev tomatch) (rev s))
end

let option_matching tomatch s =
match OptionMatching.all_matching tomatch s with
| [s] -> [s] | matched ->
match OptionMatching.first_matching matched s with
| [s] -> [s] | matched -> OptionMatching.last_matching matched s
| [s] -> [s]
| matched -> OptionMatching.first_matching matched s
end

(* -------------------------------------------------------------------- *)
Expand Down