Skip to content

Support Verifier.nondetObject #53

Closed

Description

@nils-loose

Verifier.nondetObject(Class<T> type, ObjectFactory<T> factory) (added to sv-benchmarks 2025-10) is not supported. It is used by the 14 tasks in java/objects/ (28 verification runs: 14 expected true, 14 expected false).

Semantics: the returned object is nondeterministic; the reference implementation just calls factory.createObject(). Tasks use it e.g. as Any o = Verifier.nondetObject(Any.class, new Factories.AnyFactory()); and branch on o != null, the object's dynamic type, or its fields.

  • Analyse what the objects tasks require (null vs. non-null, dynamic type, field values)
  • Decide on an approach, e.g. symbolic null/type choice + instrumenting the factory so object contents are handled implicitly (see notes in targets/sv-comp/todo.md)
  • Witnesses: check how a nondetObject result is expressed in YAML 2.3 (function_return constraint), or whether this needs clarification upstream
  • Measure on java/objects/ (no new wrong verdicts)

Target: final resubmission (Nov 17).

Activity

  1. added this to the SV-COMP 2027 milestone on Oct 15, 2026
  2. nils-loose commented on Oct 20, 2026

    @nils-loose
    ContributorAuthor

    Done in #66, merged into dev through #92.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions