mirror of
https://github.com/GaloisInc/what4.git
synced 2024-12-01 20:23:10 +03:00
parent
4b5b463bf1
commit
2ee2a13103
@ -1838,7 +1838,7 @@ ppApp' a0 = do
|
||||
where ppConstant 0 = []
|
||||
ppConstant c = [ stringPrettyArg (ppRat c) ]
|
||||
ppEntry 1 e = [ exprPrettyArg e ]
|
||||
ppEntry sm e = [ PrettyFunc "realAdd" [stringPrettyArg (ppRat sm), exprPrettyArg e ] ]
|
||||
ppEntry sm e = [ PrettyFunc "realMul" [stringPrettyArg (ppRat sm), exprPrettyArg e ] ]
|
||||
ppRat r | d == 1 = show n
|
||||
| otherwise = "(" ++ show n ++ "/" ++ show d ++ ")"
|
||||
where n = numerator r
|
||||
|
Loading…
Reference in New Issue
Block a user