Skip to content

Commit 34acaa8

Browse files
update license for space/quotes per Z3Prover#982
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent c4b26cd commit 34acaa8

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

LICENSE.txt

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ Z3
22
Copyright (c) Microsoft Corporation
33
All rights reserved.
44
MIT License
5-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7+
68
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7-
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9+
10+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

src/interp/iz3proof_itp.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ class iz3proof_itp_impl : public iz3proof_itp {
541541
placeholder_arg |= is_placeholder(args[i]);
542542
}
543543
try {
544+
TRACE("duality", print_expr(tout, e); tout << "\n";);
544545
opr f = op(e);
545546
if(f == Equal && args[0] == args[1]) res = mk_true();
546547
else if(f == And) res = my_and(args);
@@ -853,6 +854,7 @@ class iz3proof_itp_impl : public iz3proof_itp {
853854

854855
ast simplify_rotate_eq2leq(const ast &pl, const ast &neg_equality, const ast &pf){
855856
if(pl == arg(pf,1)){
857+
TRACE("duality", print_expr(tout, pl); print_expr(tout << "\n", neg_equality); print_expr(tout << "\n", pf); tout << "\n";);
856858
ast cond = mk_true();
857859
ast equa = sep_cond(arg(pf,0),cond);
858860
if(is_equivrel_chain(equa)){
@@ -1870,10 +1872,13 @@ class iz3proof_itp_impl : public iz3proof_itp {
18701872

18711873
ast chain_ineqs(opr comp_op, LitType t, const ast &chain, const ast &lhs, const ast &rhs){
18721874
if(is_true(chain)){
1873-
if(lhs != rhs)
1875+
if (lhs != rhs) {
1876+
TRACE("duality", print_expr(tout, lhs); tout << " "; print_expr(tout, rhs); tout << "\n";);
18741877
throw bad_ineq_inference();
1878+
}
18751879
return make(Leq,make_int(rational(0)),make_int(rational(0)));
18761880
}
1881+
TRACE("duality", print_expr(tout, chain); print_expr(tout << "\n", lhs); tout << " "; print_expr(tout, rhs); tout << "\n";);
18771882
ast last = chain_last(chain);
18781883
ast rest = chain_rest(chain);
18791884
ast mid = subst_in_pos(rhs,rewrite_pos(last),rewrite_lhs(last));

src/sat/sat_solver.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3324,7 +3324,7 @@ namespace sat {
33243324
if (is_sat == l_true) {
33253325
delete_unfixed(unfixed_lits, unfixed_vars);
33263326
}
3327-
extract_fixed_consequences(num_units, assumptions, unfixed_vars, conseq);
3327+
extract_fixed_consequences(num_units, assumptions, unfixed_vars, conseq);
33283328
update_unfixed_literals(unfixed_lits, unfixed_vars);
33293329
IF_VERBOSE(1, verbose_stream() << "(sat.get-consequences"
33303330
<< " iterations: " << num_iterations

0 commit comments

Comments
 (0)