Skip to content

Commit ff93c2d

Browse files
committed
clang-format switch/case statement
1 parent 7803115 commit ff93c2d

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/solvers/flattening/boolbv_typecast.cpp

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -415,31 +415,31 @@ bool boolbvt::type_conversion(
415415
}
416416
break;
417417

418-
case bvtypet::IS_BV:
419-
INVARIANT(
420-
src_width == dest_width,
421-
"source bitvector with shall equal the destination bitvector width");
422-
dest=src;
423-
return false;
424-
425-
default:
426-
if(src_type.id()==ID_bool)
427-
{
428-
// bool to integer
429-
418+
case bvtypet::IS_BV:
430419
INVARIANT(
431-
src_width == 1, "bitvector of type boolean shall have width one");
420+
src_width == dest_width,
421+
"source bitvector with shall equal the destination bitvector width");
422+
dest = src;
423+
return false;
432424

433-
for(std::size_t i=0; i<dest_width; i++)
425+
default:
426+
if(src_type.id() == ID_bool)
434427
{
435-
if(i==0)
436-
dest.push_back(src[0]);
437-
else
438-
dest.push_back(const_literal(false));
439-
}
428+
// bool to integer
440429

441-
return false;
442-
}
430+
INVARIANT(
431+
src_width == 1, "bitvector of type boolean shall have width one");
432+
433+
for(std::size_t i = 0; i < dest_width; i++)
434+
{
435+
if(i == 0)
436+
dest.push_back(src[0]);
437+
else
438+
dest.push_back(const_literal(false));
439+
}
440+
441+
return false;
442+
}
443443
}
444444
break;
445445

0 commit comments

Comments
 (0)