int main(int argc, char *argv[]) {
  int Size;
  int Distance;
  int Hr_Ready;
  int Time[3];
  int Days[3];
  int Hrs[3];
  int Mins[3];
  char Methods[3][6] = {"Tiny", "T3", "FedEx"};
  int method_choice;
  char Input[20];
  printf("Enter size of transfer in megabytes: ");
  scanf("%s", Input);
  Size = atoi(Input);
  printf("Enter distance to the destination in miles: ");
  scanf("%s", Input);
  Distance = atoi(Input);
  printf("Enter time data will be ready to send as HHMM: ");
  scanf("%s", Input);
  Input[2] = '\0';
  Hr_Ready = atoi(Input);
  Days[0] = Days[1] = Days[2] = 0;
  Hrs[0] = Hrs[1] = Hrs[2] = Hr_Ready;
  Mins[0] = Mins[1] = Mins[2] = 0;
  Time[0] = Calc_Tiny(Size, Distance, &Days[0], &Hrs[0], &Mins[0]);
  Time[1] = Calc_T3(Size, &Days[1], &Hrs[1], &Mins[1]);
  Time[2] = Calc_FedEx(Size, &Days[2], &Hrs[2], &Mins[2]);
  if (Time[2] < Time[1])
    method_choice = 2;
  else
    method_choice = 1;
  if ((Time[0] > 0) && (Time[0] < Time[1]) && (Time[0] < Time[2]))
    method_choice = 0;
  int x;
  for (x = 0; x < 3; x++)
    printf("Method:%10s, transfer: %6d Arrival:%02d%02d day %d\n", Methods[x],
           Time[x], Hrs[x], Mins[x], Days[x]);
  printf("Shipment by %s will arrive at %02d%02d hours ",
         Methods[method_choice], Hrs[method_choice], Mins[method_choice]);
  switch (Days[method_choice]) {
  case 0:
    printf("today\n");
    break;
  case 1:
    printf("tomorrow\n");
    break;
  default:
    printf("%d days from today\n", Days[method_choice]);
    break;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xe80(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xe7d(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xe7a(%rip),%ax
mov    %ax,-0x50(%rbp)
lea    0xe71(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x80(%rbp),%rsi
lea    0xe85(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    -0x80(%rbp),%rdi
mov    $0x0,%al
call   1080 <atoi@plt>
mov    %eax,-0x14(%rbp)
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x80(%rbp),%rsi
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    -0x80(%rbp),%rdi
mov    $0x0,%al
call   1080 <atoi@plt>
mov    %eax,-0x18(%rbp)
lea    0xe6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x80(%rbp),%rsi
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
movb   $0x0,-0x7e(%rbp)
lea    -0x80(%rbp),%rdi
mov    $0x0,%al
call   1080 <atoi@plt>
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    %eax,-0x3c(%rbp)
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
lea    -0x34(%rbp),%rdx
lea    -0x40(%rbp),%rcx
lea    -0x4c(%rbp),%r8
mov    $0x0,%al
call   1060 <Calc_Tiny@plt>
mov    %eax,-0x28(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x34(%rbp),%rsi
add    $0x4,%rsi
lea    -0x40(%rbp),%rdx
add    $0x4,%rdx
lea    -0x4c(%rbp),%rcx
add    $0x4,%rcx
mov    $0x0,%al
call   1070 <Calc_T3@plt>
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x34(%rbp),%rsi
add    $0x8,%rsi
lea    -0x40(%rbp),%rdx
add    $0x8,%rdx
lea    -0x4c(%rbp),%rcx
add    $0x8,%rcx
mov    $0x0,%al
call   1040 <Calc_FedEx@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    12dc <main+0x17c>
movl   $0x2,-0x64(%rbp)
jmp    12e3 <main+0x183>
movl   $0x1,-0x64(%rbp)
cmpl   $0x0,-0x28(%rbp)
jle    130c <main+0x1ac>
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    130c <main+0x1ac>
mov    -0x28(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    130c <main+0x1ac>
movl   $0x0,-0x64(%rbp)
movl   $0x0,-0x84(%rbp)
cmpl   $0x3,-0x84(%rbp)
jge    1385 <main+0x225>
movslq -0x84(%rbp),%rax
lea    -0x60(%rbp),%rsi
imul   $0x6,%rax,%rax
add    %rax,%rsi
movslq -0x84(%rbp),%rax
mov    -0x28(%rbp,%rax,4),%edx
movslq -0x84(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%ecx
movslq -0x84(%rbp),%rax
mov    -0x4c(%rbp,%rax,4),%r8d
movslq -0x84(%rbp),%rax
mov    -0x34(%rbp,%rax,4),%r9d
lea    0xd2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1316 <main+0x1b6>
movslq -0x64(%rbp),%rax
lea    (%rax,%rax,2),%rcx
lea    -0x60(%rbp,%rcx,2),%rsi
mov    -0x40(%rbp,%rax,4),%edx
mov    -0x4c(%rbp,%rax,4),%ecx
lea    0xd2b(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movslq -0x64(%rbp),%rax
mov    -0x34(%rbp,%rax,4),%eax
mov    %eax,-0x88(%rbp)
test   %eax,%eax
je     13d7 <main+0x277>
jmp    13c3 <main+0x263>
mov    -0x88(%rbp),%eax
sub    $0x1,%eax
je     13ea <main+0x28a>
jmp    13fd <main+0x29d>
lea    0xd33(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1413 <main+0x2b3>
lea    0xd09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1413 <main+0x2b3>
movslq -0x64(%rbp),%rax
mov    -0x34(%rbp,%rax,4),%esi
lea    0xcf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
movzwl 0xe8b(%rip),%eax
mov    %ax,0x40(%rsp)
movaps 0xe6f(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
lea    0xe75(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe8d(%rip),%rbp
lea    0x50(%rsp),%rbx
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1090 <atoi@plt>
mov    %eax,%r14d
lea    0xe6a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1090 <atoi@plt>
mov    %eax,%r15d
lea    0xe6f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movb   $0x0,0x52(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1090 <atoi@plt>
movl   $0x0,0x2c(%rsp)
lea    0x28(%rsp),%rbp
movq   $0x0,0x24(%rsp)
mov    %eax,0x14(%rsp)
lea    0x10(%rsp),%rbx
mov    %eax,0x10(%rsp)
mov    %eax,0xc(%rsp)
movl   $0x0,0x20(%rsp)
lea    0x1c(%rsp),%r13
movq   $0x0,0x18(%rsp)
lea    0x24(%rsp),%rdx
lea    0xc(%rsp),%rcx
lea    0x18(%rsp),%r8
mov    %r14d,%edi
mov    %r15d,%esi
xor    %eax,%eax
call   1070 <Calc_Tiny@plt>
mov    %eax,%r12d
mov    %r14d,%edi
mov    %rbp,%rsi
mov    %rbx,%rdx
mov    %r13,%rcx
xor    %eax,%eax
call   1080 <Calc_T3@plt>
mov    %eax,%r15d
mov    %r14d,%edi
lea    0x2c(%rsp),%rsi
lea    0x14(%rsp),%rdx
lea    0x20(%rsp),%rcx
xor    %eax,%eax
call   1050 <Calc_FedEx@plt>
mov    %eax,%ebp
xor    %ebx,%ebx
cmp    %r15d,%eax
setl   %bl
add    $0x1,%rbx
mov    0xc(%rsp),%ecx
mov    0x18(%rsp),%r8d
mov    0x24(%rsp),%r9d
lea    0xdce(%rip),%r14
lea    0x30(%rsp),%rsi
mov    %r14,%rdi
mov    %r12d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x36(%rsp),%rsi
mov    0x10(%rsp),%ecx
mov    0x1c(%rsp),%r8d
mov    0x28(%rsp),%r9d
mov    %r14,%rdi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x3c(%rsp),%rsi
mov    0x14(%rsp),%ecx
mov    0x20(%rsp),%r8d
mov    0x2c(%rsp),%r9d
mov    %r14,%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebp,%r12d
mov    $0x0,%ebp
cmovge %rbx,%rbp
cmp    %r15d,%r12d
cmovge %rbx,%rbp
test   %r12d,%r12d
cmovle %rbx,%rbp
lea    0x0(,%rbp,2),%rax
add    %rbp,%rax
lea    0x30(%rsp,%rax,2),%rsi
mov    0xc(%rsp,%rbp,4),%edx
mov    0x18(%rsp,%rbp,4),%ecx
lea    0xd78(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp,%rbp,4),%esi
cmp    $0x1,%esi
je     1376 <main+0x206>
test   %esi,%esi
jne    1384 <main+0x214>
lea    0xda8(%rip),%rdi
call   1030 <puts@plt>
jmp    1392 <main+0x222>
lea    0xd91(%rip),%rdi
call   1030 <puts@plt>
jmp    1392 <main+0x222>
lea    0xd6f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.Methods = [3 x [6 x i8]] [[6 x i8] c"Tiny\00\00", [6 x i8] c"T3\00\00\00\00", [6 x i8] c"FedEx\00"]
@.str = [38 x i8] c"Enter size of transfer in megabytes: \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [45 x i8] c"Enter distance to the destination in miles: \00"
@.str.3 = [48 x i8] c"Enter time data will be ready to send as HHMM: \00"
@.str.4 = [52 x i8] c"Method:%10s, transfer: %6d Arrival:%02d%02d day %d\0A\00"
@.str.5 = [46 x i8] c"Shipment by %s will arrive at %02d%02d hours \00"
@.str.6 = [7 x i8] c"today\0A\00"
@.str.7 = [10 x i8] c"tomorrow\0A\00"
@.str.8 = [20 x i8] c"%d days from today\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [3 x i32]
%10 = alloca [3 x i32]
%11 = alloca [3 x i32]
%12 = alloca [3 x i32]
%13 = alloca [3 x [6 x i8]]
%14 = alloca i32
%15 = alloca [20 x i8]
%16 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = bitcast [3 x [6 x i8]]* %13 to i8*
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%19 = getelementptr inbounds [20 x i8], [20 x i8]* %15, i64 0, i64 0
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %19)
%21 = getelementptr inbounds [20 x i8], [20 x i8]* %15, i64 0, i64 0
%22 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %21)
store i32 %22, i32* %6
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
%24 = getelementptr inbounds [20 x i8], [20 x i8]* %15, i64 0, i64 0
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %24)
%26 = getelementptr inbounds [20 x i8], [20 x i8]* %15, i64 0, i64 0
%27 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %26)
store i32 %27, i32* %7
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0))
%29 = getelementptr inbounds [20 x i8], [20 x i8]* %15, i64 0, i64 0
%30 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %29)
%31 = getelementptr inbounds [20 x i8], [20 x i8]* %15, i64 0, i64 2
store i8 0, i8* %31
%32 = getelementptr inbounds [20 x i8], [20 x i8]* %15, i64 0, i64 0
%33 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %32)
store i32 %33, i32* %8
%34 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 2
store i32 0, i32* %34
%35 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 1
store i32 0, i32* %35
%36 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 0
store i32 0, i32* %36
%37 = load i32, i32* %8
%38 = getelementptr inbounds [3 x i32], [3 x i32]* %11, i64 0, i64 2
store i32 %37, i32* %38
%39 = getelementptr inbounds [3 x i32], [3 x i32]* %11, i64 0, i64 1
store i32 %37, i32* %39
%40 = getelementptr inbounds [3 x i32], [3 x i32]* %11, i64 0, i64 0
store i32 %37, i32* %40
%41 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 2
store i32 0, i32* %41
%42 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 1
store i32 0, i32* %42
%43 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 0
store i32 0, i32* %43
%44 = load i32, i32* %6
%45 = load i32, i32* %7
%46 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 0
%47 = getelementptr inbounds [3 x i32], [3 x i32]* %11, i64 0, i64 0
%48 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 0
%49 = call i32 (i32, i32, i32*, i32*, i32*, ...) bitcast (i32 (...)* @Calc_Tiny to i32 (i32, i32, i32*, i32*, i32*, ...)*)(i32 %44, i32 %45, i32* %46, i32* %47, i32* %48)
%50 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 0
store i32 %49, i32* %50
%51 = load i32, i32* %6
%52 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 1
%53 = getelementptr inbounds [3 x i32], [3 x i32]* %11, i64 0, i64 1
%54 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 1
%55 = call i32 (i32, i32*, i32*, i32*, ...) bitcast (i32 (...)* @Calc_T3 to i32 (i32, i32*, i32*, i32*, ...)*)(i32 %51, i32* %52, i32* %53, i32* %54)
%56 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 1
store i32 %55, i32* %56
%57 = load i32, i32* %6
%58 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 2
%59 = getelementptr inbounds [3 x i32], [3 x i32]* %11, i64 0, i64 2
%60 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 2
%61 = call i32 (i32, i32*, i32*, i32*, ...) bitcast (i32 (...)* @Calc_FedEx to i32 (i32, i32*, i32*, i32*, ...)*)(i32 %57, i32* %58, i32* %59, i32* %60)
%62 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 2
store i32 %61, i32* %62
%63 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 2
%64 = load i32, i32* %63
%65 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 1
%66 = load i32, i32* %65
%67 = icmp slt i32 %64, %66
br i1 %67, label %68, label %69
68: ; preds = %2
store i32 2, i32* %14
br label %70
69: ; preds = %2
store i32 1, i32* %14
br label %70
70: ; preds = %69, %68
%71 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 0
%72 = load i32, i32* %71
%73 = icmp sgt i32 %72, 0
br i1 %73, label %74, label %87
74: ; preds = %70
%75 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 0
%76 = load i32, i32* %75
%77 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 1
%78 = load i32, i32* %77
%79 = icmp slt i32 %76, %78
br i1 %79, label %80, label %87
80: ; preds = %74
%81 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 0
%82 = load i32, i32* %81
%83 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 2
%84 = load i32, i32* %83
%85 = icmp slt i32 %82, %84
br i1 %85, label %86, label %87
86: ; preds = %80
store i32 0, i32* %14
br label %87
87: ; preds = %86, %80, %74, %70
store i32 0, i32* %16
br label %88
88: ; preds = %113, %87
%89 = load i32, i32* %16
%90 = icmp slt i32 %89, 3
br i1 %90, label %91, label %116
91: ; preds = %88
%92 = load i32, i32* %16
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [3 x [6 x i8]], [3 x [6 x i8]]* %13, i64 0, i64 %93
%95 = getelementptr inbounds [6 x i8], [6 x i8]* %94, i64 0, i64 0
%96 = load i32, i32* %16
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 %97
%99 = load i32, i32* %98
%100 = load i32, i32* %16
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [3 x i32], [3 x i32]* %11, i64 0, i64 %101
%103 = load i32, i32* %102
%104 = load i32, i32* %16
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 %105
%107 = load i32, i32* %106
%108 = load i32, i32* %16
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 %109
%111 = load i32, i32* %110
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0), i8* %95, i32 %99, i32 %103, i32 %107, i32 %111)
br label %113
113: ; preds = %91
%114 = load i32, i32* %16
%115 = add nsw i32 %114, 1
store i32 %115, i32* %16
br label %88
116: ; preds = %88
%117 = load i32, i32* %14
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [3 x [6 x i8]], [3 x [6 x i8]]* %13, i64 0, i64 %118
%120 = getelementptr inbounds [6 x i8], [6 x i8]* %119, i64 0, i64 0
%121 = load i32, i32* %14
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [3 x i32], [3 x i32]* %11, i64 0, i64 %122
%124 = load i32, i32* %123
%125 = load i32, i32* %14
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 %126
%128 = load i32, i32* %127
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0), i8* %120, i32 %124, i32 %128)
%130 = load i32, i32* %14
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 %131
%133 = load i32, i32* %132
switch i32 %133, label %138 [
i32 0, label %134
i32 1, label %136
]
134: ; preds = %116
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %144
136: ; preds = %116
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
br label %144
138: ; preds = %116
%139 = load i32, i32* %14
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 %140
%142 = load i32, i32* %141
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %142)
br label %144
144: ; preds = %138, %136, %134
%145 = load i32, i32* %3
ret i32 %145
}

LLVM IR (-O2):
@__const.main.Methods = [3 x [6 x i8]] [[6 x i8] c"Tiny\00\00", [6 x i8] c"T3\00\00\00\00", [6 x i8] c"FedEx\00"]
@.str = [38 x i8] c"Enter size of transfer in megabytes: \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [45 x i8] c"Enter distance to the destination in miles: \00"
@.str.3 = [48 x i8] c"Enter time data will be ready to send as HHMM: \00"
@.str.4 = [52 x i8] c"Method:%10s, transfer: %6d Arrival:%02d%02d day %d\0A\00"
@.str.5 = [46 x i8] c"Shipment by %s will arrive at %02d%02d hours \00"
@.str.8 = [20 x i8] c"%d days from today\0A\00"
@str = [9 x i8] c"tomorrow\00"
@str.9 = [6 x i8] c"today\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [3 x i32]
%4 = alloca [3 x i32]
%5 = alloca [3 x i32]
%6 = alloca [3 x [6 x i8]]
%7 = alloca [20 x i8]
%8 = bitcast [3 x i32]* %3 to i8*
%9 = bitcast [3 x i32]* %4 to i8*
%10 = bitcast [3 x i32]* %5 to i8*
%11 = getelementptr inbounds [3 x [6 x i8]], [3 x [6 x i8]]* %6, i64 0, i64 0, i64 0
%12 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%15 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %12)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %12)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%21 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 2
store i8 0, i8* %21
%22 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %12)
%23 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
store i32 0, i32* %23
%24 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
store i32 0, i32* %24
%25 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
store i32 0, i32* %25
%26 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 2
store i32 %22, i32* %26
%27 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 1
store i32 %22, i32* %27
%28 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 0
store i32 %22, i32* %28
%29 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 2
store i32 0, i32* %29
%30 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 1
store i32 0, i32* %30
%31 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 0
store i32 0, i32* %31
%32 = call i32 (i32, i32, i32*, i32*, i32*, ...) bitcast (i32 (...)* @Calc_Tiny to i32 (i32, i32, i32*, i32*, i32*, ...)*)(i32 %15, i32 %18, i32* %25, i32* %28, i32* %31)
%33 = call i32 (i32, i32*, i32*, i32*, ...) bitcast (i32 (...)* @Calc_T3 to i32 (i32, i32*, i32*, i32*, ...)*)(i32 %15, i32* %24, i32* %27, i32* %30)
%34 = call i32 (i32, i32*, i32*, i32*, ...) bitcast (i32 (...)* @Calc_FedEx to i32 (i32, i32*, i32*, i32*, ...)*)(i32 %15, i32* %23, i32* %26, i32* %29)
%35 = icmp slt i32 %34, %33
%36 = select i1 %35, i64 2, i64 1
%37 = icmp slt i32 %32, %33
%38 = icmp slt i32 %32, %34
%39 = load i32, i32* %28
%40 = load i32, i32* %31
%41 = load i32, i32* %25
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0), i8* %11, i32 %32, i32 %39, i32 %40, i32 %41)
%43 = getelementptr inbounds [3 x [6 x i8]], [3 x [6 x i8]]* %6, i64 0, i64 1, i64 0
%44 = load i32, i32* %27
%45 = load i32, i32* %30
%46 = load i32, i32* %24
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0), i8* %43, i32 %33, i32 %44, i32 %45, i32 %46)
%48 = getelementptr inbounds [3 x [6 x i8]], [3 x [6 x i8]]* %6, i64 0, i64 2, i64 0
%49 = load i32, i32* %26
%50 = load i32, i32* %29
%51 = load i32, i32* %23
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0), i8* %48, i32 %34, i32 %49, i32 %50, i32 %51)
%53 = icmp sgt i32 %32, 0
%54 = select i1 %53, i1 %37, i1 false
%55 = select i1 %54, i1 %38, i1 false
%56 = select i1 %55, i64 0, i64 %36
%57 = getelementptr inbounds [3 x [6 x i8]], [3 x [6 x i8]]* %6, i64 0, i64 %56, i64 0
%58 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 %56
%59 = load i32, i32* %58
%60 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 %56
%61 = load i32, i32* %60
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0), i8* %57, i32 %59, i32 %61)
%63 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 %56
%64 = load i32, i32* %63
switch i32 %64, label %69 [
i32 0, label %65
i32 1, label %67
]
65: ; preds = %2
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.9, i64 0, i64 0))
br label %71
67: ; preds = %2
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
br label %71
69: ; preds = %2
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %64)
br label %71
71: ; preds = %69, %67, %65
ret i32 0
}