We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c91cf24 commit c440810Copy full SHA for c440810
src/solvers/smt2/smt2_parser.cpp
@@ -1106,6 +1106,18 @@ void smt2_parsert::setup_expressions()
1106
return with_exprt(op[0], op[1], op[2]);
1107
};
1108
1109
+ expressions["fp.abs"] = [this] {
1110
+ auto op = operands();
1111
+
1112
+ if(op.size() != 1)
1113
+ throw error("fp.abs takes one operand");
1114
1115
+ if(op[0].type().id() != ID_floatbv)
1116
+ throw error("fp.abs takes FloatingPoint operand");
1117
1118
+ return abs_exprt(op[0]);
1119
+ };
1120
1121
expressions["fp.isNaN"] = [this] {
1122
auto op = operands();
1123
0 commit comments