Skip to content

Conversation

@blishko
Copy link
Collaborator

@blishko blishko commented Sep 15, 2025

It turns out no one was actually using this information anyway and there is no reason to keep the SMT-LIB script around.

Checklist

  • tested locally
  • added automated tests
  • updated the docs
  • updated the changelog

Copy link
Collaborator

@msooseth msooseth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, wasn't that return value used somewhere? How do we know if something is Partial? I think we used to return some Partial when the SMT couldn't be emitted?

let smt2 = assertProps conf psSimp
if isLeft smt2 then
let err = getError smt2 in pure (Error err, Left err)
let err = getError smt2 in pure $ Error err
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be cleaner, also maybe can be on a single line with the if?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

else do
res <- liftIO $ checkSat sg (Just props) smt2
pure (res, Right (getNonError smt2))
liftIO $ checkSat sg (Just props) smt2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe on a single line with the else? Also we can then remove the do

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

It turns out no one was actually using this information anyway and there
is no reason to keep the SMT-LIB script around.
Copy link
Collaborator

@msooseth msooseth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@msooseth msooseth merged commit 9149103 into main Sep 15, 2025
7 checks passed
@msooseth msooseth deleted the smt-refactor-part3 branch September 15, 2025 13:10
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.

3 participants