Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Lustrec - public version
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LustreC
Lustrec - public version
Commits
3d3718ae
Commit
3d3718ae
authored
6 years ago
by
Pierre Loic Garoche
Browse files
Options
Downloads
Patches
Plain Diff
package z3 to Z3 when using z3 github repo.
parent
df00d682
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.ac
+4
-4
4 additions, 4 deletions
configure.ac
src/tools/zustre/zustre_analyze.ml
+8
-4
8 additions, 4 deletions
src/tools/zustre/zustre_analyze.ml
with
12 additions
and
8 deletions
configure.ac
+
4
−
4
View file @
3d3718ae
...
...
@@ -79,15 +79,15 @@ AS_IF([test "x$seal" = "xyes"], [
# z3
AC_MSG_CHECKING(z3 library (optional))
#
define([z3path], esyscmd([ocamlfind query
z
3 | tr -d '\n']))
define([z3path], esyscmd([opam config var
z
3:lib | tr -d '\n']))
define([z3path], esyscmd([ocamlfind query
Z
3 | tr -d '\n']))
#
define([z3path], esyscmd([opam config var
Z
3:lib | tr -d '\n']))
AS_IF([ocamlfind query
z
3 >/dev/null 2>&1],
AS_IF([ocamlfind query
Z
3 >/dev/null 2>&1],
[z3=yes; AC_MSG_RESULT(yes)],[seal=no; AC_MSG_RESULT(no)],
)
AS_IF([test "x$z3" = "xyes"], [
AC_SUBST(LUSTREV_ZUSTRE, "(module Zustre_verifier.Verifier : VerifierType.S);")
AC_SUBST(LUSTREV_Z3_TAG, "<**/*>: package(
z
3)")
AC_SUBST(LUSTREV_Z3_TAG, "<**/*>: package(
Z
3)")
AC_SUBST(Z3LIBPATH, "z3path")
])
...
...
This diff is collapsed.
Click to expand it.
src/tools/zustre/zustre_analyze.ml
+
8
−
4
View file @
3d3718ae
...
...
@@ -203,10 +203,14 @@ let check machines node =
match
res_status
with
|
Z3
.
Solver
.
SATISFIABLE
->
(
(*Zustre_cex.build_cex decl_err*)
let
expr_opt
=
Z3
.
Fixedpoint
.
get_answer
!
fp
in
match
expr_opt
with
None
->
Format
.
eprintf
"Sat No feedback@."
|
Some
e
->
Format
.
eprintf
"Sat Result: %s@."
(
Z3
.
Expr
.
to_string
e
)
let
expr1_opt
=
Z3
.
Fixedpoint
.
get_answer
!
fp
in
let
expr2_opt
=
Z3
.
Fixedpoint
.
get_ground_sat_answer
!
fp
in
match
expr1_opt
,
expr2_opt
with
None
,
None
->
Format
.
eprintf
"Sat No feedback@."
|
Some
e
,
Some
e2
->
Format
.
eprintf
"Sat Result: %s, %s@."
(
Z3
.
Expr
.
to_string
e
)
(
Z3
.
Expr
.
to_string
e2
)
|
_
->
assert
false
)
|
Z3
.
Solver
.
UNSATISFIABLE
->
(*build_inv*)
(
let
expr_opt
=
Z3
.
Fixedpoint
.
get_answer
!
fp
in
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment