int main(int argc, char *argv[]) {
  int i, series_length;
  float timestamp[100000];
  float series[100000];
  int endpoints[100000];
  int no_of_sections;
  char log_filename[256];
  char name[256], title[256];
  float orbital_period_days;
  int minimum_data_samples = 1000;
  float minimum_period_days = 0;
  float maximum_period_days = 0;
  float known_period_days = 0;
  char light_curve_filename[256];
  char light_curve_distribution_filename[256];
  int table_type = 0;
  int time_field_index = 0, flux_field_index = 3;
  float vertical_scale = 1.0f;
  float search_increment_seconds = 0.864f;
  float max_vacancy_density = 0.008f;
  float min_dipped_density = 0.3f;
  float max_dipped_percent = 15.0f;
  float min_intermediate_percent = 2.0f;
  float max_intermediate_percent = 10.0f;
  float expected_dip_radius_percent = 2.0f;
  float peak_threshold = 0.6f;
  float dip_threshold = 0.2f;
  if (argc <= 1) {
    show_help();
    return 1;
  }
  log_filename[0] = 0;
  for (i = 1; i < argc; i++) {
    if ((strcmp(argv[i], "-f") == 0) || (strcmp(argv[i], "--filename") == 0)) {
      i++;
      if (i < argc) {
        sprintf(log_filename, "%s", argv[i]);
      }
    }
    if ((strcmp(argv[i], "-m") == 0) ||
        (strcmp(argv[i], "--minsamples") == 0)) {
      i++;
      if (i < argc) {
        minimum_data_samples = atoi(argv[i]);
      }
    }
    if (strcmp(argv[i], "--vscale") == 0) {
      i++;
      if (i < argc) {
        vertical_scale = atof(argv[i]);
      }
    }
    if ((strcmp(argv[i], "-0") == 0) || (strcmp(argv[i], "--min") == 0)) {
      i++;
      if (i < argc) {
        minimum_period_days = atof(argv[i]);
      }
    }
    if ((strcmp(argv[i], "-1") == 0) || (strcmp(argv[i], "--max") == 0)) {
      i++;
      if (i < argc) {
        maximum_period_days = atof(argv[i]);
      }
    }
    if ((strcmp(argv[i], "-i") == 0) || (strcmp(argv[i], "--incr") == 0)) {
      i++;
      if (i < argc) {
        search_increment_seconds = atof(argv[i]);
      }
    }
    if ((strcmp(argv[i], "-p") == 0) || (strcmp(argv[i], "--period") == 0)) {
      i++;
      if (i < argc) {
        known_period_days = atof(argv[i]);
      }
    }
    if (strcmp(argv[i], "--maxvac") == 0) {
      i++;
      if (i < argc) {
        max_vacancy_density = atof(argv[i]);
      }
    }
    if (strcmp(argv[i], "--mindd") == 0) {
      i++;
      if (i < argc) {
        min_dipped_density = atof(argv[i]);
      }
    }
    if (strcmp(argv[i], "--maxd") == 0) {
      i++;
      if (i < argc) {
        max_dipped_percent = atof(argv[i]);
      }
    }
    if ((strcmp(argv[i], "-r") == 0) || (strcmp(argv[i], "--diprad") == 0)) {
      i++;
      if (i < argc) {
        expected_dip_radius_percent = atof(argv[i]);
      }
    }
    if (strcmp(argv[i], "--maxint") == 0) {
      i++;
      if (i < argc) {
        max_intermediate_percent = atof(argv[i]);
      }
    }
    if (strcmp(argv[i], "--peak") == 0) {
      i++;
      if (i < argc) {
        peak_threshold = atof(argv[i]);
      }
    }
    if (strcmp(argv[i], "--dip") == 0) {
      i++;
      if (i < argc) {
        dip_threshold = atof(argv[i]);
      }
    }
    if ((strcmp(argv[i], "-t") == 0) || (strcmp(argv[i], "--type") == 0)) {
      i++;
      if (i < argc) {
        if ((strcmp(argv[i], "wasp") == 0) || (strcmp(argv[i], "WASP") == 0)) {
          table_type = 0;
        }
        if ((strcmp(argv[i], "k2") == 0) || (strcmp(argv[i], "K2") == 0)) {
          table_type = 1;
        }
      }
    }
    if ((strcmp(argv[i], "-h") == 0) || (strcmp(argv[i], "--help") == 0)) {
      show_help();
      return 0;
    }
    if ((strcmp(argv[i], "-v") == 0) || (strcmp(argv[i], "--version") == 0)) {
      printf("Version %.2f\n", 1.00);
      return 0;
    }
  }
  if (log_filename[0] == 0) {
    printf("No log file specified\n");
    return -1;
  }
  if (known_period_days == 0) {
    if (maximum_period_days == 0) {
      printf("No maximum orbital period specified\n");
      return -2;
    }
    if (maximum_period_days <= minimum_period_days) {
      printf("Maximum orbital period must be greater ");
      printf("than the minimum orbital period\n");
      return -3;
    }
  }
  scan_name(log_filename, name);
  switch (table_type) {
  case 0: {
    time_field_index = 0;
    flux_field_index = 3;
    break;
  }
  case 1: {
    time_field_index = 0;
    flux_field_index = 2;
    break;
  }
  }
  series_length = logfile_load(log_filename, timestamp, series, 100000,
                               time_field_index, flux_field_index);
  if (series_length < minimum_data_samples) {
    printf("Number of data samples too small: %d\n", series_length);
    return 1;
  }
  printf("%d values loaded\n", series_length);
  no_of_sections = detect_endpoints(timestamp, series_length, endpoints);
  if (no_of_sections == 0) {
    printf("No sections detected in the time series\n");
    return 2;
  }
  if (known_period_days == 0) {
    orbital_period_days = detect_orbital_period(
        timestamp, series, series_length, minimum_period_days,
        maximum_period_days, search_increment_seconds / (60.0f * 60.0f * 24.0f),
        min_dipped_density, max_dipped_percent, min_intermediate_percent,
        max_intermediate_percent, expected_dip_radius_percent, peak_threshold,
        max_vacancy_density, dip_threshold);
    if (orbital_period_days == 0) {
      printf("No transits detected\n");
      return -5;
    }
    printf("orbital_period_days %.6f\n", orbital_period_days);
  } else {
    orbital_period_days = known_period_days;
  }
  sprintf(light_curve_filename, "%s.png", name);
  sprintf(light_curve_distribution_filename, "%s_distr.png", name);
  sprintf(title, "SuperWASP Light Curve for %s", name);
  gnuplot_light_curve_distribution(
      title, timestamp, series, series_length,
      light_curve_distribution_filename, 1024, 640, 0.44, 0.93,
      "TAMUZ corrected processed flux (micro Vega)", orbital_period_days,
      vertical_scale);
  gnuplot_light_curve(title, timestamp, series, series_length,
                      light_curve_filename, 1024, 640, 0.44, 0.93,
                      "TAMUZ corrected processed flux (micro Vega)",
                      orbital_period_days, vertical_scale);
  gnuplot_tidy();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x125520,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x3e8,-0x1252b8(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1252bc(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1252c0(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1252c4(%rbp)
ff
movl   $0x0,-0x1254d4(%rbp)
movl   $0x0,-0x1254d8(%rbp)
movl   $0x3,-0x1254dc(%rbp)
movss  0xde6(%rip),%xmm0
movss  %xmm0,-0x1254e0(%rbp)
ff
movss  0xdd2(%rip),%xmm0
movss  %xmm0,-0x1254e4(%rbp)
ff
movss  0xdbe(%rip),%xmm0
movss  %xmm0,-0x1254e8(%rbp)
ff
movss  0xdaa(%rip),%xmm0
movss  %xmm0,-0x1254ec(%rbp)
ff
movss  0xd96(%rip),%xmm0
movss  %xmm0,-0x1254f0(%rbp)
ff
movss  0xd7e(%rip),%xmm0
movss  %xmm0,-0x1254f4(%rbp)
ff
movss  0xd72(%rip),%xmm0
movss  %xmm0,-0x1254f8(%rbp)
ff
movss  0xd5e(%rip),%xmm0
movss  %xmm0,-0x1254fc(%rbp)
ff
movss  0xd4a(%rip),%xmm0
movss  %xmm0,-0x125500(%rbp)
ff
movss  0xd36(%rip),%xmm0
movss  %xmm0,-0x125504(%rbp)
ff
cmpl   $0x1,-0x8(%rbp)
jg     12ef <main+0x11f>
mov    $0x0,%al
call   1080 <show_help@plt>
movl   $0x1,-0x4(%rbp)
jmp    1ef9 <main+0xd29>
movb   $0x0,-0x1250b0(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1a9d <main+0x8cd>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd24(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     134b <main+0x17b>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd06(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1386 <main+0x1b6>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1381 <main+0x1b1>
lea    -0x1250b0(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xed2(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
jmp    1386 <main+0x1b6>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xcb5(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     13c8 <main+0x1f8>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc97(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    13fb <main+0x22b>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13f6 <main+0x226>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   10c0 <atoi@plt>
mov    %eax,-0x1252b8(%rbp)
jmp    13fb <main+0x22b>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc50(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1455 <main+0x285>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1450 <main+0x280>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1030 <atof@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x1254e0(%rbp)
ff
jmp    1455 <main+0x285>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xbff(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     1497 <main+0x2c7>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xbe1(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    14d0 <main+0x300>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    14cb <main+0x2fb>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1030 <atof@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x1252bc(%rbp)
ff
jmp    14d0 <main+0x300>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xb8d(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     1512 <main+0x342>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xb6f(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    154b <main+0x37b>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1546 <main+0x376>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1030 <atof@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x1252c0(%rbp)
ff
jmp    154b <main+0x37b>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xb1b(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     158d <main+0x3bd>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xafd(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    15c6 <main+0x3f6>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    15c1 <main+0x3f1>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1030 <atof@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x1254e4(%rbp)
ff
jmp    15c6 <main+0x3f6>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xaaa(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     1608 <main+0x438>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xa8c(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1641 <main+0x471>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    163c <main+0x46c>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1030 <atof@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x1252c4(%rbp)
ff
jmp    1641 <main+0x471>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xa3b(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    169b <main+0x4cb>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1696 <main+0x4c6>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1030 <atof@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x1254e8(%rbp)
ff
jmp    169b <main+0x4cb>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x9ea(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    16f5 <main+0x525>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    16f0 <main+0x520>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1030 <atof@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x1254ec(%rbp)
ff
jmp    16f5 <main+0x525>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x998(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    174f <main+0x57f>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    174a <main+0x57a>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1030 <atof@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x1254f0(%rbp)
ff
jmp    174f <main+0x57f>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x945(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     1791 <main+0x5c1>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x927(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    17ca <main+0x5fa>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    17c5 <main+0x5f5>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1030 <atof@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x1254fc(%rbp)
ff
jmp    17ca <main+0x5fa>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x8d6(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1824 <main+0x654>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    181f <main+0x64f>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1030 <atof@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x1254f8(%rbp)
ff
jmp    1824 <main+0x654>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x885(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    187e <main+0x6ae>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1879 <main+0x6a9>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1030 <atof@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x125500(%rbp)
ff
jmp    187e <main+0x6ae>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x832(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    18d8 <main+0x708>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    18d3 <main+0x703>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1030 <atof@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x125504(%rbp)
ff
jmp    18d8 <main+0x708>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x7de(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     191a <main+0x74a>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x7c0(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    19d1 <main+0x801>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    19cc <main+0x7fc>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x791(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     1971 <main+0x7a1>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x775(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    197b <main+0x7ab>
movl   $0x0,-0x1254d4(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x74f(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     19bd <main+0x7ed>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x731(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    19c7 <main+0x7f7>
movl   $0x1,-0x1254d4(%rbp)
jmp    19cc <main+0x7fc>
jmp    19d1 <main+0x801>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x6ff(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     1a13 <main+0x843>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x6e1(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1a26 <main+0x856>
mov    $0x0,%al
call   1080 <show_help@plt>
movl   $0x0,-0x4(%rbp)
jmp    1ef9 <main+0xd29>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x6b4(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     1a68 <main+0x898>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x696(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1a8a <main+0x8ba>
lea    0x68b(%rip),%rdi
movsd  0x5c1(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1ef9 <main+0xd29>
jmp    1a8f <main+0x8bf>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12fd <main+0x12d>
movsbl -0x1250b0(%rbp),%eax
cmp    $0x0,%eax
jne    1ac7 <main+0x8f7>
lea    0x654(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1ef9 <main+0xd29>
movss  -0x1252c4(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1b5b <main+0x98b>
jp     1b5b <main+0x98b>
movss  -0x1252c0(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1b15 <main+0x945>
jp     1b15 <main+0x945>
lea    0x61d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0xfffffffe,-0x4(%rbp)
jmp    1ef9 <main+0xd29>
movss  -0x1252c0(%rbp),%xmm1
ff
movss  -0x1252bc(%rbp),%xmm0
ff
ucomiss %xmm1,%xmm0
jb     1b56 <main+0x986>
lea    0x60f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0x629(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0xfffffffd,-0x4(%rbp)
jmp    1ef9 <main+0xd29>
jmp    1b5b <main+0x98b>
xor    %eax,%eax
lea    -0x1250b0(%rbp),%rdi
lea    -0x1251b0(%rbp),%rsi
call   10f0 <scan_name@plt>
mov    -0x1254d4(%rbp),%eax
mov    %eax,-0x125508(%rbp)
test   %eax,%eax
je     1b9d <main+0x9cd>
jmp    1b89 <main+0x9b9>
mov    -0x125508(%rbp),%eax
sub    $0x1,%eax
je     1bb6 <main+0x9e6>
jmp    1bca <main+0x9fa>
movl   $0x0,-0x1254d8(%rbp)
movl   $0x3,-0x1254dc(%rbp)
jmp    1bca <main+0x9fa>
movl   $0x0,-0x1254d8(%rbp)
movl   $0x2,-0x1254dc(%rbp)
lea    -0x1250b0(%rbp),%rdi
lea    -0x61aa0(%rbp),%rsi
lea    -0xc3520(%rbp),%rdx
mov    -0x1254d8(%rbp),%r8d
mov    -0x1254dc(%rbp),%r9d
mov    $0x186a0,%ecx
mov    $0x0,%al
call   1040 <logfile_load@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x1252b8(%rbp),%eax
jge    1c28 <main+0xa58>
mov    -0x18(%rbp),%esi
lea    0x578(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1ef9 <main+0xd29>
mov    -0x18(%rbp),%esi
lea    0x581(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x61aa0(%rbp),%rdi
mov    -0x18(%rbp),%esi
lea    -0x124fa0(%rbp),%rdx
mov    $0x0,%al
call   10d0 <detect_endpoints@plt>
mov    %eax,-0x124fa4(%rbp)
cmpl   $0x0,-0x124fa4(%rbp)
jne    1c7e <main+0xaae>
lea    0x55a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x2,-0x4(%rbp)
jmp    1ef9 <main+0xd29>
movss  -0x1252c4(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1db9 <main+0xbe9>
jp     1db9 <main+0xbe9>
lea    -0x61aa0(%rbp),%rdi
lea    -0xc3520(%rbp),%rsi
mov    -0x18(%rbp),%edx
movss  -0x1252bc(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movss  -0x1252c0(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movss  -0x1254e4(%rbp),%xmm2
ff
movss  0x353(%rip),%xmm3
divss  %xmm3,%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x1254ec(%rbp),%xmm3
ff
cvtss2sd %xmm3,%xmm3
movss  -0x1254f0(%rbp),%xmm4
ff
cvtss2sd %xmm4,%xmm4
movss  -0x1254f4(%rbp),%xmm5
ff
cvtss2sd %xmm5,%xmm5
movss  -0x1254f8(%rbp),%xmm6
ff
cvtss2sd %xmm6,%xmm6
movss  -0x1254fc(%rbp),%xmm7
ff
cvtss2sd %xmm7,%xmm7
movss  -0x125500(%rbp),%xmm8
ed ff
cvtss2sd %xmm8,%xmm10
movss  -0x1254e8(%rbp),%xmm8
ed ff
cvtss2sd %xmm8,%xmm9
movss  -0x125504(%rbp),%xmm8
ed ff
cvtss2sd %xmm8,%xmm8
movsd  %xmm10,(%rsp)
movsd  %xmm9,0x8(%rsp)
movsd  %xmm8,0x10(%rsp)
mov    $0x8,%al
call   10a0 <detect_orbital_period@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x1252b4(%rbp)
ff
movss  -0x1252b4(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1d9a <main+0xbca>
jp     1d9a <main+0xbca>
lea    0x467(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0xfffffffb,-0x4(%rbp)
jmp    1ef9 <main+0xd29>
movss  -0x1252b4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0x457(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
jmp    1dc9 <main+0xbf9>
movss  -0x1252c4(%rbp),%xmm0
ff
movss  %xmm0,-0x1252b4(%rbp)
ff
lea    -0x1253d0(%rbp),%rdi
lea    -0x1251b0(%rbp),%rdx
lea    0x440(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
lea    -0x1254d0(%rbp),%rdi
lea    -0x1251b0(%rbp),%rdx
lea    0x42b(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
lea    -0x1252b0(%rbp),%rdi
lea    -0x1251b0(%rbp),%rdx
lea    0x41c(%rip),%rsi
mov    $0x0,%al
call   10e0 <sprintf@plt>
lea    -0x1252b0(%rbp),%rdi
lea    -0x61aa0(%rbp),%rsi
lea    -0xc3520(%rbp),%rdx
mov    -0x18(%rbp),%ecx
lea    -0x1254d0(%rbp),%r8
movss  -0x1252b4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm2
movss  -0x1254e0(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm3
mov    $0x400,%r9d
movsd  0x1c6(%rip),%xmm0
movsd  0x1c6(%rip),%xmm1
lea    0x3de(%rip),%rax
movl   $0x280,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x4,%al
call   1060 <gnuplot_light_curve_distribution@plt>
lea    -0x1252b0(%rbp),%rdi
lea    -0x61aa0(%rbp),%rsi
lea    -0xc3520(%rbp),%rdx
mov    -0x18(%rbp),%ecx
lea    -0x1253d0(%rbp),%r8
movss  -0x1252b4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm2
movss  -0x1254e0(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm3
mov    $0x400,%r9d
movsd  0x15f(%rip),%xmm0
movsd  0x15f(%rip),%xmm1
lea    0x377(%rip),%rax
movl   $0x280,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x4,%al
call   1090 <gnuplot_light_curve@plt>
mov    $0x0,%al
call   10b0 <gnuplot_tidy@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x125520,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1254c8,%rsp
cmp    $0x1,%edi
jg     1217 <main+0x27>
xor    %eax,%eax
call   10a0 <show_help@plt>
mov    $0x1,%ebp
jmp    17f5 <main+0x605>
mov    %rsi,%r14
mov    %edi,%r13d
movb   $0x0,0x40(%rsp)
mov    $0x1,%r12d
movl   $0x3e8,0x3c(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
movss  0xdbf(%rip),%xmm0
movss  %xmm0,0x30(%rsp)
movss  0xdb5(%rip),%xmm0
movss  %xmm0,0x38(%rsp)
movss  0xdab(%rip),%xmm0
movss  %xmm0,0x2c(%rsp)
movss  0xda1(%rip),%xmm0
movss  %xmm0,0x24(%rsp)
movss  0xd97(%rip),%xmm0
movss  %xmm0,0x20(%rsp)
movss  0xd8d(%rip),%xmm0
movss  %xmm0,0x1c(%rsp)
movss  0xd83(%rip),%xmm0
movss  %xmm0,0x34(%rsp)
movss  0xd79(%rip),%xmm0
movss  %xmm0,0x18(%rsp)
movss  0xd6f(%rip),%xmm0
movss  %xmm0,0x28(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0xc(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x8(%rsp)
movl   $0x0,(%rsp)
movslq %r12d,%rbx
mov    (%r14,%rbx,8),%rbp
mov    %rbp,%rdi
lea    0xd67(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     12fd <main+0x10d>
mov    %rbp,%rdi
lea    0xd57(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    131f <main+0x12f>
movslq %r12d,%rax
lea    0x1(%rax),%rbx
add    $0x1,%r12d
mov    0x8(%r14,%rax,8),%rbp
cmp    %r13d,%r12d
jge    131f <main+0x12f>
lea    0x40(%rsp),%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
lea    0xd2d(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     1345 <main+0x155>
mov    %rbp,%rdi
lea    0xd1d(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    1360 <main+0x170>
add    $0x1,%r12d
movslq %r12d,%rbx
cmp    %r13d,%r12d
jge    1360 <main+0x170>
mov    (%r14,%rbx,8),%rdi
xor    %eax,%eax
call   10e0 <atoi@plt>
mov    %eax,0x3c(%rsp)
mov    (%r14,%rbx,8),%rdi
lea    0xcfb(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    13a0 <main+0x1b0>
add    $0x1,%r12d
movslq %r12d,%rbx
cmp    %r13d,%r12d
jge    13a0 <main+0x1b0>
mov    (%r14,%rbx,8),%rdi
xor    %eax,%eax
call   1050 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x30(%rsp)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%rbp
mov    %rbp,%rdi
lea    0xcc1(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     13ca <main+0x1da>
mov    %rbp,%rdi
lea    0xcb1(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    13ee <main+0x1fe>
add    $0x1,%r12d
movslq %r12d,%rbx
cmp    %r13d,%r12d
jge    13ee <main+0x1fe>
mov    (%r14,%rbx,8),%rdi
xor    %eax,%eax
call   1050 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x8(%rsp)
mov    (%r14,%rbx,8),%rbp
mov    %rbp,%rdi
lea    0xc7c(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     1418 <main+0x228>
mov    %rbp,%rdi
lea    0xc6c(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    143c <main+0x24c>
add    $0x1,%r12d
movslq %r12d,%rbx
cmp    %r13d,%r12d
jge    143c <main+0x24c>
mov    (%r14,%rbx,8),%rdi
xor    %eax,%eax
call   1050 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0xc(%rsp)
mov    (%r14,%rbx,8),%rbp
mov    %rbp,%rdi
lea    0xc37(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     1466 <main+0x276>
mov    %rbp,%rdi
lea    0xc27(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    148a <main+0x29a>
add    $0x1,%r12d
movslq %r12d,%rbx
cmp    %r13d,%r12d
jge    148a <main+0x29a>
mov    (%r14,%rbx,8),%rdi
xor    %eax,%eax
call   1050 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x38(%rsp)
mov    (%r14,%rbx,8),%rbp
mov    %rbp,%rdi
lea    0xbf3(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     14b4 <main+0x2c4>
mov    %rbp,%rdi
lea    0xbe3(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    14d8 <main+0x2e8>
add    $0x1,%r12d
movslq %r12d,%rbx
cmp    %r13d,%r12d
jge    14d8 <main+0x2e8>
mov    (%r14,%rbx,8),%rdi
xor    %eax,%eax
call   1050 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x10(%rsp)
mov    (%r14,%rbx,8),%rdi
lea    0xbb4(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    1510 <main+0x320>
add    $0x1,%r12d
movslq %r12d,%rbx
cmp    %r13d,%r12d
jge    1510 <main+0x320>
mov    (%r14,%rbx,8),%rdi
xor    %eax,%eax
call   1050 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x2c(%rsp)
mov    (%r14,%rbx,8),%rdi
lea    0xb85(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    1550 <main+0x360>
add    $0x1,%r12d
movslq %r12d,%rbx
cmp    %r13d,%r12d
jge    1550 <main+0x360>
mov    (%r14,%rbx,8),%rdi
xor    %eax,%eax
call   1050 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x24(%rsp)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%rdi
lea    0xb4d(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    1590 <main+0x3a0>
add    $0x1,%r12d
movslq %r12d,%rbx
cmp    %r13d,%r12d
jge    1590 <main+0x3a0>
mov    (%r14,%rbx,8),%rdi
xor    %eax,%eax
call   1050 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x20(%rsp)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%rbp
mov    %rbp,%rdi
lea    0xb11(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     15ba <main+0x3ca>
mov    %rbp,%rdi
lea    0xb01(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    15de <main+0x3ee>
add    $0x1,%r12d
movslq %r12d,%rbx
cmp    %r13d,%r12d
jge    15de <main+0x3ee>
mov    (%r14,%rbx,8),%rdi
xor    %eax,%eax
call   1050 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x34(%rsp)
mov    (%r14,%rbx,8),%rdi
lea    0xad2(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    1620 <main+0x430>
add    $0x1,%r12d
movslq %r12d,%rbx
cmp    %r13d,%r12d
jge    1620 <main+0x430>
mov    (%r14,%rbx,8),%rdi
xor    %eax,%eax
call   1050 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x1c(%rsp)
cs nopw 0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%rdi
lea    0xa99(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    1660 <main+0x470>
add    $0x1,%r12d
movslq %r12d,%rbx
cmp    %r13d,%r12d
jge    1660 <main+0x470>
mov    (%r14,%rbx,8),%rdi
xor    %eax,%eax
call   1050 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x18(%rsp)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%rdi
lea    0xa60(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    16a0 <main+0x4b0>
add    $0x1,%r12d
movslq %r12d,%rbx
cmp    %r13d,%r12d
jge    16a0 <main+0x4b0>
mov    (%r14,%rbx,8),%rdi
xor    %eax,%eax
call   1050 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x28(%rsp)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%r15
mov    %r15,%rdi
lea    0xa23(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     16d0 <main+0x4e0>
mov    %r15,%rdi
lea    0xa13(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     16d0 <main+0x4e0>
mov    %r12d,%ebx
jmp    1740 <main+0x550>
nop
lea    0x1(%r12),%ebx
movslq %r12d,%rax
mov    0x8(%r14,%rax,8),%r15
cmp    %r13d,%ebx
jge    1740 <main+0x550>
mov    %r15,%rdi
lea    0x9ef(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     1708 <main+0x518>
mov    %r15,%rdi
lea    0x9e1(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    170f <main+0x51f>
movl   $0x0,(%rsp)
mov    %r15,%rdi
lea    0x9cc(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     1735 <main+0x545>
mov    %r15,%rdi
lea    0x9bc(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    1740 <main+0x550>
movl   $0x1,(%rsp)
nopl   0x0(%rax)
mov    %r15,%rdi
lea    0x9a1(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     17d2 <main+0x5e2>
mov    %r15,%rdi
lea    0x991(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     17d2 <main+0x5e2>
mov    %r15,%rdi
lea    0x985(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     17dd <main+0x5ed>
mov    %r15,%rdi
lea    0x975(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     17dd <main+0x5ed>
add    $0x1,%ebx
mov    %ebx,%r12d
cmp    %r13d,%ebx
jl     12d0 <main+0xe0>
cmpb   $0x0,0x40(%rsp)
je     1809 <main+0x619>
xorps  %xmm0,%xmm0
movss  0x10(%rsp),%xmm1
ucomiss %xmm0,%xmm1
jne    182e <main+0x63e>
jp     182e <main+0x63e>
movss  0xc(%rsp),%xmm1
ucomiss %xmm0,%xmm1
jne    181c <main+0x62c>
jp     181c <main+0x62c>
lea    0xa7e(%rip),%rdi
call   1040 <puts@plt>
mov    $0xfffffffe,%ebp
jmp    17f5 <main+0x605>
xor    %ebp,%ebp
xor    %eax,%eax
call   10a0 <show_help@plt>
jmp    17f5 <main+0x605>
lea    0x91e(%rip),%rdi
movsd  0x854(%rip),%xmm0
mov    $0x1,%al
call   1070 <printf@plt>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x1254c8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xa58(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffff,%ebp
jmp    17f5 <main+0x605>
movaps %xmm1,%xmm0
movss  0x8(%rsp),%xmm1
ucomiss %xmm0,%xmm1
jae    19be <main+0x7ce>
lea    0x40(%rsp),%rbx
lea    0x240(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1110 <scan_name@plt>
xor    %eax,%eax
mov    (%rsp),%ecx
cmp    $0x1,%ecx
sete   %al
xor    $0x3,%eax
test   %ecx,%ecx
mov    $0x3,%r9d
cmovne %eax,%r9d
lea    0x540(%rsp),%rsi
lea    0x61fc0(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x186a0,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1060 <logfile_load@plt>
mov    %eax,%ebx
cmp    0x3c(%rsp),%eax
jge    18a3 <main+0x6b3>
lea    0x8a8(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x1,%ebp
jmp    17f5 <main+0x605>
lea    0x8b4(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x540(%rsp),%rdi
lea    0xc3a40(%rsp),%rdx
mov    %ebx,%esi
xor    %eax,%eax
call   10f0 <detect_endpoints@plt>
test   %eax,%eax
je     19e2 <main+0x7f2>
xorps  %xmm0,%xmm0
movss  0x10(%rsp),%xmm1
ucomiss %xmm0,%xmm1
jne    19f8 <main+0x808>
jp     19f8 <main+0x808>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0xc(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  0x38(%rsp),%xmm2
divss  0x716(%rip),%xmm2
cvtss2sd %xmm2,%xmm2
movss  0x24(%rsp),%xmm3
cvtss2sd %xmm3,%xmm3
movss  0x20(%rsp),%xmm4
cvtss2sd %xmm4,%xmm4
movss  0x1c(%rsp),%xmm5
cvtss2sd %xmm5,%xmm6
movss  0x34(%rsp),%xmm5
cvtss2sd %xmm5,%xmm7
movss  0x18(%rsp),%xmm5
cvtss2sd %xmm5,%xmm8
movss  0x2c(%rsp),%xmm5
cvtss2sd %xmm5,%xmm9
movss  0x28(%rsp),%xmm5
cvtss2sd %xmm5,%xmm5
sub    $0x20,%rsp
movsd  %xmm5,0x10(%rsp)
movsd  %xmm9,0x8(%rsp)
movsd  %xmm8,(%rsp)
lea    0x560(%rsp),%rdi
lea    0x61fe0(%rsp),%rsi
movsd  0x69f(%rip),%xmm5
mov    %ebx,%edx
mov    $0x8,%al
call   10c0 <detect_orbital_period@plt>
add    $0x20,%rsp
test   %eax,%eax
je     1b19 <main+0x929>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x7c0(%rip),%rdi
movsd  %xmm0,(%rsp)
mov    $0x1,%al
call   1070 <printf@plt>
jmp    1a04 <main+0x814>
lea    0x74b(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x851(%rip),%rdi
call   1040 <puts@plt>
mov    $0xfffffffd,%ebp
jmp    17f5 <main+0x605>
lea    0x813(%rip),%rdi
call   1040 <puts@plt>
mov    $0x2,%ebp
jmp    17f5 <main+0x605>
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
movsd  %xmm0,(%rsp)
lea    0x77f(%rip),%rsi
xor    %ebp,%ebp
lea    0x140(%rsp),%rdi
lea    0x240(%rsp),%r12
mov    %r12,%rdx
xor    %eax,%eax
call   1100 <sprintf@plt>
lea    0x763(%rip),%rsi
lea    0x340(%rsp),%r13
mov    %r13,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1100 <sprintf@plt>
lea    0x754(%rip),%rsi
lea    0x440(%rsp),%r15
mov    %r15,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1100 <sprintf@plt>
movss  0x30(%rsp),%xmm0
xorps  %xmm3,%xmm3
cvtss2sd %xmm0,%xmm3
movsd  %xmm3,0x10(%rsp)
lea    0x742(%rip),%r10
lea    0x540(%rsp),%r12
lea    0x61fc0(%rsp),%r14
movsd  0x59f(%rip),%xmm0
movsd  0x59f(%rip),%xmm1
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %ebx,%ecx
mov    %r13,%r8
mov    $0x400,%r9d
movsd  (%rsp),%xmm2
mov    $0x4,%al
push   %r10
mov    %r10,%r13
push   $0x280
call   1080 <gnuplot_light_curve_distribution@plt>
add    $0x10,%rsp
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %ebx,%ecx
lea    0x140(%rsp),%r8
mov    $0x400,%r9d
movsd  0x548(%rip),%xmm0
movsd  0x548(%rip),%xmm1
movsd  (%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
mov    $0x4,%al
push   %r13
push   $0x280
call   10b0 <gnuplot_light_curve@plt>
add    $0x10,%rsp
xor    %eax,%eax
call   10d0 <gnuplot_tidy@plt>
jmp    17f5 <main+0x605>
lea    0x6c7(%rip),%rdi
call   1040 <puts@plt>
mov    $0xfffffffb,%ebp
jmp    17f5 <main+0x605>

LLVM IR (-O0):
@.str = [3 x i8] c"-f\00"
@.str.1 = [11 x i8] c"--filename\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [3 x i8] c"-m\00"
@.str.4 = [13 x i8] c"--minsamples\00"
@.str.5 = [9 x i8] c"--vscale\00"
@.str.6 = [3 x i8] c"-0\00"
@.str.7 = [6 x i8] c"--min\00"
@.str.8 = [3 x i8] c"-1\00"
@.str.9 = [6 x i8] c"--max\00"
@.str.10 = [3 x i8] c"-i\00"
@.str.11 = [7 x i8] c"--incr\00"
@.str.12 = [3 x i8] c"-p\00"
@.str.13 = [9 x i8] c"--period\00"
@.str.14 = [9 x i8] c"--maxvac\00"
@.str.15 = [8 x i8] c"--mindd\00"
@.str.16 = [7 x i8] c"--maxd\00"
@.str.17 = [3 x i8] c"-r\00"
@.str.18 = [9 x i8] c"--diprad\00"
@.str.19 = [9 x i8] c"--maxint\00"
@.str.20 = [7 x i8] c"--peak\00"
@.str.21 = [6 x i8] c"--dip\00"
@.str.22 = [3 x i8] c"-t\00"
@.str.23 = [7 x i8] c"--type\00"
@.str.24 = [5 x i8] c"wasp\00"
@.str.25 = [5 x i8] c"WASP\00"
@.str.26 = [3 x i8] c"k2\00"
@.str.27 = [3 x i8] c"K2\00"
@.str.28 = [3 x i8] c"-h\00"
@.str.29 = [7 x i8] c"--help\00"
@.str.30 = [3 x i8] c"-v\00"
@.str.31 = [10 x i8] c"--version\00"
@.str.32 = [14 x i8] c"Version %.2f\0A\00"
@.str.33 = [23 x i8] c"No log file specified\0A\00"
@.str.34 = [37 x i8] c"No maximum orbital period specified\0A\00"
@.str.35 = [40 x i8] c"Maximum orbital period must be greater \00"
@.str.36 = [33 x i8] c"than the minimum orbital period\0A\00"
@.str.37 = [38 x i8] c"Number of data samples too small: %d\0A\00"
@.str.38 = [18 x i8] c"%d values loaded\0A\00"
@.str.39 = [41 x i8] c"No sections detected in the time series\0A\00"
@.str.40 = [22 x i8] c"No transits detected\0A\00"
@.str.41 = [26 x i8] c"orbital_period_days %.6f\0A\00"
@.str.42 = [7 x i8] c"%s.png\00"
@.str.43 = [13 x i8] c"%s_distr.png\00"
@.str.44 = [29 x i8] c"SuperWASP Light Curve for %s\00"
@.str.45 = [44 x i8] c"TAMUZ corrected processed flux (micro Vega)\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [100000 x float]
%9 = alloca [100000 x float]
%10 = alloca [100000 x i32]
%11 = alloca i32
%12 = alloca [256 x i8]
%13 = alloca [256 x i8]
%14 = alloca [256 x i8]
%15 = alloca float
%16 = alloca i32
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca [256 x i8]
%21 = alloca [256 x i8]
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca float
%26 = alloca float
%27 = alloca float
%28 = alloca float
%29 = alloca float
%30 = alloca float
%31 = alloca float
%32 = alloca float
%33 = alloca float
%34 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1000, i32* %16
store float 0.000000e+00, float* %17
store float 0.000000e+00, float* %18
store float 0.000000e+00, float* %19
store i32 0, i32* %22
store i32 0, i32* %23
store i32 3, i32* %24
store float 1.000000e+00, float* %25
store float 0x3FEBA5E360000000, float* %26
store float 0x3F80624DE0000000, float* %27
store float 0x3FD3333340000000, float* %28
store float 1.500000e+01, float* %29
store float 2.000000e+00, float* %30
store float 1.000000e+01, float* %31
store float 2.000000e+00, float* %32
store float 0x3FE3333340000000, float* %33
store float 0x3FC99999A0000000, float* %34
%35 = load i32, i32* %4
%36 = icmp sle i32 %35, 1
br i1 %36, label %37, label %39
37: ; preds = %2
%38 = call i32 (...) @show_help()
store i32 1, i32* %3
br label %647
39: ; preds = %2
%40 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
store i8 0, i8* %40
store i32 1, i32* %6
br label %41
41: ; preds = %517, %39
%42 = load i32, i32* %6
%43 = load i32, i32* %4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %520
45: ; preds = %41
%46 = load i8**, i8*** %5
%47 = load i32, i32* %6
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8*, i8** %46, i64 %48
%50 = load i8*, i8** %49
%51 = call i32 @strcmp(i8* %50, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%52 = icmp eq i32 %51, 0
br i1 %52, label %61, label %53
53: ; preds = %45
%54 = load i8**, i8*** %5
%55 = load i32, i32* %6
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8*, i8** %54, i64 %56
%58 = load i8*, i8** %57
%59 = call i32 @strcmp(i8* %58, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %76
61: ; preds = %53, %45
%62 = load i32, i32* %6
%63 = add nsw i32 %62, 1
store i32 %63, i32* %6
%64 = load i32, i32* %6
%65 = load i32, i32* %4
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %75
67: ; preds = %61
%68 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%69 = load i8**, i8*** %5
%70 = load i32, i32* %6
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8*, i8** %69, i64 %71
%73 = load i8*, i8** %72
%74 = call i32 (i8*, i8*, ...) @sprintf(i8* %68, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %73)
br label %75
75: ; preds = %67, %61
br label %76
76: ; preds = %75, %53
%77 = load i8**, i8*** %5
%78 = load i32, i32* %6
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8*, i8** %77, i64 %79
%81 = load i8*, i8** %80
%82 = call i32 @strcmp(i8* %81, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%83 = icmp eq i32 %82, 0
br i1 %83, label %92, label %84
84: ; preds = %76
%85 = load i8**, i8*** %5
%86 = load i32, i32* %6
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8*, i8** %85, i64 %87
%89 = load i8*, i8** %88
%90 = call i32 @strcmp(i8* %89, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %106
92: ; preds = %84, %76
%93 = load i32, i32* %6
%94 = add nsw i32 %93, 1
store i32 %94, i32* %6
%95 = load i32, i32* %6
%96 = load i32, i32* %4
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %105
98: ; preds = %92
%99 = load i8**, i8*** %5
%100 = load i32, i32* %6
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i8*, i8** %99, i64 %101
%103 = load i8*, i8** %102
%104 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %103)
store i32 %104, i32* %16
br label %105
105: ; preds = %98, %92
br label %106
106: ; preds = %105, %84
%107 = load i8**, i8*** %5
%108 = load i32, i32* %6
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i8*, i8** %107, i64 %109
%111 = load i8*, i8** %110
%112 = call i32 @strcmp(i8* %111, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%113 = icmp eq i32 %112, 0
br i1 %113, label %114, label %129
114: ; preds = %106
%115 = load i32, i32* %6
%116 = add nsw i32 %115, 1
store i32 %116, i32* %6
%117 = load i32, i32* %6
%118 = load i32, i32* %4
%119 = icmp slt i32 %117, %118
br i1 %119, label %120, label %128
120: ; preds = %114
%121 = load i8**, i8*** %5
%122 = load i32, i32* %6
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8*, i8** %121, i64 %123
%125 = load i8*, i8** %124
%126 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %125)
%127 = sitofp i32 %126 to float
store float %127, float* %25
br label %128
128: ; preds = %120, %114
br label %129
129: ; preds = %128, %106
%130 = load i8**, i8*** %5
%131 = load i32, i32* %6
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds i8*, i8** %130, i64 %132
%134 = load i8*, i8** %133
%135 = call i32 @strcmp(i8* %134, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%136 = icmp eq i32 %135, 0
br i1 %136, label %145, label %137
137: ; preds = %129
%138 = load i8**, i8*** %5
%139 = load i32, i32* %6
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds i8*, i8** %138, i64 %140
%142 = load i8*, i8** %141
%143 = call i32 @strcmp(i8* %142, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%144 = icmp eq i32 %143, 0
br i1 %144, label %145, label %160
145: ; preds = %137, %129
%146 = load i32, i32* %6
%147 = add nsw i32 %146, 1
store i32 %147, i32* %6
%148 = load i32, i32* %6
%149 = load i32, i32* %4
%150 = icmp slt i32 %148, %149
br i1 %150, label %151, label %159
151: ; preds = %145
%152 = load i8**, i8*** %5
%153 = load i32, i32* %6
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds i8*, i8** %152, i64 %154
%156 = load i8*, i8** %155
%157 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %156)
%158 = sitofp i32 %157 to float
store float %158, float* %17
br label %159
159: ; preds = %151, %145
br label %160
160: ; preds = %159, %137
%161 = load i8**, i8*** %5
%162 = load i32, i32* %6
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds i8*, i8** %161, i64 %163
%165 = load i8*, i8** %164
%166 = call i32 @strcmp(i8* %165, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%167 = icmp eq i32 %166, 0
br i1 %167, label %176, label %168
168: ; preds = %160
%169 = load i8**, i8*** %5
%170 = load i32, i32* %6
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds i8*, i8** %169, i64 %171
%173 = load i8*, i8** %172
%174 = call i32 @strcmp(i8* %173, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%175 = icmp eq i32 %174, 0
br i1 %175, label %176, label %191
176: ; preds = %168, %160
%177 = load i32, i32* %6
%178 = add nsw i32 %177, 1
store i32 %178, i32* %6
%179 = load i32, i32* %6
%180 = load i32, i32* %4
%181 = icmp slt i32 %179, %180
br i1 %181, label %182, label %190
182: ; preds = %176
%183 = load i8**, i8*** %5
%184 = load i32, i32* %6
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds i8*, i8** %183, i64 %185
%187 = load i8*, i8** %186
%188 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %187)
%189 = sitofp i32 %188 to float
store float %189, float* %18
br label %190
190: ; preds = %182, %176
br label %191
191: ; preds = %190, %168
%192 = load i8**, i8*** %5
%193 = load i32, i32* %6
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds i8*, i8** %192, i64 %194
%196 = load i8*, i8** %195
%197 = call i32 @strcmp(i8* %196, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%198 = icmp eq i32 %197, 0
br i1 %198, label %207, label %199
199: ; preds = %191
%200 = load i8**, i8*** %5
%201 = load i32, i32* %6
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds i8*, i8** %200, i64 %202
%204 = load i8*, i8** %203
%205 = call i32 @strcmp(i8* %204, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%206 = icmp eq i32 %205, 0
br i1 %206, label %207, label %222
207: ; preds = %199, %191
%208 = load i32, i32* %6
%209 = add nsw i32 %208, 1
store i32 %209, i32* %6
%210 = load i32, i32* %6
%211 = load i32, i32* %4
%212 = icmp slt i32 %210, %211
br i1 %212, label %213, label %221
213: ; preds = %207
%214 = load i8**, i8*** %5
%215 = load i32, i32* %6
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds i8*, i8** %214, i64 %216
%218 = load i8*, i8** %217
%219 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %218)
%220 = sitofp i32 %219 to float
store float %220, float* %26
br label %221
221: ; preds = %213, %207
br label %222
222: ; preds = %221, %199
%223 = load i8**, i8*** %5
%224 = load i32, i32* %6
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds i8*, i8** %223, i64 %225
%227 = load i8*, i8** %226
%228 = call i32 @strcmp(i8* %227, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%229 = icmp eq i32 %228, 0
br i1 %229, label %238, label %230
230: ; preds = %222
%231 = load i8**, i8*** %5
%232 = load i32, i32* %6
%233 = sext i32 %232 to i64
%234 = getelementptr inbounds i8*, i8** %231, i64 %233
%235 = load i8*, i8** %234
%236 = call i32 @strcmp(i8* %235, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
%237 = icmp eq i32 %236, 0
br i1 %237, label %238, label %253
238: ; preds = %230, %222
%239 = load i32, i32* %6
%240 = add nsw i32 %239, 1
store i32 %240, i32* %6
%241 = load i32, i32* %6
%242 = load i32, i32* %4
%243 = icmp slt i32 %241, %242
br i1 %243, label %244, label %252
244: ; preds = %238
%245 = load i8**, i8*** %5
%246 = load i32, i32* %6
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds i8*, i8** %245, i64 %247
%249 = load i8*, i8** %248
%250 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %249)
%251 = sitofp i32 %250 to float
store float %251, float* %19
br label %252
252: ; preds = %244, %238
br label %253
253: ; preds = %252, %230
%254 = load i8**, i8*** %5
%255 = load i32, i32* %6
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds i8*, i8** %254, i64 %256
%258 = load i8*, i8** %257
%259 = call i32 @strcmp(i8* %258, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
%260 = icmp eq i32 %259, 0
br i1 %260, label %261, label %276
261: ; preds = %253
%262 = load i32, i32* %6
%263 = add nsw i32 %262, 1
store i32 %263, i32* %6
%264 = load i32, i32* %6
%265 = load i32, i32* %4
%266 = icmp slt i32 %264, %265
br i1 %266, label %267, label %275
267: ; preds = %261
%268 = load i8**, i8*** %5
%269 = load i32, i32* %6
%270 = sext i32 %269 to i64
%271 = getelementptr inbounds i8*, i8** %268, i64 %270
%272 = load i8*, i8** %271
%273 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %272)
%274 = sitofp i32 %273 to float
store float %274, float* %27
br label %275
275: ; preds = %267, %261
br label %276
276: ; preds = %275, %253
%277 = load i8**, i8*** %5
%278 = load i32, i32* %6
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds i8*, i8** %277, i64 %279
%281 = load i8*, i8** %280
%282 = call i32 @strcmp(i8* %281, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
%283 = icmp eq i32 %282, 0
br i1 %283, label %284, label %299
284: ; preds = %276
%285 = load i32, i32* %6
%286 = add nsw i32 %285, 1
store i32 %286, i32* %6
%287 = load i32, i32* %6
%288 = load i32, i32* %4
%289 = icmp slt i32 %287, %288
br i1 %289, label %290, label %298
290: ; preds = %284
%291 = load i8**, i8*** %5
%292 = load i32, i32* %6
%293 = sext i32 %292 to i64
%294 = getelementptr inbounds i8*, i8** %291, i64 %293
%295 = load i8*, i8** %294
%296 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %295)
%297 = sitofp i32 %296 to float
store float %297, float* %28
br label %298
298: ; preds = %290, %284
br label %299
299: ; preds = %298, %276
%300 = load i8**, i8*** %5
%301 = load i32, i32* %6
%302 = sext i32 %301 to i64
%303 = getelementptr inbounds i8*, i8** %300, i64 %302
%304 = load i8*, i8** %303
%305 = call i32 @strcmp(i8* %304, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
%306 = icmp eq i32 %305, 0
br i1 %306, label %307, label %322
307: ; preds = %299
%308 = load i32, i32* %6
%309 = add nsw i32 %308, 1
store i32 %309, i32* %6
%310 = load i32, i32* %6
%311 = load i32, i32* %4
%312 = icmp slt i32 %310, %311
br i1 %312, label %313, label %321
313: ; preds = %307
%314 = load i8**, i8*** %5
%315 = load i32, i32* %6
%316 = sext i32 %315 to i64
%317 = getelementptr inbounds i8*, i8** %314, i64 %316
%318 = load i8*, i8** %317
%319 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %318)
%320 = sitofp i32 %319 to float
store float %320, float* %29
br label %321
321: ; preds = %313, %307
br label %322
322: ; preds = %321, %299
%323 = load i8**, i8*** %5
%324 = load i32, i32* %6
%325 = sext i32 %324 to i64
%326 = getelementptr inbounds i8*, i8** %323, i64 %325
%327 = load i8*, i8** %326
%328 = call i32 @strcmp(i8* %327, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%329 = icmp eq i32 %328, 0
br i1 %329, label %338, label %330
330: ; preds = %322
%331 = load i8**, i8*** %5
%332 = load i32, i32* %6
%333 = sext i32 %332 to i64
%334 = getelementptr inbounds i8*, i8** %331, i64 %333
%335 = load i8*, i8** %334
%336 = call i32 @strcmp(i8* %335, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0))
%337 = icmp eq i32 %336, 0
br i1 %337, label %338, label %353
338: ; preds = %330, %322
%339 = load i32, i32* %6
%340 = add nsw i32 %339, 1
store i32 %340, i32* %6
%341 = load i32, i32* %6
%342 = load i32, i32* %4
%343 = icmp slt i32 %341, %342
br i1 %343, label %344, label %352
344: ; preds = %338
%345 = load i8**, i8*** %5
%346 = load i32, i32* %6
%347 = sext i32 %346 to i64
%348 = getelementptr inbounds i8*, i8** %345, i64 %347
%349 = load i8*, i8** %348
%350 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %349)
%351 = sitofp i32 %350 to float
store float %351, float* %32
br label %352
352: ; preds = %344, %338
br label %353
353: ; preds = %352, %330
%354 = load i8**, i8*** %5
%355 = load i32, i32* %6
%356 = sext i32 %355 to i64
%357 = getelementptr inbounds i8*, i8** %354, i64 %356
%358 = load i8*, i8** %357
%359 = call i32 @strcmp(i8* %358, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0))
%360 = icmp eq i32 %359, 0
br i1 %360, label %361, label %376
361: ; preds = %353
%362 = load i32, i32* %6
%363 = add nsw i32 %362, 1
store i32 %363, i32* %6
%364 = load i32, i32* %6
%365 = load i32, i32* %4
%366 = icmp slt i32 %364, %365
br i1 %366, label %367, label %375
367: ; preds = %361
%368 = load i8**, i8*** %5
%369 = load i32, i32* %6
%370 = sext i32 %369 to i64
%371 = getelementptr inbounds i8*, i8** %368, i64 %370
%372 = load i8*, i8** %371
%373 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %372)
%374 = sitofp i32 %373 to float
store float %374, float* %31
br label %375
375: ; preds = %367, %361
br label %376
376: ; preds = %375, %353
%377 = load i8**, i8*** %5
%378 = load i32, i32* %6
%379 = sext i32 %378 to i64
%380 = getelementptr inbounds i8*, i8** %377, i64 %379
%381 = load i8*, i8** %380
%382 = call i32 @strcmp(i8* %381, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
%383 = icmp eq i32 %382, 0
br i1 %383, label %384, label %399
384: ; preds = %376
%385 = load i32, i32* %6
%386 = add nsw i32 %385, 1
store i32 %386, i32* %6
%387 = load i32, i32* %6
%388 = load i32, i32* %4
%389 = icmp slt i32 %387, %388
br i1 %389, label %390, label %398
390: ; preds = %384
%391 = load i8**, i8*** %5
%392 = load i32, i32* %6
%393 = sext i32 %392 to i64
%394 = getelementptr inbounds i8*, i8** %391, i64 %393
%395 = load i8*, i8** %394
%396 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %395)
%397 = sitofp i32 %396 to float
store float %397, float* %33
br label %398
398: ; preds = %390, %384
br label %399
399: ; preds = %398, %376
%400 = load i8**, i8*** %5
%401 = load i32, i32* %6
%402 = sext i32 %401 to i64
%403 = getelementptr inbounds i8*, i8** %400, i64 %402
%404 = load i8*, i8** %403
%405 = call i32 @strcmp(i8* %404, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0))
%406 = icmp eq i32 %405, 0
br i1 %406, label %407, label %422
407: ; preds = %399
%408 = load i32, i32* %6
%409 = add nsw i32 %408, 1
store i32 %409, i32* %6
%410 = load i32, i32* %6
%411 = load i32, i32* %4
%412 = icmp slt i32 %410, %411
br i1 %412, label %413, label %421
413: ; preds = %407
%414 = load i8**, i8*** %5
%415 = load i32, i32* %6
%416 = sext i32 %415 to i64
%417 = getelementptr inbounds i8*, i8** %414, i64 %416
%418 = load i8*, i8** %417
%419 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %418)
%420 = sitofp i32 %419 to float
store float %420, float* %34
br label %421
421: ; preds = %413, %407
br label %422
422: ; preds = %421, %399
%423 = load i8**, i8*** %5
%424 = load i32, i32* %6
%425 = sext i32 %424 to i64
%426 = getelementptr inbounds i8*, i8** %423, i64 %425
%427 = load i8*, i8** %426
%428 = call i32 @strcmp(i8* %427, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
%429 = icmp eq i32 %428, 0
br i1 %429, label %438, label %430
430: ; preds = %422
%431 = load i8**, i8*** %5
%432 = load i32, i32* %6
%433 = sext i32 %432 to i64
%434 = getelementptr inbounds i8*, i8** %431, i64 %433
%435 = load i8*, i8** %434
%436 = call i32 @strcmp(i8* %435, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0))
%437 = icmp eq i32 %436, 0
br i1 %437, label %438, label %480
438: ; preds = %430, %422
%439 = load i32, i32* %6
%440 = add nsw i32 %439, 1
store i32 %440, i32* %6
%441 = load i32, i32* %6
%442 = load i32, i32* %4
%443 = icmp slt i32 %441, %442
br i1 %443, label %444, label %479
444: ; preds = %438
%445 = load i8**, i8*** %5
%446 = load i32, i32* %6
%447 = sext i32 %446 to i64
%448 = getelementptr inbounds i8*, i8** %445, i64 %447
%449 = load i8*, i8** %448
%450 = call i32 @strcmp(i8* %449, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0))
%451 = icmp eq i32 %450, 0
br i1 %451, label %460, label %452
452: ; preds = %444
%453 = load i8**, i8*** %5
%454 = load i32, i32* %6
%455 = sext i32 %454 to i64
%456 = getelementptr inbounds i8*, i8** %453, i64 %455
%457 = load i8*, i8** %456
%458 = call i32 @strcmp(i8* %457, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0))
%459 = icmp eq i32 %458, 0
br i1 %459, label %460, label %461
460: ; preds = %452, %444
store i32 0, i32* %22
br label %461
461: ; preds = %460, %452
%462 = load i8**, i8*** %5
%463 = load i32, i32* %6
%464 = sext i32 %463 to i64
%465 = getelementptr inbounds i8*, i8** %462, i64 %464
%466 = load i8*, i8** %465
%467 = call i32 @strcmp(i8* %466, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0))
%468 = icmp eq i32 %467, 0
br i1 %468, label %477, label %469
469: ; preds = %461
%470 = load i8**, i8*** %5
%471 = load i32, i32* %6
%472 = sext i32 %471 to i64
%473 = getelementptr inbounds i8*, i8** %470, i64 %472
%474 = load i8*, i8** %473
%475 = call i32 @strcmp(i8* %474, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i64 0, i64 0))
%476 = icmp eq i32 %475, 0
br i1 %476, label %477, label %478
477: ; preds = %469, %461
store i32 1, i32* %22
br label %478
478: ; preds = %477, %469
br label %479
479: ; preds = %478, %438
br label %480
480: ; preds = %479, %430
%481 = load i8**, i8*** %5
%482 = load i32, i32* %6
%483 = sext i32 %482 to i64
%484 = getelementptr inbounds i8*, i8** %481, i64 %483
%485 = load i8*, i8** %484
%486 = call i32 @strcmp(i8* %485, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i64 0, i64 0))
%487 = icmp eq i32 %486, 0
br i1 %487, label %496, label %488
488: ; preds = %480
%489 = load i8**, i8*** %5
%490 = load i32, i32* %6
%491 = sext i32 %490 to i64
%492 = getelementptr inbounds i8*, i8** %489, i64 %491
%493 = load i8*, i8** %492
%494 = call i32 @strcmp(i8* %493, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.29, i64 0, i64 0))
%495 = icmp eq i32 %494, 0
br i1 %495, label %496, label %498
496: ; preds = %488, %480
%497 = call i32 (...) @show_help()
store i32 0, i32* %3
br label %647
498: ; preds = %488
%499 = load i8**, i8*** %5
%500 = load i32, i32* %6
%501 = sext i32 %500 to i64
%502 = getelementptr inbounds i8*, i8** %499, i64 %501
%503 = load i8*, i8** %502
%504 = call i32 @strcmp(i8* %503, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.30, i64 0, i64 0))
%505 = icmp eq i32 %504, 0
br i1 %505, label %514, label %506
506: ; preds = %498
%507 = load i8**, i8*** %5
%508 = load i32, i32* %6
%509 = sext i32 %508 to i64
%510 = getelementptr inbounds i8*, i8** %507, i64 %509
%511 = load i8*, i8** %510
%512 = call i32 @strcmp(i8* %511, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.31, i64 0, i64 0))
%513 = icmp eq i32 %512, 0
br i1 %513, label %514, label %516
514: ; preds = %506, %498
%515 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.32, i64 0, i64 0), double 1.000000e+00)
store i32 0, i32* %3
br label %647
516: ; preds = %506
br label %517
517: ; preds = %516
%518 = load i32, i32* %6
%519 = add nsw i32 %518, 1
store i32 %519, i32* %6
br label %41
520: ; preds = %41
%521 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%522 = load i8, i8* %521
%523 = sext i8 %522 to i32
%524 = icmp eq i32 %523, 0
br i1 %524, label %525, label %527
525: ; preds = %520
%526 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.33, i64 0, i64 0))
store i32 -1, i32* %3
br label %647
527: ; preds = %520
%528 = load float, float* %19
%529 = fcmp oeq float %528, 0.000000e+00
br i1 %529, label %530, label %543
530: ; preds = %527
%531 = load float, float* %18
%532 = fcmp oeq float %531, 0.000000e+00
br i1 %532, label %533, label %535
533: ; preds = %530
%534 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.34, i64 0, i64 0))
store i32 -2, i32* %3
br label %647
535: ; preds = %530
%536 = load float, float* %18
%537 = load float, float* %17
%538 = fcmp ole float %536, %537
br i1 %538, label %539, label %542
539: ; preds = %535
%540 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.35, i64 0, i64 0))
%541 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.36, i64 0, i64 0))
store i32 -3, i32* %3
br label %647
542: ; preds = %535
br label %543
543: ; preds = %542, %527
%544 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%545 = getelementptr inbounds [256 x i8], [256 x i8]* %13, i64 0, i64 0
%546 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @scan_name to i32 (i8*, i8*, ...)*)(i8* %544, i8* %545)
%547 = load i32, i32* %22
switch i32 %547, label %550 [
i32 0, label %548
i32 1, label %549
]
548: ; preds = %543
store i32 0, i32* %23
store i32 3, i32* %24
br label %550
549: ; preds = %543
store i32 0, i32* %23
store i32 2, i32* %24
br label %550
550: ; preds = %543, %549, %548
%551 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%552 = getelementptr inbounds [100000 x float], [100000 x float]* %8, i64 0, i64 0
%553 = getelementptr inbounds [100000 x float], [100000 x float]* %9, i64 0, i64 0
%554 = load i32, i32* %23
%555 = load i32, i32* %24
%556 = call i32 (i8*, float*, float*, i32, i32, i32, ...) bitcast (i32 (...)* @logfile_load to i32 (i8*, float*, float*, i32, i32, i32, ...)*)(i8* %551, float* %552, float* %553, i32 100000, i32 %554, i32 %555)
store i32 %556, i32* %7
%557 = load i32, i32* %7
%558 = load i32, i32* %16
%559 = icmp slt i32 %557, %558
br i1 %559, label %560, label %563
560: ; preds = %550
%561 = load i32, i32* %7
%562 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.37, i64 0, i64 0), i32 %561)
store i32 1, i32* %3
br label %647
563: ; preds = %550
%564 = load i32, i32* %7
%565 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.38, i64 0, i64 0), i32 %564)
%566 = getelementptr inbounds [100000 x float], [100000 x float]* %8, i64 0, i64 0
%567 = load i32, i32* %7
%568 = getelementptr inbounds [100000 x i32], [100000 x i32]* %10, i64 0, i64 0
%569 = call i32 (float*, i32, i32*, ...) bitcast (i32 (...)* @detect_endpoints to i32 (float*, i32, i32*, ...)*)(float* %566, i32 %567, i32* %568)
store i32 %569, i32* %11
%570 = load i32, i32* %11
%571 = icmp eq i32 %570, 0
br i1 %571, label %572, label %574
572: ; preds = %563
%573 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.39, i64 0, i64 0))
store i32 2, i32* %3
br label %647
574: ; preds = %563
%575 = load float, float* %19
%576 = fcmp oeq float %575, 0.000000e+00
br i1 %576, label %577, label %614
577: ; preds = %574
%578 = getelementptr inbounds [100000 x float], [100000 x float]* %8, i64 0, i64 0
%579 = getelementptr inbounds [100000 x float], [100000 x float]* %9, i64 0, i64 0
%580 = load i32, i32* %7
%581 = load float, float* %17
%582 = fpext float %581 to double
%583 = load float, float* %18
%584 = fpext float %583 to double
%585 = load float, float* %26
%586 = fdiv float %585, 8.640000e+04
%587 = fpext float %586 to double
%588 = load float, float* %28
%589 = fpext float %588 to double
%590 = load float, float* %29
%591 = fpext float %590 to double
%592 = load float, float* %30
%593 = fpext float %592 to double
%594 = load float, float* %31
%595 = fpext float %594 to double
%596 = load float, float* %32
%597 = fpext float %596 to double
%598 = load float, float* %33
%599 = fpext float %598 to double
%600 = load float, float* %27
%601 = fpext float %600 to double
%602 = load float, float* %34
%603 = fpext float %602 to double
%604 = call i32 (float*, float*, i32, double, double, double, double, double, double, double, double, double, double, double, ...) bitcast (i32 (...)* @detect_orbital_period to i32 (float*, float*, i32, double, double, double, double, double, double, double, double, double, double, double, ...)*)(float* %578, float* %579, i32 %580, double %582, double %584, double %587, double %589, double %591, double %593, double %595, double %597, double %599, double %601, double %603)
%605 = sitofp i32 %604 to float
store float %605, float* %15
%606 = load float, float* %15
%607 = fcmp oeq float %606, 0.000000e+00
br i1 %607, label %608, label %610
608: ; preds = %577
%609 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.40, i64 0, i64 0))
store i32 -5, i32* %3
br label %647
610: ; preds = %577
%611 = load float, float* %15
%612 = fpext float %611 to double
%613 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.41, i64 0, i64 0), double %612)
br label %616
614: ; preds = %574
%615 = load float, float* %19
store float %615, float* %15
br label %616
616: ; preds = %614, %610
%617 = getelementptr inbounds [256 x i8], [256 x i8]* %20, i64 0, i64 0
%618 = getelementptr inbounds [256 x i8], [256 x i8]* %13, i64 0, i64 0
%619 = call i32 (i8*, i8*, ...) @sprintf(i8* %617, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.42, i64 0, i64 0), i8* %618)
%620 = getelementptr inbounds [256 x i8], [256 x i8]* %21, i64 0, i64 0
%621 = getelementptr inbounds [256 x i8], [256 x i8]* %13, i64 0, i64 0
%622 = call i32 (i8*, i8*, ...) @sprintf(i8* %620, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.43, i64 0, i64 0), i8* %621)
%623 = getelementptr inbounds [256 x i8], [256 x i8]* %14, i64 0, i64 0
%624 = getelementptr inbounds [256 x i8], [256 x i8]* %13, i64 0, i64 0
%625 = call i32 (i8*, i8*, ...) @sprintf(i8* %623, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.44, i64 0, i64 0), i8* %624)
%626 = getelementptr inbounds [256 x i8], [256 x i8]* %14, i64 0, i64 0
%627 = getelementptr inbounds [100000 x float], [100000 x float]* %8, i64 0, i64 0
%628 = getelementptr inbounds [100000 x float], [100000 x float]* %9, i64 0, i64 0
%629 = load i32, i32* %7
%630 = getelementptr inbounds [256 x i8], [256 x i8]* %21, i64 0, i64 0
%631 = load float, float* %15
%632 = fpext float %631 to double
%633 = load float, float* %25
%634 = fpext float %633 to double
%635 = call i32 (i8*, float*, float*, i32, i8*, i32, i32, double, double, i8*, double, double, ...) bitcast (i32 (...)* @gnuplot_light_curve_distribution to i32 (i8*, float*, float*, i32, i8*, i32, i32, double, double, i8*, double, double, ...)*)(i8* %626, float* %627, float* %628, i32 %629, i8* %630, i32 1024, i32 640, double 4.400000e-01, double 9.300000e-01, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.45, i64 0, i64 0), double %632, double %634)
%636 = getelementptr inbounds [256 x i8], [256 x i8]* %14, i64 0, i64 0
%637 = getelementptr inbounds [100000 x float], [100000 x float]* %8, i64 0, i64 0
%638 = getelementptr inbounds [100000 x float], [100000 x float]* %9, i64 0, i64 0
%639 = load i32, i32* %7
%640 = getelementptr inbounds [256 x i8], [256 x i8]* %20, i64 0, i64 0
%641 = load float, float* %15
%642 = fpext float %641 to double
%643 = load float, float* %25
%644 = fpext float %643 to double
%645 = call i32 (i8*, float*, float*, i32, i8*, i32, i32, double, double, i8*, double, double, ...) bitcast (i32 (...)* @gnuplot_light_curve to i32 (i8*, float*, float*, i32, i8*, i32, i32, double, double, i8*, double, double, ...)*)(i8* %636, float* %637, float* %638, i32 %639, i8* %640, i32 1024, i32 640, double 4.400000e-01, double 9.300000e-01, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.45, i64 0, i64 0), double %642, double %644)
%646 = call i32 (...) @gnuplot_tidy()
store i32 0, i32* %3
br label %647
647: ; preds = %616, %608, %572, %560, %539, %533, %525, %514, %496, %37
%648 = load i32, i32* %3
ret i32 %648
}

LLVM IR (-O2):
@.str = [3 x i8] c"-f\00"
@.str.1 = [11 x i8] c"--filename\00"
@.str.3 = [3 x i8] c"-m\00"
@.str.4 = [13 x i8] c"--minsamples\00"
@.str.5 = [9 x i8] c"--vscale\00"
@.str.6 = [3 x i8] c"-0\00"
@.str.7 = [6 x i8] c"--min\00"
@.str.8 = [3 x i8] c"-1\00"
@.str.9 = [6 x i8] c"--max\00"
@.str.10 = [3 x i8] c"-i\00"
@.str.11 = [7 x i8] c"--incr\00"
@.str.12 = [3 x i8] c"-p\00"
@.str.13 = [9 x i8] c"--period\00"
@.str.14 = [9 x i8] c"--maxvac\00"
@.str.15 = [8 x i8] c"--mindd\00"
@.str.16 = [7 x i8] c"--maxd\00"
@.str.17 = [3 x i8] c"-r\00"
@.str.18 = [9 x i8] c"--diprad\00"
@.str.19 = [9 x i8] c"--maxint\00"
@.str.20 = [7 x i8] c"--peak\00"
@.str.21 = [6 x i8] c"--dip\00"
@.str.22 = [3 x i8] c"-t\00"
@.str.23 = [7 x i8] c"--type\00"
@.str.24 = [5 x i8] c"wasp\00"
@.str.25 = [5 x i8] c"WASP\00"
@.str.26 = [3 x i8] c"k2\00"
@.str.27 = [3 x i8] c"K2\00"
@.str.28 = [3 x i8] c"-h\00"
@.str.29 = [7 x i8] c"--help\00"
@.str.30 = [3 x i8] c"-v\00"
@.str.31 = [10 x i8] c"--version\00"
@.str.32 = [14 x i8] c"Version %.2f\0A\00"
@.str.35 = [40 x i8] c"Maximum orbital period must be greater \00"
@.str.37 = [38 x i8] c"Number of data samples too small: %d\0A\00"
@.str.38 = [18 x i8] c"%d values loaded\0A\00"
@.str.41 = [26 x i8] c"orbital_period_days %.6f\0A\00"
@.str.42 = [7 x i8] c"%s.png\00"
@.str.43 = [13 x i8] c"%s_distr.png\00"
@.str.44 = [29 x i8] c"SuperWASP Light Curve for %s\00"
@.str.45 = [44 x i8] c"TAMUZ corrected processed flux (micro Vega)\00"
@str = [21 x i8] c"No transits detected\00"
@str.46 = [40 x i8] c"No sections detected in the time series\00"
@str.47 = [32 x i8] c"than the minimum orbital period\00"
@str.48 = [36 x i8] c"No maximum orbital period specified\00"
@str.49 = [22 x i8] c"No log file specified\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [100000 x float]
%4 = alloca [100000 x float]
%5 = alloca [100000 x i32]
%6 = alloca [256 x i8]
%7 = alloca [256 x i8]
%8 = alloca [256 x i8]
%9 = alloca [256 x i8]
%10 = alloca [256 x i8]
%11 = bitcast [100000 x float]* %3 to i8*
%12 = bitcast [100000 x float]* %4 to i8*
%13 = bitcast [100000 x i32]* %5 to i8*
%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 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%18 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%19 = icmp slt i32 %0, 2
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = tail call i32 (...) @show_help()
br label %412
22: ; preds = %2
store i8 0, i8* %14
br label %25
23: ; preds = %339
%24 = icmp slt i32 %342, %0
br i1 %24, label %25, label %345
25: ; preds = %22, %23
%26 = phi float [ %296, %23 ], [ 0x3FC99999A0000000, %22 ]
%27 = phi float [ %279, %23 ], [ 0x3FE3333340000000, %22 ]
%28 = phi float [ %245, %23 ], [ 2.000000e+00, %22 ]
%29 = phi float [ %262, %23 ], [ 1.000000e+01, %22 ]
%30 = phi float [ %225, %23 ], [ 1.500000e+01, %22 ]
%31 = phi float [ %208, %23 ], [ 0x3FD3333340000000, %22 ]
%32 = phi float [ %191, %23 ], [ 0x3F80624DE0000000, %22 ]
%33 = phi float [ %154, %23 ], [ 0x3FEBA5E360000000, %22 ]
%34 = phi float [ %94, %23 ], [ 1.000000e+00, %22 ]
%35 = phi i32 [ %328, %23 ], [ 0, %22 ]
%36 = phi float [ %174, %23 ], [ 0.000000e+00, %22 ]
%37 = phi float [ %134, %23 ], [ 0.000000e+00, %22 ]
%38 = phi float [ %114, %23 ], [ 0.000000e+00, %22 ]
%39 = phi i32 [ %77, %23 ], [ 1000, %22 ]
%40 = phi i32 [ %342, %23 ], [ 1, %22 ]
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8*, i8** %1, i64 %41
%43 = load i8*, i8** %42
%44 = call i32 @strcmp(i8* dereferenceable(1) %43, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%45 = icmp eq i32 %44, 0
br i1 %45, label %49, label %46
46: ; preds = %25
%47 = call i32 @strcmp(i8* dereferenceable(1) %43, i8* dereferenceable(11) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %57
49: ; preds = %46, %25
%50 = add nsw i32 %40, 1
%51 = icmp slt i32 %50, %0
%52 = sext i32 %50 to i64
%53 = getelementptr inbounds i8*, i8** %1, i64 %52
%54 = load i8*, i8** %53
br i1 %51, label %55, label %57
55: ; preds = %49
%56 = call i8* @strcpy(i8* %14, i8* dereferenceable(1) %54)
br label %57
57: ; preds = %49, %55, %46
%58 = phi i64 [ %52, %55 ], [ %41, %46 ], [ %52, %49 ]
%59 = phi i8* [ %54, %55 ], [ %43, %46 ], [ %54, %49 ]
%60 = phi i32 [ %50, %55 ], [ %40, %46 ], [ %50, %49 ]
%61 = call i32 @strcmp(i8* dereferenceable(1) %59, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%62 = icmp eq i32 %61, 0
br i1 %62, label %66, label %63
63: ; preds = %57
%64 = call i32 @strcmp(i8* dereferenceable(1) %59, i8* dereferenceable(13) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %74
66: ; preds = %63, %57
%67 = add nsw i32 %60, 1
%68 = icmp slt i32 %67, %0
%69 = sext i32 %67 to i64
br i1 %68, label %70, label %74
70: ; preds = %66
%71 = getelementptr inbounds i8*, i8** %1, i64 %69
%72 = load i8*, i8** %71
%73 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %72)
br label %74
74: ; preds = %66, %70, %63
%75 = phi i64 [ %69, %70 ], [ %58, %63 ], [ %69, %66 ]
%76 = phi i32 [ %67, %70 ], [ %60, %63 ], [ %67, %66 ]
%77 = phi i32 [ %73, %70 ], [ %39, %63 ], [ %39, %66 ]
%78 = getelementptr inbounds i8*, i8** %1, i64 %75
%79 = load i8*, i8** %78
%80 = call i32 @strcmp(i8* dereferenceable(1) %79, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%81 = icmp eq i32 %80, 0
br i1 %81, label %82, label %91
82: ; preds = %74
%83 = add nsw i32 %76, 1
%84 = icmp slt i32 %83, %0
%85 = sext i32 %83 to i64
br i1 %84, label %86, label %91
86: ; preds = %82
%87 = getelementptr inbounds i8*, i8** %1, i64 %85
%88 = load i8*, i8** %87
%89 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %88)
%90 = sitofp i32 %89 to float
br label %91
91: ; preds = %82, %86, %74
%92 = phi i64 [ %85, %86 ], [ %75, %74 ], [ %85, %82 ]
%93 = phi i32 [ %83, %86 ], [ %76, %74 ], [ %83, %82 ]
%94 = phi float [ %90, %86 ], [ %34, %74 ], [ %34, %82 ]
%95 = getelementptr inbounds i8*, i8** %1, i64 %92
%96 = load i8*, i8** %95
%97 = call i32 @strcmp(i8* dereferenceable(1) %96, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%98 = icmp eq i32 %97, 0
br i1 %98, label %102, label %99
99: ; preds = %91
%100 = call i32 @strcmp(i8* dereferenceable(1) %96, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%101 = icmp eq i32 %100, 0
br i1 %101, label %102, label %111
102: ; preds = %99, %91
%103 = add nsw i32 %93, 1
%104 = icmp slt i32 %103, %0
%105 = sext i32 %103 to i64
br i1 %104, label %106, label %111
106: ; preds = %102
%107 = getelementptr inbounds i8*, i8** %1, i64 %105
%108 = load i8*, i8** %107
%109 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %108)
%110 = sitofp i32 %109 to float
br label %111
111: ; preds = %102, %106, %99
%112 = phi i64 [ %105, %106 ], [ %92, %99 ], [ %105, %102 ]
%113 = phi i32 [ %103, %106 ], [ %93, %99 ], [ %103, %102 ]
%114 = phi float [ %110, %106 ], [ %38, %99 ], [ %38, %102 ]
%115 = getelementptr inbounds i8*, i8** %1, i64 %112
%116 = load i8*, i8** %115
%117 = call i32 @strcmp(i8* dereferenceable(1) %116, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%118 = icmp eq i32 %117, 0
br i1 %118, label %122, label %119
119: ; preds = %111
%120 = call i32 @strcmp(i8* dereferenceable(1) %116, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%121 = icmp eq i32 %120, 0
br i1 %121, label %122, label %131
122: ; preds = %119, %111
%123 = add nsw i32 %113, 1
%124 = icmp slt i32 %123, %0
%125 = sext i32 %123 to i64
br i1 %124, label %126, label %131
126: ; preds = %122
%127 = getelementptr inbounds i8*, i8** %1, i64 %125
%128 = load i8*, i8** %127
%129 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %128)
%130 = sitofp i32 %129 to float
br label %131
131: ; preds = %122, %126, %119
%132 = phi i64 [ %125, %126 ], [ %112, %119 ], [ %125, %122 ]
%133 = phi i32 [ %123, %126 ], [ %113, %119 ], [ %123, %122 ]
%134 = phi float [ %130, %126 ], [ %37, %119 ], [ %37, %122 ]
%135 = getelementptr inbounds i8*, i8** %1, i64 %132
%136 = load i8*, i8** %135
%137 = call i32 @strcmp(i8* dereferenceable(1) %136, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%138 = icmp eq i32 %137, 0
br i1 %138, label %142, label %139
139: ; preds = %131
%140 = call i32 @strcmp(i8* dereferenceable(1) %136, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%141 = icmp eq i32 %140, 0
br i1 %141, label %142, label %151
142: ; preds = %139, %131
%143 = add nsw i32 %133, 1
%144 = icmp slt i32 %143, %0
%145 = sext i32 %143 to i64
br i1 %144, label %146, label %151
146: ; preds = %142
%147 = getelementptr inbounds i8*, i8** %1, i64 %145
%148 = load i8*, i8** %147
%149 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %148)
%150 = sitofp i32 %149 to float
br label %151
151: ; preds = %142, %146, %139
%152 = phi i64 [ %145, %146 ], [ %132, %139 ], [ %145, %142 ]
%153 = phi i32 [ %143, %146 ], [ %133, %139 ], [ %143, %142 ]
%154 = phi float [ %150, %146 ], [ %33, %139 ], [ %33, %142 ]
%155 = getelementptr inbounds i8*, i8** %1, i64 %152
%156 = load i8*, i8** %155
%157 = call i32 @strcmp(i8* dereferenceable(1) %156, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%158 = icmp eq i32 %157, 0
br i1 %158, label %162, label %159
159: ; preds = %151
%160 = call i32 @strcmp(i8* dereferenceable(1) %156, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
%161 = icmp eq i32 %160, 0
br i1 %161, label %162, label %171
162: ; preds = %159, %151
%163 = add nsw i32 %153, 1
%164 = icmp slt i32 %163, %0
%165 = sext i32 %163 to i64
br i1 %164, label %166, label %171
166: ; preds = %162
%167 = getelementptr inbounds i8*, i8** %1, i64 %165
%168 = load i8*, i8** %167
%169 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %168)
%170 = sitofp i32 %169 to float
br label %171
171: ; preds = %162, %166, %159
%172 = phi i64 [ %165, %166 ], [ %152, %159 ], [ %165, %162 ]
%173 = phi i32 [ %163, %166 ], [ %153, %159 ], [ %163, %162 ]
%174 = phi float [ %170, %166 ], [ %36, %159 ], [ %36, %162 ]
%175 = getelementptr inbounds i8*, i8** %1, i64 %172
%176 = load i8*, i8** %175
%177 = call i32 @strcmp(i8* dereferenceable(1) %176, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
%178 = icmp eq i32 %177, 0
br i1 %178, label %179, label %188
179: ; preds = %171
%180 = add nsw i32 %173, 1
%181 = icmp slt i32 %180, %0
%182 = sext i32 %180 to i64
br i1 %181, label %183, label %188
183: ; preds = %179
%184 = getelementptr inbounds i8*, i8** %1, i64 %182
%185 = load i8*, i8** %184
%186 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %185)
%187 = sitofp i32 %186 to float
br label %188
188: ; preds = %179, %183, %171
%189 = phi i64 [ %182, %183 ], [ %172, %171 ], [ %182, %179 ]
%190 = phi i32 [ %180, %183 ], [ %173, %171 ], [ %180, %179 ]
%191 = phi float [ %187, %183 ], [ %32, %171 ], [ %32, %179 ]
%192 = getelementptr inbounds i8*, i8** %1, i64 %189
%193 = load i8*, i8** %192
%194 = call i32 @strcmp(i8* dereferenceable(1) %193, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
%195 = icmp eq i32 %194, 0
br i1 %195, label %196, label %205
196: ; preds = %188
%197 = add nsw i32 %190, 1
%198 = icmp slt i32 %197, %0
%199 = sext i32 %197 to i64
br i1 %198, label %200, label %205
200: ; preds = %196
%201 = getelementptr inbounds i8*, i8** %1, i64 %199
%202 = load i8*, i8** %201
%203 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %202)
%204 = sitofp i32 %203 to float
br label %205
205: ; preds = %196, %200, %188
%206 = phi i64 [ %199, %200 ], [ %189, %188 ], [ %199, %196 ]
%207 = phi i32 [ %197, %200 ], [ %190, %188 ], [ %197, %196 ]
%208 = phi float [ %204, %200 ], [ %31, %188 ], [ %31, %196 ]
%209 = getelementptr inbounds i8*, i8** %1, i64 %206
%210 = load i8*, i8** %209
%211 = call i32 @strcmp(i8* dereferenceable(1) %210, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
%212 = icmp eq i32 %211, 0
br i1 %212, label %213, label %222
213: ; preds = %205
%214 = add nsw i32 %207, 1
%215 = icmp slt i32 %214, %0
%216 = sext i32 %214 to i64
br i1 %215, label %217, label %222
217: ; preds = %213
%218 = getelementptr inbounds i8*, i8** %1, i64 %216
%219 = load i8*, i8** %218
%220 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %219)
%221 = sitofp i32 %220 to float
br label %222
222: ; preds = %213, %217, %205
%223 = phi i64 [ %216, %217 ], [ %206, %205 ], [ %216, %213 ]
%224 = phi i32 [ %214, %217 ], [ %207, %205 ], [ %214, %213 ]
%225 = phi float [ %221, %217 ], [ %30, %205 ], [ %30, %213 ]
%226 = getelementptr inbounds i8*, i8** %1, i64 %223
%227 = load i8*, i8** %226
%228 = call i32 @strcmp(i8* dereferenceable(1) %227, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%229 = icmp eq i32 %228, 0
br i1 %229, label %233, label %230
230: ; preds = %222
%231 = call i32 @strcmp(i8* dereferenceable(1) %227, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0))
%232 = icmp eq i32 %231, 0
br i1 %232, label %233, label %242
233: ; preds = %230, %222
%234 = add nsw i32 %224, 1
%235 = icmp slt i32 %234, %0
%236 = sext i32 %234 to i64
br i1 %235, label %237, label %242
237: ; preds = %233
%238 = getelementptr inbounds i8*, i8** %1, i64 %236
%239 = load i8*, i8** %238
%240 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %239)
%241 = sitofp i32 %240 to float
br label %242
242: ; preds = %233, %237, %230
%243 = phi i64 [ %236, %237 ], [ %223, %230 ], [ %236, %233 ]
%244 = phi i32 [ %234, %237 ], [ %224, %230 ], [ %234, %233 ]
%245 = phi float [ %241, %237 ], [ %28, %230 ], [ %28, %233 ]
%246 = getelementptr inbounds i8*, i8** %1, i64 %243
%247 = load i8*, i8** %246
%248 = call i32 @strcmp(i8* dereferenceable(1) %247, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0))
%249 = icmp eq i32 %248, 0
br i1 %249, label %250, label %259
250: ; preds = %242
%251 = add nsw i32 %244, 1
%252 = icmp slt i32 %251, %0
%253 = sext i32 %251 to i64
br i1 %252, label %254, label %259
254: ; preds = %250
%255 = getelementptr inbounds i8*, i8** %1, i64 %253
%256 = load i8*, i8** %255
%257 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %256)
%258 = sitofp i32 %257 to float
br label %259
259: ; preds = %250, %254, %242
%260 = phi i64 [ %253, %254 ], [ %243, %242 ], [ %253, %250 ]
%261 = phi i32 [ %251, %254 ], [ %244, %242 ], [ %251, %250 ]
%262 = phi float [ %258, %254 ], [ %29, %242 ], [ %29, %250 ]
%263 = getelementptr inbounds i8*, i8** %1, i64 %260
%264 = load i8*, i8** %263
%265 = call i32 @strcmp(i8* dereferenceable(1) %264, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
%266 = icmp eq i32 %265, 0
br i1 %266, label %267, label %276
267: ; preds = %259
%268 = add nsw i32 %261, 1
%269 = icmp slt i32 %268, %0
%270 = sext i32 %268 to i64
br i1 %269, label %271, label %276
271: ; preds = %267
%272 = getelementptr inbounds i8*, i8** %1, i64 %270
%273 = load i8*, i8** %272
%274 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %273)
%275 = sitofp i32 %274 to float
br label %276
276: ; preds = %267, %271, %259
%277 = phi i64 [ %270, %271 ], [ %260, %259 ], [ %270, %267 ]
%278 = phi i32 [ %268, %271 ], [ %261, %259 ], [ %268, %267 ]
%279 = phi float [ %275, %271 ], [ %27, %259 ], [ %27, %267 ]
%280 = getelementptr inbounds i8*, i8** %1, i64 %277
%281 = load i8*, i8** %280
%282 = call i32 @strcmp(i8* dereferenceable(1) %281, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0))
%283 = icmp eq i32 %282, 0
br i1 %283, label %284, label %293
284: ; preds = %276
%285 = add nsw i32 %278, 1
%286 = icmp slt i32 %285, %0
%287 = sext i32 %285 to i64
br i1 %286, label %288, label %293
288: ; preds = %284
%289 = getelementptr inbounds i8*, i8** %1, i64 %287
%290 = load i8*, i8** %289
%291 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %290)
%292 = sitofp i32 %291 to float
br label %293
293: ; preds = %284, %288, %276
%294 = phi i64 [ %287, %288 ], [ %277, %276 ], [ %287, %284 ]
%295 = phi i32 [ %285, %288 ], [ %278, %276 ], [ %285, %284 ]
%296 = phi float [ %292, %288 ], [ %26, %276 ], [ %26, %284 ]
%297 = getelementptr inbounds i8*, i8** %1, i64 %294
%298 = load i8*, i8** %297
%299 = call i32 @strcmp(i8* dereferenceable(1) %298, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
%300 = icmp eq i32 %299, 0
br i1 %300, label %304, label %301
301: ; preds = %293
%302 = call i32 @strcmp(i8* dereferenceable(1) %298, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0))
%303 = icmp eq i32 %302, 0
br i1 %303, label %304, label %325
304: ; preds = %301, %293
%305 = add nsw i32 %295, 1
%306 = icmp slt i32 %305, %0
%307 = sext i32 %305 to i64
%308 = getelementptr inbounds i8*, i8** %1, i64 %307
%309 = load i8*, i8** %308
br i1 %306, label %310, label %325
310: ; preds = %304
%311 = call i32 @strcmp(i8* dereferenceable(1) %309, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0))
%312 = icmp eq i32 %311, 0
br i1 %312, label %316, label %313
313: ; preds = %310
%314 = call i32 @strcmp(i8* dereferenceable(1) %309, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0))
%315 = icmp eq i32 %314, 0
br i1 %315, label %316, label %317
316: ; preds = %313, %310
br label %317
317: ; preds = %316, %313
%318 = phi i32 [ 0, %316 ], [ %35, %313 ]
%319 = call i32 @strcmp(i8* dereferenceable(1) %309, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0))
%320 = icmp eq i32 %319, 0
br i1 %320, label %324, label %321
321: ; preds = %317
%322 = call i32 @strcmp(i8* dereferenceable(1) %309, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i64 0, i64 0))
%323 = icmp eq i32 %322, 0
br i1 %323, label %324, label %325
324: ; preds = %321, %317
br label %325
325: ; preds = %304, %324, %321, %301
%326 = phi i8* [ %309, %324 ], [ %309, %321 ], [ %298, %301 ], [ %309, %304 ]
%327 = phi i32 [ %305, %324 ], [ %305, %321 ], [ %295, %301 ], [ %305, %304 ]
%328 = phi i32 [ 1, %324 ], [ %318, %321 ], [ %35, %301 ], [ %35, %304 ]
%329 = call i32 @strcmp(i8* dereferenceable(1) %326, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i64 0, i64 0))
%330 = icmp eq i32 %329, 0
br i1 %330, label %334, label %331
331: ; preds = %325
%332 = call i32 @strcmp(i8* dereferenceable(1) %326, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.29, i64 0, i64 0))
%333 = icmp eq i32 %332, 0
br i1 %333, label %334, label %336
334: ; preds = %331, %325
%335 = call i32 (...) @show_help()
br label %412
336: ; preds = %331
%337 = call i32 @strcmp(i8* dereferenceable(1) %326, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.30, i64 0, i64 0))
%338 = icmp eq i32 %337, 0
br i1 %338, label %343, label %339
339: ; preds = %336
%340 = call i32 @strcmp(i8* dereferenceable(1) %326, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.31, i64 0, i64 0))
%341 = icmp eq i32 %340, 0
%342 = add nsw i32 %327, 1
br i1 %341, label %343, label %23
343: ; preds = %339, %336
%344 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.32, i64 0, i64 0), double 1.000000e+00)
br label %412
345: ; preds = %23
%346 = load i8, i8* %14
%347 = icmp eq i8 %346, 0
br i1 %347, label %348, label %350
348: ; preds = %345
%349 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.49, i64 0, i64 0))
br label %412
350: ; preds = %345
%351 = fcmp oeq float %174, 0.000000e+00
br i1 %351, label %352, label %361
352: ; preds = %350
%353 = fcmp oeq float %134, 0.000000e+00
br i1 %353, label %354, label %356
354: ; preds = %352
%355 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.48, i64 0, i64 0))
br label %412
356: ; preds = %352
%357 = fcmp ugt float %134, %114
br i1 %357, label %361, label %358
358: ; preds = %356
%359 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.35, i64 0, i64 0))
%360 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.47, i64 0, i64 0))
br label %412
361: ; preds = %356, %350
%362 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @scan_name to i32 (i8*, i8*, ...)*)(i8* %14, i8* %15)
%363 = icmp eq i32 %328, 1
%364 = select i1 %363, i32 2, i32 3
%365 = icmp eq i32 %328, 0
%366 = select i1 %365, i32 3, i32 %364
%367 = getelementptr inbounds [100000 x float], [100000 x float]* %3, i64 0, i64 0
%368 = getelementptr inbounds [100000 x float], [100000 x float]* %4, i64 0, i64 0
%369 = call i32 (i8*, float*, float*, i32, i32, i32, ...) bitcast (i32 (...)* @logfile_load to i32 (i8*, float*, float*, i32, i32, i32, ...)*)(i8* %14, float* %367, float* %368, i32 100000, i32 0, i32 %366)
%370 = icmp slt i32 %369, %77
br i1 %370, label %371, label %373
371: ; preds = %361
%372 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.37, i64 0, i64 0), i32 %369)
br label %412
373: ; preds = %361
%374 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.38, i64 0, i64 0), i32 %369)
%375 = getelementptr inbounds [100000 x i32], [100000 x i32]* %5, i64 0, i64 0
%376 = call i32 (float*, i32, i32*, ...) bitcast (i32 (...)* @detect_endpoints to i32 (float*, i32, i32*, ...)*)(float* %367, i32 %369, i32* %375)
%377 = icmp eq i32 %376, 0
br i1 %377, label %378, label %380
378: ; preds = %373
%379 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.46, i64 0, i64 0))
br label %412
380: ; preds = %373
br i1 %351, label %383, label %381
381: ; preds = %380
%382 = fpext float %174 to double
br label %403
383: ; preds = %380
%384 = fpext float %114 to double
%385 = fpext float %134 to double
%386 = fdiv float %154, 8.640000e+04
%387 = fpext float %386 to double
%388 = fpext float %208 to double
%389 = fpext float %225 to double
%390 = fpext float %262 to double
%391 = fpext float %245 to double
%392 = fpext float %279 to double
%393 = fpext float %191 to double
%394 = fpext float %296 to double
%395 = call i32 (float*, float*, i32, double, double, double, double, double, double, double, double, double, double, double, ...) bitcast (i32 (...)* @detect_orbital_period to i32 (float*, float*, i32, double, double, double, double, double, double, double, double, double, double, double, ...)*)(float* %367, float* %368, i32 %369, double %384, double %385, double %387, double %388, double %389, double 2.000000e+00, double %390, double %391, double %392, double %393, double %394)
%396 = icmp eq i32 %395, 0
br i1 %396, label %397, label %399
397: ; preds = %383
%398 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
br label %412
399: ; preds = %383
%400 = sitofp i32 %395 to float
%401 = fpext float %400 to double
%402 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.41, i64 0, i64 0), double %401)
br label %403
403: ; preds = %381, %399
%404 = phi double [ %382, %381 ], [ %401, %399 ]
%405 = call i32 (i8*, i8*, ...) @sprintf(i8* %17, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.42, i64 0, i64 0), i8* %15)
%406 = call i32 (i8*, i8*, ...) @sprintf(i8* %18, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.43, i64 0, i64 0), i8* %15)
%407 = call i32 (i8*, i8*, ...) @sprintf(i8* %16, i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.44, i64 0, i64 0), i8* %15)
%408 = fpext float %94 to double
%409 = call i32 (i8*, float*, float*, i32, i8*, i32, i32, double, double, i8*, double, double, ...) bitcast (i32 (...)* @gnuplot_light_curve_distribution to i32 (i8*, float*, float*, i32, i8*, i32, i32, double, double, i8*, double, double, ...)*)(i8* %16, float* %367, float* %368, i32 %369, i8* %18, i32 1024, i32 640, double 4.400000e-01, double 9.300000e-01, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.45, i64 0, i64 0), double %404, double %408)
%410 = call i32 (i8*, float*, float*, i32, i8*, i32, i32, double, double, i8*, double, double, ...) bitcast (i32 (...)* @gnuplot_light_curve to i32 (i8*, float*, float*, i32, i8*, i32, i32, double, double, i8*, double, double, ...)*)(i8* %16, float* %367, float* %368, i32 %369, i8* %17, i32 1024, i32 640, double 4.400000e-01, double 9.300000e-01, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.45, i64 0, i64 0), double %404, double %408)
%411 = call i32 (...) @gnuplot_tidy()
br label %412
412: ; preds = %403, %397, %378, %371, %358, %354, %348, %343, %334, %20
%413 = phi i32 [ 1, %20 ], [ 0, %334 ], [ 0, %343 ], [ -1, %348 ], [ -2, %354 ], [ -3, %358 ], [ 1, %371 ], [ 2, %378 ], [ -5, %397 ], [ 0, %403 ]
ret i32 %413
}