#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*/ func1(int *, int *, int *, int *);
int /*<<< orphan*/ func2(int, int, int, int *, int *, int *);
int /*<<< orphan*/ func3(int, int, int, double *);
int /*<<< orphan*/ func4(int, int, int, double *, double *);
int /*<<< orphan*/ func5(double, double, int *, int *);
int /*<<< orphan*/ func6(int, int, int, int, int, int);
int /*<<< orphan*/ printf(char *);
main() {
  int a, b, c, d;
  int e, f, g;
  double D;
  double x1, x2;
  int x_min, x_max;
  func1(&a, &b, &c, &d);
  func2(a, b, c, &e, &f, &g);
  func3(e, f, g, &D);
  if (D > 0) {
    func4(e, f, g, &x1, &x2);
    func5(x1, x2, &x_min, &x_max);
    func6(a, b, c, d, x_min, x_max);
  } else {
    printf("No extreme value");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x8(%rbp),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
lea    -0x14(%rbp),%rcx
call   1050 <func1@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    -0x18(%rbp),%rcx
lea    -0x1c(%rbp),%r8
lea    -0x20(%rbp),%r9
call   1080 <func2@plt>
mov    -0x18(%rbp),%edi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
lea    -0x28(%rbp),%rcx
call   1030 <func3@plt>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    121d <main+0xad>
mov    -0x18(%rbp),%edi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
lea    -0x30(%rbp),%rcx
lea    -0x38(%rbp),%r8
call   1070 <func4@plt>
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
lea    -0x3c(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <func5@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x3c(%rbp),%r8d
mov    -0x40(%rbp),%r9d
call   1090 <func6@plt>
jmp    1229 <main+0xb9>
lea    0xddc(%rip),%rdi
call   1060 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
lea    0x20(%rsp),%rdi
lea    0x1c(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x2c(%rsp),%rcx
call   1050 <func1@plt>
mov    0x20(%rsp),%edi
mov    0x1c(%rsp),%esi
mov    0x18(%rsp),%edx
lea    0x14(%rsp),%rcx
lea    0x10(%rsp),%r8
lea    0xc(%rsp),%r9
call   1080 <func2@plt>
mov    0x14(%rsp),%edi
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%edx
lea    0x40(%rsp),%rcx
call   1030 <func3@plt>
movsd  0x40(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    122a <main+0xba>
mov    0x14(%rsp),%edi
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%edx
lea    0x38(%rsp),%rcx
lea    0x30(%rsp),%r8
call   1070 <func4@plt>
movsd  0x38(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
lea    0x28(%rsp),%rdi
lea    0x24(%rsp),%rsi
call   1040 <func5@plt>
mov    0x20(%rsp),%edi
mov    0x1c(%rsp),%esi
mov    0x18(%rsp),%edx
mov    0x2c(%rsp),%ecx
mov    0x28(%rsp),%r8d
mov    0x24(%rsp),%r9d
call   1090 <func6@plt>
jmp    1236 <main+0xc6>
lea    0xdcf(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x48,%rsp
ret

LLVM IR (-O0):
@.str = [17 x i8] c"No extreme value\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %1
%14 = call i32 @func1(i32* %2, i32* %3, i32* %4, i32* %5)
%15 = load i32, i32* %2
%16 = load i32, i32* %3
%17 = load i32, i32* %4
%18 = call i32 @func2(i32 %15, i32 %16, i32 %17, i32* %6, i32* %7, i32* %8)
%19 = load i32, i32* %6
%20 = load i32, i32* %7
%21 = load i32, i32* %8
%22 = call i32 @func3(i32 %19, i32 %20, i32 %21, double* %9)
%23 = load double, double* %9
%24 = fcmp ogt double %23, 0.000000e+00
br i1 %24, label %25, label %40
25: ; preds = %0
%26 = load i32, i32* %6
%27 = load i32, i32* %7
%28 = load i32, i32* %8
%29 = call i32 @func4(i32 %26, i32 %27, i32 %28, double* %10, double* %11)
%30 = load double, double* %10
%31 = load double, double* %11
%32 = call i32 @func5(double %30, double %31, i32* %12, i32* %13)
%33 = load i32, i32* %2
%34 = load i32, i32* %3
%35 = load i32, i32* %4
%36 = load i32, i32* %5
%37 = load i32, i32* %12
%38 = load i32, i32* %13
%39 = call i32 @func6(i32 %33, i32 %34, i32 %35, i32 %36, i32 %37, i32 %38)
br label %42
40: ; preds = %0
%41 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
br label %42
42: ; preds = %40, %25
%43 = load i32, i32* %1
ret i32 %43
}

LLVM IR (-O2):
@.str = [17 x i8] c"No extreme value\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca i32
%12 = alloca i32
%13 = bitcast i32* %1 to i8*
%14 = bitcast i32* %2 to i8*
%15 = bitcast i32* %3 to i8*
%16 = bitcast i32* %4 to i8*
%17 = bitcast i32* %5 to i8*
%18 = bitcast i32* %6 to i8*
%19 = bitcast i32* %7 to i8*
%20 = bitcast double* %8 to i8*
%21 = bitcast double* %9 to i8*
%22 = bitcast double* %10 to i8*
%23 = bitcast i32* %11 to i8*
%24 = bitcast i32* %12 to i8*
%25 = call i32 @func1(i32* %1, i32* %2, i32* %3, i32* %4)
%26 = load i32, i32* %1
%27 = load i32, i32* %2
%28 = load i32, i32* %3
%29 = call i32 @func2(i32 %26, i32 %27, i32 %28, i32* %5, i32* %6, i32* %7)
%30 = load i32, i32* %5
%31 = load i32, i32* %6
%32 = load i32, i32* %7
%33 = call i32 @func3(i32 %30, i32 %31, i32 %32, double* %8)
%34 = load double, double* %8
%35 = fcmp ogt double %34, 0.000000e+00
br i1 %35, label %36, label %51
36: ; preds = %0
%37 = load i32, i32* %5
%38 = load i32, i32* %6
%39 = load i32, i32* %7
%40 = call i32 @func4(i32 %37, i32 %38, i32 %39, double* %9, double* %10)
%41 = load double, double* %9
%42 = load double, double* %10
%43 = call i32 @func5(double %41, double %42, i32* %11, i32* %12)
%44 = load i32, i32* %1
%45 = load i32, i32* %2
%46 = load i32, i32* %3
%47 = load i32, i32* %4
%48 = load i32, i32* %11
%49 = load i32, i32* %12
%50 = call i32 @func6(i32 %44, i32 %45, i32 %46, i32 %47, i32 %48, i32 %49)
br label %53
51: ; preds = %0
%52 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
br label %53
53: ; preds = %51, %36
ret i32 0
}