#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 */
int AlmostEqualDoubles(double, double);
int AlmostEqualFloats(float, double, int);
int /*<<< orphan*/ assert(int);
double atof(char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sprintf(char *, char *, double);
scalar_t__ strcmp(char *, char *);
void test_floating_point_numbers() {
  char buf[256];
  float f1;
  double d1;
  printf("testing floating point... ");
  f1 = 1.25;
  assert(f1 == 1.25);
  d1 = 1.25;
  assert(d1 == 1.25);
  d1 = 0;
  d1 = f1;
  assert(d1 == 1.25);
  f1 = 0;
  f1 = d1;
  assert(f1 == 1.25);
  d1 = 1.234;
  assert(AlmostEqualDoubles(d1, 1.234) == 1);
  f1 = d1;
  assert(AlmostEqualFloats(f1, 1.234, 2) == 1);
  d1 = 1.2345;
  assert(AlmostEqualDoubles(d1, 1.2345) == 1);
  f1 = d1;
  assert(AlmostEqualFloats(f1, 1.2345, 2) == 1);
  d1 = atof("1.234");
  assert(AlmostEqualDoubles(d1, 1.234) == 1);
  f1 = d1;
  assert(AlmostEqualFloats(f1, 1.234, 2) == 1);
  sprintf(buf, "%g", d1);
  assert(buf[0] != 0);
  assert(strcmp(buf, "1.234") == 0);
  d1 = atof("12.34");
  assert(d1 == 12.34);
  f1 = d1;
  assert(AlmostEqualFloats(f1, 12.34, 2) == 1);
  sprintf(buf, "%g", d1);
  assert(buf[0] != 0);
  assert(strcmp(buf, "12.34") == 0);
  d1 = atof("1.234e25");
  assert(AlmostEqualDoubles(d1, 1.234e25) == 1);
  f1 = d1;
  assert(AlmostEqualFloats(f1, 1.234e25, 2) == 1);
  sprintf(buf, "%g", d1);
  assert(buf[0] != 0);
  printf("OK\n");
}


x86 assembly (clang, -O0):
<test_floating_point_numbers>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
lea    0xeaa(%rip),%rdi
call   1040 <printf@plt>
movss  0xe99(%rip),%xmm0
movss  %xmm0,-0x104(%rbp)
ff
movss  -0x104(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xe75(%rip),%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
movsd  0xe57(%rip),%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
movsd  0xe3f(%rip),%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movss  -0x104(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
movsd  0xdfa(%rip),%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x104(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x104(%rbp)
ff
movss  -0x104(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xdb1(%rip),%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
movsd  0xd83(%rip),%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
movsd  0xd6b(%rip),%xmm1
call   1090 <AlmostEqualDoubles@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
movsd  -0x110(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x104(%rbp)
ff
movss  -0x104(%rbp),%xmm0
ff
movsd  0xd32(%rip),%xmm1
mov    $0x2,%edi
call   1050 <AlmostEqualFloats@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
movsd  0xd18(%rip),%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
movsd  0xd00(%rip),%xmm1
call   1090 <AlmostEqualDoubles@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
movsd  -0x110(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x104(%rbp)
ff
movss  -0x104(%rbp),%xmm0
ff
movsd  0xcc7(%rip),%xmm1
mov    $0x2,%edi
call   1050 <AlmostEqualFloats@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    0xcd5(%rip),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
movsd  0xc81(%rip),%xmm1
call   1090 <AlmostEqualDoubles@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
movsd  -0x110(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x104(%rbp)
ff
movss  -0x104(%rbp),%xmm0
ff
movsd  0xc48(%rip),%xmm1
mov    $0x2,%edi
call   1050 <AlmostEqualFloats@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x100(%rbp),%rdi
movsd  -0x110(%rbp),%xmm0
ff
lea    0xc55(%rip),%rsi
call   1080 <sprintf@plt>
movsbl -0x100(%rbp),%eax
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x100(%rbp),%rdi
lea    0xc25(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    0xc11(%rip),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
movsd  0xbac(%rip),%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
movsd  -0x110(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x104(%rbp)
ff
movss  -0x104(%rbp),%xmm0
ff
movsd  0xb72(%rip),%xmm1
mov    $0x2,%edi
call   1050 <AlmostEqualFloats@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x100(%rbp),%rdi
movsd  -0x110(%rbp),%xmm0
ff
lea    0xb87(%rip),%rsi
call   1080 <sprintf@plt>
movsbl -0x100(%rbp),%eax
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x100(%rbp),%rdi
lea    0xb60(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    0xb49(%rip),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
movsd  0xad6(%rip),%xmm1
call   1090 <AlmostEqualDoubles@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
movsd  -0x110(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x104(%rbp)
ff
movss  -0x104(%rbp),%xmm0
ff
movsd  0xa9d(%rip),%xmm1
mov    $0x2,%edi
call   1050 <AlmostEqualFloats@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x100(%rbp),%rdi
movsd  -0x110(%rbp),%xmm0
ff
lea    0xaba(%rip),%rsi
call   1080 <sprintf@plt>
movsbl -0x100(%rbp),%eax
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    0xaa9(%rip),%rdi
call   1040 <printf@plt>
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_floating_point_numbers>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x118,%rsp
lea    0xe93(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
call   1080 <assert@plt>
mov    $0x1,%edi
call   1080 <assert@plt>
mov    $0x1,%edi
call   1080 <assert@plt>
mov    $0x1,%edi
call   1080 <assert@plt>
movsd  0xe36(%rip),%xmm0
movaps %xmm0,%xmm1
call   10a0 <AlmostEqualDoubles@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
movss  0xe38(%rip),%xmm0
movsd  0xe10(%rip),%xmm1
mov    $0x2,%edi
call   1060 <AlmostEqualFloats@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
movsd  0xdf8(%rip),%xmm0
movaps %xmm0,%xmm1
call   10a0 <AlmostEqualDoubles@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
movss  0xdf6(%rip),%xmm0
movsd  0xdd2(%rip),%xmm1
mov    $0x2,%edi
call   1060 <AlmostEqualFloats@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
lea    0xdee(%rip),%r15
mov    %r15,%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0xd95(%rip),%xmm1
call   10a0 <AlmostEqualDoubles@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
movsd  0x8(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movsd  0xd70(%rip),%xmm1
mov    $0x2,%edi
call   1060 <AlmostEqualFloats@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
lea    0xd9a(%rip),%r14
lea    0x10(%rsp),%r12
mov    %r12,%rdi
mov    %r14,%rsi
movsd  0x8(%rsp),%xmm0
call   1090 <sprintf@plt>
xor    %edi,%edi
cmpb   $0x0,0x10(%rsp)
setne  %dil
call   1080 <assert@plt>
mov    %r12,%rdi
mov    %r15,%rsi
call   1070 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
lea    0xd57(%rip),%rbx
mov    %rbx,%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x8(%rsp)
movapd %xmm0,%xmm1
cmpeqsd 0xd00(%rip),%xmm1
movq   %xmm1,%rdi
and    $0x1,%edi
call   1080 <assert@plt>
movsd  0x8(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movsd  0xce1(%rip),%xmm1
mov    $0x2,%edi
call   1060 <AlmostEqualFloats@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
mov    %r12,%rdi
mov    %r14,%rsi
movsd  0x8(%rsp),%xmm0
call   1090 <sprintf@plt>
xor    %edi,%edi
cmpb   $0x0,0x10(%rsp)
setne  %dil
call   1080 <assert@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1070 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
lea    0xcca(%rip),%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0xc7d(%rip),%xmm1
call   10a0 <AlmostEqualDoubles@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
movsd  0x8(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movsd  0xc58(%rip),%xmm1
mov    $0x2,%edi
call   1060 <AlmostEqualFloats@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
mov    %r12,%rdi
mov    %r14,%rsi
movsd  0x8(%rsp),%xmm0
call   1090 <sprintf@plt>
xor    %edi,%edi
cmpb   $0x0,0x10(%rsp)
setne  %dil
call   1080 <assert@plt>
lea    0xc5b(%rip),%rdi
call   1030 <puts@plt>
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [27 x i8] c"testing floating point... \00"
@.str.1 = [6 x i8] c"1.234\00"
@.str.2 = [3 x i8] c"%g\00"
@.str.3 = [6 x i8] c"12.34\00"
@.str.4 = [9 x i8] c"1.234e25\00"
@.str.5 = [4 x i8] c"OK\0A\00"
define void @test_floating_point_numbers() {
%1 = alloca [256 x i8]
%2 = alloca float
%3 = alloca double
%4 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
store float 1.250000e+00, float* %2
%5 = load float, float* %2
%6 = fpext float %5 to double
%7 = fcmp oeq double %6, 1.250000e+00
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 %8)
store double 1.250000e+00, double* %3
%10 = load double, double* %3
%11 = fcmp oeq double %10, 1.250000e+00
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 %12)
store double 0.000000e+00, double* %3
%14 = load float, float* %2
%15 = fpext float %14 to double
store double %15, double* %3
%16 = load double, double* %3
%17 = fcmp oeq double %16, 1.250000e+00
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 %18)
store float 0.000000e+00, float* %2
%20 = load double, double* %3
%21 = fptrunc double %20 to float
store float %21, float* %2
%22 = load float, float* %2
%23 = fpext float %22 to double
%24 = fcmp oeq double %23, 1.250000e+00
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 %25)
store double 1.234000e+00, double* %3
%27 = load double, double* %3
%28 = call i32 @AlmostEqualDoubles(double %27, double 1.234000e+00)
%29 = icmp eq i32 %28, 1
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30)
%32 = load double, double* %3
%33 = fptrunc double %32 to float
store float %33, float* %2
%34 = load float, float* %2
%35 = call i32 @AlmostEqualFloats(float %34, double 1.234000e+00, i32 2)
%36 = icmp eq i32 %35, 1
%37 = zext i1 %36 to i32
%38 = call i32 @assert(i32 %37)
store double 1.234500e+00, double* %3
%39 = load double, double* %3
%40 = call i32 @AlmostEqualDoubles(double %39, double 1.234500e+00)
%41 = icmp eq i32 %40, 1
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 %42)
%44 = load double, double* %3
%45 = fptrunc double %44 to float
store float %45, float* %2
%46 = load float, float* %2
%47 = call i32 @AlmostEqualFloats(float %46, double 1.234500e+00, i32 2)
%48 = icmp eq i32 %47, 1
%49 = zext i1 %48 to i32
%50 = call i32 @assert(i32 %49)
%51 = call double @atof(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store double %51, double* %3
%52 = load double, double* %3
%53 = call i32 @AlmostEqualDoubles(double %52, double 1.234000e+00)
%54 = icmp eq i32 %53, 1
%55 = zext i1 %54 to i32
%56 = call i32 @assert(i32 %55)
%57 = load double, double* %3
%58 = fptrunc double %57 to float
store float %58, float* %2
%59 = load float, float* %2
%60 = call i32 @AlmostEqualFloats(float %59, double 1.234000e+00, i32 2)
%61 = icmp eq i32 %60, 1
%62 = zext i1 %61 to i32
%63 = call i32 @assert(i32 %62)
%64 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%65 = load double, double* %3
%66 = call i32 @sprintf(i8* %64, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), double %65)
%67 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = icmp ne i32 %69, 0
%71 = zext i1 %70 to i32
%72 = call i32 @assert(i32 %71)
%73 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%74 = call i64 @strcmp(i8* %73, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
%76 = zext i1 %75 to i32
%77 = call i32 @assert(i32 %76)
%78 = call double @atof(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
store double %78, double* %3
%79 = load double, double* %3
%80 = fcmp oeq double %79, 1.234000e+01
%81 = zext i1 %80 to i32
%82 = call i32 @assert(i32 %81)
%83 = load double, double* %3
%84 = fptrunc double %83 to float
store float %84, float* %2
%85 = load float, float* %2
%86 = call i32 @AlmostEqualFloats(float %85, double 1.234000e+01, i32 2)
%87 = icmp eq i32 %86, 1
%88 = zext i1 %87 to i32
%89 = call i32 @assert(i32 %88)
%90 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%91 = load double, double* %3
%92 = call i32 @sprintf(i8* %90, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), double %91)
%93 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%94 = load i8, i8* %93
%95 = sext i8 %94 to i32
%96 = icmp ne i32 %95, 0
%97 = zext i1 %96 to i32
%98 = call i32 @assert(i32 %97)
%99 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%100 = call i64 @strcmp(i8* %99, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%101 = icmp eq i64 %100, 0
%102 = zext i1 %101 to i32
%103 = call i32 @assert(i32 %102)
%104 = call double @atof(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
store double %104, double* %3
%105 = load double, double* %3
%106 = call i32 @AlmostEqualDoubles(double %105, double 1.234000e+25)
%107 = icmp eq i32 %106, 1
%108 = zext i1 %107 to i32
%109 = call i32 @assert(i32 %108)
%110 = load double, double* %3
%111 = fptrunc double %110 to float
store float %111, float* %2
%112 = load float, float* %2
%113 = call i32 @AlmostEqualFloats(float %112, double 1.234000e+25, i32 2)
%114 = icmp eq i32 %113, 1
%115 = zext i1 %114 to i32
%116 = call i32 @assert(i32 %115)
%117 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%118 = load double, double* %3
%119 = call i32 @sprintf(i8* %117, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), double %118)
%120 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = icmp ne i32 %122, 0
%124 = zext i1 %123 to i32
%125 = call i32 @assert(i32 %124)
%126 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c"testing floating point... \00"
@.str.1 = [6 x i8] c"1.234\00"
@.str.2 = [3 x i8] c"%g\00"
@.str.3 = [6 x i8] c"12.34\00"
@.str.4 = [9 x i8] c"1.234e25\00"
@str = [3 x i8] c"OK\00"
define void @test_floating_point_numbers() {
%1 = alloca [256 x i8]
%2 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @assert(i32 1)
%5 = tail call i32 @assert(i32 1)
%6 = tail call i32 @assert(i32 1)
%7 = tail call i32 @assert(i32 1)
%8 = tail call i32 @AlmostEqualDoubles(double 1.234000e+00, double 1.234000e+00)
%9 = icmp eq i32 %8, 1
%10 = zext i1 %9 to i32
%11 = tail call i32 @assert(i32 %10)
%12 = tail call i32 @AlmostEqualFloats(float 0x3FF3BE76C0000000, double 1.234000e+00, i32 2)
%13 = icmp eq i32 %12, 1
%14 = zext i1 %13 to i32
%15 = tail call i32 @assert(i32 %14)
%16 = tail call i32 @AlmostEqualDoubles(double 1.234500e+00, double 1.234500e+00)
%17 = icmp eq i32 %16, 1
%18 = zext i1 %17 to i32
%19 = tail call i32 @assert(i32 %18)
%20 = tail call i32 @AlmostEqualFloats(float 0x3FF3C08320000000, double 1.234500e+00, i32 2)
%21 = icmp eq i32 %20, 1
%22 = zext i1 %21 to i32
%23 = tail call i32 @assert(i32 %22)
%24 = tail call double @atof(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%25 = tail call i32 @AlmostEqualDoubles(double %24, double 1.234000e+00)
%26 = icmp eq i32 %25, 1
%27 = zext i1 %26 to i32
%28 = tail call i32 @assert(i32 %27)
%29 = fptrunc double %24 to float
%30 = tail call i32 @AlmostEqualFloats(float %29, double 1.234000e+00, i32 2)
%31 = icmp eq i32 %30, 1
%32 = zext i1 %31 to i32
%33 = tail call i32 @assert(i32 %32)
%34 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), double %24)
%35 = load i8, i8* %2
%36 = icmp ne i8 %35, 0
%37 = zext i1 %36 to i32
%38 = tail call i32 @assert(i32 %37)
%39 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
%41 = zext i1 %40 to i32
%42 = call i32 @assert(i32 %41)
%43 = call double @atof(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%44 = fcmp oeq double %43, 1.234000e+01
%45 = zext i1 %44 to i32
%46 = call i32 @assert(i32 %45)
%47 = fptrunc double %43 to float
%48 = call i32 @AlmostEqualFloats(float %47, double 1.234000e+01, i32 2)
%49 = icmp eq i32 %48, 1
%50 = zext i1 %49 to i32
%51 = call i32 @assert(i32 %50)
%52 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), double %43)
%53 = load i8, i8* %2
%54 = icmp ne i8 %53, 0
%55 = zext i1 %54 to i32
%56 = call i32 @assert(i32 %55)
%57 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59)
%61 = call double @atof(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%62 = call i32 @AlmostEqualDoubles(double %61, double 1.234000e+25)
%63 = icmp eq i32 %62, 1
%64 = zext i1 %63 to i32
%65 = call i32 @assert(i32 %64)
%66 = fptrunc double %61 to float
%67 = call i32 @AlmostEqualFloats(float %66, double 1.234000e+25, i32 2)
%68 = icmp eq i32 %67, 1
%69 = zext i1 %68 to i32
%70 = call i32 @assert(i32 %69)
%71 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), double %61)
%72 = load i8, i8* %2
%73 = icmp ne i8 %72, 0
%74 = zext i1 %73 to i32
%75 = call i32 @assert(i32 %74)
%76 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0))
ret void
}