Skip to content
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

usvm-jvm: Support arrays with multiple dimensions #213

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

Saloed
Copy link
Collaborator

@Saloed Saloed commented Sep 11, 2024

Rewrite multi-dim array allocation with loops. Fixes #212

val originalLocation = assignInst.location
val blockGenerator = ArrayInitializationBlockGenerator(
method.enclosingClass.classpath,
originalLocation, modifiedInstructions, generatedLocalVarIndex

Check warning

Code scanning / detekt

Reports incorrect argument list wrapping Warning

Argument should be on a separate line (unless all arguments can fit a single line)
val originalLocation = assignInst.location
val blockGenerator = ArrayInitializationBlockGenerator(
method.enclosingClass.classpath,
originalLocation, modifiedInstructions, generatedLocalVarIndex

Check warning

Code scanning / detekt

Reports incorrect argument list wrapping Warning

Argument should be on a separate line (unless all arguments can fit a single line)
Comment on lines +77 to +78
modifiedLocationIndices: Map<Int, List<Int>>
) {

Check warning

Code scanning / detekt

Rule to mandate/forbid trailing commas at declaration sites Warning

Missing trailing comma before ")"
@Saloed Saloed merged commit 78f568d into main Sep 11, 2024
2 checks passed
@Saloed Saloed deleted the saloed/multidim-arrays branch September 11, 2024 12:15
oveeernight pushed a commit to oveeernight/usvm that referenced this pull request Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement multidimensional array initialization
2 participants