#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*/ assert(int);
int /*<<< orphan*/ dirname(char *);
int /*<<< orphan*/ puts(char *);
scalar_t__ strcmp(int /*<<< orphan*/, char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
int main(int argc, char *argv[]) {
  char s[80];
  strncpy(s, "/usr/lib", 80);
  assert(strcmp(dirname(s), "/usr") == 0);
  strncpy(s, "/usr/", 80);
  assert(strcmp(dirname(s), "/") == 0);
  strncpy(s, "usr", 80);
  assert(strcmp(dirname(s), ".") == 0);
  strncpy(s, "usr/test", 80);
  assert(strcmp(dirname(s), "usr") == 0);
  strncpy(s, "usr/test/test2", 80);
  assert(strcmp(dirname(s), "usr/test") == 0);
  strncpy(s, "/usr", 80);
  assert(strcmp(dirname(s), "/") == 0);
  strncpy(s, "/", 80);
  assert(strcmp(dirname(s), "/") == 0);
  strncpy(s, ".", 80);
  assert(strcmp(dirname(s), ".") == 0);
  strncpy(s, "..", 80);
  assert(strcmp(dirname(s), ".") == 0);
  strncpy(s, "////", 80);
  assert(strcmp(dirname(s), "/") == 0);
  strncpy(s, "//", 80);
  assert(strcmp(dirname(s), "/") == 0);
  assert(strcmp(dirname(NULL), ".") == 0);
  s[0] = 0;
  assert(strcmp(dirname(s), ".") == 0);
  puts("OK");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x60(%rbp),%rdi
lea    0xe8f(%rip),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    -0x60(%rbp),%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
lea    0xe7c(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x60(%rbp),%rdi
lea    0xe60(%rip),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    -0x60(%rbp),%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
lea    0xe68(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x60(%rbp),%rdi
lea    0xe1f(%rip),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    -0x60(%rbp),%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
lea    0xe26(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x60(%rbp),%rdi
lea    0xdec(%rip),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    -0x60(%rbp),%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
lea    0xdc6(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x60(%rbp),%rdi
lea    0xdb8(%rip),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    -0x60(%rbp),%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
lea    0xd93(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x60(%rbp),%rdi
lea    0xd67(%rip),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    -0x60(%rbp),%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
lea    0xd74(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x60(%rbp),%rdi
lea    0xd53(%rip),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    -0x60(%rbp),%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
lea    0xd37(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x60(%rbp),%rdi
lea    0xd11(%rip),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    -0x60(%rbp),%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
lea    0xcf5(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x60(%rbp),%rdi
lea    0xcd3(%rip),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    -0x60(%rbp),%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
lea    0xcb8(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x60(%rbp),%rdi
lea    0xc99(%rip),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    -0x60(%rbp),%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
lea    0xc80(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    -0x60(%rbp),%rdi
lea    0xc5e(%rip),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    -0x60(%rbp),%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
lea    0xc43(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1050 <dirname@plt>
mov    %eax,%edi
lea    0xc16(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
movb   $0x0,-0x60(%rbp)
lea    -0x60(%rbp),%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
lea    0xbea(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
lea    0xbd4(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
lea    0xe9b(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x50,%edx
call   1030 <strncpy@plt>
mov    %rbx,%rdi
call   1050 <dirname@plt>
lea    0xe85(%rip),%r12
mov    %eax,%edi
mov    %r12,%rsi
call   1060 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
lea    0xe6b(%rip),%rsi
mov    %rbx,%rdi
mov    $0x50,%edx
call   1030 <strncpy@plt>
mov    %rbx,%rdi
call   1050 <dirname@plt>
lea    0xe73(%rip),%r15
mov    %eax,%edi
mov    %r15,%rsi
call   1060 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
lea    0xe2c(%rip),%r13
mov    %rbx,%rdi
mov    %r13,%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
mov    %rbx,%rdi
call   1050 <dirname@plt>
lea    0xe30(%rip),%r14
mov    %eax,%edi
mov    %r14,%rsi
call   1060 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
lea    0xdf8(%rip),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
mov    %rbx,%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
mov    %r13,%rsi
call   1060 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
lea    0xdca(%rip),%rsi
mov    %rbx,%rdi
mov    $0x50,%edx
call   1030 <strncpy@plt>
mov    %rbx,%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
mov    %rbp,%rsi
call   1060 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
mov    %rbx,%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
mov    %r15,%rsi
call   1060 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
mov    %rbx,%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
mov    %r15,%rsi
call   1060 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
mov    %rbx,%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
mov    %r14,%rsi
call   1060 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
lea    0xd15(%rip),%rsi
mov    %rbx,%rdi
mov    $0x50,%edx
call   1030 <strncpy@plt>
mov    %rbx,%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
mov    %r14,%rsi
call   1060 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
lea    0xce4(%rip),%rsi
mov    %rbx,%rdi
mov    $0x50,%edx
call   1030 <strncpy@plt>
mov    %rbx,%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
mov    %r15,%rsi
call   1060 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
lea    0xcb2(%rip),%rsi
mov    %rbx,%rdi
mov    $0x50,%edx
call   1030 <strncpy@plt>
mov    %rbx,%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
mov    %r15,%rsi
call   1060 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
call   1050 <dirname@plt>
mov    %eax,%edi
mov    %r14,%rsi
call   1060 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
movb   $0x0,(%rsp)
mov    %rbx,%rdi
call   1050 <dirname@plt>
mov    %eax,%edi
mov    %r14,%rsi
call   1060 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1070 <assert@plt>
lea    0xc3e(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"/usr/lib\00"
@.str.1 = [5 x i8] c"/usr\00"
@.str.2 = [6 x i8] c"/usr/\00"
@.str.3 = [2 x i8] c"/\00"
@.str.4 = [4 x i8] c"usr\00"
@.str.5 = [2 x i8] c".\00"
@.str.6 = [9 x i8] c"usr/test\00"
@.str.7 = [15 x i8] c"usr/test/test2\00"
@.str.8 = [3 x i8] c"..\00"
@.str.9 = [5 x i8] c"////\00"
@.str.10 = [3 x i8] c"//\00"
@.str.11 = [3 x i8] c"OK\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [80 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%8 = call i32 @strncpy(i8* %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 80)
%9 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%10 = call i32 @dirname(i8* %9)
%11 = call i64 @strcmp(i32 %10, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 %13)
%15 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%16 = call i32 @strncpy(i8* %15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 80)
%17 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%18 = call i32 @dirname(i8* %17)
%19 = call i64 @strcmp(i32 %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 %21)
%23 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%24 = call i32 @strncpy(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 80)
%25 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%26 = call i32 @dirname(i8* %25)
%27 = call i64 @strcmp(i32 %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
%29 = zext i1 %28 to i32
%30 = call i32 @assert(i32 %29)
%31 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%32 = call i32 @strncpy(i8* %31, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 80)
%33 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%34 = call i32 @dirname(i8* %33)
%35 = call i64 @strcmp(i32 %34, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
%37 = zext i1 %36 to i32
%38 = call i32 @assert(i32 %37)
%39 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%40 = call i32 @strncpy(i8* %39, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 80)
%41 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%42 = call i32 @dirname(i8* %41)
%43 = call i64 @strcmp(i32 %42, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
%45 = zext i1 %44 to i32
%46 = call i32 @assert(i32 %45)
%47 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%48 = call i32 @strncpy(i8* %47, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 80)
%49 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%50 = call i32 @dirname(i8* %49)
%51 = call i64 @strcmp(i32 %50, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
%53 = zext i1 %52 to i32
%54 = call i32 @assert(i32 %53)
%55 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%56 = call i32 @strncpy(i8* %55, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 80)
%57 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%58 = call i32 @dirname(i8* %57)
%59 = call i64 @strcmp(i32 %58, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
%61 = zext i1 %60 to i32
%62 = call i32 @assert(i32 %61)
%63 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%64 = call i32 @strncpy(i8* %63, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 80)
%65 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%66 = call i32 @dirname(i8* %65)
%67 = call i64 @strcmp(i32 %66, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
%69 = zext i1 %68 to i32
%70 = call i32 @assert(i32 %69)
%71 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%72 = call i32 @strncpy(i8* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 80)
%73 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%74 = call i32 @dirname(i8* %73)
%75 = call i64 @strcmp(i32 %74, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
%77 = zext i1 %76 to i32
%78 = call i32 @assert(i32 %77)
%79 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%80 = call i32 @strncpy(i8* %79, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 80)
%81 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%82 = call i32 @dirname(i8* %81)
%83 = call i64 @strcmp(i32 %82, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
%85 = zext i1 %84 to i32
%86 = call i32 @assert(i32 %85)
%87 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%88 = call i32 @strncpy(i8* %87, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 80)
%89 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%90 = call i32 @dirname(i8* %89)
%91 = call i64 @strcmp(i32 %90, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%92 = icmp eq i64 %91, 0
%93 = zext i1 %92 to i32
%94 = call i32 @assert(i32 %93)
%95 = call i32 @dirname(i8* null)
%96 = call i64 @strcmp(i32 %95, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
%98 = zext i1 %97 to i32
%99 = call i32 @assert(i32 %98)
%100 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
store i8 0, i8* %100
%101 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%102 = call i32 @dirname(i8* %101)
%103 = call i64 @strcmp(i32 %102, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%104 = icmp eq i64 %103, 0
%105 = zext i1 %104 to i32
%106 = call i32 @assert(i32 %105)
%107 = call i32 @puts(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"/usr/lib\00"
@.str.1 = [5 x i8] c"/usr\00"
@.str.2 = [6 x i8] c"/usr/\00"
@.str.3 = [2 x i8] c"/\00"
@.str.4 = [4 x i8] c"usr\00"
@.str.5 = [2 x i8] c".\00"
@.str.6 = [9 x i8] c"usr/test\00"
@.str.7 = [15 x i8] c"usr/test/test2\00"
@.str.8 = [3 x i8] c"..\00"
@.str.9 = [5 x i8] c"////\00"
@.str.10 = [3 x i8] c"//\00"
@.str.11 = [3 x i8] c"OK\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [80 x i8]
%4 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%5 = call i32 @strncpy(i8* %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 80)
%6 = call i32 @dirname(i8* %4)
%7 = call i64 @strcmp(i32 %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
%9 = zext i1 %8 to i32
%10 = call i32 @assert(i32 %9)
%11 = call i32 @strncpy(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 80)
%12 = call i32 @dirname(i8* %4)
%13 = call i64 @strcmp(i32 %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15)
%17 = call i32 @strncpy(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 80)
%18 = call i32 @dirname(i8* %4)
%19 = call i64 @strcmp(i32 %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 %21)
%23 = call i32 @strncpy(i8* %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 80)
%24 = call i32 @dirname(i8* %4)
%25 = call i64 @strcmp(i32 %24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 %27)
%29 = call i32 @strncpy(i8* %4, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 80)
%30 = call i32 @dirname(i8* %4)
%31 = call i64 @strcmp(i32 %30, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
%35 = call i32 @strncpy(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 80)
%36 = call i32 @dirname(i8* %4)
%37 = call i64 @strcmp(i32 %36, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 %39)
%41 = call i32 @strncpy(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 80)
%42 = call i32 @dirname(i8* %4)
%43 = call i64 @strcmp(i32 %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
%45 = zext i1 %44 to i32
%46 = call i32 @assert(i32 %45)
%47 = call i32 @strncpy(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 80)
%48 = call i32 @dirname(i8* %4)
%49 = call i64 @strcmp(i32 %48, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
%51 = zext i1 %50 to i32
%52 = call i32 @assert(i32 %51)
%53 = call i32 @strncpy(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 80)
%54 = call i32 @dirname(i8* %4)
%55 = call i64 @strcmp(i32 %54, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
%57 = zext i1 %56 to i32
%58 = call i32 @assert(i32 %57)
%59 = call i32 @strncpy(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 80)
%60 = call i32 @dirname(i8* %4)
%61 = call i64 @strcmp(i32 %60, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
%63 = zext i1 %62 to i32
%64 = call i32 @assert(i32 %63)
%65 = call i32 @strncpy(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 80)
%66 = call i32 @dirname(i8* %4)
%67 = call i64 @strcmp(i32 %66, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
%69 = zext i1 %68 to i32
%70 = call i32 @assert(i32 %69)
%71 = call i32 @dirname(i8* null)
%72 = call i64 @strcmp(i32 %71, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
%74 = zext i1 %73 to i32
%75 = call i32 @assert(i32 %74)
store i8 0, i8* %4
%76 = call i32 @dirname(i8* %4)
%77 = call i64 @strcmp(i32 %76, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
%79 = zext i1 %78 to i32
%80 = call i32 @assert(i32 %79)
%81 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}