3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-18 22:59:02 +00:00
Commit graph

4033 commits

Author SHA1 Message Date
Nikolaj Bjorner 8e378062e2 add get-some-value to seq API, expose quantifier tactics
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-26 08:05:44 -08:00
Nikolaj Bjorner 345f6e87bd seq bug fixes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-26 07:21:31 -08:00
Mikolas Janota 3978410fcb Merge branch 'lackr' of github.com:MikolasJanota/z3 into lackr 2016-01-26 14:23:50 +00:00
mikolas d32c9449b2 Editing some comments and also enabling to export the ackermannized formula as a gole. 2016-01-26 11:53:47 +00:00
Mikolas Janota c2edf2c5bf Merge remote-tracking branch 'upstream/master' into lackr 2016-01-25 13:04:46 +00:00
Nikolaj Bjorner 924f03c6de fixing bugs in seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-23 10:38:49 -05:00
Nikolaj Bjorner 993a0434b4 fix warning message for unused variable
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-19 23:47:35 -05:00
Nikolaj Bjorner 099e572a26 Merge branch 'master' of https://github.com/Z3Prover/z3 2016-01-19 19:10:08 +01:00
Nikolaj Bjorner a021e51a9c make parse error a bit more informative
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-19 19:09:41 +01:00
Nuno Lopes 23cc8258fe remove m_ast_lim from API context since that one isn't used either
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2016-01-19 15:37:58 +00:00
Nuno Lopes 1f872e720d remove m_replay_stack from API context since it's never used
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2016-01-19 15:19:00 +00:00
Nikolaj Bjorner d9e4648d8d Merge branch 'master' of https://github.com/Z3Prover/z3 2016-01-19 13:57:59 +01:00
Nikolaj Bjorner cccd502a4d bug-fixes to sequence theory
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-19 13:57:47 +01:00
Christoph M. Wintersteiger 4dba5270ad Efficiency fix for fp.div. 2016-01-18 18:09:29 +00:00
Christoph M. Wintersteiger 99176cca60 Bugfix for FP model converter. 2016-01-18 18:00:04 +00:00
Nikolaj Bjorner c9373ebc9f fix axiomatization for at
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-18 12:01:15 +05:30
Nikolaj Bjorner 6aed3c3a44 Merge branch 'master' of https://github.com/Z3Prover/z3 2016-01-18 11:09:52 +05:30
Nikolaj Bjorner 85d44c5d66 fix axioms for extract, add extensionality checking for shared variables, convert exceptions to unknown status per #419
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-18 11:09:41 +05:30
Christoph M. Wintersteiger 99d2ab4e8e Undid previous update of SMT2 scanner to support the new SMT2.5 string escaping. 2016-01-17 14:24:02 +00:00
Christoph M. Wintersteiger 01cb20e098 Fix for escape sequences in SMT2 scanner 2016-01-16 13:53:29 +00:00
Nikolaj Bjorner 88362a1c3a fix bugs in sequence extraction from NFA
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-15 16:32:43 +05:30
Nikolaj Bjorner 14c19fe928 add parameter validation to sequence expressions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-15 10:39:21 +05:30
Nikolaj Bjorner 150c5c283d update re simplification
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-15 10:11:39 +05:30
Nikolaj Bjorner a295dd48dc add seq_rewriter to model_evaluator, remove th_rewriter additional step in validator
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-15 04:02:48 +05:30
Nikolaj Bjorner 7cbd59bf06 enhance model validation to invoke rewriter if result isn't true using the simplify-based model evaluator
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-15 03:40:33 +05:30
Nikolaj Bjorner 01fd3c919b fix tout -> out. Tune generation of automata transitions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-15 03:32:27 +05:30
Nikolaj Bjorner 2d41b0e29b fix tout -> out. Tune generation of automata transitions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-15 03:31:30 +05:30
Mikolas Janota c6df8b3128 Merge remote-tracking branch 'upstream/master' into lackr 2016-01-14 15:25:04 +00:00
Mikolas Janota 7ec13166b1 Merge branch 'lackr' of github.com:MikolasJanota/z3 into lackr 2016-01-14 14:21:28 +00:00
mikolas d97e2b432c Ackermann run on separate assertions rather than an AND thereof. 2016-01-14 14:11:11 +00:00
Christoph M. Wintersteiger 0f082578cb Debug-fix for theory_seq. Fixes #418. 2016-01-14 13:07:48 +00:00
Nikolaj Bjorner 3ff97357a3 fix back rewriting for concat
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-14 11:22:11 +01:00
Nikolaj Bjorner de9c959241 add support for re.nostr, re.all, fix bug in disequality handling of sequences, update signature of loop to handle integer arguments and variable arguments
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-14 10:56:03 +01:00
Nikolaj Bjorner a81c7c48d0 fix build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-14 00:56:52 +01:00
Nikolaj Bjorner 2f0a049df8 Merge branch 'master' of https://github.com/Z3Prover/z3 2016-01-13 20:13:29 +01:00
Nikolaj Bjorner e0215400e2 add empty/full regular languages, escape sequence fixes, check cancellation inside simplifier
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-13 20:13:17 +01:00
Mikolas Janota a5ea17f1e3 Merge remote-tracking branch 'upstream/master' into lackr 2016-01-13 18:22:58 +00:00
Christoph M. Wintersteiger 357ec9e7d1 Changed FP significand/exponent functions to return non-normalized results. Clarified function remarks. Relates to #383. 2016-01-13 16:32:32 +00:00
Mikolas Janota 094d357b07 Merge remote-tracking branch 'upstream/master' into lackr 2016-01-13 12:10:36 +00:00
Nikolaj Bjorner 57e1d4dc1f model generation with strings
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-13 10:39:38 +01:00
Nikolaj Bjorner 9909c056f0 add range / loop handling for re. Fix regression reading mixed numerals reported by Trentin
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-13 00:49:31 -08:00
Nikolaj Bjorner 9a6fe93e6c re-enable feature that lets Z3 solver mixed integer/real constraints with additional information tha texpressions with sort real can only take integer values. Fixes regression on epsilon.smt2
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-12 12:42:18 -08:00
Nikolaj Bjorner e2d54940b4 revert mixed integer/real handling pending fix to equality propagation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-12 12:11:27 -08:00
Nikolaj Bjorner f8971362c8 Merge branch 'master' of https://github.com/Z3Prover/z3 2016-01-12 11:19:04 -08:00
Nikolaj Bjorner 22fbed18cc fix regressions exposed by build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-12 11:18:52 -08:00
Christoph M. Wintersteiger f093ebe44c Optimization for initialization of mpf's from tiny reals. 2016-01-12 19:06:53 +00:00
Nikolaj Bjorner db746e0c2f fix more unused variable warning messages
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-12 09:52:16 -08:00
Nikolaj Bjorner 985fc50961 breaking regression tests: ensure that model values are of the sort of the original expression.
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-12 09:48:43 -08:00
Nikolaj Bjorner db71563478 fix build compiler warnings on OSX
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-12 09:36:01 -08:00
Nikolaj Bjorner 01c3e02e99 fix query for non-relational engines
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-12 07:57:10 -08:00
Mikolas Janota 613edfc107 Merge remote-tracking branch 'upstream/master' into lackr 2016-01-12 13:19:29 +00:00
Nuno Lopes 08139d1ab1 fix build with gcc 2016-01-12 08:48:41 +00:00
Nikolaj Bjorner 3bf8b17b96 remove std::cout
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-11 19:22:11 -08:00
Nikolaj Bjorner 739c90779b Merge branch 'master' of https://github.com/Z3Prover/z3 2016-01-11 19:16:16 -08:00
Nikolaj Bjorner e22ac712b0 add model construction for disequations
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-11 16:53:29 -08:00
Nikolaj Bjorner 79a5b133d7 fix debugging code in ast.cpp to take into account that literals may be repeated
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-11 11:04:44 -08:00
Christoph M. Wintersteiger d4efa3753c Optimization for real to float conversion. Relates to #383. 2016-01-11 18:54:07 +00:00
Mikolas Janota b26e4b1516 Merge remote-tracking branch 'upstream/master' into lackr 2016-01-11 18:27:47 +00:00
Nikolaj Bjorner a156028d82 pin expressions per Sarah Winkler's memory leak report
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-11 09:46:10 -08:00
Nikolaj Bjorner d4c98c1ab4 Corrected fix to #354: The parameters got shared between the MBQI checker and main context, overriding m_array_laziness to 0 which caused missing propagations
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-11 09:38:05 -08:00
Mikolas Janota edf6d63a0b Merge branch 'lackr' of github.com:MikolasJanota/z3 into lackr 2016-01-11 17:23:13 +00:00
mikolas bbdd5ab96f Merge branch 'lackr' of github.com:MikolasJanota/z3 into lackr 2016-01-11 17:18:56 +00:00
mikolas b46f312115 A proper model converter for the lazy mode. 2016-01-11 17:18:22 +00:00
Nikolaj Bjorner 131f9e2247 change queries to take function names instead of arbitrary predicates. This allows to bypass issues with having arbitrary query expressions compiled in arbitrary ways to auxiliary predicates where names of bound variables are reshuffled. See also Stackoverflow http://stackoverflow.com/questions/34693719/bug-in-z3-datalog
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-10 20:43:41 -08:00
Nikolaj Bjorner 082dcda7f7 Fix Issue #405: Horn normal form ignores implication
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-10 19:16:59 -08:00
Nikolaj Bjorner fce286db91 Issue #354. Fix unsoundness in Array theory based on missing propagation of selects over ite expressions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-10 17:11:12 -08:00
Nikolaj Bjorner 0df4931c4b dealing with issue #402
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-09 15:43:47 -08:00
Nikolaj Bjorner 20cfbcd66b dealing with issues #402 #399 #258
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-09 13:29:44 -08:00
Nikolaj Bjorner fc4260e018 enable Horner evaluation also for mixed-integer constraints now that ast-manger inserts coercions on the fly. Avoids loop for issue #399, but with this alone results in unknown status
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-09 10:01:44 -08:00
Nikolaj Bjorner 03cef7b03c add some conveniences for expressing string constraints
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-08 16:19:32 -08:00
Nikolaj Bjorner e1ade258a0 Merge branch 'master' of https://github.com/Z3Prover/z3 2016-01-08 16:07:58 -08:00
Nikolaj Bjorner 4939957f6a check that disequations are solved
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-08 16:07:42 -08:00
Nikolaj Bjorner 52284922a0 Merge branch 'master' of https://github.com/Z3Prover/z3 2016-01-08 13:39:34 -08:00
Nikolaj Bjorner 9fb3d36961 pin expressions during substitution. Issue #367
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-08 13:39:23 -08:00
Mikolas Janota 5706df30c6 Fixing soft timeout for check-sat-using. 2016-01-08 16:17:34 +00:00
Nikolaj Bjorner 3d01246f71 Skip propagation on bits that have not (yet) been fixed by the SAT core: congruence closure for bits has not necessarily propagated to all bit positions when a bit in a congruence class gets fixed.
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-08 08:17:18 -08:00
Mikolas Janota fbd02f6d5f Merge remote-tracking branch 'upstream/master' into lackr 2016-01-08 14:53:25 +00:00
Nikolaj Bjorner 98f750f90d ml build failure, issue #403
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-07 20:37:47 -08:00
Nikolaj Bjorner 183d3821ce ml build failure, issue #403
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-07 20:14:43 -08:00
Nikolaj Bjorner 17a32a4e5f ml build failure
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-07 20:14:16 -08:00
Nikolaj Bjorner 023c564839 Issue #406
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-07 20:10:54 -08:00
Nikolaj Bjorner 0e6aaf0211 Issue #407 build break
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-07 20:05:49 -08:00
Nikolaj Bjorner 8b66411c05 Merge branch 'master' of https://github.com/Z3Prover/z3 2016-01-07 16:04:35 -08:00
Nikolaj Bjorner ad778f87c7 change data-structures to concanetation decomposition normal form
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-07 16:03:37 -08:00
Mikolas Janota 743a59254e Merge remote-tracking branch 'upstream/master' into lackr 2016-01-07 16:39:43 +00:00
Christoph M. Wintersteiger 66604fa621 Merge branch 'master' of https://github.com/Z3Prover/z3 2016-01-07 15:58:34 +00:00
Christoph M. Wintersteiger e53b580cb4 added compiler macro to disable invocation of the debugger upon failure. 2016-01-07 15:58:10 +00:00
Nikolaj Bjorner 0c2334417c fix build warnigs with && vs ||, tuning seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-07 06:53:00 -08:00
Nikolaj Bjorner 643999860d fix memory leak in SAT solver exposed by regression tests
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-06 17:32:54 -08:00
Nikolaj Bjorner 00f3a1fe81 fix memory leak in SAT solver exposed by regression tests
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-06 11:47:45 -08:00
Nikolaj Bjorner aec5a38b14 fix memory leak in SAT solver exposed by regression tests
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-06 11:44:55 -08:00
George Karpenkov f93c41b1be Since classes are non-final "instanceof" check is better in #equals 2016-01-06 11:27:58 +01:00
George Karpenkov 529b9d6833 The locking field should be final. 2016-01-06 11:19:38 +01:00
George Karpenkov 8bb0010dc3 Javadoc and indentation fixes
- A proper way to refer to the function in the same class is "#funcName"

- There is no point in "@param p" declaration if no description follows
it.
2016-01-06 11:19:26 +01:00
George Karpenkov 54e5bf2422 Remove redundant cast 2016-01-06 11:18:22 +01:00
George Karpenkov 93ad8d32b9 Remove redundant "throw" statement which has no effect. 2016-01-06 11:17:32 +01:00
George Karpenkov d0d7a5b712 Consistent Sort#equals 2016-01-06 11:16:45 +01:00
George Karpenkov a816b4895c Logic simplifications
There is no point in writing "boolean ? true : false" instead of
"boolean"
2016-01-06 11:16:30 +01:00
George Karpenkov 52fdf73178 IDisposable is effectively an abstract class. 2016-01-06 11:15:11 +01:00
George Karpenkov c435bc379b Added braces
Lack of braces on multi-line statements is considered very scary in
Java.
2016-01-06 11:14:53 +01:00
George Karpenkov ccd88a63a5 No need to call "new String()" 2016-01-06 11:12:33 +01:00
George Karpenkov 27c684f743 AST#hashCode bugfix
Previous implementation always returned zero.
I can only assume that it wanted to cache it as well,
but I haven't implemented that to keep the changes light.
2016-01-06 11:11:01 +01:00
George Karpenkov 4d3675cb4e Consistent #equals() implementation
Also dropped #hashCode(), as it just calls the parent class
implementation.
2016-01-06 11:10:03 +01:00
George Karpenkov 1dcaddbec7 Adding @Override declarations
They are important, as they prevent miss-spelling the parent method  and
/or arguments name.
2016-01-06 11:07:48 +01:00
George Karpenkov a3a8ba40e7 "static final" does not do anything 2016-01-06 10:25:52 +01:00
George Karpenkov 56db1867ef Proper idiomatic isEquals implementation. 2016-01-06 10:24:00 +01:00
George Karpenkov 92bb984305 catch/throw is redundant. 2016-01-06 10:19:44 +01:00
Nikolaj Bjorner da63ac809e Merge branch 'master' of https://github.com/Z3Prover/z3 2016-01-05 10:16:12 -08:00
Nikolaj Bjorner fafdbfaf0e reset out_bits when blasting multiplication of bit-vectors
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-05 10:16:02 -08:00
Christoph M. Wintersteiger 8b8dc95986 Merge pull request #398 from wintersteiger/jan4
Improvements for the FPA API.
2016-01-05 18:08:05 +00:00
Nikolaj Bjorner 9dfcaaa01d reset out_bits when blasting multiplication of bit-vectors
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-05 10:07:44 -08:00
Christoph M. Wintersteiger de3cb7e5dc More FPA exponent/siginficand order consistency 2016-01-05 18:05:21 +00:00
Christoph M. Wintersteiger 1610e4fbd0 Merge branch 'master' of https://github.com/Z3Prover/z3 into jan4 2016-01-05 17:45:35 +00:00
Nikolaj Bjorner ee157e47e4 fix crash caused by recycling variable names. Stackoverflow segfault-in-bv-rewritermk-mul-eq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-05 09:19:21 -08:00
Nikolaj Bjorner 65de39f403 disabling mk_const_case_multiplier until debugged
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-05 08:45:10 -08:00
Christoph M. Wintersteiger d176c8714a Merge branch 'master' of https://github.com/Z3Prover/z3 into jan4 2016-01-05 16:38:12 +00:00
Nikolaj Bjorner 752a973e53 missing files?
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-05 08:32:48 -08:00
Nikolaj Bjorner b0d244c1e0 Merge branch 'master' of https://github.com/Z3Prover/z3 2016-01-05 08:23:50 -08:00
Nikolaj Bjorner af758dea4a tuning for seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-05 08:23:44 -08:00
Nuno Lopes 465d28e160 seq_decl: fix build with stricter compilers
get rid of 32 rellocations as a nice side-effect
2016-01-05 14:57:41 +00:00
Christoph M. Wintersteiger b3a1aa27ee Merge branch 'master' of https://github.com/Z3Prover/z3 into jan4 2016-01-05 14:48:52 +00:00
Christoph M. Wintersteiger 13cbd19411 FPA Python API cleanup. 2016-01-05 14:48:42 +00:00
Nuno Lopes bc123dc79b fix build with c++98 compilers 2016-01-05 14:10:32 +00:00
Christoph M. Wintersteiger 097552768f Merged Python API changes. 2016-01-05 11:51:28 +00:00
Christoph M. Wintersteiger bd8a5982ad Added new items to .NET project file 2016-01-05 11:37:34 +00:00
Christoph M. Wintersteiger 8b47a84598 Merge branch 'master' of https://github.com/Z3Prover/z3 into jan4 2016-01-05 11:34:35 +00:00
Christoph M. Wintersteiger a06f754683 tabs 2016-01-05 03:31:21 -08:00
Nikolaj Bjorner c008c2c274 fix indentation error
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-04 22:36:50 -08:00
Nikolaj Bjorner f6be76aec5 Merge pull request #396 from NikolajBjorner/master
Basic Sequence/String and regular expression support, congruence propagation for bit-vectors, tuned bit-vector multiplier encodings for small numerals.
2016-01-04 22:33:08 -08:00
Nikolaj Bjorner 3f040dbd23 remove std::cout usage
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-04 22:26:54 -08:00
Nikolaj Bjorner 2f9fda45c3 fix tabs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-04 22:14:45 -08:00
Nikolaj Bjorner 2c1d2aad44 seq, API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-04 22:06:32 -08:00
Nikolaj Bjorner d7dcd022b9 seq, API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-04 18:49:21 -08:00
Nikolaj Bjorner c1ebf6b4fc seq + API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-04 18:01:48 -08:00
Christoph M. Wintersteiger 05b29df2cb Bugfix for FP API 2016-01-04 21:01:01 +00:00
Ken McMillan e6e6a6c5b3 issue #393 -- removed debugging assert 2016-01-04 12:53:46 -08:00
Christoph M. Wintersteiger 677ff221f8 Internal consistency: FP exponents are always passed before significands. 2016-01-04 18:57:15 +00:00
Nikolaj Bjorner 68a532d066 seq, API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-03 20:53:06 -08:00
Nikolaj Bjorner a3c4972c85 seq API, tuning
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-03 17:16:13 -08:00
Nikolaj Bjorner 8e80fb830b merge fixes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-03 14:12:45 -08:00
Nikolaj Bjorner 0c03a87c82 merge with master
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-03 14:08:29 -08:00
Nikolaj Bjorner 532ec6f8dc seq API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-03 14:07:34 -08:00
Nikolaj Bjorner b5969326bc seq API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-02 23:31:36 -08:00
Nikolaj Bjorner 1147037a99 seq API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-02 22:54:49 -08:00
Nikolaj Bjorner e10ecad5dc seq API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-02 22:52:28 -08:00
Nikolaj Bjorner 5e553a4dc1 seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-02 13:32:44 -08:00
Nikolaj Bjorner 876fd1f7ba seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-01 09:00:21 -08:00
Nikolaj Bjorner 6c6d1d92c4 seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-31 16:10:41 -08:00
Nikolaj Bjorner 5c789ab1d0 Merge branch 'master' of https://github.com/Z3Prover/z3 2015-12-31 10:42:48 -08:00
Nikolaj Bjorner 38865ffe0d program the simple joints a bit more defensively per bugs reported by Sean McLaughlin
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-31 10:42:41 -08:00
Christoph M. Wintersteiger 4286eb571f Bugfix for FP numeral construction and extraction.
Fixes #382.
2015-12-31 16:40:45 +00:00
Nikolaj Bjorner 78550ec816 seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-31 07:48:14 -08:00
Nuno Lopes c8931a7bba remove unused decl
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-12-30 15:50:46 +00:00
Nuno Lopes 03afedafaf expr_abstract: don't recreate an AST_APP if arguments didn't change
gives ~30% speedup in some benchmarks with quantifiers

Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-12-30 13:54:01 +00:00
Nikolaj Bjorner 746d26e744 seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-29 21:14:52 -08:00
Nikolaj Bjorner e63724a22d replace assert by SASSERT in case of unsupported proof rule
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-29 15:30:42 -08:00
Nikolaj Bjorner bd9b5b5735 seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-29 10:13:19 -08:00
Christoph M. Wintersteiger 2f08040403 typo 2015-12-29 16:00:07 +00:00
Christoph M. Wintersteiger b0781a14cd Fix for FP numeral construction in the Python API. Fixes #386. 2015-12-29 15:59:14 +00:00
Nikolaj Bjorner e2fab0a555 seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-28 18:15:48 -08:00
Nikolaj Bjorner 739043e273 seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-28 10:28:43 -08:00
Nikolaj Bjorner 071a654a9a seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-27 04:41:25 -08:00
Nikolaj Bjorner 31302ec851 automata
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-25 15:22:26 -08:00
Nikolaj Bjorner 4a5b645d88 automata
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-25 05:37:24 -08:00
Nikolaj Bjorner 659a7ede84 automata
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-25 04:25:23 -08:00
Nikolaj Bjorner 65d147106e automata
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-24 12:01:59 -08:00
Nikolaj Bjorner 1bbf7813b0 automata
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-24 03:30:02 -08:00
Nikolaj Bjorner 2a7f2ab7f8 sequence automaton
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-23 20:33:55 -08:00
Nikolaj Bjorner f414869456 add symbolic automaton
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-23 19:46:10 -08:00
Nikolaj Bjorner 386399472d seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-23 11:02:34 -08:00
Christoph M. Wintersteiger 077e801590 Assertion fix. Relates to #383. 2015-12-23 13:41:52 +01:00
Nikolaj Bjorner 7a9bd72e2e merge
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 17:48:47 -08:00
Nikolaj Bjorner 72d2cd546e elim_bounds bugfix
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 17:48:02 -08:00
Nikolaj Bjorner 0b1e8ff912 removing tabs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 17:00:00 -08:00
Nikolaj Bjorner 5262e1986c removing tabs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 16:58:26 -08:00
Christoph M. Wintersteiger ced4a430d1 ML code simplification 2015-12-22 23:40:27 +00:00
Christoph M. Wintersteiger 0f656047c7 ML code simplification 2015-12-22 23:37:07 +00:00
Nikolaj Bjorner 54e8612f4d fix bounds elimination bug for nested quantifiers. Codeplex post z3: A formula and its negation are unsatisfiable
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 12:26:38 -08:00
Nikolaj Bjorner 4cf41c44f3 support else values that are null from models
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 11:09:48 -08:00
Nikolaj Bjorner 995d66c6f2 remove print statements
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 10:46:33 -08:00
Nikolaj Bjorner 9c6271dded add debugging facilities for github issues #384 #367
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 10:43:18 -08:00
Nikolaj Bjorner 65da0f9f3a updated seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-21 06:07:50 -08:00
Nikolaj Bjorner 8e26c97782 tuning bit-vector operations
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-21 13:09:03 +02:00
Nikolaj Bjorner 1eebab355c Merge branch 'master' of https://github.com/Z3Prover/z3 2015-12-20 09:44:16 +02:00
Nikolaj Bjorner 284fcc2c04 seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-20 09:43:56 +02:00
Christoph M. Wintersteiger c2ab9b72dc resource-limit related fixes in src/test 2015-12-18 18:43:38 +00:00
Christoph M. Wintersteiger ed1e8b73ed formatting 2015-12-17 17:39:23 +00:00
Mikolas Janota 0fd61eee1f Cleanup in lackr. 2015-12-17 13:25:56 +00:00
Mikolas Janota 3dbc307ecd Setting up the lackr branch. 2015-12-16 20:10:14 +00:00
Mikolas Janota 4cc1640a45 Adding stats to lackr. 2015-12-16 14:41:54 +00:00
Nikolaj Bjorner 99da56a786 Merge branch 'master' of https://github.com/Z3Prover/z3 2015-12-16 00:49:36 +02:00
Nikolaj Bjorner ee0dbf34f0 add completion (introducing negative root function symbols) to address regression introduced when fixing unsound handling of negative roots
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-16 00:49:06 +02:00
Mikolas Janota c6e66ebc3a Adding ackr component. 2015-12-15 18:43:36 +00:00
Nuno Lopes dbc1a84d6a fix warning with MSVC++ 64 2015-12-15 18:36:01 +00:00
Christoph M. Wintersteiger fc5b9156cf Merge pull request #363 from delcypher/dotnet_configure_assembly_info
Refactor ``mk_all_assembly_infos()`` to use the ``configure_file()`` and misc fixes for dotnet bindings
2015-12-15 11:35:14 +00:00
Nikolaj Bjorner b1459f4fa3 fix build warnings
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-15 04:57:32 +02:00
Nikolaj Bjorner 82c3233967 Merge branch 'master' of https://github.com/Z3Prover/z3 2015-12-15 04:11:22 +02:00
Nikolaj Bjorner 43bc6caa55 fix warning messages
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-15 04:11:11 +02:00
Christoph M. Wintersteiger c33a8794a4 Merge branch 'master' of https://github.com/Z3Prover/z3 into new_ocaml_install 2015-12-14 16:32:48 +00:00
Christoph M. Wintersteiger e652b7d2c7 Follow-up fix for #377. 2015-12-14 16:31:10 +00:00
Christoph M. Wintersteiger 4f5a2e432d For for Python 3.x __eq__/__hash__.
Fixes #377.
2015-12-14 16:27:39 +00:00
Christoph M. Wintersteiger ced6809cd8 Removed old, unnecessary file. 2015-12-14 14:43:28 +00:00
Christoph M. Wintersteiger 134b93b43e ML API build fixes for Windows. 2015-12-14 14:41:19 +00:00
Christoph M. Wintersteiger 1f0b5cd0bc Merge branch 'master' of https://github.com/Z3Prover/z3 into new_ocaml_install 2015-12-14 13:02:49 +00:00
Dan Liew 28eb21442e Bump the copyright year in `AssemblyInfo.cs.in`. Perhaps we should
automatically generate this year during the configure step with a
``@COPYRIGHT_END_YEAR@`` substitution instead?
2015-12-14 09:51:45 +00:00
Dan Liew 288fb3b7c1 Remove some trailing spaces in `AssemblyInfo.cs.in` 2015-12-14 09:51:45 +00:00
Dan Liew 81c98cf3ee Refactor `mk_all_assembly_infos() to use the configure_file()`
function. The old implementation was buggy under Python 3.5 and
unsafe (not using with statements on calls to ``open()``).
2015-12-14 09:51:45 +00:00
Nikolaj Bjorner f3d94db889 bild on gcc #376
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-13 23:47:45 -08:00
Nikolaj Bjorner 72883df134 fix build, add seq features
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-13 16:02:17 -08:00
Nikolaj Bjorner 3c50508762 use ADT for strings
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 20:46:28 -08:00
Christoph M. Wintersteiger 5a357097c0 ML API Windows build fixes 2015-12-12 20:01:52 +00:00
Nikolaj Bjorner a7e2fb31e3 updates to resource exceptions, update master possibly handle pull request issue
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 11:36:49 -08:00
Christoph M. Wintersteiger d5f79c1f17 build fix for ML API 2015-12-12 19:30:25 +00:00
Nikolaj Bjorner b31ba47271 ensure limit children are safe for race conditions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:25 +00:00
Nikolaj Bjorner 17bbaa06dc ensure limit children are safe for race conditions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:24 +00:00
Nikolaj Bjorner a134a079b1 ensure limit children are safe for race conditions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:24 +00:00
Nikolaj Bjorner 16f1b72b7c cleanup deprecated critical sections, fix cancellation for par_or_else tactic
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:24 +00:00
Nikolaj Bjorner 32be23fdaa fix index into reversed contains semantics
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:24 +00:00
Nikolaj Bjorner 267a1e962c moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:24 +00:00
Nikolaj Bjorner d4a90d7ec3 moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:24 +00:00
Nikolaj Bjorner a9723fb6c7 reworking cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:23 +00:00
Nikolaj Bjorner 9769322690 reworking cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:23 +00:00
Nikolaj Bjorner e08bfb62f8 moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:23 +00:00
Nikolaj Bjorner 589626b738 moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:23 +00:00
Nikolaj Bjorner f2f9578c0a cleanup cancelation logic
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:22 +00:00
Nikolaj Bjorner 2ecbe26be1 ensure limit children are safe for race conditions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 10:24:19 -08:00
Nikolaj Bjorner 54ac71cada ensure limit children are safe for race conditions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 10:23:56 -08:00
Nikolaj Bjorner 4132fc2d91 ensure limit children are safe for race conditions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 10:18:51 -08:00
Nikolaj Bjorner 2a051719d8 cleanup deprecated critical sections, fix cancellation for par_or_else tactic
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 09:43:00 -08:00
Nikolaj Bjorner c97db1722d fix index into reversed contains semantics
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 22:00:01 -08:00
Nikolaj Bjorner 9c597e9eea Merge branch 'master' of https://github.com/Z3Prover/z3 2015-12-11 17:47:03 -08:00
Nikolaj Bjorner 521271e559 moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 17:46:22 -08:00
Nikolaj Bjorner 1aea9722cb moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 16:56:23 -08:00
Nikolaj Bjorner 96d1066c6a reworking cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 16:43:48 -08:00
Nikolaj Bjorner baee4225a7 reworking cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 16:21:24 -08:00
Nikolaj Bjorner 981f8226fe moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 13:36:47 -08:00
Nikolaj Bjorner 32b6b2da44 moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 13:13:11 -08:00
Nikolaj Bjorner 61dbb6168e cleanup cancelation logic
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 12:35:35 -08:00
Nuno Lopes 39ca5480d7 ensure that formula is skolemized in the smt solver when using MBQI
Reviewed by Nikolaj

Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-12-11 18:18:09 +00:00
Nuno Lopes ef06da8c2c fix build with gcc 2015-12-11 18:14:14 +00:00
Christoph M. Wintersteiger 8fef9e57c5 Merge branch 'master' of https://github.com/Z3Prover/z3 2015-12-11 17:52:12 +00:00
Nikolaj Bjorner 4e155887b2 consolidate cancellation to context check_cancel_flag instead of calling in set_cancel()
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 09:51:43 -08:00
Christoph M. Wintersteiger ea353d77e9 Merge branch 'master' of https://github.com/Z3Prover/z3 2015-12-11 17:48:50 +00:00
Christoph M. Wintersteiger 12ee1d342c Improved argument validation in FP API.
Fixes #372
2015-12-11 17:48:40 +00:00
Nikolaj Bjorner ee4ed1749a add cancel checks in model finder, patch by Sarah Winkler
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 09:09:25 -08:00
Nikolaj Bjorner aa415f3d58 Merge branch 'master' of https://github.com/Z3Prover/z3 2015-12-11 08:37:55 -08:00
Nikolaj Bjorner 85b9bb3cc6 seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 08:37:47 -08:00
Christoph M. Wintersteiger b25f517a89 Bugfix for C++ API.
Fixes #371.
2015-12-11 14:03:41 +00:00
Christoph M. Wintersteiger cc8e685f45 whitespace 2015-12-11 14:03:24 +00:00
Nikolaj Bjorner 58411f64e8 seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-10 20:25:12 -08:00