Skip to content

Commit

Permalink
Chore: Fix verification for 4.9
Browse files Browse the repository at this point in the history
This change, although unexpected, is required to make verification of the libraries to pass for 4.9
  • Loading branch information
MikaelMayer committed Oct 30, 2024
1 parent fabf44d commit 07e89fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Unicode/Utf8EncodingForm.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ module {:options "-functionSyntax:4"} Utf8EncodingForm refines UnicodeEncodingFo
var y := (thirdByte & 0x3F) as bv24;
var x := (fourthByte & 0x3F) as bv24;
assert {:split_here} true;
(u1 << 18) | (u2 << 16) | (z << 12) | (y << 6) | x as Unicode.ScalarValue
var v := (u1 << 18) | (u2 << 16) | (z << 12) | (y << 6) | x as Unicode.ScalarValue;
assert EncodeScalarValueQuadrupleByte(v) == m;
v
}
}
4 changes: 3 additions & 1 deletion src/dafny/Unicode/Utf8EncodingForm.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ module {:options "-functionSyntax:4"} Dafny.Utf8EncodingForm refines UnicodeEnco
var y := (thirdByte & 0x3F) as bv24;
var x := (fourthByte & 0x3F) as bv24;
assert {:split_here} true;
(u1 << 18) | (u2 << 16) | (z << 12) | (y << 6) | x as Unicode.ScalarValue
var v := (u1 << 18) | (u2 << 16) | (z << 12) | (y << 6) | x as Unicode.ScalarValue;
assert EncodeScalarValueQuadrupleByte(v) == m;
v
}
}

0 comments on commit 07e89fb

Please sign in to comment.