#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 */
double compute_total_score(double, double, double);
int /*<<< orphan*/ display_bcs_results(double);
int /*<<< orphan*/ display_intermediate_coaches_results(double);
int /*<<< orphan*/ display_intermediate_harris_results(double);
double get_coaches_poll();
double get_computer_ranking();
double get_harris_poll();
int main(void) {
  double harris_poll = 0.0, coaches_poll = 0.0, computer_ranking = 0.0,
         bcs_score = 0.0;
  harris_poll = get_harris_poll();
  coaches_poll = get_coaches_poll();
  computer_ranking = get_computer_ranking();
  display_intermediate_harris_results(harris_poll);
  display_intermediate_coaches_results(coaches_poll);
  bcs_score = compute_total_score(harris_poll, coaches_poll, computer_ranking);
  display_bcs_results(bcs_score);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    $0x0,%al
call   1070 <get_harris_poll@plt>
movsd  %xmm0,-0x10(%rbp)
mov    $0x0,%al
call   1030 <get_coaches_poll@plt>
movsd  %xmm0,-0x18(%rbp)
mov    $0x0,%al
call   1090 <get_computer_ranking@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1080 <display_intermediate_harris_results@plt>
movsd  -0x18(%rbp),%xmm0
call   1040 <display_intermediate_coaches_results@plt>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
call   1060 <compute_total_score@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1050 <display_bcs_results@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
xor    %eax,%eax
call   1070 <get_harris_poll@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1030 <get_coaches_poll@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1090 <get_computer_ranking@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1080 <display_intermediate_harris_results@plt>
movsd  (%rsp),%xmm0
call   1040 <display_intermediate_coaches_results@plt>
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
call   1060 <compute_total_score@plt>
call   1050 <display_bcs_results@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
store i32 0, i32* %1
store double 0.000000e+00, double* %2
store double 0.000000e+00, double* %3
store double 0.000000e+00, double* %4
store double 0.000000e+00, double* %5
%6 = call double (...) @get_harris_poll()
store double %6, double* %2
%7 = call double (...) @get_coaches_poll()
store double %7, double* %3
%8 = call double (...) @get_computer_ranking()
store double %8, double* %4
%9 = load double, double* %2
%10 = call i32 @display_intermediate_harris_results(double %9)
%11 = load double, double* %3
%12 = call i32 @display_intermediate_coaches_results(double %11)
%13 = load double, double* %2
%14 = load double, double* %3
%15 = load double, double* %4
%16 = call double @compute_total_score(double %13, double %14, double %15)
store double %16, double* %5
%17 = load double, double* %5
%18 = call i32 @display_bcs_results(double %17)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call double (...) @get_harris_poll()
%2 = tail call double (...) @get_coaches_poll()
%3 = tail call double (...) @get_computer_ranking()
%4 = tail call i32 @display_intermediate_harris_results(double %1)
%5 = tail call i32 @display_intermediate_coaches_results(double %2)
%6 = tail call double @compute_total_score(double %1, double %2, double %3)
%7 = tail call i32 @display_bcs_results(double %6)
ret i32 0
}