Add ESBMC output formatting and source code formatting #117
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 following merge request introduces the following features into ESBMC-AI. ESBMC Output Type and Source Code Formatting.
ESBMC Output Type
A config option
esbmc_output_type
allows you to specify what ESBMC output is shown to the LLM during fix code mode. This is done by the$esbmc_output
f-string in the conversation template. The following options are available:full
- The original behaviour, the entire output is shown, this may not be the best option.ce
- Counterexample and beyond. Will show the output starting from[Counterexample]
in the ESBMC output.vp
- Shows only the violated property area which simply states what line the error is in, and what the line is, along with what the error is.In this order, the output can be shrunk, so
vp
will always be tiny.Source Code Format
A config option
source_code_format
has been added that acceptsfull
to show the entire source code to the LLM during fix code mode, andsingle
for showing only the fault line. Single is experimental, however, has shown to get some results right in large source code samples that are complex.