mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 08:32:11 +01:00
Accept via "a < (b + c): a < c; 0 <= b".
This commit is contained in:
1 parent
6396b47849
commit
1bfd5804bf
3 files changed
+30
-6
No files matched your search
@@ -20,10 +20,11 @@ pub func lzw_decoder.decode?(dst ptr io.buf1, src ptr io.buf1, src_final bool)()
|
||||
while true,
|
||||
pre n_bits < 8,
|
||||
{
|
||||
assert n_bits < (width + 8) via "a < (b + c): a < c; 0 <= b"()
|
||||
while n_bits < width,
|
||||
post n_bits >= width,
|
||||
{
|
||||
assert n_bits < 12 via "a < b: a < c <= b"(c:width)
|
||||
assert n_bits < 12 via "a < b: a < c; c <= b"(c:width)
|
||||
bits |= 0 // TODO.
|
||||
n_bits += 8
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user