#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 */
float atof(char *);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  float x = 0.0, y = 0.0, a = 0.0;
  if (argc > 4 || argc < 2) {
    printf("\n\tmicroval (Hudson Lacerda - 2004-2010)\n\n");
    printf("\tis a program to calculate the value to be used in\n"
           "\tabcm2ps' microtone accidental definitions.\n\n"
           "USAGE:\n\nmicroval <numerator> <denominator>\n"
           "\tPrint <micro_value>, the number to be used in "
           "the function name.\n\n"
           "microval <micro_value>\n"
           "\tPrint the values of <numerator> and <denominator>\n\n"
           "microval <numerator> <denominator> <accidental>\n"
           "\tprints <tclabc_micro_value>, accidental for tclabc."
           "\n\n");
    return 0;
  }
  x = atof(argv[1]);
  if (argc >= 3) {
    y = atof(argv[2]);
    if (x > 256.0 || y > 256.0 || x < 1 || y < 1) {
      printf("ERROR: <numerator> and <denominator> must be"
             " integers from 1 to 256\n");
      return 0;
    }
    if (argc == 3)
      printf("<micro_value> = %ld\n",
             (long int)((256.0 * (x - 1.0)) + (y - 1.0)));
    else {
      switch (argv[3][0]) {
      case '_':
        a = 3;
        if (argv[3][1] == '_')
          a = 5;
        break;
      case '=':
        a = 2;
        break;
      case '^':
        a = 1;
        if (argv[3][1] == '^')
          a = 4;
        break;
      default:
        printf("ERROR: <accidental> should be "
               "\"^\", \"_\", \"=\", \"^^\" or \"__\"\n");
        return 0;
      }
      printf("<tclabc_micro_value> = %ld\n",
             (long int)(((256.0 * (x - 1.0)) + (y - 1.0)) * 8.0 + a));
    }
  } else {
    if (x > 65535.0 || x < 0) {
      printf("ERROR: <micro_value> cannot be"
             " negative or greater than 65535\n");
      return 0;
    }
    printf("<numerator>   = %ld\n", 1L + (((long int)x) / 256L));
    printf("<denominator> = %ld\n", 1L + (((long int)x) % 256L));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
cmpl   $0x4,-0x8(%rbp)
jg     1162 <main+0x42>
cmpl   $0x2,-0x8(%rbp)
jge    118a <main+0x6a>
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xee7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1458 <main+0x338>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <atof@plt>
movss  %xmm0,-0x14(%rbp)
cmpl   $0x3,-0x8(%rbp)
jl     13c5 <main+0x2a5>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1030 <atof@plt>
movss  %xmm0,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe3f(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     1212 <main+0xf2>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe24(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     1212 <main+0xf2>
movss  0xe2a(%rip),%xmm0
ucomiss -0x14(%rbp),%xmm0
ja     1212 <main+0xf2>
movss  0xe18(%rip),%xmm0
ucomiss -0x18(%rbp),%xmm0
jbe    122c <main+0x10c>
lea    0xfc5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1458 <main+0x338>
cmpl   $0x3,-0x8(%rbp)
jne    1288 <main+0x168>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdd1(%rip),%xmm1
subsd  %xmm1,%xmm0
movss  -0x18(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xdbc(%rip),%xmm2
subsd  %xmm2,%xmm1
movsd  0xda0(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rsi
lea    0xfa7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13c0 <main+0x2a0>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
movsbl (%rax),%eax
mov    %eax,-0x20(%rbp)
sub    $0x3d,%eax
je     12fa <main+0x1da>
jmp    12a4 <main+0x184>
mov    -0x20(%rbp),%eax
sub    $0x5e,%eax
je     130c <main+0x1ec>
jmp    12b5 <main+0x195>
mov    -0x20(%rbp),%eax
sub    $0x5f,%eax
jne    1340 <main+0x220>
jmp    12c6 <main+0x1a6>
movss  0xd5e(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
movsbl 0x1(%rax),%eax
cmp    $0x5f,%eax
jne    12f5 <main+0x1d5>
movss  0xd40(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
jmp    135a <main+0x23a>
movss  0xd26(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
jmp    135a <main+0x23a>
movss  0xd0c(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
movsbl 0x1(%rax),%eax
cmp    $0x5e,%eax
jne    133b <main+0x21b>
movss  0xcee(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
jmp    135a <main+0x23a>
lea    0xef1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1458 <main+0x338>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xcad(%rip),%xmm1
subsd  %xmm1,%xmm0
movss  -0x18(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xc98(%rip),%xmm2
subsd  %xmm2,%xmm1
movsd  0xc7c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movss  -0x1c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xc6b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rsi
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1451 <main+0x331>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc2a(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     13ed <main+0x2cd>
xorps  %xmm0,%xmm0
ucomiss -0x14(%rbp),%xmm0
jbe    1407 <main+0x2e7>
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1458 <main+0x338>
cvttss2si -0x14(%rbp),%rax
mov    $0x100,%ecx
cqto
idiv   %rcx
mov    %rax,%rsi
add    $0x1,%rsi
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cvttss2si -0x14(%rbp),%rax
mov    $0x100,%ecx
cqto
idiv   %rcx
mov    %rdx,%rsi
add    $0x1,%rsi
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%ebx
lea    -0x5(%rbx),%eax
cmp    $0xfffffffc,%eax
ja     115b <main+0x2b>
lea    0x100a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1027(%rip),%rdi
call   1030 <puts@plt>
jmp    12fc <main+0x1cc>
mov    %rsi,%r14
mov    0x8(%rsi),%rdi
call   1040 <atof@plt>
cmp    $0x3,%ebx
jb     119b <main+0x6b>
mov    0x10(%r14),%rdi
movss  %xmm0,0x4(%rsp)
call   1040 <atof@plt>
movss  0x4(%rsp),%xmm2
ucomiss 0xe7c(%rip),%xmm2
jbe    11fe <main+0xce>
lea    0xf7a(%rip),%rdi
call   1030 <puts@plt>
jmp    12fc <main+0x1cc>
ucomiss 0xe5e(%rip),%xmm0
ja     1262 <main+0x132>
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
ja     1262 <main+0x132>
cvttss2si %xmm0,%r14
lea    0xff(%r14),%rbx
test   %r14,%r14
cmovns %r14,%rbx
mov    %rbx,%rsi
sar    $0x8,%rsi
add    $0x1,%rsi
lea    0xe90(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
and    $0xffffffffffffff00,%rbx
neg    %rbx
lea    (%r14,%rbx,1),%rsi
add    $0x1,%rsi
lea    0xe85(%rip),%rdi
jmp    12f5 <main+0x1c5>
movss  0xe02(%rip),%xmm1
ucomiss %xmm0,%xmm1
ja     118a <main+0x5a>
ucomiss 0xdee(%rip),%xmm0
ja     118a <main+0x5a>
ucomiss %xmm2,%xmm1
ja     118a <main+0x5a>
xorps  %xmm1,%xmm1
cvtss2sd %xmm2,%xmm1
cvtss2sd %xmm0,%xmm0
cmp    $0x3,%ebx
jne    1273 <main+0x143>
movsd  0xde3(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  0xddf(%rip),%xmm1
addsd  %xmm2,%xmm0
addsd  %xmm0,%xmm1
cvttsd2si %xmm1,%rsi
lea    0xddb(%rip),%rdi
jmp    12f5 <main+0x1c5>
lea    0xe2a(%rip),%rdi
call   1030 <puts@plt>
jmp    12fc <main+0x1cc>
mov    0x18(%r14),%rax
movsbl (%rax),%ecx
cmp    $0x3d,%ecx
je     129b <main+0x16b>
cmp    $0x5e,%ecx
je     12a5 <main+0x175>
cmp    $0x5f,%ecx
jne    1306 <main+0x1d6>
xor    %ecx,%ecx
cmpb   $0x5f,0x1(%rax)
sete   %cl
lea    0xd7f(%rip),%rax
jmp    12b5 <main+0x185>
movss  0xd69(%rip),%xmm2
jmp    12ba <main+0x18a>
xor    %ecx,%ecx
cmpb   $0x5e,0x1(%rax)
sete   %cl
lea    0xd5b(%rip),%rax
movss  (%rax,%rcx,4),%xmm2
movsd  0xd5e(%rip),%xmm3
addsd  %xmm3,%xmm1
mulsd  0xd5a(%rip),%xmm1
addsd  %xmm3,%xmm0
addsd  %xmm0,%xmm1
mulsd  0xd52(%rip),%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
addsd  %xmm0,%xmm1
cvttsd2si %xmm1,%rsi
lea    0xd58(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xdc4(%rip),%rdi
call   1030 <puts@plt>
jmp    12fc <main+0x1cc>

LLVM IR (-O0):
@.str = [42 x i8] c"\0A\09microval (Hudson Lacerda - 2004-2010)\0A\0A\00"
@.str.1 = [384 x i8] c"\09is a program to calculate the value to be used in\0A\09abcm2ps' microtone accidental definitions.\0A\0AUSAGE:\0A\0Amicroval <numerator> <denominator>\0A\09Print <micro_value>, the number to be used in the function name.\0A\0Amicroval <micro_value>\0A\09Print the values of <numerator> and <denominator>\0A\0Amicroval <numerator> <denominator> <accidental>\0A\09prints <tclabc_micro_value>, accidental for tclabc.\0A\0A\00"
@.str.2 = [69 x i8] c"ERROR: <numerator> and <denominator> must be integers from 1 to 256\0A\00"
@.str.3 = [21 x i8] c"<micro_value> = %ld\0A\00"
@.str.4 = [59 x i8] c"ERROR: <accidental> should be \22^\22, \22_\22, \22=\22, \22^^\22 or \22__\22\0A\00"
@.str.5 = [28 x i8] c"<tclabc_micro_value> = %ld\0A\00"
@.str.6 = [63 x i8] c"ERROR: <micro_value> cannot be negative or greater than 65535\0A\00"
@.str.7 = [21 x i8] c"<numerator> = %ld\0A\00"
@.str.8 = [21 x i8] c"<denominator> = %ld\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca float
%8 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store float 0.000000e+00, float* %6
store float 0.000000e+00, float* %7
store float 0.000000e+00, float* %8
%9 = load i32, i32* %4
%10 = icmp sgt i32 %9, 4
br i1 %10, label %14, label %11
11: ; preds = %2
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %11, %2
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([384 x i8], [384 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %122
17: ; preds = %11
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 1
%20 = load i8*, i8** %19
%21 = call float @atof(i8* %20)
store float %21, float* %6
%22 = load i32, i32* %4
%23 = icmp sge i32 %22, 3
br i1 %23, label %24, label %101
24: ; preds = %17
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 2
%27 = load i8*, i8** %26
%28 = call float @atof(i8* %27)
store float %28, float* %7
%29 = load float, float* %6
%30 = fpext float %29 to double
%31 = fcmp ogt double %30, 2.560000e+02
br i1 %31, label %42, label %32
32: ; preds = %24
%33 = load float, float* %7
%34 = fpext float %33 to double
%35 = fcmp ogt double %34, 2.560000e+02
br i1 %35, label %42, label %36
36: ; preds = %32
%37 = load float, float* %6
%38 = fcmp olt float %37, 1.000000e+00
br i1 %38, label %42, label %39
39: ; preds = %36
%40 = load float, float* %7
%41 = fcmp olt float %40, 1.000000e+00
br i1 %41, label %42, label %44
42: ; preds = %39, %36, %32, %24
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %3
br label %122
44: ; preds = %39
%45 = load i32, i32* %4
%46 = icmp eq i32 %45, 3
br i1 %46, label %47, label %57
47: ; preds = %44
%48 = load float, float* %6
%49 = fpext float %48 to double
%50 = fsub double %49, 1.000000e+00
%51 = load float, float* %7
%52 = fpext float %51 to double
%53 = fsub double %52, 1.000000e+00
%54 = call double @llvm.fmuladd.f64(double 2.560000e+02, double %50, double %53)
%55 = fptosi double %54 to i64
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i64 %55)
br label %100
57: ; preds = %44
%58 = load i8**, i8*** %5
%59 = getelementptr inbounds i8*, i8** %58, i64 3
%60 = load i8*, i8** %59
%61 = getelementptr inbounds i8, i8* %60, i64 0
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
switch i32 %63, label %85 [
i32 95, label %64
i32 61, label %74
i32 94, label %75
]
64: ; preds = %57
store float 3.000000e+00, float* %8
%65 = load i8**, i8*** %5
%66 = getelementptr inbounds i8*, i8** %65, i64 3
%67 = load i8*, i8** %66
%68 = getelementptr inbounds i8, i8* %67, i64 1
%69 = load i8, i8* %68
%70 = sext i8 %69 to i32
%71 = icmp eq i32 %70, 95
br i1 %71, label %72, label %73
72: ; preds = %64
store float 5.000000e+00, float* %8
br label %73
73: ; preds = %72, %64
br label %87
74: ; preds = %57
store float 2.000000e+00, float* %8
br label %87
75: ; preds = %57
store float 1.000000e+00, float* %8
%76 = load i8**, i8*** %5
%77 = getelementptr inbounds i8*, i8** %76, i64 3
%78 = load i8*, i8** %77
%79 = getelementptr inbounds i8, i8* %78, i64 1
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 94
br i1 %82, label %83, label %84
83: ; preds = %75
store float 4.000000e+00, float* %8
br label %84
84: ; preds = %83, %75
br label %87
85: ; preds = %57
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %3
br label %122
87: ; preds = %84, %74, %73
%88 = load float, float* %6
%89 = fpext float %88 to double
%90 = fsub double %89, 1.000000e+00
%91 = load float, float* %7
%92 = fpext float %91 to double
%93 = fsub double %92, 1.000000e+00
%94 = call double @llvm.fmuladd.f64(double 2.560000e+02, double %90, double %93)
%95 = load float, float* %8
%96 = fpext float %95 to double
%97 = call double @llvm.fmuladd.f64(double %94, double 8.000000e+00, double %96)
%98 = fptosi double %97 to i64
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i64 %98)
br label %100
100: ; preds = %87, %47
br label %121
101: ; preds = %17
%102 = load float, float* %6
%103 = fpext float %102 to double
%104 = fcmp ogt double %103, 6.553500e+04
br i1 %104, label %108, label %105
105: ; preds = %101
%106 = load float, float* %6
%107 = fcmp olt float %106, 0.000000e+00
br i1 %107, label %108, label %110
108: ; preds = %105, %101
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %3
br label %122
110: ; preds = %105
%111 = load float, float* %6
%112 = fptosi float %111 to i64
%113 = sdiv i64 %112, 256
%114 = add nsw i64 1, %113
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i64 %114)
%116 = load float, float* %6
%117 = fptosi float %116 to i64
%118 = srem i64 %117, 256
%119 = add nsw i64 1, %118
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i64 %119)
br label %121
121: ; preds = %110, %100
store i32 0, i32* %3
br label %122
122: ; preds = %121, %108, %85, %42, %14
%123 = load i32, i32* %3
ret i32 %123
}

LLVM IR (-O2):
@.str.3 = [21 x i8] c"<micro_value> = %ld\0A\00"
@.str.5 = [28 x i8] c"<tclabc_micro_value> = %ld\0A\00"
@.str.7 = [21 x i8] c"<numerator> = %ld\0A\00"
@.str.8 = [21 x i8] c"<denominator> = %ld\0A\00"
@str = [62 x i8] c"ERROR: <micro_value> cannot be negative or greater than 65535\00"
@str.9 = [58 x i8] c"ERROR: <accidental> should be \22^\22, \22_\22, \22=\22, \22^^\22 or \22__\22\00"
@str.10 = [68 x i8] c"ERROR: <numerator> and <denominator> must be integers from 1 to 256\00"
@str.11 = [41 x i8] c"\0A\09microval (Hudson Lacerda - 2004-2010)\0A\00"
@str.12 = [383 x i8] c"\09is a program to calculate the value to be used in\0A\09abcm2ps' microtone accidental definitions.\0A\0AUSAGE:\0A\0Amicroval <numerator> <denominator>\0A\09Print <micro_value>, the number to be used in the function name.\0A\0Amicroval <micro_value>\0A\09Print the values of <numerator> and <denominator>\0A\0Amicroval <numerator> <denominator> <accidental>\0A\09prints <tclabc_micro_value>, accidental for tclabc.\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = add i32 %0, -5
%4 = icmp ult i32 %3, -3
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.11, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([383 x i8], [383 x i8]* @str.12, i64 0, i64 0))
br label %76
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call float @atof(i8* %10)
%12 = icmp ugt i32 %0, 2
br i1 %12, label %13, label %62
13: ; preds = %8
%14 = getelementptr inbounds i8*, i8** %1, i64 2
%15 = load i8*, i8** %14
%16 = tail call float @atof(i8* %15)
%17 = fpext float %11 to double
%18 = fcmp ogt float %11, 2.560000e+02
br i1 %18, label %26, label %19
19: ; preds = %13
%20 = fpext float %16 to double
%21 = fcmp ogt float %16, 2.560000e+02
%22 = fcmp olt float %11, 1.000000e+00
%23 = select i1 %21, i1 true, i1 %22
%24 = fcmp olt float %16, 1.000000e+00
%25 = or i1 %24, %23
br i1 %25, label %26, label %28
26: ; preds = %19, %13
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.10, i64 0, i64 0))
br label %76
28: ; preds = %19
%29 = icmp eq i32 %0, 3
br i1 %29, label %30, label %36
30: ; preds = %28
%31 = fadd double %17, -1.000000e+00
%32 = fadd double %20, -1.000000e+00
%33 = tail call double @llvm.fmuladd.f64(double %31, double 2.560000e+02, double %32)
%34 = fptosi double %33 to i64
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i64 %34)
br label %76
36: ; preds = %28
%37 = getelementptr inbounds i8*, i8** %1, i64 3
%38 = load i8*, i8** %37
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
switch i32 %40, label %51 [
i32 95, label %41
i32 61, label %53
i32 94, label %46
]
41: ; preds = %36
%42 = getelementptr inbounds i8, i8* %38, i64 1
%43 = load i8, i8* %42
%44 = icmp eq i8 %43, 95
%45 = select i1 %44, float 5.000000e+00, float 3.000000e+00
br label %53
46: ; preds = %36
%47 = getelementptr inbounds i8, i8* %38, i64 1
%48 = load i8, i8* %47
%49 = icmp eq i8 %48, 94
%50 = select i1 %49, float 4.000000e+00, float 1.000000e+00
br label %53
51: ; preds = %36
%52 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.9, i64 0, i64 0))
br label %76
53: ; preds = %36, %46, %41
%54 = phi float [ %50, %46 ], [ %45, %41 ], [ 2.000000e+00, %36 ]
%55 = fadd double %17, -1.000000e+00
%56 = fadd double %20, -1.000000e+00
%57 = tail call double @llvm.fmuladd.f64(double %55, double 2.560000e+02, double %56)
%58 = fpext float %54 to double
%59 = tail call double @llvm.fmuladd.f64(double %57, double 8.000000e+00, double %58)
%60 = fptosi double %59 to i64
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i64 %60)
br label %76
62: ; preds = %8
%63 = fcmp ogt float %11, 6.553500e+04
%64 = fcmp olt float %11, 0.000000e+00
%65 = or i1 %63, %64
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str, i64 0, i64 0))
br label %76
68: ; preds = %62
%69 = fptosi float %11 to i64
%70 = sdiv i64 %69, 256
%71 = add nsw i64 %70, 1
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i64 %71)
%73 = srem i64 %69, 256
%74 = add nsw i64 %73, 1
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i64 %74)
br label %76
76: ; preds = %68, %53, %30, %66, %51, %26, %5
ret i32 0
}