Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DIVINE
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
paradise
mirror
DIVINE
Commits
d0e10929
There was an error fetching the commit references. Please try again later.
Commit
d0e10929
authored
5 years ago
by
Petr Rockai
Browse files
Options
Downloads
Patches
Plain Diff
smt: Get rid of brq::smt_op::constraint.
parent
e11b6060
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
divine/smt/builder-smtlib.cpp
+0
-1
0 additions, 1 deletion
divine/smt/builder-smtlib.cpp
divine/smt/builder-stp.cpp
+0
-1
0 additions, 1 deletion
divine/smt/builder-stp.cpp
divine/smt/builder-z3.cpp
+0
-1
0 additions, 1 deletion
divine/smt/builder-z3.cpp
divine/smt/rpn.hpp
+1
-4
1 addition, 4 deletions
divine/smt/rpn.hpp
with
1 addition
and
7 deletions
divine/smt/builder-smtlib.cpp
+
0
−
1
View file @
d0e10929
...
...
@@ -241,7 +241,6 @@ SMTLib2::Node SMTLib2::binary( brq::smt_op op, Node a, Node b, int bw )
case
op_t
::
bool_or
:
case
op_t
::
bv_or
:
return
define
(
_ctx
.
binop
<
op_t
::
bool_or
>
(
1
,
a
,
b
)
);
case
op_t
::
constraint
:
case
op_t
::
bool_and
:
case
op_t
::
bv_and
:
return
define
(
_ctx
.
binop
<
op_t
::
bool_and
>
(
1
,
a
,
b
)
);
...
...
This diff is collapsed.
Click to expand it.
divine/smt/builder-stp.cpp
+
0
−
1
View file @
d0e10929
...
...
@@ -173,7 +173,6 @@ stp::ASTNode STP::binary( brq::smt_op op, Node a, Node b, int bw )
case
op_t
::
bool_or
:
case
op_t
::
bv_or
:
return
_stp
.
CreateNode
(
stp
::
OR
,
a
,
b
);
case
op_t
::
constraint
:
case
op_t
::
bool_and
:
case
op_t
::
bv_and
:
return
_stp
.
CreateNode
(
stp
::
AND
,
a
,
b
);
...
...
This diff is collapsed.
Click to expand it.
divine/smt/builder-z3.cpp
+
0
−
1
View file @
d0e10929
...
...
@@ -211,7 +211,6 @@ z3::expr Z3::binary( brq::smt_op op, Node a, Node b, int )
case
op_t
::
bv_or
:
return
a
||
b
;
case
op_t
::
bool_and
:
case
op_t
::
constraint
:
case
op_t
::
bv_and
:
return
a
&&
b
;
case
op_t
::
bv_uge
:
...
...
This diff is collapsed.
Click to expand it.
divine/smt/rpn.hpp
+
1
−
4
View file @
d0e10929
...
...
@@ -30,7 +30,7 @@
namespace
divine
::
smt
{
template
<
typename
builder_t
,
typename
expr_t
>
auto
evaluate
(
builder_t
&
bld
,
const
expr_t
&
expr
,
bool
*
is_constraint
=
nullptr
)
auto
evaluate
(
builder_t
&
bld
,
const
expr_t
&
expr
)
{
using
node_t
=
typename
builder_t
::
Node
;
...
...
@@ -54,9 +54,6 @@ namespace divine::smt
for
(
auto
&
atom
:
expr
)
{
if
(
is_constraint
)
*
is_constraint
=
atom
.
op
==
brq
::
smt_op
::
constraint
;
auto
op
=
atom
.
op
;
if
(
atom
.
varid
()
)
push
(
bld
.
variable
(
atom
.
varid
(),
atom
.
bw
()
),
atom
.
bw
()
);
...
...
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