Skip to content

jbmc --trace prints millions of unknown characters for nondeterministic strings #9165

Description

@lemmy

JBMC 6.11 expands a nondeterministic string’s entire backing character array when printing a counterexample trace.

Reproducer:

public final class JbmcTraceReproducer {
    public static void verify() {
        final String name = JbmcTraceReproducer.class.getName();
        assert name.length() < 4_194_304;
    }
}
javac JbmcTraceReproducer.java

# Prints 4,194,304 "'?'," entries.
jbmc 'JbmcTraceReproducer.verify:()V' --classpath . --property 'java::JbmcTraceReproducer.verify:()V.assertion.1' --trace

This was found while using JBMC to verify TLC’s IntervalValue in tlaplus/tlaplus#1441. JBMC found the expected overflow counterexample, but rendering its trace exposed this issue. Environment: JBMC/CBMC 6.11.0, macOS arm64.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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