Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
84dd0dc5
Commit
84dd0dc5
authored
May 05, 2014
by
Andrei Paskevich
Browse files
fix the pretty-printing of custom reals in TPTP
parent
9ed1be10
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/tptp/tptp_printer.ml
View file @
84dd0dc5
...
...
@@ -96,7 +96,9 @@ let number_format = {
Number
.
dec_real_support
=
Number
.
Number_default
;
Number
.
hex_real_support
=
Number
.
Number_unsupported
;
Number
.
frac_real_support
=
Number
.
Number_custom
(
Number
.
PrintFracReal
(
"%s"
,
"(%s * %s)"
,
"(%s / %s)"
));
(
Number
.
PrintFracReal
(
"$to_real(%s)"
,
"$product($to_real(%s),$to_real(%s))"
,
"$quotient($to_real(%s),$to_real(%s))"
));
Number
.
def_real_support
=
Number
.
Number_unsupported
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment