Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs598mp-fall2021-proj
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
chsieh16
cs598mp-fall2021-proj
Commits
bbed64bb
Commit
bbed64bb
authored
2 years ago
by
chsieh16
Browse files
Options
Downloads
Patches
Plain Diff
Remove custom simplify for z3 expression
parent
fd4c628a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dtree_synth.py
+2
-2
2 additions, 2 deletions
dtree_synth.py
with
2 additions
and
2 deletions
dtree_synth.py
+
2
−
2
View file @
bbed64bb
...
...
@@ -54,12 +54,12 @@ def synth_dtree(learner: LearnerBase, teacher: TeacherBase, num_max_iterations:
continue
elif
result
==
z3
.
unsat
:
print
(
"
we are done!
"
)
z3_expr
=
tacticSimplify
(
z3
.
simplify
(
candidate
,
arith_lhs
=
True
)
)
z3_expr
=
z3
.
simplify
(
candidate
,
arith_lhs
=
True
)
ret
=
{
"
k
"
:
k
,
"
formula
"
:
z3_expr
.
sexpr
(),
"
smtlib
"
:
z3_expr
.
serialize
()}
return
True
,
ret
,
(
teacher_time
,
learner_time
)
else
:
assert
result
==
z3
.
unknown
z3_expr
=
tacticSimplify
(
z3
.
simplify
(
candidate
,
arith_lhs
=
True
)
)
z3_expr
=
z3
.
simplify
(
candidate
,
arith_lhs
=
True
)
ret
=
{
"
reason
"
:
f
"
Reason Unknown
{
teacher
.
reason_unknown
()
}
"
,
"
k
"
:
k
,
"
formula
"
:
z3_expr
.
sexpr
(),
"
smtlib
"
:
z3_expr
.
serialize
()
...
...
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