void cdflib_f_cdf_values(int *n_data, int *a, int *b, double *x, double *fx) {
  enum { N_MAX = 20 };
  static const int a_vec[N_MAX] = {1, 1, 5, 1, 2, 4, 1, 6, 8, 1,
                                   3, 6, 1, 1, 1, 1, 2, 3, 4, 5};
  static const int b_vec[N_MAX] = {1,  5,  1, 5, 10, 20, 5, 6, 16, 5,
                                   10, 12, 5, 5, 5,  5,  5, 5, 5,  5};
  static const double fx_vec[N_MAX] = {
      0.500000E+00, 0.499971E+00, 0.499603E+00, 0.749699E+00, 0.750466E+00,
      0.751416E+00, 0.899987E+00, 0.899713E+00, 0.900285E+00, 0.950025E+00,
      0.950057E+00, 0.950193E+00, 0.975013E+00, 0.990002E+00, 0.994998E+00,
      0.999000E+00, 0.568799E+00, 0.535145E+00, 0.514343E+00, 0.500000E+00};
  static const double x_vec[N_MAX] = {
      1.00E+00,  0.528E+00, 1.89E+00, 1.69E+00, 1.60E+00, 1.47E+00,  4.06E+00,
      3.05E+00,  2.09E+00,  6.61E+00, 3.71E+00, 3.00E+00, 10.01E+00, 16.26E+00,
      22.78E+00, 47.18E+00, 1.00E+00, 1.00E+00, 1.00E+00, 1.00E+00};
  if (*n_data < 0) {
    *n_data = 0;
  }
  *n_data = *n_data + 1;
  if (N_MAX < *n_data) {
    *n_data = 0;
    *a = 0;
    *b = 0;
    *x = 0.0E+00;
    *fx = 0.0E+00;
  } else {
    *a = a_vec[*n_data - 1];
    *b = b_vec[*n_data - 1];
    *x = x_vec[*n_data - 1];
    *fx = fx_vec[*n_data - 1];
  }
  return;
}


x86 assembly (clang, -O0):
<cdflib_f_cdf_values>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rax
cmpl   $0x0,(%rax)
jge    112f <cdflib_f_cdf_values+0x2f>
mov    -0x8(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rcx
mov    $0x14,%eax
cmp    (%rcx),%eax
jge    1188 <cdflib_f_cdf_values+0x88>
mov    -0x8(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
jmp    1200 <cdflib_f_cdf_values+0x100>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    0xe65(%rip),%rax
mov    (%rax,%rcx,4),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    0xe99(%rip),%rax
mov    (%rax,%rcx,4),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    0xf6d(%rip),%rax
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    0xead(%rip),%rax
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<cdflib_f_cdf_values>:
mov    (%rdi),%r9d
test   %r9d,%r9d
js     1136 <cdflib_f_cdf_values+0x36>
lea    0x1(%r9),%eax
mov    %eax,(%rdi)
cmp    $0x14,%r9d
jb     113f <cdflib_f_cdf_values+0x3f>
movl   $0x0,(%rdi)
movl   $0x0,(%rsi)
movl   $0x0,(%rdx)
movq   $0x0,(%rcx)
xorps  %xmm0,%xmm0
movsd  %xmm0,(%r8)
ret
movl   $0x1,(%rdi)
xor    %r9d,%r9d
mov    %r9d,%r9d
lea    0xeb7(%rip),%rax
mov    (%rax,%r9,4),%eax
mov    %eax,(%rsi)
movslq (%rdi),%rax
lea    0xef7(%rip),%rsi
mov    -0x4(%rsi,%rax,4),%eax
mov    %eax,(%rdx)
movslq (%rdi),%rax
lea    0xfd7(%rip),%rdx
movsd  -0x8(%rdx,%rax,8),%xmm0
movsd  %xmm0,(%rcx)
lea    0xf26(%rip),%rcx
movsd  -0x8(%rcx,%rax,8),%xmm0
movsd  %xmm0,(%r8)
ret

LLVM IR (-O0):
@cdflib_f_cdf_values.a_vec = internal constant [20 x i32] [i32 1, i32 1, i32 5, i32 1, i32 2, i32 4, i32 1, i32 6, i32 8, i32 1, i32 3, i32 6, i32 1, i32 1, i32 1, i32 1, i32 2, i32 3, i32 4, i32 5]
@cdflib_f_cdf_values.b_vec = internal constant [20 x i32] [i32 1, i32 5, i32 1, i32 5, i32 10, i32 20, i32 5, i32 6, i32 16, i32 5, i32 10, i32 12, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5]
@cdflib_f_cdf_values.fx_vec = internal constant [20 x double] [double 5.000000e-01, double 4.999710e-01, double 4.996030e-01, double 7.496990e-01, double 7.504660e-01, double 7.514160e-01, double 8.999870e-01, double 0x3FECCA72EAD9274E, double 9.002850e-01, double 9.500250e-01, double 9.500570e-01, double 9.501930e-01, double 9.750130e-01, double 9.900020e-01, double 9.949980e-01, double 0x3FEFF7CED916872B, double 5.687990e-01, double 5.351450e-01, double 5.143430e-01, double 5.000000e-01]
@cdflib_f_cdf_values.x_vec = internal constant [20 x double] [double 1.000000e+00, double 5.280000e-01, double 1.890000e+00, double 1.690000e+00, double 1.600000e+00, double 1.470000e+00, double 4.060000e+00, double 3.050000e+00, double 2.090000e+00, double 6.610000e+00, double 3.710000e+00, double 3.000000e+00, double 1.001000e+01, double 1.626000e+01, double 2.278000e+01, double 4.718000e+01, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00]
define void @cdflib_f_cdf_values(i32* %0, i32* %1, i32* %2, double* %3, double* %4) {
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca double*
%10 = alloca double*
store i32* %0, i32** %6
store i32* %1, i32** %7
store i32* %2, i32** %8
store double* %3, double** %9
store double* %4, double** %10
%11 = load i32*, i32** %6
%12 = load i32, i32* %11
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %5
%15 = load i32*, i32** %6
store i32 0, i32* %15
br label %16
16: ; preds = %14, %5
%17 = load i32*, i32** %6
%18 = load i32, i32* %17
%19 = add nsw i32 %18, 1
%20 = load i32*, i32** %6
store i32 %19, i32* %20
%21 = load i32*, i32** %6
%22 = load i32, i32* %21
%23 = icmp slt i32 20, %22
br i1 %23, label %24, label %30
24: ; preds = %16
%25 = load i32*, i32** %6
store i32 0, i32* %25
%26 = load i32*, i32** %7
store i32 0, i32* %26
%27 = load i32*, i32** %8
store i32 0, i32* %27
%28 = load double*, double** %9
store double 0.000000e+00, double* %28
%29 = load double*, double** %10
store double 0.000000e+00, double* %29
br label %59
30: ; preds = %16
%31 = load i32*, i32** %6
%32 = load i32, i32* %31
%33 = sub nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [20 x i32], [20 x i32]* @cdflib_f_cdf_values.a_vec, i64 0, i64 %34
%36 = load i32, i32* %35
%37 = load i32*, i32** %7
store i32 %36, i32* %37
%38 = load i32*, i32** %6
%39 = load i32, i32* %38
%40 = sub nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [20 x i32], [20 x i32]* @cdflib_f_cdf_values.b_vec, i64 0, i64 %41
%43 = load i32, i32* %42
%44 = load i32*, i32** %8
store i32 %43, i32* %44
%45 = load i32*, i32** %6
%46 = load i32, i32* %45
%47 = sub nsw i32 %46, 1
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [20 x double], [20 x double]* @cdflib_f_cdf_values.x_vec, i64 0, i64 %48
%50 = load double, double* %49
%51 = load double*, double** %9
store double %50, double* %51
%52 = load i32*, i32** %6
%53 = load i32, i32* %52
%54 = sub nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [20 x double], [20 x double]* @cdflib_f_cdf_values.fx_vec, i64 0, i64 %55
%57 = load double, double* %56
%58 = load double*, double** %10
store double %57, double* %58
br label %59
59: ; preds = %30, %24
ret void
}

LLVM IR (-O2):
@cdflib_f_cdf_values.a_vec = internal unnamed_addr constant [20 x i32] [i32 1, i32 1, i32 5, i32 1, i32 2, i32 4, i32 1, i32 6, i32 8, i32 1, i32 3, i32 6, i32 1, i32 1, i32 1, i32 1, i32 2, i32 3, i32 4, i32 5]
@cdflib_f_cdf_values.b_vec = internal unnamed_addr constant [20 x i32] [i32 1, i32 5, i32 1, i32 5, i32 10, i32 20, i32 5, i32 6, i32 16, i32 5, i32 10, i32 12, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5]
@cdflib_f_cdf_values.fx_vec = internal unnamed_addr constant [20 x double] [double 5.000000e-01, double 4.999710e-01, double 4.996030e-01, double 7.496990e-01, double 7.504660e-01, double 7.514160e-01, double 8.999870e-01, double 0x3FECCA72EAD9274E, double 9.002850e-01, double 9.500250e-01, double 9.500570e-01, double 9.501930e-01, double 9.750130e-01, double 9.900020e-01, double 9.949980e-01, double 0x3FEFF7CED916872B, double 5.687990e-01, double 5.351450e-01, double 5.143430e-01, double 5.000000e-01]
@cdflib_f_cdf_values.x_vec = internal unnamed_addr constant [20 x double] [double 1.000000e+00, double 5.280000e-01, double 1.890000e+00, double 1.690000e+00, double 1.600000e+00, double 1.470000e+00, double 4.060000e+00, double 3.050000e+00, double 2.090000e+00, double 6.610000e+00, double 3.710000e+00, double 3.000000e+00, double 1.001000e+01, double 1.626000e+01, double 2.278000e+01, double 4.718000e+01, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00]
define void @cdflib_f_cdf_values(i32* nocapture %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2, double* nocapture writeonly %3, double* nocapture writeonly %4) {
%6 = load i32, i32* %0
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %5
store i32 1, i32* %0
br label %13
9: ; preds = %5
%10 = add nuw nsw i32 %6, 1
store i32 %10, i32* %0
%11 = icmp ugt i32 %6, 19
br i1 %11, label %12, label %13
12: ; preds = %9
store i32 0, i32* %0
store i32 0, i32* %1
store i32 0, i32* %2
store double 0.000000e+00, double* %3
br label %30
13: ; preds = %8, %9
%14 = phi i32 [ 0, %8 ], [ %6, %9 ]
%15 = zext i32 %14 to i64
%16 = getelementptr inbounds [20 x i32], [20 x i32]* @cdflib_f_cdf_values.a_vec, i64 0, i64 %15
%17 = load i32, i32* %16
store i32 %17, i32* %1
%18 = load i32, i32* %0
%19 = add nsw i32 %18, -1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [20 x i32], [20 x i32]* @cdflib_f_cdf_values.b_vec, i64 0, i64 %20
%22 = load i32, i32* %21
store i32 %22, i32* %2
%23 = load i32, i32* %0
%24 = add nsw i32 %23, -1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [20 x double], [20 x double]* @cdflib_f_cdf_values.x_vec, i64 0, i64 %25
%27 = load double, double* %26
store double %27, double* %3
%28 = getelementptr inbounds [20 x double], [20 x double]* @cdflib_f_cdf_values.fx_vec, i64 0, i64 %25
%29 = load double, double* %28
br label %30
30: ; preds = %13, %12
%31 = phi double [ %29, %13 ], [ 0.000000e+00, %12 ]
store double %31, double* %4
ret void
}