#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 mntent {
  char *mnt_fsname;
  char *mnt_dir;
  char *mnt_type;
  char *mnt_opts;
  int mnt_freq;
  int mnt_passno;
};
typedef int /*<<< orphan*/ buf;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ addmntent(int /*<<< orphan*/ *, struct mntent *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
struct mntent *getmntent(int /*<<< orphan*/ *);
scalar_t__ hasmntopt(struct mntent *, char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
scalar_t__ strcmp(char *, char *);
void *strdupa(char *);
int /*<<< orphan*/ *tmpfile();
int main(int argc, char *argv[]) {
  int result = 0;
  struct mntent mef;
  struct mntent *mnt = &mef;
  FILE *fp;
  mef.mnt_fsname = strdupa("/dev/hda1");
  mef.mnt_dir = strdupa("/some dir");
  mef.mnt_type = strdupa("ext2");
  mef.mnt_opts = strdupa("defaults");
  mef.mnt_freq = 1;
  mef.mnt_passno = 2;
  if (hasmntopt(mnt, "defaults"))
    printf("Found!\n");
  else {
    printf("Didn't find it\n");
    result = 1;
  }
  fp = tmpfile();
  if (fp == NULL) {
    printf("Cannot open temporary file: %m\n");
    result = 1;
  } else {
    char buf[1024];
    addmntent(fp, &mef);
    rewind(fp);
    if (fgets(buf, sizeof(buf), fp) == NULL) {
      printf("Cannot read temporary file: %m");
      result = 1;
    } else if (strcmp(buf, "/dev/hda1 /some\\040dir ext2 defaults 1 2\n") !=
               0) {
      puts("Raw file data not correct");
      result = 1;
    }
    rewind(fp);
    mnt = getmntent(fp);
    if (strcmp(mnt->mnt_fsname, "/dev/hda1") != 0 ||
        strcmp(mnt->mnt_dir, "/some dir") != 0 ||
        strcmp(mnt->mnt_type, "ext2") != 0 ||
        strcmp(mnt->mnt_opts, "defaults") != 0 || mnt->mnt_freq != 1 ||
        mnt->mnt_passno != 2) {
      puts("Error while reading written entry back in");
      result = 1;
    }
  }
  return result;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x450,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    0xe31(%rip),%rdi
call   10b0 <strdupa@plt>
mov    %rax,-0x40(%rbp)
lea    0xe2b(%rip),%rdi
call   10b0 <strdupa@plt>
mov    %rax,-0x38(%rbp)
lea    0xe25(%rip),%rdi
call   10b0 <strdupa@plt>
mov    %rax,-0x30(%rbp)
lea    0xe1a(%rip),%rdi
call   10b0 <strdupa@plt>
mov    %rax,-0x28(%rbp)
movl   $0x1,-0x20(%rbp)
movl   $0x2,-0x1c(%rbp)
mov    -0x48(%rbp),%rdi
lea    0xdf8(%rip),%rsi
call   10c0 <hasmntopt@plt>
cmp    $0x0,%rax
je     1241 <main+0xa1>
lea    0xdeb(%rip),%rdi
call   1040 <printf@plt>
jmp    1254 <main+0xb4>
lea    0xde2(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x14(%rbp)
mov    $0x0,%al
call   1080 <tmpfile@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    1282 <main+0xe2>
lea    0xdc9(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x14(%rbp)
jmp    13c5 <main+0x225>
mov    -0x50(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1070 <addmntent@plt>
mov    -0x50(%rbp),%rdi
call   1050 <rewind@plt>
lea    -0x450(%rbp),%rdi
mov    -0x50(%rbp),%rdx
mov    $0x400,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
jne    12cf <main+0x12f>
lea    0xd9c(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x14(%rbp)
jmp    1304 <main+0x164>
lea    -0x450(%rbp),%rdi
lea    0xd9c(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
je     12ff <main+0x15f>
lea    0xdb0(%rip),%rdi
call   1030 <puts@plt>
movl   $0x1,-0x14(%rbp)
jmp    1304 <main+0x164>
mov    -0x50(%rbp),%rdi
call   1050 <rewind@plt>
mov    -0x50(%rbp),%rdi
call   10a0 <getmntent@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    (%rax),%rdi
lea    0xcd8(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    13ad <main+0x20d>
mov    -0x48(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcc4(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    13ad <main+0x20d>
mov    -0x48(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xcb0(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    13ad <main+0x20d>
mov    -0x48(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xc97(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    13ad <main+0x20d>
mov    -0x48(%rbp),%rax
cmpl   $0x1,0x20(%rax)
jne    13ad <main+0x20d>
mov    -0x48(%rbp),%rax
cmpl   $0x2,0x24(%rax)
je     13c0 <main+0x220>
lea    0xd09(%rip),%rdi
call   1030 <puts@plt>
movl   $0x1,-0x14(%rbp)
jmp    13c5 <main+0x225>
mov    -0x14(%rbp),%eax
add    $0x450,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x430,%rsp
lea    0xe4e(%rip),%rdi
call   10b0 <strdupa@plt>
mov    %rax,0x8(%rsp)
lea    0xe47(%rip),%rdi
call   10b0 <strdupa@plt>
mov    %rax,0x10(%rsp)
lea    0xe40(%rip),%rdi
call   10b0 <strdupa@plt>
mov    %rax,0x18(%rsp)
lea    0xe34(%rip),%rbx
mov    %rbx,%rdi
call   10b0 <strdupa@plt>
mov    %rax,0x20(%rsp)
movabs $0x200000001,%rax
mov    %rax,0x28(%rsp)
lea    0x8(%rsp),%rdi
mov    %rbx,%rsi
call   10c0 <hasmntopt@plt>
xor    %ebp,%ebp
test   %rax,%rax
sete   %r14b
lea    0xeb1(%rip),%rax
lea    0xeb9(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1080 <tmpfile@plt>
test   %rax,%rax
je     128d <main+0xed>
mov    %rax,%rbx
lea    0x8(%rsp),%rsi
mov    %rax,%rdi
call   1070 <addmntent@plt>
mov    %rbx,%rdi
call   1050 <rewind@plt>
lea    0x30(%rsp),%rdi
mov    $0x400,%esi
mov    %rbx,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     129e <main+0xfe>
lea    0xdf1(%rip),%rsi
lea    0x30(%rsp),%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     12b1 <main+0x111>
lea    0xe05(%rip),%rdi
call   1030 <puts@plt>
jmp    12aa <main+0x10a>
lea    0xd8e(%rip),%rdi
call   1040 <printf@plt>
jmp    1332 <main+0x192>
lea    0xd9d(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%ebp
jmp    12b4 <main+0x114>
mov    %r14b,%bpl
mov    %rbx,%rdi
call   1050 <rewind@plt>
mov    %rbx,%rdi
call   10a0 <getmntent@plt>
mov    %rax,%rbx
mov    (%rax),%rdi
lea    0xd2f(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
jne    1326 <main+0x186>
mov    0x8(%rbx),%rdi
lea    0xd24(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
jne    1326 <main+0x186>
mov    0x10(%rbx),%rdi
lea    0xd19(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
jne    1326 <main+0x186>
mov    0x18(%rbx),%rdi
lea    0xd09(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
jne    1326 <main+0x186>
cmpl   $0x1,0x20(%rbx)
jne    1326 <main+0x186>
cmpl   $0x2,0x24(%rbx)
je     1337 <main+0x197>
lea    0xd78(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0x430,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
%struct.mntent = type { i8*, i8*, i8*, i8*, i32, i32 }
@.str = [10 x i8] c"/dev/hda1\00"
@.str.1 = [10 x i8] c"/some dir\00"
@.str.2 = [5 x i8] c"ext2\00"
@.str.3 = [9 x i8] c"defaults\00"
@.str.4 = [8 x i8] c"Found!\0A\00"
@.str.5 = [16 x i8] c"Didn't find it\0A\00"
@.str.6 = [32 x i8] c"Cannot open temporary file: %m\0A\00"
@.str.7 = [31 x i8] c"Cannot read temporary file: %m\00"
@.str.8 = [42 x i8] c"/dev/hda1 /some\\040dir ext2 defaults 1 2\0A\00"
@.str.9 = [26 x i8] c"Raw file data not correct\00"
@.str.10 = [42 x i8] c"Error while reading written entry back in\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca %struct.mntent
%8 = alloca %struct.mntent*
%9 = alloca i32*
%10 = alloca [1024 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store %struct.mntent* %7, %struct.mntent** %8
%11 = call i8* @strdupa(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%12 = getelementptr inbounds %struct.mntent, %struct.mntent* %7, i32 0, i32 0
store i8* %11, i8** %12
%13 = call i8* @strdupa(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%14 = getelementptr inbounds %struct.mntent, %struct.mntent* %7, i32 0, i32 1
store i8* %13, i8** %14
%15 = call i8* @strdupa(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%16 = getelementptr inbounds %struct.mntent, %struct.mntent* %7, i32 0, i32 2
store i8* %15, i8** %16
%17 = call i8* @strdupa(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%18 = getelementptr inbounds %struct.mntent, %struct.mntent* %7, i32 0, i32 3
store i8* %17, i8** %18
%19 = getelementptr inbounds %struct.mntent, %struct.mntent* %7, i32 0, i32 4
store i32 1, i32* %19
%20 = getelementptr inbounds %struct.mntent, %struct.mntent* %7, i32 0, i32 5
store i32 2, i32* %20
%21 = load %struct.mntent*, %struct.mntent** %8
%22 = call i64 @hasmntopt(%struct.mntent* %21, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %2
%25 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %28
26: ; preds = %2
%27 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
store i32 1, i32* %6
br label %28
28: ; preds = %26, %24
%29 = call i32* (...) @tmpfile()
store i32* %29, i32** %9
%30 = load i32*, i32** %9
%31 = icmp eq i32* %30, null
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
store i32 1, i32* %6
br label %93
34: ; preds = %28
%35 = load i32*, i32** %9
%36 = call i32 @addmntent(i32* %35, %struct.mntent* %7)
%37 = load i32*, i32** %9
%38 = call i32 @rewind(i32* %37)
%39 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%40 = load i32*, i32** %9
%41 = call i32* @fgets(i8* %39, i32 1024, i32* %40)
%42 = icmp eq i32* %41, null
br i1 %42, label %43, label %45
43: ; preds = %34
%44 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
store i32 1, i32* %6
br label %52
45: ; preds = %34
%46 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%47 = call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
store i32 1, i32* %6
br label %51
51: ; preds = %49, %45
br label %52
52: ; preds = %51, %43
%53 = load i32*, i32** %9
%54 = call i32 @rewind(i32* %53)
%55 = load i32*, i32** %9
%56 = call %struct.mntent* @getmntent(i32* %55)
store %struct.mntent* %56, %struct.mntent** %8
%57 = load %struct.mntent*, %struct.mntent** %8
%58 = getelementptr inbounds %struct.mntent, %struct.mntent* %57, i32 0, i32 0
%59 = load i8*, i8** %58
%60 = call i64 @strcmp(i8* %59, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%61 = icmp ne i64 %60, 0
br i1 %61, label %90, label %62
62: ; preds = %52
%63 = load %struct.mntent*, %struct.mntent** %8
%64 = getelementptr inbounds %struct.mntent, %struct.mntent* %63, i32 0, i32 1
%65 = load i8*, i8** %64
%66 = call i64 @strcmp(i8* %65, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%67 = icmp ne i64 %66, 0
br i1 %67, label %90, label %68
68: ; preds = %62
%69 = load %struct.mntent*, %struct.mntent** %8
%70 = getelementptr inbounds %struct.mntent, %struct.mntent* %69, i32 0, i32 2
%71 = load i8*, i8** %70
%72 = call i64 @strcmp(i8* %71, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%73 = icmp ne i64 %72, 0
br i1 %73, label %90, label %74
74: ; preds = %68
%75 = load %struct.mntent*, %struct.mntent** %8
%76 = getelementptr inbounds %struct.mntent, %struct.mntent* %75, i32 0, i32 3
%77 = load i8*, i8** %76
%78 = call i64 @strcmp(i8* %77, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%79 = icmp ne i64 %78, 0
br i1 %79, label %90, label %80
80: ; preds = %74
%81 = load %struct.mntent*, %struct.mntent** %8
%82 = getelementptr inbounds %struct.mntent, %struct.mntent* %81, i32 0, i32 4
%83 = load i32, i32* %82
%84 = icmp ne i32 %83, 1
br i1 %84, label %90, label %85
85: ; preds = %80
%86 = load %struct.mntent*, %struct.mntent** %8
%87 = getelementptr inbounds %struct.mntent, %struct.mntent* %86, i32 0, i32 5
%88 = load i32, i32* %87
%89 = icmp ne i32 %88, 2
br i1 %89, label %90, label %92
90: ; preds = %85, %80, %74, %68, %62, %52
%91 = call i32 @puts(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0))
store i32 1, i32* %6
br label %92
92: ; preds = %90, %85
br label %93
93: ; preds = %92, %32
%94 = load i32, i32* %6
ret i32 %94
}

LLVM IR (-O2):
%struct.mntent = type { i8*, i8*, i8*, i8*, i32, i32 }
@.str = [10 x i8] c"/dev/hda1\00"
@.str.1 = [10 x i8] c"/some dir\00"
@.str.2 = [5 x i8] c"ext2\00"
@.str.3 = [9 x i8] c"defaults\00"
@.str.6 = [32 x i8] c"Cannot open temporary file: %m\0A\00"
@.str.7 = [31 x i8] c"Cannot read temporary file: %m\00"
@.str.8 = [42 x i8] c"/dev/hda1 /some\\040dir ext2 defaults 1 2\0A\00"
@.str.9 = [26 x i8] c"Raw file data not correct\00"
@.str.10 = [42 x i8] c"Error while reading written entry back in\00"
@str = [15 x i8] c"Didn't find it\00"
@str.11 = [7 x i8] c"Found!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca %struct.mntent
%4 = alloca [1024 x i8]
%5 = bitcast %struct.mntent* %3 to i8*
%6 = tail call i8* @strdupa(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%7 = getelementptr inbounds %struct.mntent, %struct.mntent* %3, i64 0, i32 0
store i8* %6, i8** %7
%8 = tail call i8* @strdupa(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%9 = getelementptr inbounds %struct.mntent, %struct.mntent* %3, i64 0, i32 1
store i8* %8, i8** %9
%10 = tail call i8* @strdupa(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%11 = getelementptr inbounds %struct.mntent, %struct.mntent* %3, i64 0, i32 2
store i8* %10, i8** %11
%12 = tail call i8* @strdupa(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%13 = getelementptr inbounds %struct.mntent, %struct.mntent* %3, i64 0, i32 3
store i8* %12, i8** %13
%14 = getelementptr inbounds %struct.mntent, %struct.mntent* %3, i64 0, i32 4
store i32 1, i32* %14
%15 = getelementptr inbounds %struct.mntent, %struct.mntent* %3, i64 0, i32 5
store i32 2, i32* %15
%16 = call i64 @hasmntopt(%struct.mntent* %3, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
%18 = select i1 %17, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str.11, i64 0, i64 0)
%19 = zext i1 %17 to i32
%20 = call i32 @puts(i8* dereferenceable(1) %18)
%21 = call i32* (...) @tmpfile()
%22 = icmp eq i32* %21, null
br i1 %22, label %23, label %25
23: ; preds = %2
%24 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
br label %73
25: ; preds = %2
%26 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%27 = call i32 @addmntent(i32* %21, %struct.mntent* %3)
%28 = call i32 @rewind(i32* %21)
%29 = call i32* @fgets(i8* %26, i32 1024, i32* %21)
%30 = icmp eq i32* %29, null
br i1 %30, label %31, label %33
31: ; preds = %25
%32 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
br label %38
33: ; preds = %25
%34 = call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %38, label %36
36: ; preds = %33
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
br label %38
38: ; preds = %33, %36, %31
%39 = phi i32 [ 1, %31 ], [ 1, %36 ], [ %19, %33 ]
%40 = call i32 @rewind(i32* %21)
%41 = call %struct.mntent* @getmntent(i32* %21)
%42 = getelementptr inbounds %struct.mntent, %struct.mntent* %41, i64 0, i32 0
%43 = load i8*, i8** %42
%44 = call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %69
46: ; preds = %38
%47 = getelementptr inbounds %struct.mntent, %struct.mntent* %41, i64 0, i32 1
%48 = load i8*, i8** %47
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %69
51: ; preds = %46
%52 = getelementptr inbounds %struct.mntent, %struct.mntent* %41, i64 0, i32 2
%53 = load i8*, i8** %52
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %69
56: ; preds = %51
%57 = getelementptr inbounds %struct.mntent, %struct.mntent* %41, i64 0, i32 3
%58 = load i8*, i8** %57
%59 = call i64 @strcmp(i8* %58, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %69
61: ; preds = %56
%62 = getelementptr inbounds %struct.mntent, %struct.mntent* %41, i64 0, i32 4
%63 = load i32, i32* %62
%64 = icmp eq i32 %63, 1
br i1 %64, label %65, label %69
65: ; preds = %61
%66 = getelementptr inbounds %struct.mntent, %struct.mntent* %41, i64 0, i32 5
%67 = load i32, i32* %66
%68 = icmp eq i32 %67, 2
br i1 %68, label %71, label %69
69: ; preds = %65, %61, %56, %51, %46, %38
%70 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0))
br label %71
71: ; preds = %69, %65
%72 = phi i32 [ 1, %69 ], [ %39, %65 ]
br label %73
73: ; preds = %71, %23
%74 = phi i32 [ 1, %23 ], [ %72, %71 ]
ret i32 %74
}