Skip to content

Commit

Permalink
fix format problem and prevent different name
Browse files Browse the repository at this point in the history
  • Loading branch information
KotorinMinami committed May 13, 2024
1 parent 13c24db commit f6e1f25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions model/hex_bits_signed.sail
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $include <string.sail>
val parse_hex_bits_signed : forall 'n, 'n > 0. (int('n), string) -> bits('n)
val valid_hex_bits_signed : forall 'n, 'n > 0. (int('n), string) -> bool

val hex_bits_signed: forall 'n, 'n > 0. bits('n) <-> (int('n), string)
val hex_bits_signed : forall 'n, 'n > 0. bits('n) <-> (int('n), string)

function hex_bits_signed_forwards(bv) = {
if signed(bv) < 0
Expand All @@ -86,8 +86,8 @@ function hex_bits_signed_forwards_matches(bv) = true
function parse_hex_bits_signed(n, str) = {
if string_take(str, 1) == "-"
then {
let str_ = string_drop(str, 1);
let bv = parse_hex_bits(n, str_);
let str = string_drop(str, 1);
let bv = parse_hex_bits(n, str);
not_vec(bv) + 1
}
else parse_hex_bits(n, str)
Expand Down

0 comments on commit f6e1f25

Please sign in to comment.