#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 stat {
  int /*<<< orphan*/ st_mode;
};
struct dirent {
  char *d_name;
};
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
scalar_t__ S_ISBLK(int /*<<< orphan*/);
scalar_t__ S_ISCHR(int /*<<< orphan*/);
scalar_t__ S_ISDIR(int /*<<< orphan*/);
scalar_t__ S_ISFIFO(int /*<<< orphan*/);
scalar_t__ S_ISLNK(int /*<<< orphan*/);
scalar_t__ S_ISREG(int /*<<< orphan*/);
scalar_t__ S_ISSOCK(int /*<<< orphan*/);
int chdir(char *);
int /*<<< orphan*/ closedir(int /*<<< orphan*/ *);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
int lstat(char *, struct stat *);
int /*<<< orphan*/ *opendir(char *);
int /*<<< orphan*/ printf(char *, ...);
struct dirent *readdir(int /*<<< orphan*/ *);
int stat(char *, struct stat *);
int /*<<< orphan*/ stderr;
char *strerror(int /*<<< orphan*/);
int main(int argc, char **argv) {
  DIR *dp;
  struct dirent *dirp;
  if (argc != 2) {
    fprintf(stderr, "usage: %s dir_name\n", argv[0]);
    exit(EXIT_FAILURE);
  }
  if ((dp = opendir(argv[1])) == NULL) {
    fprintf(stderr, "can't open '%s': %s\n", argv[1], strerror(errno));
    exit(EXIT_FAILURE);
  }
  if (chdir(argv[1]) == -1) {
    fprintf(stderr, "can't chdir to '%s': %s\n", argv[1], strerror(errno));
    exit(EXIT_FAILURE);
  }
  while ((dirp = readdir(dp)) != NULL) {
    struct stat sb;
    if (stat(dirp->d_name, &sb) == -1) {
      fprintf(stderr, "Can't stat %s: %s\n", dirp->d_name, strerror(errno));
      if (lstat(dirp->d_name, &sb) == -1) {
        fprintf(stderr, "Can't stat %s: %s\n", dirp->d_name, strerror(errno));
        continue;
      }
    }
    printf("%s: ", dirp->d_name);
    if (S_ISREG(sb.st_mode))
      printf("regular file");
    else if (S_ISDIR(sb.st_mode))
      printf("directory");
    else if (S_ISCHR(sb.st_mode))
      printf("character special");
    else if (S_ISBLK(sb.st_mode))
      printf("block special");
    else if (S_ISFIFO(sb.st_mode))
      printf("FIFO");
    else if (S_ISLNK(sb.st_mode))
      printf("symbolic link");
    else if (S_ISSOCK(sb.st_mode))
      printf("socket");
    else
      printf("unknown");
    printf(" -- according to stat\n");
    if (lstat(dirp->d_name, &sb) == -1) {
      fprintf(stderr, "Can't stat %s: %s\n", dirp->d_name, strerror(errno));
      continue;
    }
    printf("%s: ", dirp->d_name);
    if (S_ISREG(sb.st_mode))
      printf("regular file");
    else if (S_ISDIR(sb.st_mode))
      printf("directory");
    else if (S_ISCHR(sb.st_mode))
      printf("character special");
    else if (S_ISBLK(sb.st_mode))
      printf("block special");
    else if (S_ISFIFO(sb.st_mode))
      printf("FIFO");
    else if (S_ISLNK(sb.st_mode))
      printf("symbolic link");
    else if (S_ISSOCK(sb.st_mode))
      printf("socket");
    else
      printf("unknown");
    printf(" -- according to lstat\n\n");
  }
  closedir(dp);
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     125f <main+0x4f>
mov    0x2da6(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xdb6(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x2d78(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <opendir@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    12c6 <main+0xb6>
mov    0x2d5f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x30(%rbp)
mov    0x2d3f(%rip),%rax
mov    (%rax),%edi
call   1130 <strerror@plt>
mov    -0x34(%rbp),%edi
mov    -0x30(%rbp),%rdx
mov    %rax,%rcx
lea    0xd63(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x2d11(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <chdir@plt>
cmp    $0xffffffff,%eax
jne    1328 <main+0x118>
mov    0x2cfd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x40(%rbp)
mov    0x2cdd(%rip),%rax
mov    (%rax),%edi
call   1130 <strerror@plt>
mov    -0x44(%rbp),%edi
mov    -0x40(%rbp),%rdx
mov    %rax,%rcx
lea    0xd16(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x2caf(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
jmp    132d <main+0x11d>
mov    -0x18(%rbp),%rdi
call   10f0 <readdir@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     16fe <main+0x4ee>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
lea    -0x28(%rbp),%rsi
call   10d0 <stat@plt>
cmp    $0xffffffff,%eax
jne    13fa <main+0x1ea>
mov    0x2c7c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x50(%rbp)
mov    0x2c5d(%rip),%rax
mov    (%rax),%edi
call   1130 <strerror@plt>
mov    -0x54(%rbp),%edi
mov    -0x50(%rbp),%rdx
mov    %rax,%rcx
lea    0xcaf(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
lea    -0x28(%rbp),%rsi
call   10b0 <lstat@plt>
cmp    $0xffffffff,%eax
jne    13f5 <main+0x1e5>
mov    0x2c26(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x60(%rbp)
mov    0x2c07(%rip),%rax
mov    (%rax),%edi
call   1130 <strerror@plt>
mov    -0x64(%rbp),%edi
mov    -0x60(%rbp),%rdx
mov    %rax,%rcx
lea    0xc59(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
jmp    132d <main+0x11d>
jmp    13fa <main+0x1ea>
mov    -0x20(%rbp),%rax
mov    (%rax),%rsi
lea    0xc4d(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x28(%rbp),%edi
call   10e0 <S_ISREG@plt>
cmp    $0x0,%rax
je     1434 <main+0x224>
lea    0xc32(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    153e <main+0x32e>
mov    -0x28(%rbp),%edi
call   1090 <S_ISDIR@plt>
cmp    $0x0,%rax
je     1459 <main+0x249>
lea    0xc1a(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1539 <main+0x329>
mov    -0x28(%rbp),%edi
call   1100 <S_ISCHR@plt>
cmp    $0x0,%rax
je     147e <main+0x26e>
lea    0xbff(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1534 <main+0x324>
mov    -0x28(%rbp),%edi
call   1110 <S_ISBLK@plt>
cmp    $0x0,%rax
je     14a3 <main+0x293>
lea    0xbec(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    152f <main+0x31f>
mov    -0x28(%rbp),%edi
call   1050 <S_ISFIFO@plt>
cmp    $0x0,%rax
je     14c8 <main+0x2b8>
lea    0xbd5(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    152a <main+0x31a>
mov    -0x28(%rbp),%edi
call   1030 <S_ISLNK@plt>
cmp    $0x0,%rax
je     14ed <main+0x2dd>
lea    0xbb5(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1525 <main+0x315>
mov    -0x28(%rbp),%edi
call   1070 <S_ISSOCK@plt>
cmp    $0x0,%rax
je     1512 <main+0x302>
lea    0xb9e(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1520 <main+0x310>
lea    0xb92(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1525 <main+0x315>
jmp    152a <main+0x31a>
jmp    152f <main+0x31f>
jmp    1534 <main+0x324>
jmp    1539 <main+0x329>
jmp    153e <main+0x32e>
lea    0xb6e(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
lea    -0x28(%rbp),%rsi
call   10b0 <lstat@plt>
cmp    $0xffffffff,%eax
jne    15a7 <main+0x397>
mov    0x2a74(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x74(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x70(%rbp)
mov    0x2a55(%rip),%rax
mov    (%rax),%edi
call   1130 <strerror@plt>
mov    -0x74(%rbp),%edi
mov    -0x70(%rbp),%rdx
mov    %rax,%rcx
lea    0xaa7(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
jmp    132d <main+0x11d>
mov    -0x20(%rbp),%rax
mov    (%rax),%rsi
lea    0xaa0(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x28(%rbp),%edi
call   10e0 <S_ISREG@plt>
cmp    $0x0,%rax
je     15e1 <main+0x3d1>
lea    0xa85(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    16eb <main+0x4db>
mov    -0x28(%rbp),%edi
call   1090 <S_ISDIR@plt>
cmp    $0x0,%rax
je     1606 <main+0x3f6>
lea    0xa6d(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    16e6 <main+0x4d6>
mov    -0x28(%rbp),%edi
call   1100 <S_ISCHR@plt>
cmp    $0x0,%rax
je     162b <main+0x41b>
lea    0xa52(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    16e1 <main+0x4d1>
mov    -0x28(%rbp),%edi
call   1110 <S_ISBLK@plt>
cmp    $0x0,%rax
je     1650 <main+0x440>
lea    0xa3f(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    16dc <main+0x4cc>
mov    -0x28(%rbp),%edi
call   1050 <S_ISFIFO@plt>
cmp    $0x0,%rax
je     1675 <main+0x465>
lea    0xa28(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    16d7 <main+0x4c7>
mov    -0x28(%rbp),%edi
call   1030 <S_ISLNK@plt>
cmp    $0x0,%rax
je     169a <main+0x48a>
lea    0xa08(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    16d2 <main+0x4c2>
mov    -0x28(%rbp),%edi
call   1070 <S_ISSOCK@plt>
cmp    $0x0,%rax
je     16bf <main+0x4af>
lea    0x9f1(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    16cd <main+0x4bd>
lea    0x9e5(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    16d2 <main+0x4c2>
jmp    16d7 <main+0x4c7>
jmp    16dc <main+0x4cc>
jmp    16e1 <main+0x4d1>
jmp    16e6 <main+0x4d6>
jmp    16eb <main+0x4db>
lea    0x9d8(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    132d <main+0x11d>
mov    -0x18(%rbp),%rdi
call   10a0 <closedir@plt>
mov    0x28ba(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%rbx
cmp    $0x2,%edi
jne    1265 <main+0x45>
mov    0x8(%rbx),%rdi
call   1050 <opendir@plt>
test   %rax,%rax
jne    1281 <main+0x61>
mov    0x2d98(%rip),%rax
mov    (%rax),%ebp
mov    0x8(%rbx),%rbx
mov    0x2d83(%rip),%rax
mov    (%rax),%edi
call   1140 <strerror@plt>
lea    0xdb1(%rip),%rsi
jmp    12b4 <main+0x94>
mov    0x2d74(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xd88(%rip),%rsi
xor    %eax,%eax
call   10d0 <fprintf@plt>
jmp    12c3 <main+0xa3>
mov    %rax,%r14
mov    0x8(%rbx),%rdi
call   1070 <chdir@plt>
cmp    $0xffffffff,%eax
jne    12d1 <main+0xb1>
mov    0x2d47(%rip),%rax
mov    (%rax),%ebp
mov    0x8(%rbx),%rbx
mov    0x2d32(%rip),%rax
mov    (%rax),%edi
call   1140 <strerror@plt>
lea    0xd75(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   10d0 <fprintf@plt>
mov    0x2d06(%rip),%rax
mov    (%rax),%edi
call   1130 <exit@plt>
mov    %r14,%rdi
call   1100 <readdir@plt>
test   %rax,%rax
jne    12f4 <main+0xd4>
mov    %r14,%rdi
call   10b0 <closedir@plt>
mov    0x2cdb(%rip),%rax
mov    (%rax),%edi
call   1130 <exit@plt>
mov    %rax,%rbp
mov    %rsp,%r13
lea    0xd59(%rip),%r12
jmp    1351 <main+0x131>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x2cc9(%rip),%rax
mov    (%rax),%ebx
mov    0x0(%rbp),%rbp
mov    0x2cb4(%rip),%rax
mov    (%rax),%edi
call   1140 <strerror@plt>
mov    %ebx,%edi
lea    0xd0e(%rip),%rsi
mov    %rbp,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   10d0 <fprintf@plt>
mov    %r14,%rdi
call   1100 <readdir@plt>
mov    %rax,%rbp
test   %rax,%rax
je     12de <main+0xbe>
mov    0x0(%rbp),%rdi
mov    %r13,%rsi
call   10e0 <stat@plt>
cmp    $0xffffffff,%eax
jne    13a8 <main+0x188>
mov    0x2c77(%rip),%rax
mov    (%rax),%ebx
mov    0x0(%rbp),%r15
mov    0x2c62(%rip),%rax
mov    (%rax),%edi
call   1140 <strerror@plt>
mov    %ebx,%edi
lea    0xcbc(%rip),%rsi
mov    %r15,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   10d0 <fprintf@plt>
mov    0x0(%rbp),%rdi
mov    %r13,%rsi
call   10c0 <lstat@plt>
cmp    $0xffffffff,%eax
je     1310 <main+0xf0>
mov    0x0(%rbp),%rsi
lea    0xca2(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    (%rsp),%r15d
mov    %r15d,%edi
call   10f0 <S_ISREG@plt>
mov    %r12,%rdi
test   %rax,%rax
jne    1460 <main+0x240>
mov    %r15d,%edi
call   10a0 <S_ISDIR@plt>
lea    0xc86(%rip),%rdi
test   %rax,%rax
jne    1460 <main+0x240>
mov    %r15d,%edi
call   1110 <S_ISCHR@plt>
lea    0xc7c(%rip),%rdi
test   %rax,%rax
jne    1460 <main+0x240>
mov    %r15d,%edi
call   1120 <S_ISBLK@plt>
lea    0xc7a(%rip),%rdi
test   %rax,%rax
jne    1460 <main+0x240>
mov    %r15d,%edi
call   1060 <S_ISFIFO@plt>
lea    0xc74(%rip),%rdi
test   %rax,%rax
jne    1460 <main+0x240>
mov    %r15d,%edi
call   1030 <S_ISLNK@plt>
lea    0xc65(%rip),%rdi
test   %rax,%rax
jne    1460 <main+0x240>
mov    %r15d,%edi
call   1080 <S_ISSOCK@plt>
test   %rax,%rax
lea    0xc5c(%rip),%rdi
lea    0xc5c(%rip),%rax
cmove  %rax,%rdi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xc45(%rip),%rdi
call   1040 <puts@plt>
mov    0x0(%rbp),%rdi
mov    %r13,%rsi
call   10c0 <lstat@plt>
cmp    $0xffffffff,%eax
je     1310 <main+0xf0>
mov    0x0(%rbp),%rsi
lea    0xbc2(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    (%rsp),%ebp
mov    %ebp,%edi
call   10f0 <S_ISREG@plt>
mov    %r12,%rdi
test   %rax,%rax
jne    1530 <main+0x310>
mov    %ebp,%edi
call   10a0 <S_ISDIR@plt>
lea    0xba9(%rip),%rdi
test   %rax,%rax
jne    1530 <main+0x310>
mov    %ebp,%edi
call   1110 <S_ISCHR@plt>
lea    0xba0(%rip),%rdi
test   %rax,%rax
jne    1530 <main+0x310>
mov    %ebp,%edi
call   1120 <S_ISBLK@plt>
lea    0xb9f(%rip),%rdi
test   %rax,%rax
jne    1530 <main+0x310>
mov    %ebp,%edi
call   1060 <S_ISFIFO@plt>
lea    0xb9a(%rip),%rdi
test   %rax,%rax
jne    1530 <main+0x310>
mov    %ebp,%edi
call   1030 <S_ISLNK@plt>
lea    0xb8c(%rip),%rdi
test   %rax,%rax
jne    1530 <main+0x310>
mov    %ebp,%edi
call   1080 <S_ISSOCK@plt>
test   %rax,%rax
lea    0xb84(%rip),%rdi
lea    0xb84(%rip),%rax
cmove  %rax,%rdi
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xb8b(%rip),%rdi
call   1040 <puts@plt>
jmp    1341 <main+0x121>

LLVM IR (-O0):
%struct.dirent = type { i8* }
%struct.stat = type { i32 }
@stderr = global i32 0
@.str = [20 x i8] c"usage: %s dir_name\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [21 x i8] c"can't open '%s': %s\0A\00"
@errno = global i32 0
@.str.2 = [25 x i8] c"can't chdir to '%s': %s\0A\00"
@.str.3 = [19 x i8] c"Can't stat %s: %s\0A\00"
@.str.4 = [5 x i8] c"%s: \00"
@.str.5 = [13 x i8] c"regular file\00"
@.str.6 = [10 x i8] c"directory\00"
@.str.7 = [18 x i8] c"character special\00"
@.str.8 = [14 x i8] c"block special\00"
@.str.9 = [5 x i8] c"FIFO\00"
@.str.10 = [14 x i8] c"symbolic link\00"
@.str.11 = [7 x i8] c"socket\00"
@.str.12 = [8 x i8] c"unknown\00"
@.str.13 = [23 x i8] c" -- according to stat\0A\00"
@.str.14 = [25 x i8] c" -- according to lstat\0A\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca %struct.dirent*
%8 = alloca %struct.stat
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = load i32, i32* %4
%10 = icmp ne i32 %9, 2
br i1 %10, label %11, label %19
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 0
%15 = load i8*, i8** %14
%16 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %15)
%17 = load i32, i32* @EXIT_FAILURE
%18 = call i32 @exit(i32 %17)
unreachable
19: ; preds = %2
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call i32* @opendir(i8* %22)
store i32* %23, i32** %6
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %35
25: ; preds = %19
%26 = load i32, i32* @stderr
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%30 = load i32, i32* @errno
%31 = call i8* @strerror(i32 %30)
%32 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %29, i8* %31)
%33 = load i32, i32* @EXIT_FAILURE
%34 = call i32 @exit(i32 %33)
unreachable
35: ; preds = %19
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 1
%38 = load i8*, i8** %37
%39 = call i32 @chdir(i8* %38)
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %51
41: ; preds = %35
%42 = load i32, i32* @stderr
%43 = load i8**, i8*** %5
%44 = getelementptr inbounds i8*, i8** %43, i64 1
%45 = load i8*, i8** %44
%46 = load i32, i32* @errno
%47 = call i8* @strerror(i32 %46)
%48 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8* %45, i8* %47)
%49 = load i32, i32* @EXIT_FAILURE
%50 = call i32 @exit(i32 %49)
unreachable
51: ; preds = %35
br label %52
52: ; preds = %221, %152, %75, %51
%53 = load i32*, i32** %6
%54 = call %struct.dirent* @readdir(i32* %53)
store %struct.dirent* %54, %struct.dirent** %7
%55 = icmp ne %struct.dirent* %54, null
br i1 %55, label %56, label %223
56: ; preds = %52
%57 = load %struct.dirent*, %struct.dirent** %7
%58 = getelementptr inbounds %struct.dirent, %struct.dirent* %57, i32 0, i32 0
%59 = load i8*, i8** %58
%60 = call i32 @stat(i8* %59, %struct.stat* %8)
%61 = icmp eq i32 %60, -1
br i1 %61, label %62, label %84
62: ; preds = %56
%63 = load i32, i32* @stderr
%64 = load %struct.dirent*, %struct.dirent** %7
%65 = getelementptr inbounds %struct.dirent, %struct.dirent* %64, i32 0, i32 0
%66 = load i8*, i8** %65
%67 = load i32, i32* @errno
%68 = call i8* @strerror(i32 %67)
%69 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %66, i8* %68)
%70 = load %struct.dirent*, %struct.dirent** %7
%71 = getelementptr inbounds %struct.dirent, %struct.dirent* %70, i32 0, i32 0
%72 = load i8*, i8** %71
%73 = call i32 @lstat(i8* %72, %struct.stat* %8)
%74 = icmp eq i32 %73, -1
br i1 %74, label %75, label %83
75: ; preds = %62
%76 = load i32, i32* @stderr
%77 = load %struct.dirent*, %struct.dirent** %7
%78 = getelementptr inbounds %struct.dirent, %struct.dirent* %77, i32 0, i32 0
%79 = load i8*, i8** %78
%80 = load i32, i32* @errno
%81 = call i8* @strerror(i32 %80)
%82 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %76, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %79, i8* %81)
br label %52
83: ; preds = %62
br label %84
84: ; preds = %83, %56
%85 = load %struct.dirent*, %struct.dirent** %7
%86 = getelementptr inbounds %struct.dirent, %struct.dirent* %85, i32 0, i32 0
%87 = load i8*, i8** %86
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %87)
%89 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%90 = load i32, i32* %89
%91 = call i64 @S_ISREG(i32 %90)
%92 = icmp ne i64 %91, 0
br i1 %92, label %93, label %95
93: ; preds = %84
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
br label %145
95: ; preds = %84
%96 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%97 = load i32, i32* %96
%98 = call i64 @S_ISDIR(i32 %97)
%99 = icmp ne i64 %98, 0
br i1 %99, label %100, label %102
100: ; preds = %95
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %144
102: ; preds = %95
%103 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%104 = load i32, i32* %103
%105 = call i64 @S_ISCHR(i32 %104)
%106 = icmp ne i64 %105, 0
br i1 %106, label %107, label %109
107: ; preds = %102
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
br label %143
109: ; preds = %102
%110 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%111 = load i32, i32* %110
%112 = call i64 @S_ISBLK(i32 %111)
%113 = icmp ne i64 %112, 0
br i1 %113, label %114, label %116
114: ; preds = %109
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
br label %142
116: ; preds = %109
%117 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%118 = load i32, i32* %117
%119 = call i64 @S_ISFIFO(i32 %118)
%120 = icmp ne i64 %119, 0
br i1 %120, label %121, label %123
121: ; preds = %116
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
br label %141
123: ; preds = %116
%124 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%125 = load i32, i32* %124
%126 = call i64 @S_ISLNK(i32 %125)
%127 = icmp ne i64 %126, 0
br i1 %127, label %128, label %130
128: ; preds = %123
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0))
br label %140
130: ; preds = %123
%131 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%132 = load i32, i32* %131
%133 = call i64 @S_ISSOCK(i32 %132)
%134 = icmp ne i64 %133, 0
br i1 %134, label %135, label %137
135: ; preds = %130
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
br label %139
137: ; preds = %130
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %139
139: ; preds = %137, %135
br label %140
140: ; preds = %139, %128
br label %141
141: ; preds = %140, %121
br label %142
142: ; preds = %141, %114
br label %143
143: ; preds = %142, %107
br label %144
144: ; preds = %143, %100
br label %145
145: ; preds = %144, %93
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0))
%147 = load %struct.dirent*, %struct.dirent** %7
%148 = getelementptr inbounds %struct.dirent, %struct.dirent* %147, i32 0, i32 0
%149 = load i8*, i8** %148
%150 = call i32 @lstat(i8* %149, %struct.stat* %8)
%151 = icmp eq i32 %150, -1
br i1 %151, label %152, label %160
152: ; preds = %145
%153 = load i32, i32* @stderr
%154 = load %struct.dirent*, %struct.dirent** %7
%155 = getelementptr inbounds %struct.dirent, %struct.dirent* %154, i32 0, i32 0
%156 = load i8*, i8** %155
%157 = load i32, i32* @errno
%158 = call i8* @strerror(i32 %157)
%159 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %153, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %156, i8* %158)
br label %52
160: ; preds = %145
%161 = load %struct.dirent*, %struct.dirent** %7
%162 = getelementptr inbounds %struct.dirent, %struct.dirent* %161, i32 0, i32 0
%163 = load i8*, i8** %162
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %163)
%165 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%166 = load i32, i32* %165
%167 = call i64 @S_ISREG(i32 %166)
%168 = icmp ne i64 %167, 0
br i1 %168, label %169, label %171
169: ; preds = %160
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
br label %221
171: ; preds = %160
%172 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%173 = load i32, i32* %172
%174 = call i64 @S_ISDIR(i32 %173)
%175 = icmp ne i64 %174, 0
br i1 %175, label %176, label %178
176: ; preds = %171
%177 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %220
178: ; preds = %171
%179 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%180 = load i32, i32* %179
%181 = call i64 @S_ISCHR(i32 %180)
%182 = icmp ne i64 %181, 0
br i1 %182, label %183, label %185
183: ; preds = %178
%184 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
br label %219
185: ; preds = %178
%186 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%187 = load i32, i32* %186
%188 = call i64 @S_ISBLK(i32 %187)
%189 = icmp ne i64 %188, 0
br i1 %189, label %190, label %192
190: ; preds = %185
%191 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
br label %218
192: ; preds = %185
%193 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%194 = load i32, i32* %193
%195 = call i64 @S_ISFIFO(i32 %194)
%196 = icmp ne i64 %195, 0
br i1 %196, label %197, label %199
197: ; preds = %192
%198 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
br label %217
199: ; preds = %192
%200 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%201 = load i32, i32* %200
%202 = call i64 @S_ISLNK(i32 %201)
%203 = icmp ne i64 %202, 0
br i1 %203, label %204, label %206
204: ; preds = %199
%205 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0))
br label %216
206: ; preds = %199
%207 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%208 = load i32, i32* %207
%209 = call i64 @S_ISSOCK(i32 %208)
%210 = icmp ne i64 %209, 0
br i1 %210, label %211, label %213
211: ; preds = %206
%212 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
br label %215
213: ; preds = %206
%214 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %215
215: ; preds = %213, %211
br label %216
216: ; preds = %215, %204
br label %217
217: ; preds = %216, %197
br label %218
218: ; preds = %217, %190
br label %219
219: ; preds = %218, %183
br label %220
220: ; preds = %219, %176
br label %221
221: ; preds = %220, %169
%222 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0))
br label %52
223: ; preds = %52
%224 = load i32*, i32** %6
%225 = call i32 @closedir(i32* %224)
%226 = load i32, i32* @EXIT_SUCCESS
%227 = call i32 @exit(i32 %226)
unreachable
}

LLVM IR (-O2):
%struct.stat = type { i32 }
%struct.dirent = type { i8* }
@stderr = global i32 0
@.str = [20 x i8] c"usage: %s dir_name\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [21 x i8] c"can't open '%s': %s\0A\00"
@errno = global i32 0
@.str.2 = [25 x i8] c"can't chdir to '%s': %s\0A\00"
@.str.3 = [19 x i8] c"Can't stat %s: %s\0A\00"
@.str.4 = [5 x i8] c"%s: \00"
@.str.5 = [13 x i8] c"regular file\00"
@.str.6 = [10 x i8] c"directory\00"
@.str.7 = [18 x i8] c"character special\00"
@.str.8 = [14 x i8] c"block special\00"
@.str.9 = [5 x i8] c"FIFO\00"
@.str.10 = [14 x i8] c"symbolic link\00"
@.str.11 = [7 x i8] c"socket\00"
@.str.12 = [8 x i8] c"unknown\00"
@EXIT_SUCCESS = global i32 0
@str = [22 x i8] c" -- according to stat\00"
@str.15 = [24 x i8] c" -- according to lstat\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.stat
%4 = icmp eq i32 %0, 2
br i1 %4, label %11, label %5
5: ; preds = %2
%6 = load i32, i32* @stderr
%7 = load i8*, i8** %1
%8 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i32, i32* @EXIT_FAILURE
%10 = tail call i32 @exit(i32 %9)
unreachable
11: ; preds = %2
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = tail call i32* @opendir(i8* %13)
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %24
16: ; preds = %11
%17 = load i32, i32* @stderr
%18 = load i8*, i8** %12
%19 = load i32, i32* @errno
%20 = tail call i8* @strerror(i32 %19)
%21 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %18, i8* %20)
%22 = load i32, i32* @EXIT_FAILURE
%23 = tail call i32 @exit(i32 %22)
unreachable
24: ; preds = %11
%25 = load i8*, i8** %12
%26 = tail call i32 @chdir(i8* %25)
%27 = icmp eq i32 %26, -1
br i1 %27, label %34, label %28
28: ; preds = %24
%29 = tail call %struct.dirent* @readdir(i32* %14)
%30 = icmp eq %struct.dirent* %29, null
br i1 %30, label %133, label %31
31: ; preds = %28
%32 = bitcast %struct.stat* %3 to i8*
%33 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
br label %42
34: ; preds = %24
%35 = load i32, i32* @stderr
%36 = load i8*, i8** %12
%37 = load i32, i32* @errno
%38 = tail call i8* @strerror(i32 %37)
%39 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8* %36, i8* %38)
%40 = load i32, i32* @EXIT_FAILURE
%41 = tail call i32 @exit(i32 %40)
unreachable
42: ; preds = %31, %130
%43 = phi %struct.dirent* [ %29, %31 ], [ %131, %130 ]
%44 = getelementptr inbounds %struct.dirent, %struct.dirent* %43, i64 0, i32 0
%45 = load i8*, i8** %44
%46 = call i32 @stat(i8* %45, %struct.stat* %3)
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %63
48: ; preds = %42
%49 = load i32, i32* @stderr
%50 = load i8*, i8** %44
%51 = load i32, i32* @errno
%52 = tail call i8* @strerror(i32 %51)
%53 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %50, i8* %52)
%54 = load i8*, i8** %44
%55 = call i32 @lstat(i8* %54, %struct.stat* %3)
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %63
57: ; preds = %48
%58 = load i32, i32* @stderr
%59 = load i8*, i8** %44
%60 = load i32, i32* @errno
%61 = tail call i8* @strerror(i32 %60)
%62 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %59, i8* %61)
br label %130
63: ; preds = %48, %42
%64 = load i8*, i8** %44
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %64)
%66 = load i32, i32* %33
%67 = tail call i64 @S_ISREG(i32 %66)
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %88
69: ; preds = %63
%70 = tail call i64 @S_ISDIR(i32 %66)
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %88
72: ; preds = %69
%73 = tail call i64 @S_ISCHR(i32 %66)
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %88
75: ; preds = %72
%76 = tail call i64 @S_ISBLK(i32 %66)
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %88
78: ; preds = %75
%79 = tail call i64 @S_ISFIFO(i32 %66)
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %88
81: ; preds = %78
%82 = tail call i64 @S_ISLNK(i32 %66)
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %88
84: ; preds = %81
%85 = tail call i64 @S_ISSOCK(i32 %66)
%86 = icmp eq i64 %85, 0
%87 = select i1 %86, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0)
br label %88
88: ; preds = %84, %81, %78, %75, %72, %69, %63
%89 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), %63 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), %69 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), %72 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), %75 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), %78 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), %81 ], [ %87, %84 ]
%90 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %89)
%91 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%92 = load i8*, i8** %44
%93 = call i32 @lstat(i8* %92, %struct.stat* %3)
%94 = icmp eq i32 %93, -1
br i1 %94, label %95, label %101
95: ; preds = %88
%96 = load i32, i32* @stderr
%97 = load i8*, i8** %44
%98 = load i32, i32* @errno
%99 = tail call i8* @strerror(i32 %98)
%100 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %96, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %97, i8* %99)
br label %130
101: ; preds = %88
%102 = load i8*, i8** %44
%103 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %102)
%104 = load i32, i32* %33
%105 = tail call i64 @S_ISREG(i32 %104)
%106 = icmp eq i64 %105, 0
br i1 %106, label %107, label %126
107: ; preds = %101
%108 = tail call i64 @S_ISDIR(i32 %104)
%109 = icmp eq i64 %108, 0
br i1 %109, label %110, label %126
110: ; preds = %107
%111 = tail call i64 @S_ISCHR(i32 %104)
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %126
113: ; preds = %110
%114 = tail call i64 @S_ISBLK(i32 %104)
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %126
116: ; preds = %113
%117 = tail call i64 @S_ISFIFO(i32 %104)
%118 = icmp eq i64 %117, 0
br i1 %118, label %119, label %126
119: ; preds = %116
%120 = tail call i64 @S_ISLNK(i32 %104)
%121 = icmp eq i64 %120, 0
br i1 %121, label %122, label %126
122: ; preds = %119
%123 = tail call i64 @S_ISSOCK(i32 %104)
%124 = icmp eq i64 %123, 0
%125 = select i1 %124, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0)
br label %126
126: ; preds = %122, %119, %116, %113, %110, %107, %101
%127 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), %101 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), %107 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), %110 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), %113 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), %116 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), %119 ], [ %125, %122 ]
%128 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %127)
%129 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.15, i64 0, i64 0))
br label %130
130: ; preds = %126, %95, %57
%131 = tail call %struct.dirent* @readdir(i32* %14)
%132 = icmp eq %struct.dirent* %131, null
br i1 %132, label %133, label %42
133: ; preds = %130, %28
%134 = tail call i32 @closedir(i32* %14)
%135 = load i32, i32* @EXIT_SUCCESS
%136 = tail call i32 @exit(i32 %135)
unreachable
}