MCPcopy Create free account
hub / github.com/csmith-project/csmith / BinaryOpWorksForFloat

Method BinaryOpWorksForFloat

src/FunctionInvocation.cpp:634–652  ·  view source on GitHub ↗

* Return true if `op' is suitable as a floating point binary operator */

Source from the content-addressed store, hash-verified

632 * Return true if `op' is suitable as a floating point binary operator
633 */
634bool
635FunctionInvocation::BinaryOpWorksForFloat(eBinaryOps op)
636{
637 switch (op) {
638 case eAdd:
639 case eSub:
640 case eMul:
641 case eDiv:
642 case eCmpGt:
643 case eCmpLt:
644 case eCmpGe:
645 case eCmpLe:
646 case eCmpEq:
647 case eCmpNe: // fall-through
648 return true;
649 default:
650 return false;
651 }
652}
653
654bool
655FunctionInvocation::UnaryOpWorksForFloat(eUnaryOps op)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected