int runAbc() {
  int lsstats[15], printMut, printRec, nparam, nstats, error;
  double tol;
  char str[256], input_len[256], input_trg[256], input_prs[256], input_ssz[256],
      input_sst[256], input_dat[256], input_rej[256];
  printf("\n  choose table file (.len) (max %d character): ", 256 - 1);
  scanf("%s", input_len);
  printf("\n  choose summary statistics set file (.sst) (max %d character): ",
         256 - 1);
  scanf("%s", input_sst);
  printf("\n  insert name for target file (no extension) (max %d character): ",
         256 - 1);
  scanf("%s", input_trg);
  error = maketarget(input_len, input_sst, input_trg);
  if (error)
    return error;
  else
    printf("\n\n>'real' data summarization completed (report created).\n\n");
  printf("\n  choose prior file (.prs) (max %d character): ", 256 - 1);
  scanf("%s", input_prs);
  printf("\n  insert name for data file (no extension) (max %d character): ",
         256 - 1);
  scanf("%s", input_dat);
  printf("\n");
  do {
    printf("  choose if file with mutation rate will be created (0 - file not "
           "created;");
    printf("\n  1 - file created): ");
    scanf("%s", &str);
    printMut = atoi(str);
  } while (printMut != 0 && printMut != 1);
  printf("\n");
  do {
    printf("  choose if file with recombination rate will be created (0 - file "
           "not created;");
    printf("\n  1 - file created): ");
    scanf("%s", &str);
    printRec = atoi(str);
  } while (printRec != 0 && printRec != 1);
  strcpy(input_ssz, input_trg);
  strcat(input_ssz, ".ssz");
  error =
      abc(input_prs, input_ssz, input_sst, input_dat, 0, printMut, printRec);
  if (error)
    return error + 100;
  else
    printf("\n\n>simulations completed (report created).\n\n");
  printf(
      "\n  insert name for rejection file (no extension) (max %d character): ",
      256 - 1);
  scanf("%s", input_rej);
  printf("\n");
  do {
    printf("  specify the number of parameters used (>0): ");
    scanf("%s", &str);
    nparam = atof(str);
  } while (nparam <= 0);
  printf("\n");
  do {
    printf("  specify the number of summary statistics used (>0): ");
    scanf("%s", &str);
    nstats = atof(str);
  } while (nstats <= 0);
  printf("\n");
  do {
    printf("  choose tolerance for rejection step (0 < tol < 1): ");
    scanf("%s", &str);
    tol = atof(str);
  } while (tol <= 0 || tol >= 1);
  strcat(input_dat, ".dat");
  strcat(input_trg, ".trg");
  error = firstpass(input_dat, input_trg, input_rej, nparam, nstats, tol);
  if (error)
    return error + 200;
  else
    printf("\n\n>rejection step completed (report created).\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<runAbc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x870,%rsp
lea    0xe66(%rip),%rdi
mov    $0xff,%esi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x260(%rbp),%rsi
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    0xe72(%rip),%rdi
mov    $0xff,%esi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x660(%rbp),%rsi
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    0xe8c(%rip),%rdi
mov    $0xff,%esi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x360(%rbp),%rsi
lea    0xe2d(%rip),%rdi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    -0x260(%rbp),%rdi
lea    -0x660(%rbp),%rsi
lea    -0x360(%rbp),%rdx
mov    $0x0,%al
call   1050 <maketarget@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
je     1247 <runAbc+0xb7>
mov    -0x54(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    15e4 <runAbc+0x454>
lea    0xe73(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xea0(%rip),%rdi
mov    $0xff,%esi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x460(%rbp),%rsi
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    0xea9(%rip),%rdi
mov    $0xff,%esi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x760(%rbp),%rsi
lea    0xd9b(%rip),%rdi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xef1(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xd63(%rip),%rdi
lea    -0x160(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    -0x160(%rbp),%rdi
mov    $0x0,%al
call   10a0 <atoi@plt>
mov    %eax,-0x44(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x44(%rbp)
mov    %al,-0x861(%rbp)
je     1314 <runAbc+0x184>
cmpl   $0x1,-0x44(%rbp)
setne  %al
mov    %al,-0x861(%rbp)
mov    -0x861(%rbp),%al
test   $0x1,%al
jne    12b3 <runAbc+0x123>
lea    0xdd1(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe74(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xce6(%rip),%rdi
lea    -0x160(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    -0x160(%rbp),%rdi
mov    $0x0,%al
call   10a0 <atoi@plt>
mov    %eax,-0x48(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x48(%rbp)
mov    %al,-0x862(%rbp)
je     1391 <runAbc+0x201>
cmpl   $0x1,-0x48(%rbp)
setne  %al
mov    %al,-0x862(%rbp)
mov    -0x862(%rbp),%al
test   $0x1,%al
jne    1330 <runAbc+0x1a0>
lea    -0x560(%rbp),%rdi
lea    -0x360(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x560(%rbp),%rdi
lea    0xe60(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x460(%rbp),%rdi
lea    -0x560(%rbp),%rsi
lea    -0x660(%rbp),%rdx
lea    -0x760(%rbp),%rcx
mov    -0x44(%rbp),%r9d
mov    -0x48(%rbp),%eax
xor    %r8d,%r8d
mov    %eax,(%rsp)
mov    $0x0,%al
call   1080 <abc@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
je     1410 <runAbc+0x280>
mov    -0x54(%rbp),%eax
add    $0x64,%eax
mov    %eax,-0x4(%rbp)
jmp    15e4 <runAbc+0x454>
lea    0xe0e(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe2d(%rip),%rdi
mov    $0xff,%esi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x860(%rbp),%rsi
lea    0xbfa(%rip),%rdi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    0xcad(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe3d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xbd0(%rip),%rdi
lea    -0x160(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    -0x160(%rbp),%rdi
mov    $0x0,%al
call   1040 <atof@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0x0,-0x4c(%rbp)
jle    1454 <runAbc+0x2c4>
lea    0xc61(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xb84(%rip),%rdi
lea    -0x160(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    -0x160(%rbp),%rdi
mov    $0x0,%al
call   1040 <atof@plt>
mov    %eax,-0x50(%rbp)
cmpl   $0x0,-0x50(%rbp)
jle    14a0 <runAbc+0x310>
lea    0xc15(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xb38(%rip),%rdi
lea    -0x160(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    -0x160(%rbp),%rdi
mov    $0x0,%al
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    $0x1,%al
xorps  %xmm0,%xmm0
ucomisd -0x60(%rbp),%xmm0
mov    %al,-0x863(%rbp)
jae    1556 <runAbc+0x3c6>
movsd  -0x60(%rbp),%xmm0
movsd  0xab7(%rip),%xmm1
ucomisd %xmm1,%xmm0
setae  %al
mov    %al,-0x863(%rbp)
mov    -0x863(%rbp),%al
test   $0x1,%al
jne    14ec <runAbc+0x35c>
lea    -0x760(%rbp),%rdi
lea    0xdc2(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x360(%rbp),%rdi
lea    0xdb4(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x760(%rbp),%rdi
lea    -0x360(%rbp),%rsi
lea    -0x860(%rbp),%rdx
mov    -0x4c(%rbp),%ecx
mov    -0x50(%rbp),%r8d
movsd  -0x60(%rbp),%xmm0
mov    $0x1,%al
call   1060 <firstpass@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
je     15cf <runAbc+0x43f>
mov    -0x54(%rbp),%eax
add    $0xc8,%eax
mov    %eax,-0x4(%rbp)
jmp    15e4 <runAbc+0x454>
lea    0xd68(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x870,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<runAbc>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x818,%rsp
lea    0xe48(%rip),%rdi
mov    $0xff,%esi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xe66(%rip),%rbp
lea    0x710(%rsp),%r14
mov    %rbp,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   10b0 <scanf@plt>
lea    0xe4d(%rip),%rdi
mov    $0xff,%esi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x310(%rsp),%r15
mov    %rbp,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   10b0 <scanf@plt>
lea    0xe67(%rip),%rdi
mov    $0xff,%esi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x510(%rsp),%rbx
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   10b0 <scanf@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1070 <maketarget@plt>
test   %eax,%eax
jne    13c7 <runAbc+0x227>
lea    0x1075(%rip),%rdi
call   1050 <puts@plt>
lea    0xe5e(%rip),%rdi
mov    $0xff,%esi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xdc3(%rip),%r14
lea    0x410(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   10b0 <scanf@plt>
lea    0xe63(%rip),%rdi
mov    $0xff,%esi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x210(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   10b0 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe75(%rip),%r15
lea    0xeb9(%rip),%r12
lea    0x10(%rsp),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r15,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r14,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10b0 <scanf@plt>
mov    %r13,%rdi
xor    %eax,%eax
call   10c0 <atoi@plt>
cmp    $0x1,%eax
ja     12d0 <runAbc+0x130>
mov    %eax,%ebx
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe7a(%rip),%r14
lea    0xe5c(%rip),%r15
lea    0xd10(%rip),%r12
lea    0x10(%rsp),%r13
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r12,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10b0 <scanf@plt>
mov    %r13,%rdi
xor    %eax,%eax
call   10c0 <atoi@plt>
cmp    $0x1,%eax
ja     1330 <runAbc+0x190>
mov    %eax,%ebp
lea    0x110(%rsp),%r14
lea    0x510(%rsp),%rsi
mov    %r14,%rdi
call   1040 <strcpy@plt>
mov    %r14,%rdi
call   1080 <strlen@plt>
movl   $0x7a73732e,0x110(%rsp,%rax,1)
2e 73 73 7a
movb   $0x0,0x114(%rsp,%rax,1)
mov    %ebp,(%rsp)
lea    0x410(%rsp),%rdi
lea    0x310(%rsp),%rdx
lea    0x210(%rsp),%rcx
mov    %r14,%rsi
xor    %r8d,%r8d
mov    %ebx,%r9d
xor    %eax,%eax
call   10a0 <abc@plt>
test   %eax,%eax
je     13d9 <runAbc+0x239>
add    $0x64,%eax
add    $0x818,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xf1e(%rip),%rdi
call   1050 <puts@plt>
lea    0xdf6(%rip),%rdi
mov    $0xff,%esi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xc32(%rip),%r14
lea    0x610(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   10b0 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe06(%rip),%r15
lea    0x10(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
mov    %r15,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   10b0 <scanf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <atof@plt>
test   %eax,%eax
jle    1430 <runAbc+0x290>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdf1(%rip),%r14
lea    0xbc4(%rip),%r15
lea    0x10(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   10b0 <scanf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <atof@plt>
test   %eax,%eax
jle    1480 <runAbc+0x2e0>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdd8(%rip),%r14
lea    0xb74(%rip),%rbp
lea    0x10(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   10b0 <scanf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <atof@plt>
jmp    14d0 <runAbc+0x330>

LLVM IR (-O0):
@.str = [49 x i8] c"\0A choose table file (.len) (max %d character): \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [66 x i8] c"\0A choose summary statistics set file (.sst) (max %d character): \00"
@.str.3 = [67 x i8] c"\0A insert name for target file (no extension) (max %d character): \00"
@.str.4 = [59 x i8] c"\0A\0A>'real' data summarization completed (report created).\0A\0A\00"
@.str.5 = [49 x i8] c"\0A choose prior file (.prs) (max %d character): \00"
@.str.6 = [65 x i8] c"\0A insert name for data file (no extension) (max %d character): \00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [75 x i8] c" choose if file with mutation rate will be created (0 - file not created;\00"
@.str.9 = [23 x i8] c"\0A 1 - file created): \00"
@.str.10 = [80 x i8] c" choose if file with recombination rate will be created (0 - file not created;\00"
@.str.11 = [5 x i8] c".ssz\00"
@.str.12 = [45 x i8] c"\0A\0A>simulations completed (report created).\0A\0A\00"
@.str.13 = [70 x i8] c"\0A insert name for rejection file (no extension) (max %d character): \00"
@.str.14 = [47 x i8] c" specify the number of parameters used (>0): \00"
@.str.15 = [55 x i8] c" specify the number of summary statistics used (>0): \00"
@.str.16 = [54 x i8] c" choose tolerance for rejection step (0 < tol < 1): \00"
@.str.17 = [5 x i8] c".dat\00"
@.str.18 = [5 x i8] c".trg\00"
@.str.19 = [48 x i8] c"\0A\0A>rejection step completed (report created).\0A\0A\00"
define i32 @runAbc() {
%1 = alloca i32
%2 = alloca [15 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
%9 = alloca [256 x i8]
%10 = alloca [256 x i8]
%11 = alloca [256 x i8]
%12 = alloca [256 x i8]
%13 = alloca [256 x i8]
%14 = alloca [256 x i8]
%15 = alloca [256 x i8]
%16 = alloca [256 x i8]
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 255)
%18 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.2, i64 0, i64 0), i32 255)
%21 = getelementptr inbounds [256 x i8], [256 x i8]* %14, i64 0, i64 0
%22 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %21)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.3, i64 0, i64 0), i32 255)
%24 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %24)
%26 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%27 = getelementptr inbounds [256 x i8], [256 x i8]* %14, i64 0, i64 0
%28 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%29 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @maketarget to i32 (i8*, i8*, i8*, ...)*)(i8* %26, i8* %27, i8* %28)
store i32 %29, i32* %7
%30 = load i32, i32* %7
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %0
%33 = load i32, i32* %7
store i32 %33, i32* %1
br label %153
34: ; preds = %0
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
br label %36
36: ; preds = %34
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0), i32 255)
%38 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%39 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %38)
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.6, i64 0, i64 0), i32 255)
%41 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%42 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %41)
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %44
44: ; preds = %56, %36
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.8, i64 0, i64 0))
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%47 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), [256 x i8]* %9)
%48 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%49 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %48)
store i32 %49, i32* %3
br label %50
50: ; preds = %44
%51 = load i32, i32* %3
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, i32* %3
%55 = icmp ne i32 %54, 1
br label %56
56: ; preds = %53, %50
%57 = phi i1 [ false, %50 ], [ %55, %53 ]
br i1 %57, label %44, label %58
58: ; preds = %56
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %60
60: ; preds = %72, %58
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.10, i64 0, i64 0))
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%63 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), [256 x i8]* %9)
%64 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%65 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %64)
store i32 %65, i32* %4
br label %66
66: ; preds = %60
%67 = load i32, i32* %4
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %72
69: ; preds = %66
%70 = load i32, i32* %4
%71 = icmp ne i32 %70, 1
br label %72
72: ; preds = %69, %66
%73 = phi i1 [ false, %66 ], [ %71, %69 ]
br i1 %73, label %60, label %74
74: ; preds = %72
%75 = getelementptr inbounds [256 x i8], [256 x i8]* %13, i64 0, i64 0
%76 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%77 = call i8* @strcpy(i8* %75, i8* %76)
%78 = getelementptr inbounds [256 x i8], [256 x i8]* %13, i64 0, i64 0
%79 = call i8* @strcat(i8* %78, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%80 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%81 = getelementptr inbounds [256 x i8], [256 x i8]* %13, i64 0, i64 0
%82 = getelementptr inbounds [256 x i8], [256 x i8]* %14, i64 0, i64 0
%83 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%84 = load i32, i32* %3
%85 = load i32, i32* %4
%86 = call i32 (i8*, i8*, i8*, i8*, i32, i32, i32, ...) bitcast (i32 (...)* @abc to i32 (i8*, i8*, i8*, i8*, i32, i32, i32, ...)*)(i8* %80, i8* %81, i8* %82, i8* %83, i32 0, i32 %84, i32 %85)
store i32 %86, i32* %7
%87 = load i32, i32* %7
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %92
89: ; preds = %74
%90 = load i32, i32* %7
%91 = add nsw i32 %90, 100
store i32 %91, i32* %1
br label %153
92: ; preds = %74
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.12, i64 0, i64 0))
br label %94
94: ; preds = %92
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.13, i64 0, i64 0), i32 255)
%96 = getelementptr inbounds [256 x i8], [256 x i8]* %16, i64 0, i64 0
%97 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %96)
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %99
99: ; preds = %104, %94
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.14, i64 0, i64 0))
%101 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), [256 x i8]* %9)
%102 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%103 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %102)
store i32 %103, i32* %5
br label %104
104: ; preds = %99
%105 = load i32, i32* %5
%106 = icmp sle i32 %105, 0
br i1 %106, label %99, label %107
107: ; preds = %104
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %109
109: ; preds = %114, %107
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.15, i64 0, i64 0))
%111 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), [256 x i8]* %9)
%112 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%113 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %112)
store i32 %113, i32* %6
br label %114
114: ; preds = %109
%115 = load i32, i32* %6
%116 = icmp sle i32 %115, 0
br i1 %116, label %109, label %117
117: ; preds = %114
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %119
119: ; preds = %131, %117
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.16, i64 0, i64 0))
%121 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), [256 x i8]* %9)
%122 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%123 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %122)
%124 = sitofp i32 %123 to double
store double %124, double* %8
br label %125
125: ; preds = %119
%126 = load double, double* %8
%127 = fcmp ole double %126, 0.000000e+00
br i1 %127, label %131, label %128
128: ; preds = %125
%129 = load double, double* %8
%130 = fcmp oge double %129, 1.000000e+00
br label %131
131: ; preds = %128, %125
%132 = phi i1 [ true, %125 ], [ %130, %128 ]
br i1 %132, label %119, label %133
133: ; preds = %131
%134 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%135 = call i8* @strcat(i8* %134, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%136 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%137 = call i8* @strcat(i8* %136, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%138 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%139 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%140 = getelementptr inbounds [256 x i8], [256 x i8]* %16, i64 0, i64 0
%141 = load i32, i32* %5
%142 = load i32, i32* %6
%143 = load double, double* %8
%144 = call i32 (i8*, i8*, i8*, i32, i32, double, ...) bitcast (i32 (...)* @firstpass to i32 (i8*, i8*, i8*, i32, i32, double, ...)*)(i8* %138, i8* %139, i8* %140, i32 %141, i32 %142, double %143)
store i32 %144, i32* %7
%145 = load i32, i32* %7
%146 = icmp ne i32 %145, 0
br i1 %146, label %147, label %150
147: ; preds = %133
%148 = load i32, i32* %7
%149 = add nsw i32 %148, 200
store i32 %149, i32* %1
br label %153
150: ; preds = %133
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.19, i64 0, i64 0))
br label %152
152: ; preds = %150
store i32 0, i32* %1
br label %153
153: ; preds = %152, %147, %89, %32
%154 = load i32, i32* %1
ret i32 %154
}

LLVM IR (-O2):
@.str = [49 x i8] c"\0A choose table file (.len) (max %d character): \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [66 x i8] c"\0A choose summary statistics set file (.sst) (max %d character): \00"
@.str.3 = [67 x i8] c"\0A insert name for target file (no extension) (max %d character): \00"
@.str.5 = [49 x i8] c"\0A choose prior file (.prs) (max %d character): \00"
@.str.6 = [65 x i8] c"\0A insert name for data file (no extension) (max %d character): \00"
@.str.8 = [75 x i8] c" choose if file with mutation rate will be created (0 - file not created;\00"
@.str.9 = [23 x i8] c"\0A 1 - file created): \00"
@.str.10 = [80 x i8] c" choose if file with recombination rate will be created (0 - file not created;\00"
@.str.11 = [5 x i8] c".ssz\00"
@.str.13 = [70 x i8] c"\0A insert name for rejection file (no extension) (max %d character): \00"
@.str.14 = [47 x i8] c" specify the number of parameters used (>0): \00"
@.str.15 = [55 x i8] c" specify the number of summary statistics used (>0): \00"
@.str.16 = [54 x i8] c" choose tolerance for rejection step (0 < tol < 1): \00"
@str = [58 x i8] c"\0A\0A>'real' data summarization completed (report created).\0A\00"
@str.20 = [44 x i8] c"\0A\0A>simulations completed (report created).\0A\00"
define i32 @runAbc() {
%1 = alloca [256 x i8]
%2 = alloca [256 x i8]
%3 = alloca [256 x i8]
%4 = alloca [256 x i8]
%5 = alloca [256 x i8]
%6 = alloca [256 x i8]
%7 = alloca [256 x i8]
%8 = alloca [256 x i8]
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%10 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%11 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%12 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%13 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%14 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%15 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%16 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 255)
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %10)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.2, i64 0, i64 0), i32 255)
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %14)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.3, i64 0, i64 0), i32 255)
%22 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %11)
%23 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @maketarget to i32 (i8*, i8*, i8*, ...)*)(i8* %10, i8* %14, i8* %11)
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %77
25: ; preds = %0
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0), i32 255)
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.6, i64 0, i64 0), i32 255)
%30 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %15)
%31 = call i32 @putchar(i32 10)
br label %32
32: ; preds = %32, %25
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.8, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%35 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), [256 x i8]* %1)
%36 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %9)
%37 = icmp ult i32 %36, 2
br i1 %37, label %38, label %32
38: ; preds = %32
%39 = call i32 @putchar(i32 10)
br label %40
40: ; preds = %40, %38
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @.str.10, i64 0, i64 0))
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%43 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), [256 x i8]* %1)
%44 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %9)
%45 = icmp ult i32 %44, 2
br i1 %45, label %46, label %40
46: ; preds = %40
%47 = call i8* @strcpy(i8* %13, i8* %11)
%48 = call i64 @strlen(i8* %13)
%49 = getelementptr [256 x i8], [256 x i8]* %5, i64 0, i64 %48
%50 = call i32 (i8*, i8*, i8*, i8*, i32, i32, i32, ...) bitcast (i32 (...)* @abc to i32 (i8*, i8*, i8*, i8*, i32, i32, i32, ...)*)(i8* %12, i8* %13, i8* %14, i8* %15, i32 0, i32 %36, i32 %44)
%51 = icmp eq i32 %50, 0
br i1 %51, label %54, label %52
52: ; preds = %46
%53 = add nsw i32 %50, 100
br label %77
54: ; preds = %46
%55 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.20, i64 0, i64 0))
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.13, i64 0, i64 0), i32 255)
%57 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %16)
%58 = call i32 @putchar(i32 10)
br label %59
59: ; preds = %59, %54
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.14, i64 0, i64 0))
%61 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), [256 x i8]* %1)
%62 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %9)
%63 = icmp slt i32 %62, 1
br i1 %63, label %59, label %64
64: ; preds = %59
%65 = call i32 @putchar(i32 10)
br label %66
66: ; preds = %66, %64
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.15, i64 0, i64 0))
%68 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), [256 x i8]* %1)
%69 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %9)
%70 = icmp slt i32 %69, 1
br i1 %70, label %66, label %71
71: ; preds = %66
%72 = call i32 @putchar(i32 10)
br label %73
73: ; preds = %73, %71
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.16, i64 0, i64 0))
%75 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), [256 x i8]* %1)
%76 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %9)
br label %73
77: ; preds = %0, %52
%78 = phi i32 [ %53, %52 ], [ %23, %0 ]
ret i32 %78
}