Skip to content

Support for setCharAt,reverse and resolving ClassCastException - #159

Open
shawshank-202 wants to merge 4 commits into
SymbolicPathFinder:sv-compfrom
shawshank-202:stringsupports02
Open

shawshank-202 wants to merge 4 commits into
SymbolicPathFinder:sv-compfrom
shawshank-202:stringsupports02

Conversation

@shawshank-202

Copy link
Copy Markdown

#108
Issue 1: charAt was failing / throwing ClassCastException
Fix: normalize operand to handle both types properly
For jbmc-regression/StringBuilderChars03.yml

Issue 2: Symbolic method not handled:setCharAt
Fix: implemented symbolic update: split string → prefix + char + suffix
added bounds constraints (idx < length)
For jbmc-regression/StringBuilderChars05.yml

Issue 3: Symbolic method not handled:reverse
Fixes: add symbolic support for reverse
For jbmc-regression/StringBuilderChars06.yml

Witness validated for all three and meets sv-benchmarks requirements.
Each commit can be used to differentiate and pinpoint fixes for better understanding

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.

1 participant