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

floating points are not printed as floating points #778

Closed
MikolasJanota opened this issue Jul 16, 2024 · 1 comment
Closed

floating points are not printed as floating points #778

MikolasJanota opened this issue Jul 16, 2024 · 1 comment
Assignees

Comments

@MikolasJanota
Copy link

From the following code, I'm getting (* 1.0 (/ 1 4)). This makes it difficult for external tools. For instance, vampire refuses to parse ints in place of reals.

  from pysmt.shortcuts import Div, Real
  print(Div(Real(1), Real(4)).to_smtlib(daggify=False))
mikand added a commit that referenced this issue Jul 17, 2024
@mikand
Copy link
Contributor

mikand commented Jul 17, 2024

Hi @MikolasJanota,

thanks for the report. We never noticed this because most SMT parsers work without issues. Nonetheless, I prepared a simple fix in #779. Can you try if this works for you?

@mikand mikand self-assigned this Jul 17, 2024
mikand added a commit that referenced this issue Jul 18, 2024
@mikand mikand closed this as completed Jul 26, 2024
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

No branches or pull requests

2 participants