#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 *);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ strcmp(char *, char *);
int main(int argc, char **argv) {
  printf("Welcome to BankSoftware.\n");
  if (argc < 2) {
    puts("Not enough arguments.");
  } else {
    if (!strcmp("user", argv[1])) {
    } else if (!strcmp("bank", argv[1])) {
    } else if (!strcmp("help", argv[1])) {
    } else {
      puts("Unknowed argument 1.");
      return 1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb3(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
jge    116d <main+0x3d>
lea    0xeb7(%rip),%rdi
call   1030 <puts@plt>
jmp    11fa <main+0xca>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xeb4(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    118f <main+0x5f>
jmp    11f5 <main+0xc5>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xe97(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    11b1 <main+0x81>
jmp    11f0 <main+0xc0>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xe7a(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    11d3 <main+0xa3>
jmp    11eb <main+0xbb>
lea    0xe65(%rip),%rdi
call   1030 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1201 <main+0xd1>
jmp    11f0 <main+0xc0>
jmp    11f5 <main+0xc5>
jmp    11fa <main+0xca>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xf0b(%rip),%rdi
call   1030 <puts@plt>
cmp    $0x2,%ebp
jge    1149 <main+0x29>
xor    %ebp,%ebp
lea    0xebe(%rip),%rdi
call   1030 <puts@plt>
jmp    1196 <main+0x76>
mov    0x8(%rbx),%rbx
lea    0xec2(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
xor    %ebp,%ebp
test   %eax,%eax
je     1196 <main+0x76>
lea    0xeb2(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1196 <main+0x76>
lea    0xea4(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1196 <main+0x76>
mov    $0x1,%ebp
lea    0xe91(%rip),%rdi
jmp    1142 <main+0x22>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [26 x i8] c"Welcome to BankSoftware.\0A\00"
@.str.1 = [22 x i8] c"Not enough arguments.\00"
@.str.2 = [5 x i8] c"user\00"
@.str.3 = [5 x i8] c"bank\00"
@.str.4 = [5 x i8] c"help\00"
@.str.5 = [21 x i8] c"Unknowed argument 1.\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%7 = load i32, i32* %4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
br label %37
11: ; preds = %2
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 1
%14 = load i8*, i8** %13
%15 = call i32 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %11
br label %36
18: ; preds = %11
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
%22 = call i32 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %21)
%23 = icmp ne i32 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %18
br label %35
25: ; preds = %18
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = call i32 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %28)
%30 = icmp ne i32 %29, 0
br i1 %30, label %32, label %31
31: ; preds = %25
br label %34
32: ; preds = %25
%33 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
store i32 1, i32* %3
br label %38
34: ; preds = %31
br label %35
35: ; preds = %34, %24
br label %36
36: ; preds = %35, %17
br label %37
37: ; preds = %36, %9
store i32 0, i32* %3
br label %38
38: ; preds = %37, %32
%39 = load i32, i32* %3
ret i32 %39
}

LLVM IR (-O2):
@.str.1 = [22 x i8] c"Not enough arguments.\00"
@.str.2 = [5 x i8] c"user\00"
@.str.3 = [5 x i8] c"bank\00"
@.str.4 = [5 x i8] c"help\00"
@.str.5 = [21 x i8] c"Unknowed argument 1.\00"
@str = [25 x i8] c"Welcome to BankSoftware.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%4 = icmp slt i32 %0, 2
br i1 %4, label %16, label %5
5: ; preds = %2
%6 = getelementptr inbounds i8*, i8** %1, i64 1
%7 = load i8*, i8** %6
%8 = tail call i32 @strcmp(i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* dereferenceable(1) %7)
%9 = icmp eq i32 %8, 0
br i1 %9, label %20, label %10
10: ; preds = %5
%11 = tail call i32 @strcmp(i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* dereferenceable(1) %7)
%12 = icmp eq i32 %11, 0
br i1 %12, label %20, label %13
13: ; preds = %10
%14 = tail call i32 @strcmp(i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* dereferenceable(1) %7)
%15 = icmp eq i32 %14, 0
br i1 %15, label %20, label %16
16: ; preds = %13, %2
%17 = phi i8* [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), %13 ]
%18 = phi i32 [ 0, %2 ], [ 1, %13 ]
%19 = tail call i32 @puts(i8* dereferenceable(1) %17)
br label %20
20: ; preds = %16, %10, %13, %5
%21 = phi i32 [ 0, %5 ], [ 0, %13 ], [ 0, %10 ], [ %18, %16 ]
ret i32 %21
}