Skip to content

Commit f461894

Browse files
thomasspriggsEnrico Steffinlongo
authored andcommitted
Swap logic set to include arrays
So that we can use array theory.
1 parent 6d5ddf5 commit f461894

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

regression/cbmc-incr-smt2/nondeterministic-int-assert/control_flow.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ control_flow.c
33
--verbosity 10
44
Passing problem to incremental SMT2 solving via
55
Sending command to SMT2 solver - \(set-option :produce-models true\)
6-
Sending command to SMT2 solver - \(set-logic QF_UFBV\)
6+
Sending command to SMT2 solver - \(set-logic QF_AUFBV\)
77
Sending command to SMT2 solver - \(declare-fun |goto_symex::&92;guard#1| \(\) Bool\)
88
Sending command to SMT2 solver - \(define-fun |B1| \(\) Bool |goto_symex::&92;guard#1|\)
99
Sending command to SMT2 solver - \(declare-fun |main::1::x!0@1#1| \(\) \(_ BitVec 32\)\)

regression/cbmc-incr-smt2/nondeterministic-int-assert/incremental_solver_called.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ test.c
33
--verbosity 10
44
Passing problem to incremental SMT2 solving via
55
Sending command to SMT2 solver - \(set-option :produce-models true\)
6-
Sending command to SMT2 solver - \(set-logic QF_UFBV\)
6+
Sending command to SMT2 solver - \(set-logic QF_AUFBV\)
77
Sending command to SMT2 solver - \(define-fun |B0| \(\) Bool true\)
88
Sending command to SMT2 solver - \(declare-fun |main::1::x!0@1#1| \(\) \(_ BitVec 32\)\)
99
Sending command to SMT2 solver - \(define-fun |B1| \(\) Bool \(|=| |main::1::x!0@1#1| |main::1::x!0@1#1|\)\)

src/solvers/smt2_incremental/smt2_incremental_decision_procedure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ smt2_incremental_decision_proceduret::smt2_incremental_decision_proceduret(
140140
solver_process->send(
141141
smt_set_option_commandt{smt_option_produce_modelst{true}});
142142
solver_process->send(smt_set_logic_commandt{
143-
smt_logic_quantifier_free_uninterpreted_functions_bit_vectorst{}});
143+
smt_logic_quantifier_free_arrays_uninterpreted_functions_bit_vectorst{}});
144144
solver_process->send(object_size_function.declaration);
145145
}
146146

src/solvers/smt2_incremental/smt_logics.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ LOGIC_ID(quantifier_free_uninterpreted_functions, QF_UF)
1010
LOGIC_ID(quantifier_free_bit_vectors, QF_BV)
1111
LOGIC_ID(quantifier_free_uninterpreted_functions_bit_vectors, QF_UFBV)
1212
LOGIC_ID(quantifier_free_bit_vectors_arrays, QF_ABV)
13-
LOGIC_ID(quantifier_free_uninterpreted_functions_bit_vectors_arrays, QF_AUFBV)
13+
LOGIC_ID(quantifier_free_arrays_uninterpreted_functions_bit_vectors, QF_AUFBV)
1414
LOGIC_ID(all, ALL)

unit/solvers/smt2_incremental/smt2_incremental_decision_procedure.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ TEST_CASE(
170170
std::vector<smt_commandt>{
171171
smt_set_option_commandt{smt_option_produce_modelst{true}},
172172
smt_set_logic_commandt{
173-
smt_logic_quantifier_free_uninterpreted_functions_bit_vectorst{}},
173+
// NOLINTNEXTLINE(whitespace/line_length)
174+
smt_logic_quantifier_free_arrays_uninterpreted_functions_bit_vectorst{}},
174175
test.object_size_function.declaration});
175176
test.sent_commands.clear();
176177
SECTION("Set symbol to true.")

unit/solvers/smt2_incremental/smt_to_smt2_string.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ TEST_CASE(
196196
const auto qf_abv = smt_logic_quantifier_free_bit_vectors_arrayst{};
197197
CHECK(smt_to_smt2_string(qf_abv) == "QF_ABV");
198198
const auto qf_aufbv =
199-
smt_logic_quantifier_free_uninterpreted_functions_bit_vectors_arrayst{};
199+
smt_logic_quantifier_free_arrays_uninterpreted_functions_bit_vectorst{};
200200
CHECK(smt_to_smt2_string(qf_aufbv) == "QF_AUFBV");
201201
CHECK(smt_to_smt2_string(smt_logic_allt{}) == "ALL");
202202
CHECK(

0 commit comments

Comments
 (0)