mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 06:03:23 +00:00
fixes to mul
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4146e938e8
commit
ed0ffc1b49
2 changed files with 4 additions and 10 deletions
|
@ -66,15 +66,6 @@ jobs:
|
||||||
scriptPath: scripts/mk_unix_dist.py
|
scriptPath: scripts/mk_unix_dist.py
|
||||||
arguments: --nodotnet --nojava --arch=arm64
|
arguments: --nodotnet --nojava --arch=arm64
|
||||||
pythonInterpreter: $(python)
|
pythonInterpreter: $(python)
|
||||||
- task: CopyFiles@2
|
|
||||||
inputs:
|
|
||||||
sourceFolder: dist
|
|
||||||
contents: '*.zip'
|
|
||||||
targetFolder: $(Build.ArtifactStagingDirectory)
|
|
||||||
- task: PublishPipelineArtifact@0
|
|
||||||
inputs:
|
|
||||||
artifactName: 'ManyLinuxBuildArm64'
|
|
||||||
targetPath: $(Build.ArtifactStagingDirectory)
|
|
||||||
|
|
||||||
- job: "Ubuntu20OCaml"
|
- job: "Ubuntu20OCaml"
|
||||||
displayName: "Ubuntu 20 with OCaml"
|
displayName: "Ubuntu 20 with OCaml"
|
||||||
|
|
|
@ -1002,10 +1002,11 @@ namespace bv {
|
||||||
* 8*e = a*(2b), then a = 4e*b^-1
|
* 8*e = a*(2b), then a = 4e*b^-1
|
||||||
*/
|
*/
|
||||||
bool sls_eval::try_repair_mul(bvect const& e, bvval& a, bvect const& b) {
|
bool sls_eval::try_repair_mul(bvect const& e, bvval& a, bvect const& b) {
|
||||||
|
verbose_stream() << e << " := " << a << " * " << b << "\n";
|
||||||
unsigned parity_e = a.parity(e);
|
unsigned parity_e = a.parity(e);
|
||||||
unsigned parity_b = a.parity(b);
|
unsigned parity_b = a.parity(b);
|
||||||
|
|
||||||
if (a.is_zero(e)) {
|
if (a.is_zero(b)) {
|
||||||
a.get_variant(m_tmp, m_rand);
|
a.get_variant(m_tmp, m_rand);
|
||||||
if (m_rand(10) != 0)
|
if (m_rand(10) != 0)
|
||||||
for (unsigned i = 0; i < b.bw - parity_b; ++i)
|
for (unsigned i = 0; i < b.bw - parity_b; ++i)
|
||||||
|
@ -1018,6 +1019,8 @@ namespace bv {
|
||||||
return a.set_repair(random_bool(), m_tmp);
|
return a.set_repair(random_bool(), m_tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
verbose_stream() << "solve for " << e << "\n";
|
verbose_stream() << "solve for " << e << "\n";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue