Usage(error) int error;
{
  switch (error) {
  case 1:
    printf("\n Wrong Number of Arguments!  Usage:\n");
    printf("\n bitapp [\g] file1 file2\n");
    printf("\n \g    - Created Greyed Bitmap.\n");
    printf("\n file1 - original bitmap file.\n");
    printf(" file2 - created header file.\n");
    break;
  case 2:
    break;
  case 3:
    printf("\n Input file is not a resource file!\n");
    break;
  case 5:
    printf("\n Invalid Switch on command line.\n");
    break;
  case 4:
    printf("\n Unexpected End Of File Reached in Input file!\n");
  }
  exit(1);
}


x86 assembly (clang, -O0):
<Usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x4,%eax
ja     11d8 <Usage+0xb8>
mov    -0x10(%rbp),%rax
lea    0xeb5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11d8 <Usage+0xb8>
jmp    11d8 <Usage+0xb8>
lea    0xf0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11d8 <Usage+0xb8>
lea    0xf1d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11d8 <Usage+0xb8>
lea    0xf2d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<Usage>:
push   %rax
mov    %edi,%eax
add    $0xffffffff,%eax
cmp    $0x4,%eax
ja     1190 <Usage+0x70>
lea    0xf04(%rip),%rdi
lea    0xec7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf42(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf68(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf90(%rip),%rdi
jmp    118b <Usage+0x6b>
lea    0xed9(%rip),%rdi
jmp    118b <Usage+0x6b>
lea    0xe89(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [38 x i8] c"\0A Wrong Number of Arguments! Usage:\0A\00"
@.str.1 = [26 x i8] c"\0A bitapp [g] file1 file2\0A\00"
@.str.2 = [33 x i8] c"\0A g - Created Greyed Bitmap.\0A\00"
@.str.3 = [33 x i8] c"\0A file1 - original bitmap file.\0A\00"
@.str.4 = [31 x i8] c" file2 - created header file.\0A\00"
@.str.5 = [38 x i8] c"\0A Input file is not a resource file!\0A\00"
@.str.6 = [35 x i8] c"\0A Invalid Switch on command line.\0A\00"
@.str.7 = [49 x i8] c"\0A Unexpected End Of File Reached in Input file!\0A\00"
define i32 @Usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %17 [
i32 1, label %4
i32 2, label %10
i32 3, label %11
i32 5, label %13
i32 4, label %15
]
4: ; preds = %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
br label %17
10: ; preds = %1
br label %17
11: ; preds = %1
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
br label %17
13: ; preds = %1
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
br label %17
15: ; preds = %1
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0))
br label %17
17: ; preds = %15, %1, %13, %11, %10, %4
unreachable
}

LLVM IR (-O2):
@str = [34 x i8] c"\0A Invalid Switch on command line.\00"
@str.8 = [37 x i8] c"\0A Input file is not a resource file!\00"
@str.9 = [48 x i8] c"\0A Unexpected End Of File Reached in Input file!\00"
@str.10 = [37 x i8] c"\0A Wrong Number of Arguments! Usage:\00"
@str.11 = [25 x i8] c"\0A bitapp [g] file1 file2\00"
@str.12 = [32 x i8] c"\0A g - Created Greyed Bitmap.\00"
@str.13 = [32 x i8] c"\0A file1 - original bitmap file.\00"
@str.14 = [30 x i8] c" file2 - created header file.\00"
define i32 @Usage(i32 %0) {
switch i32 %0, label %12 [
i32 1, label %2
i32 4, label %8
i32 3, label %9
i32 5, label %7
]
2: ; preds = %1
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.10, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.11, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.12, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.13, i64 0, i64 0))
br label %9
7: ; preds = %1
br label %9
8: ; preds = %1
br label %9
9: ; preds = %1, %2, %7, %8
%10 = phi i8* [ getelementptr inbounds ([48 x i8], [48 x i8]* @str.9, i64 0, i64 0), %8 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0), %7 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @str.14, i64 0, i64 0), %2 ], [ getelementptr inbounds ([37 x i8], [37 x i8]* @str.8, i64 0, i64 0), %1 ]
%11 = tail call i32 @puts(i8* dereferenceable(1) %10)
br label %12
12: ; preds = %9, %1
tail call void @exit(i32 1)
unreachable
}