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

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ O_RDWR;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int link(char *, char *);
scalar_t__ open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sleep(int);
scalar_t__ system(char *);
scalar_t__ unlink(char *);
int main(int argc, char **argv) {
  printf("Creating a 500M file...\n");
  if (system("dd if=/dev/zero of=foo bs=1024k count=500 >/dev/null") != 0) {
    perror("unable to dd a new file");
    exit(EXIT_FAILURE);
  }
  if (system("df .") != 0) {
    perror("unable to run df(1)");
    exit(EXIT_FAILURE);
  }
  printf("\nLinking 'bar' to 'foo'...\n");
  if (link("foo", "bar") == -1) {
    perror("unable to create a second hard link");
    exit(EXIT_FAILURE);
  }
  if (system("ls -li foo bar") != 0) {
    perror("unable to run ls(1)");
    exit(EXIT_FAILURE);
  }
  if (system("df .") != 0) {
    perror("unable to run df(1)");
    exit(EXIT_FAILURE);
  }
  if (open("foo", O_RDWR) < 0) {
    perror("can't open file");
    exit(EXIT_FAILURE);
  }
  if (unlink("foo") < 0) {
    perror("error unlinking");
    exit(EXIT_FAILURE);
  }
  printf("\nOk, foo unlinked.  Disk space not free'd since 'bar' still "
         "exists...\n");
  (void)system("ls -li foo bar");
  if (system("df .") != 0) {
    perror("unable to run df(1)");
    exit(EXIT_FAILURE);
  }
  sleep(3);
  printf("\nOk, now unlinking 'bar'...\n");
  if (unlink("bar") < 0) {
    perror("error unlinking");
    exit(EXIT_FAILURE);
  }
  printf("\nOk, bar unlinked.  Disk space not free'd since I still have a file "
         "handle open...\n");
  printf("\nRunning 'ls -li foo bar':\n");
  (void)system("ls -li foo bar");
  if (system("df .") != 0) {
    perror("unable to run df(1)");
    exit(EXIT_FAILURE);
  }
  sleep(3);
  printf("\n...and done.  Disk space is freed now.\n");
  printf("Run 'df .' to verify.\n");
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe63(%rip),%rdi
call   1050 <printf@plt>
lea    0xe70(%rip),%rdi
call   1040 <system@plt>
cmp    $0x0,%rax
je     11d2 <main+0x52>
lea    0xe8f(%rip),%rdi
call   1070 <perror@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
lea    0xe8d(%rip),%rdi
call   1040 <system@plt>
cmp    $0x0,%rax
je     1202 <main+0x82>
lea    0xe7c(%rip),%rdi
call   1070 <perror@plt>
mov    0x2ddd(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
lea    0xe76(%rip),%rdi
call   1050 <printf@plt>
lea    0xe86(%rip),%rdi
lea    0xeb2(%rip),%rsi
call   1080 <link@plt>
cmp    $0xffffffff,%eax
jne    1244 <main+0xc4>
lea    0xe6e(%rip),%rdi
call   1070 <perror@plt>
mov    0x2d9b(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
lea    0xe78(%rip),%rdi
call   1040 <system@plt>
cmp    $0x0,%rax
je     1274 <main+0xf4>
lea    0xe71(%rip),%rdi
call   1070 <perror@plt>
mov    0x2d6b(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
lea    0xdeb(%rip),%rdi
call   1040 <system@plt>
cmp    $0x0,%rax
je     12a4 <main+0x124>
lea    0xdda(%rip),%rdi
call   1070 <perror@plt>
mov    0x2d3b(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
mov    0x2d3d(%rip),%rax
mov    (%rax),%esi
lea    0xde7(%rip),%rdi
call   1060 <open@plt>
cmp    $0x0,%rax
jge    12dd <main+0x15d>
lea    0xe1c(%rip),%rdi
call   1070 <perror@plt>
mov    0x2d02(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
lea    0xdb7(%rip),%rdi
call   1030 <unlink@plt>
cmp    $0x0,%rax
jge    130d <main+0x18d>
lea    0xdfc(%rip),%rdi
call   1070 <perror@plt>
mov    0x2cd2(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
lea    0xdf2(%rip),%rdi
call   1050 <printf@plt>
lea    0xda3(%rip),%rdi
call   1040 <system@plt>
lea    0xd3a(%rip),%rdi
call   1040 <system@plt>
cmp    $0x0,%rax
je     1355 <main+0x1d5>
lea    0xd29(%rip),%rdi
call   1070 <perror@plt>
mov    0x2c8a(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
mov    $0x3,%edi
call   10a0 <sleep@plt>
lea    0xde7(%rip),%rdi
call   1050 <printf@plt>
lea    0xd5c(%rip),%rdi
call   1030 <unlink@plt>
cmp    $0x0,%rax
jge    139b <main+0x21b>
lea    0xd6e(%rip),%rdi
call   1070 <perror@plt>
mov    0x2c44(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
lea    0xdc8(%rip),%rdi
call   1050 <printf@plt>
lea    0xe10(%rip),%rdi
call   1050 <printf@plt>
lea    0xd09(%rip),%rdi
call   1040 <system@plt>
lea    0xca0(%rip),%rdi
call   1040 <system@plt>
cmp    $0x0,%rax
je     13ef <main+0x26f>
lea    0xc8f(%rip),%rdi
call   1070 <perror@plt>
mov    0x2bf0(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
mov    $0x3,%edi
call   10a0 <sleep@plt>
lea    0xdda(%rip),%rdi
call   1050 <printf@plt>
lea    0xdf7(%rip),%rdi
call   1050 <printf@plt>
mov    0x2bb8(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf49(%rip),%rdi
call   1040 <puts@plt>
lea    0xe6c(%rip),%rdi
call   1050 <system@plt>
test   %rax,%rax
jne    11e3 <main+0x63>
lea    0xea8(%rip),%rdi
call   1050 <system@plt>
test   %rax,%rax
jne    131d <main+0x19d>
lea    0xf2f(%rip),%rdi
call   1040 <puts@plt>
lea    0xea0(%rip),%rdi
lea    0xecc(%rip),%rsi
call   1080 <link@plt>
cmp    $0xffffffff,%eax
jne    11ef <main+0x6f>
lea    0xe8c(%rip),%rdi
jmp    1324 <main+0x1a4>
lea    0xe4b(%rip),%rdi
jmp    1324 <main+0x1a4>
lea    0xe98(%rip),%rdi
call   1050 <system@plt>
test   %rax,%rax
jne    123b <main+0xbb>
lea    0xe46(%rip),%rdi
call   1050 <system@plt>
test   %rax,%rax
jne    131d <main+0x19d>
mov    0x2dcc(%rip),%rax
mov    (%rax),%esi
lea    0xe41(%rip),%rdi
call   1060 <open@plt>
test   %rax,%rax
jns    1247 <main+0xc7>
lea    0xe7b(%rip),%rdi
jmp    1324 <main+0x1a4>
lea    0xe5b(%rip),%rdi
jmp    1324 <main+0x1a4>
lea    0xe18(%rip),%rdi
call   1030 <unlink@plt>
test   %rax,%rax
jns    1264 <main+0xe4>
lea    0xe62(%rip),%rdi
jmp    1324 <main+0x1a4>
lea    0xe99(%rip),%rdi
call   1040 <puts@plt>
lea    0xe17(%rip),%rdi
call   1050 <system@plt>
lea    0xdca(%rip),%rdi
call   1050 <system@plt>
test   %rax,%rax
jne    131d <main+0x19d>
mov    $0x3,%edi
call   10a0 <sleep@plt>
lea    0xea8(%rip),%rdi
call   1040 <puts@plt>
lea    0xdeb(%rip),%rdi
call   1030 <unlink@plt>
test   %rax,%rax
js     1258 <main+0xd8>
lea    0xea7(%rip),%rdi
call   1040 <puts@plt>
lea    0xeee(%rip),%rdi
call   1040 <puts@plt>
lea    0xdb7(%rip),%rdi
call   1050 <system@plt>
lea    0xd6a(%rip),%rdi
call   1050 <system@plt>
test   %rax,%rax
jne    131d <main+0x19d>
mov    $0x3,%edi
call   10a0 <sleep@plt>
lea    0xed6(%rip),%rdi
call   1040 <puts@plt>
lea    0xef2(%rip),%rdi
call   1040 <puts@plt>
mov    0x2cba(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
lea    0xd2e(%rip),%rdi
call   1070 <perror@plt>
mov    0x2ca8(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"Creating a 500M file...\0A\00"
@.str.1 = [53 x i8] c"dd if=/dev/zero of=foo bs=1024k count=500 >/dev/null\00"
@.str.2 = [24 x i8] c"unable to dd a new file\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [5 x i8] c"df .\00"
@.str.4 = [20 x i8] c"unable to run df(1)\00"
@.str.5 = [28 x i8] c"\0ALinking 'bar' to 'foo'...\0A\00"
@.str.6 = [4 x i8] c"foo\00"
@.str.7 = [4 x i8] c"bar\00"
@.str.8 = [36 x i8] c"unable to create a second hard link\00"
@.str.9 = [15 x i8] c"ls -li foo bar\00"
@.str.10 = [20 x i8] c"unable to run ls(1)\00"
@O_RDWR = global i32 0
@.str.11 = [16 x i8] c"can't open file\00"
@.str.12 = [16 x i8] c"error unlinking\00"
@.str.13 = [71 x i8] c"\0AOk, foo unlinked. Disk space not free'd since 'bar' still exists...\0A\00"
@.str.14 = [29 x i8] c"\0AOk, now unlinking 'bar'...\0A\00"
@.str.15 = [84 x i8] c"\0AOk, bar unlinked. Disk space not free'd since I still have a file handle open...\0A\00"
@.str.16 = [28 x i8] c"\0ARunning 'ls -li foo bar':\0A\00"
@.str.17 = [41 x i8] c"\0A...and done. Disk space is freed now.\0A\00"
@.str.18 = [23 x i8] c"Run 'df .' to verify.\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%7 = call i64 @system(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%11 = load i32, i32* @EXIT_FAILURE
%12 = call i32 @exit(i32 %11)
unreachable
13: ; preds = %2
%14 = call i64 @system(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%18 = load i32, i32* @EXIT_FAILURE
%19 = call i32 @exit(i32 %18)
unreachable
20: ; preds = %13
%21 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%22 = call i32 @link(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %28
24: ; preds = %20
%25 = call i32 @perror(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%26 = load i32, i32* @EXIT_FAILURE
%27 = call i32 @exit(i32 %26)
unreachable
28: ; preds = %20
%29 = call i64 @system(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %28
%32 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
%33 = load i32, i32* @EXIT_FAILURE
%34 = call i32 @exit(i32 %33)
unreachable
35: ; preds = %28
%36 = call i64 @system(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %35
%39 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%40 = load i32, i32* @EXIT_FAILURE
%41 = call i32 @exit(i32 %40)
unreachable
42: ; preds = %35
%43 = load i32, i32* @O_RDWR
%44 = call i64 @open(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %43)
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %42
%47 = call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0))
%48 = load i32, i32* @EXIT_FAILURE
%49 = call i32 @exit(i32 %48)
unreachable
50: ; preds = %42
%51 = call i64 @unlink(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%52 = icmp slt i64 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %50
%54 = call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0))
%55 = load i32, i32* @EXIT_FAILURE
%56 = call i32 @exit(i32 %55)
unreachable
57: ; preds = %50
%58 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.13, i64 0, i64 0))
%59 = call i64 @system(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%60 = call i64 @system(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %66
62: ; preds = %57
%63 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%64 = load i32, i32* @EXIT_FAILURE
%65 = call i32 @exit(i32 %64)
unreachable
66: ; preds = %57
%67 = call i32 @sleep(i32 3)
%68 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.14, i64 0, i64 0))
%69 = call i64 @unlink(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%70 = icmp slt i64 %69, 0
br i1 %70, label %71, label %75
71: ; preds = %66
%72 = call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0))
%73 = load i32, i32* @EXIT_FAILURE
%74 = call i32 @exit(i32 %73)
unreachable
75: ; preds = %66
%76 = call i32 @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.15, i64 0, i64 0))
%77 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0))
%78 = call i64 @system(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%79 = call i64 @system(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %85
81: ; preds = %75
%82 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%83 = load i32, i32* @EXIT_FAILURE
%84 = call i32 @exit(i32 %83)
unreachable
85: ; preds = %75
%86 = call i32 @sleep(i32 3)
%87 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.17, i64 0, i64 0))
%88 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.18, i64 0, i64 0))
%89 = load i32, i32* @EXIT_SUCCESS
%90 = call i32 @exit(i32 %89)
unreachable
}

LLVM IR (-O2):
@.str.1 = [53 x i8] c"dd if=/dev/zero of=foo bs=1024k count=500 >/dev/null\00"
@.str.2 = [24 x i8] c"unable to dd a new file\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [5 x i8] c"df .\00"
@.str.4 = [20 x i8] c"unable to run df(1)\00"
@.str.6 = [4 x i8] c"foo\00"
@.str.7 = [4 x i8] c"bar\00"
@.str.8 = [36 x i8] c"unable to create a second hard link\00"
@.str.9 = [15 x i8] c"ls -li foo bar\00"
@.str.10 = [20 x i8] c"unable to run ls(1)\00"
@O_RDWR = global i32 0
@.str.11 = [16 x i8] c"can't open file\00"
@.str.12 = [16 x i8] c"error unlinking\00"
@EXIT_SUCCESS = global i32 0
@str = [24 x i8] c"Creating a 500M file...\00"
@str.19 = [27 x i8] c"\0ALinking 'bar' to 'foo'...\00"
@str.20 = [70 x i8] c"\0AOk, foo unlinked. Disk space not free'd since 'bar' still exists...\00"
@str.21 = [28 x i8] c"\0AOk, now unlinking 'bar'...\00"
@str.22 = [83 x i8] c"\0AOk, bar unlinked. Disk space not free'd since I still have a file handle open...\00"
@str.23 = [27 x i8] c"\0ARunning 'ls -li foo bar':\00"
@str.24 = [40 x i8] c"\0A...and done. Disk space is freed now.\00"
@str.25 = [22 x i8] c"Run 'df .' to verify.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%4 = tail call i64 @system(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %2
%7 = tail call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%8 = load i32, i32* @EXIT_FAILURE
%9 = tail call i32 @exit(i32 %8)
unreachable
10: ; preds = %2
%11 = tail call i64 @system(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %17, label %13
13: ; preds = %10
%14 = tail call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%15 = load i32, i32* @EXIT_FAILURE
%16 = tail call i32 @exit(i32 %15)
unreachable
17: ; preds = %10
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.19, i64 0, i64 0))
%19 = tail call i32 @link(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = tail call i32 @perror(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%23 = load i32, i32* @EXIT_FAILURE
%24 = tail call i32 @exit(i32 %23)
unreachable
25: ; preds = %17
%26 = tail call i64 @system(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %32, label %28
28: ; preds = %25
%29 = tail call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
%30 = load i32, i32* @EXIT_FAILURE
%31 = tail call i32 @exit(i32 %30)
unreachable
32: ; preds = %25
%33 = tail call i64 @system(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %39, label %35
35: ; preds = %32
%36 = tail call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%37 = load i32, i32* @EXIT_FAILURE
%38 = tail call i32 @exit(i32 %37)
unreachable
39: ; preds = %32
%40 = load i32, i32* @O_RDWR
%41 = tail call i64 @open(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %40)
%42 = icmp slt i64 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %39
%44 = tail call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0))
%45 = load i32, i32* @EXIT_FAILURE
%46 = tail call i32 @exit(i32 %45)
unreachable
47: ; preds = %39
%48 = tail call i64 @unlink(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %54
50: ; preds = %47
%51 = tail call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0))
%52 = load i32, i32* @EXIT_FAILURE
%53 = tail call i32 @exit(i32 %52)
unreachable
54: ; preds = %47
%55 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.20, i64 0, i64 0))
%56 = tail call i64 @system(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%57 = tail call i64 @system(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %63, label %59
59: ; preds = %54
%60 = tail call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%61 = load i32, i32* @EXIT_FAILURE
%62 = tail call i32 @exit(i32 %61)
unreachable
63: ; preds = %54
%64 = tail call i32 @sleep(i32 3)
%65 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.21, i64 0, i64 0))
%66 = tail call i64 @unlink(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%67 = icmp slt i64 %66, 0
br i1 %67, label %68, label %72
68: ; preds = %63
%69 = tail call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0))
%70 = load i32, i32* @EXIT_FAILURE
%71 = tail call i32 @exit(i32 %70)
unreachable
72: ; preds = %63
%73 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.22, i64 0, i64 0))
%74 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.23, i64 0, i64 0))
%75 = tail call i64 @system(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%76 = tail call i64 @system(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %82, label %78
78: ; preds = %72
%79 = tail call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%80 = load i32, i32* @EXIT_FAILURE
%81 = tail call i32 @exit(i32 %80)
unreachable
82: ; preds = %72
%83 = tail call i32 @sleep(i32 3)
%84 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.24, i64 0, i64 0))
%85 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.25, i64 0, i64 0))
%86 = load i32, i32* @EXIT_SUCCESS
%87 = tail call i32 @exit(i32 %86)
unreachable
}