Skip to content

Mysterious Java symbolic execution #209

Closed
@vladrich

Description

@vladrich

In the following (distilled) program, xx is assigned only once. In the trace that CBMC generates, xx is assigned multiple times with different values. I suspect this causes problems in the full benchmark.

public final class MySecureRandom {

public static void main(String[] argv) {
    int index = 0;

    while (index < 20) {

        for (int i = 0; i < 20; i++) {
            index++;
        }
    }

    int xx = index;
    assert(xx==1);

}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions