Skip to content

Commit 71f2528

Browse files
Bitwuzla: Fix handling of boolean options that are passed on to Bitwuzla with solver.bitwuzla.furtherOptions
Bitwuzla uses 0 or 1 to encode boolean options, so we need to use Options.set(Option, int) to set their value. The other method Option.set(Option, String) is only be used for options that expect a `Mode` (= Enum value).
1 parent 7968802 commit 71f2528

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/sosy_lab/java_smt/solvers/bitwuzla/BitwuzlaSolverContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ private static Options setFurtherOptions(Options pOptions, String pFurtherOption
222222
String optionValue = option.getValue();
223223
Option bitwuzlaOption = getBitwuzlaOptByString(optionName);
224224
try {
225-
if (pOptions.is_numeric(bitwuzlaOption)) {
225+
if (pOptions.is_numeric(bitwuzlaOption) || pOptions.is_bool(bitwuzlaOption)) {
226226
pOptions.set(bitwuzlaOption, Integer.parseInt(optionValue));
227227
} else {
228228
pOptions.set(bitwuzlaOption, option.getValue());

0 commit comments

Comments
 (0)