Skip to content

Commit 662d256

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#2431 from tautschnig/vs-with
Remove unused parameters in convert_with_*
2 parents 1aceb6c + a5ecfb4 commit 662d256

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/solvers/flattening/boolbv.h

-2
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ class boolbvt:public arrayst
187187
bvt &next_bv);
188188

189189
void convert_with_bv(
190-
const typet &type,
191190
const exprt &op1,
192191
const exprt &op2,
193192
const bvt &prev_bv,
@@ -202,7 +201,6 @@ class boolbvt:public arrayst
202201

203202
void convert_with_union(
204203
const union_typet &type,
205-
const exprt &op1,
206204
const exprt &op2,
207205
const bvt &prev_bv,
208206
bvt &next_bv);

src/solvers/flattening/boolbv_with.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ void boolbvt::convert_with(
8888
else if(type.id()==ID_bv ||
8989
type.id()==ID_unsignedbv ||
9090
type.id()==ID_signedbv)
91-
return convert_with_bv(type, op1, op2, prev_bv, next_bv);
91+
return convert_with_bv(op1, op2, prev_bv, next_bv);
9292
else if(type.id()==ID_struct)
9393
return
9494
convert_with_struct(to_struct_type(type), op1, op2, prev_bv, next_bv);
9595
else if(type.id()==ID_union)
96-
return convert_with_union(to_union_type(type), op1, op2, prev_bv, next_bv);
96+
return convert_with_union(to_union_type(type), op2, prev_bv, next_bv);
9797
else if(type.id()==ID_symbol)
9898
return convert_with(ns.follow(type), op1, op2, prev_bv, next_bv);
9999

@@ -172,7 +172,6 @@ void boolbvt::convert_with_array(
172172
}
173173

174174
void boolbvt::convert_with_bv(
175-
const typet &type,
176175
const exprt &op1,
177176
const exprt &op2,
178177
const bvt &prev_bv,
@@ -261,7 +260,6 @@ void boolbvt::convert_with_struct(
261260

262261
void boolbvt::convert_with_union(
263262
const union_typet &type,
264-
const exprt &op1,
265263
const exprt &op2,
266264
const bvt &prev_bv,
267265
bvt &next_bv)

0 commit comments

Comments
 (0)