Skip to content

Commit 098a023

Browse files
committed
intTests: Adapt test_stack_traces to new llvm_execute_func requirement.
An llvm_execute_func declaration is now required in all LLVMSetup blocks.
1 parent 0ddd8b5 commit 098a023

File tree

2 files changed

+28
-16
lines changed

2 files changed

+28
-16
lines changed

intTests/test_stack_traces/trace004.log.good

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,40 @@
44
just llvm_stack
55
Stack trace:
66
(builtin) in llvm_stack
7-
trace004.saw:15:32-15:42 in (callback)
7+
trace004.saw:15:39-15:49 in (callback)
88
(builtin) in llvm_verify
9-
trace004.saw:15:1-15:45 (at top level)
9+
trace004.saw:15:8-15:52 in (callback)
10+
(builtin) in fails
11+
trace004.saw:15:1-15:52 (at top level)
12+
13+
== Anticipated failure message ==
14+
Stack trace:
15+
(builtin) in llvm_verify
16+
trace004.saw:15:8-15:52 in (callback)
17+
(builtin) in fails
18+
trace004.saw:15:1-15:52 (at top level)
19+
Missing llvm_execute_func specification when verifying foo
1020

11-
Verifying foo...
12-
Simulating foo...
13-
Checking proof obligations foo...
14-
Proof succeeded! foo
1521

1622
------------------------------------------------------------
1723
llvm_stack via let
1824
Stack trace:
1925
(builtin) in llvm_stack
2026
trace004.saw:22:13-22:23 in spec0
21-
trace004.saw:23:32-23:37 in (callback)
27+
trace004.saw:23:39-23:44 in (callback)
2228
(builtin) in llvm_verify
23-
trace004.saw:23:1-23:40 (at top level)
29+
trace004.saw:23:8-23:47 in (callback)
30+
(builtin) in fails
31+
trace004.saw:23:1-23:47 (at top level)
32+
33+
== Anticipated failure message ==
34+
Stack trace:
35+
(builtin) in llvm_verify
36+
trace004.saw:23:8-23:47 in (callback)
37+
(builtin) in fails
38+
trace004.saw:23:1-23:47 (at top level)
39+
Missing llvm_execute_func specification when verifying foo
2440

25-
Verifying foo...
26-
Simulating foo...
27-
Checking proof obligations foo...
28-
Proof succeeded! foo
2941

3042
------------------------------------------------------------
3143
do-block

intTests/test_stack_traces/trace004.saw

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ print "";
99

1010

1111
// Test just llvm_stack by itself.
12-
// This probably should not actually verify, but it does...
12+
// This should not actually verify.
1313
print "------------------------------------------------------------";
1414
print "just llvm_stack";
15-
llvm_verify mod "foo" [] false llvm_stack z3;
15+
fails (llvm_verify mod "foo" [] false llvm_stack z3);
1616
print "";
1717

1818
// Test just llvm_stack via a let-binding.
19-
// This probably should not actually verify, but it does...
19+
// This should not actually verify.
2020
print "------------------------------------------------------------";
2121
print "llvm_stack via let";
2222
let spec0 = llvm_stack;
23-
llvm_verify mod "foo" [] false spec0 z3;
23+
fails (llvm_verify mod "foo" [] false spec0 z3);
2424
print "";
2525

2626
// Test with an inline do-block.

0 commit comments

Comments
 (0)