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 d792a33 commit bc8e2c6Copy full SHA for bc8e2c6
src/solvers/smt2/smt2_parser.cpp
@@ -1305,6 +1305,18 @@ void smt2_parsert::setup_expressions()
1305
return isnormal_exprt(op[0]);
1306
};
1307
1308
+ expressions["fp.isZero"] = [this] {
1309
+ auto op = operands();
1310
+
1311
+ if(op.size() != 1)
1312
+ throw error("fp.isZero takes one operand");
1313
1314
+ if(op[0].type().id() != ID_floatbv)
1315
+ throw error("fp.isZero takes FloatingPoint operand");
1316
1317
+ return not_exprt(typecast_exprt(op[0], bool_typet()));
1318
+ };
1319
1320
expressions["fp"] = [this] { return function_application_fp(operands()); };
1321
1322
expressions["fp.add"] = [this] {
0 commit comments