File tree 1 file changed +21
-21
lines changed
1 file changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -415,31 +415,31 @@ bool boolbvt::type_conversion(
415
415
}
416
416
break ;
417
417
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:
430
419
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 ;
432
424
433
- for (std::size_t i=0 ; i<dest_width; i++)
425
+ default :
426
+ if (src_type.id () == ID_bool)
434
427
{
435
- if (i==0 )
436
- dest.push_back (src[0 ]);
437
- else
438
- dest.push_back (const_literal (false ));
439
- }
428
+ // bool to integer
440
429
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
+ }
443
443
}
444
444
break ;
445
445
You can’t perform that action at this time.
0 commit comments