#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 EOF;
void *atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int getopt(int, char **, char *);
char *optarg;
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ *stderr;
int /*<<< orphan*/ *stdout;
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int /*<<< orphan*/ usage();
int main(int argc, char *argv[]) {
  char name_mangler[8];
  enum {
    ARCH_UNKNOWN = 0,
    ARCH_PPC,
    ARCH_X86,
    ARCH_X86_64,
    ARCH_INTELMAC
  } arch = 0;
  char typename[64] = "";
  int intbits = -1;
  unsigned int fracbits = -1;
  char outputfile[64] = "";
  char archname[64];
  char comment_char = '#';
  int dopt;
  while ((dopt = getopt(argc, argv, "ua:n:i:f:o:")) != EOF) {
    switch (dopt) {
    case 'u':
    case 'h':
      usage();
      return 0;
    case 'a':
      if (strcmp(optarg, "ppc") == 0) {
        arch = ARCH_PPC;
      } else if (strcmp(optarg, "x86") == 0) {
        arch = ARCH_X86;
      } else if (strcmp(optarg, "x86_64") == 0) {
        arch = ARCH_X86_64;
      } else if (strcmp(optarg, "intelmac") == 0) {
        arch = ARCH_INTELMAC;
      } else {
        fprintf(stderr, "error: unknown architecture: %s\n", optarg);
        exit(1);
      }
      break;
    case 'n':
      if (strlen(optarg) >= 64) {
        fprintf(stderr, "error: %s, typename too long\n", argv[0]);
        return -1;
      }
      strcpy(typename, optarg);
      break;
    case 'i':
      intbits = atoi(optarg);
      break;
    case 'f':
      fracbits = atoi(optarg);
      break;
    case 'o':
      if (strlen(optarg) > 64) {
        fprintf(stderr, "error: %s, output filename too long\n", argv[0]);
        return -1;
      }
      strcpy(outputfile, optarg);
      break;
    default:
      usage();
      return -1;
    }
  }
  int totalbits = intbits + fracbits;
  if (strcmp(typename, "") == 0) {
    fprintf(stderr, "error: %s, must specify typename\n", argv[0]);
    usage();
    return -1;
  } else if (arch == ARCH_UNKNOWN) {
    fprintf(stderr, "error: %s, must specify architecture type\n", argv[0]);
    usage();
    return -1;
  } else if (intbits < 0) {
    fprintf(stderr, "error: %s, unspecified or negative intbits \n", argv[0]);
    usage();
    return -1;
  } else if (intbits < 1) {
    fprintf(stderr, "error: %s, intbits must be at least 1 (sign bit)\n",
            argv[0]);
    return -1;
  } else if (fracbits < 0) {
    fprintf(stderr, "error: %s, unspecified or negative fracbits \n", argv[0]);
    usage();
    return -1;
  } else if (totalbits != 8 && totalbits != 16 && totalbits != 32) {
    fprintf(stderr, "error: intbits (%d) + fracbits (%d) must equal 8|16|32\n",
            intbits, fracbits);
    return -1;
  }
  if (arch == ARCH_PPC) {
    comment_char = ';';
    strcpy(name_mangler, "_");
    strcpy(archname, "ppc");
  } else if (arch == ARCH_X86) {
    comment_char = '#';
    strcpy(name_mangler, "");
    strcpy(archname, "x86");
  } else if (arch == ARCH_X86_64) {
    comment_char = '#';
    strcpy(name_mangler, "");
    strcpy(archname, "x86_64");
  } else if (arch == ARCH_INTELMAC) {
    comment_char = '#';
    strcpy(name_mangler, "_");
    strcpy(archname, "x86_64");
  } else {
    comment_char = '#';
    strcpy(name_mangler, "");
    strcpy(archname, "[unknown]");
  }
  FILE *fid;
  if (strcmp(outputfile, "") != 0) {
    fid = fopen(outputfile, "w");
    if (fid == NULL) {
      printf("error: could not open %s for writing\n", outputfile);
      return -1;
    }
  } else {
    fid = stdout;
  }
  fprintf(fid, "%c auto-generated file : do not edit\n", comment_char);
  fprintf(fid, "%c invoked as: ", comment_char);
  unsigned int i;
  for (i = 0; i < argc; i++)
    fprintf(fid, " %s", argv[i]);
  fprintf(fid, "\n");
  fprintf(fid, "%c \n", comment_char);
  fprintf(fid, "%c   target architecture : %s\n", comment_char, archname);
  fprintf(fid, "    .text\n");
  fprintf(fid, "    .set qint,  %3d   %c intbits\n", intbits, comment_char);
  fprintf(fid, "    .set qfrac, %3d   %c fracbits\n", fracbits, comment_char);
  fprintf(fid, "    .globl %s%s_mul\n", name_mangler, typename);
  if (arch == ARCH_X86)
    fprintf(fid, "    .type %s%s_mul,@function\n", name_mangler, typename);
  fprintf(fid, "\n");
  fprintf(fid, "%c multiplication\n", comment_char);
  fprintf(fid, "%s%s_mul:\n", name_mangler, typename);
  fprintf(fid, ".include \"qtype.mul.%s.s\"\n", archname);
  if (strcmp(outputfile, "") != 0)
    fclose(fid);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1070 <memset@plt>
movl   $0xffffffff,-0x64(%rbp)
movl   $0xffffffff,-0x68(%rbp)
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1070 <memset@plt>
movb   $0x23,-0xf1(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe2e(%rip),%rdx
call   10c0 <getopt@plt>
mov    %eax,-0xf8(%rbp)
mov    0x2da8(%rip),%rcx
cmp    (%rcx),%eax
je     1474 <main+0x2b4>
mov    -0xf8(%rbp),%eax
add    $0xffffff9f,%eax
mov    %eax,%ecx
mov    %rcx,-0x118(%rbp)
sub    $0x14,%eax
ja     145c <main+0x29c>
mov    -0x118(%rbp),%rax
lea    0xd97(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   10a0 <usage@plt>
movl   $0x0,-0x4(%rbp)
jmp    19c3 <main+0x803>
mov    0x2d6c(%rip),%rax
mov    (%rax),%rdi
lea    0xdca(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    12b1 <main+0xf1>
movl   $0x1,-0x1c(%rbp)
jmp    1370 <main+0x1b0>
mov    0x2d40(%rip),%rax
mov    (%rax),%rdi
lea    0xda2(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    12dd <main+0x11d>
movl   $0x2,-0x1c(%rbp)
jmp    136b <main+0x1ab>
mov    0x2d14(%rip),%rax
mov    (%rax),%rdi
lea    0xd7a(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1309 <main+0x149>
movl   $0x3,-0x1c(%rbp)
jmp    1366 <main+0x1a6>
mov    0x2ce8(%rip),%rax
mov    (%rax),%rdi
lea    0xd55(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1335 <main+0x175>
movl   $0x4,-0x1c(%rbp)
jmp    1361 <main+0x1a1>
mov    0x2c94(%rip),%rax
mov    (%rax),%rdi
mov    0x2cb2(%rip),%rax
mov    (%rax),%rdx
lea    0xd28(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
jmp    1366 <main+0x1a6>
jmp    136b <main+0x1ab>
jmp    1370 <main+0x1b0>
jmp    146f <main+0x2af>
mov    0x2c7c(%rip),%rax
mov    (%rax),%rdi
call   1050 <strlen@plt>
cmp    $0x40,%eax
jl     13b8 <main+0x1f8>
mov    0x2c3c(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xcf4(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    19c3 <main+0x803>
lea    -0x60(%rbp),%rdi
mov    0x2c35(%rip),%rax
mov    (%rax),%rsi
call   1030 <strcpy@plt>
jmp    146f <main+0x2af>
mov    0x2c21(%rip),%rax
mov    (%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x64(%rbp)
jmp    146f <main+0x2af>
mov    0x2c0a(%rip),%rax
mov    (%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x68(%rbp)
jmp    146f <main+0x2af>
mov    0x2bf3(%rip),%rax
mov    (%rax),%rdi
call   1050 <strlen@plt>
cmp    $0x40,%eax
jle    1441 <main+0x281>
mov    0x2bb3(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xc89(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    19c3 <main+0x803>
lea    -0xb0(%rbp),%rdi
mov    0x2ba9(%rip),%rax
mov    (%rax),%rsi
call   1030 <strcpy@plt>
jmp    146f <main+0x2af>
mov    $0x0,%al
call   10a0 <usage@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    19c3 <main+0x803>
jmp    1218 <main+0x58>
mov    -0x64(%rbp),%eax
add    -0x68(%rbp),%eax
mov    %eax,-0xfc(%rbp)
lea    -0x60(%rbp),%rdi
lea    0xdd5(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    14cc <main+0x30c>
mov    0x2b2f(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xc2a(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    $0x0,%al
call   10a0 <usage@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    19c3 <main+0x803>
cmpl   $0x0,-0x1c(%rbp)
jne    1508 <main+0x348>
mov    0x2af3(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xc10(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    $0x0,%al
call   10a0 <usage@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    19c3 <main+0x803>
cmpl   $0x0,-0x64(%rbp)
jge    1544 <main+0x384>
mov    0x2ab7(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xbff(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    $0x0,%al
call   10a0 <usage@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    19c3 <main+0x803>
cmpl   $0x1,-0x64(%rbp)
jge    1579 <main+0x3b9>
mov    0x2a7b(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xbf0(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    19c3 <main+0x803>
cmpl   $0x0,-0x68(%rbp)
jae    15b5 <main+0x3f5>
mov    0x2a46(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xbed(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    $0x0,%al
call   10a0 <usage@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    19c3 <main+0x803>
cmpl   $0x8,-0xfc(%rbp)
je     1606 <main+0x446>
cmpl   $0x10,-0xfc(%rbp)
je     1606 <main+0x446>
cmpl   $0x20,-0xfc(%rbp)
je     1606 <main+0x446>
mov    0x29ed(%rip),%rax
mov    (%rax),%rdi
mov    -0x64(%rbp),%edx
mov    -0x68(%rbp),%ecx
lea    0xbc3(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    19c3 <main+0x803>
jmp    160b <main+0x44b>
jmp    1610 <main+0x450>
jmp    1615 <main+0x455>
jmp    161a <main+0x45a>
jmp    161f <main+0x45f>
cmpl   $0x1,-0x1c(%rbp)
jne    1658 <main+0x498>
movb   $0x3b,-0xf1(%rbp)
lea    -0x18(%rbp),%rdi
lea    0xbb3(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0xf0(%rbp),%rdi
lea    0xa12(%rip),%rsi
call   1030 <strcpy@plt>
jmp    173c <main+0x57c>
cmpl   $0x2,-0x1c(%rbp)
jne    1691 <main+0x4d1>
movb   $0x23,-0xf1(%rbp)
lea    -0x18(%rbp),%rdi
lea    0xbec(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0xf0(%rbp),%rdi
lea    0x9dd(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1737 <main+0x577>
cmpl   $0x3,-0x1c(%rbp)
jne    16ca <main+0x50a>
movb   $0x23,-0xf1(%rbp)
lea    -0x18(%rbp),%rdi
lea    0xbb3(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0xf0(%rbp),%rdi
lea    0x9a8(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1732 <main+0x572>
cmpl   $0x4,-0x1c(%rbp)
jne    1703 <main+0x543>
movb   $0x23,-0xf1(%rbp)
lea    -0x18(%rbp),%rdi
lea    0xb08(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0xf0(%rbp),%rdi
lea    0x96f(%rip),%rsi
call   1030 <strcpy@plt>
jmp    172d <main+0x56d>
movb   $0x23,-0xf1(%rbp)
lea    -0x18(%rbp),%rdi
lea    0xb4b(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0xf0(%rbp),%rdi
lea    0xac8(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1732 <main+0x572>
jmp    1737 <main+0x577>
jmp    173c <main+0x57c>
lea    -0xb0(%rbp),%rdi
lea    0xb16(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
je     17a5 <main+0x5e5>
lea    -0xb0(%rbp),%rdi
lea    0xa93(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x108(%rbp)
cmpq   $0x0,-0x108(%rbp)
jne    17a0 <main+0x5e0>
lea    -0xb0(%rbp),%rsi
lea    0xa6d(%rip),%rdi
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    19c3 <main+0x803>
jmp    17b6 <main+0x5f6>
mov    0x281c(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x108(%rbp)
mov    -0x108(%rbp),%rdi
movsbl -0xf1(%rbp),%edx
lea    0xa57(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x108(%rbp),%rdi
movsbl -0xf1(%rbp),%edx
lea    0xa61(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0x0,-0x10c(%rbp)
mov    -0x10c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    183e <main+0x67e>
mov    -0x108(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    -0x10c(%rbp),%ecx
mov    (%rax,%rcx,8),%rdx
lea    0xa35(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x10c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10c(%rbp)
jmp    17f8 <main+0x638>
mov    -0x108(%rbp),%rdi
lea    0xa13(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x108(%rbp),%rdi
movsbl -0xf1(%rbp),%edx
lea    0x9f4(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x108(%rbp),%rdi
movsbl -0xf1(%rbp),%edx
lea    -0xf0(%rbp),%rcx
lea    0x9d6(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x108(%rbp),%rdi
lea    0x9e0(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x108(%rbp),%rdi
mov    -0x64(%rbp),%edx
movsbl -0xf1(%rbp),%ecx
lea    0x9cc(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x108(%rbp),%rdi
mov    -0x68(%rbp),%edx
movsbl -0xf1(%rbp),%ecx
lea    0x9cf(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x108(%rbp),%rdi
lea    -0x18(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0x9d5(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
cmpl   $0x2,-0x1c(%rbp)
jne    1929 <main+0x769>
mov    -0x108(%rbp),%rdi
lea    -0x18(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0x9c3(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x108(%rbp),%rdi
lea    0x928(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x108(%rbp),%rdi
movsbl -0xf1(%rbp),%edx
lea    0x9b0(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x108(%rbp),%rdi
lea    -0x18(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    0x9a6(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x108(%rbp),%rdi
lea    -0xf0(%rbp),%rdx
lea    0x995(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
lea    -0xb0(%rbp),%rdi
lea    0x8bf(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
je     19bc <main+0x7fc>
mov    -0x108(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
xorps  %xmm0,%xmm0
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
lea    0xe57(%rip),%rdx
call   10c0 <getopt@plt>
mov    0x2db3(%rip),%r14
cmp    (%r14),%eax
jne    12f0 <main+0x120>
xor    %eax,%eax
mov    %rax,0x8(%rsp)
mov    $0xffffffff,%eax
mov    %rax,0x10(%rsp)
mov    $0xffffffff,%eax
mov    %rax,0x18(%rsp)
lea    0xff4(%rip),%rsi
lea    0x70(%rsp),%rdi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1446 <main+0x276>
cmpl   $0x0,0x8(%rsp)
je     145c <main+0x28c>
mov    0x18(%rsp),%r12
mov    0x10(%rsp),%rcx
lea    (%r12,%rcx,1),%eax
test   %ecx,%ecx
js     1472 <main+0x2a2>
je     14a1 <main+0x2d1>
cmp    $0x20,%eax
ja     171a <main+0x54a>
mov    %eax,%eax
movabs $0x100010100,%rcx
bt     %rax,%rcx
jae    171a <main+0x54a>
mov    0x8(%rsp),%rax
add    $0xffffffff,%eax
cmp    $0x2,%eax
ja     1501 <main+0x331>
cltq
lea    0xd89(%rip),%rcx
movslq (%rcx,%rax,4),%rsi
add    %rcx,%rsi
lea    0xd87(%rip),%rcx
movslq (%rcx,%rax,4),%r13
add    %rcx,%r13
lea    0xd85(%rip),%rcx
mov    (%rcx,%rax,4),%r14d
jmp    1515 <main+0x345>
mov    $0xffffffff,%ecx
mov    %rcx,0x18(%rsp)
xor    %ecx,%ecx
mov    %rcx,0x8(%rsp)
lea    0xcf8(%rip),%r12
mov    0x2ce9(%rip),%r15
lea    0xd62(%rip),%r13
mov    $0xffffffff,%ecx
mov    %rcx,0x10(%rsp)
jmp    1345 <main+0x175>
mov    (%r15),%rdi
call   10d0 <atoi@plt>
mov    %rax,0x18(%rsp)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r13,%rdx
call   10c0 <getopt@plt>
cmp    (%r14),%eax
je     1251 <main+0x81>
add    $0xffffff9f,%eax
cmp    $0x14,%eax
ja     148d <main+0x2bd>
movslq (%r12,%rax,4),%rax
add    %r12,%rax
jmp    *%rax
mov    (%r15),%rdi
lea    0xd20(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1419 <main+0x249>
mov    (%r15),%rdi
lea    0xd0c(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1428 <main+0x258>
mov    (%r15),%rdi
lea    0xcf8(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1437 <main+0x267>
mov    (%r15),%rdi
lea    0xce7(%rip),%rsi
call   1080 <strcmp@plt>
mov    $0x4,%ecx
mov    %rcx,0x8(%rsp)
test   %rax,%rax
je     132f <main+0x15f>
jmp    173f <main+0x56f>
mov    (%r15),%rdi
call   10d0 <atoi@plt>
mov    %rax,0x10(%rsp)
jmp    132f <main+0x15f>
mov    (%r15),%rdi
call   1050 <strlen@plt>
cmp    $0x40,%eax
jge    14b7 <main+0x2e7>
mov    (%r15),%rsi
lea    0x70(%rsp),%rdi
jmp    140f <main+0x23f>
mov    (%r15),%rdi
call   1050 <strlen@plt>
cmp    $0x41,%eax
jge    14cd <main+0x2fd>
mov    (%r15),%rsi
lea    0x30(%rsp),%rdi
call   1030 <strcpy@plt>
jmp    132f <main+0x15f>
mov    $0x1,%eax
mov    %rax,0x8(%rsp)
jmp    132f <main+0x15f>
mov    $0x2,%eax
mov    %rax,0x8(%rsp)
jmp    132f <main+0x15f>
mov    $0x3,%eax
mov    %rax,0x8(%rsp)
jmp    132f <main+0x15f>
mov    0x2b83(%rip),%rax
mov    (%rax),%rdi
mov    (%rbx),%rdx
lea    0xca6(%rip),%rsi
jmp    1486 <main+0x2b6>
mov    0x2b6d(%rip),%rax
mov    (%rax),%rdi
mov    (%rbx),%rdx
lea    0xcb2(%rip),%rsi
jmp    1486 <main+0x2b6>
mov    0x2b57(%rip),%rax
mov    (%rax),%rdi
mov    (%rbx),%rdx
lea    0xcc7(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
xor    %eax,%eax
call   10a0 <usage@plt>
jmp    14e8 <main+0x318>
xor    %ebx,%ebx
xor    %eax,%eax
call   10a0 <usage@plt>
jmp    14ed <main+0x31d>
mov    0x2b28(%rip),%rax
mov    (%rax),%rdi
mov    (%rbx),%rdx
lea    0xcc5(%rip),%rsi
jmp    14e1 <main+0x311>
mov    0x2b12(%rip),%rax
mov    (%rax),%rdi
mov    (%rbx),%rdx
lea    0xbf2(%rip),%rsi
jmp    14e1 <main+0x311>
mov    0x2afc(%rip),%rax
mov    (%rax),%rdi
mov    (%rbx),%rdx
lea    0xbfa(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x23,%r14d
lea    0xb7e(%rip),%r13
lea    0xccf(%rip),%rsi
lea    0x28(%rsp),%rdi
call   1030 <strcpy@plt>
lea    0xb0(%rsp),%rdi
mov    %r13,%rsi
call   1030 <strcpy@plt>
lea    0xd16(%rip),%rsi
lea    0x30(%rsp),%rdi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1574 <main+0x3a4>
lea    0xc9a(%rip),%rsi
lea    0x30(%rsp),%rdi
call   10b0 <fopen@plt>
mov    %rax,%r13
test   %rax,%rax
jne    157e <main+0x3ae>
lea    0xc83(%rip),%rdi
lea    0x30(%rsp),%rsi
call   1060 <printf@plt>
jmp    14e8 <main+0x318>
mov    0x2a4d(%rip),%rax
mov    (%rax),%r13
lea    0xc89(%rip),%rsi
mov    %r13,%rdi
mov    %r14d,%edx
xor    %eax,%eax
call   1090 <fprintf@plt>
lea    0xc9b(%rip),%rsi
mov    %r13,%rdi
mov    %r14d,0x24(%rsp)
mov    %r14d,%edx
xor    %eax,%eax
call   1090 <fprintf@plt>
test   %ebp,%ebp
je     15da <main+0x40a>
mov    %ebp,%r15d
lea    0xc8b(%rip),%r14
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    (%rbx,%rbp,8),%rdx
mov    %r13,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
add    $0x1,%rbp
cmp    %rbp,%r15
jne    15c0 <main+0x3f0>
mov    $0xa,%edi
mov    %r13,%rsi
call   1070 <fputc@plt>
lea    0xc5a(%rip),%rsi
xor    %ebx,%ebx
mov    %r13,%rdi
mov    0x24(%rsp),%ebp
mov    %ebp,%edx
xor    %eax,%eax
call   1090 <fprintf@plt>
lea    0xc46(%rip),%rsi
lea    0xb0(%rsp),%rcx
mov    %r13,%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   1090 <fprintf@plt>
lea    0xc4a(%rip),%rdi
mov    $0xa,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   10f0 <fwrite@plt>
lea    0xc3c(%rip),%rsi
mov    %r13,%rdi
mov    0x10(%rsp),%rdx
mov    %ebp,%ecx
xor    %eax,%eax
call   1090 <fprintf@plt>
lea    0xc46(%rip),%rsi
mov    %r13,%rdi
mov    %r12d,%edx
mov    %ebp,%ecx
xor    %eax,%eax
call   1090 <fprintf@plt>
lea    0xc53(%rip),%rsi
lea    0x28(%rsp),%rdx
lea    0x70(%rsp),%rcx
mov    %r13,%rdi
xor    %eax,%eax
call   1090 <fprintf@plt>
cmpl   $0x2,0x8(%rsp)
jne    169f <main+0x4cf>
lea    0xc46(%rip),%rsi
lea    0x28(%rsp),%rdx
lea    0x70(%rsp),%rcx
mov    %r13,%rdi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0xa,%edi
mov    %r13,%rsi
call   1070 <fputc@plt>
lea    0xc3c(%rip),%rsi
mov    %r13,%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   1090 <fprintf@plt>
lea    0xc3c(%rip),%rsi
lea    0x28(%rsp),%rdx
lea    0x70(%rsp),%rcx
mov    %r13,%rdi
xor    %eax,%eax
call   1090 <fprintf@plt>
lea    0xc2c(%rip),%rsi
lea    0xb0(%rsp),%rdx
mov    %r13,%rdi
xor    %eax,%eax
call   1090 <fprintf@plt>
lea    0xb52(%rip),%rsi
lea    0x30(%rsp),%rdi
call   1080 <strcmp@plt>
test   %rax,%rax
je     14ed <main+0x31d>
mov    %r13,%rdi
call   1040 <fclose@plt>
jmp    14ed <main+0x31d>
mov    0x28af(%rip),%rax
mov    (%rax),%rdi
lea    0xa81(%rip),%rsi
mov    0x10(%rsp),%rdx
mov    %r12d,%ecx
xor    %eax,%eax
call   1090 <fprintf@plt>
jmp    14e8 <main+0x318>
mov    0x288a(%rip),%rax
mov    (%rax),%rdi
mov    (%r15),%rdx
lea    0x949(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"ua:n:i:f:o:\00"
@EOF = global i32 0
@optarg = global i8* null
@.str.1 = [4 x i8] c"ppc\00"
@.str.2 = [4 x i8] c"x86\00"
@.str.3 = [7 x i8] c"x86_64\00"
@.str.4 = [9 x i8] c"intelmac\00"
@stderr = global i32* null
@.str.5 = [33 x i8] c"error: unknown architecture: %s\0A\00"
@.str.6 = [30 x i8] c"error: %s, typename too long\0A\00"
@.str.7 = [37 x i8] c"error: %s, output filename too long\0A\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [34 x i8] c"error: %s, must specify typename\0A\00"
@.str.10 = [43 x i8] c"error: %s, must specify architecture type\0A\00"
@.str.11 = [45 x i8] c"error: %s, unspecified or negative intbits \0A\00"
@.str.12 = [50 x i8] c"error: %s, intbits must be at least 1 (sign bit)\0A\00"
@.str.13 = [46 x i8] c"error: %s, unspecified or negative fracbits \0A\00"
@.str.14 = [56 x i8] c"error: intbits (%d) + fracbits (%d) must equal 8|16|32\0A\00"
@.str.15 = [2 x i8] c"_\00"
@.str.16 = [10 x i8] c"[unknown]\00"
@.str.17 = [2 x i8] c"w\00"
@.str.18 = [38 x i8] c"error: could not open %s for writing\0A\00"
@stdout = global i32* null
@.str.19 = [38 x i8] c"%c auto-generated file : do not edit\0A\00"
@.str.20 = [16 x i8] c"%c invoked as: \00"
@.str.21 = [4 x i8] c" %s\00"
@.str.22 = [2 x i8] c"\0A\00"
@.str.23 = [5 x i8] c"%c \0A\00"
@.str.24 = [31 x i8] c"%c target architecture : %s\0A\00"
@.str.25 = [11 x i8] c" .text\0A\00"
@.str.26 = [34 x i8] c" .set qint, %3d %c intbits\0A\00"
@.str.27 = [35 x i8] c" .set qfrac, %3d %c fracbits\0A\00"
@.str.28 = [21 x i8] c" .globl %s%s_mul\0A\00"
@.str.29 = [30 x i8] c" .type %s%s_mul,@function\0A\00"
@.str.30 = [19 x i8] c"%c multiplication\0A\00"
@.str.31 = [11 x i8] c"%s%s_mul:\0A\00"
@.str.32 = [27 x i8] c".include \22qtype.mul.%s.s\22\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [8 x i8]
%7 = alloca i32
%8 = alloca [64 x i8]
%9 = alloca i32
%10 = alloca i32
%11 = alloca [64 x i8]
%12 = alloca [64 x i8]
%13 = alloca i8
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32*
%17 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
%18 = bitcast [64 x i8]* %8 to i8*
store i32 -1, i32* %9
store i32 -1, i32* %10
%19 = bitcast [64 x i8]* %11 to i8*
store i8 35, i8* %13
br label %20
20: ; preds = %97, %2
%21 = load i32, i32* %4
%22 = load i8**, i8*** %5
%23 = call i32 @getopt(i32 %21, i8** %22, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
store i32 %23, i32* %14
%24 = load i32, i32* @EOF
%25 = icmp ne i32 %23, %24
br i1 %25, label %26, label %98
26: ; preds = %20
%27 = load i32, i32* %14
switch i32 %27, label %95 [
i32 117, label %28
i32 104, label %28
i32 97, label %30
i32 110, label %59
i32 105, label %73
i32 102, label %77
i32 111, label %81
]
28: ; preds = %26, %26
%29 = call i32 (...) @usage()
store i32 0, i32* %3
br label %305
30: ; preds = %26
%31 = load i8*, i8** @optarg
%32 = call i64 @strcmp(i8* %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %30
store i32 1, i32* %7
br label %58
35: ; preds = %30
%36 = load i8*, i8** @optarg
%37 = call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %35
store i32 2, i32* %7
br label %57
40: ; preds = %35
%41 = load i8*, i8** @optarg
%42 = call i64 @strcmp(i8* %41, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %40
store i32 3, i32* %7
br label %56
45: ; preds = %40
%46 = load i8*, i8** @optarg
%47 = call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %45
store i32 4, i32* %7
br label %55
50: ; preds = %45
%51 = load i32*, i32** @stderr
%52 = load i8*, i8** @optarg
%53 = call i32 (i32*, i8*, ...) @fprintf(i32* %51, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %52)
%54 = call i32 @exit(i32 1)
unreachable
55: ; preds = %49
br label %56
56: ; preds = %55, %44
br label %57
57: ; preds = %56, %39
br label %58
58: ; preds = %57, %34
br label %97
59: ; preds = %26
%60 = load i8*, i8** @optarg
%61 = call i32 @strlen(i8* %60)
%62 = icmp sge i32 %61, 64
br i1 %62, label %63, label %69
63: ; preds = %59
%64 = load i32*, i32** @stderr
%65 = load i8**, i8*** %5
%66 = getelementptr inbounds i8*, i8** %65, i64 0
%67 = load i8*, i8** %66
%68 = call i32 (i32*, i8*, ...) @fprintf(i32* %64, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %67)
store i32 -1, i32* %3
br label %305
69: ; preds = %59
%70 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%71 = load i8*, i8** @optarg
%72 = call i32 @strcpy(i8* %70, i8* %71)
br label %97
73: ; preds = %26
%74 = load i8*, i8** @optarg
%75 = call i8* @atoi(i8* %74)
%76 = ptrtoint i8* %75 to i32
store i32 %76, i32* %9
br label %97
77: ; preds = %26
%78 = load i8*, i8** @optarg
%79 = call i8* @atoi(i8* %78)
%80 = ptrtoint i8* %79 to i32
store i32 %80, i32* %10
br label %97
81: ; preds = %26
%82 = load i8*, i8** @optarg
%83 = call i32 @strlen(i8* %82)
%84 = icmp sgt i32 %83, 64
br i1 %84, label %85, label %91
85: ; preds = %81
%86 = load i32*, i32** @stderr
%87 = load i8**, i8*** %5
%88 = getelementptr inbounds i8*, i8** %87, i64 0
%89 = load i8*, i8** %88
%90 = call i32 (i32*, i8*, ...) @fprintf(i32* %86, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i8* %89)
store i32 -1, i32* %3
br label %305
91: ; preds = %81
%92 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%93 = load i8*, i8** @optarg
%94 = call i32 @strcpy(i8* %92, i8* %93)
br label %97
95: ; preds = %26
%96 = call i32 (...) @usage()
store i32 -1, i32* %3
br label %305
97: ; preds = %91, %77, %73, %69, %58
br label %20
98: ; preds = %20
%99 = load i32, i32* %9
%100 = load i32, i32* %10
%101 = add i32 %99, %100
store i32 %101, i32* %15
%102 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%103 = call i64 @strcmp(i8* %102, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%104 = icmp eq i64 %103, 0
br i1 %104, label %105, label %112
105: ; preds = %98
%106 = load i32*, i32** @stderr
%107 = load i8**, i8*** %5
%108 = getelementptr inbounds i8*, i8** %107, i64 0
%109 = load i8*, i8** %108
%110 = call i32 (i32*, i8*, ...) @fprintf(i32* %106, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0), i8* %109)
%111 = call i32 (...) @usage()
store i32 -1, i32* %3
br label %305
112: ; preds = %98
%113 = load i32, i32* %7
%114 = icmp eq i32 %113, 0
br i1 %114, label %115, label %122
115: ; preds = %112
%116 = load i32*, i32** @stderr
%117 = load i8**, i8*** %5
%118 = getelementptr inbounds i8*, i8** %117, i64 0
%119 = load i8*, i8** %118
%120 = call i32 (i32*, i8*, ...) @fprintf(i32* %116, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.10, i64 0, i64 0), i8* %119)
%121 = call i32 (...) @usage()
store i32 -1, i32* %3
br label %305
122: ; preds = %112
%123 = load i32, i32* %9
%124 = icmp slt i32 %123, 0
br i1 %124, label %125, label %132
125: ; preds = %122
%126 = load i32*, i32** @stderr
%127 = load i8**, i8*** %5
%128 = getelementptr inbounds i8*, i8** %127, i64 0
%129 = load i8*, i8** %128
%130 = call i32 (i32*, i8*, ...) @fprintf(i32* %126, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.11, i64 0, i64 0), i8* %129)
%131 = call i32 (...) @usage()
store i32 -1, i32* %3
br label %305
132: ; preds = %122
%133 = load i32, i32* %9
%134 = icmp slt i32 %133, 1
br i1 %134, label %135, label %141
135: ; preds = %132
%136 = load i32*, i32** @stderr
%137 = load i8**, i8*** %5
%138 = getelementptr inbounds i8*, i8** %137, i64 0
%139 = load i8*, i8** %138
%140 = call i32 (i32*, i8*, ...) @fprintf(i32* %136, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.12, i64 0, i64 0), i8* %139)
store i32 -1, i32* %3
br label %305
141: ; preds = %132
%142 = load i32, i32* %10
%143 = icmp ult i32 %142, 0
br i1 %143, label %144, label %151
144: ; preds = %141
%145 = load i32*, i32** @stderr
%146 = load i8**, i8*** %5
%147 = getelementptr inbounds i8*, i8** %146, i64 0
%148 = load i8*, i8** %147
%149 = call i32 (i32*, i8*, ...) @fprintf(i32* %145, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.13, i64 0, i64 0), i8* %148)
%150 = call i32 (...) @usage()
store i32 -1, i32* %3
br label %305
151: ; preds = %141
%152 = load i32, i32* %15
%153 = icmp ne i32 %152, 8
br i1 %153, label %154, label %165
154: ; preds = %151
%155 = load i32, i32* %15
%156 = icmp ne i32 %155, 16
br i1 %156, label %157, label %165
157: ; preds = %154
%158 = load i32, i32* %15
%159 = icmp ne i32 %158, 32
br i1 %159, label %160, label %165
160: ; preds = %157
%161 = load i32*, i32** @stderr
%162 = load i32, i32* %9
%163 = load i32, i32* %10
%164 = call i32 (i32*, i8*, ...) @fprintf(i32* %161, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0), i32 %162, i32 %163)
store i32 -1, i32* %3
br label %305
165: ; preds = %157, %154, %151
br label %166
166: ; preds = %165
br label %167
167: ; preds = %166
br label %168
168: ; preds = %167
br label %169
169: ; preds = %168
br label %170
170: ; preds = %169
%171 = load i32, i32* %7
%172 = icmp eq i32 %171, 1
br i1 %172, label %173, label %178
173: ; preds = %170
store i8 59, i8* %13
%174 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%175 = call i32 @strcpy(i8* %174, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%176 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%177 = call i32 @strcpy(i8* %176, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %210
178: ; preds = %170
%179 = load i32, i32* %7
%180 = icmp eq i32 %179, 2
br i1 %180, label %181, label %186
181: ; preds = %178
store i8 35, i8* %13
%182 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%183 = call i32 @strcpy(i8* %182, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%184 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%185 = call i32 @strcpy(i8* %184, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
br label %209
186: ; preds = %178
%187 = load i32, i32* %7
%188 = icmp eq i32 %187, 3
br i1 %188, label %189, label %194
189: ; preds = %186
store i8 35, i8* %13
%190 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%191 = call i32 @strcpy(i8* %190, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%192 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%193 = call i32 @strcpy(i8* %192, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %208
194: ; preds = %186
%195 = load i32, i32* %7
%196 = icmp eq i32 %195, 4
br i1 %196, label %197, label %202
197: ; preds = %194
store i8 35, i8* %13
%198 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%199 = call i32 @strcpy(i8* %198, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%200 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%201 = call i32 @strcpy(i8* %200, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %207
202: ; preds = %194
store i8 35, i8* %13
%203 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%204 = call i32 @strcpy(i8* %203, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%205 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%206 = call i32 @strcpy(i8* %205, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
br label %207
207: ; preds = %202, %197
br label %208
208: ; preds = %207, %189
br label %209
209: ; preds = %208, %181
br label %210
210: ; preds = %209, %173
%211 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%212 = call i64 @strcmp(i8* %211, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%213 = icmp ne i64 %212, 0
br i1 %213, label %214, label %223
214: ; preds = %210
%215 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%216 = call i32* @fopen(i8* %215, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
store i32* %216, i32** %16
%217 = load i32*, i32** %16
%218 = icmp eq i32* %217, null
br i1 %218, label %219, label %222
219: ; preds = %214
%220 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%221 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.18, i64 0, i64 0), i8* %220)
store i32 -1, i32* %3
br label %305
222: ; preds = %214
br label %225
223: ; preds = %210
%224 = load i32*, i32** @stdout
store i32* %224, i32** %16
br label %225
225: ; preds = %223, %222
%226 = load i32*, i32** %16
%227 = load i8, i8* %13
%228 = sext i8 %227 to i32
%229 = call i32 (i32*, i8*, ...) @fprintf(i32* %226, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.19, i64 0, i64 0), i32 %228)
%230 = load i32*, i32** %16
%231 = load i8, i8* %13
%232 = sext i8 %231 to i32
%233 = call i32 (i32*, i8*, ...) @fprintf(i32* %230, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i32 %232)
store i32 0, i32* %17
br label %234
234: ; preds = %246, %225
%235 = load i32, i32* %17
%236 = load i32, i32* %4
%237 = icmp ult i32 %235, %236
br i1 %237, label %238, label %249
238: ; preds = %234
%239 = load i32*, i32** %16
%240 = load i8**, i8*** %5
%241 = load i32, i32* %17
%242 = zext i32 %241 to i64
%243 = getelementptr inbounds i8*, i8** %240, i64 %242
%244 = load i8*, i8** %243
%245 = call i32 (i32*, i8*, ...) @fprintf(i32* %239, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i8* %244)
br label %246
246: ; preds = %238
%247 = load i32, i32* %17
%248 = add i32 %247, 1
store i32 %248, i32* %17
br label %234
249: ; preds = %234
%250 = load i32*, i32** %16
%251 = call i32 (i32*, i8*, ...) @fprintf(i32* %250, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0))
%252 = load i32*, i32** %16
%253 = load i8, i8* %13
%254 = sext i8 %253 to i32
%255 = call i32 (i32*, i8*, ...) @fprintf(i32* %252, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0), i32 %254)
%256 = load i32*, i32** %16
%257 = load i8, i8* %13
%258 = sext i8 %257 to i32
%259 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%260 = call i32 (i32*, i8*, ...) @fprintf(i32* %256, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.24, i64 0, i64 0), i32 %258, i8* %259)
%261 = load i32*, i32** %16
%262 = call i32 (i32*, i8*, ...) @fprintf(i32* %261, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0))
%263 = load i32*, i32** %16
%264 = load i32, i32* %9
%265 = load i8, i8* %13
%266 = sext i8 %265 to i32
%267 = call i32 (i32*, i8*, ...) @fprintf(i32* %263, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.26, i64 0, i64 0), i32 %264, i32 %266)
%268 = load i32*, i32** %16
%269 = load i32, i32* %10
%270 = load i8, i8* %13
%271 = sext i8 %270 to i32
%272 = call i32 (i32*, i8*, ...) @fprintf(i32* %268, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.27, i64 0, i64 0), i32 %269, i32 %271)
%273 = load i32*, i32** %16
%274 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%275 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%276 = call i32 (i32*, i8*, ...) @fprintf(i32* %273, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.28, i64 0, i64 0), i8* %274, i8* %275)
%277 = load i32, i32* %7
%278 = icmp eq i32 %277, 2
br i1 %278, label %279, label %284
279: ; preds = %249
%280 = load i32*, i32** %16
%281 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%282 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%283 = call i32 (i32*, i8*, ...) @fprintf(i32* %280, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.29, i64 0, i64 0), i8* %281, i8* %282)
br label %284
284: ; preds = %279, %249
%285 = load i32*, i32** %16
%286 = call i32 (i32*, i8*, ...) @fprintf(i32* %285, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0))
%287 = load i32*, i32** %16
%288 = load i8, i8* %13
%289 = sext i8 %288 to i32
%290 = call i32 (i32*, i8*, ...) @fprintf(i32* %287, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.30, i64 0, i64 0), i32 %289)
%291 = load i32*, i32** %16
%292 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%293 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%294 = call i32 (i32*, i8*, ...) @fprintf(i32* %291, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.31, i64 0, i64 0), i8* %292, i8* %293)
%295 = load i32*, i32** %16
%296 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%297 = call i32 (i32*, i8*, ...) @fprintf(i32* %295, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.32, i64 0, i64 0), i8* %296)
%298 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%299 = call i64 @strcmp(i8* %298, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%300 = icmp ne i64 %299, 0
br i1 %300, label %301, label %304
301: ; preds = %284
%302 = load i32*, i32** %16
%303 = call i32 @fclose(i32* %302)
br label %304
304: ; preds = %301, %284
store i32 0, i32* %3
br label %305
305: ; preds = %304, %219, %160, %144, %135, %125, %115, %105, %95, %85, %63, %28
%306 = load i32, i32* %3
ret i32 %306
}

LLVM IR (-O2):
@.str = [12 x i8] c"ua:n:i:f:o:\00"
@EOF = global i32 0
@optarg = global i8* null
@.str.1 = [4 x i8] c"ppc\00"
@.str.2 = [4 x i8] c"x86\00"
@.str.3 = [7 x i8] c"x86_64\00"
@.str.4 = [9 x i8] c"intelmac\00"
@stderr = global i32* null
@.str.5 = [33 x i8] c"error: unknown architecture: %s\0A\00"
@.str.6 = [30 x i8] c"error: %s, typename too long\0A\00"
@.str.7 = [37 x i8] c"error: %s, output filename too long\0A\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [34 x i8] c"error: %s, must specify typename\0A\00"
@.str.10 = [43 x i8] c"error: %s, must specify architecture type\0A\00"
@.str.11 = [45 x i8] c"error: %s, unspecified or negative intbits \0A\00"
@.str.12 = [50 x i8] c"error: %s, intbits must be at least 1 (sign bit)\0A\00"
@.str.14 = [56 x i8] c"error: intbits (%d) + fracbits (%d) must equal 8|16|32\0A\00"
@.str.15 = [2 x i8] c"_\00"
@.str.17 = [2 x i8] c"w\00"
@.str.18 = [38 x i8] c"error: could not open %s for writing\0A\00"
@stdout = global i32* null
@.str.19 = [38 x i8] c"%c auto-generated file : do not edit\0A\00"
@.str.20 = [16 x i8] c"%c invoked as: \00"
@.str.21 = [4 x i8] c" %s\00"
@.str.23 = [5 x i8] c"%c \0A\00"
@.str.24 = [31 x i8] c"%c target architecture : %s\0A\00"
@.str.25 = [11 x i8] c" .text\0A\00"
@.str.26 = [34 x i8] c" .set qint, %3d %c intbits\0A\00"
@.str.27 = [35 x i8] c" .set qfrac, %3d %c fracbits\0A\00"
@.str.28 = [21 x i8] c" .globl %s%s_mul\0A\00"
@.str.29 = [30 x i8] c" .type %s%s_mul,@function\0A\00"
@.str.30 = [19 x i8] c"%c multiplication\0A\00"
@.str.31 = [11 x i8] c"%s%s_mul:\0A\00"
@.str.32 = [27 x i8] c".include \22qtype.mul.%s.s\22\0A\00"
@reltable.main = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.15 to i64), i64 ptrtoint ([3 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([1 x i8]* @.str.8 to i64), i64 ptrtoint ([3 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([1 x i8]* @.str.8 to i64), i64 ptrtoint ([3 x i32]* @reltable.main to i64)) to i32)]
@reltable.main.35 = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.1 to i64), i64 ptrtoint ([3 x i32]* @reltable.main.35 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.2 to i64), i64 ptrtoint ([3 x i32]* @reltable.main.35 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.3 to i64), i64 ptrtoint ([3 x i32]* @reltable.main.35 to i64)) to i32)]
@switch.table.main.34 = [3 x i32] [i32 59, i32 35, i32 35]
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [8 x i8]
%4 = alloca [64 x i8]
%5 = alloca [64 x i8]
%6 = alloca [64 x i8]
%7 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [64 x i8], [64 x i8]* %4, i64 0, i64 0
%9 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%10 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%11 = call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* @EOF
%13 = icmp eq i32 %11, %12
br i1 %13, label %83, label %14
14: ; preds = %2, %76
%15 = phi i32 [ %80, %76 ], [ %11, %2 ]
%16 = phi i32 [ %79, %76 ], [ 0, %2 ]
%17 = phi i32 [ %78, %76 ], [ -1, %2 ]
%18 = phi i32 [ %77, %76 ], [ -1, %2 ]
switch i32 %15, label %74 [
i32 117, label %19
i32 104, label %19
i32 97, label %21
i32 110, label %42
i32 105, label %53
i32 102, label %58
i32 111, label %63
]
19: ; preds = %14, %14
%20 = call i32 (...) @usage()
br label %181
21: ; preds = %14
%22 = load i8*, i8** @optarg
%23 = call i64 @strcmp(i8* %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %76, label %25
25: ; preds = %21
%26 = load i8*, i8** @optarg
%27 = call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %76, label %29
29: ; preds = %25
%30 = load i8*, i8** @optarg
%31 = call i64 @strcmp(i8* %30, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %76, label %33
33: ; preds = %29
%34 = load i8*, i8** @optarg
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %76, label %37
37: ; preds = %33
%38 = load i32*, i32** @stderr
%39 = load i8*, i8** @optarg
%40 = call i32 (i32*, i8*, ...) @fprintf(i32* %38, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %39)
%41 = call i32 @exit(i32 1)
unreachable
42: ; preds = %14
%43 = load i8*, i8** @optarg
%44 = call i32 @strlen(i8* %43)
%45 = icmp sgt i32 %44, 63
br i1 %45, label %46, label %50
46: ; preds = %42
%47 = load i32*, i32** @stderr
%48 = load i8*, i8** %1
%49 = call i32 (i32*, i8*, ...) @fprintf(i32* %47, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %48)
br label %181
50: ; preds = %42
%51 = load i8*, i8** @optarg
%52 = call i32 @strcpy(i8* %8, i8* %51)
br label %76
53: ; preds = %14
%54 = load i8*, i8** @optarg
%55 = call i8* @atoi(i8* %54)
%56 = ptrtoint i8* %55 to i64
%57 = trunc i64 %56 to i32
br label %76
58: ; preds = %14
%59 = load i8*, i8** @optarg
%60 = call i8* @atoi(i8* %59)
%61 = ptrtoint i8* %60 to i64
%62 = trunc i64 %61 to i32
br label %76
63: ; preds = %14
%64 = load i8*, i8** @optarg
%65 = call i32 @strlen(i8* %64)
%66 = icmp sgt i32 %65, 64
br i1 %66, label %67, label %71
67: ; preds = %63
%68 = load i32*, i32** @stderr
%69 = load i8*, i8** %1
%70 = call i32 (i32*, i8*, ...) @fprintf(i32* %68, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i8* %69)
br label %181
71: ; preds = %63
%72 = load i8*, i8** @optarg
%73 = call i32 @strcpy(i8* %9, i8* %72)
br label %76
74: ; preds = %14
%75 = call i32 (...) @usage()
br label %181
76: ; preds = %33, %29, %25, %21, %71, %58, %53, %50
%77 = phi i32 [ %18, %71 ], [ %18, %58 ], [ %57, %53 ], [ %18, %50 ], [ %18, %21 ], [ %18, %25 ], [ %18, %29 ], [ %18, %33 ]
%78 = phi i32 [ %17, %71 ], [ %62, %58 ], [ %17, %53 ], [ %17, %50 ], [ %17, %21 ], [ %17, %25 ], [ %17, %29 ], [ %17, %33 ]
%79 = phi i32 [ %16, %71 ], [ %16, %58 ], [ %16, %53 ], [ %16, %50 ], [ 1, %21 ], [ 2, %25 ], [ 3, %29 ], [ 4, %33 ]
%80 = call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%81 = load i32, i32* @EOF
%82 = icmp eq i32 %80, %81
br i1 %82, label %83, label %14
83: ; preds = %76, %2
%84 = phi i32 [ -1, %2 ], [ %77, %76 ]
%85 = phi i32 [ -1, %2 ], [ %78, %76 ]
%86 = phi i32 [ 0, %2 ], [ %79, %76 ]
%87 = add i32 %85, %84
%88 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %95
90: ; preds = %83
%91 = load i32*, i32** @stderr
%92 = load i8*, i8** %1
%93 = call i32 (i32*, i8*, ...) @fprintf(i32* %91, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0), i8* %92)
%94 = call i32 (...) @usage()
br label %181
95: ; preds = %83
%96 = icmp eq i32 %86, 0
br i1 %96, label %97, label %102
97: ; preds = %95
%98 = load i32*, i32** @stderr
%99 = load i8*, i8** %1
%100 = call i32 (i32*, i8*, ...) @fprintf(i32* %98, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.10, i64 0, i64 0), i8* %99)
%101 = call i32 (...) @usage()
br label %181
102: ; preds = %95
%103 = icmp slt i32 %84, 0
br i1 %103, label %104, label %109
104: ; preds = %102
%105 = load i32*, i32** @stderr
%106 = load i8*, i8** %1
%107 = call i32 (i32*, i8*, ...) @fprintf(i32* %105, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.11, i64 0, i64 0), i8* %106)
%108 = call i32 (...) @usage()
br label %181
109: ; preds = %102
%110 = icmp eq i32 %84, 0
br i1 %110, label %111, label %115
111: ; preds = %109
%112 = load i32*, i32** @stderr
%113 = load i8*, i8** %1
%114 = call i32 (i32*, i8*, ...) @fprintf(i32* %112, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.12, i64 0, i64 0), i8* %113)
br label %181
115: ; preds = %109
switch i32 %87, label %116 [
i32 32, label %119
i32 16, label %119
i32 8, label %119
]
116: ; preds = %115
%117 = load i32*, i32** @stderr
%118 = call i32 (i32*, i8*, ...) @fprintf(i32* %117, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0), i32 %84, i32 %85)
br label %181
119: ; preds = %115, %115, %115
%120 = add i32 %86, -1
%121 = icmp ult i32 %120, 3
br i1 %121, label %122, label %132
122: ; preds = %119
%123 = sext i32 %120 to i64
%124 = shl i64 %123, 2
%125 = call i8* @llvm.load.relative.i64(i8* bitcast ([3 x i32]* @reltable.main to i8*), i64 %124)
%126 = sext i32 %120 to i64
%127 = shl i64 %126, 2
%128 = call i8* @llvm.load.relative.i64(i8* bitcast ([3 x i32]* @reltable.main.35 to i8*), i64 %127)
%129 = sext i32 %120 to i64
%130 = getelementptr inbounds [3 x i32], [3 x i32]* @switch.table.main.34, i64 0, i64 %129
%131 = load i32, i32* %130
br label %132
132: ; preds = %119, %122
%133 = phi i8* [ %125, %122 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), %119 ]
%134 = phi i8* [ %128, %122 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), %119 ]
%135 = phi i32 [ %131, %122 ], [ 35, %119 ]
%136 = call i32 @strcpy(i8* %7, i8* %133)
%137 = call i32 @strcpy(i8* %10, i8* %134)
%138 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%139 = icmp eq i64 %138, 0
br i1 %139, label %145, label %140
140: ; preds = %132
%141 = call i32* @fopen(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
%142 = icmp eq i32* %141, null
br i1 %142, label %143, label %147
143: ; preds = %140
%144 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.18, i64 0, i64 0), i8* %9)
br label %181
145: ; preds = %132
%146 = load i32*, i32** @stdout
br label %147
147: ; preds = %140, %145
%148 = phi i32* [ %141, %140 ], [ %146, %145 ]
%149 = call i32 (i32*, i8*, ...) @fprintf(i32* %148, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.19, i64 0, i64 0), i32 %135)
%150 = call i32 (i32*, i8*, ...) @fprintf(i32* %148, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i32 %135)
%151 = icmp eq i32 %0, 0
br i1 %151, label %161, label %152
152: ; preds = %147
%153 = zext i32 %0 to i64
br label %154
154: ; preds = %152, %154
%155 = phi i64 [ 0, %152 ], [ %159, %154 ]
%156 = getelementptr inbounds i8*, i8** %1, i64 %155
%157 = load i8*, i8** %156
%158 = call i32 (i32*, i8*, ...) @fprintf(i32* %148, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i8* %157)
%159 = add nuw nsw i64 %155, 1
%160 = icmp eq i64 %159, %153
br i1 %160, label %161, label %154
161: ; preds = %154, %147
%162 = call i32 @fputc(i32 10, i32* %148)
%163 = call i32 (i32*, i8*, ...) @fprintf(i32* %148, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0), i32 %135)
%164 = call i32 (i32*, i8*, ...) @fprintf(i32* %148, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.24, i64 0, i64 0), i32 %135, i8* %10)
%165 = call i64 @fwrite(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i64 10, i64 1, i32* %148)
%166 = call i32 (i32*, i8*, ...) @fprintf(i32* %148, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.26, i64 0, i64 0), i32 %84, i32 %135)
%167 = call i32 (i32*, i8*, ...) @fprintf(i32* %148, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.27, i64 0, i64 0), i32 %85, i32 %135)
%168 = call i32 (i32*, i8*, ...) @fprintf(i32* %148, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.28, i64 0, i64 0), i8* %7, i8* %8)
%169 = icmp eq i32 %86, 2
br i1 %169, label %170, label %172
170: ; preds = %161
%171 = call i32 (i32*, i8*, ...) @fprintf(i32* %148, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.29, i64 0, i64 0), i8* %7, i8* %8)
br label %172
172: ; preds = %170, %161
%173 = call i32 @fputc(i32 10, i32* %148)
%174 = call i32 (i32*, i8*, ...) @fprintf(i32* %148, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.30, i64 0, i64 0), i32 %135)
%175 = call i32 (i32*, i8*, ...) @fprintf(i32* %148, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.31, i64 0, i64 0), i8* %7, i8* %8)
%176 = call i32 (i32*, i8*, ...) @fprintf(i32* %148, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.32, i64 0, i64 0), i8* %10)
%177 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%178 = icmp eq i64 %177, 0
br i1 %178, label %181, label %179
179: ; preds = %172
%180 = call i32 @fclose(i32* %148)
br label %181
181: ; preds = %90, %97, %104, %111, %116, %172, %179, %143, %74, %67, %46, %19
%182 = phi i32 [ -1, %74 ], [ -1, %67 ], [ -1, %46 ], [ 0, %19 ], [ -1, %90 ], [ -1, %97 ], [ -1, %104 ], [ -1, %111 ], [ -1, %116 ], [ -1, %143 ], [ 0, %179 ], [ 0, %172 ]
ret i32 %182
}