We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebe6ace commit 4559232Copy full SHA for 4559232
library/core/src/num/dec2flt/decimal_seq.rs
@@ -157,7 +157,7 @@ impl DecimalSeq {
157
n = quotient;
158
}
159
160
- #[safety::loop_invariant(self.num_digits <= Self::MAX_DIGITS && self.decimal_point <= self.num_digits as i32 && prev(write_index) > 0)]
+ #[safety::loop_invariant(self.num_digits <= Self::MAX_DIGITS && self.decimal_point <= self.num_digits as i32 && (write_index > 0 || prev(write_index) == 1))]
161
while n > 0 {
162
//true but hard to write proof with kani currently
163
// kani::assume(write_index > 0);
0 commit comments