some question about sum(list) on c++ #6244
Unanswered
1214465750
asked this question in
Q&A
Replies: 1 comment
-
and
the time on c++ and python are the same |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
question 1:
on python if I want to get a list about some bool val I can
s=Optimize()
a=[Bool(str(i) for i in range(10)]
s.add(sum(a)==5)
so how can I make this on c++
question 2:
context c;
optimize s(c);
expr x = c.bool_const("x");
expr y = c.bool_const("y");
s.check();
model m = s.get_model();
so how can I get x by it's name "x" and how can I get it's value (because in a big item it have a lot of vars)
question 3:
speed between z3 on c++ and python
is z3 on c++ several times faster than z3 on python?
Beta Was this translation helpful? Give feedback.
All reactions