hw-cbmc: re-enable --vcd#2008
Draft
kroening wants to merge 1 commit into
Draft
Conversation
kroening
marked this pull request as draft
July 16, 2026 12:49
The --vcd option was parsed but had no effect: show_unwind_trace() was only reachable via CBMC's old error_trace() callback mechanism, which no longer exists since hw-cbmc moved to the goto_verifiert pipeline. The option now enables trace storage in the verifier, and on VERIFICATION FAILED the stored goto trace is converted into a hardware trans_tracet by collecting the values of the timeframe-instantiated signals (identifier@t), which is then written using the existing show_trans_trace_vcd(). This is independent of the front-end's module naming. The dead do_unwind_module()/error_trace() code is removed. Fixes: #1955 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
kroening
force-pushed
the
kroening/hw-cbmc-vcd
branch
from
July 16, 2026 12:53
83194f2 to
ec082d9
Compare
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.
The
--vcdoption was parsed but had no effect, as reported in #1955:show_unwind_trace()was only reachable via CBMC's olderror_trace()callback mechanism, which no longer exists since hw-cbmc moved to thegoto_verifiertpipeline, leaving it (anddo_unwind_module()) as dead code.Changes:
--vcdnow enables trace storage in the verifier (a--vcdrun hence also prints the trace, as with--trace).trans_tracetby collecting the values of the timeframe-instantiated signals (identifier@t), and written using the existingshow_trans_trace_vcd(). This is independent of the front-end's module naming.do_unwind_module()/error_trace()code is removed.hw-cbmc/VCD1checks the VCD output for a counter with a failing assertion.As before, the VCD covers all timeframes up to the bound; the failing timeframe is not marked.
🤖 Generated with Claude Code