#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 */
typedef int /*<<< orphan*/ line;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
double rhtoah(double, double);
int sscanf(char *, char *, double *, double *);
int /*<<< orphan*/ *stdin;
double strtod(char *, char **);
int main(int argc, char *argv[]) {
  const char *progname;
  int rev = 0;
  FILE *in = stdin;
  double rh, degC;
  char line[128];
  progname = *argv++;
  argc--;
  if (argc > 0 && argv[0][0] == '-' && argv[0][1] == 'r') {
    argv++;
    argc--;
    rev = 1;
  }
  while (argc >= 2) {
    int ok = 0;
    do {
      char *e, *s;
      s = *(argv++);
      argc--;
      rh = strtod(s, &e);
      if (e == s)
        break;
      s = *(argv++);
      argc--;
      degC = strtod(s, &e);
      if (e == s)
        break;
      if (rev) {
        double z;
        z = (rh);
        (rh) = (degC);
        (degC) = z;
      };
      ok = 1;
    } while (0);
    if (ok)
      printf("%f\n", rhtoah(rh, degC));
    else {
      printf("?\n");
      return 0;
    }
    in = NULL;
  }
  if (argc > 0) {
    printf("Syntax: %s [-r] [relative_humidity_percent temperature_Celsius]\n",
           progname);
    return 1;
  }
  if (!in)
    return 0;
  while (fgets(line, sizeof(line), in)) {
    if (sscanf(line, "%lf %lf", &rh, &degC) != 2)
      printf("?\n");
    else {
      if (rev) {
        double z;
        z = (rh);
        (rh) = (degC);
        (degC) = z;
      };
      printf("%f\n", rhtoah(rh, degC));
    }
  }
  fclose(in);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    0x2e61(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    11fa <main+0x9a>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    11fa <main+0x9a>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl 0x1(%rax),%eax
cmp    $0x72,%eax
jne    11fa <main+0x9a>
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
movl   $0x1,-0x1c(%rbp)
jmp    11ff <main+0x9f>
cmpl   $0x2,-0x8(%rbp)
jl     1347 <main+0x1e7>
movl   $0x0,-0xc4(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0xd8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
call   1040 <strtod@plt>
movsd  %xmm0,-0x30(%rbp)
mov    -0xd0(%rbp),%rax
cmp    -0xd8(%rbp),%rax
jne    1266 <main+0x106>
jmp    12f1 <main+0x191>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0xd8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
call   1040 <strtod@plt>
movsd  %xmm0,-0x38(%rbp)
mov    -0xd0(%rbp),%rax
cmp    -0xd8(%rbp),%rax
jne    12b9 <main+0x159>
jmp    12f1 <main+0x191>
cmpl   $0x0,-0x1c(%rbp)
je     12e7 <main+0x187>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0x38(%rbp)
movl   $0x1,-0xc4(%rbp)
cmpl   $0x0,-0xc4(%rbp)
je     1320 <main+0x1c0>
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
call   1030 <rhtoah@plt>
lea    0xcec(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
jmp    133a <main+0x1da>
lea    0xcdd(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1441 <main+0x2e1>
movq   $0x0,-0x28(%rbp)
jmp    11ff <main+0x9f>
cmpl   $0x0,-0x8(%rbp)
jle    136f <main+0x20f>
mov    -0x18(%rbp),%rsi
lea    0xcab(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1441 <main+0x2e1>
cmpq   $0x0,-0x28(%rbp)
jne    1386 <main+0x226>
movl   $0x0,-0x4(%rbp)
jmp    1441 <main+0x2e1>
jmp    138b <main+0x22b>
lea    -0xc0(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    $0x80,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     1431 <main+0x2d1>
lea    -0xc0(%rbp),%rdi
lea    0xc90(%rip),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
call   1080 <sscanf@plt>
cmp    $0x2,%eax
je     13e1 <main+0x281>
lea    0xc2f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    142c <main+0x2cc>
cmpl   $0x0,-0x1c(%rbp)
je     140f <main+0x2af>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0xe8(%rbp),%xmm0
ff
movsd  %xmm0,-0x38(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
call   1030 <rhtoah@plt>
lea    0xbdb(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
jmp    138b <main+0x22b>
mov    -0x28(%rbp),%rdi
call   1050 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    0x2e60(%rip),%rax
mov    (%rax),%r12
mov    $0x1,%r14b
cmp    $0x2,%edi
jl     129c <main+0x12c>
lea    0x8(%rsi),%r15
lea    -0x1(%rdi),%r13d
mov    (%r15),%rax
mov    $0x1,%r14b
cmpb   $0x2d,(%rax)
jne    11bd <main+0x4d>
cmpb   $0x72,0x1(%rax)
jne    11bd <main+0x4d>
lea    0x10(%rsi),%r15
add    $0xfffffffe,%edi
xor    %r14d,%r14d
mov    %edi,%r13d
mov    (%rsi),%rsi
cmp    $0x2,%r13d
jb     127e <main+0x10e>
mov    %rsi,0x18(%rsp)
lea    0x20(%rsp),%rbp
xor    %r12d,%r12d
jmp    1215 <main+0xa5>
nopl   0x0(%rax)
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm1
movsd  %xmm1,(%rsp)
add    $0xfffffffe,%r13d
call   1030 <rhtoah@plt>
lea    0xdff(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
lea    0x2(%r13),%eax
add    $0x10,%r15
cmp    $0x3,%eax
jbe    1279 <main+0x109>
mov    (%r15),%rbx
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1050 <strtod@plt>
movsd  %xmm0,0x8(%rsp)
cmp    %rbx,0x20(%rsp)
je     1268 <main+0xf8>
movsd  %xmm0,0x10(%rsp)
mov    0x8(%r15),%rbx
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1050 <strtod@plt>
movsd  %xmm0,(%rsp)
mov    0x20(%rsp),%rax
cmp    %rbx,%rax
sete   %cl
or     %r14b,%cl
je     11e0 <main+0x70>
movaps %xmm0,%xmm1
cmp    %rbx,%rax
movsd  0x10(%rsp),%xmm0
jne    11f1 <main+0x81>
lea    0xdde(%rip),%rdi
call   1040 <puts@plt>
jmp    135b <main+0x1eb>
mov    0x18(%rsp),%rsi
cmp    $0x1,%r13d
jne    129c <main+0x12c>
lea    0xd79(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x1,%eax
jmp    135d <main+0x1ed>
xor    %eax,%eax
test   %r12,%r12
je     135d <main+0x1ed>
lea    0x20(%rsp),%rdi
mov    $0x80,%esi
mov    %r12,%rdx
call   1080 <fgets@plt>
test   %rax,%rax
je     1353 <main+0x1e3>
lea    0xd7c(%rip),%r15
lea    0x20(%rsp),%rbx
lea    0x8(%rsp),%r13
mov    %rsp,%rbp
jmp    1301 <main+0x191>
nopl   0x0(%rax,%rax,1)
lea    0xd66(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
mov    $0x80,%esi
mov    %r12,%rdx
call   1080 <fgets@plt>
test   %rax,%rax
je     1353 <main+0x1e3>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
mov    %rbp,%rcx
call   1090 <sscanf@plt>
cmp    $0x2,%eax
jne    12e0 <main+0x170>
movsd  0x8(%rsp),%xmm2
movsd  (%rsp),%xmm0
test   %r14b,%r14b
je     1330 <main+0x1c0>
movaps %xmm0,%xmm1
movaps %xmm2,%xmm0
jmp    133e <main+0x1ce>
nop
movsd  %xmm0,0x8(%rsp)
movsd  %xmm2,(%rsp)
movaps %xmm2,%xmm1
call   1030 <rhtoah@plt>
lea    0xcb6(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
jmp    12ec <main+0x17c>
mov    %r12,%rdi
call   1060 <fclose@plt>
xor    %eax,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdin = global i32* null
@.str = [4 x i8] c"%f\0A\00"
@.str.1 = [3 x i8] c"?\0A\00"
@.str.2 = [65 x i8] c"Syntax: %s [-r] [relative_humidity_percent temperature_Celsius]\0A\00"
@.str.3 = [8 x i8] c"%lf %lf\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32*
%9 = alloca double
%10 = alloca double
%11 = alloca [128 x i8]
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca double
%16 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
%17 = load i32*, i32** @stdin
store i32* %17, i32** %8
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i32 1
store i8** %19, i8*** %5
%20 = load i8*, i8** %18
store i8* %20, i8** %6
%21 = load i32, i32* %4
%22 = add nsw i32 %21, -1
store i32 %22, i32* %4
%23 = load i32, i32* %4
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %46
25: ; preds = %2
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 0
%28 = load i8*, i8** %27
%29 = getelementptr inbounds i8, i8* %28, i64 0
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 45
br i1 %32, label %33, label %46
33: ; preds = %25
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 0
%36 = load i8*, i8** %35
%37 = getelementptr inbounds i8, i8* %36, i64 1
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 114
br i1 %40, label %41, label %46
41: ; preds = %33
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i32 1
store i8** %43, i8*** %5
%44 = load i32, i32* %4
%45 = add nsw i32 %44, -1
store i32 %45, i32* %4
store i32 1, i32* %7
br label %46
46: ; preds = %41, %33, %25, %2
br label %47
47: ; preds = %93, %46
%48 = load i32, i32* %4
%49 = icmp sge i32 %48, 2
br i1 %49, label %50, label %94
50: ; preds = %47
store i32 0, i32* %12
br label %51
51: ; preds = %50
%52 = load i8**, i8*** %5
%53 = getelementptr inbounds i8*, i8** %52, i32 1
store i8** %53, i8*** %5
%54 = load i8*, i8** %52
store i8* %54, i8** %14
%55 = load i32, i32* %4
%56 = add nsw i32 %55, -1
store i32 %56, i32* %4
%57 = load i8*, i8** %14
%58 = call double @strtod(i8* %57, i8** %13)
store double %58, double* %9
%59 = load i8*, i8** %13
%60 = load i8*, i8** %14
%61 = icmp eq i8* %59, %60
br i1 %61, label %62, label %63
62: ; preds = %51
br label %83
63: ; preds = %51
%64 = load i8**, i8*** %5
%65 = getelementptr inbounds i8*, i8** %64, i32 1
store i8** %65, i8*** %5
%66 = load i8*, i8** %64
store i8* %66, i8** %14
%67 = load i32, i32* %4
%68 = add nsw i32 %67, -1
store i32 %68, i32* %4
%69 = load i8*, i8** %14
%70 = call double @strtod(i8* %69, i8** %13)
store double %70, double* %10
%71 = load i8*, i8** %13
%72 = load i8*, i8** %14
%73 = icmp eq i8* %71, %72
br i1 %73, label %74, label %75
74: ; preds = %63
br label %83
75: ; preds = %63
%76 = load i32, i32* %7
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %82
78: ; preds = %75
%79 = load double, double* %9
store double %79, double* %15
%80 = load double, double* %10
store double %80, double* %9
%81 = load double, double* %15
store double %81, double* %10
br label %82
82: ; preds = %78, %75
store i32 1, i32* %12
br label %83
83: ; preds = %82, %74, %62
%84 = load i32, i32* %12
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %91
86: ; preds = %83
%87 = load double, double* %9
%88 = load double, double* %10
%89 = call double @rhtoah(double %87, double %88)
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %89)
br label %93
91: ; preds = %83
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %132
93: ; preds = %86
store i32* null, i32** %8
br label %47
94: ; preds = %47
%95 = load i32, i32* %4
%96 = icmp sgt i32 %95, 0
br i1 %96, label %97, label %100
97: ; preds = %94
%98 = load i8*, i8** %6
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.2, i64 0, i64 0), i8* %98)
store i32 1, i32* %3
br label %132
100: ; preds = %94
%101 = load i32*, i32** %8
%102 = icmp ne i32* %101, null
br i1 %102, label %104, label %103
103: ; preds = %100
store i32 0, i32* %3
br label %132
104: ; preds = %100
br label %105
105: ; preds = %128, %104
%106 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%107 = load i32*, i32** %8
%108 = call i64 @fgets(i8* %106, i32 128, i32* %107)
%109 = icmp ne i64 %108, 0
br i1 %109, label %110, label %129
110: ; preds = %105
%111 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%112 = call i32 @sscanf(i8* %111, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), double* %9, double* %10)
%113 = icmp ne i32 %112, 2
br i1 %113, label %114, label %116
114: ; preds = %110
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %128
116: ; preds = %110
%117 = load i32, i32* %7
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %123
119: ; preds = %116
%120 = load double, double* %9
store double %120, double* %16
%121 = load double, double* %10
store double %121, double* %9
%122 = load double, double* %16
store double %122, double* %10
br label %123
123: ; preds = %119, %116
%124 = load double, double* %9
%125 = load double, double* %10
%126 = call double @rhtoah(double %124, double %125)
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %126)
br label %128
128: ; preds = %123, %114
br label %105
129: ; preds = %105
%130 = load i32*, i32** %8
%131 = call i32 @fclose(i32* %130)
store i32 0, i32* %3
br label %132
132: ; preds = %129, %103, %97, %91
%133 = load i32, i32* %3
ret i32 %133
}

LLVM IR (-O2):
@stdin = global i32* null
@.str = [4 x i8] c"%f\0A\00"
@.str.2 = [65 x i8] c"Syntax: %s [-r] [relative_humidity_percent temperature_Celsius]\0A\00"
@.str.3 = [8 x i8] c"%lf %lf\00"
@str.4 = [2 x i8] c"?\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca [128 x i8]
%6 = alloca i8*
%7 = load i32*, i32** @stdin
%8 = bitcast double* %3 to i8*
%9 = bitcast double* %4 to i8*
%10 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %1
%13 = add nsw i32 %0, -1
%14 = icmp sgt i32 %0, 1
br i1 %14, label %15, label %66
15: ; preds = %2
%16 = load i8*, i8** %11
%17 = load i8, i8* %16
%18 = icmp eq i8 %17, 45
br i1 %18, label %19, label %26
19: ; preds = %15
%20 = getelementptr inbounds i8, i8* %16, i64 1
%21 = load i8, i8* %20
%22 = icmp eq i8 %21, 114
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = getelementptr inbounds i8*, i8** %1, i64 2
%25 = add nsw i32 %0, -2
br label %26
26: ; preds = %23, %19, %15
%27 = phi i8** [ %24, %23 ], [ %11, %19 ], [ %11, %15 ]
%28 = phi i1 [ false, %23 ], [ true, %19 ], [ true, %15 ]
%29 = phi i32 [ %25, %23 ], [ %13, %19 ], [ %13, %15 ]
%30 = icmp ugt i32 %29, 1
br i1 %30, label %31, label %60
31: ; preds = %26
%32 = bitcast i8** %6 to i8*
br label %33
33: ; preds = %31, %54
%34 = phi i32 [ %29, %31 ], [ %45, %54 ]
%35 = phi i8** [ %27, %31 ], [ %43, %54 ]
%36 = load i8*, i8** %35
%37 = call double @strtod(i8* %36, i8** %6)
store double %37, double* %3
%38 = load i8*, i8** %6
%39 = icmp eq i8* %38, %36
br i1 %39, label %40, label %41
40: ; preds = %33
br label %52
41: ; preds = %33
%42 = getelementptr inbounds i8*, i8** %35, i64 1
%43 = getelementptr inbounds i8*, i8** %35, i64 2
%44 = load i8*, i8** %42
%45 = add nsw i32 %34, -2
%46 = call double @strtod(i8* %44, i8** %6)
store double %46, double* %4
%47 = load i8*, i8** %6
%48 = icmp eq i8* %47, %44
%49 = or i1 %28, %48
br i1 %49, label %51, label %50
50: ; preds = %41
store double %46, double* %3
store double %37, double* %4
br label %54
51: ; preds = %41
br i1 %48, label %52, label %54
52: ; preds = %51, %40
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.4, i64 0, i64 0))
br label %92
54: ; preds = %51, %50
%55 = phi double [ %46, %51 ], [ %37, %50 ]
%56 = phi double [ %37, %51 ], [ %46, %50 ]
%57 = tail call double @rhtoah(double %56, double %55)
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %57)
%59 = icmp ugt i32 %34, 3
br i1 %59, label %33, label %60
60: ; preds = %54, %26
%61 = phi i32* [ %7, %26 ], [ null, %54 ]
%62 = phi i32 [ %29, %26 ], [ %45, %54 ]
%63 = icmp eq i32 %62, 1
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.2, i64 0, i64 0), i8* %12)
br label %92
66: ; preds = %2, %60
%67 = phi i32* [ %61, %60 ], [ %7, %2 ]
%68 = phi i1 [ %28, %60 ], [ true, %2 ]
%69 = icmp eq i32* %67, null
br i1 %69, label %92, label %70
70: ; preds = %66
%71 = call i64 @fgets(i8* %10, i32 128, i32* %67)
%72 = icmp eq i64 %71, 0
br i1 %72, label %90, label %73
73: ; preds = %70, %87
%74 = call i32 @sscanf(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), double* %3, double* %4)
%75 = icmp eq i32 %74, 2
br i1 %75, label %78, label %76
76: ; preds = %73
%77 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.4, i64 0, i64 0))
br label %87
78: ; preds = %73
%79 = load double, double* %3
%80 = load double, double* %4
br i1 %68, label %82, label %81
81: ; preds = %78
store double %80, double* %3
store double %79, double* %4
br label %82
82: ; preds = %78, %81
%83 = phi double [ %79, %81 ], [ %80, %78 ]
%84 = phi double [ %80, %81 ], [ %79, %78 ]
%85 = call double @rhtoah(double %84, double %83)
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %85)
br label %87
87: ; preds = %82, %76
%88 = call i64 @fgets(i8* %10, i32 128, i32* %67)
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %73
90: ; preds = %87, %70
%91 = call i32 @fclose(i32* %67)
br label %92
92: ; preds = %52, %66, %90, %64
%93 = phi i32 [ 1, %64 ], [ 0, %90 ], [ 0, %66 ], [ 0, %52 ]
ret i32 %93
}