1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/* * Rule: FLP32-C * Source: wiki * Status: PASS - Compliant solution */ #include <math.h> void func(double x) { double result; if (isless(x, 0.0)) { /* Handle domain error */ } result = sqrt(x); }