#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*/ pid;

/* Variables and functions */
int /*<<< orphan*/ O_RDONLY;
int PATH_MAX;
int /*<<< orphan*/ close(int);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ read(int, char *, int);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strtol(char *, int /*<<< orphan*/ *, int /*<<< orphan*/);
int num_ports_get(char device_path[PATH_MAX]) {
  int j, fd;
  char pid_path[PATH_MAX];
  char pid[8];
  int ret_val = -1;
  strcpy(pid_path, device_path);
  strcat(pid_path, "/device");
  fd = open(pid_path, O_RDONLY);
  if (fd < 0) {
    printf("Could not open file: %s\n", pid_path);
    return ret_val;
  }
  read(fd, pid, sizeof(pid));
  close(fd);
  printf("Device located at device_path \"%s\"", device_path);
  switch (strtol(pid, NULL, 0)) {
  case 0x1051:
    printf("PCIe-COM-2SDB: 2 port, RS-422, RS-485\n");
    ret_val = 2;
    break;
  case 0x1053:
    printf("mPCIe-COM-2S: 2 port, RS-422, RS-485\n");
    ret_val = 2;
    break;
  case 0x105C:
    printf("PCIe-COM-4SRJ: 4 port, RS-422, RS-485\n");
    ret_val = 4;
    break;
  case 0x105E:
    printf("mPCIe-COM-4S: 4 port, RS-422, RS-485\n");
    ret_val = 4;
    break;
  case 0x1091:
    printf("mPCIe-COM-4S: 4 port RS-422, RS-485\n");
    ret_val = 2;
    break;
  case 0x1093:
    printf("mPCIe-COM232-2: 2 port, RS-232 only\n");
    ret_val = 0;
    break;
  case 0x1099:
    printf("PCIe-COM232-4DB: 2 port, RS-232 only\n");
    ret_val = 0;
    break;
  case 0x109B:
    printf("mPCIe-COM232-4: 2 port, RS-232 only\n");
    ret_val = 4;
    break;
  case 0x10D1:
    printf("PCIe-COM-2SMDB: 2 port, RS-232, RS-422, RS-485\n");
    ret_val = 2;
    break;
  case 0x10D3:
    printf("mPCIe-COM-2SM: 2 port, RS-232, RS-422, RS-485\n");
    ret_val = 2;
    break;
  case 0x10DA:
    printf("PCIe-COM-4SMDB: 4 port, RS-232, RS-422, RS-485\n");
    ret_val = 4;
    break;
  case 0x10DC:
    printf("mPCIe-COM-4SM: 4 port, RS-232, RS-422, RS-485\n");
    ret_val = 4;
    break;
  case 0x1108:
    printf("mPCIe-ICM485-1: 1 RS-485 only\n");
    ret_val = 0;
    break;
  case 0x1110:
    printf("mPCIe-ICM422-2: 2 port, RS-422, RS-485\n");
    ret_val = 2;
    break;
  case 0x1111:
    printf("mPCIe-ICM485-2: 2 port, RS-485 only.\n");
    ret_val = 0;
    break;
  case 0x1118:
    printf("mPCIe-ICM422-4: 4 port, RS-422, RS-485\n");
    ret_val = 4;
    break;
  case 0x1119:
    printf("mPCIe-ICM485-4: 4 port, RS-485 only\n");
    ret_val = 4;
    break;
  case 0x1152:
    printf("PCIe-ICM-2S: 2 port, RS-422, RS-485\n");
    ret_val = 2;
    break;
  case 0x115A:
    printf("PCIe-ICM-4S: 2 port, RS-422, RS-485\n");
    ret_val = 4;
    break;
  case 0x1190:
    printf("PCIePCIe-ICM232-2: 2 port, RS-232 only\n");
    ret_val = 0;
    break;
  case 0x1191:
    printf("mPCIe-ICM232-2: 2 port, RS-232 only\n");
    ret_val = 0;
    break;
  case 0x1198:
    printf("PCIe-ICM232-4: 2 port, RS-232 only\n");
    ret_val = 0;
    break;
  case 0x1199:
    printf("mPCIe-ICM232-4: 4 port, RS-232 only\n");
    ret_val = 0;
    break;
  case 0x11D0:
    printf("PCIe-ICM-2SM: 2 port, RS-232, RS-422, RS-485\n");
    ret_val = 2;
    break;
  case 0x105A:
    printf("PCIe-COM422-4: 2 port, RS-422, RS-485\n");
    ret_val = 4;
    break;
  case 0x105B:
    printf("PCIe-COM485-4: 4 port, RS-485 only\n");
    ret_val = 0;
    break;
  case 0x106A:
    printf("PCIe-COM422-8: 8 port, RS-422, RS-485\n");
    ret_val = 8;
    break;
  case 0x106B:
    printf("PCIe-COM485-8: 8 port, RS-485 only\n");
    ret_val = 8;
    break;
  case 0x1098:
    printf("PCIe-COM232-4: 4 port, RS-232 only\n");
    ret_val = 0;
    break;
  case 0x10A9:
    printf("PCIe-COM232-8: 8 port, RS-232 only\n");
    ret_val = 8;
    break;
  case 0x10D9:
    printf("PCIe-COM-4SM: 4 port, RS-232, RS-422, RS-485\n");
    ret_val = 4;
    break;
  case 0x10E9:
    printf("PCIe-COM-8SM: 8 port, RS-232, RS-422, RS-485\n");
    ret_val = 8;
    break;
  case 0x11D8:
    printf("PCIe-ICM-4SM: 4 port, RS-232, RS-422, RS-485\n");
    ret_val = 0;
    break;
  default:
    printf("Card not supported by this sample. Please visit "
           "https://accesio.com/ or contact tech@accesio.com\n");
    ret_val = 0;
    break;
  };
  return ret_val;
}


x86 assembly (clang, -O0):
<num_ports_get>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    0x2e6d(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x40(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x28(%rbp)
movl   $0xffffffff,-0x34(%rbp)
mov    -0x10(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x40(%rbp),%rdi
lea    0xe3d(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x40(%rbp),%rdi
mov    0x2e0d(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jge    120b <num_ports_get+0x9b>
mov    -0x40(%rbp),%rsi
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x34(%rbp),%eax
mov    %eax,-0x4(%rbp)
movl   $0x1,-0x38(%rbp)
jmp    183c <num_ports_get+0x6cc>
mov    -0x18(%rbp),%edi
lea    -0x30(%rbp),%rsi
mov    %rsi,-0x50(%rbp)
mov    $0x8,%edx
call   1060 <read@plt>
mov    -0x18(%rbp),%edi
call   1050 <close@plt>
mov    -0x10(%rbp),%rsi
lea    0xdee(%rip),%rdi
xor    %eax,%eax
mov    %eax,-0x48(%rbp)
call   1040 <printf@plt>
mov    -0x50(%rbp),%rdi
mov    -0x48(%rbp),%edx
mov    %edx,%esi
call   1070 <strtol@plt>
mov    %eax,%ecx
mov    %ecx,-0x44(%rbp)
sub    $0x1051,%eax
je     14c0 <num_ports_get+0x350>
jmp    1260 <num_ports_get+0xf0>
mov    -0x44(%rbp),%eax
sub    $0x1053,%eax
je     14da <num_ports_get+0x36a>
jmp    1273 <num_ports_get+0x103>
mov    -0x44(%rbp),%eax
sub    $0x105a,%eax
je     1730 <num_ports_get+0x5c0>
jmp    1286 <num_ports_get+0x116>
mov    -0x44(%rbp),%eax
sub    $0x105b,%eax
je     174a <num_ports_get+0x5da>
jmp    1299 <num_ports_get+0x129>
mov    -0x44(%rbp),%eax
sub    $0x105c,%eax
je     14f4 <num_ports_get+0x384>
jmp    12ac <num_ports_get+0x13c>
mov    -0x44(%rbp),%eax
sub    $0x105e,%eax
je     150e <num_ports_get+0x39e>
jmp    12bf <num_ports_get+0x14f>
mov    -0x44(%rbp),%eax
sub    $0x106a,%eax
je     1764 <num_ports_get+0x5f4>
jmp    12d2 <num_ports_get+0x162>
mov    -0x44(%rbp),%eax
sub    $0x106b,%eax
je     177e <num_ports_get+0x60e>
jmp    12e5 <num_ports_get+0x175>
mov    -0x44(%rbp),%eax
sub    $0x1091,%eax
je     1528 <num_ports_get+0x3b8>
jmp    12f8 <num_ports_get+0x188>
mov    -0x44(%rbp),%eax
sub    $0x1093,%eax
je     1542 <num_ports_get+0x3d2>
jmp    130b <num_ports_get+0x19b>
mov    -0x44(%rbp),%eax
sub    $0x1098,%eax
je     1798 <num_ports_get+0x628>
jmp    131e <num_ports_get+0x1ae>
mov    -0x44(%rbp),%eax
sub    $0x1099,%eax
je     155c <num_ports_get+0x3ec>
jmp    1331 <num_ports_get+0x1c1>
mov    -0x44(%rbp),%eax
sub    $0x109b,%eax
je     1576 <num_ports_get+0x406>
jmp    1344 <num_ports_get+0x1d4>
mov    -0x44(%rbp),%eax
sub    $0x10a9,%eax
je     17b2 <num_ports_get+0x642>
jmp    1357 <num_ports_get+0x1e7>
mov    -0x44(%rbp),%eax
sub    $0x10d1,%eax
je     1590 <num_ports_get+0x420>
jmp    136a <num_ports_get+0x1fa>
mov    -0x44(%rbp),%eax
sub    $0x10d3,%eax
je     15aa <num_ports_get+0x43a>
jmp    137d <num_ports_get+0x20d>
mov    -0x44(%rbp),%eax
sub    $0x10d9,%eax
je     17cc <num_ports_get+0x65c>
jmp    1390 <num_ports_get+0x220>
mov    -0x44(%rbp),%eax
sub    $0x10da,%eax
je     15c4 <num_ports_get+0x454>
jmp    13a3 <num_ports_get+0x233>
mov    -0x44(%rbp),%eax
sub    $0x10dc,%eax
je     15de <num_ports_get+0x46e>
jmp    13b6 <num_ports_get+0x246>
mov    -0x44(%rbp),%eax
sub    $0x10e9,%eax
je     17e6 <num_ports_get+0x676>
jmp    13c9 <num_ports_get+0x259>
mov    -0x44(%rbp),%eax
sub    $0x1108,%eax
je     15f8 <num_ports_get+0x488>
jmp    13dc <num_ports_get+0x26c>
mov    -0x44(%rbp),%eax
sub    $0x1110,%eax
je     1612 <num_ports_get+0x4a2>
jmp    13ef <num_ports_get+0x27f>
mov    -0x44(%rbp),%eax
sub    $0x1111,%eax
je     162c <num_ports_get+0x4bc>
jmp    1402 <num_ports_get+0x292>
mov    -0x44(%rbp),%eax
sub    $0x1118,%eax
je     1646 <num_ports_get+0x4d6>
jmp    1415 <num_ports_get+0x2a5>
mov    -0x44(%rbp),%eax
sub    $0x1119,%eax
je     1660 <num_ports_get+0x4f0>
jmp    1428 <num_ports_get+0x2b8>
mov    -0x44(%rbp),%eax
sub    $0x1152,%eax
je     167a <num_ports_get+0x50a>
jmp    143b <num_ports_get+0x2cb>
mov    -0x44(%rbp),%eax
sub    $0x115a,%eax
je     1694 <num_ports_get+0x524>
jmp    144e <num_ports_get+0x2de>
mov    -0x44(%rbp),%eax
sub    $0x1190,%eax
je     16ae <num_ports_get+0x53e>
jmp    1461 <num_ports_get+0x2f1>
mov    -0x44(%rbp),%eax
sub    $0x1191,%eax
je     16c8 <num_ports_get+0x558>
jmp    1474 <num_ports_get+0x304>
mov    -0x44(%rbp),%eax
sub    $0x1198,%eax
je     16e2 <num_ports_get+0x572>
jmp    1487 <num_ports_get+0x317>
mov    -0x44(%rbp),%eax
sub    $0x1199,%eax
je     16fc <num_ports_get+0x58c>
jmp    149a <num_ports_get+0x32a>
mov    -0x44(%rbp),%eax
sub    $0x11d0,%eax
je     1716 <num_ports_get+0x5a6>
jmp    14ad <num_ports_get+0x33d>
mov    -0x44(%rbp),%eax
sub    $0x11d8,%eax
je     1800 <num_ports_get+0x690>
jmp    181a <num_ports_get+0x6aa>
lea    0xb7d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xb8a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xb96(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xba3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xbaf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xbba(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xbc5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xbd1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xbdc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xbf2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xc07(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xc1d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xc32(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xc37(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xc45(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xc51(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xc5f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xc6a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xc75(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xc80(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xc8e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xc99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xca3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xcae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xcc2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xccf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xcd9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x8,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xce6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x8,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xcf0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xcfa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x8,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xa30(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xcea(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x8,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xcfe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
jmp    182f <num_ports_get+0x6bf>
lea    0xd12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x4(%rbp)
movl   $0x1,-0x38(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<num_ports_get>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    0x2e5c(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
lea    0x1297(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcat@plt>
mov    0x2e18(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1090 <open@plt>
test   %eax,%eax
js     1244 <num_ports_get+0xc4>
mov    %eax,%r15d
lea    -0x20(%rbp),%rbx
mov    %eax,%edi
mov    %rbx,%rsi
mov    $0x8,%edx
call   1070 <read@plt>
mov    %r15d,%edi
call   1060 <close@plt>
lea    0x1276(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1080 <strtol@plt>
cmp    $0x118f,%eax
jg     125f <num_ports_get+0xdf>
add    $0xffffefaf,%eax
cmp    $0x109,%eax
ja     1401 <num_ports_get+0x281>
lea    0xdd1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x16fe(%rip),%rdi
jmp    13f5 <num_ports_get+0x275>
lea    0x120d(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffff,%eax
jmp    140f <num_ports_get+0x28f>
lea    -0x1190(%rax),%ecx
cmp    $0x9,%ecx
ja     1286 <num_ports_get+0x106>
lea    0x11b7(%rip),%rax
movslq (%rax,%rcx,4),%rcx
add    %rax,%rcx
jmp    *%rcx
lea    0x13dd(%rip),%rdi
jmp    1408 <num_ports_get+0x288>
cmp    $0x11d0,%eax
je     13ee <num_ports_get+0x26e>
cmp    $0x11d8,%eax
jne    1401 <num_ports_get+0x281>
lea    0x11f1(%rip),%rdi
jmp    1408 <num_ports_get+0x288>
lea    0x138b(%rip),%rdi
jmp    1408 <num_ports_get+0x288>
lea    0x135c(%rip),%rdi
jmp    1408 <num_ports_get+0x288>
lea    0x132c(%rip),%rdi
jmp    1408 <num_ports_get+0x288>
lea    0x1645(%rip),%rdi
jmp    13f5 <num_ports_get+0x275>
lea    0x12c1(%rip),%rdi
jmp    13e2 <num_ports_get+0x262>
lea    0x1292(%rip),%rdi
jmp    1408 <num_ports_get+0x288>
lea    0x15fb(%rip),%rdi
jmp    13e2 <num_ports_get+0x262>
lea    0x15ca(%rip),%rdi
jmp    13e2 <num_ports_get+0x262>
lea    0x1248(%rip),%rdi
jmp    1399 <num_ports_get+0x219>
lea    0x1219(%rip),%rdi
jmp    1399 <num_ports_get+0x219>
lea    0x1585(%rip),%rdi
jmp    13f5 <num_ports_get+0x275>
lea    0x1555(%rip),%rdi
jmp    1408 <num_ports_get+0x288>
lea    0x11d5(%rip),%rdi
jmp    1408 <num_ports_get+0x288>
lea    0x1518(%rip),%rdi
jmp    1408 <num_ports_get+0x288>
lea    0x14e8(%rip),%rdi
jmp    13e2 <num_ports_get+0x262>
lea    0x118e(%rip),%rdi
jmp    1399 <num_ports_get+0x219>
lea    0x14a4(%rip),%rdi
jmp    13f5 <num_ports_get+0x275>
lea    0x146a(%rip),%rdi
jmp    13f5 <num_ports_get+0x275>
lea    0x1405(%rip),%rdi
jmp    13e2 <num_ports_get+0x262>
lea    0x1429(%rip),%rdi
jmp    13e2 <num_ports_get+0x262>
lea    0x13f2(%rip),%rdi
jmp    13e2 <num_ports_get+0x262>
lea    0x1128(%rip),%rdi
call   1040 <puts@plt>
mov    $0x8,%eax
jmp    140f <num_ports_get+0x28f>
lea    0x13b8(%rip),%rdi
jmp    1408 <num_ports_get+0x288>
lea    0x1388(%rip),%rdi
jmp    13f5 <num_ports_get+0x275>
lea    0x135a(%rip),%rdi
jmp    1408 <num_ports_get+0x288>
lea    0x132a(%rip),%rdi
jmp    13e2 <num_ports_get+0x262>
lea    0x12fd(%rip),%rdi
jmp    13e2 <num_ports_get+0x262>
lea    0x12d0(%rip),%rdi
jmp    13f5 <num_ports_get+0x275>
lea    0x12a3(%rip),%rdi
call   1040 <puts@plt>
mov    $0x4,%eax
jmp    140f <num_ports_get+0x28f>
lea    0x11d1(%rip),%rdi
call   1040 <puts@plt>
mov    $0x2,%eax
jmp    140f <num_ports_get+0x28f>
lea    0x155b(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
lea    -0x18(%rbp),%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@PATH_MAX = global i32 0
@.str = [8 x i8] c"/device\00"
@O_RDONLY = global i32 0
@.str.1 = [25 x i8] c"Could not open file: %s\0A\00"
@.str.2 = [35 x i8] c"Device located at device_path \22%s\22\00"
@.str.3 = [39 x i8] c"PCIe-COM-2SDB: 2 port, RS-422, RS-485\0A\00"
@.str.4 = [38 x i8] c"mPCIe-COM-2S: 2 port, RS-422, RS-485\0A\00"
@.str.5 = [39 x i8] c"PCIe-COM-4SRJ: 4 port, RS-422, RS-485\0A\00"
@.str.6 = [38 x i8] c"mPCIe-COM-4S: 4 port, RS-422, RS-485\0A\00"
@.str.7 = [37 x i8] c"mPCIe-COM-4S: 4 port RS-422, RS-485\0A\00"
@.str.8 = [37 x i8] c"mPCIe-COM232-2: 2 port, RS-232 only\0A\00"
@.str.9 = [38 x i8] c"PCIe-COM232-4DB: 2 port, RS-232 only\0A\00"
@.str.10 = [37 x i8] c"mPCIe-COM232-4: 2 port, RS-232 only\0A\00"
@.str.11 = [48 x i8] c"PCIe-COM-2SMDB: 2 port, RS-232, RS-422, RS-485\0A\00"
@.str.12 = [47 x i8] c"mPCIe-COM-2SM: 2 port, RS-232, RS-422, RS-485\0A\00"
@.str.13 = [48 x i8] c"PCIe-COM-4SMDB: 4 port, RS-232, RS-422, RS-485\0A\00"
@.str.14 = [47 x i8] c"mPCIe-COM-4SM: 4 port, RS-232, RS-422, RS-485\0A\00"
@.str.15 = [31 x i8] c"mPCIe-ICM485-1: 1 RS-485 only\0A\00"
@.str.16 = [40 x i8] c"mPCIe-ICM422-2: 2 port, RS-422, RS-485\0A\00"
@.str.17 = [38 x i8] c"mPCIe-ICM485-2: 2 port, RS-485 only.\0A\00"
@.str.18 = [40 x i8] c"mPCIe-ICM422-4: 4 port, RS-422, RS-485\0A\00"
@.str.19 = [37 x i8] c"mPCIe-ICM485-4: 4 port, RS-485 only\0A\00"
@.str.20 = [37 x i8] c"PCIe-ICM-2S: 2 port, RS-422, RS-485\0A\00"
@.str.21 = [37 x i8] c"PCIe-ICM-4S: 2 port, RS-422, RS-485\0A\00"
@.str.22 = [40 x i8] c"PCIePCIe-ICM232-2: 2 port, RS-232 only\0A\00"
@.str.23 = [37 x i8] c"mPCIe-ICM232-2: 2 port, RS-232 only\0A\00"
@.str.24 = [36 x i8] c"PCIe-ICM232-4: 2 port, RS-232 only\0A\00"
@.str.25 = [37 x i8] c"mPCIe-ICM232-4: 4 port, RS-232 only\0A\00"
@.str.26 = [46 x i8] c"PCIe-ICM-2SM: 2 port, RS-232, RS-422, RS-485\0A\00"
@.str.27 = [39 x i8] c"PCIe-COM422-4: 2 port, RS-422, RS-485\0A\00"
@.str.28 = [36 x i8] c"PCIe-COM485-4: 4 port, RS-485 only\0A\00"
@.str.29 = [39 x i8] c"PCIe-COM422-8: 8 port, RS-422, RS-485\0A\00"
@.str.30 = [36 x i8] c"PCIe-COM485-8: 8 port, RS-485 only\0A\00"
@.str.31 = [36 x i8] c"PCIe-COM232-4: 4 port, RS-232 only\0A\00"
@.str.32 = [36 x i8] c"PCIe-COM232-8: 8 port, RS-232 only\0A\00"
@.str.33 = [46 x i8] c"PCIe-COM-4SM: 4 port, RS-232, RS-422, RS-485\0A\00"
@.str.34 = [46 x i8] c"PCIe-COM-8SM: 8 port, RS-232, RS-422, RS-485\0A\00"
@.str.35 = [46 x i8] c"PCIe-ICM-4SM: 4 port, RS-232, RS-422, RS-485\0A\00"
@.str.36 = [98 x i8] c"Card not supported by this sample. Please visit https://accesio.com/ or contact tech@accesio.com\0A\00"
define i32 @num_ports_get(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i64
%8 = alloca [8 x i8]
%9 = alloca i32
%10 = alloca i32
store i8* %0, i8** %3
%11 = load i32, i32* @PATH_MAX
%12 = zext i32 %11 to i64
%13 = load i32, i32* @PATH_MAX
%14 = zext i32 %13 to i64
%15 = call i8* @llvm.stacksave()
store i8* %15, i8** %6
%16 = alloca i8, i64 %14
store i64 %14, i64* %7
store i32 -1, i32* %9
%17 = load i8*, i8** %3
%18 = call i32 @strcpy(i8* %16, i8* %17)
%19 = call i32 @strcat(i8* %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%20 = load i32, i32* @O_RDONLY
%21 = call i32 @open(i8* %16, i32 %20)
store i32 %21, i32* %5
%22 = load i32, i32* %5
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %1
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* %16)
%26 = load i32, i32* %9
store i32 %26, i32* %2
store i32 1, i32* %10
br label %107
27: ; preds = %1
%28 = load i32, i32* %5
%29 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 0
%30 = call i32 @read(i32 %28, i8* %29, i32 8)
%31 = load i32, i32* %5
%32 = call i32 @close(i32 %31)
%33 = load i8*, i8** %3
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i8* %33)
%35 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 0
%36 = call i32 @strtol(i8* %35, i32* null, i32 0)
switch i32 %36, label %103 [
i32 4177, label %37
i32 4179, label %39
i32 4188, label %41
i32 4190, label %43
i32 4241, label %45
i32 4243, label %47
i32 4249, label %49
i32 4251, label %51
i32 4305, label %53
i32 4307, label %55
i32 4314, label %57
i32 4316, label %59
i32 4360, label %61
i32 4368, label %63
i32 4369, label %65
i32 4376, label %67
i32 4377, label %69
i32 4434, label %71
i32 4442, label %73
i32 4496, label %75
i32 4497, label %77
i32 4504, label %79
i32 4505, label %81
i32 4560, label %83
i32 4186, label %85
i32 4187, label %87
i32 4202, label %89
i32 4203, label %91
i32 4248, label %93
i32 4265, label %95
i32 4313, label %97
i32 4329, label %99
i32 4568, label %101
]
37: ; preds = %27
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
store i32 2, i32* %9
br label %105
39: ; preds = %27
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
store i32 2, i32* %9
br label %105
41: ; preds = %27
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
store i32 4, i32* %9
br label %105
43: ; preds = %27
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
store i32 4, i32* %9
br label %105
45: ; preds = %27
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
store i32 2, i32* %9
br label %105
47: ; preds = %27
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %9
br label %105
49: ; preds = %27
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %9
br label %105
51: ; preds = %27
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0))
store i32 4, i32* %9
br label %105
53: ; preds = %27
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
store i32 2, i32* %9
br label %105
55: ; preds = %27
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i64 0, i64 0))
store i32 2, i32* %9
br label %105
57: ; preds = %27
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.13, i64 0, i64 0))
store i32 4, i32* %9
br label %105
59: ; preds = %27
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.14, i64 0, i64 0))
store i32 4, i32* %9
br label %105
61: ; preds = %27
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0))
store i32 0, i32* %9
br label %105
63: ; preds = %27
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.16, i64 0, i64 0))
store i32 2, i32* %9
br label %105
65: ; preds = %27
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.17, i64 0, i64 0))
store i32 0, i32* %9
br label %105
67: ; preds = %27
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.18, i64 0, i64 0))
store i32 4, i32* %9
br label %105
69: ; preds = %27
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.19, i64 0, i64 0))
store i32 4, i32* %9
br label %105
71: ; preds = %27
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.20, i64 0, i64 0))
store i32 2, i32* %9
br label %105
73: ; preds = %27
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.21, i64 0, i64 0))
store i32 4, i32* %9
br label %105
75: ; preds = %27
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.22, i64 0, i64 0))
store i32 0, i32* %9
br label %105
77: ; preds = %27
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.23, i64 0, i64 0))
store i32 0, i32* %9
br label %105
79: ; preds = %27
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.24, i64 0, i64 0))
store i32 0, i32* %9
br label %105
81: ; preds = %27
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.25, i64 0, i64 0))
store i32 0, i32* %9
br label %105
83: ; preds = %27
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.26, i64 0, i64 0))
store i32 2, i32* %9
br label %105
85: ; preds = %27
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.27, i64 0, i64 0))
store i32 4, i32* %9
br label %105
87: ; preds = %27
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.28, i64 0, i64 0))
store i32 0, i32* %9
br label %105
89: ; preds = %27
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.29, i64 0, i64 0))
store i32 8, i32* %9
br label %105
91: ; preds = %27
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.30, i64 0, i64 0))
store i32 8, i32* %9
br label %105
93: ; preds = %27
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.31, i64 0, i64 0))
store i32 0, i32* %9
br label %105
95: ; preds = %27
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.32, i64 0, i64 0))
store i32 8, i32* %9
br label %105
97: ; preds = %27
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.33, i64 0, i64 0))
store i32 4, i32* %9
br label %105
99: ; preds = %27
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.34, i64 0, i64 0))
store i32 8, i32* %9
br label %105
101: ; preds = %27
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.35, i64 0, i64 0))
store i32 0, i32* %9
br label %105
103: ; preds = %27
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.36, i64 0, i64 0))
store i32 0, i32* %9
br label %105
105: ; preds = %103, %101, %99, %97, %95, %93, %91, %89, %87, %85, %83, %81, %79, %77, %75, %73, %71, %69, %67, %65, %63, %61, %59, %57, %55, %53, %51, %49, %47, %45, %43, %41, %39, %37
%106 = load i32, i32* %9
store i32 %106, i32* %2
store i32 1, i32* %10
br label %107
107: ; preds = %105, %24
%108 = load i8*, i8** %6
%109 = load i32, i32* %2
ret i32 %109
}

LLVM IR (-O2):
@PATH_MAX = global i32 0
@.str = [8 x i8] c"/device\00"
@O_RDONLY = global i32 0
@.str.1 = [25 x i8] c"Could not open file: %s\0A\00"
@.str.2 = [35 x i8] c"Device located at device_path \22%s\22\00"
@str = [45 x i8] c"PCIe-ICM-4SM: 4 port, RS-232, RS-422, RS-485\00"
@str.37 = [45 x i8] c"PCIe-COM-8SM: 8 port, RS-232, RS-422, RS-485\00"
@str.38 = [45 x i8] c"PCIe-COM-4SM: 4 port, RS-232, RS-422, RS-485\00"
@str.39 = [35 x i8] c"PCIe-COM232-8: 8 port, RS-232 only\00"
@str.40 = [35 x i8] c"PCIe-COM232-4: 4 port, RS-232 only\00"
@str.41 = [35 x i8] c"PCIe-COM485-8: 8 port, RS-485 only\00"
@str.42 = [38 x i8] c"PCIe-COM422-8: 8 port, RS-422, RS-485\00"
@str.43 = [35 x i8] c"PCIe-COM485-4: 4 port, RS-485 only\00"
@str.44 = [38 x i8] c"PCIe-COM422-4: 2 port, RS-422, RS-485\00"
@str.45 = [45 x i8] c"PCIe-ICM-2SM: 2 port, RS-232, RS-422, RS-485\00"
@str.46 = [36 x i8] c"mPCIe-ICM232-4: 4 port, RS-232 only\00"
@str.47 = [35 x i8] c"PCIe-ICM232-4: 2 port, RS-232 only\00"
@str.48 = [36 x i8] c"mPCIe-ICM232-2: 2 port, RS-232 only\00"
@str.49 = [39 x i8] c"PCIePCIe-ICM232-2: 2 port, RS-232 only\00"
@str.50 = [36 x i8] c"PCIe-ICM-4S: 2 port, RS-422, RS-485\00"
@str.51 = [36 x i8] c"PCIe-ICM-2S: 2 port, RS-422, RS-485\00"
@str.52 = [36 x i8] c"mPCIe-ICM485-4: 4 port, RS-485 only\00"
@str.53 = [39 x i8] c"mPCIe-ICM422-4: 4 port, RS-422, RS-485\00"
@str.54 = [37 x i8] c"mPCIe-ICM485-2: 2 port, RS-485 only.\00"
@str.55 = [39 x i8] c"mPCIe-ICM422-2: 2 port, RS-422, RS-485\00"
@str.56 = [30 x i8] c"mPCIe-ICM485-1: 1 RS-485 only\00"
@str.57 = [46 x i8] c"mPCIe-COM-4SM: 4 port, RS-232, RS-422, RS-485\00"
@str.58 = [47 x i8] c"PCIe-COM-4SMDB: 4 port, RS-232, RS-422, RS-485\00"
@str.59 = [46 x i8] c"mPCIe-COM-2SM: 2 port, RS-232, RS-422, RS-485\00"
@str.60 = [47 x i8] c"PCIe-COM-2SMDB: 2 port, RS-232, RS-422, RS-485\00"
@str.61 = [36 x i8] c"mPCIe-COM232-4: 2 port, RS-232 only\00"
@str.62 = [37 x i8] c"PCIe-COM232-4DB: 2 port, RS-232 only\00"
@str.63 = [36 x i8] c"mPCIe-COM232-2: 2 port, RS-232 only\00"
@str.64 = [36 x i8] c"mPCIe-COM-4S: 4 port RS-422, RS-485\00"
@str.65 = [37 x i8] c"mPCIe-COM-4S: 4 port, RS-422, RS-485\00"
@str.66 = [38 x i8] c"PCIe-COM-4SRJ: 4 port, RS-422, RS-485\00"
@str.67 = [37 x i8] c"mPCIe-COM-2S: 2 port, RS-422, RS-485\00"
@str.68 = [38 x i8] c"PCIe-COM-2SDB: 2 port, RS-422, RS-485\00"
@str.69 = [97 x i8] c"Card not supported by this sample. Please visit https://accesio.com/ or contact tech@accesio.com\00"
define i32 @num_ports_get(i8* %0) {
%2 = alloca [8 x i8]
%3 = load i32, i32* @PATH_MAX
%4 = zext i32 %3 to i64
%5 = alloca i8, i64 %4
%6 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%7 = call i32 @strcpy(i8* %5, i8* %0)
%8 = call i32 @strcat(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%9 = load i32, i32* @O_RDONLY
%10 = call i32 @open(i8* %5, i32 %9)
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %1
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* %5)
br label %87
14: ; preds = %1
%15 = call i32 @read(i32 %10, i8* %6, i32 8)
%16 = call i32 @close(i32 %10)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%18 = call i32 @strtol(i8* nocapture %6, i32* null, i32 0)
switch i32 %18, label %85 [
i32 4177, label %19
i32 4179, label %21
i32 4188, label %23
i32 4190, label %25
i32 4241, label %27
i32 4243, label %29
i32 4249, label %31
i32 4251, label %33
i32 4305, label %35
i32 4307, label %37
i32 4314, label %39
i32 4316, label %41
i32 4360, label %43
i32 4368, label %45
i32 4369, label %47
i32 4376, label %49
i32 4377, label %51
i32 4434, label %53
i32 4442, label %55
i32 4496, label %57
i32 4497, label %59
i32 4504, label %61
i32 4505, label %63
i32 4560, label %65
i32 4186, label %67
i32 4187, label %69
i32 4202, label %71
i32 4203, label %73
i32 4248, label %75
i32 4265, label %77
i32 4313, label %79
i32 4329, label %81
i32 4568, label %83
]
19: ; preds = %14
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.68, i64 0, i64 0))
br label %87
21: ; preds = %14
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.67, i64 0, i64 0))
br label %87
23: ; preds = %14
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.66, i64 0, i64 0))
br label %87
25: ; preds = %14
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.65, i64 0, i64 0))
br label %87
27: ; preds = %14
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.64, i64 0, i64 0))
br label %87
29: ; preds = %14
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.63, i64 0, i64 0))
br label %87
31: ; preds = %14
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.62, i64 0, i64 0))
br label %87
33: ; preds = %14
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.61, i64 0, i64 0))
br label %87
35: ; preds = %14
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.60, i64 0, i64 0))
br label %87
37: ; preds = %14
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.59, i64 0, i64 0))
br label %87
39: ; preds = %14
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.58, i64 0, i64 0))
br label %87
41: ; preds = %14
%42 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.57, i64 0, i64 0))
br label %87
43: ; preds = %14
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.56, i64 0, i64 0))
br label %87
45: ; preds = %14
%46 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.55, i64 0, i64 0))
br label %87
47: ; preds = %14
%48 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.54, i64 0, i64 0))
br label %87
49: ; preds = %14
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.53, i64 0, i64 0))
br label %87
51: ; preds = %14
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.52, i64 0, i64 0))
br label %87
53: ; preds = %14
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.51, i64 0, i64 0))
br label %87
55: ; preds = %14
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.50, i64 0, i64 0))
br label %87
57: ; preds = %14
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.49, i64 0, i64 0))
br label %87
59: ; preds = %14
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.48, i64 0, i64 0))
br label %87
61: ; preds = %14
%62 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.47, i64 0, i64 0))
br label %87
63: ; preds = %14
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.46, i64 0, i64 0))
br label %87
65: ; preds = %14
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.45, i64 0, i64 0))
br label %87
67: ; preds = %14
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.44, i64 0, i64 0))
br label %87
69: ; preds = %14
%70 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.43, i64 0, i64 0))
br label %87
71: ; preds = %14
%72 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.42, i64 0, i64 0))
br label %87
73: ; preds = %14
%74 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.41, i64 0, i64 0))
br label %87
75: ; preds = %14
%76 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.40, i64 0, i64 0))
br label %87
77: ; preds = %14
%78 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.39, i64 0, i64 0))
br label %87
79: ; preds = %14
%80 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.38, i64 0, i64 0))
br label %87
81: ; preds = %14
%82 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.37, i64 0, i64 0))
br label %87
83: ; preds = %14
%84 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str, i64 0, i64 0))
br label %87
85: ; preds = %14
%86 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @str.69, i64 0, i64 0))
br label %87
87: ; preds = %19, %21, %23, %25, %27, %29, %31, %33, %35, %37, %39, %41, %43, %45, %47, %49, %51, %53, %55, %57, %59, %61, %63, %65, %67, %69, %71, %73, %75, %77, %79, %81, %83, %85, %12
%88 = phi i32 [ -1, %12 ], [ 0, %85 ], [ 0, %83 ], [ 8, %81 ], [ 4, %79 ], [ 8, %77 ], [ 0, %75 ], [ 8, %73 ], [ 8, %71 ], [ 0, %69 ], [ 4, %67 ], [ 2, %65 ], [ 0, %63 ], [ 0, %61 ], [ 0, %59 ], [ 0, %57 ], [ 4, %55 ], [ 2, %53 ], [ 4, %51 ], [ 4, %49 ], [ 0, %47 ], [ 2, %45 ], [ 0, %43 ], [ 4, %41 ], [ 4, %39 ], [ 2, %37 ], [ 2, %35 ], [ 4, %33 ], [ 0, %31 ], [ 0, %29 ], [ 2, %27 ], [ 4, %25 ], [ 4, %23 ], [ 2, %21 ], [ 2, %19 ]
ret i32 %88
}