#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 conv_table(char *convs, char *optname) {
  if (strcmp("ascii", convs) == 0) {
    int convs_ascii = 1;
    printf("ascii activated \n");
  } else if (strcmp("ebcdic", convs) == 0) {
    int convs_ebcdic = 1;
  } else if (strcmp("ibm", convs) == 0) {
    int convs_ibm = 1;
  } else if (strcmp("block", convs) == 0) {
    int convs_block = 1;
  } else if (strcmp("unblock", convs) == 0) {
    int convs_unblock = 1;
  } else if (strcmp("lcase", convs) == 0) {
    int convs_lcase = 1;
  } else if (strcmp("ucase", convs) == 0) {
    int convs_ucase = 1;
  } else if (strcmp("swab", convs) == 0) {
    int convs_swab = 1;
  } else if (strcmp("sync", convs) == 0) {
    int convs_sync = 1;
  } else if (strcmp("excl", convs) == 0) {
    int convs_excl = 1;
  } else if (strcmp("nocreat", convs) == 0) {
    int convs_nocreat = 1;
  } else if (strcmp("notrunc", convs) == 0) {
    int convs_notrunc = 1;
  } else if (strcmp("noerror", convs) == 0) {
    int convs_noerror = 1;
  } else if (strcmp("fdatasync", convs) == 0) {
    int convs_fdatasync = 1;
  } else if (strcmp("fsync", convs) == 0) {
    int convs_fsync = 1;
  }
}


x86 assembly (clang, -O0):
<conv_table>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%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 <conv_table+0x42>
movl   $0x1,-0x14(%rbp)
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
jmp    13b7 <conv_table+0x297>
mov    -0x8(%rbp),%rsi
lea    0xeab(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1188 <conv_table+0x68>
movl   $0x1,-0x18(%rbp)
jmp    13b2 <conv_table+0x292>
mov    -0x8(%rbp),%rsi
lea    0xe8c(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11ae <conv_table+0x8e>
movl   $0x1,-0x1c(%rbp)
jmp    13ad <conv_table+0x28d>
mov    -0x8(%rbp),%rsi
lea    0xe6c(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11d4 <conv_table+0xb4>
movl   $0x1,-0x20(%rbp)
jmp    13a8 <conv_table+0x288>
mov    -0x8(%rbp),%rsi
lea    0xe44(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11fa <conv_table+0xda>
movl   $0x1,-0x24(%rbp)
jmp    13a3 <conv_table+0x283>
mov    -0x8(%rbp),%rsi
lea    0xe26(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1220 <conv_table+0x100>
movl   $0x1,-0x28(%rbp)
jmp    139e <conv_table+0x27e>
mov    -0x8(%rbp),%rsi
lea    0xe06(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1246 <conv_table+0x126>
movl   $0x1,-0x2c(%rbp)
jmp    1399 <conv_table+0x279>
mov    -0x8(%rbp),%rsi
lea    0xde6(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    126c <conv_table+0x14c>
movl   $0x1,-0x30(%rbp)
jmp    1394 <conv_table+0x274>
mov    -0x8(%rbp),%rsi
lea    0xde7(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1292 <conv_table+0x172>
movl   $0x1,-0x34(%rbp)
jmp    138f <conv_table+0x26f>
mov    -0x8(%rbp),%rsi
lea    0xd9f(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12b8 <conv_table+0x198>
movl   $0x1,-0x38(%rbp)
jmp    138a <conv_table+0x26a>
mov    -0x8(%rbp),%rsi
lea    0xd7e(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12de <conv_table+0x1be>
movl   $0x1,-0x3c(%rbp)
jmp    1385 <conv_table+0x265>
mov    -0x8(%rbp),%rsi
lea    0xd60(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1304 <conv_table+0x1e4>
movl   $0x1,-0x40(%rbp)
jmp    1380 <conv_table+0x260>
mov    -0x8(%rbp),%rsi
lea    0xd42(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    132a <conv_table+0x20a>
movl   $0x1,-0x44(%rbp)
jmp    137b <conv_table+0x25b>
mov    -0x8(%rbp),%rsi
lea    0xd24(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1350 <conv_table+0x230>
movl   $0x1,-0x48(%rbp)
jmp    1376 <conv_table+0x256>
mov    -0x8(%rbp),%rsi
lea    0xd08(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1371 <conv_table+0x251>
movl   $0x1,-0x4c(%rbp)
jmp    1376 <conv_table+0x256>
jmp    137b <conv_table+0x25b>
jmp    1380 <conv_table+0x260>
jmp    1385 <conv_table+0x265>
jmp    138a <conv_table+0x26a>
jmp    138f <conv_table+0x26f>
jmp    1394 <conv_table+0x274>
jmp    1399 <conv_table+0x279>
jmp    139e <conv_table+0x27e>
jmp    13a3 <conv_table+0x283>
jmp    13a8 <conv_table+0x288>
jmp    13ad <conv_table+0x28d>
jmp    13b2 <conv_table+0x292>
jmp    13b7 <conv_table+0x297>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<conv_table>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     126e <conv_table+0x14e>
lea    0xec3(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     126c <conv_table+0x14c>
lea    0xeb2(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     126c <conv_table+0x14c>
lea    0xea0(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     126c <conv_table+0x14c>
lea    0xe86(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     126c <conv_table+0x14c>
lea    0xe76(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     126c <conv_table+0x14c>
lea    0xe64(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     126c <conv_table+0x14c>
lea    0xe52(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     126c <conv_table+0x14c>
lea    0xe61(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     126c <conv_table+0x14c>
lea    0xe2b(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     126c <conv_table+0x14c>
lea    0xe1c(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     126c <conv_table+0x14c>
lea    0xe10(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     126c <conv_table+0x14c>
lea    0xe04(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     126c <conv_table+0x14c>
lea    0xdf8(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     126c <conv_table+0x14c>
lea    0xdee(%rip),%rdi
mov    %rbx,%rsi
pop    %rbx
jmp    1040 <strcmp@plt>
pop    %rbx
ret
lea    0xde2(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"ascii\00"
@.str.1 = [18 x i8] c"ascii activated \0A\00"
@.str.2 = [7 x i8] c"ebcdic\00"
@.str.3 = [4 x i8] c"ibm\00"
@.str.4 = [6 x i8] c"block\00"
@.str.5 = [8 x i8] c"unblock\00"
@.str.6 = [6 x i8] c"lcase\00"
@.str.7 = [6 x i8] c"ucase\00"
@.str.8 = [5 x i8] c"swab\00"
@.str.9 = [5 x i8] c"sync\00"
@.str.10 = [5 x i8] c"excl\00"
@.str.11 = [8 x i8] c"nocreat\00"
@.str.12 = [8 x i8] c"notrunc\00"
@.str.13 = [8 x i8] c"noerror\00"
@.str.14 = [10 x i8] c"fdatasync\00"
@.str.15 = [6 x i8] c"fsync\00"
define void @conv_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
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
%20 = load i8*, i8** %3
%21 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %20)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %2
store i32 1, i32* %5
%24 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
br label %109
25: ; preds = %2
%26 = load i8*, i8** %3
%27 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 1, i32* %6
br label %108
30: ; preds = %25
%31 = load i8*, i8** %3
%32 = call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %31)
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %30
store i32 1, i32* %7
br label %107
35: ; preds = %30
%36 = load i8*, i8** %3
%37 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %36)
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %35
store i32 1, i32* %8
br label %106
40: ; preds = %35
%41 = load i8*, i8** %3
%42 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* %41)
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %40
store i32 1, i32* %9
br label %105
45: ; preds = %40
%46 = load i8*, i8** %3
%47 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %46)
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %45
store i32 1, i32* %10
br label %104
50: ; preds = %45
%51 = load i8*, i8** %3
%52 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %51)
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %55
54: ; preds = %50
store i32 1, i32* %11
br label %103
55: ; preds = %50
%56 = load i8*, i8** %3
%57 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* %56)
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %55
store i32 1, i32* %12
br label %102
60: ; preds = %55
%61 = load i8*, i8** %3
%62 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %61)
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %60
store i32 1, i32* %13
br label %101
65: ; preds = %60
%66 = load i8*, i8** %3
%67 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i8* %66)
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %65
store i32 1, i32* %14
br label %100
70: ; preds = %65
%71 = load i8*, i8** %3
%72 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i8* %71)
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %75
74: ; preds = %70
store i32 1, i32* %15
br label %99
75: ; preds = %70
%76 = load i8*, i8** %3
%77 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* %76)
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %80
79: ; preds = %75
store i32 1, i32* %16
br label %98
80: ; preds = %75
%81 = load i8*, i8** %3
%82 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %81)
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %85
84: ; preds = %80
store i32 1, i32* %17
br label %97
85: ; preds = %80
%86 = load i8*, i8** %3
%87 = call i64 @strcmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), i8* %86)
%88 = icmp eq i64 %87, 0
br i1 %88, label %89, label %90
89: ; preds = %85
store i32 1, i32* %18
br label %96
90: ; preds = %85
%91 = load i8*, i8** %3
%92 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* %91)
%93 = icmp eq i64 %92, 0
br i1 %93, label %94, label %95
94: ; preds = %90
store i32 1, i32* %19
br label %95
95: ; preds = %94, %90
br label %96
96: ; preds = %95, %89
br label %97
97: ; preds = %96, %84
br label %98
98: ; preds = %97, %79
br label %99
99: ; preds = %98, %74
br label %100
100: ; preds = %99, %69
br label %101
101: ; preds = %100, %64
br label %102
102: ; preds = %101, %59
br label %103
103: ; preds = %102, %54
br label %104
104: ; preds = %103, %49
br label %105
105: ; preds = %104, %44
br label %106
106: ; preds = %105, %39
br label %107
107: ; preds = %106, %34
br label %108
108: ; preds = %107, %29
br label %109
109: ; preds = %108, %23
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"ascii\00"
@.str.2 = [7 x i8] c"ebcdic\00"
@.str.3 = [4 x i8] c"ibm\00"
@.str.4 = [6 x i8] c"block\00"
@.str.5 = [8 x i8] c"unblock\00"
@.str.6 = [6 x i8] c"lcase\00"
@.str.7 = [6 x i8] c"ucase\00"
@.str.8 = [5 x i8] c"swab\00"
@.str.9 = [5 x i8] c"sync\00"
@.str.10 = [5 x i8] c"excl\00"
@.str.11 = [8 x i8] c"nocreat\00"
@.str.12 = [8 x i8] c"notrunc\00"
@.str.13 = [8 x i8] c"noerror\00"
@.str.14 = [10 x i8] c"fdatasync\00"
@.str.15 = [6 x i8] c"fsync\00"
@str = [17 x i8] c"ascii activated \00"
define void @conv_table(i8* %0, i8* nocapture readnone %1) {
%3 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 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 ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
br label %48
7: ; preds = %2
%8 = tail call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%9 = icmp eq i64 %8, 0
br i1 %9, label %48, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%12 = icmp eq i64 %11, 0
br i1 %12, label %48, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %0)
%15 = icmp eq i64 %14, 0
br i1 %15, label %48, label %16
16: ; preds = %13
%17 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%18 = icmp eq i64 %17, 0
br i1 %18, label %48, label %19
19: ; preds = %16
%20 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %0)
%21 = icmp eq i64 %20, 0
br i1 %21, label %48, label %22
22: ; preds = %19
%23 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %0)
%24 = icmp eq i64 %23, 0
br i1 %24, label %48, label %25
25: ; preds = %22
%26 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* %0)
%27 = icmp eq i64 %26, 0
br i1 %27, label %48, label %28
28: ; preds = %25
%29 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %0)
%30 = icmp eq i64 %29, 0
br i1 %30, label %48, label %31
31: ; preds = %28
%32 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i8* %0)
%33 = icmp eq i64 %32, 0
br i1 %33, label %48, label %34
34: ; preds = %31
%35 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i8* %0)
%36 = icmp eq i64 %35, 0
br i1 %36, label %48, label %37
37: ; preds = %34
%38 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* %0)
%39 = icmp eq i64 %38, 0
br i1 %39, label %48, label %40
40: ; preds = %37
%41 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %0)
%42 = icmp eq i64 %41, 0
br i1 %42, label %48, label %43
43: ; preds = %40
%44 = tail call i64 @strcmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), i8* %0)
%45 = icmp eq i64 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %43
%47 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* %0)
br label %48
48: ; preds = %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %5
ret void
}