Skip to content

Commit

Permalink
Lean: update handwritten support
Browse files Browse the repository at this point in the history
Adapt to the specialization patch [1], which hides the PreSailM monad in
the PreSail namespace, and use the SailM monad instead.

[1] rems-project/sail#1084
  • Loading branch information
ineol authored and Timmmm committed Feb 28, 2025
1 parent 32587ca commit 2dfc4ff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions handwritten_support/RiscvExtras.lean
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ section Effectful

variable {Register : Type} {RegisterType : Register → Type} [DecidableEq Register] [Hashable Register]

axiom plat_term_write {α} : α → PreSailM RegisterType c ue Unit
axiom plat_term_read : Unit → PreSailM RegisterType c ue String
axiom plat_term_write {α} : α → SailM Unit
axiom plat_term_read : Unit → SailM String

-- Reservations
axiom load_reservation : Arch.pa → PreSailM RegisterType c ue Unit
axiom load_reservation : Arch.pa → SailM Unit
axiom match_reservation : Arch.pa → Bool
axiom cancel_reservation : Unit → PreSailM RegisterType c ue Unit
axiom cancel_reservation : Unit → SailM Unit

axiom get_16_random_bits : Unit → PreSailM RegisterType c ue (BitVec 16)
axiom get_16_random_bits : Unit → SailM (BitVec 16)

axiom speculate_conditional : Unit → PreSailM RegisterType c ue Bool
axiom speculate_conditional : Unit → SailM Bool

end Effectful

Expand Down

0 comments on commit 2dfc4ff

Please sign in to comment.