summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-04-06 11:23:44 -0500
committerGitHub <noreply@github.com>2021-04-06 13:23:44 -0300
commite92b4504d5930234c852bf0fba8f5663ad4809e7 (patch)
tree128c1859cedbcac407b2f7da7daeb0ef20001c1d /src
parentda03399e50e33acd4d4a6534205a67d03f44f4c1 (diff)
Fix tptp parser for negative rational (#6297)
Diffstat (limited to 'src')
-rw-r--r--src/parser/tptp/Tptp.g1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser/tptp/Tptp.g b/src/parser/tptp/Tptp.g
index f6b845212..0f21cdb20 100644
--- a/src/parser/tptp/Tptp.g
+++ b/src/parser/tptp/Tptp.g
@@ -1764,6 +1764,7 @@ NUMBER
}
| SIGN[pos]? num=DECIMAL SLASH den=DECIMAL
{ std::stringstream ss;
+ ss << ( pos ? "" : "-" );
ss << AntlrInput::tokenText($num) << "/" << AntlrInput::tokenText($den);
PARSER_STATE->d_tmp_expr = SOLVER->mkReal(ss.str());
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback