#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*/ printf(char *, int);
void report_metrics(int total_customers,
                    double total_time_customers_waited_for_all_tellers,
                    int tellers_total_work_time,
                    double total_time_waited_by_all_tellers_for_customer,
                    double max_time_waited_by_teller1_customer,
                    double max_time_waited_by_teller2_customer,
                    double max_time_waited_by_teller3_customer,
                    double max_time_waited_by_teller1_for_customer,
                    double max_time_waited_by_teller2_for_customer,
                    double max_time_waited_by_teller3_for_customer,
                    int teller1_longest_transaction,
                    int teller2_longest_transaction,
                    int teller3_longest_transaction, int max_queue_depth) {
  int printFlag = 0;
  printf("1.) Total number of customers serviced: %d customers\n",
         total_customers);
  printf("2.) Average time customer spends in queue: %lf seconds\n",
         total_time_customers_waited_for_all_tellers / total_customers);
  printf("3.) Average time customer spends with teller: %d seconds\n",
         (tellers_total_work_time / total_customers));
  printf("4.) Average time teller waits for customer: %lf seconds\n",
         total_time_waited_by_all_tellers_for_customer / total_customers);
  if (max_time_waited_by_teller1_customer >=
          max_time_waited_by_teller2_customer &&
      max_time_waited_by_teller1_customer >=
          max_time_waited_by_teller3_customer &&
      printFlag == 0) {
    printFlag = 1;
    printf("5.) Maximum customer wait time in queue: %f seconds\n",
           max_time_waited_by_teller1_customer);
  }
  if (max_time_waited_by_teller2_customer >=
          max_time_waited_by_teller1_customer &&
      max_time_waited_by_teller2_customer >=
          max_time_waited_by_teller3_customer &&
      printFlag == 0) {
    printFlag = 1;
    printf("5.) Maximum customer wait time in queue: %f seconds\n",
           max_time_waited_by_teller2_customer);
  }
  if (max_time_waited_by_teller3_customer >=
          max_time_waited_by_teller1_customer &&
      max_time_waited_by_teller3_customer >=
          max_time_waited_by_teller2_customer &&
      printFlag == 0) {
    printf("5.) Maximum customer wait time in queue: %f seconds\n",
           max_time_waited_by_teller3_customer);
  }
  printFlag = 0;
  if (max_time_waited_by_teller1_for_customer >=
          max_time_waited_by_teller2_for_customer &&
      max_time_waited_by_teller1_for_customer >=
          max_time_waited_by_teller3_for_customer &&
      printFlag == 0) {
    printFlag = 1;
    printf(
        "6.) Maximum wait time for tellers waiting for customers: %f seconds\n",
        max_time_waited_by_teller1_for_customer);
  }
  if (max_time_waited_by_teller2_for_customer >=
          max_time_waited_by_teller1_for_customer &&
      max_time_waited_by_teller2_for_customer >=
          max_time_waited_by_teller3_for_customer &&
      printFlag == 0) {
    printFlag = 1;
    printf(
        "6.) Maximum wait time for tellers waiting for customers: %f seconds\n",
        max_time_waited_by_teller2_for_customer);
  }
  if (max_time_waited_by_teller3_for_customer >=
          max_time_waited_by_teller1_for_customer &&
      max_time_waited_by_teller3_for_customer >=
          max_time_waited_by_teller2_for_customer &&
      printFlag == 0) {
    printf(
        "6.) Maximum wait time for tellers waiting for customers: %f seconds\n",
        max_time_waited_by_teller3_for_customer);
  }
  printFlag = 0;
  if (teller1_longest_transaction >= teller2_longest_transaction &&
      teller1_longest_transaction >= teller3_longest_transaction &&
      printFlag == 0) {
    printFlag = 1;
    printf("7.) Maximum transaction time for the tellers: %d seconds\n",
           teller1_longest_transaction);
  }
  if (teller2_longest_transaction >= teller1_longest_transaction &&
      teller2_longest_transaction >= teller3_longest_transaction &&
      printFlag == 0) {
    printFlag = 1;
    printf("7.) Maximum transaction time for the tellers: %d seconds\n",
           teller2_longest_transaction);
  }
  if (teller3_longest_transaction >= teller1_longest_transaction &&
      teller3_longest_transaction >= teller2_longest_transaction &&
      printFlag == 0) {
    printf("7.) Maximum transaction time for the tellers: %d seconds\n",
           teller3_longest_transaction);
  }
  printf("8.) Maximum depth of customer queue: %d customers\n\n",
         max_queue_depth);
}


x86 assembly (clang, -O0):
<report_metrics>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movsd  %xmm1,-0x20(%rbp)
movsd  %xmm2,-0x28(%rbp)
movsd  %xmm3,-0x30(%rbp)
movsd  %xmm4,-0x38(%rbp)
movsd  %xmm5,-0x40(%rbp)
movsd  %xmm6,-0x48(%rbp)
movsd  %xmm7,-0x50(%rbp)
mov    %edx,-0x54(%rbp)
mov    %ecx,-0x58(%rbp)
mov    %r8d,-0x5c(%rbp)
mov    %r9d,-0x60(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm0
cvtsi2sdl -0x4(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
cltd
idivl  -0x4(%rbp)
mov    %eax,%esi
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x4(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
lea    0xef2(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x28(%rbp),%xmm0
ucomisd -0x30(%rbp),%xmm0
jb     11fd <report_metrics+0xed>
movsd  -0x28(%rbp),%xmm0
ucomisd -0x38(%rbp),%xmm0
jb     11fd <report_metrics+0xed>
cmpl   $0x0,-0x64(%rbp)
jne    11fd <report_metrics+0xed>
movl   $0x1,-0x64(%rbp)
cvttsd2si -0x28(%rbp),%esi
lea    0xee9(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x30(%rbp),%xmm0
ucomisd -0x28(%rbp),%xmm0
jb     123f <report_metrics+0x12f>
movsd  -0x30(%rbp),%xmm0
ucomisd -0x38(%rbp),%xmm0
jb     123f <report_metrics+0x12f>
cmpl   $0x0,-0x64(%rbp)
jne    123f <report_metrics+0x12f>
movl   $0x1,-0x64(%rbp)
cvttsd2si -0x30(%rbp),%esi
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x38(%rbp),%xmm0
ucomisd -0x28(%rbp),%xmm0
jb     127a <report_metrics+0x16a>
movsd  -0x38(%rbp),%xmm0
ucomisd -0x30(%rbp),%xmm0
jb     127a <report_metrics+0x16a>
cmpl   $0x0,-0x64(%rbp)
jne    127a <report_metrics+0x16a>
cvttsd2si -0x38(%rbp),%esi
lea    0xe6c(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x64(%rbp)
movsd  -0x40(%rbp),%xmm0
ucomisd -0x48(%rbp),%xmm0
jb     12c3 <report_metrics+0x1b3>
movsd  -0x40(%rbp),%xmm0
ucomisd -0x50(%rbp),%xmm0
jb     12c3 <report_metrics+0x1b3>
cmpl   $0x0,-0x64(%rbp)
jne    12c3 <report_metrics+0x1b3>
movl   $0x1,-0x64(%rbp)
cvttsd2si -0x40(%rbp),%esi
lea    0xe58(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x48(%rbp),%xmm0
ucomisd -0x40(%rbp),%xmm0
jb     1305 <report_metrics+0x1f5>
movsd  -0x48(%rbp),%xmm0
ucomisd -0x50(%rbp),%xmm0
jb     1305 <report_metrics+0x1f5>
cmpl   $0x0,-0x64(%rbp)
jne    1305 <report_metrics+0x1f5>
movl   $0x1,-0x64(%rbp)
cvttsd2si -0x48(%rbp),%esi
lea    0xe16(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x50(%rbp),%xmm0
ucomisd -0x40(%rbp),%xmm0
jb     1340 <report_metrics+0x230>
movsd  -0x50(%rbp),%xmm0
ucomisd -0x48(%rbp),%xmm0
jb     1340 <report_metrics+0x230>
cmpl   $0x0,-0x64(%rbp)
jne    1340 <report_metrics+0x230>
cvttsd2si -0x50(%rbp),%esi
lea    0xddb(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x64(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x58(%rbp),%eax
jl     137f <report_metrics+0x26f>
mov    -0x54(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jl     137f <report_metrics+0x26f>
cmpl   $0x0,-0x64(%rbp)
jne    137f <report_metrics+0x26f>
movl   $0x1,-0x64(%rbp)
mov    -0x54(%rbp),%esi
lea    0xde1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
cmp    -0x54(%rbp),%eax
jl     13b7 <report_metrics+0x2a7>
mov    -0x58(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jl     13b7 <report_metrics+0x2a7>
cmpl   $0x0,-0x64(%rbp)
jne    13b7 <report_metrics+0x2a7>
movl   $0x1,-0x64(%rbp)
mov    -0x58(%rbp),%esi
lea    0xda9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x5c(%rbp),%eax
cmp    -0x54(%rbp),%eax
jl     13e8 <report_metrics+0x2d8>
mov    -0x5c(%rbp),%eax
cmp    -0x58(%rbp),%eax
jl     13e8 <report_metrics+0x2d8>
cmpl   $0x0,-0x64(%rbp)
jne    13e8 <report_metrics+0x2d8>
mov    -0x5c(%rbp),%esi
lea    0xd78(%rip),%rdi
call   1030 <printf@plt>
mov    -0x60(%rbp),%esi
lea    0xda3(%rip),%rdi
call   1030 <printf@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<report_metrics>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r9d,%r14d
mov    %r8d,%r12d
mov    %ecx,%r15d
mov    %edx,%r13d
movsd  %xmm7,0x40(%rsp)
movsd  %xmm6,0x38(%rsp)
movsd  %xmm5,0x30(%rsp)
movsd  %xmm4,0x28(%rsp)
movsd  %xmm3,0x20(%rsp)
movsd  %xmm2,0x18(%rsp)
movsd  %xmm1,0x10(%rsp)
mov    %esi,%ebx
movsd  %xmm0,(%rsp)
mov    %edi,%ebp
lea    0xe9c(%rip),%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
cvttsd2si %xmm1,%esi
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
mov    %ebx,%eax
cltd
idiv   %ebp
lea    0xed1(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
movsd  0x10(%rsp),%xmm0
divsd  0x8(%rsp),%xmm0
cvttsd2si %xmm0,%esi
lea    0xeed(%rip),%rdi
call   1030 <printf@plt>
movsd  0x18(%rsp),%xmm2
movsd  0x20(%rsp),%xmm1
movsd  0x28(%rsp),%xmm0
ucomisd %xmm1,%xmm2
jb     11e4 <report_metrics+0xd4>
ucomisd %xmm0,%xmm2
jb     11e4 <report_metrics+0xd4>
movapd %xmm2,%xmm0
jmp    1202 <report_metrics+0xf2>
ucomisd %xmm2,%xmm1
jb     11f6 <report_metrics+0xe6>
ucomisd %xmm0,%xmm1
jb     11f6 <report_metrics+0xe6>
movapd %xmm1,%xmm0
jmp    1202 <report_metrics+0xf2>
ucomisd %xmm2,%xmm0
jb     1212 <report_metrics+0x102>
ucomisd %xmm1,%xmm0
jb     1212 <report_metrics+0x102>
cvttsd2si %xmm0,%esi
lea    0xed4(%rip),%rdi
call   1030 <printf@plt>
movsd  0x38(%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
ucomisd %xmm1,%xmm2
movsd  0x40(%rsp),%xmm0
jb     1236 <report_metrics+0x126>
ucomisd %xmm0,%xmm2
jb     1236 <report_metrics+0x126>
movapd %xmm2,%xmm0
jmp    1254 <report_metrics+0x144>
ucomisd %xmm2,%xmm1
jb     1248 <report_metrics+0x138>
ucomisd %xmm0,%xmm1
jb     1248 <report_metrics+0x138>
movapd %xmm1,%xmm0
jmp    1254 <report_metrics+0x144>
ucomisd %xmm2,%xmm0
jb     1264 <report_metrics+0x154>
ucomisd %xmm1,%xmm0
jb     1264 <report_metrics+0x154>
cvttsd2si %xmm0,%esi
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
cmp    %r15d,%r13d
jl     1273 <report_metrics+0x163>
cmp    %r12d,%r13d
jl     1273 <report_metrics+0x163>
mov    %r13d,%r12d
jmp    128c <report_metrics+0x17c>
cmp    %r13d,%r15d
jl     1282 <report_metrics+0x172>
cmp    %r12d,%r15d
jl     1282 <report_metrics+0x172>
mov    %r15d,%r12d
jmp    128c <report_metrics+0x17c>
cmp    %r13d,%r12d
jl     129b <report_metrics+0x18b>
cmp    %r15d,%r12d
jl     129b <report_metrics+0x18b>
lea    0xec8(%rip),%rdi
mov    %r12d,%esi
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    %r14d,%esi
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [54 x i8] c"1.) Total number of customers serviced: %d customers\0A\00"
@.str.1 = [56 x i8] c"2.) Average time customer spends in queue: %lf seconds\0A\00"
@.str.2 = [58 x i8] c"3.) Average time customer spends with teller: %d seconds\0A\00"
@.str.3 = [57 x i8] c"4.) Average time teller waits for customer: %lf seconds\0A\00"
@.str.4 = [53 x i8] c"5.) Maximum customer wait time in queue: %f seconds\0A\00"
@.str.5 = [69 x i8] c"6.) Maximum wait time for tellers waiting for customers: %f seconds\0A\00"
@.str.6 = [58 x i8] c"7.) Maximum transaction time for the tellers: %d seconds\0A\00"
@.str.7 = [52 x i8] c"8.) Maximum depth of customer queue: %d customers\0A\0A\00"
define void @report_metrics(i32 %0, double %1, i32 %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, i32 %10, i32 %11, i32 %12, i32 %13) {
%15 = alloca i32
%16 = alloca double
%17 = alloca i32
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
store i32 %0, i32* %15
store double %1, double* %16
store i32 %2, i32* %17
store double %3, double* %18
store double %4, double* %19
store double %5, double* %20
store double %6, double* %21
store double %7, double* %22
store double %8, double* %23
store double %9, double* %24
store i32 %10, i32* %25
store i32 %11, i32* %26
store i32 %12, i32* %27
store i32 %13, i32* %28
store i32 0, i32* %29
%30 = load i32, i32* %15
%31 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i32 %30)
%32 = load double, double* %16
%33 = load i32, i32* %15
%34 = sitofp i32 %33 to double
%35 = fdiv double %32, %34
%36 = fptosi double %35 to i32
%37 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0), i32 %36)
%38 = load i32, i32* %17
%39 = load i32, i32* %15
%40 = sdiv i32 %38, %39
%41 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0), i32 %40)
%42 = load double, double* %18
%43 = load i32, i32* %15
%44 = sitofp i32 %43 to double
%45 = fdiv double %42, %44
%46 = fptosi double %45 to i32
%47 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0), i32 %46)
%48 = load double, double* %19
%49 = load double, double* %20
%50 = fcmp oge double %48, %49
br i1 %50, label %51, label %62
51: ; preds = %14
%52 = load double, double* %19
%53 = load double, double* %21
%54 = fcmp oge double %52, %53
br i1 %54, label %55, label %62
55: ; preds = %51
%56 = load i32, i32* %29
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %62
58: ; preds = %55
store i32 1, i32* %29
%59 = load double, double* %19
%60 = fptosi double %59 to i32
%61 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0), i32 %60)
br label %62
62: ; preds = %58, %55, %51, %14
%63 = load double, double* %20
%64 = load double, double* %19
%65 = fcmp oge double %63, %64
br i1 %65, label %66, label %77
66: ; preds = %62
%67 = load double, double* %20
%68 = load double, double* %21
%69 = fcmp oge double %67, %68
br i1 %69, label %70, label %77
70: ; preds = %66
%71 = load i32, i32* %29
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %77
73: ; preds = %70
store i32 1, i32* %29
%74 = load double, double* %20
%75 = fptosi double %74 to i32
%76 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0), i32 %75)
br label %77
77: ; preds = %73, %70, %66, %62
%78 = load double, double* %21
%79 = load double, double* %19
%80 = fcmp oge double %78, %79
br i1 %80, label %81, label %92
81: ; preds = %77
%82 = load double, double* %21
%83 = load double, double* %20
%84 = fcmp oge double %82, %83
br i1 %84, label %85, label %92
85: ; preds = %81
%86 = load i32, i32* %29
%87 = icmp eq i32 %86, 0
br i1 %87, label %88, label %92
88: ; preds = %85
%89 = load double, double* %21
%90 = fptosi double %89 to i32
%91 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0), i32 %90)
br label %92
92: ; preds = %88, %85, %81, %77
store i32 0, i32* %29
%93 = load double, double* %22
%94 = load double, double* %23
%95 = fcmp oge double %93, %94
br i1 %95, label %96, label %107
96: ; preds = %92
%97 = load double, double* %22
%98 = load double, double* %24
%99 = fcmp oge double %97, %98
br i1 %99, label %100, label %107
100: ; preds = %96
%101 = load i32, i32* %29
%102 = icmp eq i32 %101, 0
br i1 %102, label %103, label %107
103: ; preds = %100
store i32 1, i32* %29
%104 = load double, double* %22
%105 = fptosi double %104 to i32
%106 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.5, i64 0, i64 0), i32 %105)
br label %107
107: ; preds = %103, %100, %96, %92
%108 = load double, double* %23
%109 = load double, double* %22
%110 = fcmp oge double %108, %109
br i1 %110, label %111, label %122
111: ; preds = %107
%112 = load double, double* %23
%113 = load double, double* %24
%114 = fcmp oge double %112, %113
br i1 %114, label %115, label %122
115: ; preds = %111
%116 = load i32, i32* %29
%117 = icmp eq i32 %116, 0
br i1 %117, label %118, label %122
118: ; preds = %115
store i32 1, i32* %29
%119 = load double, double* %23
%120 = fptosi double %119 to i32
%121 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.5, i64 0, i64 0), i32 %120)
br label %122
122: ; preds = %118, %115, %111, %107
%123 = load double, double* %24
%124 = load double, double* %22
%125 = fcmp oge double %123, %124
br i1 %125, label %126, label %137
126: ; preds = %122
%127 = load double, double* %24
%128 = load double, double* %23
%129 = fcmp oge double %127, %128
br i1 %129, label %130, label %137
130: ; preds = %126
%131 = load i32, i32* %29
%132 = icmp eq i32 %131, 0
br i1 %132, label %133, label %137
133: ; preds = %130
%134 = load double, double* %24
%135 = fptosi double %134 to i32
%136 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.5, i64 0, i64 0), i32 %135)
br label %137
137: ; preds = %133, %130, %126, %122
store i32 0, i32* %29
%138 = load i32, i32* %25
%139 = load i32, i32* %26
%140 = icmp sge i32 %138, %139
br i1 %140, label %141, label %151
141: ; preds = %137
%142 = load i32, i32* %25
%143 = load i32, i32* %27
%144 = icmp sge i32 %142, %143
br i1 %144, label %145, label %151
145: ; preds = %141
%146 = load i32, i32* %29
%147 = icmp eq i32 %146, 0
br i1 %147, label %148, label %151
148: ; preds = %145
store i32 1, i32* %29
%149 = load i32, i32* %25
%150 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.6, i64 0, i64 0), i32 %149)
br label %151
151: ; preds = %148, %145, %141, %137
%152 = load i32, i32* %26
%153 = load i32, i32* %25
%154 = icmp sge i32 %152, %153
br i1 %154, label %155, label %165
155: ; preds = %151
%156 = load i32, i32* %26
%157 = load i32, i32* %27
%158 = icmp sge i32 %156, %157
br i1 %158, label %159, label %165
159: ; preds = %155
%160 = load i32, i32* %29
%161 = icmp eq i32 %160, 0
br i1 %161, label %162, label %165
162: ; preds = %159
store i32 1, i32* %29
%163 = load i32, i32* %26
%164 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.6, i64 0, i64 0), i32 %163)
br label %165
165: ; preds = %162, %159, %155, %151
%166 = load i32, i32* %27
%167 = load i32, i32* %25
%168 = icmp sge i32 %166, %167
br i1 %168, label %169, label %179
169: ; preds = %165
%170 = load i32, i32* %27
%171 = load i32, i32* %26
%172 = icmp sge i32 %170, %171
br i1 %172, label %173, label %179
173: ; preds = %169
%174 = load i32, i32* %29
%175 = icmp eq i32 %174, 0
br i1 %175, label %176, label %179
176: ; preds = %173
%177 = load i32, i32* %27
%178 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.6, i64 0, i64 0), i32 %177)
br label %179
179: ; preds = %176, %173, %169, %165
%180 = load i32, i32* %28
%181 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0), i32 %180)
ret void
}

LLVM IR (-O2):
@.str = [54 x i8] c"1.) Total number of customers serviced: %d customers\0A\00"
@.str.1 = [56 x i8] c"2.) Average time customer spends in queue: %lf seconds\0A\00"
@.str.2 = [58 x i8] c"3.) Average time customer spends with teller: %d seconds\0A\00"
@.str.3 = [57 x i8] c"4.) Average time teller waits for customer: %lf seconds\0A\00"
@.str.4 = [53 x i8] c"5.) Maximum customer wait time in queue: %f seconds\0A\00"
@.str.5 = [69 x i8] c"6.) Maximum wait time for tellers waiting for customers: %f seconds\0A\00"
@.str.6 = [58 x i8] c"7.) Maximum transaction time for the tellers: %d seconds\0A\00"
@.str.7 = [52 x i8] c"8.) Maximum depth of customer queue: %d customers\0A\0A\00"
define void @report_metrics(i32 %0, double %1, i32 %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, i32 %10, i32 %11, i32 %12, i32 %13) {
%15 = tail call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i32 %0)
%16 = sitofp i32 %0 to double
%17 = fdiv double %1, %16
%18 = fptosi double %17 to i32
%19 = tail call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0), i32 %18)
%20 = sdiv i32 %2, %0
%21 = tail call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0), i32 %20)
%22 = fdiv double %3, %16
%23 = fptosi double %22 to i32
%24 = tail call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0), i32 %23)
%25 = fcmp ult double %4, %5
%26 = fcmp ult double %4, %6
%27 = or i1 %25, %26
br i1 %27, label %28, label %36
28: ; preds = %14
%29 = fcmp oge double %5, %4
%30 = fcmp oge double %5, %6
%31 = and i1 %29, %30
br i1 %31, label %36, label %32
32: ; preds = %28
%33 = fcmp oge double %6, %4
%34 = fcmp oge double %6, %5
%35 = and i1 %33, %34
br i1 %35, label %36, label %40
36: ; preds = %32, %28, %14
%37 = phi double [ %4, %14 ], [ %5, %28 ], [ %6, %32 ]
%38 = fptosi double %37 to i32
%39 = tail call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0), i32 %38)
br label %40
40: ; preds = %36, %32
%41 = fcmp ult double %7, %8
%42 = fcmp ult double %7, %9
%43 = or i1 %41, %42
br i1 %43, label %44, label %52
44: ; preds = %40
%45 = fcmp oge double %8, %7
%46 = fcmp oge double %8, %9
%47 = and i1 %45, %46
br i1 %47, label %52, label %48
48: ; preds = %44
%49 = fcmp oge double %9, %7
%50 = fcmp oge double %9, %8
%51 = and i1 %49, %50
br i1 %51, label %52, label %56
52: ; preds = %48, %44, %40
%53 = phi double [ %7, %40 ], [ %8, %44 ], [ %9, %48 ]
%54 = fptosi double %53 to i32
%55 = tail call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.5, i64 0, i64 0), i32 %54)
br label %56
56: ; preds = %52, %48
%57 = icmp slt i32 %10, %11
%58 = icmp slt i32 %10, %12
%59 = or i1 %57, %58
br i1 %59, label %60, label %68
60: ; preds = %56
%61 = icmp sge i32 %11, %10
%62 = icmp sge i32 %11, %12
%63 = and i1 %61, %62
br i1 %63, label %68, label %64
64: ; preds = %60
%65 = icmp sge i32 %12, %10
%66 = icmp sge i32 %12, %11
%67 = and i1 %65, %66
br i1 %67, label %68, label %71
68: ; preds = %64, %60, %56
%69 = phi i32 [ %10, %56 ], [ %11, %60 ], [ %12, %64 ]
%70 = tail call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.6, i64 0, i64 0), i32 %69)
br label %71
71: ; preds = %68, %64
%72 = tail call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0), i32 %13)
ret void
}