We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem can be exposed via
function const16() -> (bitvector(16), bool) = { (0xFFFF, true) } function const32() -> (bitvector(32), bool) = { (0xEEEE_EEEE, false) } val match_width : forall 'n, 'n >= 0. bitvector('n) -> bitvector(2 * 'n) function match_width x = { let (foo, _) : (bitvector('n), bool) = match 'n { 16 => const16(), 32 => const32(), n => (sail_zeros(n), false) } in bitvector_concat(foo, foo) }
which gets translated to
... /-- Type quantifiers: k_n : Nat, k_n ≥ 0 -/ def match_width (x : (BitVec k_n)) : (BitVec (2 * k_n)) := let (foo, _) := match (Sail.BitVec.length x) with | 16 => (const16 ()) | 32 => (const32 ()) | n => ((BitVec.zero n), false) (foo ++ foo)
The solution is to
The text was updated successfully, but these errors were encountered:
javra
Successfully merging a pull request may close this issue.
Problem can be exposed via
which gets translated to
The solution is to
The text was updated successfully, but these errors were encountered: