summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlasdair2020-05-21 16:43:30 +0100
committerAlasdair2020-05-21 16:43:30 +0100
commit07ceceff23cf4aac2c6fe8de764cb404e21c7828 (patch)
treeb07c800a6e43f6174f324234d54bb53c31d17e8e /test
parent8320ddc4b19d622f8ab5ab8625dde45fccbf383b (diff)
parent33be6201fa34557a46652658445f9c48c819ad34 (diff)
Merge branch 'mono-tweaks' of github.com:rems-project/sail into mono-tweaks
Diffstat (limited to 'test')
-rw-r--r--test/mono/itself_rewriting.sail17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/mono/itself_rewriting.sail b/test/mono/itself_rewriting.sail
index 912cb99d..4540f1a5 100644
--- a/test/mono/itself_rewriting.sail
+++ b/test/mono/itself_rewriting.sail
@@ -83,6 +83,20 @@ function test_execute() = {
execute(datasize)
}
+val transitive_itself : forall 'n. int('n) -> unit
+
+function transitive_itself(n) = {
+ needs_size_in_guard(n);
+ ()
+}
+
+val transitive_split : bool -> unit
+
+function transitive_split(x) = {
+ let n = if x then 8 else 16;
+ transitive_itself(n);
+}
+
val run : unit -> unit effect {escape}
function run () = {
@@ -90,4 +104,7 @@ function run () = {
test_execute();
willsplit(true);
willsplit(false);
+ transitive_itself(16);
+ transitive_split(true);
+ transitive_split(false);
}