Fix models for sygus-inference, bv2int, real2int (#6421)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Thu, 22 Apr 2021 15:02:05 +0000 (10:02 -0500)
committerGitHub <noreply@github.com>
Thu, 22 Apr 2021 15:02:05 +0000 (15:02 +0000)
commitccd0e7fdf1484d72b0a2565fefd0259fe7557b0c
tree5713dd6c821f13151e6ba71f519d5d2394a316c6
parentbc928d24d7454d81f39006b4129a29286fcd10eb
Fix models for sygus-inference, bv2int, real2int (#6421)

In each case, previously we were generating a define-fun, what we needed was to do a model substitution.

This actually meant that check-models was giving false positives. The model was incorrect but check-models succeeded due to its use of expand definitions.
src/preprocessing/passes/bv_to_int.cpp
src/preprocessing/passes/real_to_int.cpp
src/preprocessing/passes/real_to_int.h
src/preprocessing/passes/sygus_inference.cpp
src/preprocessing/preprocessing_pass_context.cpp
src/preprocessing/preprocessing_pass_context.h
test/regress/regress0/push-pop/real-as-int-incremental.smt2
test/regress/regress0/quantifiers/horn-ground-pre-post.smt2
test/regress/regress1/quantifiers/horn-simple.smt2
test/regress/regress2/sygus/issue4022-conjecture-gen.smt2