Replies: 1 comment 1 reply
-
Hi @polwel, thanks for posting. Flux can't prove the program correct because it's missing qualifiers. To verify the program, Flux needs to infer that |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The documentation presents a flawed implementation of binary search. That is an awesome example!
The text mentions that an off-by-one error has been introduced. Indeed, I can tell the
while left <= right
condition should readwhile left < right
. AFAICT, the implementation otherwise is identical to the one fromstd
.However,
flux
still rejects it.What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions