Repository navigation
Emit YAML violation witnesses in format 2.4 - #3
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
metadata.format_version→"2.4".function_returnconstraints are declared withformat: "ext_java_expression"instead ofjava_expression. Their value uses the\resultextension keyword, and the 2.4 violation schema no longer allows plainjava_expressionforfunction_return(allowed enum:ext_c_expression/acsl_expression/ext_java_expression/ext_python_expression).assumptionwaypoints would still use plainjava_expression, but this writer only emitsfunction_return+target.Changes
yaml_writer.py:FORMAT_VERSION = "2.4";Waypointgains aconstraint_format, set toext_java_expressionby thefunction_returnfactory (target waypoints unchanged).1.0.0→1.1.0; CLI description, README and docstrings updated to 2.4.ext_java_expression; the GDart golden fixture is replaced with the officialsv-witnessesExDarko_false.witness-2.4.ymlexample (which differs from its 2.3 sibling only informat_versionand the twofunction_returnformats).Verification
Follow-up
To take effect in SWAT, tag a release from this (e.g.
v1.1.0) and bump thewitnesscreator @ git+…@<tag>pin in SWAT'ssymbolic-explorer/requirements.txt.🤖 Generated with Claude Code