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
01825b55
Commit
01825b55
authored
May 22, 2015
by
David Hauzar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parser for counter-examples - bugfix.
parent
90cfdd18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
src/driver/parse_smtv2_model.ml
src/driver/parse_smtv2_model.ml
+5
-4
src/driver/parse_smtv2_model_parser.mly
src/driver/parse_smtv2_model_parser.mly
+2
-2
No files found.
src/driver/parse_smtv2_model.ml
View file @
01825b55
...
...
@@ -73,8 +73,8 @@ let rec update_element_names_and_locations raw_model terms updated_model =
(*
***************************************************************
** Parser written using menhir
****************************************************************
** Parser
****************************************************************
*)
let
get_position
lexbuf
=
let
pos
=
lexbuf
.
lex_curr_p
in
...
...
@@ -107,9 +107,10 @@ let do_parsing model =
let
parse
input
printer_mapping
=
try
let
r
=
Str
.
regexp
"unknown
\\
|sat"
in
let
start_m
=
Str
.
search_forward
r
input
0
in
ignore
(
Str
.
search_forward
r
input
0
);
let
match_end
=
Str
.
match_end
()
in
let
model_string
=
String
.
sub
input
start_m
((
String
.
length
input
)
-
start_m
)
in
String
.
sub
input
match_end
((
String
.
length
input
)
-
match_end
)
in
let
raw_model
=
do_parsing
model_string
in
...
...
src/driver/parse_smtv2_model_parser.mly
View file @
01825b55
...
...
@@ -23,7 +23,7 @@ pairs:
|
possible_space
{
[]
}
|
possible_space
LPAREN
term
SPACE
value
RPAREN
pairs
{
(
Model_parser
.
create_model_element
~
name
:$
3
~
value
:$
5
()
)
::$
7
}
possible_space
:
|
{
""
}
|
SPACE
{
$
1
}
...
...
@@ -96,7 +96,7 @@ array:
STORE
possible_space
array
possible_space
integer
SPACE
integer
possible_space
RPAREN
{
Model_parser
.
array_add_element
~
array
:$
5
~
index
:$
7
~
value
:$
9
}
{
Model_parser
.
array_add_element
~
array
:$
5
~
index
:$
7
~
value
:$
9
}
array_skipped_part
:
|
LPAREN
term_list
RPAREN
{}
...
...
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