active questions tagged z3 - Stack Overflow News Feed 
Thursday, October 30, 2014  |  From active questions tagged z3 - Stack Overflow




Is there any way to extract a SMT-LIB formula, including all the declarations, definitions and constraints into a .smt2 file from the solver/model/context class of the C++ API. I.e. opposite of what the function "Z3_parse_smtlib2_string" does.



Thursday, October 30, 2014  |  From active questions tagged z3 - Stack Overflow




Is there any way to extract a SMT-LIB formula, including all the declarations, definitions and constraints into a .smt2 file from the solver/model/context class of the C++ API. I.e. opposite of what the function "Z3_parse_smtlib2_string" does.



Wednesday, October 29, 2014  |  From active questions tagged z3 - Stack Overflow




I want to prove a simplification which involves calculating log to the base 2. Is there any function available in z3/cvc4 for calculating it?



Tuesday, October 28, 2014  |  From active questions tagged z3 - Stack Overflow




I want to prove a simplification which involves calculating log to the base 2. Is there any function available in z3/cvc4 for calculating it?



Tuesday, October 28, 2014  |  From active questions tagged z3 - Stack Overflow




I've just start learning z3 solver. I've seen some puzzles solved by z3 i.e sudoku and Eight Queens. I'm just wondering if any one solved River crossing problem in z3. z3 seems very good in problem solving.



Regards



Tuesday, October 28, 2014  |  From active questions tagged z3 - Stack Overflow




I'm learning math with Z3 library and Python language, and i don't know How i can find a Polynomial based on Lagrange Interpolation Polynomial?
Eg,



I have
f(0) = y0
f(1) = y1
f(2) = y2
....


And I want to find f(X)



I'm work well with Scipy but When changing to Z3 library, it's have no more docs I can be found :(



Monday, October 27, 2014  |  From active questions tagged z3 - Stack Overflow




I want to prove a simplification which involves calculating log to the base 2. Is there any function available in z3/cvc4 for calculating it?



Sunday, October 26, 2014  |  From active questions tagged z3 - Stack Overflow




I tried to use topredicate tool in bap to translate il to SMT-LIB2.



But this command returns an error:



./topredicate -il test.il -post "R_EBP:u32 != R_ESP:u32 -solver z3 -noopt -stp-out test.smt  


The error is:




A parsing exception occured while parsing "!" Fatal error: exception Lexer.LexError(line 1: Unrecognized char '!')"


Does anybody know what happened? How can I solve the problem?



PS. Anybody knows how to configure z3 in BAP? It really confuses me that it can't work while I configure it by following INSTALL.



Sunday, October 26, 2014  |  From active questions tagged z3 - Stack Overflow




I tried to use topredicate tool in bap to translate il to SMT-LIB2. But the command "./topredicate -il test.il -post "R_EBP:u32 != R_ESP:u32 -solver z3 -noopt -stp-out test.smt" is error. The error is "A parsing exception occured while parsing "!" Fatal error: exception Lexer.LexError(line 1: Unrecognized char '!')" Does anybody know what happened? How can I solve the problem?
PS. Anybody knows how to configure z3 in BAP? It really confuses me that it can't work while I configure it by following INSTALL.



Saturday, October 25, 2014  |  From active questions tagged z3 - Stack Overflow




From the many questions previously asked on StackExchange, I understand that that the theory
plugin is now deprecated in Z3 4.x and one is now expected to write their own theory solver and compile Z3 from scratch.



However, I cannot find any guidelines and/or simple working examples on how to implement such new theory solvers. Is there somewhere that I have missed already available? If not, has anyone written a new theory solver that they can share the code?



Friday, October 24, 2014  |  From active questions tagged z3 - Stack Overflow




I've just start learning z3 solver. I've seen some puzzles solved by z3 i.e sudoku and Eight Queens. I'm just wondering if any one solved River crossing problem in z3. z3 seems very good in problem solving.



Regards



Friday, October 24, 2014  |  From active questions tagged z3 - Stack Overflow




I am writing a code in c#.



In the code there are various IF conditions. I want to pass these conditions to z3 constraint solver and check its satisfiability and get the values that makes it satifiable. (I make use of these values further in my code)



If I take a IF condition in the code and write its equivalent assert in z3 syntax then it works fine. But I want to generalize means given a statement in c# I want to generate its corresponding statement in z3 syntax.



Is there anyway I can do that?



Friday, October 24, 2014  |  From active questions tagged z3 - Stack Overflow




From the many questions previously asked on StackExchange, I understand that that the theory
plugin is now deprecated in Z3 4.x and one is now expected to write their own theory solver and compile Z3 from scratch.



However, I cannot find any guidelines and/or simple working examples on how to implement such new theory solvers. Is there somewhere that I have missed already available? If not, has anyone written a new theory solver that they can share the code?



Friday, October 24, 2014  |  From active questions tagged z3 - Stack Overflow




I tried the following code in http://rise4fun.com/z3/tutorial



(declare-const a Int)
(assert (> a 100))
(check-sat)
(get-model)


the result is always a=101. I need some randomness in the answer that it produce a random number in the range [101,MAXINT). for example gets a seed=1000 and offers the a=12344. for seed=2323 offers a=9088765 and ... .



what should i add to this simple code?



Friday, October 24, 2014  |  From active questions tagged z3 - Stack Overflow




There are versions of the Z3 SMT solver that support Craig interpolation. Methods of the API where, for example, Z3_interpolate, Z3_write_interpolation_problem, or Z3_mk_interpolation_context.



Microsoft Research provides a website with the description of the Z3 C API! The methods that are listed above cannot be found in this documentation. Have this methods been removed? Can they be found in a specific branch of Z3?



Thursday, October 23, 2014  |  From active questions tagged z3 - Stack Overflow




There are versions of the Z3 SMT solver that support Craig interpolation. Methods of the API where, for example, Z3_interpolate, Z3_write_interpolation_problem, or Z3_mk_interpolation_context.



Microsoft Research provides a website with the description of the Z3 C API! The methods that are listed above cannot be found in this documentation. Have this methods been removed? Can they be found in a specific branch of Z3?



Thursday, October 23, 2014  |  From active questions tagged z3 - Stack Overflow




There are versions of the Z3 SMT solver that support Craig interpolation. Methods of the API where, for example, Z3_interpolate, Z3_write_interpolation_problem, or Z3_mk_interpolation_context.



Microsoft Research provides a website with the description of the Z3 C API! The methods that are listed above cannot be found in this documentation. Have this methods been removed? Can they be found in a specific branch of Z3?



Thursday, October 23, 2014  |  From active questions tagged z3 - Stack Overflow




I would like to ask how do I download a stable version of Z3 for using Java API?
In the master branch in codeplex, the source does not contain directory src/api/java.



This is present in some branches like cade24 or rc and others.
I do not have an idea which one to choose from. Could someone help?



Thursday, October 23, 2014  |  From active questions tagged z3 - Stack Overflow




I would like to ask how do I download a stable version of Z3 for using Java API?
In the master branch in codeplex, the source does not contain directory src/api/java.



This is present in some branches like cade24 or rc and others.
I do not have an idea which one to choose from. Could someone help?



Sunday, October 19, 2014  |  From active questions tagged z3 - Stack Overflow




I am writing a code in c#.



In the code there are various IF conditions. I want to pass these conditions to z3 constraint solver and check its satisfiability and get the values that makes it satifiable. (I make use of these values further in my code)



If I take a IF condition in the code and write its equivalent assert in z3 syntax then it works fine. But I want to generalize means given a statement in c# I want to generate its corresponding statement in z3 syntax.



Is there anyway I can do that?



 active questions tagged z3 - Stack Overflow News Feed 

Last edited Nov 23, 2012 at 4:52 AM by leodemoura, version 13

Comments

No comments yet.