#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*/ print_usage();
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
int main(int argc, char **argv) {
  if (argc != 2) {
    print_usage();
    return 1;
  }
  char *command = argv[1];
  if (strcmp(command, "char-bit_num") == 0) {
    printf("%u\n", (unsigned int)sizeof(char) * 8);
  } else if (strcmp(command, "short-bit_num") == 0) {
    printf("%u\n", (unsigned int)sizeof(short) * 8);
  } else if (strcmp(command, "int-bit_num") == 0) {
    printf("%u\n", (unsigned int)sizeof(int) * 8);
  } else if (strcmp(command, "long-bit_num") == 0) {
    printf("%u\n", (unsigned int)sizeof(long) * 8);
  } else if (strcmp(command, "long_long-bit_num") == 0) {
    printf("%u\n", (unsigned int)sizeof(long long) * 8);
  } else if (strcmp(command, "pointer-bit_num") == 0) {
    printf("%u\n", (unsigned int)sizeof(void *) * 8);
  } else if (strcmp(command, "float-bit_num") == 0) {
    printf("%u\n", (unsigned int)sizeof(float) * 8);
  } else if (strcmp(command, "double-bit_num") == 0) {
    printf("%u\n", (unsigned int)sizeof(double) * 8);
  } else {
    printf("\n"
           "\nunknown configurator command, \"%s\"!"
           "\n",
           command);
    print_usage();
    return 2;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1163 <main+0x33>
mov    $0x0,%al
call   1050 <print_usage@plt>
movl   $0x1,-0x4(%rbp)
jmp    134e <main+0x21e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe86(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11a1 <main+0x71>
lea    0xe7d(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1347 <main+0x217>
mov    -0x18(%rbp),%rdi
lea    0xe65(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11d3 <main+0xa3>
lea    0xe4b(%rip),%rdi
mov    $0x10,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1342 <main+0x212>
mov    -0x18(%rbp),%rdi
lea    0xe41(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1205 <main+0xd5>
lea    0xe19(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    133d <main+0x20d>
mov    -0x18(%rbp),%rdi
lea    0xe20(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1237 <main+0x107>
lea    0xde7(%rip),%rdi
mov    $0x40,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1338 <main+0x208>
mov    -0x18(%rbp),%rdi
lea    0xde9(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1269 <main+0x139>
lea    0xdb5(%rip),%rdi
mov    $0x40,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1333 <main+0x203>
mov    -0x18(%rbp),%rdi
lea    0xdc9(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    129b <main+0x16b>
lea    0xd83(%rip),%rdi
mov    $0x40,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    132e <main+0x1fe>
mov    -0x18(%rbp),%rdi
lea    0xda7(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12cd <main+0x19d>
lea    0xd51(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1329 <main+0x1f9>
mov    -0x18(%rbp),%rdi
lea    0xd83(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12ff <main+0x1cf>
lea    0xd1f(%rip),%rdi
mov    $0x40,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1324 <main+0x1f4>
mov    -0x18(%rbp),%rsi
lea    0xd60(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <print_usage@plt>
movl   $0x2,-0x4(%rbp)
jmp    134e <main+0x21e>
jmp    1329 <main+0x1f9>
jmp    132e <main+0x1fe>
jmp    1333 <main+0x203>
jmp    1338 <main+0x208>
jmp    133d <main+0x20d>
jmp    1342 <main+0x212>
jmp    1347 <main+0x217>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
cmp    $0x2,%edi
jne    1211 <main+0xe1>
mov    0x8(%rsi),%rbx
lea    0xebb(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     121f <main+0xef>
lea    0xeb4(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     122f <main+0xff>
lea    0xeaa(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     124f <main+0x11f>
lea    0xea3(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     123f <main+0x10f>
lea    0xe86(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     123f <main+0x10f>
lea    0xe80(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     123f <main+0x10f>
lea    0xe7c(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     124f <main+0x11f>
lea    0xe76(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     123f <main+0x10f>
lea    0xe71(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
call   1050 <print_usage@plt>
mov    $0x2,%ebx
jmp    1264 <main+0x134>
xor    %eax,%eax
call   1050 <print_usage@plt>
mov    $0x1,%ebx
jmp    1264 <main+0x134>
lea    0xde7(%rip),%rdi
xor    %ebx,%ebx
mov    $0x8,%esi
jmp    125d <main+0x12d>
lea    0xdd7(%rip),%rdi
xor    %ebx,%ebx
mov    $0x10,%esi
jmp    125d <main+0x12d>
lea    0xdc7(%rip),%rdi
xor    %ebx,%ebx
mov    $0x40,%esi
jmp    125d <main+0x12d>
lea    0xdb7(%rip),%rdi
xor    %ebx,%ebx
mov    $0x20,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"char-bit_num\00"
@.str.1 = [4 x i8] c"%u\0A\00"
@.str.2 = [14 x i8] c"short-bit_num\00"
@.str.3 = [12 x i8] c"int-bit_num\00"
@.str.4 = [13 x i8] c"long-bit_num\00"
@.str.5 = [18 x i8] c"long_long-bit_num\00"
@.str.6 = [16 x i8] c"pointer-bit_num\00"
@.str.7 = [14 x i8] c"float-bit_num\00"
@.str.8 = [15 x i8] c"double-bit_num\00"
@.str.9 = [39 x i8] c"\0A\0Aunknown configurator command, \22%s\22!\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (...) @print_usage()
store i32 1, i32* %3
br label %74
11: ; preds = %2
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 1
%14 = load i8*, i8** %13
store i8* %14, i8** %6
%15 = load i8*, i8** %6
%16 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %11
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 8)
br label %73
20: ; preds = %11
%21 = load i8*, i8** %6
%22 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 16)
br label %72
26: ; preds = %20
%27 = load i8*, i8** %6
%28 = call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 32)
br label %71
32: ; preds = %26
%33 = load i8*, i8** %6
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 64)
br label %70
38: ; preds = %32
%39 = load i8*, i8** %6
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 64)
br label %69
44: ; preds = %38
%45 = load i8*, i8** %6
%46 = call i64 @strcmp(i8* %45, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 64)
br label %68
50: ; preds = %44
%51 = load i8*, i8** %6
%52 = call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 32)
br label %67
56: ; preds = %50
%57 = load i8*, i8** %6
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 64)
br label %66
62: ; preds = %56
%63 = load i8*, i8** %6
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), i8* %63)
%65 = call i32 (...) @print_usage()
store i32 2, i32* %3
br label %74
66: ; preds = %60
br label %67
67: ; preds = %66, %54
br label %68
68: ; preds = %67, %48
br label %69
69: ; preds = %68, %42
br label %70
70: ; preds = %69, %36
br label %71
71: ; preds = %70, %30
br label %72
72: ; preds = %71, %24
br label %73
73: ; preds = %72, %18
store i32 0, i32* %3
br label %74
74: ; preds = %73, %62, %9
%75 = load i32, i32* %3
ret i32 %75
}

LLVM IR (-O2):
@.str = [13 x i8] c"char-bit_num\00"
@.str.1 = [4 x i8] c"%u\0A\00"
@.str.2 = [14 x i8] c"short-bit_num\00"
@.str.3 = [12 x i8] c"int-bit_num\00"
@.str.4 = [13 x i8] c"long-bit_num\00"
@.str.5 = [18 x i8] c"long_long-bit_num\00"
@.str.6 = [16 x i8] c"pointer-bit_num\00"
@.str.7 = [14 x i8] c"float-bit_num\00"
@.str.8 = [15 x i8] c"double-bit_num\00"
@.str.9 = [39 x i8] c"\0A\0Aunknown configurator command, \22%s\22!\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 (...) @print_usage()
br label %51
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %6
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 8)
br label %51
13: ; preds = %6
%14 = tail call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 16)
br label %51
18: ; preds = %13
%19 = tail call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 32)
br label %51
23: ; preds = %18
%24 = tail call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 64)
br label %51
28: ; preds = %23
%29 = tail call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 64)
br label %51
33: ; preds = %28
%34 = tail call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 64)
br label %51
38: ; preds = %33
%39 = tail call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 32)
br label %51
43: ; preds = %38
%44 = tail call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 64)
br label %51
48: ; preds = %43
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), i8* %8)
%50 = tail call i32 (...) @print_usage()
br label %51
51: ; preds = %48, %16, %26, %36, %46, %41, %31, %21, %11, %4
%52 = phi i32 [ 1, %4 ], [ 2, %48 ], [ 0, %16 ], [ 0, %26 ], [ 0, %36 ], [ 0, %46 ], [ 0, %41 ], [ 0, %31 ], [ 0, %21 ], [ 0, %11 ]
ret i32 %52
}