Skip to content

Commit a71dfb5

Browse files
authored
Merge pull request #951 from mgudemann/fix/bytecode_args_write_from_stack
Fix/bytecode args write from stack
2 parents 1b58ff9 + 0ce085f commit a71dfb5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+733
-10
lines changed

regression/cbmc-java/LocalVarTable5/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test.class
44
dead anonlocal::1i
55
dead anonlocal::2i
66
dead anonlocal::3a
7-
dead new_tmp0
7+
dead new_tmp[0-9]+
88
^EXIT=0$
99
^SIGNAL=0$
1010
--

regression/cbmc-java/destructor1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Break.class
55
^SIGNAL=0$
66
dead i;
77
--
8-
GOTO 10
8+
GOTO 11
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
This regression test is created from the .j file with the jasmin assembler.
2+
https://github.com/Sable/jasmin
3+
4+
On Ubuntu, it is available as jasmin-sable. To convert a .j file, it is
5+
sufficient to do
6+
7+
> jasmin $FILE.j
8+
9+
and it will create the corresponding $FILE.class file.
603 Bytes
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
public class stack_test {
2+
public static void main(String[] args) {
3+
stack_var1 s = new stack_var1();
4+
int n = s.f(1);
5+
assert(n==0);
6+
}
7+
}
205 Bytes
Binary file not shown.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.class public stack_var1
2+
.super java/lang/Object
3+
4+
.method public <init>()V
5+
aload_0
6+
invokenonvirtual java/lang/Object/<init>()V
7+
return
8+
.end method
9+
10+
.method public f(I)I
11+
.limit stack 2
12+
.limit locals 2
13+
14+
;; copy of arg on stack
15+
iload_1
16+
;; increment arg
17+
iinc 1 1
18+
;; incremented copy on stack
19+
iload_1
20+
isub
21+
ireturn
22+
.end method
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
stack_test.class
3+
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^.*assertion at file stack_test.java line 5 function.*: FAILURE$
7+
^VERIFICATION FAILED$
8+
--
9+
^warning: ignoring
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
This regression test is created from the .j file with the jasmin assembler.
2+
https://github.com/Sable/jasmin
3+
4+
On Ubuntu, it is available as jasmin-sable. To convert a .j file, it is
5+
sufficient to do
6+
7+
> jasmin $FILE.j
8+
9+
and it will create the corresponding $FILE.class file.
602 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)