#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 */
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
void input_queries(FILE **fin, FILE **fingeom, FILE **finassign, char *inname,
                   char *geomname, char *inassignname, char *outassignname,
                   char *outfilename, int *architecture, int *ndims_tot,
                   int mesh_dims[3], int *global_method, int *local_method,
                   int *rqi_flag, int *vmax, int *ndims) {
  extern int SEQUENCE;
  extern int ARCHITECTURE;
  extern int OUTPUT_ASSIGN;
  extern int ECHO;
  extern int DEBUG_TRACE;
  extern int PROMPT;
  extern int MATCH_TYPE;
  int eigensolver;
  int nprocs;
  int input_int();
  if (DEBUG_TRACE > 0) {
    printf("<Entering input_queries>\n");
  }
  *architecture = ARCHITECTURE;
  *fin = NULL;
  while (*fin == NULL) {
    if (PROMPT) {
      printf("Graph input file: ");
    }
    (void)scanf("%s", inname);
    *fin = fopen(inname, "r");
    if (*fin == NULL) {
      printf("Graph file `%s' not found.\n", inname);
    }
  }
  if (OUTPUT_ASSIGN && !SEQUENCE) {
    if (PROMPT) {
      printf("Assignment output file: ");
    }
    (void)scanf("%s", outassignname);
  }
  if (ECHO < 0) {
    if (PROMPT) {
      printf("File name for saving run results: ");
    }
    (void)scanf("%s", outfilename);
  }
  *rqi_flag = 0;
  *global_method = 0;
  *fingeom = NULL;
  *finassign = NULL;
  if (SEQUENCE) {
    *global_method = 2;
  } else {
    while (*global_method < 1 || *global_method > 7) {
      if (PROMPT) {
        printf("Global partitioning method:\n");
        printf("  (1) Multilevel-KL\n");
        printf("  (2) Spectral\n");
        printf("  (3) Inertial\n");
        printf("  (4) Linear\n");
        printf("  (5) Random\n");
        printf("  (6) Scattered\n");
        printf("  (7) Read-from-file\n");
      }
      *global_method = input_int();
    }
  }
  if (*global_method == 7) {
    while (*finassign == NULL) {
      if (PROMPT) {
        printf("Assignment input file: ");
      }
      (void)scanf("%s", inassignname);
      *finassign = fopen(inassignname, "r");
      if (*finassign == NULL) {
        printf("Assignment file `%s' not found.\n", inassignname);
      }
    }
  } else if (*global_method == 3) {
    while (*fingeom == NULL) {
      if (PROMPT) {
        printf("Geometry input file name: ");
      }
      (void)scanf("%s", geomname);
      *fingeom = fopen(geomname, "r");
      if (*fingeom == NULL) {
        printf("Geometry input file `%s' not found.\n", geomname);
      }
    }
  } else if (*global_method == 2) {
    eigensolver = 0;
    while (eigensolver < 1 || eigensolver > 2) {
      if (PROMPT) {
        printf("Eigensolver:\n");
        printf("  (1) Multilevel RQI/Symmlq\n");
        printf("  (2) Lanczos\n");
      }
      eigensolver = input_int();
    }
    if (eigensolver == 1) {
      if (MATCH_TYPE == 5) {
        while (*fingeom == NULL) {
          if (PROMPT) {
            printf("Geometry input file name: ");
          }
          (void)scanf("%s", geomname);
          *fingeom = fopen(geomname, "r");
          if (*fingeom == NULL) {
            printf("Geometry input file `%s' not found.\n", geomname);
          }
        }
      }
      *rqi_flag = 1;
      *vmax = 0;
      while (*vmax <= 0) {
        if (PROMPT) {
          printf("Number of vertices to coarsen down to: ");
        }
        *vmax = input_int();
      }
    }
  } else if (*global_method == 1) {
    if (MATCH_TYPE == 5) {
      while (*fingeom == NULL) {
        if (PROMPT) {
          printf("Geometry input file name: ");
        }
        (void)scanf("%s", geomname);
        *fingeom = fopen(geomname, "r");
        if (*fingeom == NULL) {
          printf("Geometry input file `%s' not found.\n", geomname);
        }
      }
    }
    *vmax = 0;
    while (*vmax <= 1) {
      if (PROMPT) {
        printf("Number of vertices to coarsen down to: ");
      }
      *vmax = input_int();
    }
  }
  if (SEQUENCE) {
    *local_method = 2;
    if (*architecture == 0) {
      *ndims_tot = 1;
    } else if (*architecture > 0) {
      mesh_dims[0] = 2;
      mesh_dims[1] = mesh_dims[2] = 1;
    }
    *ndims = 1;
    goto End_Label;
  }
  *local_method = 0;
  if (*global_method == 1) {
    *local_method = 1;
  } else {
    while (*local_method < 1 || *local_method > 2) {
      if (PROMPT) {
        printf("Local refinement method:\n");
        printf("  (1) Kernighan-Lin\n");
        printf("  (2) None\n");
      }
      *local_method = input_int();
    }
  }
  if (*architecture == 0) {
    *ndims_tot = 0;
    while (*ndims_tot < 1) {
      if (PROMPT) {
        printf("Total number of target hypercube dimensions: ");
      }
      *ndims_tot = input_int();
      if (*ndims_tot < 1) {
        printf(" Number of divisions must be at least 1\n");
      }
    }
    nprocs = 1 << (*ndims_tot);
  } else {
    mesh_dims[1] = mesh_dims[2] = 1;
    if (*architecture == 2) {
      if (PROMPT) {
        printf("X and Y extent of of 2-D mesh: ");
      }
      mesh_dims[0] = input_int();
      mesh_dims[1] = input_int();
    } else if (*architecture == 3) {
      if (PROMPT) {
        printf("X, Y and Z extent of 3-D mesh: ");
      }
      mesh_dims[0] = input_int();
      mesh_dims[1] = input_int();
      mesh_dims[2] = input_int();
    } else {
      if (PROMPT) {
        printf("Size of 1-D mesh: ");
      }
      mesh_dims[0] = input_int();
      *architecture = 1;
    }
    nprocs = mesh_dims[0] * mesh_dims[1] * mesh_dims[2];
  }
  *ndims = 0;
  if (nprocs <= 3) {
    *ndims = 1;
  } else if (nprocs <= 7) {
    if (PROMPT) {
      printf("Partitioning dimension: \n");
    }
    while (*ndims < 1 || *ndims > 2) {
      if (PROMPT) {
        printf("  (1) Bisection\n");
        printf("  (2) Quadrisection\n");
      }
      *ndims = input_int();
    }
  } else {
    if (PROMPT) {
      printf("Partitioning dimension: \n");
    }
    while (*ndims < 1 || *ndims > 3) {
      if (PROMPT) {
        printf("  (1) Bisection\n");
        printf("  (2) Quadrisection\n");
        printf("  (3) Octasection\n");
      }
      *ndims = input_int();
    }
  }
End_Label:
  if (*global_method == 1 || *rqi_flag) {
    if (*vmax < 2 * (1 << *ndims)) {
      *vmax = 2 * (1 << *ndims);
    }
  }
}


x86 assembly (clang, -O0):
<input_queries>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    0x2e21(%rip),%rax
cmpl   $0x0,(%rax)
jle    11a6 <input_queries+0x66>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e13(%rip),%rax
mov    (%rax),%ecx
mov    0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
jne    123b <input_queries+0xfb>
mov    0x2e0b(%rip),%rax
cmpl   $0x0,(%rax)
je     11ec <input_queries+0xac>
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xe36(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x20(%rbp),%rdi
lea    0xe29(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
jne    1236 <input_queries+0xf6>
mov    -0x20(%rbp),%rsi
lea    0xe03(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11c0 <input_queries+0x80>
mov    0x2d8e(%rip),%rax
cmpl   $0x0,(%rax)
je     1289 <input_queries+0x149>
mov    0x2d56(%rip),%rax
cmpl   $0x0,(%rax)
jne    1289 <input_queries+0x149>
mov    0x2d7e(%rip),%rax
cmpl   $0x0,(%rax)
je     1279 <input_queries+0x139>
lea    0xddc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x10(%rbp),%rsi
lea    0xda9(%rip),%rdi
call   1040 <scanf@plt>
mov    0x2d48(%rip),%rax
cmpl   $0x0,(%rax)
jge    12c7 <input_queries+0x187>
mov    0x2d40(%rip),%rax
cmpl   $0x0,(%rax)
je     12b7 <input_queries+0x177>
lea    0xdb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x18(%rbp),%rsi
lea    0xd6b(%rip),%rdi
call   1040 <scanf@plt>
mov    0x48(%rbp),%rax
movl   $0x0,(%rax)
mov    0x38(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movq   $0x0,(%rax)
mov    0x2cb0(%rip),%rax
cmpl   $0x0,(%rax)
je     1310 <input_queries+0x1d0>
mov    0x38(%rbp),%rax
movl   $0x2,(%rax)
jmp    13dd <input_queries+0x29d>
jmp    1315 <input_queries+0x1d5>
mov    0x38(%rbp),%rcx
mov    $0x1,%al
cmpl   $0x1,(%rcx)
mov    %al,-0x39(%rbp)
jl     1334 <input_queries+0x1f4>
mov    0x38(%rbp),%rax
cmpl   $0x7,(%rax)
setg   %al
mov    %al,-0x39(%rbp)
mov    -0x39(%rbp),%al
test   $0x1,%al
jne    1344 <input_queries+0x204>
jmp    13d8 <input_queries+0x298>
mov    0x2c95(%rip),%rax
cmpl   $0x0,(%rax)
je     13c4 <input_queries+0x284>
lea    0xd2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd45(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd47(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd4c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <input_int@plt>
mov    %eax,%ecx
mov    0x38(%rbp),%rax
mov    %ecx,(%rax)
jmp    1315 <input_queries+0x1d5>
jmp    13dd <input_queries+0x29d>
mov    0x38(%rbp),%rax
cmpl   $0x7,(%rax)
jne    146f <input_queries+0x32f>
jmp    13ef <input_queries+0x2af>
mov    -0x18(%rbp),%rax
cmpq   $0x0,(%rax)
jne    146a <input_queries+0x32a>
mov    0x2bdc(%rip),%rax
cmpl   $0x0,(%rax)
je     141b <input_queries+0x2db>
lea    0xd0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xc07(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x30(%rbp),%rdi
lea    0xbfa(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rax
cmpq   $0x0,(%rax)
jne    1465 <input_queries+0x325>
mov    -0x30(%rbp),%rsi
lea    0xcd9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13ef <input_queries+0x2af>
jmp    1782 <input_queries+0x642>
mov    0x38(%rbp),%rax
cmpl   $0x3,(%rax)
jne    1501 <input_queries+0x3c1>
jmp    1481 <input_queries+0x341>
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
jne    14fc <input_queries+0x3bc>
mov    0x2b4a(%rip),%rax
cmpl   $0x0,(%rax)
je     14ad <input_queries+0x36d>
lea    0xcb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rsi
lea    0xb75(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x28(%rbp),%rdi
lea    0xb68(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
jne    14f7 <input_queries+0x3b7>
mov    -0x28(%rbp),%rsi
lea    0xc83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1481 <input_queries+0x341>
jmp    177d <input_queries+0x63d>
mov    0x38(%rbp),%rax
cmpl   $0x2,(%rax)
jne    1683 <input_queries+0x543>
movl   $0x0,-0x34(%rbp)
mov    $0x1,%al
cmpl   $0x1,-0x34(%rbp)
mov    %al,-0x3a(%rbp)
jl     152e <input_queries+0x3ee>
cmpl   $0x2,-0x34(%rbp)
setg   %al
mov    %al,-0x3a(%rbp)
mov    -0x3a(%rbp),%al
test   $0x1,%al
jne    153e <input_queries+0x3fe>
jmp    1587 <input_queries+0x447>
mov    0x2a9b(%rip),%rax
cmpl   $0x0,(%rax)
je     1578 <input_queries+0x438>
lea    0xc43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <input_int@plt>
mov    %eax,-0x34(%rbp)
jmp    1515 <input_queries+0x3d5>
cmpl   $0x1,-0x34(%rbp)
jne    167e <input_queries+0x53e>
mov    0x2a60(%rip),%rax
cmpl   $0x5,(%rax)
jne    1626 <input_queries+0x4e6>
jmp    15a6 <input_queries+0x466>
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
jne    1621 <input_queries+0x4e1>
mov    0x2a25(%rip),%rax
cmpl   $0x0,(%rax)
je     15d2 <input_queries+0x492>
lea    0xb8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rsi
lea    0xa50(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x28(%rbp),%rdi
lea    0xa43(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
jne    161c <input_queries+0x4dc>
mov    -0x28(%rbp),%rsi
lea    0xb5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    15a6 <input_queries+0x466>
jmp    1626 <input_queries+0x4e6>
mov    0x48(%rbp),%rax
movl   $0x1,(%rax)
mov    0x50(%rbp),%rax
movl   $0x0,(%rax)
mov    0x50(%rbp),%rax
cmpl   $0x0,(%rax)
jg     1679 <input_queries+0x539>
mov    0x2992(%rip),%rax
cmpl   $0x0,(%rax)
je     1665 <input_queries+0x525>
lea    0xb74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <input_int@plt>
mov    %eax,%ecx
mov    0x50(%rbp),%rax
mov    %ecx,(%rax)
jmp    163a <input_queries+0x4fa>
jmp    167e <input_queries+0x53e>
jmp    1778 <input_queries+0x638>
mov    0x38(%rbp),%rax
cmpl   $0x1,(%rax)
jne    1773 <input_queries+0x633>
mov    0x2961(%rip),%rax
cmpl   $0x5,(%rax)
jne    1725 <input_queries+0x5e5>
jmp    16a5 <input_queries+0x565>
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
jne    1720 <input_queries+0x5e0>
mov    0x2926(%rip),%rax
cmpl   $0x0,(%rax)
je     16d1 <input_queries+0x591>
lea    0xa8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rsi
lea    0x951(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x28(%rbp),%rdi
lea    0x944(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
jne    171b <input_queries+0x5db>
mov    -0x28(%rbp),%rsi
lea    0xa5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    16a5 <input_queries+0x565>
jmp    1725 <input_queries+0x5e5>
mov    0x50(%rbp),%rax
movl   $0x0,(%rax)
mov    0x50(%rbp),%rax
cmpl   $0x1,(%rax)
jg     176e <input_queries+0x62e>
mov    0x289d(%rip),%rax
cmpl   $0x0,(%rax)
je     175a <input_queries+0x61a>
lea    0xa7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <input_int@plt>
mov    %eax,%ecx
mov    0x50(%rbp),%rax
mov    %ecx,(%rax)
jmp    172f <input_queries+0x5ef>
jmp    1773 <input_queries+0x633>
jmp    1778 <input_queries+0x638>
jmp    177d <input_queries+0x63d>
jmp    1782 <input_queries+0x642>
mov    0x281f(%rip),%rax
cmpl   $0x0,(%rax)
je     17f9 <input_queries+0x6b9>
mov    0x40(%rbp),%rax
movl   $0x2,(%rax)
mov    0x20(%rbp),%rax
cmpl   $0x0,(%rax)
jne    17b8 <input_queries+0x678>
mov    0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    17ea <input_queries+0x6aa>
mov    0x20(%rbp),%rax
cmpl   $0x0,(%rax)
jle    17e5 <input_queries+0x6a5>
mov    0x30(%rbp),%rax
movl   $0x2,(%rax)
mov    0x30(%rbp),%rax
movl   $0x1,0x8(%rax)
mov    0x30(%rbp),%rax
movl   $0x1,0x4(%rax)
jmp    17ea <input_queries+0x6aa>
mov    0x58(%rbp),%rax
movl   $0x1,(%rax)
jmp    1bb8 <input_queries+0xa78>
mov    0x40(%rbp),%rax
movl   $0x0,(%rax)
mov    0x38(%rbp),%rax
cmpl   $0x1,(%rax)
jne    181f <input_queries+0x6df>
mov    0x40(%rbp),%rax
movl   $0x1,(%rax)
jmp    18a6 <input_queries+0x766>
jmp    1824 <input_queries+0x6e4>
mov    0x40(%rbp),%rcx
mov    $0x1,%al
cmpl   $0x1,(%rcx)
mov    %al,-0x3b(%rbp)
jl     1843 <input_queries+0x703>
mov    0x40(%rbp),%rax
cmpl   $0x2,(%rax)
setg   %al
mov    %al,-0x3b(%rbp)
mov    -0x3b(%rbp),%al
test   $0x1,%al
jne    1853 <input_queries+0x713>
jmp    18a1 <input_queries+0x761>
mov    0x2786(%rip),%rax
cmpl   $0x0,(%rax)
je     188d <input_queries+0x74d>
lea    0x990(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x99c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x9a3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <input_int@plt>
mov    %eax,%ecx
mov    0x40(%rbp),%rax
mov    %ecx,(%rax)
jmp    1824 <input_queries+0x6e4>
jmp    18a6 <input_queries+0x766>
mov    0x20(%rbp),%rax
cmpl   $0x0,(%rax)
jne    192c <input_queries+0x7ec>
mov    0x28(%rbp),%rax
movl   $0x0,(%rax)
mov    0x28(%rbp),%rax
cmpl   $0x1,(%rax)
jge    1917 <input_queries+0x7d7>
mov    0x270f(%rip),%rax
cmpl   $0x0,(%rax)
je     18e8 <input_queries+0x7a8>
lea    0x954(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <input_int@plt>
mov    %eax,%ecx
mov    0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    0x28(%rbp),%rax
cmpl   $0x1,(%rax)
jge    1912 <input_queries+0x7d2>
lea    0x958(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    18bd <input_queries+0x77d>
mov    0x28(%rbp),%rax
mov    (%rax),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,-0x38(%rbp)
jmp    1a45 <input_queries+0x905>
mov    0x30(%rbp),%rax
movl   $0x1,0x8(%rax)
mov    0x30(%rbp),%rax
movl   $0x1,0x4(%rax)
mov    0x20(%rbp),%rax
cmpl   $0x2,(%rax)
jne    1991 <input_queries+0x851>
mov    0x268a(%rip),%rax
cmpl   $0x0,(%rax)
je     196d <input_queries+0x82d>
lea    0x926(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <input_int@plt>
mov    %eax,%ecx
mov    0x30(%rbp),%rax
mov    %ecx,(%rax)
mov    $0x0,%al
call   1060 <input_int@plt>
mov    %eax,%ecx
mov    0x30(%rbp),%rax
mov    %ecx,0x4(%rax)
jmp    1a2c <input_queries+0x8ec>
mov    0x20(%rbp),%rax
cmpl   $0x3,(%rax)
jne    19f0 <input_queries+0x8b0>
mov    0x263b(%rip),%rax
cmpl   $0x0,(%rax)
je     19bc <input_queries+0x87c>
lea    0x8f7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <input_int@plt>
mov    %eax,%ecx
mov    0x30(%rbp),%rax
mov    %ecx,(%rax)
mov    $0x0,%al
call   1060 <input_int@plt>
mov    %eax,%ecx
mov    0x30(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    $0x0,%al
call   1060 <input_int@plt>
mov    %eax,%ecx
mov    0x30(%rbp),%rax
mov    %ecx,0x8(%rax)
jmp    1a27 <input_queries+0x8e7>
mov    0x25e9(%rip),%rax
cmpl   $0x0,(%rax)
je     1a0e <input_queries+0x8ce>
lea    0x8c5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <input_int@plt>
mov    %eax,%ecx
mov    0x30(%rbp),%rax
mov    %ecx,(%rax)
mov    0x20(%rbp),%rax
movl   $0x1,(%rax)
jmp    1a2c <input_queries+0x8ec>
mov    0x30(%rbp),%rax
mov    (%rax),%eax
mov    0x30(%rbp),%rcx
imul   0x4(%rcx),%eax
mov    0x30(%rbp),%rcx
imul   0x8(%rcx),%eax
mov    %eax,-0x38(%rbp)
mov    0x58(%rbp),%rax
movl   $0x0,(%rax)
cmpl   $0x3,-0x38(%rbp)
jg     1a68 <input_queries+0x928>
mov    0x58(%rbp),%rax
movl   $0x1,(%rax)
jmp    1bb3 <input_queries+0xa73>
cmpl   $0x7,-0x38(%rbp)
jg     1b09 <input_queries+0x9c9>
mov    0x2567(%rip),%rax
cmpl   $0x0,(%rax)
je     1a90 <input_queries+0x950>
lea    0x856(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1a95 <input_queries+0x955>
mov    0x58(%rbp),%rcx
mov    $0x1,%al
cmpl   $0x1,(%rcx)
mov    %al,-0x3c(%rbp)
jl     1ab4 <input_queries+0x974>
mov    0x58(%rbp),%rax
cmpl   $0x2,(%rax)
setg   %al
mov    %al,-0x3c(%rbp)
mov    -0x3c(%rbp),%al
test   $0x1,%al
jne    1ac4 <input_queries+0x984>
jmp    1b04 <input_queries+0x9c4>
mov    0x2515(%rip),%rax
cmpl   $0x0,(%rax)
je     1af0 <input_queries+0x9b0>
lea    0x81e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x821(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <input_int@plt>
mov    %eax,%ecx
mov    0x58(%rbp),%rax
mov    %ecx,(%rax)
jmp    1a95 <input_queries+0x955>
jmp    1bae <input_queries+0xa6e>
mov    0x24d0(%rip),%rax
cmpl   $0x0,(%rax)
je     1b27 <input_queries+0x9e7>
lea    0x7bf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1b2c <input_queries+0x9ec>
mov    0x58(%rbp),%rcx
mov    $0x1,%al
cmpl   $0x1,(%rcx)
mov    %al,-0x3d(%rbp)
jl     1b4b <input_queries+0xa0b>
mov    0x58(%rbp),%rax
cmpl   $0x3,(%rax)
setg   %al
mov    %al,-0x3d(%rbp)
mov    -0x3d(%rbp),%al
test   $0x1,%al
jne    1b5b <input_queries+0xa1b>
jmp    1ba9 <input_queries+0xa69>
mov    0x247e(%rip),%rax
cmpl   $0x0,(%rax)
je     1b95 <input_queries+0xa55>
lea    0x787(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x78a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x791(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <input_int@plt>
mov    %eax,%ecx
mov    0x58(%rbp),%rax
mov    %ecx,(%rax)
jmp    1b2c <input_queries+0x9ec>
jmp    1bae <input_queries+0xa6e>
jmp    1bb3 <input_queries+0xa73>
jmp    1bb8 <input_queries+0xa78>
mov    0x38(%rbp),%rax
cmpl   $0x1,(%rax)
je     1bd2 <input_queries+0xa92>
mov    0x48(%rbp),%rax
cmpl   $0x0,(%rax)
je     1c0f <input_queries+0xacf>
mov    0x50(%rbp),%rax
mov    (%rax),%eax
mov    0x58(%rbp),%rcx
mov    (%rcx),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
shl    $0x1,%ecx
cmp    %ecx,%eax
jge    1c0a <input_queries+0xaca>
mov    0x58(%rbp),%rax
mov    (%rax),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,%ecx
shl    $0x1,%ecx
mov    0x50(%rbp),%rax
mov    %ecx,(%rax)
jmp    1c0f <input_queries+0xacf>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<input_queries>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,0x20(%rsp)
mov    %r8,0x10(%rsp)
mov    %rcx,%r13
mov    %rdx,0x18(%rsp)
mov    %rsi,0x8(%rsp)
mov    %rdi,%rbp
mov    0x70(%rsp),%rbx
mov    0x2e2c(%rip),%rax
cmpl   $0x0,(%rax)
jle    1195 <input_queries+0x45>
lea    0x118f(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e24(%rip),%rax
mov    (%rax),%eax
mov    %eax,(%rbx)
movq   $0x0,0x0(%rbp)
lea    0xe80(%rip),%r14
lea    0x1135(%rip),%rbx
lea    0xe75(%rip),%r15
lea    0xe58(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x2e09(%rip),%rax
cmpl   $0x0,(%rax)
je     11e6 <input_queries+0x96>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r13,%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
call   1060 <fopen@plt>
mov    %rax,0x0(%rbp)
test   %rax,%rax
jne    1219 <input_queries+0xc9>
mov    %r15,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
cmpq   $0x0,0x0(%rbp)
je     11d0 <input_queries+0x80>
mov    0x2db0(%rip),%rax
cmpl   $0x0,(%rax)
mov    0x2d7e(%rip),%rbp
mov    0xa0(%rsp),%r12
mov    0x98(%rsp),%r13
mov    0x88(%rsp),%r14
mov    0x18(%rsp),%rbx
je     127a <input_queries+0x12a>
cmpl   $0x0,0x0(%rbp)
jne    127a <input_queries+0x12a>
mov    0x2d8a(%rip),%rax
cmpl   $0x0,(%rax)
je     1269 <input_queries+0x119>
lea    0xdec(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdbf(%rip),%rdi
mov    0x60(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x2d57(%rip),%rax
cmpl   $0x0,(%rax)
jns    12b1 <input_queries+0x161>
mov    0x2d53(%rip),%rax
cmpl   $0x0,(%rax)
je     12a0 <input_queries+0x150>
lea    0xdce(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd88(%rip),%rdi
mov    0x68(%rsp),%rsi
call   1050 <scanf@plt>
movl   $0x0,0x0(%r13)
movl   $0x0,(%r14)
mov    0x8(%rsp),%rax
movq   $0x0,(%rax)
movq   $0x0,(%rbx)
cmpl   $0x0,0x0(%rbp)
je     12e5 <input_queries+0x195>
movl   $0x2,(%r14)
jmp    147f <input_queries+0x32f>
lea    0xfd6(%rip),%rbp
lea    0xfde(%rip),%r12
lea    0xfe6(%rip),%r14
lea    0xfec(%rip),%r15
lea    0xff2(%rip),%r13
lea    0xffb(%rip),%rbx
jmp    1339 <input_queries+0x1e9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <input_int@plt>
mov    0x88(%rsp),%rcx
mov    %eax,(%rcx)
lea    -0x8(%rax),%ecx
cmp    $0xfffffff9,%ecx
jae    138f <input_queries+0x23f>
mov    0x2ca0(%rip),%rax
cmpl   $0x0,(%rax)
je     1320 <input_queries+0x1d0>
lea    0xf46(%rip),%rdi
call   1030 <puts@plt>
lea    0xf56(%rip),%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
jmp    1320 <input_queries+0x1d0>
add    $0xffffffff,%eax
cmp    $0x6,%eax
mov    0xa0(%rsp),%r12
mov    0x98(%rsp),%r13
mov    0x18(%rsp),%rdx
ja     16d1 <input_queries+0x581>
lea    0xc49(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2c31(%rip),%rax
cmpl   $0x5,(%rax)
mov    0x8(%rsp),%rax
jne    1453 <input_queries+0x303>
cmpq   $0x0,(%rax)
jne    1453 <input_queries+0x303>
lea    0xc4d(%rip),%r13
lea    0xf02(%rip),%rbp
lea    0xcee(%rip),%r14
lea    0xccc(%rip),%r15
nopw   0x0(%rax,%rax,1)
mov    0x2bd9(%rip),%rax
cmpl   $0x0,(%rax)
je     1416 <input_queries+0x2c6>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    0x10(%rsp),%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1060 <fopen@plt>
mov    0x8(%rsp),%rbx
mov    %rax,(%rbx)
test   %rax,%rax
jne    1453 <input_queries+0x303>
mov    %r14,%rdi
mov    0x10(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
cmpq   $0x0,(%rbx)
je     1400 <input_queries+0x2b0>
movl   $0x0,(%r12)
lea    0xca1(%rip),%rbx
mov    0x98(%rsp),%r13
jmp    14d4 <input_queries+0x384>
nopl   0x0(%rax)
xor    %eax,%eax
call   1070 <input_int@plt>
lea    -0x3(%rax),%ecx
cmp    $0xfffffffe,%ecx
jae    14ec <input_queries+0x39c>
mov    0x2b5a(%rip),%rax
cmpl   $0x0,(%rax)
je     1470 <input_queries+0x320>
lea    0xdc9(%rip),%rdi
call   1030 <puts@plt>
lea    0xdca(%rip),%rdi
call   1030 <puts@plt>
lea    0xdda(%rip),%rdi
call   1030 <puts@plt>
jmp    1470 <input_queries+0x320>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <input_int@plt>
mov    %eax,(%r12)
cmp    $0x2,%eax
jge    16d1 <input_queries+0x581>
mov    0x2b05(%rip),%rax
cmpl   $0x0,(%rax)
je     14c0 <input_queries+0x370>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    14c0 <input_queries+0x370>
cmp    $0x1,%eax
jne    16d1 <input_queries+0x581>
mov    %r13,%r15
mov    0x2af9(%rip),%rax
cmpl   $0x5,(%rax)
mov    0x8(%rsp),%rax
jne    1581 <input_queries+0x431>
cmpq   $0x0,(%rax)
jne    1581 <input_queries+0x431>
lea    0xb19(%rip),%r14
lea    0xdce(%rip),%rbp
mov    0x10(%rsp),%r13
mov    0x8(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
mov    0x2aa9(%rip),%rax
cmpl   $0x0,(%rax)
je     154a <input_queries+0x3fa>
lea    0xb80(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r13,%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
call   1060 <fopen@plt>
mov    %rax,(%rbx)
test   %rax,%rax
jne    1581 <input_queries+0x431>
lea    0xb6f(%rip),%rdi
mov    0x10(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
cmpq   $0x0,(%rbx)
je     1530 <input_queries+0x3e0>
mov    %r15,%r13
movl   $0x1,(%r15)
movl   $0x0,(%r12)
lea    0xb69(%rip),%rbx
jmp    15b3 <input_queries+0x463>
nopl   0x0(%rax)
xor    %eax,%eax
call   1070 <input_int@plt>
mov    %eax,(%r12)
test   %eax,%eax
jg     16d1 <input_queries+0x581>
mov    0x2a26(%rip),%rax
cmpl   $0x0,(%rax)
je     15a0 <input_queries+0x450>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    15a0 <input_queries+0x450>
mov    0x8(%rsp),%rax
cmpq   $0x0,(%rax)
jne    16d1 <input_queries+0x581>
lea    0xa4e(%rip),%rbx
lea    0xd03(%rip),%rbp
lea    0xaef(%rip),%r14
mov    0x10(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x29d9(%rip),%rax
cmpl   $0x0,(%rax)
je     161a <input_queries+0x4ca>
lea    0xab0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
call   1060 <fopen@plt>
mov    0x8(%rsp),%rcx
mov    %rax,(%rcx)
test   %rax,%rax
jne    16d1 <input_queries+0x581>
mov    %r14,%rdi
mov    0x10(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%rax
cmpq   $0x0,(%rax)
je     1600 <input_queries+0x4b0>
jmp    16d1 <input_queries+0x581>
cmpq   $0x0,(%rdx)
jne    16d1 <input_queries+0x581>
lea    0x9c5(%rip),%r14
lea    0xc7a(%rip),%rbp
mov    0x20(%rsp),%r15
mov    0x18(%rsp),%rbx
nopl   0x0(%rax,%rax,1)
mov    0x2959(%rip),%rax
cmpl   $0x0,(%rax)
je     169a <input_queries+0x54a>
lea    0x9f7(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
call   1060 <fopen@plt>
mov    %rax,(%rbx)
test   %rax,%rax
jne    16d1 <input_queries+0x581>
lea    0x9e3(%rip),%rdi
mov    0x20(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
cmpq   $0x0,(%rbx)
je     1680 <input_queries+0x530>
mov    0x28d0(%rip),%rax
cmpl   $0x0,(%rax)
je     1734 <input_queries+0x5e4>
mov    0x90(%rsp),%rax
movl   $0x2,(%rax)
mov    0x70(%rsp),%rax
cmpl   $0x0,(%rax)
mov    0x88(%rsp),%r15
mov    0xa8(%rsp),%rbp
mov    0x78(%rsp),%rax
je     1729 <input_queries+0x5d9>
jle    192f <input_queries+0x7df>
mov    0x80(%rsp),%rax
movl   $0x2,(%rax)
movl   $0x1,0x8(%rax)
add    $0x4,%rax
movl   $0x1,(%rax)
jmp    192f <input_queries+0x7df>
mov    0x90(%rsp),%rax
movl   $0x0,(%rax)
mov    0x88(%rsp),%r15
cmpl   $0x1,(%r15)
jne    17ca <input_queries+0x67a>
movl   $0x1,(%rax)
mov    0x70(%rsp),%r14
cmpl   $0x0,(%r14)
je     1833 <input_queries+0x6e3>
movabs $0x100000001,%rax
mov    0x80(%rsp),%rbx
mov    %rax,0x4(%rbx)
mov    (%r14),%eax
cmp    $0x3,%eax
je     18a6 <input_queries+0x756>
cmp    $0x2,%eax
jne    18e7 <input_queries+0x797>
mov    0x2849(%rip),%rax
cmpl   $0x0,(%rax)
mov    0xa8(%rsp),%rbp
je     17b2 <input_queries+0x662>
lea    0x9ae(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <input_int@plt>
mov    %eax,(%rbx)
xor    %eax,%eax
call   1070 <input_int@plt>
mov    %eax,0x4(%rbx)
jmp    1919 <input_queries+0x7c9>
lea    0xa52(%rip),%r14
lea    0xa64(%rip),%rbp
lea    0xa71(%rip),%rbx
jmp    180d <input_queries+0x6bd>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <input_int@plt>
mov    0x90(%rsp),%rcx
mov    %eax,(%rcx)
add    $0xfffffffd,%eax
cmp    $0xfffffffe,%eax
jae    1756 <input_queries+0x606>
mov    0x27cc(%rip),%rax
cmpl   $0x0,(%rax)
je     17f0 <input_queries+0x6a0>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
jmp    17f0 <input_queries+0x6a0>
mov    0x78(%rsp),%rax
movl   $0x0,(%rax)
lea    0x9b6(%rip),%rbx
lea    0x8df(%rip),%r14
mov    0xa8(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x2779(%rip),%rax
cmpl   $0x0,(%rax)
je     1876 <input_queries+0x726>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <input_int@plt>
mov    0x78(%rsp),%rcx
mov    %eax,(%rcx)
test   %eax,%eax
jg     189b <input_queries+0x74b>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    0x78(%rsp),%rax
mov    (%rax),%eax
test   %eax,%eax
jle    1860 <input_queries+0x710>
mov    $0x1,%edx
mov    %eax,%ecx
shl    %cl,%edx
jmp    1923 <input_queries+0x7d3>
mov    0x2733(%rip),%rax
cmpl   $0x0,(%rax)
je     18c0 <input_queries+0x770>
lea    0x8c0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <input_int@plt>
mov    %eax,(%rbx)
xor    %eax,%eax
call   1070 <input_int@plt>
mov    %eax,0x4(%rbx)
xor    %eax,%eax
call   1070 <input_int@plt>
mov    %eax,0x8(%rbx)
mov    0xa8(%rsp),%rbp
jmp    1919 <input_queries+0x7c9>
mov    0x26f2(%rip),%rax
cmpl   $0x0,(%rax)
mov    0xa8(%rsp),%rbp
je     1909 <input_queries+0x7b9>
lea    0x897(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <input_int@plt>
mov    %eax,(%rbx)
movl   $0x1,(%r14)
mov    0x4(%rbx),%edx
imul   (%rbx),%edx
imul   0x8(%rbx),%edx
movl   $0x0,0x0(%rbp)
cmp    $0x4,%edx
jge    196a <input_queries+0x81a>
movl   $0x1,0x0(%rbp)
mov    $0x1,%eax
cmpl   $0x1,(%r15)
je     1948 <input_queries+0x7f8>
cmpl   $0x0,0x0(%r13)
je     195b <input_queries+0x80b>
mov    $0x2,%edx
mov    %eax,%ecx
shl    %cl,%edx
cmp    %edx,(%r12)
jge    195b <input_queries+0x80b>
mov    %edx,(%r12)
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x266f(%rip),%rax
mov    (%rax),%eax
cmp    $0x7,%edx
ja     19e4 <input_queries+0x894>
test   %eax,%eax
je     1993 <input_queries+0x843>
lea    0x85f(%rip),%rdi
call   1030 <puts@plt>
mov    0x0(%rbp),%eax
lea    -0x3(%rax),%ecx
cmp    $0xfffffffd,%ecx
ja     193b <input_queries+0x7eb>
lea    0x824(%rip),%r14
lea    0x82d(%rip),%rbx
jmp    19c6 <input_queries+0x876>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %eax,%eax
call   1070 <input_int@plt>
mov    %eax,0x0(%rbp)
lea    -0x3(%rax),%ecx
cmp    $0xfffffffe,%ecx
jae    193b <input_queries+0x7eb>
mov    0x2613(%rip),%rax
cmpl   $0x0,(%rax)
je     19b0 <input_queries+0x860>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
jmp    19b0 <input_queries+0x860>
test   %eax,%eax
je     1a03 <input_queries+0x8b3>
lea    0x7f3(%rip),%rdi
call   1030 <puts@plt>
mov    0x0(%rbp),%eax
lea    -0x4(%rax),%ecx
cmp    $0xfffffffc,%ecx
ja     193b <input_queries+0x7eb>
lea    0x7b4(%rip),%r14
lea    0x7bd(%rip),%rbp
lea    0x794(%rip),%rbx
jmp    1a3d <input_queries+0x8ed>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <input_int@plt>
mov    0xa8(%rsp),%rcx
mov    %eax,(%rcx)
lea    -0x4(%rax),%ecx
cmp    $0xfffffffd,%ecx
jae    193b <input_queries+0x7eb>
mov    0x259c(%rip),%rax
cmpl   $0x0,(%rax)
je     1a20 <input_queries+0x8d0>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
jmp    1a20 <input_queries+0x8d0>

LLVM IR (-O0):
@DEBUG_TRACE = external global i32
@.str = [26 x i8] c"<Entering input_queries>\0A\00"
@ARCHITECTURE = external global i32
@PROMPT = external global i32
@.str.1 = [19 x i8] c"Graph input file: \00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [28 x i8] c"Graph file `%s' not found.\0A\00"
@OUTPUT_ASSIGN = external global i32
@SEQUENCE = external global i32
@.str.5 = [25 x i8] c"Assignment output file: \00"
@ECHO = external global i32
@.str.6 = [35 x i8] c"File name for saving run results: \00"
@.str.7 = [29 x i8] c"Global partitioning method:\0A\00"
@.str.8 = [21 x i8] c" (1) Multilevel-KL\0A\00"
@.str.9 = [16 x i8] c" (2) Spectral\0A\00"
@.str.10 = [16 x i8] c" (3) Inertial\0A\00"
@.str.11 = [14 x i8] c" (4) Linear\0A\00"
@.str.12 = [14 x i8] c" (5) Random\0A\00"
@.str.13 = [17 x i8] c" (6) Scattered\0A\00"
@.str.14 = [22 x i8] c" (7) Read-from-file\0A\00"
@.str.15 = [24 x i8] c"Assignment input file: \00"
@.str.16 = [33 x i8] c"Assignment file `%s' not found.\0A\00"
@.str.17 = [27 x i8] c"Geometry input file name: \00"
@.str.18 = [37 x i8] c"Geometry input file `%s' not found.\0A\00"
@.str.19 = [14 x i8] c"Eigensolver:\0A\00"
@.str.20 = [29 x i8] c" (1) Multilevel RQI/Symmlq\0A\00"
@.str.21 = [15 x i8] c" (2) Lanczos\0A\00"
@MATCH_TYPE = external global i32
@.str.22 = [40 x i8] c"Number of vertices to coarsen down to: \00"
@.str.23 = [26 x i8] c"Local refinement method:\0A\00"
@.str.24 = [21 x i8] c" (1) Kernighan-Lin\0A\00"
@.str.25 = [12 x i8] c" (2) None\0A\00"
@.str.26 = [46 x i8] c"Total number of target hypercube dimensions: \00"
@.str.27 = [41 x i8] c" Number of divisions must be at least 1\0A\00"
@.str.28 = [32 x i8] c"X and Y extent of of 2-D mesh: \00"
@.str.29 = [32 x i8] c"X, Y and Z extent of 3-D mesh: \00"
@.str.30 = [19 x i8] c"Size of 1-D mesh: \00"
@.str.31 = [26 x i8] c"Partitioning dimension: \0A\00"
@.str.32 = [17 x i8] c" (1) Bisection\0A\00"
@.str.33 = [21 x i8] c" (2) Quadrisection\0A\00"
@.str.34 = [19 x i8] c" (3) Octasection\0A\00"
define void @input_queries(i32** %0, i32** %1, i32** %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, i32* %8, i32* %9, i32* %10, i32* %11, i32* %12, i32* %13, i32* %14, i32* %15) {
%17 = alloca i32**
%18 = alloca i32**
%19 = alloca i32**
%20 = alloca i8*
%21 = alloca i8*
%22 = alloca i8*
%23 = alloca i8*
%24 = alloca i8*
%25 = alloca i32*
%26 = alloca i32*
%27 = alloca i32*
%28 = alloca i32*
%29 = alloca i32*
%30 = alloca i32*
%31 = alloca i32*
%32 = alloca i32*
%33 = alloca i32
%34 = alloca i32
store i32** %0, i32*** %17
store i32** %1, i32*** %18
store i32** %2, i32*** %19
store i8* %3, i8** %20
store i8* %4, i8** %21
store i8* %5, i8** %22
store i8* %6, i8** %23
store i8* %7, i8** %24
store i32* %8, i32** %25
store i32* %9, i32** %26
store i32* %10, i32** %27
store i32* %11, i32** %28
store i32* %12, i32** %29
store i32* %13, i32** %30
store i32* %14, i32** %31
store i32* %15, i32** %32
%35 = load i32, i32* @DEBUG_TRACE
%36 = icmp sgt i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %16
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
br label %39
39: ; preds = %37, %16
%40 = load i32, i32* @ARCHITECTURE
%41 = load i32*, i32** %25
store i32 %40, i32* %41
%42 = load i32**, i32*** %17
store i32* null, i32** %42
br label %43
43: ; preds = %64, %39
%44 = load i32**, i32*** %17
%45 = load i32*, i32** %44
%46 = icmp eq i32* %45, null
br i1 %46, label %47, label %65
47: ; preds = %43
%48 = load i32, i32* @PROMPT
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
br label %52
52: ; preds = %50, %47
%53 = load i8*, i8** %20
%54 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %53)
%55 = load i8*, i8** %20
%56 = call i32* @fopen(i8* %55, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%57 = load i32**, i32*** %17
store i32* %56, i32** %57
%58 = load i32**, i32*** %17
%59 = load i32*, i32** %58
%60 = icmp eq i32* %59, null
br i1 %60, label %61, label %64
61: ; preds = %52
%62 = load i8*, i8** %20
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i8* %62)
br label %64
64: ; preds = %61, %52
br label %43
65: ; preds = %43
%66 = load i32, i32* @OUTPUT_ASSIGN
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %79
68: ; preds = %65
%69 = load i32, i32* @SEQUENCE
%70 = icmp ne i32 %69, 0
br i1 %70, label %79, label %71
71: ; preds = %68
%72 = load i32, i32* @PROMPT
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %71
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
br label %76
76: ; preds = %74, %71
%77 = load i8*, i8** %23
%78 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %77)
br label %79
79: ; preds = %76, %68, %65
%80 = load i32, i32* @ECHO
%81 = icmp slt i32 %80, 0
br i1 %81, label %82, label %90
82: ; preds = %79
%83 = load i32, i32* @PROMPT
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %87
85: ; preds = %82
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
br label %87
87: ; preds = %85, %82
%88 = load i8*, i8** %24
%89 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %88)
br label %90
90: ; preds = %87, %79
%91 = load i32*, i32** %30
store i32 0, i32* %91
%92 = load i32*, i32** %28
store i32 0, i32* %92
%93 = load i32**, i32*** %18
store i32* null, i32** %93
%94 = load i32**, i32*** %19
store i32* null, i32** %94
%95 = load i32, i32* @SEQUENCE
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %99
97: ; preds = %90
%98 = load i32*, i32** %28
store i32 2, i32* %98
br label %126
99: ; preds = %90
br label %100
100: ; preds = %122, %99
%101 = load i32*, i32** %28
%102 = load i32, i32* %101
%103 = icmp slt i32 %102, 1
br i1 %103, label %108, label %104
104: ; preds = %100
%105 = load i32*, i32** %28
%106 = load i32, i32* %105
%107 = icmp sgt i32 %106, 7
br label %108
108: ; preds = %104, %100
%109 = phi i1 [ true, %100 ], [ %107, %104 ]
br i1 %109, label %110, label %125
110: ; preds = %108
%111 = load i32, i32* @PROMPT
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %122
113: ; preds = %110
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0))
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0))
br label %122
122: ; preds = %113, %110
%123 = call i32 (...) @input_int()
%124 = load i32*, i32** %28
store i32 %123, i32* %124
br label %100
125: ; preds = %108
br label %126
126: ; preds = %125, %97
%127 = load i32*, i32** %28
%128 = load i32, i32* %127
%129 = icmp eq i32 %128, 7
br i1 %129, label %130, label %154
130: ; preds = %126
br label %131
131: ; preds = %152, %130
%132 = load i32**, i32*** %19
%133 = load i32*, i32** %132
%134 = icmp eq i32* %133, null
br i1 %134, label %135, label %153
135: ; preds = %131
%136 = load i32, i32* @PROMPT
%137 = icmp ne i32 %136, 0
br i1 %137, label %138, label %140
138: ; preds = %135
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0))
br label %140
140: ; preds = %138, %135
%141 = load i8*, i8** %22
%142 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %141)
%143 = load i8*, i8** %22
%144 = call i32* @fopen(i8* %143, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%145 = load i32**, i32*** %19
store i32* %144, i32** %145
%146 = load i32**, i32*** %19
%147 = load i32*, i32** %146
%148 = icmp eq i32* %147, null
br i1 %148, label %149, label %152
149: ; preds = %140
%150 = load i8*, i8** %22
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.16, i64 0, i64 0), i8* %150)
br label %152
152: ; preds = %149, %140
br label %131
153: ; preds = %131
br label %300
154: ; preds = %126
%155 = load i32*, i32** %28
%156 = load i32, i32* %155
%157 = icmp eq i32 %156, 3
br i1 %157, label %158, label %182
158: ; preds = %154
br label %159
159: ; preds = %180, %158
%160 = load i32**, i32*** %18
%161 = load i32*, i32** %160
%162 = icmp eq i32* %161, null
br i1 %162, label %163, label %181
163: ; preds = %159
%164 = load i32, i32* @PROMPT
%165 = icmp ne i32 %164, 0
br i1 %165, label %166, label %168
166: ; preds = %163
%167 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0))
br label %168
168: ; preds = %166, %163
%169 = load i8*, i8** %21
%170 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %169)
%171 = load i8*, i8** %21
%172 = call i32* @fopen(i8* %171, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%173 = load i32**, i32*** %18
store i32* %172, i32** %173
%174 = load i32**, i32*** %18
%175 = load i32*, i32** %174
%176 = icmp eq i32* %175, null
br i1 %176, label %177, label %180
177: ; preds = %168
%178 = load i8*, i8** %21
%179 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0), i8* %178)
br label %180
180: ; preds = %177, %168
br label %159
181: ; preds = %159
br label %299
182: ; preds = %154
%183 = load i32*, i32** %28
%184 = load i32, i32* %183
%185 = icmp eq i32 %184, 2
br i1 %185, label %186, label %251
186: ; preds = %182
store i32 0, i32* %33
br label %187
187: ; preds = %202, %186
%188 = load i32, i32* %33
%189 = icmp slt i32 %188, 1
br i1 %189, label %193, label %190
190: ; preds = %187
%191 = load i32, i32* %33
%192 = icmp sgt i32 %191, 2
br label %193
193: ; preds = %190, %187
%194 = phi i1 [ true, %187 ], [ %192, %190 ]
br i1 %194, label %195, label %204
195: ; preds = %193
%196 = load i32, i32* @PROMPT
%197 = icmp ne i32 %196, 0
br i1 %197, label %198, label %202
198: ; preds = %195
%199 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0))
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0))
%201 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0))
br label %202
202: ; preds = %198, %195
%203 = call i32 (...) @input_int()
store i32 %203, i32* %33
br label %187
204: ; preds = %193
%205 = load i32, i32* %33
%206 = icmp eq i32 %205, 1
br i1 %206, label %207, label %250
207: ; preds = %204
%208 = load i32, i32* @MATCH_TYPE
%209 = icmp eq i32 %208, 5
br i1 %209, label %210, label %234
210: ; preds = %207
br label %211
211: ; preds = %232, %210
%212 = load i32**, i32*** %18
%213 = load i32*, i32** %212
%214 = icmp eq i32* %213, null
br i1 %214, label %215, label %233
215: ; preds = %211
%216 = load i32, i32* @PROMPT
%217 = icmp ne i32 %216, 0
br i1 %217, label %218, label %220
218: ; preds = %215
%219 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0))
br label %220
220: ; preds = %218, %215
%221 = load i8*, i8** %21
%222 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %221)
%223 = load i8*, i8** %21
%224 = call i32* @fopen(i8* %223, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%225 = load i32**, i32*** %18
store i32* %224, i32** %225
%226 = load i32**, i32*** %18
%227 = load i32*, i32** %226
%228 = icmp eq i32* %227, null
br i1 %228, label %229, label %232
229: ; preds = %220
%230 = load i8*, i8** %21
%231 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0), i8* %230)
br label %232
232: ; preds = %229, %220
br label %211
233: ; preds = %211
br label %234
234: ; preds = %233, %207
%235 = load i32*, i32** %30
store i32 1, i32* %235
%236 = load i32*, i32** %31
store i32 0, i32* %236
br label %237
237: ; preds = %246, %234
%238 = load i32*, i32** %31
%239 = load i32, i32* %238
%240 = icmp sle i32 %239, 0
br i1 %240, label %241, label %249
241: ; preds = %237
%242 = load i32, i32* @PROMPT
%243 = icmp ne i32 %242, 0
br i1 %243, label %244, label %246
244: ; preds = %241
%245 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.22, i64 0, i64 0))
br label %246
246: ; preds = %244, %241
%247 = call i32 (...) @input_int()
%248 = load i32*, i32** %31
store i32 %247, i32* %248
br label %237
249: ; preds = %237
br label %250
250: ; preds = %249, %204
br label %298
251: ; preds = %182
%252 = load i32*, i32** %28
%253 = load i32, i32* %252
%254 = icmp eq i32 %253, 1
br i1 %254, label %255, label %297
255: ; preds = %251
%256 = load i32, i32* @MATCH_TYPE
%257 = icmp eq i32 %256, 5
br i1 %257, label %258, label %282
258: ; preds = %255
br label %259
259: ; preds = %280, %258
%260 = load i32**, i32*** %18
%261 = load i32*, i32** %260
%262 = icmp eq i32* %261, null
br i1 %262, label %263, label %281
263: ; preds = %259
%264 = load i32, i32* @PROMPT
%265 = icmp ne i32 %264, 0
br i1 %265, label %266, label %268
266: ; preds = %263
%267 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0))
br label %268
268: ; preds = %266, %263
%269 = load i8*, i8** %21
%270 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %269)
%271 = load i8*, i8** %21
%272 = call i32* @fopen(i8* %271, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%273 = load i32**, i32*** %18
store i32* %272, i32** %273
%274 = load i32**, i32*** %18
%275 = load i32*, i32** %274
%276 = icmp eq i32* %275, null
br i1 %276, label %277, label %280
277: ; preds = %268
%278 = load i8*, i8** %21
%279 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0), i8* %278)
br label %280
280: ; preds = %277, %268
br label %259
281: ; preds = %259
br label %282
282: ; preds = %281, %255
%283 = load i32*, i32** %31
store i32 0, i32* %283
br label %284
284: ; preds = %293, %282
%285 = load i32*, i32** %31
%286 = load i32, i32* %285
%287 = icmp sle i32 %286, 1
br i1 %287, label %288, label %296
288: ; preds = %284
%289 = load i32, i32* @PROMPT
%290 = icmp ne i32 %289, 0
br i1 %290, label %291, label %293
291: ; preds = %288
%292 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.22, i64 0, i64 0))
br label %293
293: ; preds = %291, %288
%294 = call i32 (...) @input_int()
%295 = load i32*, i32** %31
store i32 %294, i32* %295
br label %284
296: ; preds = %284
br label %297
297: ; preds = %296, %251
br label %298
298: ; preds = %297, %250
br label %299
299: ; preds = %298, %181
br label %300
300: ; preds = %299, %153
%301 = load i32, i32* @SEQUENCE
%302 = icmp ne i32 %301, 0
br i1 %302, label %303, label %324
303: ; preds = %300
%304 = load i32*, i32** %29
store i32 2, i32* %304
%305 = load i32*, i32** %25
%306 = load i32, i32* %305
%307 = icmp eq i32 %306, 0
br i1 %307, label %308, label %310
308: ; preds = %303
%309 = load i32*, i32** %26
store i32 1, i32* %309
br label %322
310: ; preds = %303
%311 = load i32*, i32** %25
%312 = load i32, i32* %311
%313 = icmp sgt i32 %312, 0
br i1 %313, label %314, label %321
314: ; preds = %310
%315 = load i32*, i32** %27
%316 = getelementptr inbounds i32, i32* %315, i64 0
store i32 2, i32* %316
%317 = load i32*, i32** %27
%318 = getelementptr inbounds i32, i32* %317, i64 2
store i32 1, i32* %318
%319 = load i32*, i32** %27
%320 = getelementptr inbounds i32, i32* %319, i64 1
store i32 1, i32* %320
br label %321
321: ; preds = %314, %310
br label %322
322: ; preds = %321, %308
%323 = load i32*, i32** %32
store i32 1, i32* %323
br label %507
324: ; preds = %300
%325 = load i32*, i32** %29
store i32 0, i32* %325
%326 = load i32*, i32** %28
%327 = load i32, i32* %326
%328 = icmp eq i32 %327, 1
br i1 %328, label %329, label %331
329: ; preds = %324
%330 = load i32*, i32** %29
store i32 1, i32* %330
br label %353
331: ; preds = %324
br label %332
332: ; preds = %349, %331
%333 = load i32*, i32** %29
%334 = load i32, i32* %333
%335 = icmp slt i32 %334, 1
br i1 %335, label %340, label %336
336: ; preds = %332
%337 = load i32*, i32** %29
%338 = load i32, i32* %337
%339 = icmp sgt i32 %338, 2
br label %340
340: ; preds = %336, %332
%341 = phi i1 [ true, %332 ], [ %339, %336 ]
br i1 %341, label %342, label %352
342: ; preds = %340
%343 = load i32, i32* @PROMPT
%344 = icmp ne i32 %343, 0
br i1 %344, label %345, label %349
345: ; preds = %342
%346 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.23, i64 0, i64 0))
%347 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.24, i64 0, i64 0))
%348 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.25, i64 0, i64 0))
br label %349
349: ; preds = %345, %342
%350 = call i32 (...) @input_int()
%351 = load i32*, i32** %29
store i32 %350, i32* %351
br label %332
352: ; preds = %340
br label %353
353: ; preds = %352, %329
%354 = load i32*, i32** %25
%355 = load i32, i32* %354
%356 = icmp eq i32 %355, 0
br i1 %356, label %357, label %381
357: ; preds = %353
%358 = load i32*, i32** %26
store i32 0, i32* %358
br label %359
359: ; preds = %376, %357
%360 = load i32*, i32** %26
%361 = load i32, i32* %360
%362 = icmp slt i32 %361, 1
br i1 %362, label %363, label %377
363: ; preds = %359
%364 = load i32, i32* @PROMPT
%365 = icmp ne i32 %364, 0
br i1 %365, label %366, label %368
366: ; preds = %363
%367 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.26, i64 0, i64 0))
br label %368
368: ; preds = %366, %363
%369 = call i32 (...) @input_int()
%370 = load i32*, i32** %26
store i32 %369, i32* %370
%371 = load i32*, i32** %26
%372 = load i32, i32* %371
%373 = icmp slt i32 %372, 1
br i1 %373, label %374, label %376
374: ; preds = %368
%375 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.27, i64 0, i64 0))
br label %376
376: ; preds = %374, %368
br label %359
377: ; preds = %359
%378 = load i32*, i32** %26
%379 = load i32, i32* %378
%380 = shl i32 1, %379
store i32 %380, i32* %34
br label %443
381: ; preds = %353
%382 = load i32*, i32** %27
%383 = getelementptr inbounds i32, i32* %382, i64 2
store i32 1, i32* %383
%384 = load i32*, i32** %27
%385 = getelementptr inbounds i32, i32* %384, i64 1
store i32 1, i32* %385
%386 = load i32*, i32** %25
%387 = load i32, i32* %386
%388 = icmp eq i32 %387, 2
br i1 %388, label %389, label %401
389: ; preds = %381
%390 = load i32, i32* @PROMPT
%391 = icmp ne i32 %390, 0
br i1 %391, label %392, label %394
392: ; preds = %389
%393 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.28, i64 0, i64 0))
br label %394
394: ; preds = %392, %389
%395 = call i32 (...) @input_int()
%396 = load i32*, i32** %27
%397 = getelementptr inbounds i32, i32* %396, i64 0
store i32 %395, i32* %397
%398 = call i32 (...) @input_int()
%399 = load i32*, i32** %27
%400 = getelementptr inbounds i32, i32* %399, i64 1
store i32 %398, i32* %400
br label %431
401: ; preds = %381
%402 = load i32*, i32** %25
%403 = load i32, i32* %402
%404 = icmp eq i32 %403, 3
br i1 %404, label %405, label %420
405: ; preds = %401
%406 = load i32, i32* @PROMPT
%407 = icmp ne i32 %406, 0
br i1 %407, label %408, label %410
408: ; preds = %405
%409 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.29, i64 0, i64 0))
br label %410
410: ; preds = %408, %405
%411 = call i32 (...) @input_int()
%412 = load i32*, i32** %27
%413 = getelementptr inbounds i32, i32* %412, i64 0
store i32 %411, i32* %413
%414 = call i32 (...) @input_int()
%415 = load i32*, i32** %27
%416 = getelementptr inbounds i32, i32* %415, i64 1
store i32 %414, i32* %416
%417 = call i32 (...) @input_int()
%418 = load i32*, i32** %27
%419 = getelementptr inbounds i32, i32* %418, i64 2
store i32 %417, i32* %419
br label %430
420: ; preds = %401
%421 = load i32, i32* @PROMPT
%422 = icmp ne i32 %421, 0
br i1 %422, label %423, label %425
423: ; preds = %420
%424 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.30, i64 0, i64 0))
br label %425
425: ; preds = %423, %420
%426 = call i32 (...) @input_int()
%427 = load i32*, i32** %27
%428 = getelementptr inbounds i32, i32* %427, i64 0
store i32 %426, i32* %428
%429 = load i32*, i32** %25
store i32 1, i32* %429
br label %430
430: ; preds = %425, %410
br label %431
431: ; preds = %430, %394
%432 = load i32*, i32** %27
%433 = getelementptr inbounds i32, i32* %432, i64 0
%434 = load i32, i32* %433
%435 = load i32*, i32** %27
%436 = getelementptr inbounds i32, i32* %435, i64 1
%437 = load i32, i32* %436
%438 = mul nsw i32 %434, %437
%439 = load i32*, i32** %27
%440 = getelementptr inbounds i32, i32* %439, i64 2
%441 = load i32, i32* %440
%442 = mul nsw i32 %438, %441
store i32 %442, i32* %34
br label %443
443: ; preds = %431, %377
%444 = load i32*, i32** %32
store i32 0, i32* %444
%445 = load i32, i32* %34
%446 = icmp sle i32 %445, 3
br i1 %446, label %447, label %449
447: ; preds = %443
%448 = load i32*, i32** %32
store i32 1, i32* %448
br label %506
449: ; preds = %443
%450 = load i32, i32* %34
%451 = icmp sle i32 %450, 7
br i1 %451, label %452, label %478
452: ; preds = %449
%453 = load i32, i32* @PROMPT
%454 = icmp ne i32 %453, 0
br i1 %454, label %455, label %457
455: ; preds = %452
%456 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.31, i64 0, i64 0))
br label %457
457: ; preds = %455, %452
br label %458
458: ; preds = %474, %457
%459 = load i32*, i32** %32
%460 = load i32, i32* %459
%461 = icmp slt i32 %460, 1
br i1 %461, label %466, label %462
462: ; preds = %458
%463 = load i32*, i32** %32
%464 = load i32, i32* %463
%465 = icmp sgt i32 %464, 2
br label %466
466: ; preds = %462, %458
%467 = phi i1 [ true, %458 ], [ %465, %462 ]
br i1 %467, label %468, label %477
468: ; preds = %466
%469 = load i32, i32* @PROMPT
%470 = icmp ne i32 %469, 0
br i1 %470, label %471, label %474
471: ; preds = %468
%472 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.32, i64 0, i64 0))
%473 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.33, i64 0, i64 0))
br label %474
474: ; preds = %471, %468
%475 = call i32 (...) @input_int()
%476 = load i32*, i32** %32
store i32 %475, i32* %476
br label %458
477: ; preds = %466
br label %505
478: ; preds = %449
%479 = load i32, i32* @PROMPT
%480 = icmp ne i32 %479, 0
br i1 %480, label %481, label %483
481: ; preds = %478
%482 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.31, i64 0, i64 0))
br label %483
483: ; preds = %481, %478
br label %484
484: ; preds = %501, %483
%485 = load i32*, i32** %32
%486 = load i32, i32* %485
%487 = icmp slt i32 %486, 1
br i1 %487, label %492, label %488
488: ; preds = %484
%489 = load i32*, i32** %32
%490 = load i32, i32* %489
%491 = icmp sgt i32 %490, 3
br label %492
492: ; preds = %488, %484
%493 = phi i1 [ true, %484 ], [ %491, %488 ]
br i1 %493, label %494, label %504
494: ; preds = %492
%495 = load i32, i32* @PROMPT
%496 = icmp ne i32 %495, 0
br i1 %496, label %497, label %501
497: ; preds = %494
%498 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.32, i64 0, i64 0))
%499 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.33, i64 0, i64 0))
%500 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.34, i64 0, i64 0))
br label %501
501: ; preds = %497, %494
%502 = call i32 (...) @input_int()
%503 = load i32*, i32** %32
store i32 %502, i32* %503
br label %484
504: ; preds = %492
br label %505
505: ; preds = %504, %477
br label %506
506: ; preds = %505, %447
br label %507
507: ; preds = %506, %322
%508 = load i32*, i32** %28
%509 = load i32, i32* %508
%510 = icmp eq i32 %509, 1
br i1 %510, label %515, label %511
511: ; preds = %507
%512 = load i32*, i32** %30
%513 = load i32, i32* %512
%514 = icmp ne i32 %513, 0
br i1 %514, label %515, label %530
515: ; preds = %511, %507
%516 = load i32*, i32** %31
%517 = load i32, i32* %516
%518 = load i32*, i32** %32
%519 = load i32, i32* %518
%520 = shl i32 1, %519
%521 = mul nsw i32 2, %520
%522 = icmp slt i32 %517, %521
br i1 %522, label %523, label %529
523: ; preds = %515
%524 = load i32*, i32** %32
%525 = load i32, i32* %524
%526 = shl i32 1, %525
%527 = mul nsw i32 2, %526
%528 = load i32*, i32** %31
store i32 %527, i32* %528
br label %529
529: ; preds = %523, %515
br label %530
530: ; preds = %529, %511
ret void
}

LLVM IR (-O2):
@DEBUG_TRACE = external global i32
@ARCHITECTURE = external global i32
@PROMPT = external global i32
@.str.1 = [19 x i8] c"Graph input file: \00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [28 x i8] c"Graph file `%s' not found.\0A\00"
@OUTPUT_ASSIGN = external global i32
@SEQUENCE = external global i32
@.str.5 = [25 x i8] c"Assignment output file: \00"
@ECHO = external global i32
@.str.6 = [35 x i8] c"File name for saving run results: \00"
@.str.15 = [24 x i8] c"Assignment input file: \00"
@.str.16 = [33 x i8] c"Assignment file `%s' not found.\0A\00"
@.str.17 = [27 x i8] c"Geometry input file name: \00"
@.str.18 = [37 x i8] c"Geometry input file `%s' not found.\0A\00"
@MATCH_TYPE = external global i32
@.str.22 = [40 x i8] c"Number of vertices to coarsen down to: \00"
@.str.26 = [46 x i8] c"Total number of target hypercube dimensions: \00"
@.str.28 = [32 x i8] c"X and Y extent of of 2-D mesh: \00"
@.str.29 = [32 x i8] c"X, Y and Z extent of 3-D mesh: \00"
@.str.30 = [19 x i8] c"Size of 1-D mesh: \00"
@str.36 = [18 x i8] c" (3) Octasection\00"
@str.38 = [16 x i8] c" (1) Bisection\00"
@str.39 = [20 x i8] c" (2) Quadrisection\00"
@str.40 = [25 x i8] c"Partitioning dimension: \00"
@str.41 = [40 x i8] c" Number of divisions must be at least 1\00"
@str.42 = [25 x i8] c"Local refinement method:\00"
@str.43 = [20 x i8] c" (1) Kernighan-Lin\00"
@str.44 = [11 x i8] c" (2) None\00"
@str.45 = [13 x i8] c"Eigensolver:\00"
@str.46 = [28 x i8] c" (1) Multilevel RQI/Symmlq\00"
@str.47 = [14 x i8] c" (2) Lanczos\00"
@str.48 = [28 x i8] c"Global partitioning method:\00"
@str.49 = [20 x i8] c" (1) Multilevel-KL\00"
@str.50 = [15 x i8] c" (2) Spectral\00"
@str.51 = [15 x i8] c" (3) Inertial\00"
@str.52 = [13 x i8] c" (4) Linear\00"
@str.53 = [13 x i8] c" (5) Random\00"
@str.54 = [16 x i8] c" (6) Scattered\00"
@str.55 = [21 x i8] c" (7) Read-from-file\00"
@str.56 = [25 x i8] c"<Entering input_queries>\00"
define void @input_queries(i32** nocapture %0, i32** nocapture %1, i32** nocapture %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, i32* nocapture %8, i32* nocapture %9, i32* nocapture %10, i32* nocapture %11, i32* nocapture %12, i32* nocapture %13, i32* nocapture %14, i32* nocapture %15) {
%17 = load i32, i32* @DEBUG_TRACE
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.56, i64 0, i64 0))
br label %21
21: ; preds = %19, %16
%22 = load i32, i32* @ARCHITECTURE
store i32 %22, i32* %8
store i32* null, i32** %0
br label %23
23: ; preds = %21, %32
%24 = load i32, i32* @PROMPT
%25 = icmp eq i32 %24, 0
br i1 %25, label %28, label %26
26: ; preds = %23
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
br label %28
28: ; preds = %26, %23
%29 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %3)
%30 = tail call i32* @fopen(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %30, i32** %0
%31 = icmp eq i32* %30, null
br i1 %31, label %32, label %36
32: ; preds = %28
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i8* %3)
%34 = load i32*, i32** %0
%35 = icmp eq i32* %34, null
br i1 %35, label %23, label %36
36: ; preds = %28, %32
%37 = load i32, i32* @OUTPUT_ASSIGN
%38 = icmp eq i32 %37, 0
%39 = load i32, i32* @SEQUENCE
%40 = icmp ne i32 %39, 0
%41 = select i1 %38, i1 true, i1 %40
br i1 %41, label %49, label %42
42: ; preds = %36
%43 = load i32, i32* @PROMPT
%44 = icmp eq i32 %43, 0
br i1 %44, label %47, label %45
45: ; preds = %42
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
br label %47
47: ; preds = %45, %42
%48 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %6)
br label %49
49: ; preds = %47, %36
%50 = load i32, i32* @ECHO
%51 = icmp slt i32 %50, 0
br i1 %51, label %52, label %59
52: ; preds = %49
%53 = load i32, i32* @PROMPT
%54 = icmp eq i32 %53, 0
br i1 %54, label %57, label %55
55: ; preds = %52
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
br label %57
57: ; preds = %55, %52
%58 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %7)
br label %59
59: ; preds = %57, %49
store i32 0, i32* %13
store i32 0, i32* %11
store i32* null, i32** %1
store i32* null, i32** %2
%60 = load i32, i32* @SEQUENCE
%61 = icmp eq i32 %60, 0
br i1 %61, label %63, label %62
62: ; preds = %59
store i32 2, i32* %11
br label %80
63: ; preds = %59, %75
%64 = load i32, i32* @PROMPT
%65 = icmp eq i32 %64, 0
br i1 %65, label %75, label %66
66: ; preds = %63
%67 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.48, i64 0, i64 0))
%68 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.49, i64 0, i64 0))
%69 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.50, i64 0, i64 0))
%70 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.51, i64 0, i64 0))
%71 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.52, i64 0, i64 0))
%72 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.53, i64 0, i64 0))
%73 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.54, i64 0, i64 0))
%74 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.55, i64 0, i64 0))
br label %75
75: ; preds = %66, %63
%76 = tail call i32 (...) @input_int()
store i32 %76, i32* %11
%77 = add i32 %76, -8
%78 = icmp ult i32 %77, -7
br i1 %78, label %63, label %79
79: ; preds = %75
switch i32 %76, label %182 [
i32 7, label %84
i32 3, label %81
i32 2, label %80
i32 1, label %154
]
80: ; preds = %62, %79
br label %113
81: ; preds = %79
%82 = load i32*, i32** %1
%83 = icmp eq i32* %82, null
br i1 %83, label %100, label %182
84: ; preds = %79
%85 = load i32*, i32** %2
%86 = icmp eq i32* %85, null
br i1 %86, label %87, label %182
87: ; preds = %84, %96
%88 = load i32, i32* @PROMPT
%89 = icmp eq i32 %88, 0
br i1 %89, label %92, label %90
90: ; preds = %87
%91 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0))
br label %92
92: ; preds = %90, %87
%93 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %5)
%94 = tail call i32* @fopen(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %94, i32** %2
%95 = icmp eq i32* %94, null
br i1 %95, label %96, label %182
96: ; preds = %92
%97 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.16, i64 0, i64 0), i8* %5)
%98 = load i32*, i32** %2
%99 = icmp eq i32* %98, null
br i1 %99, label %87, label %182
100: ; preds = %81, %109
%101 = load i32, i32* @PROMPT
%102 = icmp eq i32 %101, 0
br i1 %102, label %105, label %103
103: ; preds = %100
%104 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0))
br label %105
105: ; preds = %103, %100
%106 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %4)
%107 = tail call i32* @fopen(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %107, i32** %1
%108 = icmp eq i32* %107, null
br i1 %108, label %109, label %182
109: ; preds = %105
%110 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0), i8* %4)
%111 = load i32*, i32** %1
%112 = icmp eq i32* %111, null
br i1 %112, label %100, label %182
113: ; preds = %80, %120
%114 = load i32, i32* @PROMPT
%115 = icmp eq i32 %114, 0
br i1 %115, label %120, label %116
116: ; preds = %113
%117 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.45, i64 0, i64 0))
%118 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.46, i64 0, i64 0))
%119 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.47, i64 0, i64 0))
br label %120
120: ; preds = %116, %113
%121 = tail call i32 (...) @input_int()
%122 = add i32 %121, -3
%123 = icmp ult i32 %122, -2
br i1 %123, label %113, label %124
124: ; preds = %120
%125 = icmp eq i32 %121, 1
br i1 %125, label %126, label %182
126: ; preds = %124
%127 = load i32, i32* @MATCH_TYPE
%128 = icmp eq i32 %127, 5
br i1 %128, label %129, label %145
129: ; preds = %126
%130 = load i32*, i32** %1
%131 = icmp eq i32* %130, null
br i1 %131, label %132, label %145
132: ; preds = %129, %141
%133 = load i32, i32* @PROMPT
%134 = icmp eq i32 %133, 0
br i1 %134, label %137, label %135
135: ; preds = %132
%136 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0))
br label %137
137: ; preds = %135, %132
%138 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %4)
%139 = tail call i32* @fopen(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %139, i32** %1
%140 = icmp eq i32* %139, null
br i1 %140, label %141, label %145
141: ; preds = %137
%142 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0), i8* %4)
%143 = load i32*, i32** %1
%144 = icmp eq i32* %143, null
br i1 %144, label %132, label %145
145: ; preds = %137, %141, %129, %126
store i32 1, i32* %13
store i32 0, i32* %14
br label %146
146: ; preds = %145, %151
%147 = load i32, i32* @PROMPT
%148 = icmp eq i32 %147, 0
br i1 %148, label %151, label %149
149: ; preds = %146
%150 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.22, i64 0, i64 0))
br label %151
151: ; preds = %149, %146
%152 = tail call i32 (...) @input_int()
store i32 %152, i32* %14
%153 = icmp slt i32 %152, 1
br i1 %153, label %146, label %182
154: ; preds = %79
%155 = load i32, i32* @MATCH_TYPE
%156 = icmp eq i32 %155, 5
br i1 %156, label %157, label %173
157: ; preds = %154
%158 = load i32*, i32** %1
%159 = icmp eq i32* %158, null
br i1 %159, label %160, label %173
160: ; preds = %157, %169
%161 = load i32, i32* @PROMPT
%162 = icmp eq i32 %161, 0
br i1 %162, label %165, label %163
163: ; preds = %160
%164 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0))
br label %165
165: ; preds = %163, %160
%166 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %4)
%167 = tail call i32* @fopen(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %167, i32** %1
%168 = icmp eq i32* %167, null
br i1 %168, label %169, label %173
169: ; preds = %165
%170 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0), i8* %4)
%171 = load i32*, i32** %1
%172 = icmp eq i32* %171, null
br i1 %172, label %160, label %173
173: ; preds = %165, %169, %157, %154
store i32 0, i32* %14
br label %174
174: ; preds = %173, %179
%175 = load i32, i32* @PROMPT
%176 = icmp eq i32 %175, 0
br i1 %176, label %179, label %177
177: ; preds = %174
%178 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.22, i64 0, i64 0))
br label %179
179: ; preds = %177, %174
%180 = tail call i32 (...) @input_int()
store i32 %180, i32* %14
%181 = icmp slt i32 %180, 2
br i1 %181, label %174, label %182
182: ; preds = %179, %151, %105, %109, %92, %96, %81, %84, %79, %124
%183 = load i32, i32* @SEQUENCE
%184 = icmp eq i32 %183, 0
br i1 %184, label %195, label %185
185: ; preds = %182
store i32 2, i32* %12
%186 = load i32, i32* %8
%187 = icmp eq i32 %186, 0
br i1 %187, label %193, label %188
188: ; preds = %185
%189 = icmp sgt i32 %186, 0
br i1 %189, label %190, label %305
190: ; preds = %188
store i32 2, i32* %10
%191 = getelementptr inbounds i32, i32* %10, i64 2
store i32 1, i32* %191
%192 = getelementptr inbounds i32, i32* %10, i64 1
br label %193
193: ; preds = %185, %190
%194 = phi i32* [ %192, %190 ], [ %9, %185 ]
store i32 1, i32* %194
br label %305
195: ; preds = %182
store i32 0, i32* %12
%196 = load i32, i32* %11
%197 = icmp eq i32 %196, 1
br i1 %197, label %198, label %199
198: ; preds = %195
store i32 1, i32* %12
br label %210
199: ; preds = %195, %206
%200 = load i32, i32* @PROMPT
%201 = icmp eq i32 %200, 0
br i1 %201, label %206, label %202
202: ; preds = %199
%203 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.42, i64 0, i64 0))
%204 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.43, i64 0, i64 0))
%205 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.44, i64 0, i64 0))
br label %206
206: ; preds = %202, %199
%207 = tail call i32 (...) @input_int()
store i32 %207, i32* %12
%208 = add i32 %207, -3
%209 = icmp ult i32 %208, -2
br i1 %209, label %199, label %210
210: ; preds = %206, %198
%211 = load i32, i32* %8
%212 = icmp eq i32 %211, 0
br i1 %212, label %213, label %229
213: ; preds = %210
store i32 0, i32* %9
br label %214
214: ; preds = %213, %222
%215 = load i32, i32* @PROMPT
%216 = icmp eq i32 %215, 0
br i1 %216, label %219, label %217
217: ; preds = %214
%218 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.26, i64 0, i64 0))
br label %219
219: ; preds = %217, %214
%220 = tail call i32 (...) @input_int()
store i32 %220, i32* %9
%221 = icmp slt i32 %220, 1
br i1 %221, label %222, label %226
222: ; preds = %219
%223 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.41, i64 0, i64 0))
%224 = load i32, i32* %9
%225 = icmp slt i32 %224, 1
br i1 %225, label %214, label %226
226: ; preds = %219, %222
%227 = phi i32 [ %224, %222 ], [ %220, %219 ]
%228 = shl nuw i32 1, %227
br label %263
229: ; preds = %210
%230 = getelementptr inbounds i32, i32* %10, i64 2
store i32 1, i32* %230
%231 = getelementptr inbounds i32, i32* %10, i64 1
store i32 1, i32* %231
%232 = load i32, i32* %8
switch i32 %232, label %250 [
i32 2, label %233
i32 3, label %241
]
233: ; preds = %229
%234 = load i32, i32* @PROMPT
%235 = icmp eq i32 %234, 0
br i1 %235, label %238, label %236
236: ; preds = %233
%237 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.28, i64 0, i64 0))
br label %238
238: ; preds = %236, %233
%239 = tail call i32 (...) @input_int()
store i32 %239, i32* %10
%240 = tail call i32 (...) @input_int()
store i32 %240, i32* %231
br label %257
241: ; preds = %229
%242 = load i32, i32* @PROMPT
%243 = icmp eq i32 %242, 0
br i1 %243, label %246, label %244
244: ; preds = %241
%245 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.29, i64 0, i64 0))
br label %246
246: ; preds = %244, %241
%247 = tail call i32 (...) @input_int()
store i32 %247, i32* %10
%248 = tail call i32 (...) @input_int()
store i32 %248, i32* %231
%249 = tail call i32 (...) @input_int()
store i32 %249, i32* %230
br label %257
250: ; preds = %229
%251 = load i32, i32* @PROMPT
%252 = icmp eq i32 %251, 0
br i1 %252, label %255, label %253
253: ; preds = %250
%254 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.30, i64 0, i64 0))
br label %255
255: ; preds = %253, %250
%256 = tail call i32 (...) @input_int()
store i32 %256, i32* %10
store i32 1, i32* %8
br label %257
257: ; preds = %246, %255, %238
%258 = load i32, i32* %10
%259 = load i32, i32* %231
%260 = mul nsw i32 %259, %258
%261 = load i32, i32* %230
%262 = mul nsw i32 %260, %261
br label %263
263: ; preds = %257, %226
%264 = phi i32 [ %228, %226 ], [ %262, %257 ]
store i32 0, i32* %15
%265 = icmp slt i32 %264, 4
br i1 %265, label %305, label %266
266: ; preds = %263
%267 = icmp ult i32 %264, 8
%268 = load i32, i32* @PROMPT
%269 = icmp eq i32 %268, 0
br i1 %267, label %270, label %287
270: ; preds = %266
br i1 %269, label %276, label %271
271: ; preds = %270
%272 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.40, i64 0, i64 0))
%273 = load i32, i32* %15
%274 = add i32 %273, -3
%275 = icmp ult i32 %274, -2
br i1 %275, label %276, label %306
276: ; preds = %270, %271
br label %277
277: ; preds = %276, %283
%278 = load i32, i32* @PROMPT
%279 = icmp eq i32 %278, 0
br i1 %279, label %283, label %280
280: ; preds = %277
%281 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.38, i64 0, i64 0))
%282 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.39, i64 0, i64 0))
br label %283
283: ; preds = %280, %277
%284 = tail call i32 (...) @input_int()
store i32 %284, i32* %15
%285 = add i32 %284, -3
%286 = icmp ult i32 %285, -2
br i1 %286, label %277, label %306
287: ; preds = %266
br i1 %269, label %293, label %288
288: ; preds = %287
%289 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.40, i64 0, i64 0))
%290 = load i32, i32* %15
%291 = add i32 %290, -4
%292 = icmp ult i32 %291, -3
br i1 %292, label %293, label %306
293: ; preds = %287, %288
br label %294
294: ; preds = %293, %301
%295 = load i32, i32* @PROMPT
%296 = icmp eq i32 %295, 0
br i1 %296, label %301, label %297
297: ; preds = %294
%298 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.38, i64 0, i64 0))
%299 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.39, i64 0, i64 0))
%300 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.36, i64 0, i64 0))
br label %301
301: ; preds = %297, %294
%302 = tail call i32 (...) @input_int()
store i32 %302, i32* %15
%303 = add i32 %302, -4
%304 = icmp ult i32 %303, -3
br i1 %304, label %294, label %306
305: ; preds = %263, %188, %193
store i32 1, i32* %15
br label %306
306: ; preds = %301, %283, %305, %288, %271
%307 = phi i32 [ %290, %288 ], [ %273, %271 ], [ 1, %305 ], [ %284, %283 ], [ %302, %301 ]
%308 = load i32, i32* %11
%309 = icmp eq i32 %308, 1
br i1 %309, label %313, label %310
310: ; preds = %306
%311 = load i32, i32* %13
%312 = icmp eq i32 %311, 0
br i1 %312, label %318, label %313
313: ; preds = %310, %306
%314 = load i32, i32* %14
%315 = shl nuw nsw i32 2, %307
%316 = icmp slt i32 %314, %315
br i1 %316, label %317, label %318
317: ; preds = %313
store i32 %315, i32* %14
br label %318
318: ; preds = %313, %317, %310
ret void
}