#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 getopt(int, char **, char *);
int /*<<< orphan*/ getopt_init();
int /*<<< orphan*/ print_usage();
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  int opt;
  getopt_init();
  while (-1 != (opt = getopt(argc, argv, "h"))) {
    switch (opt) {
    case 'h':
      print_usage();
      return 0;
    default:
      return 0;
    }
  }
  printf("\n");
  printf(".------.          _\n");
  printf("|  ____|         | | \n");
  printf("| |____ _ __ ___ | |_    _____  __\n");
  printf("|  ____| '_ ` _ \\|  _ \\ / _ \\ \\/ /\n");
  printf("| |____| | | | | | |_) | (_) >  <  \n");
  printf("|______|_| |_| |_|____/ \\___/_/\\_\\\n");
  printf("\n");
  printf("Date: %12s\n", "Mar 18 2022");
  printf("Time: %9s\n", "09:53:58");
  printf("Compiler: %s\n", "9.4.0");
  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)
mov    $0x0,%al
call   1040 <getopt_init@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe95(%rip),%rdx
call   1050 <getopt@plt>
mov    %eax,%ecx
mov    %ecx,-0x14(%rbp)
mov    $0xffffffff,%eax
cmp    %ecx,%eax
je     11b2 <main+0x72>
mov    -0x14(%rbp),%eax
sub    $0x68,%eax
jne    11a6 <main+0x66>
jmp    1193 <main+0x53>
mov    $0x0,%al
call   1060 <print_usage@plt>
movl   $0x0,-0x4(%rbp)
jmp    1268 <main+0x128>
movl   $0x0,-0x4(%rbp)
jmp    1268 <main+0x128>
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe77(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe96(%rip),%rdi
lea    0xe9b(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe99(%rip),%rdi
lea    0xe9d(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe98(%rip),%rdi
lea    0xe9f(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %eax,%eax
call   1060 <getopt_init@plt>
lea    0xe8a(%rip),%rdx
mov    %ebp,%edi
mov    %rbx,%rsi
call   1070 <getopt@plt>
cmp    $0xffffffff,%eax
je     119a <main+0x3a>
cmp    $0x68,%eax
jne    1235 <main+0xd5>
xor    %eax,%eax
call   1080 <print_usage@plt>
jmp    1235 <main+0xd5>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe97(%rip),%rdi
call   1040 <puts@plt>
lea    0xe9f(%rip),%rdi
call   1040 <puts@plt>
lea    0xea9(%rip),%rdi
call   1040 <puts@plt>
lea    0xec0(%rip),%rdi
call   1040 <puts@plt>
lea    0xed7(%rip),%rdi
call   1040 <puts@plt>
lea    0xeef(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe05(%rip),%rdi
lea    0xe0a(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe08(%rip),%rdi
lea    0xe0c(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe07(%rip),%rdi
lea    0xe0e(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"h\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [21 x i8] c".------. _\0A\00"
@.str.3 = [23 x i8] c"| ____| | | \0A\00"
@.str.4 = [36 x i8] c"| |____ _ __ ___ | |_ _____ __\0A\00"
@.str.5 = [36 x i8] c"| ____| '_ ` _ \\| _ \\ / _ \\ \\/ /\0A\00"
@.str.6 = [37 x i8] c"| |____| | | | | | |_) | (_) > < \0A\00"
@.str.7 = [36 x i8] c"|______|_| |_| |_|____/ \\___/_/\\_\\\0A\00"
@.str.8 = [12 x i8] c"Date: %12s\0A\00"
@.str.9 = [12 x i8] c"Mar 18 2022\00"
@.str.10 = [11 x i8] c"Time: %9s\0A\00"
@.str.11 = [9 x i8] c"09:53:58\00"
@.str.12 = [14 x i8] c"Compiler: %s\0A\00"
@.str.13 = [6 x i8] c"9.4.0\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 (...) @getopt_init()
br label %8
8: ; preds = %2
%9 = load i32, i32* %4
%10 = load i8**, i8*** %5
%11 = call i32 @getopt(i32 %9, i8** %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32 %11, i32* %6
%12 = icmp ne i32 -1, %11
br i1 %12, label %13, label %18
13: ; preds = %8
%14 = load i32, i32* %6
switch i32 %14, label %17 [
i32 104, label %15
]
15: ; preds = %13
%16 = call i32 (...) @print_usage()
store i32 0, i32* %3
br label %30
17: ; preds = %13
store i32 0, i32* %3
br label %30
18: ; preds = %8
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
store i32 0, i32* %3
br label %30
30: ; preds = %18, %17, %15
%31 = load i32, i32* %3
ret i32 %31
}

LLVM IR (-O2):
@.str = [2 x i8] c"h\00"
@.str.8 = [12 x i8] c"Date: %12s\0A\00"
@.str.9 = [12 x i8] c"Mar 18 2022\00"
@.str.10 = [11 x i8] c"Time: %9s\0A\00"
@.str.11 = [9 x i8] c"09:53:58\00"
@.str.12 = [14 x i8] c"Compiler: %s\0A\00"
@.str.13 = [6 x i8] c"9.4.0\00"
@str = [20 x i8] c".------. _\00"
@str.14 = [22 x i8] c"| ____| | | \00"
@str.15 = [35 x i8] c"| |____ _ __ ___ | |_ _____ __\00"
@str.16 = [35 x i8] c"| ____| '_ ` _ \\| _ \\ / _ \\ \\/ /\00"
@str.17 = [36 x i8] c"| |____| | | | | | |_) | (_) > < \00"
@str.18 = [35 x i8] c"|______|_| |_| |_|____/ \\___/_/\\_\\\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 (...) @getopt_init()
%4 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
switch i32 %4, label %19 [
i32 -1, label %7
i32 104, label %5
]
5: ; preds = %2
%6 = tail call i32 (...) @print_usage()
br label %19
7: ; preds = %2
%8 = tail call i32 @putchar(i32 10)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.14, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.15, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.16, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.17, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.18, i64 0, i64 0))
%15 = tail call i32 @putchar(i32 10)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
br label %19
19: ; preds = %2, %7, %5
ret i32 0
}