#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 /*<<< orphan*/ printf(char *, ...);
double rand_double();
double rand_range_double(double, double);
int /*<<< orphan*/ srand(int);
void gen_path_pixels(void) {
  int i;
  srand(20050728);
  printf("static const int babl_num_path_test_pixels = %d;\n\n", 3072);
  printf("static const double babl_path_test_pixels[%d] = {\n", 3072 * 4);
  for (i = 0; i < 256; i++) {
    printf("%.13f"
           ", "
           "%.13f"
           ", "
           "%.13f"
           ", "
           "%.13f"
           ",\n",
           rand_double(), rand_double(), rand_double(), rand_double());
  }
  for (i = 0; i < 16; i++) {
    printf("%.13f"
           ", "
           "%.13f"
           ", "
           "%.13f"
           ", "
           "%.13f"
           ",\n",
           rand_range_double(-1.0, 0.0), rand_range_double(-1.0, 0.0),
           rand_range_double(-1.0, 0.0), rand_range_double(-1.0, 0.0));
  }
  for (i = 0; i < 16; i++) {
    printf("%.13f"
           ", "
           "%.13f"
           ", "
           "%.13f"
           ", "
           "%.13f"
           ",\n",
           rand_range_double(1.0, 2.0), rand_range_double(1.0, 2.0),
           rand_range_double(1.0, 2.0), rand_range_double(1.0, 2.0));
  }
  for (i = 0; i < 16; i++) {
    printf("%.13f"
           ", "
           "%.13f"
           ", "
           "%.13f"
           ", "
           "%.13f"
           ",\n",
           rand_double(), rand_double(), rand_double(), 0.0);
  }
  for (i = 304; i < 3072; i++) {
    printf("%.13f"
           ", "
           "%.13f"
           ", "
           "%.13f"
           ", "
           "%.13f"
           ",\n",
           rand_double(), rand_double(), rand_double(), rand_double());
  }
  printf("};\n\n");
  printf("static const int babl_num_conversion_test_pixels = %d;\n\n", 128);
  printf("static const double *babl_conversion_test_pixels = "
         "babl_path_test_pixels;\n\n");
  printf("static const int babl_num_format_test_pixels = %d;\n\n", 256);
  printf("static const double *babl_format_test_pixels = "
         "babl_path_test_pixels;\n\n");
}


x86 assembly (clang, -O0):
<gen_path_pixels>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    $0x131f328,%edi
call   1050 <srand@plt>
lea    0xebc(%rip),%rdi
mov    $0xc00,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
mov    $0x3000,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x100,-0x4(%rbp)
jge    11e8 <gen_path_pixels+0xa8>
mov    $0x0,%al
call   1040 <rand_double@plt>
movsd  %xmm0,-0x10(%rbp)
mov    $0x0,%al
call   1040 <rand_double@plt>
movsd  %xmm0,-0x20(%rbp)
mov    $0x0,%al
call   1040 <rand_double@plt>
movsd  %xmm0,-0x18(%rbp)
mov    $0x0,%al
call   1040 <rand_double@plt>
movsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x10(%rbp),%xmm0
lea    0xeab(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1182 <gen_path_pixels+0x42>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1276 <gen_path_pixels+0x136>
movsd  0xe0f(%rip),%xmm0
xorps  %xmm1,%xmm1
call   1060 <rand_range_double@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  0xdfa(%rip),%xmm0
xorps  %xmm1,%xmm1
call   1060 <rand_range_double@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  0xde5(%rip),%xmm0
xorps  %xmm1,%xmm1
call   1060 <rand_range_double@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  0xdd0(%rip),%xmm0
xorps  %xmm1,%xmm1
call   1060 <rand_range_double@plt>
movsd  -0x38(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x28(%rbp),%xmm0
lea    0xe1d(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11ef <gen_path_pixels+0xaf>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1318 <gen_path_pixels+0x1d8>
movsd  0xd71(%rip),%xmm0
movsd  0xd71(%rip),%xmm1
call   1060 <rand_range_double@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  0xd57(%rip),%xmm0
movsd  0xd57(%rip),%xmm1
call   1060 <rand_range_double@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  0xd3d(%rip),%xmm0
movsd  0xd3d(%rip),%xmm1
call   1060 <rand_range_double@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  0xd23(%rip),%xmm0
movsd  0xd23(%rip),%xmm1
call   1060 <rand_range_double@plt>
movsd  -0x50(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x40(%rbp),%xmm0
lea    0xd7b(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    127d <gen_path_pixels+0x13d>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1374 <gen_path_pixels+0x234>
mov    $0x0,%al
call   1040 <rand_double@plt>
movsd  %xmm0,-0x58(%rbp)
mov    $0x0,%al
call   1040 <rand_double@plt>
movsd  %xmm0,-0x60(%rbp)
mov    $0x0,%al
call   1040 <rand_double@plt>
movsd  -0x60(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x58(%rbp),%xmm0
lea    0xd22(%rip),%rdi
xorps  %xmm3,%xmm3
mov    $0x4,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    131f <gen_path_pixels+0x1df>
movl   $0x130,-0x4(%rbp)
cmpl   $0xc00,-0x4(%rbp)
jge    13e1 <gen_path_pixels+0x2a1>
mov    $0x0,%al
call   1040 <rand_double@plt>
movsd  %xmm0,-0x68(%rbp)
mov    $0x0,%al
call   1040 <rand_double@plt>
movsd  %xmm0,-0x78(%rbp)
mov    $0x0,%al
call   1040 <rand_double@plt>
movsd  %xmm0,-0x70(%rbp)
mov    $0x0,%al
call   1040 <rand_double@plt>
movsd  -0x78(%rbp),%xmm1
movsd  -0x70(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x68(%rbp),%xmm0
lea    0xcb2(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    137b <gen_path_pixels+0x23b>
lea    0xcb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcaa(%rip),%rdi
mov    $0x80,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcd0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd0e(%rip),%rdi
mov    $0x100,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd30(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_path_pixels>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
mov    $0x131f328,%edi
call   1060 <srand@plt>
lea    0xeb1(%rip),%rdi
mov    $0xc00,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed1(%rip),%rdi
mov    $0x3000,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x100,%ebp
lea    0xeec(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
mov    $0x4,%al
call   1040 <printf@plt>
add    $0xffffffff,%ebp
jne    11a0 <gen_path_pixels+0x50>
mov    $0x10,%ebp
lea    0xe82(%rip),%rbx
nopl   0x0(%rax)
xorps  %xmm1,%xmm1
movsd  0xdf5(%rip),%xmm0
call   1070 <rand_range_double@plt>
movsd  %xmm0,0x8(%rsp)
xorps  %xmm1,%xmm1
movsd  0xddf(%rip),%xmm0
call   1070 <rand_range_double@plt>
movsd  %xmm0,(%rsp)
xorps  %xmm1,%xmm1
movsd  0xdca(%rip),%xmm0
call   1070 <rand_range_double@plt>
movsd  %xmm0,0x10(%rsp)
xorps  %xmm1,%xmm1
movsd  0xdb4(%rip),%xmm0
call   1070 <rand_range_double@plt>
movaps %xmm0,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
mov    $0x4,%al
call   1040 <printf@plt>
add    $0xffffffff,%ebp
jne    1200 <gen_path_pixels+0xb0>
mov    $0x10,%ebp
lea    0xdfe(%rip),%rbx
movsd  0xd80(%rip),%xmm0
movsd  0xd80(%rip),%xmm1
call   1070 <rand_range_double@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0xd65(%rip),%xmm0
movsd  0xd65(%rip),%xmm1
call   1070 <rand_range_double@plt>
movsd  %xmm0,(%rsp)
movsd  0xd4b(%rip),%xmm0
movsd  0xd4b(%rip),%xmm1
call   1070 <rand_range_double@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0xd30(%rip),%xmm0
movsd  0xd30(%rip),%xmm1
call   1070 <rand_range_double@plt>
movaps %xmm0,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
mov    $0x4,%al
call   1040 <printf@plt>
add    $0xffffffff,%ebp
jne    1280 <gen_path_pixels+0x130>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
lea    0xd48(%rip),%rbx
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm2
xorps  %xmm3,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mov    $0x4,%al
call   1040 <printf@plt>
mov    $0xad0,%ebp
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movsd  %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1050 <rand_double@plt>
movaps %xmm0,%xmm3
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
mov    $0x4,%al
call   1040 <printf@plt>
add    $0xffffffff,%ebp
jne    16d0 <gen_path_pixels+0x580>
lea    0x9e2(%rip),%rdi
call   1030 <puts@plt>
lea    0x968(%rip),%rdi
mov    $0x80,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x9c7(%rip),%rdi
call   1030 <puts@plt>
lea    0x982(%rip),%rdi
mov    $0x100,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x9f3(%rip),%rdi
add    $0x18,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [51 x i8] c"static const int babl_num_path_test_pixels = %d;\0A\0A\00"
@.str.1 = [51 x i8] c"static const double babl_path_test_pixels[%d] = {\0A\00"
@.str.2 = [29 x i8] c"%.13f, %.13f, %.13f, %.13f,\0A\00"
@.str.3 = [5 x i8] c"};\0A\0A\00"
@.str.4 = [57 x i8] c"static const int babl_num_conversion_test_pixels = %d;\0A\0A\00"
@.str.5 = [76 x i8] c"static const double *babl_conversion_test_pixels = babl_path_test_pixels;\0A\0A\00"
@.str.6 = [53 x i8] c"static const int babl_num_format_test_pixels = %d;\0A\0A\00"
@.str.7 = [72 x i8] c"static const double *babl_format_test_pixels = babl_path_test_pixels;\0A\0A\00"
define void @gen_path_pixels() {
%1 = alloca i32
%2 = call i32 @srand(i32 20050728)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32 3072)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 12288)
store i32 0, i32* %1
br label %5
5: ; preds = %14, %0
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 256
br i1 %7, label %8, label %17
8: ; preds = %5
%9 = call double (...) @rand_double()
%10 = call double (...) @rand_double()
%11 = call double (...) @rand_double()
%12 = call double (...) @rand_double()
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %9, double %10, double %11, double %12)
br label %14
14: ; preds = %8
%15 = load i32, i32* %1
%16 = add nsw i32 %15, 1
store i32 %16, i32* %1
br label %5
17: ; preds = %5
store i32 0, i32* %1
br label %18
18: ; preds = %27, %17
%19 = load i32, i32* %1
%20 = icmp slt i32 %19, 16
br i1 %20, label %21, label %30
21: ; preds = %18
%22 = call double @rand_range_double(double -1.000000e+00, double 0.000000e+00)
%23 = call double @rand_range_double(double -1.000000e+00, double 0.000000e+00)
%24 = call double @rand_range_double(double -1.000000e+00, double 0.000000e+00)
%25 = call double @rand_range_double(double -1.000000e+00, double 0.000000e+00)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %22, double %23, double %24, double %25)
br label %27
27: ; preds = %21
%28 = load i32, i32* %1
%29 = add nsw i32 %28, 1
store i32 %29, i32* %1
br label %18
30: ; preds = %18
store i32 0, i32* %1
br label %31
31: ; preds = %40, %30
%32 = load i32, i32* %1
%33 = icmp slt i32 %32, 16
br i1 %33, label %34, label %43
34: ; preds = %31
%35 = call double @rand_range_double(double 1.000000e+00, double 2.000000e+00)
%36 = call double @rand_range_double(double 1.000000e+00, double 2.000000e+00)
%37 = call double @rand_range_double(double 1.000000e+00, double 2.000000e+00)
%38 = call double @rand_range_double(double 1.000000e+00, double 2.000000e+00)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %35, double %36, double %37, double %38)
br label %40
40: ; preds = %34
%41 = load i32, i32* %1
%42 = add nsw i32 %41, 1
store i32 %42, i32* %1
br label %31
43: ; preds = %31
store i32 0, i32* %1
br label %44
44: ; preds = %52, %43
%45 = load i32, i32* %1
%46 = icmp slt i32 %45, 16
br i1 %46, label %47, label %55
47: ; preds = %44
%48 = call double (...) @rand_double()
%49 = call double (...) @rand_double()
%50 = call double (...) @rand_double()
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %48, double %49, double %50, double 0.000000e+00)
br label %52
52: ; preds = %47
%53 = load i32, i32* %1
%54 = add nsw i32 %53, 1
store i32 %54, i32* %1
br label %44
55: ; preds = %44
store i32 304, i32* %1
br label %56
56: ; preds = %65, %55
%57 = load i32, i32* %1
%58 = icmp slt i32 %57, 3072
br i1 %58, label %59, label %68
59: ; preds = %56
%60 = call double (...) @rand_double()
%61 = call double (...) @rand_double()
%62 = call double (...) @rand_double()
%63 = call double (...) @rand_double()
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %60, double %61, double %62, double %63)
br label %65
65: ; preds = %59
%66 = load i32, i32* %1
%67 = add nsw i32 %66, 1
store i32 %67, i32* %1
br label %56
68: ; preds = %56
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0), i32 128)
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.5, i64 0, i64 0))
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0), i32 256)
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [51 x i8] c"static const int babl_num_path_test_pixels = %d;\0A\0A\00"
@.str.1 = [51 x i8] c"static const double babl_path_test_pixels[%d] = {\0A\00"
@.str.2 = [29 x i8] c"%.13f, %.13f, %.13f, %.13f,\0A\00"
@.str.4 = [57 x i8] c"static const int babl_num_conversion_test_pixels = %d;\0A\0A\00"
@.str.6 = [53 x i8] c"static const int babl_num_format_test_pixels = %d;\0A\0A\00"
@str = [4 x i8] c"};\0A\00"
@str.8 = [75 x i8] c"static const double *babl_conversion_test_pixels = babl_path_test_pixels;\0A\00"
@str.9 = [71 x i8] c"static const double *babl_format_test_pixels = babl_path_test_pixels;\0A\00"
define void @gen_path_pixels() {
%1 = tail call i32 @srand(i32 20050728)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32 3072)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 12288)
br label %4
4: ; preds = %0, %4
%5 = phi i32 [ 0, %0 ], [ %11, %4 ]
%6 = tail call double (...) @rand_double()
%7 = tail call double (...) @rand_double()
%8 = tail call double (...) @rand_double()
%9 = tail call double (...) @rand_double()
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %6, double %7, double %8, double %9)
%11 = add nuw nsw i32 %5, 1
%12 = icmp eq i32 %11, 256
br i1 %12, label %13, label %4
13: ; preds = %4, %13
%14 = phi i32 [ %20, %13 ], [ 0, %4 ]
%15 = tail call double @rand_range_double(double -1.000000e+00, double 0.000000e+00)
%16 = tail call double @rand_range_double(double -1.000000e+00, double 0.000000e+00)
%17 = tail call double @rand_range_double(double -1.000000e+00, double 0.000000e+00)
%18 = tail call double @rand_range_double(double -1.000000e+00, double 0.000000e+00)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %15, double %16, double %17, double %18)
%20 = add nuw nsw i32 %14, 1
%21 = icmp eq i32 %20, 16
br i1 %21, label %22, label %13
22: ; preds = %13, %22
%23 = phi i32 [ %29, %22 ], [ 0, %13 ]
%24 = tail call double @rand_range_double(double 1.000000e+00, double 2.000000e+00)
%25 = tail call double @rand_range_double(double 1.000000e+00, double 2.000000e+00)
%26 = tail call double @rand_range_double(double 1.000000e+00, double 2.000000e+00)
%27 = tail call double @rand_range_double(double 1.000000e+00, double 2.000000e+00)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %24, double %25, double %26, double %27)
%29 = add nuw nsw i32 %23, 1
%30 = icmp eq i32 %29, 16
br i1 %30, label %31, label %22
31: ; preds = %22
%32 = tail call double (...) @rand_double()
%33 = tail call double (...) @rand_double()
%34 = tail call double (...) @rand_double()
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %32, double %33, double %34, double 0.000000e+00)
%36 = tail call double (...) @rand_double()
%37 = tail call double (...) @rand_double()
%38 = tail call double (...) @rand_double()
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %36, double %37, double %38, double 0.000000e+00)
%40 = tail call double (...) @rand_double()
%41 = tail call double (...) @rand_double()
%42 = tail call double (...) @rand_double()
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %40, double %41, double %42, double 0.000000e+00)
%44 = tail call double (...) @rand_double()
%45 = tail call double (...) @rand_double()
%46 = tail call double (...) @rand_double()
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %44, double %45, double %46, double 0.000000e+00)
%48 = tail call double (...) @rand_double()
%49 = tail call double (...) @rand_double()
%50 = tail call double (...) @rand_double()
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %48, double %49, double %50, double 0.000000e+00)
%52 = tail call double (...) @rand_double()
%53 = tail call double (...) @rand_double()
%54 = tail call double (...) @rand_double()
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %52, double %53, double %54, double 0.000000e+00)
%56 = tail call double (...) @rand_double()
%57 = tail call double (...) @rand_double()
%58 = tail call double (...) @rand_double()
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %56, double %57, double %58, double 0.000000e+00)
%60 = tail call double (...) @rand_double()
%61 = tail call double (...) @rand_double()
%62 = tail call double (...) @rand_double()
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %60, double %61, double %62, double 0.000000e+00)
%64 = tail call double (...) @rand_double()
%65 = tail call double (...) @rand_double()
%66 = tail call double (...) @rand_double()
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %64, double %65, double %66, double 0.000000e+00)
%68 = tail call double (...) @rand_double()
%69 = tail call double (...) @rand_double()
%70 = tail call double (...) @rand_double()
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %68, double %69, double %70, double 0.000000e+00)
%72 = tail call double (...) @rand_double()
%73 = tail call double (...) @rand_double()
%74 = tail call double (...) @rand_double()
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %72, double %73, double %74, double 0.000000e+00)
%76 = tail call double (...) @rand_double()
%77 = tail call double (...) @rand_double()
%78 = tail call double (...) @rand_double()
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %76, double %77, double %78, double 0.000000e+00)
%80 = tail call double (...) @rand_double()
%81 = tail call double (...) @rand_double()
%82 = tail call double (...) @rand_double()
%83 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %80, double %81, double %82, double 0.000000e+00)
%84 = tail call double (...) @rand_double()
%85 = tail call double (...) @rand_double()
%86 = tail call double (...) @rand_double()
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %84, double %85, double %86, double 0.000000e+00)
%88 = tail call double (...) @rand_double()
%89 = tail call double (...) @rand_double()
%90 = tail call double (...) @rand_double()
%91 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %88, double %89, double %90, double 0.000000e+00)
%92 = tail call double (...) @rand_double()
%93 = tail call double (...) @rand_double()
%94 = tail call double (...) @rand_double()
%95 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %92, double %93, double %94, double 0.000000e+00)
br label %96
96: ; preds = %31, %96
%97 = phi i32 [ %103, %96 ], [ 304, %31 ]
%98 = tail call double (...) @rand_double()
%99 = tail call double (...) @rand_double()
%100 = tail call double (...) @rand_double()
%101 = tail call double (...) @rand_double()
%102 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %98, double %99, double %100, double %101)
%103 = add nuw nsw i32 %97, 1
%104 = icmp eq i32 %103, 3072
br i1 %104, label %105, label %96
105: ; preds = %96
%106 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str, i64 0, i64 0))
%107 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0), i32 128)
%108 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.8, i64 0, i64 0))
%109 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0), i32 256)
%110 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.9, i64 0, i64 0))
ret void
}