#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 CLOCKS_PER_SEC;
int /*<<< orphan*/ cerf(double, double, double *, double *);
int /*<<< orphan*/ cerfc(double, double, double *, double *);
int /*<<< orphan*/ cerfcf(float, float, float *, float *);
int /*<<< orphan*/ cerff(float, float, float *, float *);
double clock();
int /*<<< orphan*/ printf(char *, int const, ...);
int main(void) {
  const int n = 50000000;
  {
    float re, im, rer, imr;
    re = 0.5, im = 0.5;
    cerff(re, im, &rer, &imr);
    printf("cerf (%21.14e,%21.14e) = (%21.14e, %21.14e)\n", re, im, rer, imr);
    cerfcf(re, im, &rer, &imr);
    printf("cerfc(%21.14e,%21.14e) = (%21.14e, %21.14e)\n", re, im, rer, imr);
    re = -0.5, im = 0.5;
    cerff(re, im, &rer, &imr);
    printf("cerf (%21.14e,%21.14e) = (%21.14e, %21.14e)\n", re, im, rer, imr);
    cerfcf(re, im, &rer, &imr);
    printf("cerfc(%21.14e,%21.14e) = (%21.14e, %21.14e)\n", re, im, rer, imr);
    double t0 = clock();
    for (int i = 0; i < n; i++)
      cerff(re, im, &rer, &imr);
    double t1 = clock();
    printf("cerff: %.3f Mcalls/sec\n",
           n / ((t1 - t0) / CLOCKS_PER_SEC) / 1000000);
  }
  {
    double re, im, rer, imr;
    re = 0.5, im = 0.5;
    cerf(re, im, &rer, &imr);
    printf("cerf (%21.14e,%21.14e) = (%21.14e, %21.14e)\n", re, im, rer, imr);
    cerfc(re, im, &rer, &imr);
    printf("cerfc(%21.14e,%21.14e) = (%21.14e, %21.14e)\n", re, im, rer, imr);
    re = -0.5, im = 0.5;
    cerf(re, im, &rer, &imr);
    printf("cerf (%21.14e,%21.14e) = (%21.14e, %21.14e)\n", re, im, rer, imr);
    cerfc(re, im, &rer, &imr);
    printf("cerfc(%21.14e,%21.14e) = (%21.14e, %21.14e)\n", re, im, rer, imr);
    double t0 = clock();
    for (int i = 0; i < n; i++)
      cerf(re, im, &rer, &imr);
    double t1 = clock();
    printf("cerf: %.3f Mcalls/sec\n",
           n / ((t1 - t0) / CLOCKS_PER_SEC) / 1000000);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2faf080,-0x8(%rbp)
movss  0xe82(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xe75(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
lea    -0x14(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1070 <cerff@plt>
cvttss2si -0xc(%rbp),%esi
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x18(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xe5a(%rip),%rdi
mov    $0x3,%al
call   1050 <printf@plt>
movss  -0xc(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
lea    -0x14(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <cerfcf@plt>
cvttss2si -0xc(%rbp),%esi
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x18(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xe42(%rip),%rdi
mov    $0x3,%al
call   1050 <printf@plt>
movss  0xde2(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xdd1(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
lea    -0x14(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1070 <cerff@plt>
cvttss2si -0xc(%rbp),%esi
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x18(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xdb6(%rip),%rdi
mov    $0x3,%al
call   1050 <printf@plt>
movss  -0xc(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
lea    -0x14(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <cerfcf@plt>
cvttss2si -0xc(%rbp),%esi
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x18(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xd9e(%rip),%rdi
mov    $0x3,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <clock@plt>
movsd  %xmm0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x2faf080,-0x24(%rbp)
jge    1303 <main+0x1a3>
movss  -0xc(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
lea    -0x14(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1070 <cerff@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12d1 <main+0x171>
mov    $0x0,%al
call   1040 <clock@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm1
subsd  -0x20(%rbp),%xmm1
mov    0x2cc8(%rip),%rax
divsd  (%rax),%xmm1
movsd  0xcf4(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  0xce0(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
lea    0xd3b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsd  0xcb2(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xca5(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
lea    -0x48(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1080 <cerf@plt>
cvttsd2si -0x38(%rbp),%esi
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
lea    0xc8e(%rip),%rdi
mov    $0x3,%al
call   1050 <printf@plt>
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
lea    -0x48(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1030 <cerfc@plt>
cvttsd2si -0x38(%rbp),%esi
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
lea    0xc82(%rip),%rdi
mov    $0x3,%al
call   1050 <printf@plt>
movsd  0xc2e(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xc19(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
lea    -0x48(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1080 <cerf@plt>
cvttsd2si -0x38(%rbp),%esi
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
lea    0xc02(%rip),%rdi
mov    $0x3,%al
call   1050 <printf@plt>
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
lea    -0x48(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1030 <cerfc@plt>
cvttsd2si -0x38(%rbp),%esi
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
lea    0xbf6(%rip),%rdi
mov    $0x3,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <clock@plt>
movsd  %xmm0,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
cmpl   $0x2faf080,-0x5c(%rbp)
jge    14ab <main+0x34b>
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
lea    -0x48(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1080 <cerf@plt>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1479 <main+0x319>
mov    $0x0,%al
call   1040 <clock@plt>
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
subsd  -0x58(%rbp),%xmm1
mov    0x2b20(%rip),%rax
divsd  (%rax),%xmm1
movsd  0xb4c(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  0xb38(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
lea    0xbab(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movss  0xe8a(%rip),%xmm0
lea    0x8(%rsp),%r14
mov    %rsp,%rbx
movaps %xmm0,%xmm1
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <cerff@plt>
movss  0x8(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm2
lea    0xe7f(%rip),%r15
movsd  0xe57(%rip),%xmm0
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x3,%al
call   1050 <printf@plt>
movss  0xe3b(%rip),%xmm0
movaps %xmm0,%xmm1
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <cerfcf@plt>
movss  0x8(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movss  (%rsp),%xmm0
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
lea    0xe62(%rip),%r12
mov    %r12,%rdi
xor    %esi,%esi
movsd  0xe08(%rip),%xmm0
mov    $0x3,%al
call   1050 <printf@plt>
movss  0xdf5(%rip),%xmm0
movss  0xde9(%rip),%xmm1
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <cerff@plt>
movss  0x8(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movss  (%rsp),%xmm0
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
mov    %r15,%rdi
xor    %esi,%esi
movsd  0xdc0(%rip),%xmm0
mov    $0x3,%al
call   1050 <printf@plt>
movss  0xdad(%rip),%xmm0
movss  0xda1(%rip),%xmm1
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <cerfcf@plt>
movss  0x8(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movss  (%rsp),%xmm0
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
mov    %r12,%rdi
xor    %esi,%esi
movsd  0xd78(%rip),%xmm0
mov    $0x3,%al
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <clock@plt>
movsd  %xmm0,0x10(%rsp)
mov    $0x2faf080,%ebp
nopl   0x0(%rax)
movss  0xd4c(%rip),%xmm0
movss  0xd40(%rip),%xmm1
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <cerff@plt>
add    $0xffffffff,%ebp
jne    12b0 <main+0x150>
xor    %eax,%eax
call   1040 <clock@plt>
subsd  0x10(%rsp),%xmm0
mov    0x2d04(%rip),%r13
divsd  0x0(%r13),%xmm0
movsd  0xd1e(%rip),%xmm1
divsd  %xmm0,%xmm1
divsd  0xd1a(%rip),%xmm1
cvttsd2si %xmm1,%esi
lea    0xd79(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsd  0xcf0(%rip),%xmm0
lea    0x8(%rsp),%r14
mov    %rsp,%rbx
movaps %xmm0,%xmm1
mov    %r14,%rdi
mov    %rbx,%rsi
call   1080 <cerf@plt>
movsd  0x8(%rsp),%xmm1
movsd  (%rsp),%xmm2
lea    0xce8(%rip),%r15
mov    %r15,%rdi
xor    %esi,%esi
movsd  0xcbb(%rip),%xmm0
mov    $0x3,%al
call   1050 <printf@plt>
movsd  0xcac(%rip),%xmm0
movaps %xmm0,%xmm1
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <cerfc@plt>
movsd  0x8(%rsp),%xmm1
movsd  (%rsp),%xmm2
lea    0xcd9(%rip),%r12
mov    %r12,%rdi
xor    %esi,%esi
movsd  0xc7f(%rip),%xmm0
mov    $0x3,%al
call   1050 <printf@plt>
movsd  0xc88(%rip),%xmm0
movsd  0xc68(%rip),%xmm1
mov    %r14,%rdi
mov    %rbx,%rsi
call   1080 <cerf@plt>
movsd  0x8(%rsp),%xmm1
movsd  (%rsp),%xmm2
mov    %r15,%rdi
xor    %esi,%esi
movsd  0xc45(%rip),%xmm0
mov    $0x3,%al
call   1050 <printf@plt>
movsd  0xc4e(%rip),%xmm0
movsd  0xc2e(%rip),%xmm1
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <cerfc@plt>
movsd  0x8(%rsp),%xmm1
movsd  (%rsp),%xmm2
mov    %r12,%rdi
xor    %esi,%esi
movsd  0xc0b(%rip),%xmm0
mov    $0x3,%al
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <clock@plt>
movsd  %xmm0,0x10(%rsp)
mov    $0x2faf080,%ebp
cs nopw 0x0(%rax,%rax,1)
movsd  0xbf8(%rip),%xmm0
movsd  0xbd8(%rip),%xmm1
mov    %r14,%rdi
mov    %rbx,%rsi
call   1080 <cerf@plt>
add    $0xffffffff,%ebp
jne    1420 <main+0x2c0>
xor    %eax,%eax
call   1040 <clock@plt>
subsd  0x10(%rsp),%xmm0
divsd  0x0(%r13),%xmm0
movsd  0xbb5(%rip),%xmm1
divsd  %xmm0,%xmm1
divsd  0xbb1(%rip),%xmm1
cvttsd2si %xmm1,%esi
lea    0xc28(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [45 x i8] c"cerf (%21.14e,%21.14e) = (%21.14e, %21.14e)\0A\00"
@.str.1 = [45 x i8] c"cerfc(%21.14e,%21.14e) = (%21.14e, %21.14e)\0A\00"
@.str.2 = [24 x i8] c"cerff: %.3f Mcalls/sec\0A\00"
@CLOCKS_PER_SEC = global double 0.000000e+00
@.str.3 = [23 x i8] c"cerf: %.3f Mcalls/sec\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca double
%8 = alloca i32
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca i32
%16 = alloca double
store i32 0, i32* %1
store i32 50000000, i32* %2
store float 5.000000e-01, float* %3
store float 5.000000e-01, float* %4
%17 = load float, float* %3
%18 = load float, float* %4
%19 = call i32 @cerff(float %17, float %18, float* %5, float* %6)
%20 = load float, float* %3
%21 = fptosi float %20 to i32
%22 = load float, float* %4
%23 = fpext float %22 to double
%24 = load float, float* %5
%25 = fpext float %24 to double
%26 = load float, float* %6
%27 = fpext float %26 to double
%28 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i32 %21, double %23, double %25, double %27)
%29 = load float, float* %3
%30 = load float, float* %4
%31 = call i32 @cerfcf(float %29, float %30, float* %5, float* %6)
%32 = load float, float* %3
%33 = fptosi float %32 to i32
%34 = load float, float* %4
%35 = fpext float %34 to double
%36 = load float, float* %5
%37 = fpext float %36 to double
%38 = load float, float* %6
%39 = fpext float %38 to double
%40 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 %33, double %35, double %37, double %39)
store float -5.000000e-01, float* %3
store float 5.000000e-01, float* %4
%41 = load float, float* %3
%42 = load float, float* %4
%43 = call i32 @cerff(float %41, float %42, float* %5, float* %6)
%44 = load float, float* %3
%45 = fptosi float %44 to i32
%46 = load float, float* %4
%47 = fpext float %46 to double
%48 = load float, float* %5
%49 = fpext float %48 to double
%50 = load float, float* %6
%51 = fpext float %50 to double
%52 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i32 %45, double %47, double %49, double %51)
%53 = load float, float* %3
%54 = load float, float* %4
%55 = call i32 @cerfcf(float %53, float %54, float* %5, float* %6)
%56 = load float, float* %3
%57 = fptosi float %56 to i32
%58 = load float, float* %4
%59 = fpext float %58 to double
%60 = load float, float* %5
%61 = fpext float %60 to double
%62 = load float, float* %6
%63 = fpext float %62 to double
%64 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 %57, double %59, double %61, double %63)
%65 = call double (...) @clock()
store double %65, double* %7
store i32 0, i32* %8
br label %66
66: ; preds = %73, %0
%67 = load i32, i32* %8
%68 = icmp slt i32 %67, 50000000
br i1 %68, label %69, label %76
69: ; preds = %66
%70 = load float, float* %3
%71 = load float, float* %4
%72 = call i32 @cerff(float %70, float %71, float* %5, float* %6)
br label %73
73: ; preds = %69
%74 = load i32, i32* %8
%75 = add nsw i32 %74, 1
store i32 %75, i32* %8
br label %66
76: ; preds = %66
%77 = call double (...) @clock()
store double %77, double* %9
%78 = load double, double* %9
%79 = load double, double* %7
%80 = fsub double %78, %79
%81 = load double, double* @CLOCKS_PER_SEC
%82 = fdiv double %80, %81
%83 = fdiv double 5.000000e+07, %82
%84 = fdiv double %83, 1.000000e+06
%85 = fptosi double %84 to i32
%86 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %85)
store double 5.000000e-01, double* %10
store double 5.000000e-01, double* %11
%87 = load double, double* %10
%88 = load double, double* %11
%89 = call i32 @cerf(double %87, double %88, double* %12, double* %13)
%90 = load double, double* %10
%91 = fptosi double %90 to i32
%92 = load double, double* %11
%93 = load double, double* %12
%94 = load double, double* %13
%95 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i32 %91, double %92, double %93, double %94)
%96 = load double, double* %10
%97 = load double, double* %11
%98 = call i32 @cerfc(double %96, double %97, double* %12, double* %13)
%99 = load double, double* %10
%100 = fptosi double %99 to i32
%101 = load double, double* %11
%102 = load double, double* %12
%103 = load double, double* %13
%104 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 %100, double %101, double %102, double %103)
store double -5.000000e-01, double* %10
store double 5.000000e-01, double* %11
%105 = load double, double* %10
%106 = load double, double* %11
%107 = call i32 @cerf(double %105, double %106, double* %12, double* %13)
%108 = load double, double* %10
%109 = fptosi double %108 to i32
%110 = load double, double* %11
%111 = load double, double* %12
%112 = load double, double* %13
%113 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i32 %109, double %110, double %111, double %112)
%114 = load double, double* %10
%115 = load double, double* %11
%116 = call i32 @cerfc(double %114, double %115, double* %12, double* %13)
%117 = load double, double* %10
%118 = fptosi double %117 to i32
%119 = load double, double* %11
%120 = load double, double* %12
%121 = load double, double* %13
%122 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 %118, double %119, double %120, double %121)
%123 = call double (...) @clock()
store double %123, double* %14
store i32 0, i32* %15
br label %124
124: ; preds = %131, %76
%125 = load i32, i32* %15
%126 = icmp slt i32 %125, 50000000
br i1 %126, label %127, label %134
127: ; preds = %124
%128 = load double, double* %10
%129 = load double, double* %11
%130 = call i32 @cerf(double %128, double %129, double* %12, double* %13)
br label %131
131: ; preds = %127
%132 = load i32, i32* %15
%133 = add nsw i32 %132, 1
store i32 %133, i32* %15
br label %124
134: ; preds = %124
%135 = call double (...) @clock()
store double %135, double* %16
%136 = load double, double* %16
%137 = load double, double* %14
%138 = fsub double %136, %137
%139 = load double, double* @CLOCKS_PER_SEC
%140 = fdiv double %138, %139
%141 = fdiv double 5.000000e+07, %140
%142 = fdiv double %141, 1.000000e+06
%143 = fptosi double %142 to i32
%144 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %143)
%145 = load i32, i32* %1
ret i32 %145
}

LLVM IR (-O2):
@.str = [45 x i8] c"cerf (%21.14e,%21.14e) = (%21.14e, %21.14e)\0A\00"
@.str.1 = [45 x i8] c"cerfc(%21.14e,%21.14e) = (%21.14e, %21.14e)\0A\00"
@.str.2 = [24 x i8] c"cerff: %.3f Mcalls/sec\0A\00"
@CLOCKS_PER_SEC = global double 0.000000e+00
@.str.3 = [23 x i8] c"cerf: %.3f Mcalls/sec\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca double
%4 = alloca double
%5 = bitcast float* %1 to i8*
%6 = bitcast float* %2 to i8*
%7 = call i32 @cerff(float 5.000000e-01, float 5.000000e-01, float* %1, float* %2)
%8 = load float, float* %1
%9 = fpext float %8 to double
%10 = load float, float* %2
%11 = fpext float %10 to double
%12 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i32 0, double 5.000000e-01, double %9, double %11)
%13 = call i32 @cerfcf(float 5.000000e-01, float 5.000000e-01, float* %1, float* %2)
%14 = load float, float* %1
%15 = fpext float %14 to double
%16 = load float, float* %2
%17 = fpext float %16 to double
%18 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 0, double 5.000000e-01, double %15, double %17)
%19 = call i32 @cerff(float -5.000000e-01, float 5.000000e-01, float* %1, float* %2)
%20 = load float, float* %1
%21 = fpext float %20 to double
%22 = load float, float* %2
%23 = fpext float %22 to double
%24 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i32 0, double 5.000000e-01, double %21, double %23)
%25 = call i32 @cerfcf(float -5.000000e-01, float 5.000000e-01, float* %1, float* %2)
%26 = load float, float* %1
%27 = fpext float %26 to double
%28 = load float, float* %2
%29 = fpext float %28 to double
%30 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 0, double 5.000000e-01, double %27, double %29)
%31 = call double (...) @clock()
br label %60
32: ; preds = %60
%33 = call double (...) @clock()
%34 = fsub double %33, %31
%35 = load double, double* @CLOCKS_PER_SEC
%36 = fdiv double %34, %35
%37 = fdiv double 5.000000e+07, %36
%38 = fdiv double %37, 1.000000e+06
%39 = fptosi double %38 to i32
%40 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %39)
%41 = bitcast double* %3 to i8*
%42 = bitcast double* %4 to i8*
%43 = call i32 @cerf(double 5.000000e-01, double 5.000000e-01, double* %3, double* %4)
%44 = load double, double* %3
%45 = load double, double* %4
%46 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i32 0, double 5.000000e-01, double %44, double %45)
%47 = call i32 @cerfc(double 5.000000e-01, double 5.000000e-01, double* %3, double* %4)
%48 = load double, double* %3
%49 = load double, double* %4
%50 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 0, double 5.000000e-01, double %48, double %49)
%51 = call i32 @cerf(double -5.000000e-01, double 5.000000e-01, double* %3, double* %4)
%52 = load double, double* %3
%53 = load double, double* %4
%54 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i32 0, double 5.000000e-01, double %52, double %53)
%55 = call i32 @cerfc(double -5.000000e-01, double 5.000000e-01, double* %3, double* %4)
%56 = load double, double* %3
%57 = load double, double* %4
%58 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 0, double 5.000000e-01, double %56, double %57)
%59 = call double (...) @clock()
br label %74
60: ; preds = %0, %60
%61 = phi i32 [ 0, %0 ], [ %63, %60 ]
%62 = call i32 @cerff(float -5.000000e-01, float 5.000000e-01, float* %1, float* %2)
%63 = add nuw nsw i32 %61, 1
%64 = icmp eq i32 %63, 50000000
br i1 %64, label %32, label %60
65: ; preds = %74
%66 = call double (...) @clock()
%67 = fsub double %66, %59
%68 = load double, double* @CLOCKS_PER_SEC
%69 = fdiv double %67, %68
%70 = fdiv double 5.000000e+07, %69
%71 = fdiv double %70, 1.000000e+06
%72 = fptosi double %71 to i32
%73 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %72)
ret i32 0
74: ; preds = %32, %74
%75 = phi i32 [ 0, %32 ], [ %77, %74 ]
%76 = call i32 @cerf(double -5.000000e-01, double 5.000000e-01, double* %3, double* %4)
%77 = add nuw nsw i32 %75, 1
%78 = icmp eq i32 %77, 50000000
br i1 %78, label %65, label %74
}