#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 *);
double c_to_f(double);
double c_to_k(double);
double f_to_c(double);
double f_to_k(double);
double k_to_c(double);
double k_to_f(double);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  if (argc != 3) {
    printf("\nUsage: temp_convert CONVERSION_SPECIFIER TEMPERATURE\n"
           "Example: temp_convert --FtoC 32\n\n"
           "Possilbe options:\n"
           "--FtoC\n"
           "--FtoK\n"
           "--CtoF\n"
           "--CtoK\n"
           "--KtoF\n"
           "--Ktoc\n\n");
    return 1;
  }
  double input_temp = atof(argv[2]);
  if (strcmp(argv[1], "--FtoC") == 0) {
    printf("%6.3f %sF = %6.3f %sC\n", input_temp, "°", f_to_c(input_temp), "°");
  } else if (strcmp(argv[1], "--FtoK") == 0) {
    printf("%6.3f %sF = %6.3f K\n", input_temp, "°", f_to_k(input_temp));
  } else if (strcmp(argv[1], "--CtoF") == 0) {
    printf("%6.3f %sC = %6.3f %sF\n", input_temp, "°", c_to_f(input_temp), "°");
  } else if (strcmp(argv[1], "--CtoK") == 0) {
    printf("%6.3f %sC = %6.3f K\n", input_temp, "°", c_to_k(input_temp));
  } else if (strcmp(argv[1], "--KtoF") == 0) {
    printf("%6.3f K = %6.3f %sF\n", input_temp, k_to_f(input_temp), "°");
  } else if (strcmp(argv[1], "--KtoC") == 0) {
    printf("%6.3f K = %6.3f %sC\n", input_temp, k_to_c(input_temp), "°");
  } else {
    printf("Sorry, something went wrong.\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     11ca <main+0x3a>
lea    0xe49(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1408 <main+0x278>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1040 <atof@plt>
movsd  %xmm0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xeaa(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1233 <main+0xa3>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1090 <f_to_c@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
lea    0xe7f(%rip),%rdi
lea    0xe8f(%rip),%rdx
mov    %rdx,%rsi
mov    $0x2,%al
call   1050 <printf@plt>
jmp    1401 <main+0x271>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe74(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1287 <main+0xf7>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
call   10a0 <f_to_k@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
lea    0xe49(%rip),%rdi
lea    0xe38(%rip),%rsi
mov    $0x2,%al
call   1050 <printf@plt>
jmp    13fc <main+0x26c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe3c(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    12de <main+0x14e>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1030 <c_to_f@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
lea    0xe11(%rip),%rdi
lea    0xde4(%rip),%rdx
mov    %rdx,%rsi
mov    $0x2,%al
call   1050 <printf@plt>
jmp    13f7 <main+0x267>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe03(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1332 <main+0x1a2>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1080 <c_to_k@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
lea    0xdd8(%rip),%rdi
lea    0xd8d(%rip),%rsi
mov    $0x2,%al
call   1050 <printf@plt>
jmp    13f2 <main+0x262>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdcb(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1386 <main+0x1f6>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1060 <k_to_f@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
lea    0xda0(%rip),%rdi
lea    0xd39(%rip),%rsi
mov    $0x2,%al
call   1050 <printf@plt>
jmp    13ed <main+0x25d>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd93(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    13da <main+0x24a>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm0
call   10b0 <k_to_c@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
lea    0xd68(%rip),%rdi
lea    0xce5(%rip),%rsi
mov    $0x2,%al
call   1050 <printf@plt>
jmp    13e8 <main+0x258>
lea    0xd63(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13ed <main+0x25d>
jmp    13f2 <main+0x262>
jmp    13f7 <main+0x267>
jmp    13fc <main+0x26c>
jmp    1401 <main+0x271>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
cmp    $0x3,%edi
jne    1267 <main+0xc7>
mov    %rsi,%rbx
mov    0x10(%rsi),%rdi
call   1050 <atof@plt>
movsd  %xmm0,0x8(%rsp)
mov    0x8(%rbx),%rdi
lea    0xe35(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     127d <main+0xdd>
mov    0x8(%rbx),%rdi
lea    0xe3d(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1294 <main+0xf4>
mov    0x8(%rbx),%rdi
lea    0xe40(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12ab <main+0x10b>
mov    0x8(%rbx),%rdi
lea    0xe45(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12d9 <main+0x139>
mov    0x8(%rbx),%rdi
lea    0xe48(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1304 <main+0x164>
mov    0x8(%rbx),%rdi
lea    0xe4b(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     131b <main+0x17b>
lea    0xe52(%rip),%rdi
call   1040 <puts@plt>
jmp    1344 <main+0x1a4>
lea    0xe5e(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%eax
jmp    1346 <main+0x1a6>
movsd  0x8(%rsp),%xmm0
call   10a0 <f_to_c@plt>
movaps %xmm0,%xmm1
lea    0xd75(%rip),%rdi
jmp    12c0 <main+0x120>
movsd  0x8(%rsp),%xmm0
call   10b0 <f_to_k@plt>
movaps %xmm0,%xmm1
lea    0xd7f(%rip),%rdi
jmp    12ee <main+0x14e>
movsd  0x8(%rsp),%xmm0
call   1030 <c_to_f@plt>
movaps %xmm0,%xmm1
lea    0xd84(%rip),%rdi
lea    0xd57(%rip),%rdx
movsd  0x8(%rsp),%xmm0
mov    %rdx,%rsi
mov    $0x2,%al
call   1060 <printf@plt>
jmp    1344 <main+0x1a4>
movsd  0x8(%rsp),%xmm0
call   1090 <c_to_k@plt>
movaps %xmm0,%xmm1
lea    0xd74(%rip),%rdi
lea    0xd29(%rip),%rsi
movsd  0x8(%rsp),%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
jmp    1344 <main+0x1a4>
movsd  0x8(%rsp),%xmm0
call   1070 <k_to_f@plt>
movaps %xmm0,%xmm1
lea    0xd65(%rip),%rdi
jmp    1330 <main+0x190>
movsd  0x8(%rsp),%xmm0
call   10c0 <k_to_c@plt>
movaps %xmm0,%xmm1
lea    0xd6a(%rip),%rdi
lea    0xce7(%rip),%rsi
movsd  0x8(%rsp),%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [149 x i8] c"\0AUsage: temp_convert CONVERSION_SPECIFIER TEMPERATURE\0AExample: temp_convert --FtoC 32\0A\0APossilbe options:\0A--FtoC\0A--FtoK\0A--CtoF\0A--CtoK\0A--KtoF\0A--Ktoc\0A\0A\00"
@.str.1 = [7 x i8] c"--FtoC\00"
@.str.2 = [23 x i8] c"%6.3f %sF = %6.3f %sC\0A\00"
@.str.3 = [3 x i8] c"\C2\B0\00"
@.str.4 = [7 x i8] c"--FtoK\00"
@.str.5 = [21 x i8] c"%6.3f %sF = %6.3f K\0A\00"
@.str.6 = [7 x i8] c"--CtoF\00"
@.str.7 = [23 x i8] c"%6.3f %sC = %6.3f %sF\0A\00"
@.str.8 = [7 x i8] c"--CtoK\00"
@.str.9 = [21 x i8] c"%6.3f %sC = %6.3f K\0A\00"
@.str.10 = [7 x i8] c"--KtoF\00"
@.str.11 = [21 x i8] c"%6.3f K = %6.3f %sF\0A\00"
@.str.12 = [7 x i8] c"--KtoC\00"
@.str.13 = [21 x i8] c"%6.3f K = %6.3f %sC\0A\00"
@.str.14 = [30 x i8] c"Sorry, something went wrong.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = icmp ne i32 %7, 3
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %89
11: ; preds = %2
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 2
%14 = load i8*, i8** %13
%15 = call double @atof(i8* %14)
store double %15, double* %6
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %26
21: ; preds = %11
%22 = load double, double* %6
%23 = load double, double* %6
%24 = call double @f_to_c(double %23)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), double %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %88
26: ; preds = %11
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%30 = call i64 @strcmp(i8* %29, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %26
%33 = load double, double* %6
%34 = load double, double* %6
%35 = call double @f_to_k(double %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), double %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), double %35)
br label %87
37: ; preds = %26
%38 = load i8**, i8*** %5
%39 = getelementptr inbounds i8*, i8** %38, i64 1
%40 = load i8*, i8** %39
%41 = call i64 @strcmp(i8* %40, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %48
43: ; preds = %37
%44 = load double, double* %6
%45 = load double, double* %6
%46 = call double @c_to_f(double %45)
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), double %44, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), double %46, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %86
48: ; preds = %37
%49 = load i8**, i8*** %5
%50 = getelementptr inbounds i8*, i8** %49, i64 1
%51 = load i8*, i8** %50
%52 = call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %59
54: ; preds = %48
%55 = load double, double* %6
%56 = load double, double* %6
%57 = call double @c_to_k(double %56)
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), double %55, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), double %57)
br label %85
59: ; preds = %48
%60 = load i8**, i8*** %5
%61 = getelementptr inbounds i8*, i8** %60, i64 1
%62 = load i8*, i8** %61
%63 = call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %70
65: ; preds = %59
%66 = load double, double* %6
%67 = load double, double* %6
%68 = call double @k_to_f(double %67)
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), double %66, double %68, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %84
70: ; preds = %59
%71 = load i8**, i8*** %5
%72 = getelementptr inbounds i8*, i8** %71, i64 1
%73 = load i8*, i8** %72
%74 = call i64 @strcmp(i8* %73, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %81
76: ; preds = %70
%77 = load double, double* %6
%78 = load double, double* %6
%79 = call double @k_to_c(double %78)
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), double %77, double %79, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %83
81: ; preds = %70
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0))
br label %83
83: ; preds = %81, %76
br label %84
84: ; preds = %83, %65
br label %85
85: ; preds = %84, %54
br label %86
86: ; preds = %85, %43
br label %87
87: ; preds = %86, %32
br label %88
88: ; preds = %87, %21
store i32 0, i32* %3
br label %89
89: ; preds = %88, %9
%90 = load i32, i32* %3
ret i32 %90
}

LLVM IR (-O2):
@.str.1 = [7 x i8] c"--FtoC\00"
@.str.2 = [23 x i8] c"%6.3f %sF = %6.3f %sC\0A\00"
@.str.3 = [3 x i8] c"\C2\B0\00"
@.str.4 = [7 x i8] c"--FtoK\00"
@.str.5 = [21 x i8] c"%6.3f %sF = %6.3f K\0A\00"
@.str.6 = [7 x i8] c"--CtoF\00"
@.str.7 = [23 x i8] c"%6.3f %sC = %6.3f %sF\0A\00"
@.str.8 = [7 x i8] c"--CtoK\00"
@.str.9 = [21 x i8] c"%6.3f %sC = %6.3f K\0A\00"
@.str.10 = [7 x i8] c"--KtoF\00"
@.str.11 = [21 x i8] c"%6.3f K = %6.3f %sF\0A\00"
@.str.12 = [7 x i8] c"--KtoC\00"
@.str.13 = [21 x i8] c"%6.3f K = %6.3f %sC\0A\00"
@str = [29 x i8] c"Sorry, something went wrong.\00"
@str.15 = [148 x i8] c"\0AUsage: temp_convert CONVERSION_SPECIFIER TEMPERATURE\0AExample: temp_convert --FtoC 32\0A\0APossilbe options:\0A--FtoC\0A--FtoK\0A--CtoF\0A--CtoK\0A--KtoF\0A--Ktoc\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 3
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([148 x i8], [148 x i8]* @str.15, i64 0, i64 0))
br label %54
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 2
%8 = load i8*, i8** %7
%9 = tail call double @atof(i8* %8)
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %6
%15 = tail call double @f_to_c(double %9)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), double %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %54
17: ; preds = %6
%18 = load i8*, i8** %10
%19 = tail call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %17
%22 = tail call double @f_to_k(double %9)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), double %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), double %22)
br label %54
24: ; preds = %17
%25 = load i8*, i8** %10
%26 = tail call i64 @strcmp(i8* %25, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %24
%29 = tail call double @c_to_f(double %9)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), double %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), double %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %54
31: ; preds = %24
%32 = load i8*, i8** %10
%33 = tail call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = tail call double @c_to_k(double %9)
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), double %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), double %36)
br label %54
38: ; preds = %31
%39 = load i8*, i8** %10
%40 = tail call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %38
%43 = tail call double @k_to_f(double %9)
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), double %9, double %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %54
45: ; preds = %38
%46 = load i8*, i8** %10
%47 = tail call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %45
%50 = tail call double @k_to_c(double %9)
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), double %9, double %50, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %54
52: ; preds = %45
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
br label %54
54: ; preds = %14, %28, %42, %52, %49, %35, %21, %4
%55 = phi i32 [ 1, %4 ], [ 0, %21 ], [ 0, %35 ], [ 0, %49 ], [ 0, %52 ], [ 0, %42 ], [ 0, %28 ], [ 0, %14 ]
ret i32 %55
}