Return S-expression representation of assertions.
(self)
| 620 | return {} |
| 621 | |
| 622 | def sexpr(self) -> str: |
| 623 | """Return S-expression representation of assertions.""" |
| 624 | if not self._assertions: |
| 625 | return "()" |
| 626 | parts = [_ast_repr(a._ast) for a in self._assertions] |
| 627 | return "(" + " ".join(parts) + ")" |
| 628 | |
| 629 | def to_smt2(self) -> str: |
| 630 | """Return SMT-LIB2 representation (approximate).""" |