Skip to content

Commit ebe6ace

Browse files
authored
Update library/core/src/num/dec2flt/decimal_seq.rs
1 parent f74f6e8 commit ebe6ace

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/num/dec2flt/decimal_seq.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ impl DecimalSeq {
157157
n = quotient;
158158
}
159159

160-
#[safety::loop_invariant(self.num_digits <= Self::MAX_DIGITS && self.decimal_point <= self.num_digits as i32)]
160+
#[safety::loop_invariant(self.num_digits <= Self::MAX_DIGITS && self.decimal_point <= self.num_digits as i32 && prev(write_index) > 0)]
161161
while n > 0 {
162162
//true but hard to write proof with kani currently
163-
kani::assume(write_index > 0);
163+
// kani::assume(write_index > 0);
164164
write_index -= 1;
165165
let quotient = n / 10;
166166
let remainder = n - (10 * quotient);

0 commit comments

Comments
 (0)