File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
kani-compiler/src/codegen_cprover_gotoc/codegen Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1729,7 +1729,7 @@ impl<'tcx> GotocCtx<'tcx> {
1729
1729
// [u32; n]: translated wrapped in a struct
1730
1730
let indexes = fargs. remove ( 0 ) ;
1731
1731
1732
- let ( _ , vec_subtype) = rust_arg_types[ 0 ] . simd_size_and_type ( self . tcx ) ;
1732
+ let ( in_type_len , vec_subtype) = rust_arg_types[ 0 ] . simd_size_and_type ( self . tcx ) ;
1733
1733
let ( ret_type_len, ret_type_subtype) = rust_ret_type. simd_size_and_type ( self . tcx ) ;
1734
1734
if ret_type_len != n {
1735
1735
let err_msg = format ! (
@@ -1749,7 +1749,7 @@ impl<'tcx> GotocCtx<'tcx> {
1749
1749
// An unsigned type here causes an invariant violation in CBMC.
1750
1750
// Issue: https://github.com/diffblue/cbmc/issues/6298
1751
1751
let st_rep = Type :: ssize_t ( ) ;
1752
- let n_rep = Expr :: int_constant ( n , st_rep. clone ( ) ) ;
1752
+ let n_rep = Expr :: int_constant ( in_type_len , st_rep. clone ( ) ) ;
1753
1753
1754
1754
// P = indexes.expanded_map(v -> if v < N then vec1[v] else vec2[v-N])
1755
1755
let elems = ( 0 ..n)
You can’t perform that action at this time.
0 commit comments