Skip to content

[TG-1358] Fix support for functions containing more than 255 local variables #1795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
; This generates a class file that attempts to access local variables indexed
; at 255, 256 and 65534
; The class file is generated from this file using the following command:
; java -jar jasmin.jar ManyLocalVariables.j
; The jasmin jar file can be obtained from: http://jasmin.sourceforge.net/

.class public ManyLocalVariables
.super java/lang/Object

.method public static test()I
.limit stack 10
.limit locals 65535
.line 1
iconst_1
istore 1

iconst_1
istore 255

iconst_1
istore_w 256

iconst_1
istore_w 65534

iload 1
iload 255
iload_w 256
iload_w 65534

iadd
iadd
iadd

ireturn
.end method
4 changes: 4 additions & 0 deletions regression/cbmc-java/lots_local_variables_manual/test.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CORE
ManyLocalVariables.class
--function ManyLocalVariables.test
VERIFICATION SUCCESSFUL
Binary file not shown.
Loading