#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
char const *fmtMHz_2(double const *, int, int);
const char *fmtMHz_Maxilife(const double values[], int alarm, int beep) {
  if (!values[0] && !values[1] && !values[2])
    return NULL;
  return fmtMHz_2(values, alarm, beep);
}


x86 assembly (clang, -O0):
<fmtMHz_Maxilife>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1182 <fmtMHz_Maxilife+0x72>
jp     1182 <fmtMHz_Maxilife+0x72>
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1182 <fmtMHz_Maxilife+0x72>
jp     1182 <fmtMHz_Maxilife+0x72>
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1182 <fmtMHz_Maxilife+0x72>
jp     1182 <fmtMHz_Maxilife+0x72>
movq   $0x0,-0x8(%rbp)
jmp    1195 <fmtMHz_Maxilife+0x85>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1030 <fmtMHz_2@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fmtMHz_Maxilife>:
movsd  (%rdi),%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jne    113e <fmtMHz_Maxilife+0x2e>
jp     113e <fmtMHz_Maxilife+0x2e>
movsd  0x8(%rdi),%xmm1
ucomisd %xmm0,%xmm1
jne    113e <fmtMHz_Maxilife+0x2e>
jp     113e <fmtMHz_Maxilife+0x2e>
movsd  0x10(%rdi),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    113e <fmtMHz_Maxilife+0x2e>
jnp    1143 <fmtMHz_Maxilife+0x33>
jmp    1030 <fmtMHz_2@plt>
xor    %eax,%eax
ret

LLVM IR (-O0):
define i8* @fmtMHz_Maxilife(double* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca double*
%6 = alloca i32
%7 = alloca i32
store double* %0, double** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
%8 = load double*, double** %5
%9 = getelementptr inbounds double, double* %8, i64 0
%10 = load double, double* %9
%11 = fcmp une double %10, 0.000000e+00
br i1 %11, label %23, label %12
12: ; preds = %3
%13 = load double*, double** %5
%14 = getelementptr inbounds double, double* %13, i64 1
%15 = load double, double* %14
%16 = fcmp une double %15, 0.000000e+00
br i1 %16, label %23, label %17
17: ; preds = %12
%18 = load double*, double** %5
%19 = getelementptr inbounds double, double* %18, i64 2
%20 = load double, double* %19
%21 = fcmp une double %20, 0.000000e+00
br i1 %21, label %23, label %22
22: ; preds = %17
store i8* null, i8** %4
br label %28
23: ; preds = %17, %12, %3
%24 = load double*, double** %5
%25 = load i32, i32* %6
%26 = load i32, i32* %7
%27 = call i8* @fmtMHz_2(double* %24, i32 %25, i32 %26)
store i8* %27, i8** %4
br label %28
28: ; preds = %23, %22
%29 = load i8*, i8** %4
ret i8* %29
}

LLVM IR (-O2):
define i8* @fmtMHz_Maxilife(double* %0, i32 %1, i32 %2) {
%4 = load double, double* %0
%5 = fcmp une double %4, 0.000000e+00
br i1 %5, label %14, label %6
6: ; preds = %3
%7 = getelementptr inbounds double, double* %0, i64 1
%8 = load double, double* %7
%9 = fcmp une double %8, 0.000000e+00
br i1 %9, label %14, label %10
10: ; preds = %6
%11 = getelementptr inbounds double, double* %0, i64 2
%12 = load double, double* %11
%13 = fcmp une double %12, 0.000000e+00
br i1 %13, label %14, label %16
14: ; preds = %10, %6, %3
%15 = tail call i8* @fmtMHz_2(double* %0, i32 %1, i32 %2)
br label %16
16: ; preds = %10, %14
%17 = phi i8* [ %15, %14 ], [ null, %10 ]
ret i8* %17
}