Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CVC5 model comments #28

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix CVC5 model comments
Previously they returned `.malformed` due to the whitespace check
on L194-195.
  • Loading branch information
dranov committed Jul 10, 2024
commit 3d678787c58ca87a50b1c80931dacd5f8be41d75
1 change: 1 addition & 0 deletions Auto/Parser/SMTSexp.lean
Original file line number Diff line number Diff line change
@@ -186,6 +186,7 @@ def parseSexp (s : String) (p : String.Pos) (partialResult : PartialResult) : Pa
return .complete (.app final) p
else
pstk := pstk.modify (pstk.size - 1) (fun arr => arr.push (.app final))
| .comment s => pstk := pstk.modify (pstk.size - 1) (fun arr => arr.push (.atom (.comment s)))
| l =>
-- Ordinary lexicons must be separated by whitespace or parentheses
match s.get? p with