#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 */
struct hostent {
  int dummy;
};
typedef int /*<<< orphan*/ s;
typedef int /*<<< orphan*/ l;
typedef int /*<<< orphan*/ i;

/* Variables and functions */
scalar_t__ ENOSYS;
int O_CREAT;
int /*<<< orphan*/ O_RDONLY;
int O_WRONLY;
int STDERR_FILENO;
int S_IRUSR;
int S_IWUSR;
int /*<<< orphan*/ close(int);
scalar_t__ errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
struct hostent *gethostbyname(char *);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strlen(char *);
int /*<<< orphan*/ strncmp(char *, char *, int /*<<< orphan*/);
int syscall(int, ...);
scalar_t__ system(char *);
int /*<<< orphan*/ unlink(char *);
void runTestCases() {
  short s[] = {97};
  int i[] = {6579042};
  long long l[] = {30234823463757413};
  char *c;
  c = (char *)s;
  {
    if (!(c[0] == 0x61)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(c[1] == 0x00)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  c = (char *)i;
  {
    if (!(c[0] == 0x62)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(c[1] == 0x63)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(c[2] == 0x64)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(c[3] == 0x00)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  c = (char *)l;
  {
    if (!(c[0] == 0x65)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(c[1] == 0x66)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(c[2] == 0x67)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(c[3] == 0x68)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(c[4] == 0x69)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(c[5] == 0x6a)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(c[6] == 0x6b)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(c[7] == 0x00)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(sizeof(s) == 2)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(sizeof(i) == 4)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(sizeof(l) == 8)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(STDERR_FILENO == 2)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(833 & O_CREAT)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(833 & O_WRONLY)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(438 & (S_IRUSR | S_IWUSR))) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  char *filename = "testfile";
  int r, k, file;
  errno = 0;
  r = syscall(6, 2);
  {
    if (!(errno != ENOSYS)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  if (r)
    k = 1;
  else
    k = 4;
  {
    errno = 0;
    file = syscall(k + 1, filename, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
    {
      if (!(errno != ENOSYS)) {
        fprintf(stderr, "System incompatibility: switching to reduced "
                        "functionality version.\n");
        exit(1);
      }
    };
    {
      if (!(!errno)) {
        fprintf(stderr, "System incompatibility: switching to reduced "
                        "functionality version.\n");
        exit(1);
      }
    };
    char *s = "hello";
    char buf[255] = {0};
    errno = 0;
    syscall(k, file, s, strlen(s));
    {
      if (!(errno != ENOSYS)) {
        fprintf(stderr, "System incompatibility: switching to reduced "
                        "functionality version.\n");
        exit(1);
      }
    };
    {
      if (!(!errno)) {
        fprintf(stderr, "System incompatibility: switching to reduced "
                        "functionality version.\n");
        exit(1);
      }
    };
    close(file);
    {
      if (!(!errno)) {
        fprintf(stderr, "System incompatibility: switching to reduced "
                        "functionality version.\n");
        exit(1);
      }
    };
    file = open(filename, O_RDONLY);
    {
      if (!(!errno)) {
        fprintf(stderr, "System incompatibility: switching to reduced "
                        "functionality version.\n");
        exit(1);
      }
    };
    errno = 0;
    syscall(k - 1, file, buf, strlen(s));
    {
      if (!(errno != ENOSYS)) {
        fprintf(stderr, "System incompatibility: switching to reduced "
                        "functionality version.\n");
        exit(1);
      }
    };
    {
      if (!(!errno)) {
        fprintf(stderr, "System incompatibility: switching to reduced "
                        "functionality version.\n");
        exit(1);
      }
    };
    {
      if (!(!strncmp(buf, s, strlen(s)))) {
        fprintf(stderr, "System incompatibility: switching to reduced "
                        "functionality version.\n");
        exit(1);
      }
    };
    close(file);
    unlink(filename);
  }
  {
    if (!(0 != system(NULL))) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(!system("command -v "
                  "make"
                  " >/dev/null"))) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(!system("command -v "
                  "tar "
                  " >/dev/null"))) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  {
    if (!(!system("command -v "
                  "find"
                  " >/dev/null"))) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
  struct hostent *h = gethostbyname("206.197.161.153");
  {
    if (!(h)) {
      fprintf(stderr, "System incompatibility: switching to reduced "
                      "functionality version.\n");
      exit(1);
    }
  };
}


x86 assembly (clang, -O0):
<runTestCases>:
push   %rbp
mov    %rsp,%rbp
sub    $0x180,%rsp
mov    0xe3e(%rip),%ax
mov    %ax,-0x2(%rbp)
mov    0xe38(%rip),%eax
mov    %eax,-0x8(%rbp)
mov    0xe32(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    -0x2(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x61,%eax
je     1211 <runTestCases+0x61>
mov    0x2dc7(%rip),%rax
mov    (%rax),%edi
lea    0xe0e(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x18(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x0,%eax
je     1241 <runTestCases+0x91>
mov    0x2d97(%rip),%rax
mov    (%rax),%edi
lea    0xdde(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x62,%eax
je     1278 <runTestCases+0xc8>
mov    0x2d60(%rip),%rax
mov    (%rax),%edi
lea    0xda7(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x18(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x63,%eax
je     12a8 <runTestCases+0xf8>
mov    0x2d30(%rip),%rax
mov    (%rax),%edi
lea    0xd77(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x18(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x64,%eax
je     12d8 <runTestCases+0x128>
mov    0x2d00(%rip),%rax
mov    (%rax),%edi
lea    0xd47(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x18(%rbp),%rax
movsbl 0x3(%rax),%eax
cmp    $0x0,%eax
je     1308 <runTestCases+0x158>
mov    0x2cd0(%rip),%rax
mov    (%rax),%edi
lea    0xd17(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x65,%eax
je     133f <runTestCases+0x18f>
mov    0x2c99(%rip),%rax
mov    (%rax),%edi
lea    0xce0(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x18(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x66,%eax
je     136f <runTestCases+0x1bf>
mov    0x2c69(%rip),%rax
mov    (%rax),%edi
lea    0xcb0(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x18(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x67,%eax
je     139f <runTestCases+0x1ef>
mov    0x2c39(%rip),%rax
mov    (%rax),%edi
lea    0xc80(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x18(%rbp),%rax
movsbl 0x3(%rax),%eax
cmp    $0x68,%eax
je     13cf <runTestCases+0x21f>
mov    0x2c09(%rip),%rax
mov    (%rax),%edi
lea    0xc50(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x18(%rbp),%rax
movsbl 0x4(%rax),%eax
cmp    $0x69,%eax
je     13ff <runTestCases+0x24f>
mov    0x2bd9(%rip),%rax
mov    (%rax),%edi
lea    0xc20(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x18(%rbp),%rax
movsbl 0x5(%rax),%eax
cmp    $0x6a,%eax
je     142f <runTestCases+0x27f>
mov    0x2ba9(%rip),%rax
mov    (%rax),%edi
lea    0xbf0(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x18(%rbp),%rax
movsbl 0x6(%rax),%eax
cmp    $0x6b,%eax
je     145f <runTestCases+0x2af>
mov    0x2b79(%rip),%rax
mov    (%rax),%edi
lea    0xbc0(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x18(%rbp),%rax
movsbl 0x7(%rax),%eax
cmp    $0x0,%eax
je     148f <runTestCases+0x2df>
mov    0x2b49(%rip),%rax
mov    (%rax),%edi
lea    0xb90(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x2b1a(%rip),%rax
cmpl   $0x2,(%rax)
je     14be <runTestCases+0x30e>
mov    0x2b1a(%rip),%rax
mov    (%rax),%edi
lea    0xb61(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x2b33(%rip),%rax
mov    (%rax),%eax
and    $0x341,%eax
cmp    $0x0,%eax
jne    14f4 <runTestCases+0x344>
mov    0x2ae4(%rip),%rax
mov    (%rax),%edi
lea    0xb2b(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x2a9d(%rip),%rax
mov    (%rax),%eax
and    $0x341,%eax
cmp    $0x0,%eax
jne    152a <runTestCases+0x37a>
mov    0x2aae(%rip),%rax
mov    (%rax),%edi
lea    0xaf5(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x2a77(%rip),%rax
mov    (%rax),%eax
mov    0x2a96(%rip),%rcx
or     (%rcx),%eax
and    $0x1b6,%eax
cmp    $0x0,%eax
jne    1569 <runTestCases+0x3b9>
mov    0x2a6f(%rip),%rax
mov    (%rax),%edi
lea    0xab6(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    0xae5(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2a3d(%rip),%rax
movq   $0x0,(%rax)
mov    $0x6,%edi
mov    $0x2,%esi
mov    $0x0,%al
call   10b0 <syscall@plt>
mov    %eax,-0x24(%rbp)
mov    0x2a1b(%rip),%rax
mov    (%rax),%rax
mov    0x2a31(%rip),%rcx
cmp    (%rcx),%rax
jne    15cf <runTestCases+0x41f>
mov    0x2a09(%rip),%rax
mov    (%rax),%edi
lea    0xa50(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
cmpl   $0x0,-0x24(%rbp)
je     15e5 <runTestCases+0x435>
movl   $0x1,-0x28(%rbp)
jmp    15ec <runTestCases+0x43c>
movl   $0x4,-0x28(%rbp)
mov    0x29c5(%rip),%rax
movq   $0x0,(%rax)
mov    -0x28(%rbp),%edi
add    $0x1,%edi
mov    -0x20(%rbp),%rsi
mov    0x29ed(%rip),%rax
mov    (%rax),%edx
mov    0x2984(%rip),%rax
or     (%rax),%edx
mov    0x298b(%rip),%rax
mov    (%rax),%ecx
mov    0x29aa(%rip),%rax
or     (%rax),%ecx
mov    $0x0,%al
call   10b0 <syscall@plt>
mov    %eax,-0x2c(%rbp)
mov    0x297f(%rip),%rax
mov    (%rax),%rax
mov    0x2995(%rip),%rcx
cmp    (%rcx),%rax
jne    166b <runTestCases+0x4bb>
mov    0x296d(%rip),%rax
mov    (%rax),%edi
lea    0x9b4(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x2946(%rip),%rax
cmpq   $0x0,(%rax)
je     169b <runTestCases+0x4eb>
mov    0x293d(%rip),%rax
mov    (%rax),%edi
lea    0x984(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    0x9bc(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    -0x140(%rbp),%rdi
xor    %esi,%esi
mov    $0xff,%edx
call   1070 <memset@plt>
mov    0x28f8(%rip),%rax
movq   $0x0,(%rax)
mov    -0x28(%rbp),%eax
mov    %eax,-0x158(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x154(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x150(%rbp)
mov    -0x38(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x158(%rbp),%edi
mov    -0x154(%rbp),%esi
mov    -0x150(%rbp),%rdx
mov    %eax,%ecx
mov    $0x0,%al
call   10b0 <syscall@plt>
mov    0x28a8(%rip),%rax
mov    (%rax),%rax
mov    0x28be(%rip),%rcx
cmp    (%rcx),%rax
jne    1742 <runTestCases+0x592>
mov    0x2896(%rip),%rax
mov    (%rax),%edi
lea    0x8dd(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x286f(%rip),%rax
cmpq   $0x0,(%rax)
je     1772 <runTestCases+0x5c2>
mov    0x2866(%rip),%rax
mov    (%rax),%edi
lea    0x8ad(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x2c(%rbp),%edi
call   1080 <close@plt>
mov    0x2837(%rip),%rax
cmpq   $0x0,(%rax)
je     17aa <runTestCases+0x5fa>
mov    0x282e(%rip),%rax
mov    (%rax),%edi
lea    0x875(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x20(%rbp),%rdi
mov    0x282b(%rip),%rax
mov    (%rax),%esi
call   10c0 <open@plt>
mov    %eax,-0x2c(%rbp)
mov    0x27f2(%rip),%rax
cmpq   $0x0,(%rax)
je     17ef <runTestCases+0x63f>
mov    0x27e9(%rip),%rax
mov    (%rax),%edi
lea    0x830(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x27c2(%rip),%rax
movq   $0x0,(%rax)
mov    -0x28(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x168(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x164(%rbp)
lea    -0x140(%rbp),%rax
mov    %rax,-0x160(%rbp)
mov    -0x38(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x168(%rbp),%edi
mov    -0x164(%rbp),%esi
mov    -0x160(%rbp),%rdx
mov    %eax,%ecx
mov    $0x0,%al
call   10b0 <syscall@plt>
mov    0x276c(%rip),%rax
mov    (%rax),%rax
mov    0x2782(%rip),%rcx
cmp    (%rcx),%rax
jne    187e <runTestCases+0x6ce>
mov    0x275a(%rip),%rax
mov    (%rax),%edi
lea    0x7a1(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x2733(%rip),%rax
cmpq   $0x0,(%rax)
je     18ae <runTestCases+0x6fe>
mov    0x272a(%rip),%rax
mov    (%rax),%edi
lea    0x771(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    -0x140(%rbp),%rax
mov    %rax,-0x178(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x170(%rbp)
mov    -0x38(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x178(%rbp),%rdi
mov    -0x170(%rbp),%rsi
mov    %eax,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
je     190d <runTestCases+0x75d>
mov    0x26cb(%rip),%rax
mov    (%rax),%edi
lea    0x712(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x2c(%rbp),%edi
call   1080 <close@plt>
mov    -0x20(%rbp),%rdi
call   1030 <unlink@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1060 <system@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1954 <runTestCases+0x7a4>
mov    0x2684(%rip),%rax
mov    (%rax),%edi
lea    0x6cb(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    0x709(%rip),%rdi
call   1060 <system@plt>
cmp    $0x0,%rax
je     1989 <runTestCases+0x7d9>
mov    0x264f(%rip),%rax
mov    (%rax),%edi
lea    0x696(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    0x6ef(%rip),%rdi
call   1060 <system@plt>
cmp    $0x0,%rax
je     19be <runTestCases+0x80e>
mov    0x261a(%rip),%rax
mov    (%rax),%edi
lea    0x661(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    0x6d5(%rip),%rdi
call   1060 <system@plt>
cmp    $0x0,%rax
je     19f3 <runTestCases+0x843>
mov    0x25e5(%rip),%rax
mov    (%rax),%edi
lea    0x62c(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    0x6bb(%rip),%rdi
call   1090 <gethostbyname@plt>
mov    %rax,-0x148(%rbp)
cmpq   $0x0,-0x148(%rbp)
jne    1a33 <runTestCases+0x883>
mov    0x25a5(%rip),%rax
mov    (%rax),%edi
lea    0x5ec(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
add    $0x180,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<runTestCases>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
mov    0x2df8(%rip),%rax
cmpl   $0x2,(%rax)
jne    143e <runTestCases+0x29e>
mov    0x2e30(%rip),%rax
movzwl (%rax),%eax
test   $0x341,%eax
je     143e <runTestCases+0x29e>
mov    0x2dbb(%rip),%r14
movzwl (%r14),%eax
test   $0x341,%eax
je     143e <runTestCases+0x29e>
mov    0x2db5(%rip),%rbx
mov    0x2dd6(%rip),%rbp
mov    0x0(%rbp),%eax
or     (%rbx),%eax
test   $0x1b6,%eax
je     143e <runTestCases+0x29e>
mov    0x2da7(%rip),%r15
movq   $0x0,(%r15)
mov    $0x6,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   10a0 <syscall@plt>
mov    (%r15),%rcx
mov    0x2da5(%rip),%r13
cmp    0x0(%r13),%rcx
je     143e <runTestCases+0x29e>
xor    %r12d,%r12d
test   %eax,%eax
sete   %r12b
movq   $0x0,(%r15)
mov    (%r14),%edx
mov    0x2da1(%rip),%rax
or     (%rax),%edx
lea    (%r12,%r12,2),%edi
add    $0x2,%edi
mov    0x0(%rbp),%ecx
or     (%rbx),%ecx
lea    0xdd9(%rip),%rsi
xor    %eax,%eax
call   10a0 <syscall@plt>
mov    %eax,%r14d
mov    (%r15),%rax
cmp    0x0(%r13),%rax
je     143e <runTestCases+0x29e>
test   %rax,%rax
jne    143e <runTestCases+0x29e>
lea    (%r12,%r12,2),%ebx
add    $0x1,%ebx
xorps  %xmm0,%xmm0
movups %xmm0,0xef(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
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)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
movq   $0x0,(%r15)
lea    0xd43(%rip),%rbp
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    %ebx,%edi
mov    %r14d,%esi
mov    %rbp,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   10a0 <syscall@plt>
mov    (%r15),%rax
cmp    0x0(%r13),%rax
je     143e <runTestCases+0x29e>
test   %rax,%rax
jne    143e <runTestCases+0x29e>
mov    %r14d,%edi
call   1070 <close@plt>
cmpq   $0x0,(%r15)
jne    143e <runTestCases+0x29e>
mov    0x2c8d(%rip),%rax
mov    (%rax),%esi
lea    0xce9(%rip),%rdi
call   10b0 <open@plt>
cmpq   $0x0,(%r15)
jne    143e <runTestCases+0x29e>
mov    %eax,%ebp
movq   $0x0,(%r15)
add    $0xffffffff,%ebx
lea    0xcd0(%rip),%rdi
call   1050 <strlen@plt>
mov    %rsp,%rdx
mov    %ebx,%edi
mov    %ebp,%esi
mov    %eax,%ecx
xor    %eax,%eax
call   10a0 <syscall@plt>
mov    (%r15),%rax
cmp    0x0(%r13),%rax
je     143e <runTestCases+0x29e>
test   %rax,%rax
jne    143e <runTestCases+0x29e>
lea    0xc9e(%rip),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %rsp,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <strncmp@plt>
test   %eax,%eax
jne    143e <runTestCases+0x29e>
mov    %ebp,%edi
call   1070 <close@plt>
lea    0xc6e(%rip),%rdi
call   1030 <unlink@plt>
xor    %edi,%edi
call   1060 <system@plt>
test   %rax,%rax
je     143e <runTestCases+0x29e>
lea    0xc65(%rip),%rdi
call   1060 <system@plt>
test   %rax,%rax
jne    143e <runTestCases+0x29e>
lea    0xc6f(%rip),%rdi
call   1060 <system@plt>
test   %rax,%rax
jne    143e <runTestCases+0x29e>
lea    0xc79(%rip),%rdi
call   1060 <system@plt>
test   %rax,%rax
jne    143e <runTestCases+0x29e>
lea    0xc83(%rip),%rdi
call   1080 <gethostbyname@plt>
test   %rax,%rax
je     143e <runTestCases+0x29e>
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2b7b(%rip),%rax
mov    (%rax),%edi
lea    0xbb2(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
%struct.hostent = type { i32 }
@__const.runTestCases.s = [1 x i16] [i16 97]
@__const.runTestCases.i = [1 x i32] [i32 6579042]
@__const.runTestCases.l = [1 x i64] [i64 30234823463757413]
@stderr = global i32 0
@.str = [69 x i8] c"System incompatibility: switching to reduced functionality version.\0A\00"
@STDERR_FILENO = global i32 0
@O_CREAT = global i32 0
@O_WRONLY = global i32 0
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@.str.1 = [9 x i8] c"testfile\00"
@errno = global i64 0
@ENOSYS = global i64 0
@.str.2 = [6 x i8] c"hello\00"
@O_RDONLY = global i32 0
@.str.3 = [27 x i8] c"command -v make >/dev/null\00"
@.str.4 = [27 x i8] c"command -v tar >/dev/null\00"
@.str.5 = [27 x i8] c"command -v find >/dev/null\00"
@.str.6 = [16 x i8] c"206.197.161.153\00"
define void @runTestCases() {
%1 = alloca [1 x i16]
%2 = alloca [1 x i32]
%3 = alloca [1 x i64]
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca [255 x i8]
%11 = alloca %struct.hostent*
%12 = bitcast [1 x i16]* %1 to i8*
%13 = bitcast [1 x i32]* %2 to i8*
%14 = bitcast [1 x i64]* %3 to i8*
%15 = getelementptr inbounds [1 x i16], [1 x i16]* %1, i64 0, i64 0
%16 = bitcast i16* %15 to i8*
store i8* %16, i8** %4
%17 = load i8*, i8** %4
%18 = getelementptr inbounds i8, i8* %17, i64 0
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 97
br i1 %21, label %26, label %22
22: ; preds = %0
%23 = load i32, i32* @stderr
%24 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%25 = call i32 @exit(i32 1)
unreachable
26: ; preds = %0
%27 = load i8*, i8** %4
%28 = getelementptr inbounds i8, i8* %27, i64 1
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 0
br i1 %31, label %36, label %32
32: ; preds = %26
%33 = load i32, i32* @stderr
%34 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%35 = call i32 @exit(i32 1)
unreachable
36: ; preds = %26
%37 = getelementptr inbounds [1 x i32], [1 x i32]* %2, i64 0, i64 0
%38 = bitcast i32* %37 to i8*
store i8* %38, i8** %4
%39 = load i8*, i8** %4
%40 = getelementptr inbounds i8, i8* %39, i64 0
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 98
br i1 %43, label %48, label %44
44: ; preds = %36
%45 = load i32, i32* @stderr
%46 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%47 = call i32 @exit(i32 1)
unreachable
48: ; preds = %36
%49 = load i8*, i8** %4
%50 = getelementptr inbounds i8, i8* %49, i64 1
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 99
br i1 %53, label %58, label %54
54: ; preds = %48
%55 = load i32, i32* @stderr
%56 = call i32 @fprintf(i32 %55, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%57 = call i32 @exit(i32 1)
unreachable
58: ; preds = %48
%59 = load i8*, i8** %4
%60 = getelementptr inbounds i8, i8* %59, i64 2
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 100
br i1 %63, label %68, label %64
64: ; preds = %58
%65 = load i32, i32* @stderr
%66 = call i32 @fprintf(i32 %65, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%67 = call i32 @exit(i32 1)
unreachable
68: ; preds = %58
%69 = load i8*, i8** %4
%70 = getelementptr inbounds i8, i8* %69, i64 3
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 0
br i1 %73, label %78, label %74
74: ; preds = %68
%75 = load i32, i32* @stderr
%76 = call i32 @fprintf(i32 %75, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%77 = call i32 @exit(i32 1)
unreachable
78: ; preds = %68
%79 = getelementptr inbounds [1 x i64], [1 x i64]* %3, i64 0, i64 0
%80 = bitcast i64* %79 to i8*
store i8* %80, i8** %4
%81 = load i8*, i8** %4
%82 = getelementptr inbounds i8, i8* %81, i64 0
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 101
br i1 %85, label %90, label %86
86: ; preds = %78
%87 = load i32, i32* @stderr
%88 = call i32 @fprintf(i32 %87, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%89 = call i32 @exit(i32 1)
unreachable
90: ; preds = %78
%91 = load i8*, i8** %4
%92 = getelementptr inbounds i8, i8* %91, i64 1
%93 = load i8, i8* %92
%94 = sext i8 %93 to i32
%95 = icmp eq i32 %94, 102
br i1 %95, label %100, label %96
96: ; preds = %90
%97 = load i32, i32* @stderr
%98 = call i32 @fprintf(i32 %97, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%99 = call i32 @exit(i32 1)
unreachable
100: ; preds = %90
%101 = load i8*, i8** %4
%102 = getelementptr inbounds i8, i8* %101, i64 2
%103 = load i8, i8* %102
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 103
br i1 %105, label %110, label %106
106: ; preds = %100
%107 = load i32, i32* @stderr
%108 = call i32 @fprintf(i32 %107, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%109 = call i32 @exit(i32 1)
unreachable
110: ; preds = %100
%111 = load i8*, i8** %4
%112 = getelementptr inbounds i8, i8* %111, i64 3
%113 = load i8, i8* %112
%114 = sext i8 %113 to i32
%115 = icmp eq i32 %114, 104
br i1 %115, label %120, label %116
116: ; preds = %110
%117 = load i32, i32* @stderr
%118 = call i32 @fprintf(i32 %117, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%119 = call i32 @exit(i32 1)
unreachable
120: ; preds = %110
%121 = load i8*, i8** %4
%122 = getelementptr inbounds i8, i8* %121, i64 4
%123 = load i8, i8* %122
%124 = sext i8 %123 to i32
%125 = icmp eq i32 %124, 105
br i1 %125, label %130, label %126
126: ; preds = %120
%127 = load i32, i32* @stderr
%128 = call i32 @fprintf(i32 %127, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%129 = call i32 @exit(i32 1)
unreachable
130: ; preds = %120
%131 = load i8*, i8** %4
%132 = getelementptr inbounds i8, i8* %131, i64 5
%133 = load i8, i8* %132
%134 = sext i8 %133 to i32
%135 = icmp eq i32 %134, 106
br i1 %135, label %140, label %136
136: ; preds = %130
%137 = load i32, i32* @stderr
%138 = call i32 @fprintf(i32 %137, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%139 = call i32 @exit(i32 1)
unreachable
140: ; preds = %130
%141 = load i8*, i8** %4
%142 = getelementptr inbounds i8, i8* %141, i64 6
%143 = load i8, i8* %142
%144 = sext i8 %143 to i32
%145 = icmp eq i32 %144, 107
br i1 %145, label %150, label %146
146: ; preds = %140
%147 = load i32, i32* @stderr
%148 = call i32 @fprintf(i32 %147, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%149 = call i32 @exit(i32 1)
unreachable
150: ; preds = %140
%151 = load i8*, i8** %4
%152 = getelementptr inbounds i8, i8* %151, i64 7
%153 = load i8, i8* %152
%154 = sext i8 %153 to i32
%155 = icmp eq i32 %154, 0
br i1 %155, label %160, label %156
156: ; preds = %150
%157 = load i32, i32* @stderr
%158 = call i32 @fprintf(i32 %157, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%159 = call i32 @exit(i32 1)
unreachable
160: ; preds = %150
%161 = load i32, i32* @STDERR_FILENO
%162 = icmp eq i32 %161, 2
br i1 %162, label %167, label %163
163: ; preds = %160
%164 = load i32, i32* @stderr
%165 = call i32 @fprintf(i32 %164, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%166 = call i32 @exit(i32 1)
unreachable
167: ; preds = %160
%168 = load i32, i32* @O_CREAT
%169 = and i32 833, %168
%170 = icmp ne i32 %169, 0
br i1 %170, label %175, label %171
171: ; preds = %167
%172 = load i32, i32* @stderr
%173 = call i32 @fprintf(i32 %172, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%174 = call i32 @exit(i32 1)
unreachable
175: ; preds = %167
%176 = load i32, i32* @O_WRONLY
%177 = and i32 833, %176
%178 = icmp ne i32 %177, 0
br i1 %178, label %183, label %179
179: ; preds = %175
%180 = load i32, i32* @stderr
%181 = call i32 @fprintf(i32 %180, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%182 = call i32 @exit(i32 1)
unreachable
183: ; preds = %175
%184 = load i32, i32* @S_IRUSR
%185 = load i32, i32* @S_IWUSR
%186 = or i32 %184, %185
%187 = and i32 438, %186
%188 = icmp ne i32 %187, 0
br i1 %188, label %193, label %189
189: ; preds = %183
%190 = load i32, i32* @stderr
%191 = call i32 @fprintf(i32 %190, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%192 = call i32 @exit(i32 1)
unreachable
193: ; preds = %183
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8** %5
store i64 0, i64* @errno
%194 = call i32 (i32, ...) @syscall(i32 6, i32 2)
store i32 %194, i32* %6
%195 = load i64, i64* @errno
%196 = load i64, i64* @ENOSYS
%197 = icmp ne i64 %195, %196
br i1 %197, label %202, label %198
198: ; preds = %193
%199 = load i32, i32* @stderr
%200 = call i32 @fprintf(i32 %199, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%201 = call i32 @exit(i32 1)
unreachable
202: ; preds = %193
%203 = load i32, i32* %6
%204 = icmp ne i32 %203, 0
br i1 %204, label %205, label %206
205: ; preds = %202
store i32 1, i32* %7
br label %207
206: ; preds = %202
store i32 4, i32* %7
br label %207
207: ; preds = %206, %205
store i64 0, i64* @errno
%208 = load i32, i32* %7
%209 = add nsw i32 %208, 1
%210 = load i8*, i8** %5
%211 = load i32, i32* @O_CREAT
%212 = load i32, i32* @O_WRONLY
%213 = or i32 %211, %212
%214 = load i32, i32* @S_IRUSR
%215 = load i32, i32* @S_IWUSR
%216 = or i32 %214, %215
%217 = call i32 (i32, ...) @syscall(i32 %209, i8* %210, i32 %213, i32 %216)
store i32 %217, i32* %8
%218 = load i64, i64* @errno
%219 = load i64, i64* @ENOSYS
%220 = icmp ne i64 %218, %219
br i1 %220, label %225, label %221
221: ; preds = %207
%222 = load i32, i32* @stderr
%223 = call i32 @fprintf(i32 %222, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%224 = call i32 @exit(i32 1)
unreachable
225: ; preds = %207
%226 = load i64, i64* @errno
%227 = icmp ne i64 %226, 0
br i1 %227, label %228, label %232
228: ; preds = %225
%229 = load i32, i32* @stderr
%230 = call i32 @fprintf(i32 %229, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%231 = call i32 @exit(i32 1)
unreachable
232: ; preds = %225
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** %9
%233 = bitcast [255 x i8]* %10 to i8*
store i64 0, i64* @errno
%234 = load i32, i32* %7
%235 = load i32, i32* %8
%236 = load i8*, i8** %9
%237 = load i8*, i8** %9
%238 = call i32 @strlen(i8* %237)
%239 = call i32 (i32, ...) @syscall(i32 %234, i32 %235, i8* %236, i32 %238)
%240 = load i64, i64* @errno
%241 = load i64, i64* @ENOSYS
%242 = icmp ne i64 %240, %241
br i1 %242, label %247, label %243
243: ; preds = %232
%244 = load i32, i32* @stderr
%245 = call i32 @fprintf(i32 %244, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%246 = call i32 @exit(i32 1)
unreachable
247: ; preds = %232
%248 = load i64, i64* @errno
%249 = icmp ne i64 %248, 0
br i1 %249, label %250, label %254
250: ; preds = %247
%251 = load i32, i32* @stderr
%252 = call i32 @fprintf(i32 %251, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%253 = call i32 @exit(i32 1)
unreachable
254: ; preds = %247
%255 = load i32, i32* %8
%256 = call i32 @close(i32 %255)
%257 = load i64, i64* @errno
%258 = icmp ne i64 %257, 0
br i1 %258, label %259, label %263
259: ; preds = %254
%260 = load i32, i32* @stderr
%261 = call i32 @fprintf(i32 %260, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%262 = call i32 @exit(i32 1)
unreachable
263: ; preds = %254
%264 = load i8*, i8** %5
%265 = load i32, i32* @O_RDONLY
%266 = call i32 @open(i8* %264, i32 %265)
store i32 %266, i32* %8
%267 = load i64, i64* @errno
%268 = icmp ne i64 %267, 0
br i1 %268, label %269, label %273
269: ; preds = %263
%270 = load i32, i32* @stderr
%271 = call i32 @fprintf(i32 %270, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%272 = call i32 @exit(i32 1)
unreachable
273: ; preds = %263
store i64 0, i64* @errno
%274 = load i32, i32* %7
%275 = sub nsw i32 %274, 1
%276 = load i32, i32* %8
%277 = getelementptr inbounds [255 x i8], [255 x i8]* %10, i64 0, i64 0
%278 = load i8*, i8** %9
%279 = call i32 @strlen(i8* %278)
%280 = call i32 (i32, ...) @syscall(i32 %275, i32 %276, i8* %277, i32 %279)
%281 = load i64, i64* @errno
%282 = load i64, i64* @ENOSYS
%283 = icmp ne i64 %281, %282
br i1 %283, label %288, label %284
284: ; preds = %273
%285 = load i32, i32* @stderr
%286 = call i32 @fprintf(i32 %285, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%287 = call i32 @exit(i32 1)
unreachable
288: ; preds = %273
%289 = load i64, i64* @errno
%290 = icmp ne i64 %289, 0
br i1 %290, label %291, label %295
291: ; preds = %288
%292 = load i32, i32* @stderr
%293 = call i32 @fprintf(i32 %292, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%294 = call i32 @exit(i32 1)
unreachable
295: ; preds = %288
%296 = getelementptr inbounds [255 x i8], [255 x i8]* %10, i64 0, i64 0
%297 = load i8*, i8** %9
%298 = load i8*, i8** %9
%299 = call i32 @strlen(i8* %298)
%300 = call i32 @strncmp(i8* %296, i8* %297, i32 %299)
%301 = icmp ne i32 %300, 0
br i1 %301, label %302, label %306
302: ; preds = %295
%303 = load i32, i32* @stderr
%304 = call i32 @fprintf(i32 %303, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%305 = call i32 @exit(i32 1)
unreachable
306: ; preds = %295
%307 = load i32, i32* %8
%308 = call i32 @close(i32 %307)
%309 = load i8*, i8** %5
%310 = call i32 @unlink(i8* %309)
%311 = call i64 @system(i8* null)
%312 = icmp ne i64 0, %311
br i1 %312, label %317, label %313
313: ; preds = %306
%314 = load i32, i32* @stderr
%315 = call i32 @fprintf(i32 %314, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%316 = call i32 @exit(i32 1)
unreachable
317: ; preds = %306
%318 = call i64 @system(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%319 = icmp ne i64 %318, 0
br i1 %319, label %320, label %324
320: ; preds = %317
%321 = load i32, i32* @stderr
%322 = call i32 @fprintf(i32 %321, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%323 = call i32 @exit(i32 1)
unreachable
324: ; preds = %317
%325 = call i64 @system(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%326 = icmp ne i64 %325, 0
br i1 %326, label %327, label %331
327: ; preds = %324
%328 = load i32, i32* @stderr
%329 = call i32 @fprintf(i32 %328, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%330 = call i32 @exit(i32 1)
unreachable
331: ; preds = %324
%332 = call i64 @system(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%333 = icmp ne i64 %332, 0
br i1 %333, label %334, label %338
334: ; preds = %331
%335 = load i32, i32* @stderr
%336 = call i32 @fprintf(i32 %335, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%337 = call i32 @exit(i32 1)
unreachable
338: ; preds = %331
%339 = call %struct.hostent* @gethostbyname(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
store %struct.hostent* %339, %struct.hostent** %11
%340 = load %struct.hostent*, %struct.hostent** %11
%341 = icmp ne %struct.hostent* %340, null
br i1 %341, label %346, label %342
342: ; preds = %338
%343 = load i32, i32* @stderr
%344 = call i32 @fprintf(i32 %343, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%345 = call i32 @exit(i32 1)
unreachable
346: ; preds = %338
ret void
}

LLVM IR (-O2):
%struct.hostent = type { i32 }
@stderr = global i32 0
@.str = [69 x i8] c"System incompatibility: switching to reduced functionality version.\0A\00"
@STDERR_FILENO = global i32 0
@O_CREAT = global i32 0
@O_WRONLY = global i32 0
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@.str.1 = [9 x i8] c"testfile\00"
@errno = global i64 0
@ENOSYS = global i64 0
@.str.2 = [6 x i8] c"hello\00"
@O_RDONLY = global i32 0
@.str.3 = [27 x i8] c"command -v make >/dev/null\00"
@.str.4 = [27 x i8] c"command -v tar >/dev/null\00"
@.str.5 = [27 x i8] c"command -v find >/dev/null\00"
@.str.6 = [16 x i8] c"206.197.161.153\00"
define void @runTestCases() {
%1 = alloca [255 x i8]
%2 = load i32, i32* @STDERR_FILENO
%3 = icmp eq i32 %2, 2
br i1 %3, label %8, label %4
4: ; preds = %0
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @exit(i32 1)
unreachable
8: ; preds = %0
%9 = load i32, i32* @O_CREAT
%10 = and i32 %9, 833
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %8
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%15 = tail call i32 @exit(i32 1)
unreachable
16: ; preds = %8
%17 = load i32, i32* @O_WRONLY
%18 = and i32 %17, 833
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%23 = tail call i32 @exit(i32 1)
unreachable
24: ; preds = %16
%25 = load i32, i32* @S_IRUSR
%26 = load i32, i32* @S_IWUSR
%27 = or i32 %26, %25
%28 = and i32 %27, 438
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %34
30: ; preds = %24
%31 = load i32, i32* @stderr
%32 = tail call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%33 = tail call i32 @exit(i32 1)
unreachable
34: ; preds = %24
store i64 0, i64* @errno
%35 = tail call i32 (i32, ...) @syscall(i32 6, i32 2)
%36 = load i64, i64* @errno
%37 = load i64, i64* @ENOSYS
%38 = icmp eq i64 %36, %37
br i1 %38, label %39, label %43
39: ; preds = %34
%40 = load i32, i32* @stderr
%41 = tail call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%42 = tail call i32 @exit(i32 1)
unreachable
43: ; preds = %34
%44 = icmp eq i32 %35, 0
%45 = select i1 %44, i32 4, i32 1
store i64 0, i64* @errno
%46 = add nuw nsw i32 %45, 1
%47 = load i32, i32* @O_CREAT
%48 = load i32, i32* @O_WRONLY
%49 = or i32 %48, %47
%50 = load i32, i32* @S_IRUSR
%51 = load i32, i32* @S_IWUSR
%52 = or i32 %51, %50
%53 = tail call i32 (i32, ...) @syscall(i32 %46, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %49, i32 %52)
%54 = load i64, i64* @errno
%55 = load i64, i64* @ENOSYS
%56 = icmp eq i64 %54, %55
br i1 %56, label %57, label %61
57: ; preds = %43
%58 = load i32, i32* @stderr
%59 = tail call i32 @fprintf(i32 %58, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%60 = tail call i32 @exit(i32 1)
unreachable
61: ; preds = %43
%62 = icmp eq i64 %54, 0
br i1 %62, label %67, label %63
63: ; preds = %61
%64 = load i32, i32* @stderr
%65 = tail call i32 @fprintf(i32 %64, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%66 = tail call i32 @exit(i32 1)
unreachable
67: ; preds = %61
%68 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
store i64 0, i64* @errno
%69 = tail call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%70 = tail call i32 (i32, ...) @syscall(i32 %45, i32 %53, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %69)
%71 = load i64, i64* @errno
%72 = load i64, i64* @ENOSYS
%73 = icmp eq i64 %71, %72
br i1 %73, label %74, label %78
74: ; preds = %67
%75 = load i32, i32* @stderr
%76 = tail call i32 @fprintf(i32 %75, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%77 = tail call i32 @exit(i32 1)
unreachable
78: ; preds = %67
%79 = icmp eq i64 %71, 0
br i1 %79, label %84, label %80
80: ; preds = %78
%81 = load i32, i32* @stderr
%82 = tail call i32 @fprintf(i32 %81, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%83 = tail call i32 @exit(i32 1)
unreachable
84: ; preds = %78
%85 = tail call i32 @close(i32 %53)
%86 = load i64, i64* @errno
%87 = icmp eq i64 %86, 0
br i1 %87, label %92, label %88
88: ; preds = %84
%89 = load i32, i32* @stderr
%90 = tail call i32 @fprintf(i32 %89, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%91 = tail call i32 @exit(i32 1)
unreachable
92: ; preds = %84
%93 = load i32, i32* @O_RDONLY
%94 = tail call i32 @open(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %93)
%95 = load i64, i64* @errno
%96 = icmp eq i64 %95, 0
br i1 %96, label %101, label %97
97: ; preds = %92
%98 = load i32, i32* @stderr
%99 = tail call i32 @fprintf(i32 %98, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%100 = tail call i32 @exit(i32 1)
unreachable
101: ; preds = %92
store i64 0, i64* @errno
%102 = add nsw i32 %45, -1
%103 = tail call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%104 = call i32 (i32, ...) @syscall(i32 %102, i32 %94, i8* %68, i32 %103)
%105 = load i64, i64* @errno
%106 = load i64, i64* @ENOSYS
%107 = icmp eq i64 %105, %106
br i1 %107, label %108, label %112
108: ; preds = %101
%109 = load i32, i32* @stderr
%110 = call i32 @fprintf(i32 %109, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%111 = call i32 @exit(i32 1)
unreachable
112: ; preds = %101
%113 = icmp eq i64 %105, 0
br i1 %113, label %118, label %114
114: ; preds = %112
%115 = load i32, i32* @stderr
%116 = call i32 @fprintf(i32 %115, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%117 = call i32 @exit(i32 1)
unreachable
118: ; preds = %112
%119 = call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%120 = call i32 @strncmp(i8* %68, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %119)
%121 = icmp eq i32 %120, 0
br i1 %121, label %126, label %122
122: ; preds = %118
%123 = load i32, i32* @stderr
%124 = call i32 @fprintf(i32 %123, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%125 = call i32 @exit(i32 1)
unreachable
126: ; preds = %118
%127 = call i32 @close(i32 %94)
%128 = call i32 @unlink(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%129 = call i64 @system(i8* null)
%130 = icmp eq i64 %129, 0
br i1 %130, label %131, label %135
131: ; preds = %126
%132 = load i32, i32* @stderr
%133 = call i32 @fprintf(i32 %132, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%134 = call i32 @exit(i32 1)
unreachable
135: ; preds = %126
%136 = call i64 @system(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%137 = icmp eq i64 %136, 0
br i1 %137, label %142, label %138
138: ; preds = %135
%139 = load i32, i32* @stderr
%140 = call i32 @fprintf(i32 %139, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%141 = call i32 @exit(i32 1)
unreachable
142: ; preds = %135
%143 = call i64 @system(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%144 = icmp eq i64 %143, 0
br i1 %144, label %149, label %145
145: ; preds = %142
%146 = load i32, i32* @stderr
%147 = call i32 @fprintf(i32 %146, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%148 = call i32 @exit(i32 1)
unreachable
149: ; preds = %142
%150 = call i64 @system(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%151 = icmp eq i64 %150, 0
br i1 %151, label %156, label %152
152: ; preds = %149
%153 = load i32, i32* @stderr
%154 = call i32 @fprintf(i32 %153, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%155 = call i32 @exit(i32 1)
unreachable
156: ; preds = %149
%157 = call %struct.hostent* @gethostbyname(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%158 = icmp eq %struct.hostent* %157, null
br i1 %158, label %159, label %163
159: ; preds = %156
%160 = load i32, i32* @stderr
%161 = call i32 @fprintf(i32 %160, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%162 = call i32 @exit(i32 1)
unreachable
163: ; preds = %156
ret void
}