-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure we don't duplicate function definitions in repeated
specialization rounds Also print a warning rather than exploding if a plugin can't be loaded for whatever reason, and remove a rogue prerr_endline
- Loading branch information
Showing
6 changed files
with
63 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Assertion failed: fail_issue203.sail:29: message 1 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
default Order dec | ||
|
||
$include <prelude.sail> | ||
|
||
infixr 5 ^^ | ||
|
||
overload operator ^^ = {concat_str} | ||
|
||
union exception = { | ||
Error_internal_error : unit | ||
} | ||
|
||
val internal_error : forall ('a : Type). (string, int, string) -> 'a | ||
|
||
function internal_error(file, line, s) = { | ||
assert (false, file ^^ ":" ^^ dec_str(line) ^^ ": " ^^ s); | ||
throw Error_internal_error() | ||
} | ||
|
||
val internal_error_caller : forall ('a : Type). (string, int, string) -> 'a | ||
|
||
function internal_error_caller(f , l, k) -> 'a = { | ||
internal_error(f, l, k); | ||
} | ||
|
||
val main : unit -> unit | ||
|
||
function main() = { | ||
internal_error_caller(__FILE__, __LINE__, "message 1"); | ||
internal_error(__FILE__, __LINE__, "message 2"); | ||
} |