Skip to content

Emit YAML violation witnesses in format 2.4 - #3

Merged
solid-eureka merged 1 commit into
mainfrom
feat/yaml-witness-2.4
Nov 5, 2026
Merged

solid-eureka merged 1 commit into
mainfrom
feat/yaml-witness-2.4

Conversation

@nils-loose

Copy link
Copy Markdown
Contributor

What

Switch the YAML violation-witness output from format 2.3 to 2.4, as required for the Java track in SV-COMP 2027.

The only differences from 2.3:

  1. metadata.format_version → "2.4".
  2. function_return constraints are declared with format: "ext_java_expression" instead of java_expression. Their value uses the \result extension keyword, and the 2.4 violation schema no longer allows plain java_expression for function_return (allowed enum: ext_c_expression / acsl_expression / ext_java_expression / ext_python_expression). assumption waypoints would still use plain java_expression, but this writer only emits function_return + target.

Changes

  • yaml_writer.py: FORMAT_VERSION = "2.4"; Waypoint gains a constraint_format, set to ext_java_expression by the function_return factory (target waypoints unchanged).
  • Package version 1.0.0 → 1.1.0; CLI description, README and docstrings updated to 2.4.
  • Tests assert 2.4 + ext_java_expression; the GDart golden fixture is replaced with the official sv-witnesses ExDarko_false.witness-2.4.yml example (which differs from its 2.3 sibling only in format_version and the two function_return formats).

Verification

  • Full test suite — 101 passed — with witnesslint enabled, so every generated 2.4 witness is linted clean (not skipped).
  • Output validated against the authoritative upstream 2.4 example.

Follow-up

To take effect in SWAT, tag a release from this (e.g. v1.1.0) and bump the witnesscreator @ git+…@<tag> pin in SWAT's symbolic-explorer/requirements.txt.

🤖 Generated with Claude Code

SV-COMP 2027 expects Java violation witnesses in YAML format 2.4. The only
changes from 2.3 are the version string and that function_return constraints,
whose value uses the \result extension keyword, must now be declared with the
extension format: the 2.4 schema drops plain java_expression for
function_return (allowed enum: ext_c/acsl/ext_java/ext_python_expression).

- yaml_writer: FORMAT_VERSION -> "2.4"; function_return waypoints carry
  constraint_format="ext_java_expression" (target waypoints unchanged).
- Bump package version to 1.1.0; update CLI/README/docstrings.
- Tests: expect 2.4 + ext_java_expression; replace the GDart golden fixture
  with the official sv-witnesses ExDarko_false 2.4 example (differs from 2.3
  only in format_version and the two function_return formats).

Verified: full suite (101 tests) passes with witnesslint enabled, and every
generated 2.4 witness lints clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@solid-eureka
solid-eureka merged commit 807a124 into main Nov 5, 2026
5 checks passed
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.

2 participants