#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 */
struct option {
  char *member_0;
  char member_3;
  int /*<<< orphan*/ *member_2;
  int /*<<< orphan*/ const member_1;
};

/* Variables and functions */
int EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ abort();
double drand48();
int /*<<< orphan*/ free(char *);
int getopt_long(int, char **, char *, struct option *, int *);
char *malloc(size_t);
#define no_argument 129
int /*<<< orphan*/ optarg;
int /*<<< orphan*/ print_help();
int /*<<< orphan*/ printf(char *, char *, char *, char *);
int /*<<< orphan*/ randcat(char *, double *, int, char *, size_t);
#define required_argument 128
scalar_t__ strtoul(int /*<<< orphan*/, int /*<<< orphan*/ *, int);
int main(int argc, char *argv[]) {
  static struct option long_options[] = {
      {"min-length", required_argument, NULL, 'm'},
      {"max-length", required_argument, NULL, 'M'},
      {"length", required_argument, NULL, 'l'},
      {"id-length", required_argument, NULL, 'i'},
      {"help", no_argument, NULL, 'h'},
      {NULL, 0, NULL, 0}};
  size_t min_len = 100, max_len = 100;
  size_t id_len = 50;
  int opt, opt_idx;
  while (1) {
    opt = getopt_long(argc, argv, "h", long_options, &opt_idx);
    if (opt == -1)
      break;
    switch (opt) {
    case 'm':
      min_len = (size_t)strtoul(optarg, NULL, 10);
      break;
    case 'M':
      max_len = (size_t)strtoul(optarg, NULL, 10);
      break;
    case 'l':
      min_len = max_len = (size_t)strtoul(optarg, NULL, 10);
      break;
    case 'i':
      id_len = (size_t)strtoul(optarg, NULL, 10);
      break;
    case 'h':
      print_help();
      return EXIT_SUCCESS;
    case '?':
      return EXIT_FAILURE;
    default:
      abort();
    }
  }
  char nucleotides[5] = {'A', 'C', 'G', 'T', 'N'};
  double nuc_cs[5] = {0.28, 0.49, 0.70, 0.90, 1.00};
  char qualities[64];
  double qual_cs[64];
  size_t i;
  double last_c = 0.0;
  for (i = 0; i < 64; ++i) {
    qualities[i] = '!' + i;
    last_c = qual_cs[i] = last_c + 1.0 / 64.0;
  }
  char id_chars[94];
  double id_cs[94];
  last_c = 0.0;
  for (i = 0; i < 94; ++i) {
    id_chars[i] = '!' + i;
    last_c = id_cs[i] = last_c + 1.0 / 94.0;
  }
  char *id = malloc(id_len + 1);
  char *seq = malloc(max_len + 1);
  char *qual = malloc(max_len + 1);
  size_t len = min_len;
  while (1) {
    if (max_len > min_len) {
      len = min_len + (size_t)(drand48() * (double)(1 + max_len - min_len));
    }
    randcat(id_chars, id_cs, 94, id, id_len);
    id[id_len] = '\0';
    randcat(nucleotides, nuc_cs, 5, seq, len);
    seq[len] = '\0';
    randcat(qualities, qual_cs, 64, qual, len);
    qual[len] = '\0';
    printf("@%s\n%s\n+\n%s\n", id, seq, qual);
  }
  free(id);
  free(seq);
  free(qual);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x630,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x64,-0x18(%rbp)
movq   $0x64,-0x20(%rbp)
movq   $0x32,-0x28(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xf70(%rip),%rdx
lea    0x2e9a(%rip),%rcx
lea    -0x30(%rbp),%r8
call   1040 <getopt_long@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0xffffffff,-0x2c(%rbp)
jne    11f1 <main+0x61>
jmp    12d9 <main+0x149>
mov    -0x2c(%rbp),%eax
add    $0xffffffc1,%eax
mov    %eax,%ecx
mov    %rcx,-0x628(%rbp)
sub    $0x2e,%eax
ja     12cd <main+0x13d>
mov    -0x628(%rbp),%rax
lea    0xe49(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2dd1(%rip),%rax
mov    (%rax),%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1080 <strtoul@plt>
mov    %rax,-0x18(%rbp)
jmp    12d4 <main+0x144>
mov    0x2db1(%rip),%rax
mov    (%rax),%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1080 <strtoul@plt>
mov    %rax,-0x20(%rbp)
jmp    12d4 <main+0x144>
mov    0x2d91(%rip),%rax
mov    (%rax),%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1080 <strtoul@plt>
mov    %rax,-0x20(%rbp)
mov    %rax,-0x18(%rbp)
jmp    12d4 <main+0x144>
mov    0x2d6d(%rip),%rax
mov    (%rax),%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1080 <strtoul@plt>
mov    %rax,-0x28(%rbp)
jmp    12d4 <main+0x144>
mov    $0x0,%al
call   1090 <print_help@plt>
mov    0x2d1e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    15d2 <main+0x442>
mov    0x2d15(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    15d2 <main+0x442>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    11c1 <main+0x31>
mov    0xe3d(%rip),%eax
mov    %eax,-0x35(%rbp)
mov    0xe38(%rip),%al
mov    %al,-0x31(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1060 <memset@plt>
movsd  0xd1d(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xd08(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xcf3(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xcde(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xcc9(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x2b0(%rbp)
ff
movq   $0x0,-0x2a8(%rbp)
cmpq   $0x40,-0x2a8(%rbp)
40
jae    13ba <main+0x22a>
mov    -0x2a8(%rbp),%rax
add    $0x21,%rax
mov    %al,%cl
mov    -0x2a8(%rbp),%rax
mov    %cl,-0xa0(%rbp,%rax,1)
movsd  0xcb5(%rip),%xmm0
addsd  -0x2b0(%rbp),%xmm0
ff
mov    -0x2a8(%rbp),%rax
movsd  %xmm0,-0x2a0(%rbp,%rax,8)
ff ff
movsd  %xmm0,-0x2b0(%rbp)
ff
mov    -0x2a8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x2a8(%rbp)
jmp    1352 <main+0x1c2>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x2b0(%rbp)
ff
movq   $0x0,-0x2a8(%rbp)
cmpq   $0x5e,-0x2a8(%rbp)
5e
jae    1438 <main+0x2a8>
mov    -0x2a8(%rbp),%rax
add    $0x21,%rax
mov    %al,%cl
mov    -0x2a8(%rbp),%rax
mov    %cl,-0x310(%rbp,%rax,1)
movsd  0xc2f(%rip),%xmm0
addsd  -0x2b0(%rbp),%xmm0
ff
mov    -0x2a8(%rbp),%rax
movsd  %xmm0,-0x600(%rbp,%rax,8)
ff ff
movsd  %xmm0,-0x2b0(%rbp)
ff
mov    -0x2a8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x2a8(%rbp)
jmp    13d0 <main+0x240>
mov    -0x28(%rbp),%rdi
add    $0x1,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x608(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x1,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x610(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x1,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x618(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x620(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x18(%rbp),%rax
jbe    1510 <main+0x380>
mov    -0x18(%rbp),%rax
mov    %rax,-0x630(%rbp)
xor    %eax,%eax
call   10a0 <drand48@plt>
mov    -0x630(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    -0x18(%rbp),%rdx
sub    %rdx,%rcx
add    $0x1,%rcx
movq   %rcx,%xmm1
movaps 0xb7f(%rip),%xmm2
punpckldq %xmm2,%xmm1
movapd 0xb83(%rip),%xmm2
subpd  %xmm2,%xmm1
movaps %xmm1,%xmm2
unpckhpd %xmm1,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movaps %xmm0,%xmm1
cvttsd2si %xmm1,%rcx
mov    %rcx,%rsi
sar    $0x3f,%rsi
movsd  0xb31(%rip),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rdx
and    %rsi,%rdx
or     %rdx,%rcx
add    %rcx,%rax
mov    %rax,-0x620(%rbp)
lea    -0x310(%rbp),%rdi
lea    -0x600(%rbp),%rsi
mov    -0x608(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    $0x5e,%edx
call   10b0 <randcat@plt>
mov    -0x608(%rbp),%rax
mov    -0x28(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
lea    -0x35(%rbp),%rdi
lea    -0x60(%rbp),%rsi
mov    -0x610(%rbp),%rcx
mov    -0x620(%rbp),%r8
mov    $0x5,%edx
call   10b0 <randcat@plt>
mov    -0x610(%rbp),%rax
mov    -0x620(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
lea    -0xa0(%rbp),%rdi
lea    -0x2a0(%rbp),%rsi
mov    -0x618(%rbp),%rcx
mov    -0x620(%rbp),%r8
mov    $0x40,%edx
call   10b0 <randcat@plt>
mov    -0x618(%rbp),%rax
mov    -0x620(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x608(%rbp),%rsi
mov    -0x610(%rbp),%rdx
mov    -0x618(%rbp),%rcx
lea    0xb7e(%rip),%rdi
call   1050 <printf@plt>
jmp    147f <main+0x2ef>
mov    -0x4(%rbp),%eax
add    $0x630,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x5f8,%rsp
mov    %rsi,%r12
mov    %edi,%ebx
mov    $0x64,%eax
mov    %rax,0x8(%rsp)
mov    $0x32,%r13d
lea    0x1c(%rsp),%rbp
mov    0x2e46(%rip),%r14
lea    0xe9f(%rip),%r15
mov    $0x64,%eax
jmp    11cf <main+0x4f>
mov    (%r14),%edi
xor    %esi,%esi
mov    $0xa,%edx
call   1070 <strtoul@plt>
mov    %rax,(%rsp)
mov    %ebx,%edi
mov    %r12,%rsi
lea    0xf54(%rip),%rdx
lea    0x2e8a(%rip),%rcx
mov    %rbp,%r8
call   1040 <getopt_long@plt>
cmp    $0x6d,%eax
je     11c0 <main+0x40>
lea    -0x3f(%rax),%ecx
cmp    $0x2d,%ecx
ja     1244 <main+0xc4>
movslq (%r15,%rcx,4),%rax
add    %r15,%rax
jmp    *%rax
mov    (%r14),%edi
xor    %esi,%esi
mov    $0xa,%edx
call   1070 <strtoul@plt>
mov    %rax,0x8(%rsp)
jmp    11d3 <main+0x53>
mov    (%r14),%edi
xor    %esi,%esi
mov    $0xa,%edx
call   1070 <strtoul@plt>
mov    %rax,%r13
jmp    11d3 <main+0x53>
mov    (%r14),%edi
xor    %esi,%esi
mov    $0xa,%edx
call   1070 <strtoul@plt>
mov    %rax,0x8(%rsp)
jmp    11cf <main+0x4f>
cmp    $0xffffffff,%eax
jne    1467 <main+0x2e7>
movb   $0x4e,0x18(%rsp)
movl   $0x54474341,0x14(%rsp)
54
movaps 0xd9f(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movapd 0xda2(%rip),%xmm0
movapd %xmm0,0x40(%rsp)
movabs $0x3ff0000000000000,%rax
mov    %rax,0x50(%rsp)
xorpd  %xmm0,%xmm0
xor    %eax,%eax
movsd  0xdaf(%rip),%xmm1
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0x21(%rax),%ecx
mov    %cl,0x60(%rsp,%rax,1)
addsd  %xmm1,%xmm0
movsd  %xmm0,0x100(%rsp,%rax,8)
lea    0x22(%rax),%ecx
mov    %cl,0x61(%rsp,%rax,1)
addsd  %xmm1,%xmm0
movsd  %xmm0,0x108(%rsp,%rax,8)
add    $0x2,%rax
cmp    $0x40,%rax
jne    12a0 <main+0x120>
xorpd  %xmm0,%xmm0
xor    %eax,%eax
movsd  0xd68(%rip),%xmm1
lea    0x21(%rax),%ecx
mov    %cl,0xa0(%rsp,%rax,1)
addsd  %xmm1,%xmm0
movsd  %xmm0,0x300(%rsp,%rax,8)
lea    0x22(%rax),%ecx
mov    %cl,0xa1(%rsp,%rax,1)
addsd  %xmm1,%xmm0
movsd  %xmm0,0x308(%rsp,%rax,8)
add    $0x2,%rax
cmp    $0x5e,%rax
jne    12e0 <main+0x160>
lea    0x1(%r13),%rdi
call   1060 <malloc@plt>
mov    %rax,%r12
mov    0x8(%rsp),%rax
lea    0x1(%rax),%r14
mov    %r14,%rdi
call   1060 <malloc@plt>
mov    %rax,%rbp
mov    %r14,%rdi
call   1060 <malloc@plt>
mov    %rax,%rbx
mov    (%rsp),%rax
sub    %rax,%r14
movq   %r14,%xmm0
punpckldq 0xcc9(%rip),%xmm0
subpd  0xcd1(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,0x20(%rsp)
lea    0xdc2(%rip),%r15
mov    %rax,%r14
jmp    13f8 <main+0x278>
nopl   (%rax)
lea    0xa0(%rsp),%rdi
lea    0x300(%rsp),%rsi
mov    $0x5e,%edx
mov    %r12,%rcx
mov    %r13,%r8
call   10a0 <randcat@plt>
movb   $0x0,(%r12,%r13,1)
lea    0x14(%rsp),%rdi
lea    0x30(%rsp),%rsi
mov    $0x5,%edx
mov    %rbp,%rcx
mov    %r14,%r8
call   10a0 <randcat@plt>
movb   $0x0,0x0(%rbp,%r14,1)
lea    0x60(%rsp),%rdi
lea    0x100(%rsp),%rsi
mov    $0x40,%edx
mov    %rbx,%rcx
mov    %r14,%r8
call   10a0 <randcat@plt>
movb   $0x0,(%rbx,%r14,1)
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbp,%rdx
mov    %rbx,%rcx
call   1050 <printf@plt>
mov    (%rsp),%rax
cmp    %rax,0x8(%rsp)
jbe    1380 <main+0x200>
xor    %eax,%eax
call   1090 <drand48@plt>
mulsd  0x20(%rsp),%xmm0
cvttsd2si %xmm0,%rax
mov    %rax,%rcx
subsd  0xc2c(%rip),%xmm0
cvttsd2si %xmm0,%r14
sar    $0x3f,%rcx
and    %rcx,%r14
or     %rax,%r14
add    (%rsp),%r14
jmp    1380 <main+0x200>
mov    0x2b95(%rip),%rax
jmp    1453 <main+0x2d3>
xor    %eax,%eax
call   1080 <print_help@plt>
mov    0x2b7d(%rip),%rax
mov    (%rax),%eax
add    $0x5f8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
%struct.option = type { i8*, i8, i32*, i32 }
@main.long_options = internal global [6 x %struct.option] [%struct.option { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8 -128, i32* null, i32 109 }, %struct.option { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i32 0, i32 0), i8 -128, i32* null, i32 77 }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0), i8 -128, i32* null, i32 108 }, %struct.option { i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i32 0, i32 0), i8 -128, i32* null, i32 105 }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8 -127, i32* null, i32 104 }, %struct.option zeroinitializer]
@.str = [11 x i8] c"min-length\00"
@.str.1 = [11 x i8] c"max-length\00"
@.str.2 = [7 x i8] c"length\00"
@.str.3 = [10 x i8] c"id-length\00"
@.str.4 = [5 x i8] c"help\00"
@.str.5 = [2 x i8] c"h\00"
@optarg = global i32 0
@EXIT_SUCCESS = global i32 0
@EXIT_FAILURE = global i32 0
@__const.main.nucleotides = [5 x i8] c"ACGTN"
@.str.6 = [13 x i8] c"@%s\0A%s\0A+\0A%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i32
%10 = alloca i32
%11 = alloca [5 x i8]
%12 = alloca [5 x double]
%13 = alloca [64 x i8]
%14 = alloca [64 x double]
%15 = alloca i64
%16 = alloca double
%17 = alloca [94 x i8]
%18 = alloca [94 x double]
%19 = alloca i8*
%20 = alloca i8*
%21 = alloca i8*
%22 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 100, i64* %6
store i64 100, i64* %7
store i64 50, i64* %8
br label %23
23: ; preds = %2, %51
%24 = load i32, i32* %4
%25 = load i8**, i8*** %5
%26 = call i32 @getopt_long(i32 %24, i8** %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), %struct.option* getelementptr inbounds ([6 x %struct.option], [6 x %struct.option]* @main.long_options, i64 0, i64 0), i32* %10)
store i32 %26, i32* %9
%27 = load i32, i32* %9
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %30
29: ; preds = %23
br label %52
30: ; preds = %23
%31 = load i32, i32* %9
switch i32 %31, label %49 [
i32 109, label %32
i32 77, label %35
i32 108, label %38
i32 105, label %41
i32 104, label %44
i32 63, label %47
]
32: ; preds = %30
%33 = load i32, i32* @optarg
%34 = call i64 @strtoul(i32 %33, i32* null, i32 10)
store i64 %34, i64* %6
br label %51
35: ; preds = %30
%36 = load i32, i32* @optarg
%37 = call i64 @strtoul(i32 %36, i32* null, i32 10)
store i64 %37, i64* %7
br label %51
38: ; preds = %30
%39 = load i32, i32* @optarg
%40 = call i64 @strtoul(i32 %39, i32* null, i32 10)
store i64 %40, i64* %7
store i64 %40, i64* %6
br label %51
41: ; preds = %30
%42 = load i32, i32* @optarg
%43 = call i64 @strtoul(i32 %42, i32* null, i32 10)
store i64 %43, i64* %8
br label %51
44: ; preds = %30
%45 = call i32 (...) @print_help()
%46 = load i32, i32* @EXIT_SUCCESS
store i32 %46, i32* %3
br label %149
47: ; preds = %30
%48 = load i32, i32* @EXIT_FAILURE
store i32 %48, i32* %3
br label %149
49: ; preds = %30
%50 = call i32 (...) @abort()
unreachable
51: ; preds = %41, %38, %35, %32
br label %23
52: ; preds = %29
%53 = bitcast [5 x i8]* %11 to i8*
%54 = bitcast [5 x double]* %12 to i8*
%55 = bitcast i8* %54 to [5 x double]*
%56 = getelementptr inbounds [5 x double], [5 x double]* %55, i32 0, i32 0
store double 2.800000e-01, double* %56
%57 = getelementptr inbounds [5 x double], [5 x double]* %55, i32 0, i32 1
store double 4.900000e-01, double* %57
%58 = getelementptr inbounds [5 x double], [5 x double]* %55, i32 0, i32 2
store double 0x3FE6666666666666, double* %58
%59 = getelementptr inbounds [5 x double], [5 x double]* %55, i32 0, i32 3
store double 9.000000e-01, double* %59
%60 = getelementptr inbounds [5 x double], [5 x double]* %55, i32 0, i32 4
store double 1.000000e+00, double* %60
store double 0.000000e+00, double* %16
store i64 0, i64* %15
br label %61
61: ; preds = %74, %52
%62 = load i64, i64* %15
%63 = icmp ult i64 %62, 64
br i1 %63, label %64, label %77
64: ; preds = %61
%65 = load i64, i64* %15
%66 = add i64 33, %65
%67 = trunc i64 %66 to i8
%68 = load i64, i64* %15
%69 = getelementptr inbounds [64 x i8], [64 x i8]* %13, i64 0, i64 %68
store i8 %67, i8* %69
%70 = load double, double* %16
%71 = fadd double %70, 1.562500e-02
%72 = load i64, i64* %15
%73 = getelementptr inbounds [64 x double], [64 x double]* %14, i64 0, i64 %72
store double %71, double* %73
store double %71, double* %16
br label %74
74: ; preds = %64
%75 = load i64, i64* %15
%76 = add i64 %75, 1
store i64 %76, i64* %15
br label %61
77: ; preds = %61
store double 0.000000e+00, double* %16
store i64 0, i64* %15
br label %78
78: ; preds = %91, %77
%79 = load i64, i64* %15
%80 = icmp ult i64 %79, 94
br i1 %80, label %81, label %94
81: ; preds = %78
%82 = load i64, i64* %15
%83 = add i64 33, %82
%84 = trunc i64 %83 to i8
%85 = load i64, i64* %15
%86 = getelementptr inbounds [94 x i8], [94 x i8]* %17, i64 0, i64 %85
store i8 %84, i8* %86
%87 = load double, double* %16
%88 = fadd double %87, 0x3F85C9882B931057
%89 = load i64, i64* %15
%90 = getelementptr inbounds [94 x double], [94 x double]* %18, i64 0, i64 %89
store double %88, double* %90
store double %88, double* %16
br label %91
91: ; preds = %81
%92 = load i64, i64* %15
%93 = add i64 %92, 1
store i64 %93, i64* %15
br label %78
94: ; preds = %78
%95 = load i64, i64* %8
%96 = add i64 %95, 1
%97 = call i8* @malloc(i64 %96)
store i8* %97, i8** %19
%98 = load i64, i64* %7
%99 = add i64 %98, 1
%100 = call i8* @malloc(i64 %99)
store i8* %100, i8** %20
%101 = load i64, i64* %7
%102 = add i64 %101, 1
%103 = call i8* @malloc(i64 %102)
store i8* %103, i8** %21
%104 = load i64, i64* %6
store i64 %104, i64* %22
br label %105
105: ; preds = %94, %120
%106 = load i64, i64* %7
%107 = load i64, i64* %6
%108 = icmp ugt i64 %106, %107
br i1 %108, label %109, label %120
109: ; preds = %105
%110 = load i64, i64* %6
%111 = call double (...) @drand48()
%112 = load i64, i64* %7
%113 = add i64 1, %112
%114 = load i64, i64* %6
%115 = sub i64 %113, %114
%116 = uitofp i64 %115 to double
%117 = fmul double %111, %116
%118 = fptoui double %117 to i64
%119 = add i64 %110, %118
store i64 %119, i64* %22
br label %120
120: ; preds = %109, %105
%121 = getelementptr inbounds [94 x i8], [94 x i8]* %17, i64 0, i64 0
%122 = getelementptr inbounds [94 x double], [94 x double]* %18, i64 0, i64 0
%123 = load i8*, i8** %19
%124 = load i64, i64* %8
%125 = call i32 @randcat(i8* %121, double* %122, i32 94, i8* %123, i64 %124)
%126 = load i8*, i8** %19
%127 = load i64, i64* %8
%128 = getelementptr inbounds i8, i8* %126, i64 %127
store i8 0, i8* %128
%129 = getelementptr inbounds [5 x i8], [5 x i8]* %11, i64 0, i64 0
%130 = getelementptr inbounds [5 x double], [5 x double]* %12, i64 0, i64 0
%131 = load i8*, i8** %20
%132 = load i64, i64* %22
%133 = call i32 @randcat(i8* %129, double* %130, i32 5, i8* %131, i64 %132)
%134 = load i8*, i8** %20
%135 = load i64, i64* %22
%136 = getelementptr inbounds i8, i8* %134, i64 %135
store i8 0, i8* %136
%137 = getelementptr inbounds [64 x i8], [64 x i8]* %13, i64 0, i64 0
%138 = getelementptr inbounds [64 x double], [64 x double]* %14, i64 0, i64 0
%139 = load i8*, i8** %21
%140 = load i64, i64* %22
%141 = call i32 @randcat(i8* %137, double* %138, i32 64, i8* %139, i64 %140)
%142 = load i8*, i8** %21
%143 = load i64, i64* %22
%144 = getelementptr inbounds i8, i8* %142, i64 %143
store i8 0, i8* %144
%145 = load i8*, i8** %19
%146 = load i8*, i8** %20
%147 = load i8*, i8** %21
%148 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* %145, i8* %146, i8* %147)
br label %105
149: ; preds = %47, %44
%150 = load i32, i32* %3
ret i32 %150
}

LLVM IR (-O2):
%struct.option = type { i8*, i8, i32*, i32 }
@main.long_options = internal global [6 x %struct.option] [%struct.option { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8 -128, i32* null, i32 109 }, %struct.option { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i32 0, i32 0), i8 -128, i32* null, i32 77 }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0), i8 -128, i32* null, i32 108 }, %struct.option { i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i32 0, i32 0), i8 -128, i32* null, i32 105 }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8 -127, i32* null, i32 104 }, %struct.option zeroinitializer]
@.str = [11 x i8] c"min-length\00"
@.str.1 = [11 x i8] c"max-length\00"
@.str.2 = [7 x i8] c"length\00"
@.str.3 = [10 x i8] c"id-length\00"
@.str.4 = [5 x i8] c"help\00"
@.str.5 = [2 x i8] c"h\00"
@optarg = global i32 0
@EXIT_SUCCESS = global i32 0
@EXIT_FAILURE = global i32 0
@__const.main.nucleotides = [5 x i8] c"ACGTN"
@.str.6 = [13 x i8] c"@%s\0A%s\0A+\0A%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca [5 x i8]
%5 = alloca [5 x double]
%6 = alloca [64 x i8]
%7 = alloca [64 x double]
%8 = alloca [94 x i8]
%9 = alloca [94 x double]
%10 = bitcast i32* %3 to i8*
br label %11
11: ; preds = %33, %2
%12 = phi i64 [ %35, %33 ], [ 50, %2 ]
%13 = phi i64 [ %16, %33 ], [ 100, %2 ]
%14 = phi i64 [ %19, %33 ], [ 100, %2 ]
br label %15
15: ; preds = %30, %11
%16 = phi i64 [ %13, %11 ], [ %31, %30 ]
%17 = phi i64 [ %14, %11 ], [ %32, %30 ]
br label %18
18: ; preds = %15, %21
%19 = phi i64 [ %23, %21 ], [ %17, %15 ]
%20 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), %struct.option* getelementptr inbounds ([6 x %struct.option], [6 x %struct.option]* @main.long_options, i64 0, i64 0), i32* %3)
switch i32 %20, label %38 [
i32 -1, label %40
i32 109, label %21
i32 77, label %24
i32 108, label %27
i32 105, label %33
i32 104, label %36
i32 63, label %112
]
21: ; preds = %18
%22 = load i32, i32* @optarg
%23 = call i64 @strtoul(i32 %22, i32* null, i32 10)
br label %18
24: ; preds = %18
%25 = load i32, i32* @optarg
%26 = call i64 @strtoul(i32 %25, i32* null, i32 10)
br label %30
27: ; preds = %18
%28 = load i32, i32* @optarg
%29 = call i64 @strtoul(i32 %28, i32* null, i32 10)
br label %30
30: ; preds = %27, %24
%31 = phi i64 [ %26, %24 ], [ %29, %27 ]
%32 = phi i64 [ %19, %24 ], [ %29, %27 ]
br label %15
33: ; preds = %18
%34 = load i32, i32* @optarg
%35 = call i64 @strtoul(i32 %34, i32* null, i32 10)
br label %11
36: ; preds = %18
%37 = call i32 (...) @print_help()
br label %112
38: ; preds = %18
%39 = call i32 (...) @abort()
unreachable
40: ; preds = %18
%41 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%42 = bitcast [5 x double]* %5 to i8*
%43 = getelementptr inbounds [5 x double], [5 x double]* %5, i64 0, i64 0
%44 = bitcast [5 x double]* %5 to <2 x double>*
store <2 x double> <double 2.800000e-01, double 4.900000e-01>, <2 x double>* %44
%45 = getelementptr inbounds [5 x double], [5 x double]* %5, i64 0, i64 2
%46 = bitcast double* %45 to <2 x double>*
store <2 x double> <double 0x3FE6666666666666, double 9.000000e-01>, <2 x double>* %46
%47 = getelementptr inbounds [5 x double], [5 x double]* %5, i64 0, i64 4
store double 1.000000e+00, double* %47
%48 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%49 = bitcast [64 x double]* %7 to i8*
br label %50
50: ; preds = %50, %40
%51 = phi double [ 0.000000e+00, %40 ], [ %62, %50 ]
%52 = phi i64 [ 0, %40 ], [ %64, %50 ]
%53 = trunc i64 %52 to i8
%54 = add nuw nsw i8 %53, 33
%55 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 %52
store i8 %54, i8* %55
%56 = fadd double %51, 1.562500e-02
%57 = getelementptr inbounds [64 x double], [64 x double]* %7, i64 0, i64 %52
store double %56, double* %57
%58 = or i64 %52, 1
%59 = trunc i64 %58 to i8
%60 = add nuw nsw i8 %59, 33
%61 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 %58
store i8 %60, i8* %61
%62 = fadd double %56, 1.562500e-02
%63 = getelementptr inbounds [64 x double], [64 x double]* %7, i64 0, i64 %58
store double %62, double* %63
%64 = add nuw nsw i64 %52, 2
%65 = icmp eq i64 %64, 64
br i1 %65, label %66, label %50
66: ; preds = %50
%67 = getelementptr inbounds [94 x i8], [94 x i8]* %8, i64 0, i64 0
%68 = bitcast [94 x double]* %9 to i8*
br label %69
69: ; preds = %69, %66
%70 = phi double [ 0.000000e+00, %66 ], [ %81, %69 ]
%71 = phi i64 [ 0, %66 ], [ %83, %69 ]
%72 = trunc i64 %71 to i8
%73 = add nuw nsw i8 %72, 33
%74 = getelementptr inbounds [94 x i8], [94 x i8]* %8, i64 0, i64 %71
store i8 %73, i8* %74
%75 = fadd double %70, 0x3F85C9882B931057
%76 = getelementptr inbounds [94 x double], [94 x double]* %9, i64 0, i64 %71
store double %75, double* %76
%77 = or i64 %71, 1
%78 = trunc i64 %77 to i8
%79 = add nuw nsw i8 %78, 33
%80 = getelementptr inbounds [94 x i8], [94 x i8]* %8, i64 0, i64 %77
store i8 %79, i8* %80
%81 = fadd double %75, 0x3F85C9882B931057
%82 = getelementptr inbounds [94 x double], [94 x double]* %9, i64 0, i64 %77
store double %81, double* %82
%83 = add nuw nsw i64 %71, 2
%84 = icmp eq i64 %83, 94
br i1 %84, label %85, label %69
85: ; preds = %69
%86 = add i64 %12, 1
%87 = call i8* @malloc(i64 %86)
%88 = add i64 %16, 1
%89 = call i8* @malloc(i64 %88)
%90 = call i8* @malloc(i64 %88)
%91 = icmp ugt i64 %16, %19
%92 = sub i64 %88, %19
%93 = uitofp i64 %92 to double
%94 = getelementptr inbounds [94 x double], [94 x double]* %9, i64 0, i64 0
%95 = getelementptr inbounds i8, i8* %87, i64 %12
%96 = getelementptr inbounds [64 x double], [64 x double]* %7, i64 0, i64 0
br label %97
97: ; preds = %104, %85
%98 = phi i64 [ %19, %85 ], [ %105, %104 ]
br i1 %91, label %99, label %104
99: ; preds = %97
%100 = call double (...) @drand48()
%101 = fmul double %100, %93
%102 = fptoui double %101 to i64
%103 = add i64 %19, %102
br label %104
104: ; preds = %99, %97
%105 = phi i64 [ %103, %99 ], [ %98, %97 ]
%106 = call i32 @randcat(i8* %67, double* %94, i32 94, i8* %87, i64 %12)
store i8 0, i8* %95
%107 = call i32 @randcat(i8* %41, double* %43, i32 5, i8* %89, i64 %105)
%108 = getelementptr inbounds i8, i8* %89, i64 %105
store i8 0, i8* %108
%109 = call i32 @randcat(i8* %48, double* %96, i32 64, i8* %90, i64 %105)
%110 = getelementptr inbounds i8, i8* %90, i64 %105
store i8 0, i8* %110
%111 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* %87, i8* %89, i8* %90)
br label %97
112: ; preds = %18, %36
%113 = phi i32* [ @EXIT_SUCCESS, %36 ], [ @EXIT_FAILURE, %18 ]
%114 = load i32, i32* %113
ret i32 %114
}