|
8 | 8 |
|
9 | 9 | package org.sosy_lab.java_smt.solvers.z3;
|
10 | 10 |
|
11 |
| -import com.google.common.base.Preconditions; |
12 | 11 | import com.google.common.collect.ImmutableList;
|
13 | 12 | import com.microsoft.z3.Native;
|
14 |
| -import com.microsoft.z3.Z3Exception; |
15 | 13 | import java.math.BigInteger;
|
16 | 14 | import org.sosy_lab.java_smt.api.FloatingPointRoundingMode;
|
17 | 15 | import org.sosy_lab.java_smt.api.FormulaType;
|
@@ -75,16 +73,15 @@ protected Long makeNumberImpl(double pN, FloatingPointType pType, Long pRounding
|
75 | 73 |
|
76 | 74 | @Override
|
77 | 75 | protected Long makeNumberImpl(
|
78 |
| - BigInteger exponent, |
79 |
| - BigInteger mantissa, |
80 |
| - boolean signBit, |
81 |
| - FloatingPointType type) { |
82 |
| - |
83 |
| - long signBv = Native.mkBvNumeral(z3context, 1, new boolean[]{signBit}); |
84 |
| - long expoBv = Native.mkNumeral(z3context, exponent.toString(), Native.mkBvSort(z3context, |
85 |
| - type.getExponentSize())); |
86 |
| - long mantBv = Native.mkNumeral(z3context, mantissa.toString(), Native.mkBvSort(z3context, |
87 |
| - type.getMantissaSize())); |
| 76 | + BigInteger exponent, BigInteger mantissa, boolean signBit, FloatingPointType type) { |
| 77 | + |
| 78 | + long signBv = Native.mkBvNumeral(z3context, 1, new boolean[] {signBit}); |
| 79 | + long expoBv = |
| 80 | + Native.mkNumeral( |
| 81 | + z3context, exponent.toString(), Native.mkBvSort(z3context, type.getExponentSize())); |
| 82 | + long mantBv = |
| 83 | + Native.mkNumeral( |
| 84 | + z3context, mantissa.toString(), Native.mkBvSort(z3context, type.getMantissaSize())); |
88 | 85 |
|
89 | 86 | assert Native.getSort(z3context, signBv) != Native.getSort(z3context, mantBv);
|
90 | 87 |
|
|
0 commit comments