Skip to content

Commit

Permalink
Fix lean style in state.ml
Browse files Browse the repository at this point in the history
  • Loading branch information
lfrenot committed Jan 20, 2025
1 parent bdd48ad commit 290094b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/lib/state.ml
Original file line number Diff line number Diff line change
Expand Up @@ -843,18 +843,19 @@ let register_refs_lean doc_id doc_typ registers =
[
string " set_";
idd;
space;
colon;
space;
typp;
string " -> SailM Unit";
hardline;
string " get_";
idd;
space;
colon;
space;
string "SailM (";
string "SailM ";
typp;
string ")";
]
in
let refs = separate_map hardline register_ref registers in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import Out.Sail.Sail
open Sail

class MonadReg where
set_R0: (BitVec 64) -> SailM Unit
get_R0: SailM ((BitVec 64))
set_R0 : (BitVec 64) -> SailM Unit
get_R0 : SailM (BitVec 64)

variable [MonadReg]

Expand Down
File renamed without changes.

0 comments on commit 290094b

Please sign in to comment.