Skip to content

Fix SMT encoding of string literals#640

Merged
adpaco merged 2 commits into
cedar-policy:mainfrom
zhengyao-lin:encoder-str-bug
Jun 18, 2025
Merged

Fix SMT encoding of string literals#640
adpaco merged 2 commits into
cedar-policy:mainfrom
zhengyao-lin:encoder-str-bug

Conversation

@zhengyao-lin

@zhengyao-lin zhengyao-lin commented Jun 16, 2025

Copy link
Copy Markdown
Contributor

Issue #636

Description of changes:

Escape character " correctly in encodeString (which is the only type of escape sequence per SMT-LIB standard).

The added test would get stuck without this fix (not entirely sure why, but presumably due to CVC5 waiting more string contents since an invalid string literal """ is fed into it).

Comment thread cedar-lean/Cedar/SymCC/Encoder.lean
Signed-off-by: Zhengyao Lin <zyal@amazon.com>
Signed-off-by: Zhengyao Lin <zyal@amazon.com>
@adpaco adpaco merged commit 84708ca into cedar-policy:main Jun 18, 2025
8 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.

5 participants