#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*/ printf(char *);
scalar_t__ strcmp(char *, char *);
void iflags_table(char *convs, char *optname) {
  if (strcmp("append", convs) == 0) {
    int iflags_append = 1;
    printf(" append activated \n");
  } else if (strcmp("append", convs) == 0) {
    int iflags_append = 1;
  } else if (strcmp("direct", convs) == 0) {
    int iflags_direct = 1;
  } else if (strcmp("directory", convs) == 0) {
    int iflags_directory = 1;
  } else if (strcmp("dsync", convs) == 0) {
    int iflags_dsync = 1;
  } else if (strcmp("sync", convs) == 0) {
    int iflags_sync = 1;
  } else if (strcmp("fullblock", convs) == 0) {
    int iflags_fullblock = 1;
  } else if (strcmp("nonblock", convs) == 0) {
    int iflags_nonblock = 1;
  } else if (strcmp("noatime", convs) == 0) {
    int iflags_noatime = 1;
  } else if (strcmp("nocache", convs) == 0) {
    int iflags_nocache = 1;
  } else if (strcmp("noctty", convs) == 0) {
    int iflags_noctty = 1;
  } else if (strcmp("nofollow", convs) == 0) {
    int iflags_nofollow = 1;
  }
}


x86 assembly (clang, -O0):
<iflags_table>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec5(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1162 <iflags_table+0x42>
movl   $0x1,-0x14(%rbp)
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
jmp    1336 <iflags_table+0x216>
mov    -0x8(%rbp),%rsi
lea    0xe93(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1188 <iflags_table+0x68>
movl   $0x1,-0x18(%rbp)
jmp    1331 <iflags_table+0x211>
mov    -0x8(%rbp),%rsi
lea    0xe88(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11ae <iflags_table+0x8e>
movl   $0x1,-0x1c(%rbp)
jmp    132c <iflags_table+0x20c>
mov    -0x8(%rbp),%rsi
lea    0xe69(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11d4 <iflags_table+0xb4>
movl   $0x1,-0x20(%rbp)
jmp    1327 <iflags_table+0x207>
mov    -0x8(%rbp),%rsi
lea    0xe4d(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11fa <iflags_table+0xda>
movl   $0x1,-0x24(%rbp)
jmp    1322 <iflags_table+0x202>
mov    -0x8(%rbp),%rsi
lea    0xe28(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1220 <iflags_table+0x100>
movl   $0x1,-0x28(%rbp)
jmp    131d <iflags_table+0x1fd>
mov    -0x8(%rbp),%rsi
lea    0xe07(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1246 <iflags_table+0x126>
movl   $0x1,-0x2c(%rbp)
jmp    1318 <iflags_table+0x1f8>
mov    -0x8(%rbp),%rsi
lea    0xdeb(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    126c <iflags_table+0x14c>
movl   $0x1,-0x30(%rbp)
jmp    1313 <iflags_table+0x1f3>
mov    -0x8(%rbp),%rsi
lea    0xdce(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1292 <iflags_table+0x172>
movl   $0x1,-0x34(%rbp)
jmp    130e <iflags_table+0x1ee>
mov    -0x8(%rbp),%rsi
lea    0xdb0(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12b8 <iflags_table+0x198>
movl   $0x1,-0x38(%rbp)
jmp    1309 <iflags_table+0x1e9>
mov    -0x8(%rbp),%rsi
lea    0xd92(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12de <iflags_table+0x1be>
movl   $0x1,-0x3c(%rbp)
jmp    1304 <iflags_table+0x1e4>
mov    -0x8(%rbp),%rsi
lea    0xd73(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12ff <iflags_table+0x1df>
movl   $0x1,-0x40(%rbp)
jmp    1304 <iflags_table+0x1e4>
jmp    1309 <iflags_table+0x1e9>
jmp    130e <iflags_table+0x1ee>
jmp    1313 <iflags_table+0x1f3>
jmp    1318 <iflags_table+0x1f8>
jmp    131d <iflags_table+0x1fd>
jmp    1322 <iflags_table+0x202>
jmp    1327 <iflags_table+0x207>
jmp    132c <iflags_table+0x20c>
jmp    1331 <iflags_table+0x211>
jmp    1336 <iflags_table+0x216>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iflags_table>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1226 <iflags_table+0x106>
lea    0xebd(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1224 <iflags_table+0x104>
lea    0xeac(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1224 <iflags_table+0x104>
lea    0xe9b(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1224 <iflags_table+0x104>
lea    0xe8d(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1224 <iflags_table+0x104>
lea    0xe76(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1224 <iflags_table+0x104>
lea    0xe67(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1224 <iflags_table+0x104>
lea    0xe5d(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1224 <iflags_table+0x104>
lea    0xe52(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1224 <iflags_table+0x104>
lea    0xe46(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1224 <iflags_table+0x104>
lea    0xe3a(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1224 <iflags_table+0x104>
lea    0xe2d(%rip),%rdi
mov    %rbx,%rsi
pop    %rbx
jmp    1040 <strcmp@plt>
pop    %rbx
ret
lea    0xe24(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"append\00"
@.str.1 = [20 x i8] c" append activated \0A\00"
@.str.2 = [7 x i8] c"direct\00"
@.str.3 = [10 x i8] c"directory\00"
@.str.4 = [6 x i8] c"dsync\00"
@.str.5 = [5 x i8] c"sync\00"
@.str.6 = [10 x i8] c"fullblock\00"
@.str.7 = [9 x i8] c"nonblock\00"
@.str.8 = [8 x i8] c"noatime\00"
@.str.9 = [8 x i8] c"nocache\00"
@.str.10 = [7 x i8] c"noctty\00"
@.str.11 = [9 x i8] c"nofollow\00"
define void @iflags_table(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
%17 = load i8*, i8** %3
%18 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %2
store i32 1, i32* %5
%21 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
br label %88
22: ; preds = %2
%23 = load i8*, i8** %3
%24 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %23)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %22
store i32 1, i32* %6
br label %87
27: ; preds = %22
%28 = load i8*, i8** %3
%29 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %28)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %27
store i32 1, i32* %7
br label %86
32: ; preds = %27
%33 = load i8*, i8** %3
%34 = call i64 @strcmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %33)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %32
store i32 1, i32* %8
br label %85
37: ; preds = %32
%38 = load i8*, i8** %3
%39 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %38)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 1, i32* %9
br label %84
42: ; preds = %37
%43 = load i8*, i8** %3
%44 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %43)
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %42
store i32 1, i32* %10
br label %83
47: ; preds = %42
%48 = load i8*, i8** %3
%49 = call i64 @strcmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %48)
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %47
store i32 1, i32* %11
br label %82
52: ; preds = %47
%53 = load i8*, i8** %3
%54 = call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %53)
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %52
store i32 1, i32* %12
br label %81
57: ; preds = %52
%58 = load i8*, i8** %3
%59 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* %58)
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %57
store i32 1, i32* %13
br label %80
62: ; preds = %57
%63 = load i8*, i8** %3
%64 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %63)
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %62
store i32 1, i32* %14
br label %79
67: ; preds = %62
%68 = load i8*, i8** %3
%69 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8* %68)
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %67
store i32 1, i32* %15
br label %78
72: ; preds = %67
%73 = load i8*, i8** %3
%74 = call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8* %73)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %77
76: ; preds = %72
store i32 1, i32* %16
br label %77
77: ; preds = %76, %72
br label %78
78: ; preds = %77, %71
br label %79
79: ; preds = %78, %66
br label %80
80: ; preds = %79, %61
br label %81
81: ; preds = %80, %56
br label %82
82: ; preds = %81, %51
br label %83
83: ; preds = %82, %46
br label %84
84: ; preds = %83, %41
br label %85
85: ; preds = %84, %36
br label %86
86: ; preds = %85, %31
br label %87
87: ; preds = %86, %26
br label %88
88: ; preds = %87, %20
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"append\00"
@.str.2 = [7 x i8] c"direct\00"
@.str.3 = [10 x i8] c"directory\00"
@.str.4 = [6 x i8] c"dsync\00"
@.str.5 = [5 x i8] c"sync\00"
@.str.6 = [10 x i8] c"fullblock\00"
@.str.7 = [9 x i8] c"nonblock\00"
@.str.8 = [8 x i8] c"noatime\00"
@.str.9 = [8 x i8] c"nocache\00"
@.str.10 = [7 x i8] c"noctty\00"
@.str.11 = [9 x i8] c"nofollow\00"
@str = [19 x i8] c" append activated \00"
define void @iflags_table(i8* %0, i8* nocapture readnone %1) {
%3 = tail call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
br label %39
7: ; preds = %2
%8 = tail call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %0)
%9 = icmp eq i64 %8, 0
br i1 %9, label %39, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%12 = icmp eq i64 %11, 0
br i1 %12, label %39, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%15 = icmp eq i64 %14, 0
br i1 %15, label %39, label %16
16: ; preds = %13
%17 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %0)
%18 = icmp eq i64 %17, 0
br i1 %18, label %39, label %19
19: ; preds = %16
%20 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%21 = icmp eq i64 %20, 0
br i1 %21, label %39, label %22
22: ; preds = %19
%23 = tail call i64 @strcmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %0)
%24 = icmp eq i64 %23, 0
br i1 %24, label %39, label %25
25: ; preds = %22
%26 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %0)
%27 = icmp eq i64 %26, 0
br i1 %27, label %39, label %28
28: ; preds = %25
%29 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* %0)
%30 = icmp eq i64 %29, 0
br i1 %30, label %39, label %31
31: ; preds = %28
%32 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %0)
%33 = icmp eq i64 %32, 0
br i1 %33, label %39, label %34
34: ; preds = %31
%35 = tail call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8* %0)
%36 = icmp eq i64 %35, 0
br i1 %36, label %39, label %37
37: ; preds = %34
%38 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8* %0)
br label %39
39: ; preds = %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %5
ret void
}