#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 atof(char *);
long atol(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  double L;
  double Q;
  double R;
  double S;
  double U;
  double rho;
  double W;
  double X;
  double Z;
  double p;
  double p0;
  long m;
  long N;
  long k;
  if (argc < 5) {
    printf("Usage: %s m S N Z\n", *argv);
    exit(1);
  }
  m = atol(*++argv);
  S = atof(*++argv);
  N = atol(*++argv);
  Z = atof(*++argv);
  p = p0 = 1;
  L = 0;
  for (k = 1; k <= N; k++) {
    p *= (N - k + 1) * S / Z;
    if (k <= m) {
      p /= k;
    } else {
      p /= m;
    }
    p0 += p;
    if (k > m) {
      L += p * (k - m);
    }
  }
  p0 = 1.0 / p0;
  L *= p0;
  W = L * (S + Z) / (N - L);
  R = W + S;
  X = N / (R + Z);
  U = X * S;
  rho = U / m;
  Q = X * R;
  printf("\n");
  printf("  M/M/%ld/%ld/%ld Repair Model\n", m, N, N);
  printf("  ----------------------------\n");
  printf("  Machine pop:      %4ld\n", N);
  printf("  MT to failure:    %9.4lf\n", Z);
  printf("  Service time:     %9.4lf\n", S);
  printf("  Breakage rate:    %9.4lf\n", 1 / Z);
  printf("  Service rate:     %9.4lf\n", 1 / S);
  printf("  Utilization:      %9.4lf\n", U);
  printf("  Per Server:       %9.4lf\n", rho);
  printf("  \n");
  printf("  No. in system:    %9.4lf\n", Q);
  printf("  No in service:    %9.4lf\n", U);
  printf("  No.  enqueued:    %9.4lf\n", Q - U);
  printf("  Waiting time:     %9.4lf\n", R - S);
  printf("  Throughput:       %9.4lf\n", X);
  printf("  Response time:    %9.4lf\n", R);
  printf("  Normalized RT:    %9.4lf\n", R / S);
  printf("  \n");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    1182 <main+0x42>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    0x8(%rax),%rdi
call   1050 <atol@plt>
mov    %rax,-0x70(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    0x8(%rax),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    0x8(%rax),%rdi
call   1050 <atol@plt>
mov    %rax,-0x78(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    0x8(%rax),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  0xe04(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xdf7(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
movq   $0x1,-0x80(%rbp)
mov    -0x80(%rbp),%rax
cmp    -0x78(%rbp),%rax
jg     12e3 <main+0x1a3>
mov    -0x78(%rbp),%rax
sub    -0x80(%rbp),%rax
add    $0x1,%rax
cvtsi2sd %rax,%xmm0
mulsd  -0x30(%rbp),%xmm0
divsd  -0x58(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x80(%rbp),%rax
cmp    -0x70(%rbp),%rax
jg     1278 <main+0x138>
cvtsi2sdq -0x80(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    128c <main+0x14c>
cvtsi2sdq -0x70(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
addsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x80(%rbp),%rax
cmp    -0x70(%rbp),%rax
jle    12cd <main+0x18d>
movsd  -0x60(%rbp),%xmm0
mov    -0x80(%rbp),%rax
sub    -0x70(%rbp),%rax
cvtsi2sd %rax,%xmm2
movsd  -0x18(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    12d2 <main+0x192>
mov    -0x80(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x80(%rbp)
jmp    121e <main+0xde>
movsd  0xd15(%rip),%xmm0
divsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
addsd  -0x58(%rbp),%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdq -0x78(%rbp),%xmm1
subsd  -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
cvtsi2sdq -0x78(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
addsd  -0x58(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
cvtsi2sdq -0x70(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x50(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
lea    0xd93(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x70(%rbp),%rsi
mov    -0x78(%rbp),%rdx
mov    -0x78(%rbp),%rcx
lea    0xc75(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc87(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x78(%rbp),%rsi
lea    0xc95(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x58(%rbp),%xmm0
lea    0xc9c(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x30(%rbp),%xmm0
lea    0xca5(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xc05(%rip),%xmm0
divsd  -0x58(%rbp),%xmm0
lea    0xca6(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xbea(%rip),%xmm0
divsd  -0x30(%rbp),%xmm0
lea    0xca7(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x38(%rbp),%xmm0
lea    0xcb0(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x40(%rbp),%xmm0
lea    0xcb9(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xcc7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x20(%rbp),%xmm0
lea    0xcb8(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x38(%rbp),%xmm0
lea    0xcc1(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x20(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
lea    0xcc5(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x28(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
lea    0xcc9(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x50(%rbp),%xmm0
lea    0xcd2(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x28(%rbp),%xmm0
lea    0xcdb(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x28(%rbp),%xmm0
divsd  -0x30(%rbp),%xmm0
lea    0xcdf(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xc25(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x40,%rsp
mov    %rsi,%r15
cmp    $0x4,%edi
jle    143d <main+0x2dd>
mov    0x8(%r15),%rdi
call   1070 <atol@plt>
mov    %rax,%rbx
mov    0x10(%r15),%rdi
call   1050 <atof@plt>
movsd  %xmm0,0x8(%rsp)
mov    0x18(%r15),%rdi
call   1070 <atol@plt>
mov    %rax,%r14
mov    0x20(%r15),%rdi
call   1050 <atof@plt>
movsd  0xe53(%rip),%xmm5
test   %r14,%r14
jle    1230 <main+0xd0>
mov    %rbx,%rax
neg    %rax
movsd  0xe3c(%rip),%xmm1
xorpd  %xmm6,%xmm6
mov    $0x1,%ecx
mov    %r14,%rdx
movapd %xmm1,%xmm2
movsd  0x8(%rsp),%xmm4
jmp    11ee <main+0x8e>
nopl   0x0(%rax)
addsd  %xmm2,%xmm1
add    $0x1,%rcx
add    $0xffffffffffffffff,%rdx
je     123e <main+0xde>
xorps  %xmm3,%xmm3
cvtsi2sd %rdx,%xmm3
mulsd  %xmm4,%xmm3
divsd  %xmm0,%xmm3
mov    %rcx,%rsi
cmp    %rbx,%rcx
cmovg  %rbx,%rsi
mulsd  %xmm3,%xmm2
xorps  %xmm3,%xmm3
cvtsi2sd %rsi,%xmm3
divsd  %xmm3,%xmm2
jle    11e0 <main+0x80>
lea    (%rax,%rcx,1),%rsi
xorps  %xmm3,%xmm3
cvtsi2sd %rsi,%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm3,%xmm6
jmp    11e0 <main+0x80>
xorpd  %xmm6,%xmm6
movapd %xmm5,%xmm1
movsd  0x8(%rsp),%xmm4
movapd %xmm5,%xmm2
divsd  %xmm1,%xmm2
mulsd  %xmm6,%xmm2
movapd %xmm4,%xmm1
addsd  %xmm0,%xmm1
mulsd  %xmm2,%xmm1
xorps  %xmm6,%xmm6
cvtsi2sd %r14,%xmm6
movapd %xmm6,%xmm3
subsd  %xmm2,%xmm3
divsd  %xmm3,%xmm1
addsd  %xmm4,%xmm1
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
movapd %xmm1,%xmm3
movsd  %xmm1,0x18(%rsp)
divsd  %xmm2,%xmm6
movsd  %xmm6,0x38(%rsp)
mulsd  %xmm6,%xmm4
movsd  %xmm4,0x10(%rsp)
xorps  %xmm1,%xmm1
cvtsi2sd %rbx,%xmm1
divsd  %xmm1,%xmm4
movsd  %xmm4,0x30(%rsp)
mulsd  %xmm6,%xmm3
movsd  %xmm3,0x28(%rsp)
mov    $0xa,%edi
movsd  %xmm0,0x20(%rsp)
call   1030 <putchar@plt>
lea    0xd54(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xee3(%rip),%rdi
call   1040 <puts@plt>
lea    0xd51(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd5a(%rip),%rdi
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xd62(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xcdc(%rip),%xmm0
divsd  0x20(%rsp),%xmm0
lea    0xd5c(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xcc0(%rip),%xmm0
divsd  0x8(%rsp),%xmm0
lea    0xd5c(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xd6a(%rip),%rdi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xd72(%rip),%rdi
movsd  0x30(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xe5d(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xd6b(%rip),%rdi
movsd  0x28(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xd73(%rip),%rdi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x28(%rsp),%xmm0
subsd  0x10(%rsp),%xmm0
lea    0xd6f(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x18(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
lea    0xd71(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xd7f(%rip),%rdi
movsd  0x38(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xd87(%rip),%rdi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x18(%rsp),%xmm0
divsd  0x8(%rsp),%xmm0
lea    0xd83(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret
mov    (%r15),%rsi
lea    0xbc1(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"Usage: %s m S N Z\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [32 x i8] c" M/M/%ld/%ld/%ld Repair Model\0A\00"
@.str.3 = [32 x i8] c" ----------------------------\0A\00"
@.str.4 = [26 x i8] c" Machine pop: %4ld\0A\00"
@.str.5 = [28 x i8] c" MT to failure: %9.4lf\0A\00"
@.str.6 = [28 x i8] c" Service time: %9.4lf\0A\00"
@.str.7 = [28 x i8] c" Breakage rate: %9.4lf\0A\00"
@.str.8 = [28 x i8] c" Service rate: %9.4lf\0A\00"
@.str.9 = [28 x i8] c" Utilization: %9.4lf\0A\00"
@.str.10 = [28 x i8] c" Per Server: %9.4lf\0A\00"
@.str.11 = [4 x i8] c" \0A\00"
@.str.12 = [28 x i8] c" No. in system: %9.4lf\0A\00"
@.str.13 = [28 x i8] c" No in service: %9.4lf\0A\00"
@.str.14 = [28 x i8] c" No. enqueued: %9.4lf\0A\00"
@.str.15 = [28 x i8] c" Waiting time: %9.4lf\0A\00"
@.str.16 = [28 x i8] c" Throughput: %9.4lf\0A\00"
@.str.17 = [28 x i8] c" Response time: %9.4lf\0A\00"
@.str.18 = [28 x i8] c" Normalized RT: %9.4lf\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca i64
%18 = alloca i64
%19 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%20 = load i32, i32* %4
%21 = icmp slt i32 %20, 5
br i1 %21, label %22, label %27
22: ; preds = %2
%23 = load i8**, i8*** %5
%24 = load i8*, i8** %23
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %24)
%26 = call i32 @exit(i32 1)
unreachable
27: ; preds = %2
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i32 1
store i8** %29, i8*** %5
%30 = load i8*, i8** %29
%31 = call i64 @atol(i8* %30)
store i64 %31, i64* %17
%32 = load i8**, i8*** %5
%33 = getelementptr inbounds i8*, i8** %32, i32 1
store i8** %33, i8*** %5
%34 = load i8*, i8** %33
%35 = call double @atof(i8* %34)
store double %35, double* %9
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i32 1
store i8** %37, i8*** %5
%38 = load i8*, i8** %37
%39 = call i64 @atol(i8* %38)
store i64 %39, i64* %18
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i32 1
store i8** %41, i8*** %5
%42 = load i8*, i8** %41
%43 = call double @atof(i8* %42)
store double %43, double* %14
store double 1.000000e+00, double* %16
store double 1.000000e+00, double* %15
store double 0.000000e+00, double* %6
store i64 1, i64* %19
br label %44
44: ; preds = %89, %27
%45 = load i64, i64* %19
%46 = load i64, i64* %18
%47 = icmp sle i64 %45, %46
br i1 %47, label %48, label %92
48: ; preds = %44
%49 = load i64, i64* %18
%50 = load i64, i64* %19
%51 = sub nsw i64 %49, %50
%52 = add nsw i64 %51, 1
%53 = sitofp i64 %52 to double
%54 = load double, double* %9
%55 = fmul double %53, %54
%56 = load double, double* %14
%57 = fdiv double %55, %56
%58 = load double, double* %15
%59 = fmul double %58, %57
store double %59, double* %15
%60 = load i64, i64* %19
%61 = load i64, i64* %17
%62 = icmp sle i64 %60, %61
br i1 %62, label %63, label %68
63: ; preds = %48
%64 = load i64, i64* %19
%65 = sitofp i64 %64 to double
%66 = load double, double* %15
%67 = fdiv double %66, %65
store double %67, double* %15
br label %73
68: ; preds = %48
%69 = load i64, i64* %17
%70 = sitofp i64 %69 to double
%71 = load double, double* %15
%72 = fdiv double %71, %70
store double %72, double* %15
br label %73
73: ; preds = %68, %63
%74 = load double, double* %15
%75 = load double, double* %16
%76 = fadd double %75, %74
store double %76, double* %16
%77 = load i64, i64* %19
%78 = load i64, i64* %17
%79 = icmp sgt i64 %77, %78
br i1 %79, label %80, label %88
80: ; preds = %73
%81 = load double, double* %15
%82 = load i64, i64* %19
%83 = load i64, i64* %17
%84 = sub nsw i64 %82, %83
%85 = sitofp i64 %84 to double
%86 = load double, double* %6
%87 = call double @llvm.fmuladd.f64(double %81, double %85, double %86)
store double %87, double* %6
br label %88
88: ; preds = %80, %73
br label %89
89: ; preds = %88
%90 = load i64, i64* %19
%91 = add nsw i64 %90, 1
store i64 %91, i64* %19
br label %44
92: ; preds = %44
%93 = load double, double* %16
%94 = fdiv double 1.000000e+00, %93
store double %94, double* %16
%95 = load double, double* %16
%96 = load double, double* %6
%97 = fmul double %96, %95
store double %97, double* %6
%98 = load double, double* %6
%99 = load double, double* %9
%100 = load double, double* %14
%101 = fadd double %99, %100
%102 = fmul double %98, %101
%103 = load i64, i64* %18
%104 = sitofp i64 %103 to double
%105 = load double, double* %6
%106 = fsub double %104, %105
%107 = fdiv double %102, %106
store double %107, double* %12
%108 = load double, double* %12
%109 = load double, double* %9
%110 = fadd double %108, %109
store double %110, double* %8
%111 = load i64, i64* %18
%112 = sitofp i64 %111 to double
%113 = load double, double* %8
%114 = load double, double* %14
%115 = fadd double %113, %114
%116 = fdiv double %112, %115
store double %116, double* %13
%117 = load double, double* %13
%118 = load double, double* %9
%119 = fmul double %117, %118
store double %119, double* %10
%120 = load double, double* %10
%121 = load i64, i64* %17
%122 = sitofp i64 %121 to double
%123 = fdiv double %120, %122
store double %123, double* %11
%124 = load double, double* %13
%125 = load double, double* %8
%126 = fmul double %124, %125
store double %126, double* %7
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%128 = load i64, i64* %17
%129 = load i64, i64* %18
%130 = load i64, i64* %18
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i64 %128, i64 %129, i64 %130)
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%133 = load i64, i64* %18
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i64 %133)
%135 = load double, double* %14
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), double %135)
%137 = load double, double* %9
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), double %137)
%139 = load double, double* %14
%140 = fdiv double 1.000000e+00, %139
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), double %140)
%142 = load double, double* %9
%143 = fdiv double 1.000000e+00, %142
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), double %143)
%145 = load double, double* %10
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), double %145)
%147 = load double, double* %11
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), double %147)
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%150 = load double, double* %7
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0), double %150)
%152 = load double, double* %10
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), double %152)
%154 = load double, double* %7
%155 = load double, double* %10
%156 = fsub double %154, %155
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), double %156)
%158 = load double, double* %8
%159 = load double, double* %9
%160 = fsub double %158, %159
%161 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), double %160)
%162 = load double, double* %13
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0), double %162)
%164 = load double, double* %8
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.17, i64 0, i64 0), double %164)
%166 = load double, double* %8
%167 = load double, double* %9
%168 = fdiv double %166, %167
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0), double %168)
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"Usage: %s m S N Z\0A\00"
@.str.2 = [32 x i8] c" M/M/%ld/%ld/%ld Repair Model\0A\00"
@.str.4 = [26 x i8] c" Machine pop: %4ld\0A\00"
@.str.5 = [28 x i8] c" MT to failure: %9.4lf\0A\00"
@.str.6 = [28 x i8] c" Service time: %9.4lf\0A\00"
@.str.7 = [28 x i8] c" Breakage rate: %9.4lf\0A\00"
@.str.8 = [28 x i8] c" Service rate: %9.4lf\0A\00"
@.str.9 = [28 x i8] c" Utilization: %9.4lf\0A\00"
@.str.10 = [28 x i8] c" Per Server: %9.4lf\0A\00"
@.str.12 = [28 x i8] c" No. in system: %9.4lf\0A\00"
@.str.13 = [28 x i8] c" No in service: %9.4lf\0A\00"
@.str.14 = [28 x i8] c" No. enqueued: %9.4lf\0A\00"
@.str.15 = [28 x i8] c" Waiting time: %9.4lf\0A\00"
@.str.16 = [28 x i8] c" Throughput: %9.4lf\0A\00"
@.str.17 = [28 x i8] c" Response time: %9.4lf\0A\00"
@.str.18 = [28 x i8] c" Normalized RT: %9.4lf\0A\00"
@str = [31 x i8] c" ----------------------------\00"
@str.20 = [3 x i8] c" \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 5
br i1 %3, label %4, label %8
4: ; preds = %2
%5 = load i8*, i8** %1
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = tail call i32 @exit(i32 1)
unreachable
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i64 @atol(i8* %10)
%12 = getelementptr inbounds i8*, i8** %1, i64 2
%13 = load i8*, i8** %12
%14 = tail call double @atof(i8* %13)
%15 = getelementptr inbounds i8*, i8** %1, i64 3
%16 = load i8*, i8** %15
%17 = tail call i64 @atol(i8* %16)
%18 = getelementptr inbounds i8*, i8** %1, i64 4
%19 = load i8*, i8** %18
%20 = tail call double @atof(i8* %19)
%21 = icmp slt i64 %17, 1
br i1 %21, label %45, label %22
22: ; preds = %8
%23 = add nuw i64 %17, 1
br label %24
24: ; preds = %22, %24
%25 = phi i64 [ 1, %22 ], [ %43, %24 ]
%26 = phi double [ 0.000000e+00, %22 ], [ %42, %24 ]
%27 = phi double [ 1.000000e+00, %22 ], [ %38, %24 ]
%28 = phi double [ 1.000000e+00, %22 ], [ %37, %24 ]
%29 = sub i64 %23, %25
%30 = sitofp i64 %29 to double
%31 = fmul double %14, %30
%32 = fdiv double %31, %20
%33 = fmul double %28, %32
%34 = icmp sgt i64 %25, %11
%35 = select i1 %34, i64 %11, i64 %25
%36 = sitofp i64 %35 to double
%37 = fdiv double %33, %36
%38 = fadd double %27, %37
%39 = sub nsw i64 %25, %11
%40 = sitofp i64 %39 to double
%41 = tail call double @llvm.fmuladd.f64(double %37, double %40, double %26)
%42 = select i1 %34, double %41, double %26
%43 = add nuw i64 %25, 1
%44 = icmp eq i64 %25, %17
br i1 %44, label %45, label %24
45: ; preds = %24, %8
%46 = phi double [ 1.000000e+00, %8 ], [ %38, %24 ]
%47 = phi double [ 0.000000e+00, %8 ], [ %42, %24 ]
%48 = fdiv double 1.000000e+00, %46
%49 = fmul double %47, %48
%50 = fadd double %14, %20
%51 = fmul double %50, %49
%52 = sitofp i64 %17 to double
%53 = fsub double %52, %49
%54 = fdiv double %51, %53
%55 = fadd double %14, %54
%56 = fadd double %20, %55
%57 = fdiv double %52, %56
%58 = fmul double %14, %57
%59 = sitofp i64 %11 to double
%60 = fdiv double %58, %59
%61 = fmul double %55, %57
%62 = tail call i32 @putchar(i32 10)
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i64 %11, i64 %17, i64 %17)
%64 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i64 %17)
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), double %20)
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), double %14)
%68 = fdiv double 1.000000e+00, %20
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), double %68)
%70 = fdiv double 1.000000e+00, %14
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), double %70)
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), double %58)
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), double %60)
%74 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.20, i64 0, i64 0))
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0), double %61)
%76 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), double %58)
%77 = fsub double %61, %58
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), double %77)
%79 = fsub double %55, %14
%80 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), double %79)
%81 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0), double %57)
%82 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.17, i64 0, i64 0), double %55)
%83 = fdiv double %55, %14
%84 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0), double %83)
%85 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.20, i64 0, i64 0))
ret i32 0
}