mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 03:15:50 +00:00
Fix bug reported at http://stackoverflow.com/questions/13923316/unprintable-solver-model
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
8c211dd4fc
commit
f8014f54c1
3 changed files with 16 additions and 3 deletions
|
@ -791,7 +791,11 @@ class Formatter:
|
|||
r.append(self.pp_ellipses())
|
||||
break
|
||||
if sz <= self.max_args:
|
||||
else_pp = self.pp_expr(f.else_value(), 0, [])
|
||||
else_val = f.else_value()
|
||||
if else_val == None:
|
||||
else_pp = to_format('#unspecified')
|
||||
else:
|
||||
else_pp = self.pp_expr(else_val, 0, [])
|
||||
r.append(group(seq((to_format('else'), else_pp), self.pp_arrow())))
|
||||
return seq3(r, '[', ']')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue