char dos_dir_is_subset_of_dir(const char *a, const char *b) {
  char *copya = dupstr_(
      (a), (__FUNCTION__),
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/fat.c",
      __FUNCTION__, 2810);
  char *pa;
  char *sa;
  char *copyb = dupstr_(
      (b), (__FUNCTION__),
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/fat.c",
      __FUNCTION__, 2813);
  char *pb;
  char *sb;
  pa = copya;
  pb = copyb;
  if (*b == '/') {
    pb++;
  }
  for (;;) {
    char *tmpa = dupstr_(
        (pa), (__FUNCTION__),
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/fat.c",
        __FUNCTION__, 2828);
    char *tmpb = dupstr_(
        (pb), (__FUNCTION__),
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/fat.c",
        __FUNCTION__, 2829);
    sa = strchr(tmpa, '/');
    if (sa) {
      *sa = 0;
    }
    sb = strchr(tmpb, '/');
    if (sb) {
      *sb = 0;
    }
    if (!dos_file_match(tmpa, tmpb, 0)) {
      myfree_((tmpa),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/"
              "fat.c",
              __FUNCTION__, 2842);
      myfree_((tmpb),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/"
              "fat.c",
              __FUNCTION__, 2843);
      myfree_((copya),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/"
              "fat.c",
              __FUNCTION__, 2844);
      myfree_((copyb),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/"
              "fat.c",
              __FUNCTION__, 2845);
      return (0);
    }
    myfree_(
        (tmpa),
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/fat.c",
        __FUNCTION__, 2849);
    myfree_(
        (tmpb),
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/fat.c",
        __FUNCTION__, 2850);
    sa = strchr(pa, '/');
    sb = strchr(pb, '/');
    if (!sa || !sb) {
      break;
    }
    pa = sa + 1;
    pb = sb + 1;
  }
  myfree_(
      (copya),
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/fat.c",
      __FUNCTION__, 2863);
  myfree_(
      (copyb),
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/fat.c",
      __FUNCTION__, 2864);
  return (1);
}


x86 assembly (clang, -O0):
<dos_dir_is_subset_of_dir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xea5(%rip),%rcx
lea    0xeb7(%rip),%rdx
mov    $0xafa,%r8d
mov    %rcx,%rsi
mov    $0x0,%al
call   1060 <dupstr_@plt>
cltq
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe7d(%rip),%rcx
lea    0xe8f(%rip),%rdx
mov    $0xafd,%r8d
mov    %rcx,%rsi
mov    $0x0,%al
call   1060 <dupstr_@plt>
cltq
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
jne    11cc <dos_dir_is_subset_of_dir+0x8c>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    11d1 <dos_dir_is_subset_of_dir+0x91>
mov    -0x28(%rbp),%rdi
lea    0xe24(%rip),%rcx
lea    0xe36(%rip),%rdx
mov    $0xb0c,%r8d
mov    %rcx,%rsi
mov    $0x0,%al
call   1060 <dupstr_@plt>
cltq
mov    %rax,-0x50(%rbp)
mov    -0x40(%rbp),%rdi
lea    0xdfc(%rip),%rcx
lea    0xe0e(%rip),%rdx
mov    $0xb0d,%r8d
mov    %rcx,%rsi
mov    $0x0,%al
call   1060 <dupstr_@plt>
cltq
mov    %rax,-0x58(%rbp)
mov    -0x50(%rbp),%rdi
mov    $0x2f,%esi
call   1050 <strchr@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1245 <dos_dir_is_subset_of_dir+0x105>
mov    -0x30(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x58(%rbp),%rdi
mov    $0x2f,%esi
call   1050 <strchr@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
je     1269 <dos_dir_is_subset_of_dir+0x129>
mov    -0x48(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x50(%rbp),%rdi
mov    -0x58(%rbp),%rsi
xor    %edx,%edx
mov    $0x0,%al
call   1040 <dos_file_match@plt>
cmp    $0x0,%eax
jne    1304 <dos_dir_is_subset_of_dir+0x1c4>
mov    -0x50(%rbp),%rdi
lea    0xd8b(%rip),%rsi
lea    0xd6b(%rip),%rdx
mov    $0xb1a,%ecx
mov    $0x0,%al
call   1030 <myfree_@plt>
mov    -0x58(%rbp),%rdi
lea    0xd6d(%rip),%rsi
lea    0xd4d(%rip),%rdx
mov    $0xb1b,%ecx
mov    $0x0,%al
call   1030 <myfree_@plt>
mov    -0x20(%rbp),%rdi
lea    0xd4f(%rip),%rsi
lea    0xd2f(%rip),%rdx
mov    $0xb1c,%ecx
mov    $0x0,%al
call   1030 <myfree_@plt>
mov    -0x38(%rbp),%rdi
lea    0xd31(%rip),%rsi
lea    0xd11(%rip),%rdx
mov    $0xb1d,%ecx
mov    $0x0,%al
call   1030 <myfree_@plt>
movb   $0x0,-0x1(%rbp)
jmp    13dc <dos_dir_is_subset_of_dir+0x29c>
mov    -0x50(%rbp),%rdi
lea    0xd0a(%rip),%rsi
lea    0xcea(%rip),%rdx
mov    $0xb21,%ecx
mov    $0x0,%al
call   1030 <myfree_@plt>
mov    -0x58(%rbp),%rdi
lea    0xcec(%rip),%rsi
lea    0xccc(%rip),%rdx
mov    $0xb22,%ecx
mov    $0x0,%al
call   1030 <myfree_@plt>
mov    -0x28(%rbp),%rdi
mov    $0x2f,%esi
call   1050 <strchr@plt>
mov    %rax,-0x30(%rbp)
mov    -0x40(%rbp),%rdi
mov    $0x2f,%esi
call   1050 <strchr@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     137a <dos_dir_is_subset_of_dir+0x23a>
cmpq   $0x0,-0x48(%rbp)
jne    137f <dos_dir_is_subset_of_dir+0x23f>
jmp    139c <dos_dir_is_subset_of_dir+0x25c>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    11d1 <dos_dir_is_subset_of_dir+0x91>
mov    -0x20(%rbp),%rdi
lea    0xc72(%rip),%rsi
lea    0xc52(%rip),%rdx
mov    $0xb2f,%ecx
mov    $0x0,%al
call   1030 <myfree_@plt>
mov    -0x38(%rbp),%rdi
lea    0xc54(%rip),%rsi
lea    0xc34(%rip),%rdx
mov    $0xb30,%ecx
mov    $0x0,%al
call   1030 <myfree_@plt>
movb   $0x1,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dos_dir_is_subset_of_dir>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r14
lea    0xec1(%rip),%rbx
lea    0xea1(%rip),%r13
mov    %r13,%rsi
mov    %rbx,%rdx
mov    %r13,%rcx
mov    $0xafa,%r8d
xor    %eax,%eax
call   1060 <dupstr_@plt>
movslq %eax,%rbp
mov    %r14,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
mov    %r13,%rcx
mov    $0xafd,%r8d
xor    %eax,%eax
call   1060 <dupstr_@plt>
cltq
xor    %ebx,%ebx
cmpb   $0x2f,(%r14)
sete   %bl
mov    %rax,0x8(%rsp)
add    %rax,%rbx
mov    %rbp,0x10(%rsp)
nopl   0x0(%rax)
mov    %rbp,%rdi
mov    %r13,%rsi
lea    0xe5c(%rip),%r14
mov    %r14,%rdx
mov    %r13,%rcx
mov    $0xb0c,%r8d
xor    %eax,%eax
call   1060 <dupstr_@plt>
movslq %eax,%r15
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
mov    %r13,%rcx
mov    $0xb0d,%r8d
xor    %eax,%eax
call   1060 <dupstr_@plt>
mov    %eax,%r14d
mov    %r15,%rdi
mov    $0x2f,%esi
call   1050 <strchr@plt>
test   %rax,%rax
je     1204 <dos_dir_is_subset_of_dir+0xc4>
movb   $0x0,(%rax)
movslq %r14d,%r12
mov    %r12,%rdi
mov    $0x2f,%esi
call   1050 <strchr@plt>
test   %rax,%rax
je     121c <dos_dir_is_subset_of_dir+0xdc>
movb   $0x0,(%rax)
mov    %r15,%rdi
mov    %r12,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <dos_file_match@plt>
test   %eax,%eax
je     12a5 <dos_dir_is_subset_of_dir+0x165>
mov    %r15,%rdi
lea    0xde0(%rip),%r14
mov    %r14,%rsi
mov    %r13,%rdx
mov    $0xb21,%ecx
xor    %eax,%eax
call   1030 <myfree_@plt>
mov    %r12,%rdi
mov    %r14,%rsi
mov    %r13,%rdx
mov    $0xb22,%ecx
xor    %eax,%eax
call   1030 <myfree_@plt>
mov    %rbp,%rdi
mov    $0x2f,%esi
call   1050 <strchr@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    $0x2f,%esi
call   1050 <strchr@plt>
mov    $0x1,%r14b
mov    $0xb30,%r15d
mov    $0xb2f,%ecx
test   %rbp,%rbp
je     12eb <dos_dir_is_subset_of_dir+0x1ab>
mov    %rax,%rbx
test   %rax,%rax
je     12eb <dos_dir_is_subset_of_dir+0x1ab>
add    $0x1,%rbp
add    $0x1,%rbx
jmp    11b0 <dos_dir_is_subset_of_dir+0x70>
lea    0xd6d(%rip),%rbx
lea    0xd4d(%rip),%rbp
xor    %r14d,%r14d
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
mov    $0xb1a,%ecx
xor    %eax,%eax
call   1030 <myfree_@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
mov    $0xb1b,%ecx
xor    %eax,%eax
call   1030 <myfree_@plt>
mov    $0xb1d,%r15d
mov    $0xb1c,%ecx
lea    0xd27(%rip),%rbx
lea    0xd07(%rip),%rbp
mov    0x10(%rsp),%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1030 <myfree_@plt>
mov    0x8(%rsp),%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
mov    %r15d,%ecx
xor    %eax,%eax
call   1030 <myfree_@plt>
mov    %r14d,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__FUNCTION__.dos_dir_is_subset_of_dir = [25 x i8] c"dos_dir_is_subset_of_dir\00"
@.str = [133 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/fat.c\00"
define signext i8 @dos_dir_is_subset_of_dir(i8* %0, i8* %1) {
%3 = alloca i8
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
%14 = load i8*, i8** %4
%15 = call i32 (i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @dupstr_ to i32 (i8*, i8*, i8*, i8*, i32, ...)*)(i8* %14, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2810)
%16 = sext i32 %15 to i64
%17 = inttoptr i64 %16 to i8*
store i8* %17, i8** %6
%18 = load i8*, i8** %5
%19 = call i32 (i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @dupstr_ to i32 (i8*, i8*, i8*, i8*, i32, ...)*)(i8* %18, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2813)
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i8*
store i8* %21, i8** %9
%22 = load i8*, i8** %6
store i8* %22, i8** %7
%23 = load i8*, i8** %9
store i8* %23, i8** %10
%24 = load i8*, i8** %5
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 47
br i1 %27, label %28, label %31
28: ; preds = %2
%29 = load i8*, i8** %10
%30 = getelementptr inbounds i8, i8* %29, i32 1
store i8* %30, i8** %10
br label %31
31: ; preds = %28, %2
br label %32
32: ; preds = %83, %31
%33 = load i8*, i8** %7
%34 = call i32 (i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @dupstr_ to i32 (i8*, i8*, i8*, i8*, i32, ...)*)(i8* %33, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2828)
%35 = sext i32 %34 to i64
%36 = inttoptr i64 %35 to i8*
store i8* %36, i8** %12
%37 = load i8*, i8** %10
%38 = call i32 (i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @dupstr_ to i32 (i8*, i8*, i8*, i8*, i32, ...)*)(i8* %37, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2829)
%39 = sext i32 %38 to i64
%40 = inttoptr i64 %39 to i8*
store i8* %40, i8** %13
%41 = load i8*, i8** %12
%42 = call i8* @strchr(i8* %41, i32 47)
store i8* %42, i8** %8
%43 = load i8*, i8** %8
%44 = icmp ne i8* %43, null
br i1 %44, label %45, label %47
45: ; preds = %32
%46 = load i8*, i8** %8
store i8 0, i8* %46
br label %47
47: ; preds = %45, %32
%48 = load i8*, i8** %13
%49 = call i8* @strchr(i8* %48, i32 47)
store i8* %49, i8** %11
%50 = load i8*, i8** %11
%51 = icmp ne i8* %50, null
br i1 %51, label %52, label %54
52: ; preds = %47
%53 = load i8*, i8** %11
store i8 0, i8* %53
br label %54
54: ; preds = %52, %47
%55 = load i8*, i8** %12
%56 = load i8*, i8** %13
%57 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @dos_file_match to i32 (i8*, i8*, i32, ...)*)(i8* %55, i8* %56, i32 0)
%58 = icmp ne i32 %57, 0
br i1 %58, label %68, label %59
59: ; preds = %54
%60 = load i8*, i8** %12
%61 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %60, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2842)
%62 = load i8*, i8** %13
%63 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %62, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2843)
%64 = load i8*, i8** %6
%65 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %64, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2844)
%66 = load i8*, i8** %9
%67 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %66, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2845)
store i8 0, i8* %3
br label %93
68: ; preds = %54
%69 = load i8*, i8** %12
%70 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %69, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2849)
%71 = load i8*, i8** %13
%72 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %71, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2850)
%73 = load i8*, i8** %7
%74 = call i8* @strchr(i8* %73, i32 47)
store i8* %74, i8** %8
%75 = load i8*, i8** %10
%76 = call i8* @strchr(i8* %75, i32 47)
store i8* %76, i8** %11
%77 = load i8*, i8** %8
%78 = icmp ne i8* %77, null
br i1 %78, label %79, label %82
79: ; preds = %68
%80 = load i8*, i8** %11
%81 = icmp ne i8* %80, null
br i1 %81, label %83, label %82
82: ; preds = %79, %68
br label %88
83: ; preds = %79
%84 = load i8*, i8** %8
%85 = getelementptr inbounds i8, i8* %84, i64 1
store i8* %85, i8** %7
%86 = load i8*, i8** %11
%87 = getelementptr inbounds i8, i8* %86, i64 1
store i8* %87, i8** %10
br label %32
88: ; preds = %82
%89 = load i8*, i8** %6
%90 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %89, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2863)
%91 = load i8*, i8** %9
%92 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %91, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2864)
store i8 1, i8* %3
br label %93
93: ; preds = %88, %59
%94 = load i8, i8* %3
ret i8 %94
}

LLVM IR (-O2):
@__FUNCTION__.dos_dir_is_subset_of_dir = [25 x i8] c"dos_dir_is_subset_of_dir\00"
@.str = [133 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/fat.c\00"
define signext i8 @dos_dir_is_subset_of_dir(i8* %0, i8* %1) {
%3 = tail call i32 (i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @dupstr_ to i32 (i8*, i8*, i8*, i8*, i32, ...)*)(i8* %0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2810)
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to i8*
%6 = tail call i32 (i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @dupstr_ to i32 (i8*, i8*, i8*, i8*, i32, ...)*)(i8* %1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2813)
%7 = sext i32 %6 to i64
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %1
%10 = icmp eq i8 %9, 47
%11 = zext i1 %10 to i64
%12 = getelementptr i8, i8* %8, i64 %11
br label %13
13: ; preds = %45, %2
%14 = phi i8* [ %12, %2 ], [ %47, %45 ]
%15 = phi i8* [ %5, %2 ], [ %46, %45 ]
%16 = tail call i32 (i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @dupstr_ to i32 (i8*, i8*, i8*, i8*, i32, ...)*)(i8* %15, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2828)
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to i8*
%19 = tail call i32 (i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @dupstr_ to i32 (i8*, i8*, i8*, i8*, i32, ...)*)(i8* %14, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2829)
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i8*
%22 = tail call i8* @strchr(i8* dereferenceable(1) %18, i32 47)
%23 = icmp eq i8* %22, null
br i1 %23, label %25, label %24
24: ; preds = %13
store i8 0, i8* %22
br label %25
25: ; preds = %24, %13
%26 = tail call i8* @strchr(i8* dereferenceable(1) %21, i32 47)
%27 = icmp eq i8* %26, null
br i1 %27, label %29, label %28
28: ; preds = %25
store i8 0, i8* %26
br label %29
29: ; preds = %28, %25
%30 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @dos_file_match to i32 (i8*, i8*, i32, ...)*)(i8* %18, i8* %21, i32 0)
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %29
%33 = inttoptr i64 %17 to i8*
%34 = inttoptr i64 %20 to i8*
%35 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %33, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2842)
%36 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %34, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2843)
br label %48
37: ; preds = %29
%38 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %18, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2849)
%39 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %21, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 2850)
%40 = tail call i8* @strchr(i8* dereferenceable(1) %15, i32 47)
%41 = tail call i8* @strchr(i8* dereferenceable(1) %14, i32 47)
%42 = icmp ne i8* %40, null
%43 = icmp ne i8* %41, null
%44 = select i1 %42, i1 %43, i1 false
br i1 %44, label %45, label %48
45: ; preds = %37
%46 = getelementptr inbounds i8, i8* %40, i64 1
%47 = getelementptr inbounds i8, i8* %41, i64 1
br label %13
48: ; preds = %37, %32
%49 = phi i32 [ 2844, %32 ], [ 2863, %37 ]
%50 = phi i32 [ 2845, %32 ], [ 2864, %37 ]
%51 = phi i8 [ 0, %32 ], [ 1, %37 ]
%52 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %5, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 %49)
%53 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %8, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @__FUNCTION__.dos_dir_is_subset_of_dir, i64 0, i64 0), i32 %50)
ret i8 %51
}