#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 */
int /*<<< orphan*/ ncc_full_optimization();
int /*<<< orphan*/ ncc_nic_optimization();
int /*<<< orphan*/ ncc_three_parm_optimization();
int noncoplanar_calibration_with_full_optimization() {
  if (!ncc_three_parm_optimization())
    return 0;
  if (!ncc_nic_optimization())
    return 0;
  if (!ncc_full_optimization())
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<noncoplanar_calibration_with_full_optimization>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <ncc_three_parm_optimization@plt>
cmp    $0x0,%eax
jne    1154 <noncoplanar_calibration_with_full_optimization+0x24>
movl   $0x0,-0x4(%rbp)
jmp    1193 <noncoplanar_calibration_with_full_optimization+0x63>
mov    $0x0,%al
call   1040 <ncc_nic_optimization@plt>
cmp    $0x0,%eax
jne    1170 <noncoplanar_calibration_with_full_optimization+0x40>
movl   $0x0,-0x4(%rbp)
jmp    1193 <noncoplanar_calibration_with_full_optimization+0x63>
mov    $0x0,%al
call   1050 <ncc_full_optimization@plt>
cmp    $0x0,%eax
jne    118c <noncoplanar_calibration_with_full_optimization+0x5c>
movl   $0x0,-0x4(%rbp)
jmp    1193 <noncoplanar_calibration_with_full_optimization+0x63>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<noncoplanar_calibration_with_full_optimization>:
push   %rbx
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <ncc_three_parm_optimization@plt>
test   %eax,%eax
je     1159 <noncoplanar_calibration_with_full_optimization+0x29>
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <ncc_nic_optimization@plt>
test   %eax,%eax
je     1159 <noncoplanar_calibration_with_full_optimization+0x29>
xor    %eax,%eax
call   1050 <ncc_full_optimization@plt>
xor    %ebx,%ebx
test   %eax,%eax
setne  %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @noncoplanar_calibration_with_full_optimization() {
%1 = alloca i32
%2 = call i32 (...) @ncc_three_parm_optimization()
%3 = icmp ne i32 %2, 0
br i1 %3, label %5, label %4
4: ; preds = %0
store i32 0, i32* %1
br label %14
5: ; preds = %0
%6 = call i32 (...) @ncc_nic_optimization()
%7 = icmp ne i32 %6, 0
br i1 %7, label %9, label %8
8: ; preds = %5
store i32 0, i32* %1
br label %14
9: ; preds = %5
%10 = call i32 (...) @ncc_full_optimization()
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %9
store i32 0, i32* %1
br label %14
13: ; preds = %9
store i32 1, i32* %1
br label %14
14: ; preds = %13, %12, %8, %4
%15 = load i32, i32* %1
ret i32 %15
}

LLVM IR (-O2):
define i32 @noncoplanar_calibration_with_full_optimization() {
%1 = tail call i32 (...) @ncc_three_parm_optimization()
%2 = icmp eq i32 %1, 0
br i1 %2, label %10, label %3
3: ; preds = %0
%4 = tail call i32 (...) @ncc_nic_optimization()
%5 = icmp eq i32 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %3
%7 = tail call i32 (...) @ncc_full_optimization()
%8 = icmp ne i32 %7, 0
%9 = zext i1 %8 to i32
br label %10
10: ; preds = %6, %3, %0
%11 = phi i32 [ 0, %0 ], [ 0, %3 ], [ %9, %6 ]
ret i32 %11
}