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

/* Variables and functions */
int /*<<< orphan*/ MAP_SHARED;
int O_CREAT;
int /*<<< orphan*/ O_RDONLY;
int O_RDWR;
int O_TRUNC;
int PROT_READ;
int PROT_WRITE;
int /*<<< orphan*/ S_IRWXU;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ closedir(int /*<<< orphan*/ *);
int /*<<< orphan*/ execlp(char *, char *, char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ fork();
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ fstat(int, struct stat *);
int /*<<< orphan*/ ftruncate(int, int /*<<< orphan*/);
char *malloc(int);
void *mmap(int /*<<< orphan*/, int /*<<< orphan*/, int, int /*<<< orphan*/, int,
           int /*<<< orphan*/);
int /*<<< orphan*/ msync(void *, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ munmap(void *, int /*<<< orphan*/);
int open(char *, int, ...);
int /*<<< orphan*/ *opendir(char const *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ read(int, void *, int /*<<< orphan*/);
struct dirent *readdir(int /*<<< orphan*/ *);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ strcat(char *, int /*<<< orphan*/);
int /*<<< orphan*/ strcpy(char *, char const *);
int /*<<< orphan*/ strstr(char *, char *);
int /*<<< orphan*/ wait();
int main() {
  struct stat fst;
  struct dirent *ent;
  DIR *dir;
  int fd = -1;
  void *mem = NULL;
  int out = open("/tmp/bg", O_RDWR | O_CREAT | O_TRUNC, S_IRWXU);
  const char *path = "/home/phaezah7/.config/awesome/";
  char *filename = malloc(128);
  if (!filename || !(dir = opendir(path)))
    return 1;
  while ((ent = readdir(dir)) != NULL) {
    (void)strcpy(filename, path);
    (void)strcat(filename, ent->d_name);
    if (!strstr(filename, ".jpg") && !strstr(filename, ".png"))
      continue;
    printf("setting %s\n", filename);
    if (0 > (fd = open(filename, O_RDONLY)))
      continue;
    (void)fstat(fd, &fst);
    (void)ftruncate(out, fst.st_size);
    mem = mmap(0, fst.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, out, 0);
    (void)read(fd, mem, fst.st_size);
    (void)close(fd);
    (void)msync(mem, fst.st_size, 0);
    (void)munmap(mem, fst.st_size);
    if (!fork())
      execlp("feh", "feh", "--bg-fill", "/tmp/bg", 0);
    (void)sleep(60);
  }
  (void)close(out);
  (void)closedir(dir);
  (void)free(filename);
  (void)wait();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffff,-0x1c(%rbp)
movq   $0x0,-0x28(%rbp)
mov    0x2d4b(%rip),%rax
mov    (%rax),%esi
mov    0x2d7a(%rip),%rax
or     (%rax),%esi
mov    0x2d69(%rip),%rax
or     (%rax),%esi
mov    0x2d38(%rip),%rax
mov    (%rax),%edx
lea    0xd67(%rip),%rdi
mov    $0x0,%al
call   1100 <open@plt>
mov    %eax,-0x2c(%rbp)
lea    0xd5e(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    $0x80,%edi
call   10e0 <malloc@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     12de <main+0x8e>
mov    -0x38(%rbp),%rdi
call   1050 <opendir@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    12ea <main+0x9a>
movl   $0x1,-0x4(%rbp)
jmp    1471 <main+0x221>
jmp    12ef <main+0x9f>
mov    -0x18(%rbp),%rdi
call   10d0 <readdir@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     1449 <main+0x1f9>
mov    -0x40(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
call   1110 <strcat@plt>
mov    -0x40(%rbp),%rdi
lea    0xcfb(%rip),%rsi
call   1170 <strstr@plt>
cmp    $0x0,%eax
jne    1359 <main+0x109>
mov    -0x40(%rbp),%rdi
lea    0xce7(%rip),%rsi
call   1170 <strstr@plt>
cmp    $0x0,%eax
jne    1359 <main+0x109>
jmp    12ef <main+0x9f>
mov    -0x40(%rbp),%rsi
lea    0xcce(%rip),%rdi
call   1080 <printf@plt>
mov    -0x40(%rbp),%rdi
mov    0x2c44(%rip),%rax
mov    (%rax),%esi
mov    $0x0,%al
call   1100 <open@plt>
mov    %eax,%ecx
mov    %ecx,-0x1c(%rbp)
xor    %eax,%eax
cmp    %ecx,%eax
jle    1391 <main+0x141>
jmp    12ef <main+0x9f>
mov    -0x1c(%rbp),%edi
lea    -0x8(%rbp),%rsi
call   1140 <fstat@plt>
mov    -0x2c(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1090 <ftruncate@plt>
mov    -0x8(%rbp),%esi
mov    0x2c36(%rip),%rax
mov    (%rax),%edx
mov    0x2bed(%rip),%rax
or     (%rax),%edx
mov    0x2c14(%rip),%rax
mov    (%rax),%ecx
mov    -0x2c(%rbp),%r8d
xor    %r9d,%r9d
mov    %r9d,%edi
call   1070 <mmap@plt>
mov    %rax,-0x28(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    -0x8(%rbp),%edx
call   10c0 <read@plt>
mov    -0x1c(%rbp),%edi
call   10a0 <close@plt>
mov    -0x28(%rbp),%rdi
mov    -0x8(%rbp),%esi
xor    %edx,%edx
call   1060 <msync@plt>
mov    -0x28(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   10f0 <munmap@plt>
mov    $0x0,%al
call   1160 <fork@plt>
cmp    $0x0,%eax
jne    143a <main+0x1ea>
lea    0xc1d(%rip),%rsi
lea    0xc1a(%rip),%rdx
lea    0xbd1(%rip),%rcx
xor    %r8d,%r8d
mov    %rsi,%rdi
call   1120 <execlp@plt>
mov    $0x3c,%edi
call   1130 <sleep@plt>
jmp    12ef <main+0x9f>
mov    -0x2c(%rbp),%edi
call   10a0 <close@plt>
mov    -0x18(%rbp),%rdi
call   10b0 <closedir@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    $0x0,%al
call   1150 <wait@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    0x2d5e(%rip),%rax
mov    0x2d8f(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    0x2d7c(%rip),%rax
or     (%rax),%esi
mov    0x2d4b(%rip),%rax
mov    (%rax),%edx
lea    0xd7a(%rip),%rdi
xor    %eax,%eax
call   1100 <open@plt>
mov    %eax,%r14d
mov    $0x80,%edi
call   10e0 <malloc@plt>
mov    $0x1,%ebp
test   %rax,%rax
je     1431 <main+0x1e1>
mov    %rax,%rbx
lea    0xd56(%rip),%rdi
call   1050 <opendir@plt>
test   %rax,%rax
je     1431 <main+0x1e1>
mov    %rax,%r12
mov    %rax,%rdi
call   10d0 <readdir@plt>
test   %rax,%rax
je     1410 <main+0x1c0>
mov    %rax,%rbp
jmp    12fe <main+0xae>
nopl   0x0(%rax)
mov    $0x3c,%edi
call   1130 <sleep@plt>
mov    %r12,%rdi
call   10d0 <readdir@plt>
mov    %rax,%rbp
test   %rax,%rax
je     1410 <main+0x1c0>
mov    %rbx,%rdi
lea    0xd00(%rip),%rsi
call   1040 <strcpy@plt>
mov    0x0(%rbp),%esi
mov    %rbx,%rdi
call   1110 <strcat@plt>
mov    %rbx,%rdi
lea    0xd06(%rip),%rsi
call   1170 <strstr@plt>
test   %eax,%eax
jne    133e <main+0xee>
mov    %rbx,%rdi
lea    0xcf8(%rip),%rsi
call   1170 <strstr@plt>
test   %eax,%eax
je     12ea <main+0x9a>
lea    0xced(%rip),%rdi
mov    %rbx,%rsi
call   1080 <printf@plt>
mov    0x2c64(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1100 <open@plt>
test   %eax,%eax
js     12ea <main+0x9a>
mov    %eax,%r13d
mov    %eax,%edi
mov    %rsp,%rsi
call   1140 <fstat@plt>
mov    (%rsp),%r15d
mov    %r14d,%edi
mov    %r15d,%esi
call   1090 <ftruncate@plt>
mov    0x2c21(%rip),%rax
mov    (%rax),%edx
mov    0x2c58(%rip),%rax
or     (%rax),%edx
mov    0x2c3f(%rip),%rax
mov    (%rax),%ecx
xor    %edi,%edi
mov    %r15d,%esi
mov    %r14d,%r8d
xor    %r9d,%r9d
call   1070 <mmap@plt>
mov    %rax,%rbp
mov    %r13d,%edi
mov    %rax,%rsi
mov    %r15d,%edx
call   10c0 <read@plt>
mov    %r13d,%edi
call   10a0 <close@plt>
mov    %rbp,%rdi
mov    %r15d,%esi
xor    %edx,%edx
call   1060 <msync@plt>
mov    %rbp,%rdi
mov    %r15d,%esi
call   10f0 <munmap@plt>
xor    %eax,%eax
call   1160 <fork@plt>
test   %eax,%eax
jne    12e0 <main+0x90>
lea    0xc4c(%rip),%rdi
mov    %rdi,%rsi
lea    0xc46(%rip),%rdx
lea    0xbfd(%rip),%rcx
xor    %r8d,%r8d
call   1120 <execlp@plt>
jmp    12e0 <main+0x90>
mov    %r14d,%edi
call   10a0 <close@plt>
mov    %r12,%rdi
call   10b0 <closedir@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %ebp,%ebp
xor    %eax,%eax
call   1150 <wait@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
%struct.dirent = type { i32 }
@.str = [8 x i8] c"/tmp/bg\00"
@O_RDWR = global i32 0
@O_CREAT = global i32 0
@O_TRUNC = global i32 0
@S_IRWXU = global i32 0
@.str.1 = [32 x i8] c"/home/phaezah7/.config/awesome/\00"
@.str.2 = [5 x i8] c".jpg\00"
@.str.3 = [5 x i8] c".png\00"
@.str.4 = [12 x i8] c"setting %s\0A\00"
@O_RDONLY = global i32 0
@PROT_READ = global i32 0
@PROT_WRITE = global i32 0
@MAP_SHARED = global i32 0
@.str.5 = [4 x i8] c"feh\00"
@.str.6 = [10 x i8] c"--bg-fill\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.stat
%3 = alloca %struct.dirent*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i8*
store i32 0, i32* %1
store i32 -1, i32* %5
store i8* null, i8** %6
%10 = load i32, i32* @O_RDWR
%11 = load i32, i32* @O_CREAT
%12 = or i32 %10, %11
%13 = load i32, i32* @O_TRUNC
%14 = or i32 %12, %13
%15 = load i32, i32* @S_IRWXU
%16 = call i32 (i8*, i32, ...) @open(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %15)
store i32 %16, i32* %7
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8** %8
%17 = call i8* @malloc(i32 128)
store i8* %17, i8** %9
%18 = load i8*, i8** %9
%19 = icmp ne i8* %18, null
br i1 %19, label %20, label %24
20: ; preds = %0
%21 = load i8*, i8** %8
%22 = call i32* @opendir(i8* %21)
store i32* %22, i32** %4
%23 = icmp ne i32* %22, null
br i1 %23, label %25, label %24
24: ; preds = %20, %0
store i32 1, i32* %1
br label %99
25: ; preds = %20
br label %26
26: ; preds = %89, %54, %46, %25
%27 = load i32*, i32** %4
%28 = call %struct.dirent* @readdir(i32* %27)
store %struct.dirent* %28, %struct.dirent** %3
%29 = icmp ne %struct.dirent* %28, null
br i1 %29, label %30, label %91
30: ; preds = %26
%31 = load i8*, i8** %9
%32 = load i8*, i8** %8
%33 = call i32 @strcpy(i8* %31, i8* %32)
%34 = load i8*, i8** %9
%35 = load %struct.dirent*, %struct.dirent** %3
%36 = getelementptr inbounds %struct.dirent, %struct.dirent* %35, i32 0, i32 0
%37 = load i32, i32* %36
%38 = call i32 @strcat(i8* %34, i32 %37)
%39 = load i8*, i8** %9
%40 = call i32 @strstr(i8* %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%41 = icmp ne i32 %40, 0
br i1 %41, label %47, label %42
42: ; preds = %30
%43 = load i8*, i8** %9
%44 = call i32 @strstr(i8* %43, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%45 = icmp ne i32 %44, 0
br i1 %45, label %47, label %46
46: ; preds = %42
br label %26
47: ; preds = %42, %30
%48 = load i8*, i8** %9
%49 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* %48)
%50 = load i8*, i8** %9
%51 = load i32, i32* @O_RDONLY
%52 = call i32 (i8*, i32, ...) @open(i8* %50, i32 %51)
store i32 %52, i32* %5
%53 = icmp sgt i32 0, %52
br i1 %53, label %54, label %55
54: ; preds = %47
br label %26
55: ; preds = %47
%56 = load i32, i32* %5
%57 = call i32 @fstat(i32 %56, %struct.stat* %2)
%58 = load i32, i32* %7
%59 = getelementptr inbounds %struct.stat, %struct.stat* %2, i32 0, i32 0
%60 = load i32, i32* %59
%61 = call i32 @ftruncate(i32 %58, i32 %60)
%62 = getelementptr inbounds %struct.stat, %struct.stat* %2, i32 0, i32 0
%63 = load i32, i32* %62
%64 = load i32, i32* @PROT_READ
%65 = load i32, i32* @PROT_WRITE
%66 = or i32 %64, %65
%67 = load i32, i32* @MAP_SHARED
%68 = load i32, i32* %7
%69 = call i8* @mmap(i32 0, i32 %63, i32 %66, i32 %67, i32 %68, i32 0)
store i8* %69, i8** %6
%70 = load i32, i32* %5
%71 = load i8*, i8** %6
%72 = getelementptr inbounds %struct.stat, %struct.stat* %2, i32 0, i32 0
%73 = load i32, i32* %72
%74 = call i32 @read(i32 %70, i8* %71, i32 %73)
%75 = load i32, i32* %5
%76 = call i32 @close(i32 %75)
%77 = load i8*, i8** %6
%78 = getelementptr inbounds %struct.stat, %struct.stat* %2, i32 0, i32 0
%79 = load i32, i32* %78
%80 = call i32 @msync(i8* %77, i32 %79, i32 0)
%81 = load i8*, i8** %6
%82 = getelementptr inbounds %struct.stat, %struct.stat* %2, i32 0, i32 0
%83 = load i32, i32* %82
%84 = call i32 @munmap(i8* %81, i32 %83)
%85 = call i32 (...) @fork()
%86 = icmp ne i32 %85, 0
br i1 %86, label %89, label %87
87: ; preds = %55
%88 = call i32 @execlp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 0)
br label %89
89: ; preds = %87, %55
%90 = call i32 @sleep(i32 60)
br label %26
91: ; preds = %26
%92 = load i32, i32* %7
%93 = call i32 @close(i32 %92)
%94 = load i32*, i32** %4
%95 = call i32 @closedir(i32* %94)
%96 = load i8*, i8** %9
%97 = call i32 @free(i8* %96)
%98 = call i32 (...) @wait()
store i32 0, i32* %1
br label %99
99: ; preds = %91, %24
%100 = load i32, i32* %1
ret i32 %100
}

LLVM IR (-O2):
%struct.stat = type { i32 }
%struct.dirent = type { i32 }
@.str = [8 x i8] c"/tmp/bg\00"
@O_RDWR = global i32 0
@O_CREAT = global i32 0
@O_TRUNC = global i32 0
@S_IRWXU = global i32 0
@.str.1 = [32 x i8] c"/home/phaezah7/.config/awesome/\00"
@.str.2 = [5 x i8] c".jpg\00"
@.str.3 = [5 x i8] c".png\00"
@.str.4 = [12 x i8] c"setting %s\0A\00"
@O_RDONLY = global i32 0
@PROT_READ = global i32 0
@PROT_WRITE = global i32 0
@MAP_SHARED = global i32 0
@.str.5 = [4 x i8] c"feh\00"
@.str.6 = [10 x i8] c"--bg-fill\00"
define i32 @main() {
%1 = alloca %struct.stat
%2 = bitcast %struct.stat* %1 to i8*
%3 = load i32, i32* @O_RDWR
%4 = load i32, i32* @O_CREAT
%5 = or i32 %4, %3
%6 = load i32, i32* @O_TRUNC
%7 = or i32 %5, %6
%8 = load i32, i32* @S_IRWXU
%9 = tail call i32 (i8*, i32, ...) @open(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %8)
%10 = tail call dereferenceable_or_null(128) i8* @malloc(i32 128)
%11 = icmp eq i8* %10, null
br i1 %11, label %63, label %12
12: ; preds = %0
%13 = tail call i32* @opendir(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp eq i32* %13, null
br i1 %14, label %63, label %15
15: ; preds = %12
%16 = tail call %struct.dirent* @readdir(i32* %13)
%17 = icmp eq %struct.dirent* %16, null
br i1 %17, label %58, label %18
18: ; preds = %15
%19 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 0
br label %20
20: ; preds = %18, %55
%21 = phi %struct.dirent* [ %16, %18 ], [ %56, %55 ]
%22 = tail call i32 @strcpy(i8* %10, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%23 = getelementptr inbounds %struct.dirent, %struct.dirent* %21, i64 0, i32 0
%24 = load i32, i32* %23
%25 = tail call i32 @strcat(i8* %10, i32 %24)
%26 = tail call i32 @strstr(i8* %10, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %20
%29 = tail call i32 @strstr(i8* %10, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
br i1 %30, label %55, label %31
31: ; preds = %28, %20
%32 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* %10)
%33 = load i32, i32* @O_RDONLY
%34 = tail call i32 (i8*, i32, ...) @open(i8* %10, i32 %33)
%35 = icmp slt i32 %34, 0
br i1 %35, label %55, label %36
36: ; preds = %31
%37 = call i32 @fstat(i32 %34, %struct.stat* %1)
%38 = load i32, i32* %19
%39 = tail call i32 @ftruncate(i32 %9, i32 %38)
%40 = load i32, i32* @PROT_READ
%41 = load i32, i32* @PROT_WRITE
%42 = or i32 %41, %40
%43 = load i32, i32* @MAP_SHARED
%44 = tail call i8* @mmap(i32 0, i32 %38, i32 %42, i32 %43, i32 %9, i32 0)
%45 = tail call i32 @read(i32 %34, i8* %44, i32 %38)
%46 = tail call i32 @close(i32 %34)
%47 = tail call i32 @msync(i8* %44, i32 %38, i32 0)
%48 = tail call i32 @munmap(i8* %44, i32 %38)
%49 = tail call i32 (...) @fork()
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %36
%52 = tail call i32 @execlp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 0)
br label %53
53: ; preds = %51, %36
%54 = tail call i32 @sleep(i32 60)
br label %55
55: ; preds = %53, %28, %31
%56 = tail call %struct.dirent* @readdir(i32* %13)
%57 = icmp eq %struct.dirent* %56, null
br i1 %57, label %58, label %20
58: ; preds = %55, %15
%59 = tail call i32 @close(i32 %9)
%60 = tail call i32 @closedir(i32* %13)
%61 = tail call i32 @free(i8* %10)
%62 = tail call i32 (...) @wait()
br label %63
63: ; preds = %0, %12, %58
%64 = phi i32 [ 0, %58 ], [ 1, %12 ], [ 1, %0 ]
ret i32 %64
}