Skip to content

Commit d10783c

Browse files
Format FloatingPoint.qll
1 parent ded47aa commit d10783c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cpp/common/src/codingstandards/cpp/FloatingPoint.qll

+4-4
Original file line numberDiff line numberDiff line change
@@ -348,17 +348,17 @@ signature float lowerBoundPredicate(Expr e);
348348

349349
signature predicate exprMayEqualZeroPredicate(Expr e);
350350

351-
predicate exprMayEqualZeroNaive(Expr e) {
352-
e.getValue().toFloat() = 0
353-
}
351+
predicate exprMayEqualZeroNaive(Expr e) { e.getValue().toFloat() = 0 }
354352

355353
/**
356354
* Get the math function name variants for the given name, e.g., "acos" has variants "acos",
357355
* "acosf", and "acosl".
358356
*/
359357
Function getMathVariants(string name) { result.hasGlobalOrStdName([name, name + "f", name + "l"]) }
360358

361-
module DomainError<upperBoundPredicate/1 ub, lowerBoundPredicate/1 lb, exprMayEqualZeroPredicate/1 mayEqualZero> {
359+
module DomainError<
360+
upperBoundPredicate/1 ub, lowerBoundPredicate/1 lb, exprMayEqualZeroPredicate/1 mayEqualZero>
361+
{
362362
predicate hasDomainError(FunctionCall fc, string description) {
363363
exists(Function functionWithDomainError | fc.getTarget() = functionWithDomainError |
364364
functionWithDomainError = [getMathVariants(["acos", "asin", "atanh"])] and

0 commit comments

Comments
 (0)