#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
unsigned int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, double);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcmp(char const *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int main(int argc, char **argv) {
  unsigned int xintervals = 4;
  unsigned int yintervals = 4;
  unsigned int nxv = 0;
  unsigned int nyv = 0;
  unsigned int i = 1;
  char *xvalues[20];
  char *yvalues[20];
  char *xlabel = 0;
  char *ylabel = 0;
  char *name = 0;
  char name_tex[128];
  FILE *out;
  int setxv = 0;
  int setyv = 0;
  int xlabeldef = 0;
  int ylabeldef = 0;
  if (argc == 1) {
    printf("%s -n name -xi xintervals -yi yintervals -xl xlabel -yl ylabel -xv "
           "xvalues -yv yvalues\n",
           argv[0]);
    exit(1);
  }
  while (i < argc) {
    const char *arg = (argv[i++]);
    if (!strcmp(arg, "-n")) {
      setxv = 0;
      setyv = 0;
      name = argv[i++];
    } else if (!strcmp(arg, "-xi")) {
      setxv = 0;
      setyv = 0;
      xintervals = (atoi(argv[i++]));
    } else if (!strcmp(arg, "-yi")) {
      setxv = 0;
      setyv = 0;
      yintervals = (atoi(argv[i]));
    } else if (!strcmp(arg, "-xl")) {
      setxv = 0;
      setyv = 0;
      xlabel = (argv[i++]);
      xlabeldef = 1;
    } else if (!strcmp(arg, "-yl")) {
      setxv = 0;
      setyv = 0;
      ylabel = (argv[i]);
      ylabeldef = 1;
    } else if (!strcmp(arg, "-xv")) {
      setxv = 1;
      setyv = 0;
    } else if (!strcmp(arg, "-yv")) {
      setxv = 0;
      setyv = 1;
    } else if (setyv)
      (yvalues[nyv++]) = (argv[i++]);
    else if (setxv)
      (xvalues[nxv++]) = (argv[i++]);
  }
  strcpy(name_tex, name);
  strcat(name_tex, ".tex");
  out = fopen(name_tex, "w");
  {
    double x, y, dx, dy;
    double border = 30;
    double label_edge = -5.0;
    double x_size, y_size, x_size_1, y_size_1, x_total, y_total;
    double x_interval, y_interval, t_size = 5.0;
    int x_tics, y_tics;
    char x_size_str[128], y_size_str[128], x_bit_str[128], y_bit_str[128];
    x_size = 1024 * 0.2409;
    x_size_1 = x_size + 1.0;
    y_size = 1024 * 0.2409;
    y_size_1 = y_size + 1.0;
    x_total = x_size_1 + border + border;
    y_total = y_size_1 + border + border;
    x_interval = x_size_1 / ((double)xintervals);
    y_interval = y_size_1 / ((double)yintervals);
    x_tics = xintervals - 1;
    y_tics = yintervals - 1;
    sprintf(x_size_str, "%f", x_size);
    sprintf(y_size_str, "%f", y_size);
    sprintf(x_bit_str, "%f", ((double)1024));
    sprintf(y_bit_str, "%f", ((double)1024));
    fprintf(out, "\\setlength{\\unitlength}{1pt}\n");
    fprintf(out, "\\begin{picture}( %f , %f )( %f , %f )\n", x_total, y_total,
            -border, -border);
    if (nxv > 2) {
      dx = x_size_1 / ((double)(nxv - 1));
      x = 0.0;
      fprintf(out, "  \\putmbox { %f , %f }{ %s }{ $%s$ }\n", x, label_edge,
              "tl", xvalues[0]);
      for (i = 1; i < nxv - 1; i++) {
        x += dx;
        fprintf(out, "  \\putmbox { %f , %f }{ %s }{ $%s$ }\n", x, label_edge,
                "t", xvalues[i]);
      }
      fprintf(out, "  \\putmbox { %f , %f }{ %s }{ $%s$ }\n", x_size_1,
              label_edge, "tr", xvalues[nxv - 1]);
    }
    if (nyv > 2) {
      dy = y_size_1 / ((double)(nyv - 1));
      y = 0.0;
      fprintf(out, "  \\putmbox { %f , %f }{ %s }{ $%s$ }\n", label_edge, y,
              "br", yvalues[0]);
      for (i = 1; i < nyv - 1; i++) {
        y += dy;
        fprintf(out, "  \\putmbox { %f , %f }{ %s }{ $%s$ }\n", label_edge, y,
                "r", yvalues[i]);
      }
      fprintf(out, "  \\putmbox { %f , %f }{ %s }{ $%s$ }\n", label_edge,
              y_size_1, "tr", yvalues[nyv - 1]);
    }
    if (xlabeldef == 1)
      fprintf(out, "  \\putmbox { %f , %f }{ %s }{ $%s$ }\n", 0.5 * x_size_1,
              -0.5 * border, "t", xlabel);
    if (ylabeldef == 1)
      fprintf(out, "  \\putmbox { %f , %f }{ %s }{ $%s$ }\n", -border,
              0.5 * y_size_1, "r", ylabel);
    fprintf(out, "  \\special{psfile=%s.ps}\n", name);
    fprintf(out, "  \\put(0,0){\\framebox ( %f , %f ) {}}\n", x_size_1,
            y_size_1);
    fprintf(out, "  \\multiput(%f,%f)(%f,%f){%d}{\\line%s{%f}}\n", x_interval,
            0.0, x_interval, 0.0, x_tics, "(0,1)", t_size);
    fprintf(out, "  \\multiput(%f,%f)(%f,%f){%d}{\\line%s{%f}}\n", x_interval,
            y_size_1, x_interval, 0.0, x_tics, "(0,-1)", t_size);
    fprintf(out, "  \\multiput(%f,%f)(%f,%f){%d}{\\line%s{%f}}\n", 0.0,
            y_interval, 0.0, y_interval, y_tics, "(1,0)", t_size);
    fprintf(out, "  \\multiput(%f,%f)(%f,%f){%d}{\\line%s{%f}}\n", x_size_1,
            y_interval, 0.0, y_interval, y_tics, "(-1,0)", t_size);
    fprintf(out, "\\end{picture}\n");
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4c0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x4,-0x14(%rbp)
movl   $0x4,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x1,-0x24(%rbp)
movq   $0x0,-0x178(%rbp)
movq   $0x0,-0x180(%rbp)
movq   $0x0,-0x188(%rbp)
movl   $0x0,-0x21c(%rbp)
movl   $0x0,-0x220(%rbp)
movl   $0x0,-0x224(%rbp)
movl   $0x0,-0x228(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    123c <main+0xac>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xdf3(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
jmp    1241 <main+0xb1>
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    150a <main+0x37a>
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x230(%rbp)
mov    -0x230(%rbp),%rdi
lea    0xe01(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    12ba <main+0x12a>
movl   $0x0,-0x21c(%rbp)
movl   $0x0,-0x220(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x188(%rbp)
jmp    1505 <main+0x375>
mov    -0x230(%rbp),%rdi
lea    0xdb3(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    130c <main+0x17c>
movl   $0x0,-0x21c(%rbp)
movl   $0x0,-0x220(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x14(%rbp)
jmp    1500 <main+0x370>
mov    -0x230(%rbp),%rdi
lea    0xd65(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1354 <main+0x1c4>
movl   $0x0,-0x21c(%rbp)
movl   $0x0,-0x220(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x18(%rbp)
jmp    14fb <main+0x36b>
mov    -0x230(%rbp),%rdi
lea    0xd21(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    13af <main+0x21f>
movl   $0x0,-0x21c(%rbp)
movl   $0x0,-0x220(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x178(%rbp)
movl   $0x1,-0x224(%rbp)
jmp    14f6 <main+0x366>
mov    -0x230(%rbp),%rdi
lea    0xcca(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1400 <main+0x270>
movl   $0x0,-0x21c(%rbp)
movl   $0x0,-0x220(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x180(%rbp)
movl   $0x1,-0x228(%rbp)
jmp    14f1 <main+0x361>
mov    -0x230(%rbp),%rdi
lea    0xc7d(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1435 <main+0x2a5>
movl   $0x1,-0x21c(%rbp)
movl   $0x0,-0x220(%rbp)
jmp    14ec <main+0x35c>
mov    -0x230(%rbp),%rdi
lea    0xc4c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    146a <main+0x2da>
movl   $0x0,-0x21c(%rbp)
movl   $0x1,-0x220(%rbp)
jmp    14e7 <main+0x357>
cmpl   $0x0,-0x220(%rbp)
je     14a6 <main+0x316>
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rcx
mov    -0x20(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x20(%rbp)
mov    %eax,%eax
mov    %rcx,-0x170(%rbp,%rax,8)
ff
jmp    14e2 <main+0x352>
cmpl   $0x0,-0x21c(%rbp)
je     14dd <main+0x34d>
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rcx
mov    -0x1c(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x1c(%rbp)
mov    %eax,%eax
mov    %rcx,-0xd0(%rbp,%rax,8)
ff
jmp    14e2 <main+0x352>
jmp    14e7 <main+0x357>
jmp    14ec <main+0x35c>
jmp    14f1 <main+0x361>
jmp    14f6 <main+0x366>
jmp    14fb <main+0x36b>
jmp    1500 <main+0x370>
jmp    1505 <main+0x375>
jmp    1241 <main+0xb1>
mov    -0x188(%rbp),%rsi
lea    -0x210(%rbp),%rdi
mov    %rdi,-0x4b8(%rbp)
call   1030 <strcpy@plt>
mov    -0x4b8(%rbp),%rdi
lea    0xb61(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x4b8(%rbp),%rdi
lea    0xb53(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x218(%rbp)
movabs $0x403e000000000000,%rax
mov    %rax,-0x258(%rbp)
movabs $0xc014000000000000,%rax
mov    %rax,-0x260(%rbp)
movabs $0x4014000000000000,%rax
mov    %rax,-0x2a8(%rbp)
movabs $0x406ed5cfaacd9e84,%rax
d5 6e 40
mov    %rax,-0x268(%rbp)
movsd  -0x268(%rbp),%xmm0
ff
movsd  0xa63(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x278(%rbp)
ff
mov    %rax,-0x270(%rbp)
movsd  -0x270(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x280(%rbp)
ff
movsd  -0x278(%rbp),%xmm0
ff
movsd  -0x258(%rbp),%xmm1
ff
addsd  %xmm1,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x288(%rbp)
ff
movsd  -0x280(%rbp),%xmm0
ff
movsd  -0x258(%rbp),%xmm1
ff
addsd  %xmm1,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x290(%rbp)
ff
movsd  -0x278(%rbp),%xmm0
ff
mov    -0x14(%rbp),%eax
cvtsi2sd %rax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x298(%rbp)
ff
movsd  -0x280(%rbp),%xmm0
ff
mov    -0x18(%rbp),%eax
cvtsi2sd %rax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x2a0(%rbp)
ff
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x2ac(%rbp)
mov    -0x18(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x2b0(%rbp)
lea    -0x330(%rbp),%rdi
movsd  -0x268(%rbp),%xmm0
ff
lea    0xa28(%rip),%rsi
call   10a0 <sprintf@plt>
lea    -0x3b0(%rbp),%rdi
movsd  -0x270(%rbp),%xmm0
ff
lea    0xa0d(%rip),%rsi
call   10a0 <sprintf@plt>
lea    -0x430(%rbp),%rdi
lea    0x9fa(%rip),%rsi
movsd  0x958(%rip),%xmm0
call   10a0 <sprintf@plt>
lea    -0x4b0(%rbp),%rdi
lea    0x9df(%rip),%rsi
movsd  0x93d(%rip),%xmm0
call   10a0 <sprintf@plt>
mov    -0x218(%rbp),%rdi
lea    0x9c7(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x218(%rbp),%rdi
movsd  -0x288(%rbp),%xmm0
ff
movsd  -0x290(%rbp),%xmm1
ff
movsd  -0x258(%rbp),%xmm2
ff
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
movsd  -0x258(%rbp),%xmm3
ff
movq   %xmm3,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm3
lea    0x982(%rip),%rsi
mov    $0x4,%al
call   1060 <fprintf@plt>
cmpl   $0x2,-0x1c(%rbp)
jbe    1858 <main+0x6c8>
movsd  -0x278(%rbp),%xmm0
ff
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
cvtsi2sd %rax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x248(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x238(%rbp)
ff
mov    -0x218(%rbp),%rdi
movsd  -0x238(%rbp),%xmm0
ff
movsd  -0x260(%rbp),%xmm1
ff
mov    -0xd0(%rbp),%rcx
lea    0x949(%rip),%rsi
lea    0x968(%rip),%rdx
mov    $0x2,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jae    181c <main+0x68c>
movsd  -0x248(%rbp),%xmm0
ff
addsd  -0x238(%rbp),%xmm0
ff
movsd  %xmm0,-0x238(%rbp)
ff
mov    -0x218(%rbp),%rdi
movsd  -0x238(%rbp),%xmm0
ff
movsd  -0x260(%rbp),%xmm1
ff
mov    -0x24(%rbp),%eax
mov    -0xd0(%rbp,%rax,8),%rcx
ff
lea    0x8e2(%rip),%rsi
lea    0x904(%rip),%rdx
mov    $0x2,%al
call   1060 <fprintf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    17ae <main+0x61e>
mov    -0x218(%rbp),%rdi
movsd  -0x278(%rbp),%xmm0
ff
movsd  -0x260(%rbp),%xmm1
ff
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,%eax
mov    -0xd0(%rbp,%rax,8),%rcx
ff
lea    0x898(%rip),%rsi
lea    0x8bc(%rip),%rdx
mov    $0x2,%al
call   1060 <fprintf@plt>
cmpl   $0x2,-0x20(%rbp)
jbe    1970 <main+0x7e0>
movsd  -0x280(%rbp),%xmm0
ff
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
cvtsi2sd %rax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x250(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x240(%rbp)
ff
mov    -0x218(%rbp),%rdi
movsd  -0x260(%rbp),%xmm0
ff
movsd  -0x240(%rbp),%xmm1
ff
mov    -0x170(%rbp),%rcx
lea    0x831(%rip),%rsi
lea    0x858(%rip),%rdx
mov    $0x2,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jae    1934 <main+0x7a4>
movsd  -0x250(%rbp),%xmm0
ff
addsd  -0x240(%rbp),%xmm0
ff
movsd  %xmm0,-0x240(%rbp)
ff
mov    -0x218(%rbp),%rdi
movsd  -0x260(%rbp),%xmm0
ff
movsd  -0x240(%rbp),%xmm1
ff
mov    -0x24(%rbp),%eax
mov    -0x170(%rbp,%rax,8),%rcx
ff
lea    0x7ca(%rip),%rsi
lea    0x7f2(%rip),%rdx
mov    $0x2,%al
call   1060 <fprintf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    18c6 <main+0x736>
mov    -0x218(%rbp),%rdi
movsd  -0x260(%rbp),%xmm0
ff
movsd  -0x280(%rbp),%xmm1
ff
mov    -0x20(%rbp),%eax
sub    $0x1,%eax
mov    %eax,%eax
mov    -0x170(%rbp,%rax,8),%rcx
ff
lea    0x780(%rip),%rsi
lea    0x7a4(%rip),%rdx
mov    $0x2,%al
call   1060 <fprintf@plt>
cmpl   $0x1,-0x224(%rbp)
jne    19c0 <main+0x830>
mov    -0x218(%rbp),%rdi
movsd  0x68c(%rip),%xmm0
mulsd  -0x278(%rbp),%xmm0
ff
movsd  0x674(%rip),%xmm1
mulsd  -0x258(%rbp),%xmm1
ff
mov    -0x178(%rbp),%rcx
lea    0x730(%rip),%rsi
lea    0x752(%rip),%rdx
mov    $0x2,%al
call   1060 <fprintf@plt>
cmpl   $0x1,-0x228(%rbp)
jne    1a1f <main+0x88f>
mov    -0x218(%rbp),%rdi
movsd  -0x258(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0x61d(%rip),%xmm1
mulsd  -0x280(%rbp),%xmm1
ff
mov    -0x180(%rbp),%rcx
lea    0x6d1(%rip),%rsi
lea    0x6f9(%rip),%rdx
mov    $0x2,%al
call   1060 <fprintf@plt>
mov    -0x218(%rbp),%rdi
mov    -0x188(%rbp),%rdx
lea    0x6df(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x218(%rbp),%rdi
movsd  -0x278(%rbp),%xmm0
ff
movsd  -0x280(%rbp),%xmm1
ff
lea    0x6d4(%rip),%rsi
mov    $0x2,%al
call   1060 <fprintf@plt>
mov    -0x218(%rbp),%rdi
movsd  -0x298(%rbp),%xmm0
ff
movsd  -0x298(%rbp),%xmm2
ff
mov    -0x2ac(%rbp),%edx
movsd  -0x2a8(%rbp),%xmm4
ff
lea    0x6c8(%rip),%rsi
xorps  %xmm3,%xmm3
lea    0x6ea(%rip),%rcx
movaps %xmm3,%xmm1
mov    $0x5,%al
call   1060 <fprintf@plt>
mov    -0x218(%rbp),%rdi
movsd  -0x298(%rbp),%xmm0
ff
movsd  -0x280(%rbp),%xmm1
ff
movsd  -0x298(%rbp),%xmm2
ff
mov    -0x2ac(%rbp),%edx
movsd  -0x2a8(%rbp),%xmm4
ff
lea    0x680(%rip),%rsi
xorps  %xmm3,%xmm3
lea    0x6a8(%rip),%rcx
mov    $0x5,%al
call   1060 <fprintf@plt>
mov    -0x218(%rbp),%rdi
movsd  -0x2a0(%rbp),%xmm1
ff
movsd  -0x2a0(%rbp),%xmm3
ff
mov    -0x2b0(%rbp),%edx
movsd  -0x2a8(%rbp),%xmm4
ff
lea    0x643(%rip),%rsi
xorps  %xmm2,%xmm2
lea    0x672(%rip),%rcx
movaps %xmm2,%xmm0
mov    $0x5,%al
call   1060 <fprintf@plt>
mov    -0x218(%rbp),%rdi
movsd  -0x278(%rbp),%xmm0
ff
movsd  -0x2a0(%rbp),%xmm1
ff
movsd  -0x2a0(%rbp),%xmm3
ff
mov    -0x2b0(%rbp),%edx
movsd  -0x2a8(%rbp),%xmm4
ff
lea    0x5fb(%rip),%rsi
xorps  %xmm2,%xmm2
lea    0x630(%rip),%rcx
mov    $0x5,%al
call   1060 <fprintf@plt>
mov    -0x218(%rbp),%rdi
lea    0x622(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
xor    %eax,%eax
add    $0x4c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x418,%rsp
mov    %edi,%r14d
test   %edi,%edi
je     13e4 <main+0x244>
mov    %rsi,%r15
cmp    $0x1,%r14d
je     18ab <main+0x70b>
mov    $0x1,%r12d
xor    %eax,%eax
mov    %rax,0x10(%rsp)
movl   $0x4,0x1c(%rsp)
movl   $0x4,0x18(%rsp)
xor    %eax,%eax
mov    %rax,0x28(%rsp)
xor    %eax,%eax
mov    %rax,0x40(%rsp)
xor    %eax,%eax
mov    %rax,0x38(%rsp)
xor    %eax,%eax
mov    %rax,0x30(%rsp)
movl   $0x0,0x8(%rsp)
xor    %ebx,%ebx
movl   $0x0,0x24(%rsp)
movl   $0x0,0x20(%rsp)
jmp    1245 <main+0xa5>
mov    %ebp,%eax
mov    (%r15,%rax,8),%rdi
call   1080 <atoi@plt>
mov    %eax,0x18(%rsp)
xor    %ecx,%ecx
movl   $0x0,0x8(%rsp)
mov    %ebp,%r12d
mov    %ecx,%ebx
cmp    %r14d,%ebp
jae    1420 <main+0x280>
lea    0x1(%r12),%ebp
mov    %r12d,%eax
mov    (%r15,%rax,8),%r13
mov    %r13,%rdi
lea    0xe45(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     1320 <main+0x180>
mov    %r13,%rdi
lea    0xe31(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     1340 <main+0x1a0>
mov    %r13,%rdi
lea    0xe1e(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     121e <main+0x7e>
mov    %r13,%rdi
lea    0xe0f(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     1365 <main+0x1c5>
mov    %r13,%rdi
lea    0xdfc(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     1380 <main+0x1e0>
mov    %r13,%rdi
lea    0xde9(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     139a <main+0x1fa>
mov    %r13,%rdi
lea    0xdd6(%rip),%rsi
call   1050 <strcmp@plt>
mov    $0x1,%ecx
test   %eax,%eax
je     122f <main+0x8f>
test   %ebx,%ebx
je     13a9 <main+0x209>
add    $0x2,%r12d
mov    %ebp,%eax
mov    (%r15,%rax,8),%rax
mov    0x28(%rsp),%rsi
mov    %esi,%edx
add    $0x1,%esi
mov    %rsi,0x28(%rsp)
mov    %rax,0x50(%rsp,%rdx,8)
jmp    135d <main+0x1bd>
nopl   0x0(%rax,%rax,1)
add    $0x2,%r12d
mov    %ebp,%eax
mov    (%r15,%rax,8),%rax
mov    %rax,0x30(%rsp)
jmp    1353 <main+0x1b3>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x2,%r12d
mov    %ebp,%eax
mov    (%r15,%rax,8),%rdi
call   1080 <atoi@plt>
mov    %eax,0x1c(%rsp)
xor    %ecx,%ecx
movl   $0x0,0x8(%rsp)
mov    %r12d,%ebp
jmp    1237 <main+0x97>
add    $0x2,%r12d
mov    %ebp,%eax
mov    (%r15,%rax,8),%rax
mov    %rax,0x40(%rsp)
xor    %ecx,%ecx
movl   $0x1,0x24(%rsp)
jmp    1355 <main+0x1b5>
mov    %ebp,%eax
mov    (%r15,%rax,8),%rax
mov    %rax,0x38(%rsp)
xor    %ecx,%ecx
movl   $0x1,0x20(%rsp)
jmp    122f <main+0x8f>
movl   $0x1,0x8(%rsp)
xor    %ecx,%ecx
jmp    1237 <main+0x97>
xor    %ecx,%ecx
cmpl   $0x0,0x8(%rsp)
je     122f <main+0x8f>
add    $0x2,%r12d
mov    %ebp,%eax
mov    (%r15,%rax,8),%rax
mov    0x10(%rsp),%rsi
mov    %esi,%edx
add    $0x1,%esi
mov    %rsi,0x10(%rsp)
mov    %rax,0xf0(%rsp,%rdx,8)
movl   $0x1,0x8(%rsp)
jmp    135d <main+0x1bd>
movl   $0x4,0x18(%rsp)
xor    %eax,%eax
mov    %rax,0x30(%rsp)
mov    %r14d,0x20(%rsp)
mov    %r14d,0x24(%rsp)
xor    %eax,%eax
mov    %rax,0x38(%rsp)
xor    %eax,%eax
mov    %rax,0x40(%rsp)
mov    %r14d,%eax
mov    %rax,0x28(%rsp)
mov    %rax,0x10(%rsp)
movl   $0x4,0x1c(%rsp)
lea    0x390(%rsp),%rbx
mov    %rbx,%rdi
mov    0x30(%rsp),%rsi
call   1030 <strcpy@plt>
lea    0xc7f(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcat@plt>
lea    0xc75(%rip),%rsi
mov    %rbx,%rdi
call   1070 <fopen@plt>
mov    %rax,%r14
mov    0x1c(%rsp),%eax
mov    %rax,0x48(%rsp)
mov    0x18(%rsp),%r12d
lea    0xc57(%rip),%rbx
lea    0x310(%rsp),%rdi
movsd  0xb8d(%rip),%xmm0
mov    %rbx,%rsi
call   10a0 <sprintf@plt>
lea    0x290(%rsp),%rdi
mov    %rbx,%rsi
movsd  0xb72(%rip),%xmm0
call   10a0 <sprintf@plt>
lea    0x210(%rsp),%rdi
movsd  0xb65(%rip),%xmm0
mov    %rbx,%rsi
call   10a0 <sprintf@plt>
lea    0x190(%rsp),%rdi
mov    %rbx,%rsi
movsd  0xb4a(%rip),%xmm0
call   10a0 <sprintf@plt>
lea    0xbf3(%rip),%rdi
mov    $0x1,%ebp
mov    $0x1d,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10c0 <fwrite@plt>
lea    0xbf3(%rip),%rsi
movsd  0xb20(%rip),%xmm0
movsd  0xb20(%rip),%xmm2
mov    %r14,%rdi
movaps %xmm0,%xmm1
movaps %xmm2,%xmm3
mov    $0x4,%al
call   1060 <fprintf@plt>
mov    0x10(%rsp),%rbx
cmp    $0x3,%ebx
jb     15eb <main+0x44b>
add    $0xffffffff,%ebx
xorps  %xmm0,%xmm0
cvtsi2sd %rbx,%xmm0
movsd  0xacf(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
mov    0xf0(%rsp),%rcx
lea    0xbc0(%rip),%r13
lea    0xbdf(%rip),%rdx
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xac5(%rip),%xmm1
xorpd  %xmm0,%xmm0
mov    %r14,%rdi
mov    %r13,%rsi
mov    $0x2,%al
call   1060 <fprintf@plt>
lea    0xbb8(%rip),%r15
nopl   0x0(%rax,%rax,1)
movsd  0x8(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
mov    0xf0(%rsp,%rbp,8),%rcx
mov    %r14,%rdi
mov    %r13,%rsi
movsd  %xmm0,0x8(%rsp)
movsd  0xa80(%rip),%xmm1
mov    %r15,%rdx
mov    $0x2,%al
call   1060 <fprintf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1580 <main+0x3e0>
mov    0xf0(%rsp,%rbx,8),%rcx
lea    0xb40(%rip),%rsi
lea    0xb64(%rip),%rdx
movsd  0xa27(%rip),%xmm0
movsd  0xa47(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1060 <fprintf@plt>
mov    0x28(%rsp),%r15
cmp    $0x3,%r15d
jb     16c5 <main+0x525>
add    $0xffffffff,%r15d
xorps  %xmm0,%xmm0
cvtsi2sd %r15,%xmm0
movsd  0x9f2(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
mov    0x50(%rsp),%rcx
lea    0xae6(%rip),%r13
lea    0xb0d(%rip),%rdx
movsd  0x9f5(%rip),%xmm0
xorpd  %xmm1,%xmm1
movsd  %xmm1,0x8(%rsp)
xorpd  %xmm1,%xmm1
mov    %r14,%rdi
mov    %r13,%rsi
mov    $0x2,%al
call   1060 <fprintf@plt>
mov    $0x1,%ebp
lea    0xadf(%rip),%rbx
nopw   0x0(%rax,%rax,1)
movsd  0x8(%rsp),%xmm1
addsd  0x10(%rsp),%xmm1
mov    0x50(%rsp,%rbp,8),%rcx
mov    %r14,%rdi
mov    %r13,%rsi
movsd  0x9a9(%rip),%xmm0
movsd  %xmm1,0x8(%rsp)
mov    %rbx,%rdx
mov    $0x2,%al
call   1060 <fprintf@plt>
add    $0x1,%rbp
cmp    %rbp,%r15
jne    1660 <main+0x4c0>
mov    0x50(%rsp,%r15,8),%rcx
lea    0xa66(%rip),%rsi
lea    0xa8a(%rip),%rdx
movsd  0x975(%rip),%xmm0
movsd  0x945(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1060 <fprintf@plt>
xorps  %xmm3,%xmm3
cvtsi2sdq 0x48(%rsp),%xmm3
xorps  %xmm2,%xmm2
cvtsi2sd %r12,%xmm2
cmpl   $0x1,0x24(%rsp)
mov    0x18(%rsp),%ebx
jne    1727 <main+0x587>
lea    0xa21(%rip),%rsi
lea    0xa43(%rip),%rdx
movsd  0x938(%rip),%xmm0
movsd  0x938(%rip),%xmm1
mov    %r14,%rdi
mov    0x40(%rsp),%rcx
mov    $0x2,%al
movsd  %xmm2,0x8(%rsp)
movsd  %xmm3,0x10(%rsp)
call   1060 <fprintf@plt>
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
movsd  0x8d1(%rip),%xmm0
movapd %xmm0,%xmm1
divsd  %xmm3,%xmm1
movsd  %xmm1,0x10(%rsp)
divsd  %xmm2,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    0x1c(%rsp),%ebp
add    $0xffffffff,%ebp
add    $0xffffffff,%ebx
cmpl   $0x1,0x20(%rsp)
jne    1785 <main+0x5e5>
lea    0x9ab(%rip),%rsi
lea    0x9d3(%rip),%rdx
movsd  0x8b2(%rip),%xmm0
movsd  0x8ba(%rip),%xmm1
mov    %r14,%rdi
mov    0x38(%rsp),%rcx
mov    $0x2,%al
call   1060 <fprintf@plt>
lea    0x9af(%rip),%rsi
mov    %r14,%rdi
mov    0x30(%rsp),%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x9b3(%rip),%rsi
movsd  0x856(%rip),%xmm0
mov    %r14,%rdi
movaps %xmm0,%xmm1
mov    $0x2,%al
call   1060 <fprintf@plt>
lea    0x9be(%rip),%r15
lea    0x9e3(%rip),%rcx
movsd  0x873(%rip),%xmm4
xorps  %xmm1,%xmm1
xorpd  %xmm3,%xmm3
mov    %r14,%rdi
mov    %r15,%rsi
movsd  0x10(%rsp),%xmm0
movaps %xmm0,%xmm2
mov    %ebp,%edx
mov    $0x5,%al
call   1060 <fprintf@plt>
lea    0x9bb(%rip),%rcx
xorpd  %xmm3,%xmm3
mov    %r14,%rdi
mov    %r15,%rsi
movsd  0x10(%rsp),%xmm0
movsd  0x7f5(%rip),%xmm1
movaps %xmm0,%xmm2
mov    %ebp,%edx
movsd  0x828(%rip),%xmm4
mov    $0x5,%al
call   1060 <fprintf@plt>
lea    0x98f(%rip),%rcx
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
mov    %r14,%rdi
mov    %r15,%rsi
movsd  0x8(%rsp),%xmm1
movaps %xmm1,%xmm3
mov    %ebx,%edx
movsd  0x7fb(%rip),%xmm4
mov    $0x5,%al
call   1060 <fprintf@plt>
lea    0x968(%rip),%rcx
xorps  %xmm2,%xmm2
mov    %r14,%rdi
mov    %r15,%rsi
movsd  0x79c(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
movaps %xmm1,%xmm3
mov    %ebx,%edx
movsd  0x7c9(%rip),%xmm4
mov    $0x5,%al
call   1060 <fprintf@plt>
lea    0x93d(%rip),%rdi
mov    $0xe,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10c0 <fwrite@plt>
xor    %eax,%eax
add    $0x418,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%r15),%rsi
lea    0x793(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [88 x i8] c"%s -n name -xi xintervals -yi yintervals -xl xlabel -yl ylabel -xv xvalues -yv yvalues\0A\00"
@.str.1 = [3 x i8] c"-n\00"
@.str.2 = [4 x i8] c"-xi\00"
@.str.3 = [4 x i8] c"-yi\00"
@.str.4 = [4 x i8] c"-xl\00"
@.str.5 = [4 x i8] c"-yl\00"
@.str.6 = [4 x i8] c"-xv\00"
@.str.7 = [4 x i8] c"-yv\00"
@.str.8 = [5 x i8] c".tex\00"
@.str.9 = [2 x i8] c"w\00"
@.str.10 = [3 x i8] c"%f\00"
@.str.11 = [30 x i8] c"\\setlength{\\unitlength}{1pt}\0A\00"
@.str.12 = [39 x i8] c"\\begin{picture}( %f , %f )( %f , %f )\0A\00"
@.str.13 = [38 x i8] c" \\putmbox { %f , %f }{ %s }{ $%s$ }\0A\00"
@.str.14 = [3 x i8] c"tl\00"
@.str.15 = [2 x i8] c"t\00"
@.str.16 = [3 x i8] c"tr\00"
@.str.17 = [3 x i8] c"br\00"
@.str.18 = [2 x i8] c"r\00"
@.str.19 = [26 x i8] c" \\special{psfile=%s.ps}\0A\00"
@.str.20 = [39 x i8] c" \\put(0,0){\\framebox ( %f , %f ) {}}\0A\00"
@.str.21 = [44 x i8] c" \\multiput(%f,%f)(%f,%f){%d}{\\line%s{%f}}\0A\00"
@.str.22 = [6 x i8] c"(0,1)\00"
@.str.23 = [7 x i8] c"(0,-1)\00"
@.str.24 = [6 x i8] c"(1,0)\00"
@.str.25 = [7 x i8] c"(-1,0)\00"
@.str.26 = [15 x i8] c"\\end{picture}\0A\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 i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [20 x i8*]
%12 = alloca [20 x i8*]
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca [128 x i8]
%17 = alloca i32*
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i8*
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
%34 = alloca double
%35 = alloca double
%36 = alloca double
%37 = alloca double
%38 = alloca i32
%39 = alloca i32
%40 = alloca [128 x i8]
%41 = alloca [128 x i8]
%42 = alloca [128 x i8]
%43 = alloca [128 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 4, i32* %6
store i32 4, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 1, i32* %10
store i8* null, i8** %13
store i8* null, i8** %14
store i8* null, i8** %15
store i32 0, i32* %18
store i32 0, i32* %19
store i32 0, i32* %20
store i32 0, i32* %21
%44 = load i32, i32* %4
%45 = icmp eq i32 %44, 1
br i1 %45, label %46, label %52
46: ; preds = %2
%47 = load i8**, i8*** %5
%48 = getelementptr inbounds i8*, i8** %47, i64 0
%49 = load i8*, i8** %48
%50 = call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str, i64 0, i64 0), i8* %49)
%51 = call i32 @exit(i32 1)
unreachable
52: ; preds = %2
br label %53
53: ; preds = %164, %52
%54 = load i32, i32* %10
%55 = load i32, i32* %4
%56 = icmp ult i32 %54, %55
br i1 %56, label %57, label %165
57: ; preds = %53
%58 = load i8**, i8*** %5
%59 = load i32, i32* %10
%60 = add i32 %59, 1
store i32 %60, i32* %10
%61 = zext i32 %59 to i64
%62 = getelementptr inbounds i8*, i8** %58, i64 %61
%63 = load i8*, i8** %62
store i8* %63, i8** %22
%64 = load i8*, i8** %22
%65 = call i32 @strcmp(i8* %64, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%66 = icmp ne i32 %65, 0
br i1 %66, label %74, label %67
67: ; preds = %57
store i32 0, i32* %18
store i32 0, i32* %19
%68 = load i8**, i8*** %5
%69 = load i32, i32* %10
%70 = add i32 %69, 1
store i32 %70, i32* %10
%71 = zext i32 %69 to i64
%72 = getelementptr inbounds i8*, i8** %68, i64 %71
%73 = load i8*, i8** %72
store i8* %73, i8** %15
br label %164
74: ; preds = %57
%75 = load i8*, i8** %22
%76 = call i32 @strcmp(i8* %75, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%77 = icmp ne i32 %76, 0
br i1 %77, label %86, label %78
78: ; preds = %74
store i32 0, i32* %18
store i32 0, i32* %19
%79 = load i8**, i8*** %5
%80 = load i32, i32* %10
%81 = add i32 %80, 1
store i32 %81, i32* %10
%82 = zext i32 %80 to i64
%83 = getelementptr inbounds i8*, i8** %79, i64 %82
%84 = load i8*, i8** %83
%85 = call i32 @atoi(i8* %84)
store i32 %85, i32* %6
br label %163
86: ; preds = %74
%87 = load i8*, i8** %22
%88 = call i32 @strcmp(i8* %87, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%89 = icmp ne i32 %88, 0
br i1 %89, label %97, label %90
90: ; preds = %86
store i32 0, i32* %18
store i32 0, i32* %19
%91 = load i8**, i8*** %5
%92 = load i32, i32* %10
%93 = zext i32 %92 to i64
%94 = getelementptr inbounds i8*, i8** %91, i64 %93
%95 = load i8*, i8** %94
%96 = call i32 @atoi(i8* %95)
store i32 %96, i32* %7
br label %162
97: ; preds = %86
%98 = load i8*, i8** %22
%99 = call i32 @strcmp(i8* %98, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%100 = icmp ne i32 %99, 0
br i1 %100, label %108, label %101
101: ; preds = %97
store i32 0, i32* %18
store i32 0, i32* %19
%102 = load i8**, i8*** %5
%103 = load i32, i32* %10
%104 = add i32 %103, 1
store i32 %104, i32* %10
%105 = zext i32 %103 to i64
%106 = getelementptr inbounds i8*, i8** %102, i64 %105
%107 = load i8*, i8** %106
store i8* %107, i8** %13
store i32 1, i32* %20
br label %161
108: ; preds = %97
%109 = load i8*, i8** %22
%110 = call i32 @strcmp(i8* %109, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%111 = icmp ne i32 %110, 0
br i1 %111, label %118, label %112
112: ; preds = %108
store i32 0, i32* %18
store i32 0, i32* %19
%113 = load i8**, i8*** %5
%114 = load i32, i32* %10
%115 = zext i32 %114 to i64
%116 = getelementptr inbounds i8*, i8** %113, i64 %115
%117 = load i8*, i8** %116
store i8* %117, i8** %14
store i32 1, i32* %21
br label %160
118: ; preds = %108
%119 = load i8*, i8** %22
%120 = call i32 @strcmp(i8* %119, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%121 = icmp ne i32 %120, 0
br i1 %121, label %123, label %122
122: ; preds = %118
store i32 1, i32* %18
store i32 0, i32* %19
br label %159
123: ; preds = %118
%124 = load i8*, i8** %22
%125 = call i32 @strcmp(i8* %124, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%126 = icmp ne i32 %125, 0
br i1 %126, label %128, label %127
127: ; preds = %123
store i32 0, i32* %18
store i32 1, i32* %19
br label %158
128: ; preds = %123
%129 = load i32, i32* %19
%130 = icmp ne i32 %129, 0
br i1 %130, label %131, label %142
131: ; preds = %128
%132 = load i8**, i8*** %5
%133 = load i32, i32* %10
%134 = add i32 %133, 1
store i32 %134, i32* %10
%135 = zext i32 %133 to i64
%136 = getelementptr inbounds i8*, i8** %132, i64 %135
%137 = load i8*, i8** %136
%138 = load i32, i32* %9
%139 = add i32 %138, 1
store i32 %139, i32* %9
%140 = zext i32 %138 to i64
%141 = getelementptr inbounds [20 x i8*], [20 x i8*]* %12, i64 0, i64 %140
store i8* %137, i8** %141
br label %157
142: ; preds = %128
%143 = load i32, i32* %18
%144 = icmp ne i32 %143, 0
br i1 %144, label %145, label %156
145: ; preds = %142
%146 = load i8**, i8*** %5
%147 = load i32, i32* %10
%148 = add i32 %147, 1
store i32 %148, i32* %10
%149 = zext i32 %147 to i64
%150 = getelementptr inbounds i8*, i8** %146, i64 %149
%151 = load i8*, i8** %150
%152 = load i32, i32* %8
%153 = add i32 %152, 1
store i32 %153, i32* %8
%154 = zext i32 %152 to i64
%155 = getelementptr inbounds [20 x i8*], [20 x i8*]* %11, i64 0, i64 %154
store i8* %151, i8** %155
br label %156
156: ; preds = %145, %142
br label %157
157: ; preds = %156, %131
br label %158
158: ; preds = %157, %127
br label %159
159: ; preds = %158, %122
br label %160
160: ; preds = %159, %112
br label %161
161: ; preds = %160, %101
br label %162
162: ; preds = %161, %90
br label %163
163: ; preds = %162, %78
br label %164
164: ; preds = %163, %67
br label %53
165: ; preds = %53
%166 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%167 = load i8*, i8** %15
%168 = call i32 @strcpy(i8* %166, i8* %167)
%169 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%170 = call i32 @strcat(i8* %169, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%171 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%172 = call i32* @fopen(i8* %171, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
store i32* %172, i32** %17
store double 3.000000e+01, double* %27
store double -5.000000e+00, double* %28
store double 5.000000e+00, double* %37
store double 0x406ED5CFAACD9E84, double* %29
%173 = load double, double* %29
%174 = fadd double %173, 1.000000e+00
store double %174, double* %31
store double 0x406ED5CFAACD9E84, double* %30
%175 = load double, double* %30
%176 = fadd double %175, 1.000000e+00
store double %176, double* %32
%177 = load double, double* %31
%178 = load double, double* %27
%179 = fadd double %177, %178
%180 = load double, double* %27
%181 = fadd double %179, %180
store double %181, double* %33
%182 = load double, double* %32
%183 = load double, double* %27
%184 = fadd double %182, %183
%185 = load double, double* %27
%186 = fadd double %184, %185
store double %186, double* %34
%187 = load double, double* %31
%188 = load i32, i32* %6
%189 = uitofp i32 %188 to double
%190 = fdiv double %187, %189
store double %190, double* %35
%191 = load double, double* %32
%192 = load i32, i32* %7
%193 = uitofp i32 %192 to double
%194 = fdiv double %191, %193
store double %194, double* %36
%195 = load i32, i32* %6
%196 = sub i32 %195, 1
store i32 %196, i32* %38
%197 = load i32, i32* %7
%198 = sub i32 %197, 1
store i32 %198, i32* %39
%199 = getelementptr inbounds [128 x i8], [128 x i8]* %40, i64 0, i64 0
%200 = load double, double* %29
%201 = call i32 @sprintf(i8* %199, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), double %200)
%202 = getelementptr inbounds [128 x i8], [128 x i8]* %41, i64 0, i64 0
%203 = load double, double* %30
%204 = call i32 @sprintf(i8* %202, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), double %203)
%205 = getelementptr inbounds [128 x i8], [128 x i8]* %42, i64 0, i64 0
%206 = call i32 @sprintf(i8* %205, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), double 1.024000e+03)
%207 = getelementptr inbounds [128 x i8], [128 x i8]* %43, i64 0, i64 0
%208 = call i32 @sprintf(i8* %207, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), double 1.024000e+03)
%209 = load i32*, i32** %17
%210 = call i32 (i32*, i8*, ...) @fprintf(i32* %209, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
%211 = load i32*, i32** %17
%212 = load double, double* %33
%213 = load double, double* %34
%214 = load double, double* %27
%215 = fneg double %214
%216 = load double, double* %27
%217 = fneg double %216
%218 = call i32 (i32*, i8*, ...) @fprintf(i32* %211, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0), double %212, double %213, double %215, double %217)
%219 = load i32, i32* %8
%220 = icmp ugt i32 %219, 2
br i1 %220, label %221, label %263
221: ; preds = %165
%222 = load double, double* %31
%223 = load i32, i32* %8
%224 = sub i32 %223, 1
%225 = uitofp i32 %224 to double
%226 = fdiv double %222, %225
store double %226, double* %25
store double 0.000000e+00, double* %23
%227 = load i32*, i32** %17
%228 = load double, double* %23
%229 = load double, double* %28
%230 = getelementptr inbounds [20 x i8*], [20 x i8*]* %11, i64 0, i64 0
%231 = load i8*, i8** %230
%232 = call i32 (i32*, i8*, ...) @fprintf(i32* %227, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double %228, double %229, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* %231)
store i32 1, i32* %10
br label %233
233: ; preds = %250, %221
%234 = load i32, i32* %10
%235 = load i32, i32* %8
%236 = sub i32 %235, 1
%237 = icmp ult i32 %234, %236
br i1 %237, label %238, label %253
238: ; preds = %233
%239 = load double, double* %25
%240 = load double, double* %23
%241 = fadd double %240, %239
store double %241, double* %23
%242 = load i32*, i32** %17
%243 = load double, double* %23
%244 = load double, double* %28
%245 = load i32, i32* %10
%246 = zext i32 %245 to i64
%247 = getelementptr inbounds [20 x i8*], [20 x i8*]* %11, i64 0, i64 %246
%248 = load i8*, i8** %247
%249 = call i32 (i32*, i8*, ...) @fprintf(i32* %242, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double %243, double %244, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* %248)
br label %250
250: ; preds = %238
%251 = load i32, i32* %10
%252 = add i32 %251, 1
store i32 %252, i32* %10
br label %233
253: ; preds = %233
%254 = load i32*, i32** %17
%255 = load double, double* %31
%256 = load double, double* %28
%257 = load i32, i32* %8
%258 = sub i32 %257, 1
%259 = zext i32 %258 to i64
%260 = getelementptr inbounds [20 x i8*], [20 x i8*]* %11, i64 0, i64 %259
%261 = load i8*, i8** %260
%262 = call i32 (i32*, i8*, ...) @fprintf(i32* %254, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double %255, double %256, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* %261)
br label %263
263: ; preds = %253, %165
%264 = load i32, i32* %9
%265 = icmp ugt i32 %264, 2
br i1 %265, label %266, label %308
266: ; preds = %263
%267 = load double, double* %32
%268 = load i32, i32* %9
%269 = sub i32 %268, 1
%270 = uitofp i32 %269 to double
%271 = fdiv double %267, %270
store double %271, double* %26
store double 0.000000e+00, double* %24
%272 = load i32*, i32** %17
%273 = load double, double* %28
%274 = load double, double* %24
%275 = getelementptr inbounds [20 x i8*], [20 x i8*]* %12, i64 0, i64 0
%276 = load i8*, i8** %275
%277 = call i32 (i32*, i8*, ...) @fprintf(i32* %272, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double %273, double %274, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* %276)
store i32 1, i32* %10
br label %278
278: ; preds = %295, %266
%279 = load i32, i32* %10
%280 = load i32, i32* %9
%281 = sub i32 %280, 1
%282 = icmp ult i32 %279, %281
br i1 %282, label %283, label %298
283: ; preds = %278
%284 = load double, double* %26
%285 = load double, double* %24
%286 = fadd double %285, %284
store double %286, double* %24
%287 = load i32*, i32** %17
%288 = load double, double* %28
%289 = load double, double* %24
%290 = load i32, i32* %10
%291 = zext i32 %290 to i64
%292 = getelementptr inbounds [20 x i8*], [20 x i8*]* %12, i64 0, i64 %291
%293 = load i8*, i8** %292
%294 = call i32 (i32*, i8*, ...) @fprintf(i32* %287, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double %288, double %289, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0), i8* %293)
br label %295
295: ; preds = %283
%296 = load i32, i32* %10
%297 = add i32 %296, 1
store i32 %297, i32* %10
br label %278
298: ; preds = %278
%299 = load i32*, i32** %17
%300 = load double, double* %28
%301 = load double, double* %32
%302 = load i32, i32* %9
%303 = sub i32 %302, 1
%304 = zext i32 %303 to i64
%305 = getelementptr inbounds [20 x i8*], [20 x i8*]* %12, i64 0, i64 %304
%306 = load i8*, i8** %305
%307 = call i32 (i32*, i8*, ...) @fprintf(i32* %299, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double %300, double %301, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* %306)
br label %308
308: ; preds = %298, %263
%309 = load i32, i32* %20
%310 = icmp eq i32 %309, 1
br i1 %310, label %311, label %319
311: ; preds = %308
%312 = load i32*, i32** %17
%313 = load double, double* %31
%314 = fmul double 5.000000e-01, %313
%315 = load double, double* %27
%316 = fmul double -5.000000e-01, %315
%317 = load i8*, i8** %13
%318 = call i32 (i32*, i8*, ...) @fprintf(i32* %312, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double %314, double %316, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* %317)
br label %319
319: ; preds = %311, %308
%320 = load i32, i32* %21
%321 = icmp eq i32 %320, 1
br i1 %321, label %322, label %330
322: ; preds = %319
%323 = load i32*, i32** %17
%324 = load double, double* %27
%325 = fneg double %324
%326 = load double, double* %32
%327 = fmul double 5.000000e-01, %326
%328 = load i8*, i8** %14
%329 = call i32 (i32*, i8*, ...) @fprintf(i32* %323, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double %325, double %327, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0), i8* %328)
br label %330
330: ; preds = %322, %319
%331 = load i32*, i32** %17
%332 = load i8*, i8** %15
%333 = call i32 (i32*, i8*, ...) @fprintf(i32* %331, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.19, i64 0, i64 0), i8* %332)
%334 = load i32*, i32** %17
%335 = load double, double* %31
%336 = load double, double* %32
%337 = call i32 (i32*, i8*, ...) @fprintf(i32* %334, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.20, i64 0, i64 0), double %335, double %336)
%338 = load i32*, i32** %17
%339 = load double, double* %35
%340 = load double, double* %35
%341 = load i32, i32* %38
%342 = load double, double* %37
%343 = call i32 (i32*, i8*, ...) @fprintf(i32* %338, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.21, i64 0, i64 0), double %339, double 0.000000e+00, double %340, double 0.000000e+00, i32 %341, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), double %342)
%344 = load i32*, i32** %17
%345 = load double, double* %35
%346 = load double, double* %32
%347 = load double, double* %35
%348 = load i32, i32* %38
%349 = load double, double* %37
%350 = call i32 (i32*, i8*, ...) @fprintf(i32* %344, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.21, i64 0, i64 0), double %345, double %346, double %347, double 0.000000e+00, i32 %348, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0), double %349)
%351 = load i32*, i32** %17
%352 = load double, double* %36
%353 = load double, double* %36
%354 = load i32, i32* %39
%355 = load double, double* %37
%356 = call i32 (i32*, i8*, ...) @fprintf(i32* %351, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.21, i64 0, i64 0), double 0.000000e+00, double %352, double 0.000000e+00, double %353, i32 %354, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), double %355)
%357 = load i32*, i32** %17
%358 = load double, double* %31
%359 = load double, double* %36
%360 = load double, double* %36
%361 = load i32, i32* %39
%362 = load double, double* %37
%363 = call i32 (i32*, i8*, ...) @fprintf(i32* %357, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.21, i64 0, i64 0), double %358, double %359, double 0.000000e+00, double %360, i32 %361, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.25, i64 0, i64 0), double %362)
%364 = load i32*, i32** %17
%365 = call i32 (i32*, i8*, ...) @fprintf(i32* %364, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.26, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [88 x i8] c"%s -n name -xi xintervals -yi yintervals -xl xlabel -yl ylabel -xv xvalues -yv yvalues\0A\00"
@.str.1 = [3 x i8] c"-n\00"
@.str.2 = [4 x i8] c"-xi\00"
@.str.3 = [4 x i8] c"-yi\00"
@.str.4 = [4 x i8] c"-xl\00"
@.str.5 = [4 x i8] c"-yl\00"
@.str.6 = [4 x i8] c"-xv\00"
@.str.7 = [4 x i8] c"-yv\00"
@.str.8 = [5 x i8] c".tex\00"
@.str.9 = [2 x i8] c"w\00"
@.str.10 = [3 x i8] c"%f\00"
@.str.11 = [30 x i8] c"\\setlength{\\unitlength}{1pt}\0A\00"
@.str.12 = [39 x i8] c"\\begin{picture}( %f , %f )( %f , %f )\0A\00"
@.str.13 = [38 x i8] c" \\putmbox { %f , %f }{ %s }{ $%s$ }\0A\00"
@.str.14 = [3 x i8] c"tl\00"
@.str.15 = [2 x i8] c"t\00"
@.str.16 = [3 x i8] c"tr\00"
@.str.17 = [3 x i8] c"br\00"
@.str.18 = [2 x i8] c"r\00"
@.str.19 = [26 x i8] c" \\special{psfile=%s.ps}\0A\00"
@.str.20 = [39 x i8] c" \\put(0,0){\\framebox ( %f , %f ) {}}\0A\00"
@.str.21 = [44 x i8] c" \\multiput(%f,%f)(%f,%f){%d}{\\line%s{%f}}\0A\00"
@.str.22 = [6 x i8] c"(0,1)\00"
@.str.23 = [7 x i8] c"(0,-1)\00"
@.str.24 = [6 x i8] c"(1,0)\00"
@.str.25 = [7 x i8] c"(-1,0)\00"
@.str.26 = [15 x i8] c"\\end{picture}\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [20 x i8*]
%4 = alloca [20 x i8*]
%5 = alloca [128 x i8]
%6 = alloca [128 x i8]
%7 = alloca [128 x i8]
%8 = alloca [128 x i8]
%9 = alloca [128 x i8]
%10 = bitcast [20 x i8*]* %3 to i8*
%11 = bitcast [20 x i8*]* %4 to i8*
%12 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
switch i32 %0, label %17 [
i32 1, label %13
i32 0, label %113
]
13: ; preds = %2
%14 = load i8*, i8** %1
%15 = tail call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = tail call i32 @exit(i32 1)
unreachable
17: ; preds = %2, %99
%18 = phi i32 [ %111, %99 ], [ 4, %2 ]
%19 = phi i32 [ %110, %99 ], [ 4, %2 ]
%20 = phi i32 [ %109, %99 ], [ 0, %2 ]
%21 = phi i32 [ %108, %99 ], [ 0, %2 ]
%22 = phi i32 [ %107, %99 ], [ 1, %2 ]
%23 = phi i8* [ %106, %99 ], [ null, %2 ]
%24 = phi i8* [ %105, %99 ], [ null, %2 ]
%25 = phi i8* [ %104, %99 ], [ null, %2 ]
%26 = phi i32 [ %103, %99 ], [ 0, %2 ]
%27 = phi i32 [ %102, %99 ], [ 0, %2 ]
%28 = phi i32 [ %101, %99 ], [ 0, %2 ]
%29 = phi i32 [ %100, %99 ], [ 0, %2 ]
%30 = add nuw i32 %22, 1
%31 = zext i32 %22 to i64
%32 = getelementptr inbounds i8*, i8** %1, i64 %31
%33 = load i8*, i8** %32
%34 = tail call i32 @strcmp(i8* dereferenceable(1) %33, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %41
36: ; preds = %17
%37 = add i32 %22, 2
%38 = zext i32 %30 to i64
%39 = getelementptr inbounds i8*, i8** %1, i64 %38
%40 = load i8*, i8** %39
br label %99
41: ; preds = %17
%42 = tail call i32 @strcmp(i8* dereferenceable(1) %33, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %50
44: ; preds = %41
%45 = add i32 %22, 2
%46 = zext i32 %30 to i64
%47 = getelementptr inbounds i8*, i8** %1, i64 %46
%48 = load i8*, i8** %47
%49 = tail call i32 @atoi(i8* %48)
br label %99
50: ; preds = %41
%51 = tail call i32 @strcmp(i8* dereferenceable(1) %33, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %58
53: ; preds = %50
%54 = zext i32 %30 to i64
%55 = getelementptr inbounds i8*, i8** %1, i64 %54
%56 = load i8*, i8** %55
%57 = tail call i32 @atoi(i8* %56)
br label %99
58: ; preds = %50
%59 = tail call i32 @strcmp(i8* dereferenceable(1) %33, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %66
61: ; preds = %58
%62 = add i32 %22, 2
%63 = zext i32 %30 to i64
%64 = getelementptr inbounds i8*, i8** %1, i64 %63
%65 = load i8*, i8** %64
br label %99
66: ; preds = %58
%67 = tail call i32 @strcmp(i8* dereferenceable(1) %33, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %73
69: ; preds = %66
%70 = zext i32 %30 to i64
%71 = getelementptr inbounds i8*, i8** %1, i64 %70
%72 = load i8*, i8** %71
br label %99
73: ; preds = %66
%74 = tail call i32 @strcmp(i8* dereferenceable(1) %33, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%75 = icmp eq i32 %74, 0
br i1 %75, label %99, label %76
76: ; preds = %73
%77 = tail call i32 @strcmp(i8* dereferenceable(1) %33, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%78 = icmp eq i32 %77, 0
br i1 %78, label %99, label %79
79: ; preds = %76
%80 = icmp eq i32 %27, 0
br i1 %80, label %89, label %81
81: ; preds = %79
%82 = add i32 %22, 2
%83 = zext i32 %30 to i64
%84 = getelementptr inbounds i8*, i8** %1, i64 %83
%85 = load i8*, i8** %84
%86 = add i32 %21, 1
%87 = zext i32 %21 to i64
%88 = getelementptr inbounds [20 x i8*], [20 x i8*]* %4, i64 0, i64 %87
store i8* %85, i8** %88
br label %99
89: ; preds = %79
%90 = icmp eq i32 %26, 0
br i1 %90, label %99, label %91
91: ; preds = %89
%92 = add i32 %22, 2
%93 = zext i32 %30 to i64
%94 = getelementptr inbounds i8*, i8** %1, i64 %93
%95 = load i8*, i8** %94
%96 = add i32 %20, 1
%97 = zext i32 %20 to i64
%98 = getelementptr inbounds [20 x i8*], [20 x i8*]* %3, i64 0, i64 %97
store i8* %95, i8** %98
br label %99
99: ; preds = %76, %73, %44, %61, %81, %91, %89, %69, %53, %36
%100 = phi i32 [ %29, %81 ], [ %29, %91 ], [ %29, %89 ], [ 1, %69 ], [ %29, %61 ], [ %29, %53 ], [ %29, %44 ], [ %29, %36 ], [ %29, %73 ], [ %29, %76 ]
%101 = phi i32 [ %28, %81 ], [ %28, %91 ], [ %28, %89 ], [ %28, %69 ], [ 1, %61 ], [ %28, %53 ], [ %28, %44 ], [ %28, %36 ], [ %28, %73 ], [ %28, %76 ]
%102 = phi i32 [ 1, %81 ], [ 0, %91 ], [ 0, %89 ], [ 0, %69 ], [ 0, %61 ], [ 0, %53 ], [ 0, %44 ], [ 0, %36 ], [ 0, %73 ], [ 1, %76 ]
%103 = phi i32 [ %26, %81 ], [ 1, %91 ], [ 0, %89 ], [ 0, %69 ], [ 0, %61 ], [ 0, %53 ], [ 0, %44 ], [ 0, %36 ], [ 1, %73 ], [ 0, %76 ]
%104 = phi i8* [ %25, %81 ], [ %25, %91 ], [ %25, %89 ], [ %25, %69 ], [ %25, %61 ], [ %25, %53 ], [ %25, %44 ], [ %40, %36 ], [ %25, %73 ], [ %25, %76 ]
%105 = phi i8* [ %24, %81 ], [ %24, %91 ], [ %24, %89 ], [ %72, %69 ], [ %24, %61 ], [ %24, %53 ], [ %24, %44 ], [ %24, %36 ], [ %24, %73 ], [ %24, %76 ]
%106 = phi i8* [ %23, %81 ], [ %23, %91 ], [ %23, %89 ], [ %23, %69 ], [ %65, %61 ], [ %23, %53 ], [ %23, %44 ], [ %23, %36 ], [ %23, %73 ], [ %23, %76 ]
%107 = phi i32 [ %82, %81 ], [ %92, %91 ], [ %30, %89 ], [ %30, %69 ], [ %62, %61 ], [ %30, %53 ], [ %45, %44 ], [ %37, %36 ], [ %30, %73 ], [ %30, %76 ]
%108 = phi i32 [ %86, %81 ], [ %21, %91 ], [ %21, %89 ], [ %21, %69 ], [ %21, %61 ], [ %21, %53 ], [ %21, %44 ], [ %21, %36 ], [ %21, %73 ], [ %21, %76 ]
%109 = phi i32 [ %20, %81 ], [ %96, %91 ], [ %20, %89 ], [ %20, %69 ], [ %20, %61 ], [ %20, %53 ], [ %20, %44 ], [ %20, %36 ], [ %20, %73 ], [ %20, %76 ]
%110 = phi i32 [ %19, %81 ], [ %19, %91 ], [ %19, %89 ], [ %19, %69 ], [ %19, %61 ], [ %57, %53 ], [ %19, %44 ], [ %19, %36 ], [ %19, %73 ], [ %19, %76 ]
%111 = phi i32 [ %18, %81 ], [ %18, %91 ], [ %18, %89 ], [ %18, %69 ], [ %18, %61 ], [ %18, %53 ], [ %49, %44 ], [ %18, %36 ], [ %18, %73 ], [ %18, %76 ]
%112 = icmp ult i32 %107, %0
br i1 %112, label %17, label %113
113: ; preds = %99, %2
%114 = phi i32 [ %0, %2 ], [ %100, %99 ]
%115 = phi i32 [ %0, %2 ], [ %101, %99 ]
%116 = phi i8* [ null, %2 ], [ %104, %99 ]
%117 = phi i8* [ null, %2 ], [ %105, %99 ]
%118 = phi i8* [ null, %2 ], [ %106, %99 ]
%119 = phi i32 [ %0, %2 ], [ %108, %99 ]
%120 = phi i32 [ %0, %2 ], [ %109, %99 ]
%121 = phi i32 [ 4, %2 ], [ %110, %99 ]
%122 = phi i32 [ 4, %2 ], [ %111, %99 ]
%123 = call i32 @strcpy(i8* %12, i8* %116)
%124 = call i32 @strcat(i8* %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%125 = call i32* @fopen(i8* %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%126 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%127 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%128 = getelementptr inbounds [128 x i8], [128 x i8]* %8, i64 0, i64 0
%129 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%130 = uitofp i32 %122 to double
%131 = fdiv double 0x406EF5CFAACD9E84, %130
%132 = uitofp i32 %121 to double
%133 = fdiv double 0x406EF5CFAACD9E84, %132
%134 = add i32 %122, -1
%135 = add i32 %121, -1
%136 = call i32 @sprintf(i8* %126, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), double 0x406ED5CFAACD9E84)
%137 = call i32 @sprintf(i8* %127, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), double 0x406ED5CFAACD9E84)
%138 = call i32 @sprintf(i8* %128, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), double 1.024000e+03)
%139 = call i32 @sprintf(i8* %129, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), double 1.024000e+03)
%140 = call i64 @fwrite(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i64 29, i64 1, i32* %125)
%141 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0), double 0x40733AE7D566CF42, double 0x40733AE7D566CF42, double -3.000000e+01, double -3.000000e+01)
%142 = icmp ugt i32 %120, 2
br i1 %142, label %143, label %164
143: ; preds = %113
%144 = add i32 %120, -1
%145 = uitofp i32 %144 to double
%146 = fdiv double 0x406EF5CFAACD9E84, %145
%147 = getelementptr inbounds [20 x i8*], [20 x i8*]* %3, i64 0, i64 0
%148 = load i8*, i8** %147
%149 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double 0.000000e+00, double -5.000000e+00, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* %148)
%150 = zext i32 %144 to i64
br label %151
151: ; preds = %143, %151
%152 = phi i64 [ 1, %143 ], [ %158, %151 ]
%153 = phi double [ 0.000000e+00, %143 ], [ %154, %151 ]
%154 = fadd double %146, %153
%155 = getelementptr inbounds [20 x i8*], [20 x i8*]* %3, i64 0, i64 %152
%156 = load i8*, i8** %155
%157 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double %154, double -5.000000e+00, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* %156)
%158 = add nuw nsw i64 %152, 1
%159 = icmp eq i64 %158, %150
br i1 %159, label %160, label %151
160: ; preds = %151
%161 = getelementptr inbounds [20 x i8*], [20 x i8*]* %3, i64 0, i64 %150
%162 = load i8*, i8** %161
%163 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double 0x406EF5CFAACD9E84, double -5.000000e+00, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* %162)
br label %164
164: ; preds = %160, %113
%165 = icmp ugt i32 %119, 2
br i1 %165, label %166, label %187
166: ; preds = %164
%167 = add i32 %119, -1
%168 = uitofp i32 %167 to double
%169 = fdiv double 0x406EF5CFAACD9E84, %168
%170 = getelementptr inbounds [20 x i8*], [20 x i8*]* %4, i64 0, i64 0
%171 = load i8*, i8** %170
%172 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double -5.000000e+00, double 0.000000e+00, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* %171)
%173 = zext i32 %167 to i64
br label %174
174: ; preds = %166, %174
%175 = phi i64 [ 1, %166 ], [ %181, %174 ]
%176 = phi double [ 0.000000e+00, %166 ], [ %177, %174 ]
%177 = fadd double %169, %176
%178 = getelementptr inbounds [20 x i8*], [20 x i8*]* %4, i64 0, i64 %175
%179 = load i8*, i8** %178
%180 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double -5.000000e+00, double %177, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0), i8* %179)
%181 = add nuw nsw i64 %175, 1
%182 = icmp eq i64 %181, %173
br i1 %182, label %183, label %174
183: ; preds = %174
%184 = getelementptr inbounds [20 x i8*], [20 x i8*]* %4, i64 0, i64 %173
%185 = load i8*, i8** %184
%186 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double -5.000000e+00, double 0x406EF5CFAACD9E84, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* %185)
br label %187
187: ; preds = %183, %164
%188 = icmp eq i32 %115, 1
br i1 %188, label %189, label %191
189: ; preds = %187
%190 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double 0x405EF5CFAACD9E84, double -1.500000e+01, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* %118)
br label %191
191: ; preds = %189, %187
%192 = icmp eq i32 %114, 1
br i1 %192, label %193, label %195
193: ; preds = %191
%194 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), double -3.000000e+01, double 0x405EF5CFAACD9E84, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0), i8* %117)
br label %195
195: ; preds = %193, %191
%196 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.19, i64 0, i64 0), i8* %116)
%197 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.20, i64 0, i64 0), double 0x406EF5CFAACD9E84, double 0x406EF5CFAACD9E84)
%198 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.21, i64 0, i64 0), double %131, double 0.000000e+00, double %131, double 0.000000e+00, i32 %134, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), double 5.000000e+00)
%199 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.21, i64 0, i64 0), double %131, double 0x406EF5CFAACD9E84, double %131, double 0.000000e+00, i32 %134, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0), double 5.000000e+00)
%200 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.21, i64 0, i64 0), double 0.000000e+00, double %133, double 0.000000e+00, double %133, i32 %135, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), double 5.000000e+00)
%201 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.21, i64 0, i64 0), double 0x406EF5CFAACD9E84, double %133, double 0.000000e+00, double %133, i32 %135, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.25, i64 0, i64 0), double 5.000000e+00)
%202 = call i64 @fwrite(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.26, i64 0, i64 0), i64 14, i64 1, i32* %125)
ret i32 0
}