#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 UINT_MAX;
int /*<<< orphan*/ cf_iter(double, double, double);
double cfrac_log(double, unsigned int);
double log(double);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
double strtod(char *, char **);
int /*<<< orphan*/ taylor_iter(double, double, double);
double taylor_log(double, unsigned int);
int main(int argc, char *argv[]) {
  if ((strcmp(argv[1], "--log") == 0) && (argc == 4)) {
    char *err;
    double cislo = strtod(argv[2], &err);
    if ((*err != 0)) {
      printf("Boli zadane nespravne argumenty. Prosim, opravte argumenty a "
             "spustite program znova.");
      return 0;
    }
    double iterace_kontrola = strtod(argv[3], &err);
    if ((*err != 0) || (iterace_kontrola > UINT_MAX)) {
      printf("Boli zadane nespravne argumenty. Prosim, opravte argumenty a "
             "spustite program znova.");
      return 0;
    }
    unsigned int iterace = iterace_kontrola;
    printf("log(%g) = %.12g\n", cislo, log(cislo));
    printf("cf_log(%g) = %.12g\n", cislo, cfrac_log(cislo, iterace));
    printf("taylor_log(%g) = %.12g\n", cislo, taylor_log(cislo, iterace));
  } else if ((strcmp(argv[1], "--iter") == 0) && (argc == 5)) {
    char *err;
    double min = strtod(argv[2], &err);
    if (*err != 0) {
      printf("Boli zadane nespravne argumenty. Prosim, opravte argumenty a "
             "spustite program znova.\n");
      return 0;
    }
    double max = strtod(argv[3], &err);
    if (*err != 0) {
      printf("Boli zadane nespravne argumenty. Prosim, opravte argumenty a "
             "spustite program znova.\n");
      return 0;
    }
    if (min > max) {
      printf("Bali zadana nespravne argumenty. Pre interval musi platit "
             "min<max. Prosim, opravte argumenty a spustite program znova.\n");
      return 0;
    }
    double eps = strtod(argv[4], &err);
    if (*err != 0) {
      printf("Boli zadane nespravne argumenty. Prosim, opravte argumenty a "
             "spustite program znova.\n");
      return 0;
    }
    printf("log(%g) = %.12g\n", min, log(min));
    printf("log(%g) = %.12g\n", max, log(max));
    cf_iter(min, max, eps);
    taylor_iter(min, max, eps);
  } else {
    printf("Boli zadane nespravne argumenty. Prosim, opravte argumenty a "
           "spustite program znova.\n");
    return 0;
  }
  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)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe58(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    12e9 <main+0x169>
cmpl   $0x4,-0x8(%rbp)
jne    12e9 <main+0x169>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <strtod@plt>
movsd  %xmm0,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1201 <main+0x81>
lea    0xe18(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14a2 <main+0x322>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <strtod@plt>
movsd  %xmm0,-0x28(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    123d <main+0xbd>
movsd  -0x28(%rbp),%xmm0
mov    0x2db5(%rip),%rax
ucomisd (%rax),%xmm0
jbe    1257 <main+0xd7>
lea    0xdc2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14a2 <main+0x322>
cvttsd2si -0x28(%rbp),%rax
mov    %eax,-0x2c(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x20(%rbp),%xmm0
call   10a0 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
lea    0xddb(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x20(%rbp),%xmm0
mov    -0x2c(%rbp),%edi
call   1090 <cfrac_log@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
lea    0xdab(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x20(%rbp),%xmm0
mov    -0x2c(%rbp),%edi
call   1060 <taylor_log@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
lea    0xd92(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
jmp    149b <main+0x31b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd8f(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    147c <main+0x2fc>
cmpl   $0x5,-0x8(%rbp)
jne    147c <main+0x2fc>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    -0x38(%rbp),%rsi
call   1030 <strtod@plt>
movsd  %xmm0,-0x40(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1351 <main+0x1d1>
lea    0xd50(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14a2 <main+0x322>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    -0x38(%rbp),%rsi
call   1030 <strtod@plt>
movsd  %xmm0,-0x48(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1391 <main+0x211>
lea    0xd10(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14a2 <main+0x322>
movsd  -0x40(%rbp),%xmm0
ucomisd -0x48(%rbp),%xmm0
jbe    13bb <main+0x23b>
lea    0xd3c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14a2 <main+0x322>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
lea    -0x38(%rbp),%rsi
call   1030 <strtod@plt>
movsd  %xmm0,-0x50(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     13fb <main+0x27b>
lea    0xca6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14a2 <main+0x322>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x40(%rbp),%xmm0
call   10a0 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
lea    0xc40(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x48(%rbp),%xmm0
call   10a0 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
lea    0xc16(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
call   1070 <cf_iter@plt>
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
call   1040 <taylor_iter@plt>
jmp    1496 <main+0x316>
lea    0xc0b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14a2 <main+0x322>
jmp    149b <main+0x31b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x8(%rsi),%rdi
lea    0xe5a(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x4,%ebp
jne    11dd <main+0x4d>
test   %rax,%rax
jne    11dd <main+0x4d>
mov    0x10(%rbx),%rdi
lea    0x10(%rsp),%rsi
call   1040 <strtod@plt>
mov    0x10(%rsp),%rax
cmpb   $0x0,(%rax)
je     1246 <main+0xb6>
lea    0xedc(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    123d <main+0xad>
mov    0x8(%rbx),%rdi
lea    0xe4a(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x5,%ebp
jne    1231 <main+0xa1>
test   %rax,%rax
jne    1231 <main+0xa1>
mov    0x10(%rbx),%rdi
lea    0x10(%rsp),%rsi
call   1040 <strtod@plt>
mov    0x10(%rsp),%rax
cmpb   $0x0,(%rax)
jne    1231 <main+0xa1>
movsd  %xmm0,0x8(%rsp)
mov    0x18(%rbx),%rdi
lea    0x10(%rsp),%rsi
call   1040 <strtod@plt>
mov    0x10(%rsp),%rax
cmpb   $0x0,(%rax)
je     12ee <main+0x15e>
lea    0xe78(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %rbp
ret
movsd  %xmm0,0x8(%rsp)
mov    0x18(%rbx),%rdi
lea    0x10(%rsp),%rsi
call   1040 <strtod@plt>
mov    0x10(%rsp),%rax
cmpb   $0x0,(%rax)
jne    11cd <main+0x3d>
mov    0x2d79(%rip),%rax
ucomisd (%rax),%xmm0
ja     11cd <main+0x3d>
cvttsd2si %xmm0,%rbx
movsd  0x8(%rsp),%xmm0
call   10b0 <log@plt>
movaps %xmm0,%xmm1
lea    0xd76(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x8(%rsp),%xmm0
mov    %ebx,%edi
call   10a0 <cfrac_log@plt>
movaps %xmm0,%xmm1
lea    0xd4f(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x8(%rsp),%xmm0
mov    %ebx,%edi
call   1070 <taylor_log@plt>
movapd %xmm0,%xmm1
lea    0xd3e(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
jmp    123d <main+0xad>
movapd %xmm0,%xmm1
movsd  0x8(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jbe    130a <main+0x17a>
lea    0xd34(%rip),%rdi
jmp    1238 <main+0xa8>
movsd  %xmm1,0x18(%rsp)
mov    0x20(%rbx),%rdi
lea    0x10(%rsp),%rsi
call   1040 <strtod@plt>
mov    0x10(%rsp),%rax
cmpb   $0x0,(%rax)
jne    1231 <main+0xa1>
movsd  %xmm0,0x20(%rsp)
movsd  0x8(%rsp),%xmm0
call   10b0 <log@plt>
movaps %xmm0,%xmm1
lea    0xcc2(%rip),%rbx
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x18(%rsp),%xmm0
call   10b0 <log@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movsd  0x18(%rsp),%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x8(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
call   1080 <cf_iter@plt>
movsd  0x8(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
call   1050 <taylor_iter@plt>
jmp    123d <main+0xad>

LLVM IR (-O0):
@.str = [6 x i8] c"--log\00"
@.str.1 = [85 x i8] c"Boli zadane nespravne argumenty. Prosim, opravte argumenty a spustite program znova.\00"
@UINT_MAX = global double 0.000000e+00
@.str.2 = [17 x i8] c"log(%g) = %.12g\0A\00"
@.str.3 = [20 x i8] c"cf_log(%g) = %.12g\0A\00"
@.str.4 = [24 x i8] c"taylor_log(%g) = %.12g\0A\00"
@.str.5 = [7 x i8] c"--iter\00"
@.str.6 = [86 x i8] c"Boli zadane nespravne argumenty. Prosim, opravte argumenty a spustite program znova.\0A\00"
@.str.7 = [120 x i8] c"Bali zadana nespravne argumenty. Pre interval musi platit min<max. Prosim, opravte argumenty a spustite program znova.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca double
%8 = alloca double
%9 = alloca i32
%10 = alloca i8*
%11 = alloca double
%12 = alloca double
%13 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %65
19: ; preds = %2
%20 = load i32, i32* %4
%21 = icmp eq i32 %20, 4
br i1 %21, label %22, label %65
22: ; preds = %19
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 2
%25 = load i8*, i8** %24
%26 = call double @strtod(i8* %25, i8** %6)
store double %26, double* %7
%27 = load i8*, i8** %6
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %22
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %134
33: ; preds = %22
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 3
%36 = load i8*, i8** %35
%37 = call double @strtod(i8* %36, i8** %6)
store double %37, double* %8
%38 = load i8*, i8** %6
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 0
br i1 %41, label %46, label %42
42: ; preds = %33
%43 = load double, double* %8
%44 = load double, double* @UINT_MAX
%45 = fcmp ogt double %43, %44
br i1 %45, label %46, label %48
46: ; preds = %42, %33
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %134
48: ; preds = %42
%49 = load double, double* %8
%50 = fptoui double %49 to i32
store i32 %50, i32* %9
%51 = load double, double* %7
%52 = load double, double* %7
%53 = call double @log(double %52)
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), double %51, double %53)
%55 = load double, double* %7
%56 = load double, double* %7
%57 = load i32, i32* %9
%58 = call double @cfrac_log(double %56, i32 %57)
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double %55, double %58)
%60 = load double, double* %7
%61 = load double, double* %7
%62 = load i32, i32* %9
%63 = call double @taylor_log(double %61, i32 %62)
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), double %60, double %63)
br label %133
65: ; preds = %19, %2
%66 = load i8**, i8*** %5
%67 = getelementptr inbounds i8*, i8** %66, i64 1
%68 = load i8*, i8** %67
%69 = call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %130
71: ; preds = %65
%72 = load i32, i32* %4
%73 = icmp eq i32 %72, 5
br i1 %73, label %74, label %130
74: ; preds = %71
%75 = load i8**, i8*** %5
%76 = getelementptr inbounds i8*, i8** %75, i64 2
%77 = load i8*, i8** %76
%78 = call double @strtod(i8* %77, i8** %10)
store double %78, double* %11
%79 = load i8*, i8** %10
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = icmp ne i32 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %74
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %3
br label %134
85: ; preds = %74
%86 = load i8**, i8*** %5
%87 = getelementptr inbounds i8*, i8** %86, i64 3
%88 = load i8*, i8** %87
%89 = call double @strtod(i8* %88, i8** %10)
store double %89, double* %12
%90 = load i8*, i8** %10
%91 = load i8, i8* %90
%92 = sext i8 %91 to i32
%93 = icmp ne i32 %92, 0
br i1 %93, label %94, label %96
94: ; preds = %85
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %3
br label %134
96: ; preds = %85
%97 = load double, double* %11
%98 = load double, double* %12
%99 = fcmp ogt double %97, %98
br i1 %99, label %100, label %102
100: ; preds = %96
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %3
br label %134
102: ; preds = %96
%103 = load i8**, i8*** %5
%104 = getelementptr inbounds i8*, i8** %103, i64 4
%105 = load i8*, i8** %104
%106 = call double @strtod(i8* %105, i8** %10)
store double %106, double* %13
%107 = load i8*, i8** %10
%108 = load i8, i8* %107
%109 = sext i8 %108 to i32
%110 = icmp ne i32 %109, 0
br i1 %110, label %111, label %113
111: ; preds = %102
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %3
br label %134
113: ; preds = %102
%114 = load double, double* %11
%115 = load double, double* %11
%116 = call double @log(double %115)
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), double %114, double %116)
%118 = load double, double* %12
%119 = load double, double* %12
%120 = call double @log(double %119)
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), double %118, double %120)
%122 = load double, double* %11
%123 = load double, double* %12
%124 = load double, double* %13
%125 = call i32 @cf_iter(double %122, double %123, double %124)
%126 = load double, double* %11
%127 = load double, double* %12
%128 = load double, double* %13
%129 = call i32 @taylor_iter(double %126, double %127, double %128)
br label %132
130: ; preds = %71, %65
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %3
br label %134
132: ; preds = %113
br label %133
133: ; preds = %132, %48
store i32 0, i32* %3
br label %134
134: ; preds = %133, %130, %111, %100, %94, %83, %46, %31
%135 = load i32, i32* %3
ret i32 %135
}

LLVM IR (-O2):
@.str = [6 x i8] c"--log\00"
@UINT_MAX = global double 0.000000e+00
@.str.2 = [17 x i8] c"log(%g) = %.12g\0A\00"
@.str.3 = [20 x i8] c"cf_log(%g) = %.12g\0A\00"
@.str.4 = [24 x i8] c"taylor_log(%g) = %.12g\0A\00"
@.str.5 = [7 x i8] c"--iter\00"
@str.9 = [119 x i8] c"Bali zadana nespravne argumenty. Pre interval musi platit min<max. Prosim, opravte argumenty a spustite program znova.\00"
@str.11 = [85 x i8] c"Boli zadane nespravne argumenty. Prosim, opravte argumenty a spustite program znova.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
%9 = icmp eq i32 %0, 4
%10 = and i1 %9, %8
br i1 %10, label %11, label %42
11: ; preds = %2
%12 = bitcast i8** %3 to i8*
%13 = getelementptr inbounds i8*, i8** %1, i64 2
%14 = load i8*, i8** %13
%15 = call double @strtod(i8* %14, i8** %3)
%16 = load i8*, i8** %3
%17 = load i8, i8* %16
%18 = icmp eq i8 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %11
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.11, i64 0, i64 0))
br label %41
21: ; preds = %11
%22 = getelementptr inbounds i8*, i8** %1, i64 3
%23 = load i8*, i8** %22
%24 = call double @strtod(i8* %23, i8** %3)
%25 = load i8*, i8** %3
%26 = load i8, i8* %25
%27 = icmp ne i8 %26, 0
%28 = load double, double* @UINT_MAX
%29 = fcmp ogt double %24, %28
%30 = select i1 %27, i1 true, i1 %29
br i1 %30, label %31, label %33
31: ; preds = %21
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.11, i64 0, i64 0))
br label %41
33: ; preds = %21
%34 = fptoui double %24 to i32
%35 = tail call double @log(double %15)
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), double %15, double %35)
%37 = tail call double @cfrac_log(double %15, i32 %34)
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double %15, double %37)
%39 = tail call double @taylor_log(double %15, i32 %34)
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), double %15, double %39)
br label %41
41: ; preds = %31, %33, %19
br label %90
42: ; preds = %2
%43 = load i8*, i8** %5
%44 = tail call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
%46 = icmp eq i32 %0, 5
%47 = and i1 %46, %45
br i1 %47, label %48, label %88
48: ; preds = %42
%49 = bitcast i8** %4 to i8*
%50 = getelementptr inbounds i8*, i8** %1, i64 2
%51 = load i8*, i8** %50
%52 = call double @strtod(i8* %51, i8** %4)
%53 = load i8*, i8** %4
%54 = load i8, i8* %53
%55 = icmp eq i8 %54, 0
br i1 %55, label %58, label %56
56: ; preds = %48
%57 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.11, i64 0, i64 0))
br label %87
58: ; preds = %48
%59 = getelementptr inbounds i8*, i8** %1, i64 3
%60 = load i8*, i8** %59
%61 = call double @strtod(i8* %60, i8** %4)
%62 = load i8*, i8** %4
%63 = load i8, i8* %62
%64 = icmp eq i8 %63, 0
br i1 %64, label %67, label %65
65: ; preds = %58
%66 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.11, i64 0, i64 0))
br label %87
67: ; preds = %58
%68 = fcmp ogt double %52, %61
br i1 %68, label %69, label %71
69: ; preds = %67
%70 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([119 x i8], [119 x i8]* @str.9, i64 0, i64 0))
br label %87
71: ; preds = %67
%72 = getelementptr inbounds i8*, i8** %1, i64 4
%73 = load i8*, i8** %72
%74 = call double @strtod(i8* %73, i8** %4)
%75 = load i8*, i8** %4
%76 = load i8, i8* %75
%77 = icmp eq i8 %76, 0
br i1 %77, label %80, label %78
78: ; preds = %71
%79 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.11, i64 0, i64 0))
br label %87
80: ; preds = %71
%81 = tail call double @log(double %52)
%82 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), double %52, double %81)
%83 = tail call double @log(double %61)
%84 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), double %61, double %83)
%85 = tail call i32 @cf_iter(double %52, double %61, double %74)
%86 = tail call i32 @taylor_iter(double %52, double %61, double %74)
br label %87
87: ; preds = %65, %69, %80, %78, %56
br label %90
88: ; preds = %42
%89 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.11, i64 0, i64 0))
br label %90
90: ; preds = %87, %41, %88
ret i32 0
}