Skip to content

Conversation

@Timmmm
Copy link
Contributor

@Timmmm Timmmm commented Jan 30, 2025

Draft for #919, just checking if this approach makes sense.

Still TODO:

  • Documentation
  • Verify the type is unit -> unit for functions where this is applied.
  • Tests
  • Other backends??
  • Output formatting isn't quite right; not sure why.

Still TODO:

* Documentation
* Verify the type is `unit -> unit` for functions where this is applied.
* Tests
* Other backends??
* Output formatting isn't quite right; not sure why.
@github-actions
Copy link

github-actions bot commented Jan 30, 2025

Test Results

   12 files  ± 0     24 suites  ±0   0s ⏱️ ±0s
  768 tests + 9    762 ✅ + 3  0 💤 ±0  0 ❌ ±0   6 🔥 + 6 
2 525 runs  +22  2 513 ✅ +10  0 💤 ±0  0 ❌ ±0  12 🔥 +12 

For more details on these errors, see this check.

Results for commit 59d29e3. ± Comparison against base commit e7f1262.

♻️ This comment has been updated with latest results.

@Alasdair
Copy link
Collaborator

Yes, that looks like the right way to go.

| None -> ()
end;
(* Check $[test] functions have type unit -> unit. *)
(* TODO: Does the annotation go on the type declaration or the function definition? *)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in general we put these annotations on the val type declarations. That's where $[property] and $[counterexample] are expected to be.

If you have a function with an inline annotation:

$[annot]
function f(x : int) -> unit = ...

it'll get expanded to

$[annot]
val f : int -> unit
$[annot]
function f(x) = ...

with the annotation on both.

let end_extern_cpp = separate hardline (List.map string [""; "#ifdef __cplusplus"; "}"; "#endif"]) in
let hlhl = hardline ^^ hardline in

(* TODO: Formatting here isn't quite right. What are the arguments to jump? *)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Alasdair
Copy link
Collaborator

Alasdair commented Feb 5, 2025

I think this change has probably broken this PR: #960 I can fix if you like?

@Timmmm
Copy link
Contributor Author

Timmmm commented Feb 7, 2025

Ah that's a nice change. Don't worry, I'll try and figure it out. You have more important things to do!

@Timmmm Timmmm closed this May 1, 2025
TinyuengKwan pushed a commit to TinyuengKwan/sail that referenced this pull request Dec 31, 2025
…ms-project#928)

From section 12.2.1 of the priv spec:
> For implementations that make satp.MODE read-only zero (always Bare),
attempts to execute an SFENCE.VMA instruction might raise an
illegal-instruction exception.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants