#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*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sscanf(char *, char *, char *);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ system(char *);
void about(void) {
  char buf[100];
  char exitCond;
  while (1) {
    system("clear");
    printf("\x1b[34m"
           "    _______          _____ _____ _    _ \n");
    printf("   |__   __|        / ____/ ____| |  | |\n");
    printf("      | |_   ___  _| (___| (___ | |__| |\n");
    printf("      | | | | \\ \\/ /\\___  \\___ \\|  __  |\n");
    printf("      | | |_| |>  < ____) |___) | |  | |\n");
    printf("      |_|\\__,_/_/\\_\\_____/_____/|_|  |_|\n\n\n"
           "\x1b[0m");
    printf("Developed and Created by Brendan Wilson (c) 2018\n");
    printf("Managed as a FOSS program, maintained at "
           "https://github.com/bmw417/projects/tree/master/TuxSSH\n");
    printf(
        "Licensing and License Information at "
        "https://github.com/bmw417/projects/blob/master/TuxSSH/LICENSE.md\n\n");
    printf("Contact me at brendan.wilson@student.nmt.edu for questions or "
           "comments\n\n");
    printf("Enter anything to quit to menu: ");
    fgets(buf, 100, stdin);
    sscanf(buf, "%c", &exitCond);
    if (exitCond != '\0') {
      system("clear");
      break;
    }
  }
}


x86 assembly (clang, -O0):
<about>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
lea    0xeae(%rip),%rdi
call   1030 <system@plt>
lea    0xea8(%rip),%rdi
call   1040 <printf@plt>
lea    0xecb(%rip),%rdi
call   1040 <printf@plt>
lea    0xee9(%rip),%rdi
call   1040 <printf@plt>
lea    0xf07(%rip),%rdi
call   1040 <printf@plt>
lea    0xf25(%rip),%rdi
call   1040 <printf@plt>
lea    0xf43(%rip),%rdi
call   1040 <printf@plt>
lea    0xf67(%rip),%rdi
call   1040 <printf@plt>
lea    0xf8d(%rip),%rdi
call   1040 <printf@plt>
lea    0xfe1(%rip),%rdi
call   1040 <printf@plt>
lea    0x103d(%rip),%rdi
call   1040 <printf@plt>
lea    0x107a(%rip),%rdi
call   1040 <printf@plt>
lea    -0x70(%rbp),%rdi
mov    0x2e02(%rip),%rax
mov    (%rax),%edx
mov    $0x64,%esi
call   1050 <fgets@plt>
lea    -0x70(%rbp),%rdi
lea    0x1074(%rip),%rsi
lea    -0x71(%rbp),%rdx
call   1060 <sscanf@plt>
movsbl -0x71(%rbp),%eax
cmp    $0x0,%eax
je     1224 <about+0xe4>
lea    0xde6(%rip),%rdi
call   1030 <system@plt>
jmp    1229 <about+0xe9>
jmp    114b <about+0xb>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<about>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
lea    0x10be(%rip),%rbx
lea    0xeca(%rip),%rbp
mov    0x2e75(%rip),%r13
lea    0x10(%rsp),%r14
lea    0xed8(%rip),%r15
lea    0xf(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xe69(%rip),%rdi
call   1040 <system@plt>
lea    0xeb7(%rip),%rdi
call   1030 <puts@plt>
lea    0xed9(%rip),%rdi
call   1030 <puts@plt>
lea    0xef6(%rip),%rdi
call   1030 <puts@plt>
lea    0xf13(%rip),%rdi
call   1030 <puts@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
lea    0xe27(%rip),%rdi
call   1050 <printf@plt>
lea    0xf41(%rip),%rdi
call   1030 <puts@plt>
lea    0xf66(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb9(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1050 <printf@plt>
mov    0x0(%r13),%edx
mov    %r14,%rdi
mov    $0x64,%esi
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
call   1070 <sscanf@plt>
cmpb   $0x0,0xf(%rsp)
je     1190 <about+0x40>
lea    0xdb7(%rip),%rdi
call   1040 <system@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [47 x i8] c"\1B[34m _______ _____ _____ _ _ \0A\00"
@.str.2 = [42 x i8] c" |__ __| / ____/ ____| | | |\0A\00"
@.str.3 = [42 x i8] c" | |_ ___ _| (___| (___ | |__| |\0A\00"
@.str.4 = [42 x i8] c" | | | | \\ \\/ /\\___ \\___ \\| __ |\0A\00"
@.str.5 = [42 x i8] c" | | |_| |> < ____) |___) | | | |\0A\00"
@.str.6 = [48 x i8] c" |_|\\__,_/_/\\_\\_____/_____/|_| |_|\0A\0A\0A\1B[0m\00"
@.str.7 = [50 x i8] c"Developed and Created by Brendan Wilson (c) 2018\0A\00"
@.str.8 = [96 x i8] c"Managed as a FOSS program, maintained at https://github.com/bmw417/projects/tree/master/TuxSSH\0A\00"
@.str.9 = [104 x i8] c"Licensing and License Information at https://github.com/bmw417/projects/blob/master/TuxSSH/LICENSE.md\0A\0A\00"
@.str.10 = [73 x i8] c"Contact me at brendan.wilson@student.nmt.edu for questions or comments\0A\0A\00"
@.str.11 = [33 x i8] c"Enter anything to quit to menu: \00"
@stdin = global i32 0
@.str.12 = [3 x i8] c"%c\00"
define void @about() {
%1 = alloca [100 x i8]
%2 = alloca i8
br label %3
3: ; preds = %0, %26
%4 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
%16 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%17 = load i32, i32* @stdin
%18 = call i32 @fgets(i8* %16, i32 100, i32 %17)
%19 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%20 = call i32 @sscanf(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* %2)
%21 = load i8, i8* %2
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %3
%25 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %27
26: ; preds = %3
br label %3
27: ; preds = %24
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.6 = [48 x i8] c" |_|\\__,_/_/\\_\\_____/_____/|_| |_|\0A\0A\0A\1B[0m\00"
@.str.11 = [33 x i8] c"Enter anything to quit to menu: \00"
@stdin = global i32 0
@.str.12 = [3 x i8] c"%c\00"
@str = [46 x i8] c"\1B[34m _______ _____ _____ _ _ \00"
@str.13 = [41 x i8] c" |__ __| / ____/ ____| | | |\00"
@str.14 = [41 x i8] c" | |_ ___ _| (___| (___ | |__| |\00"
@str.15 = [41 x i8] c" | | | | \\ \\/ /\\___ \\___ \\| __ |\00"
@str.16 = [41 x i8] c" | | |_| |> < ____) |___) | | | |\00"
@str.17 = [49 x i8] c"Developed and Created by Brendan Wilson (c) 2018\00"
@str.18 = [95 x i8] c"Managed as a FOSS program, maintained at https://github.com/bmw417/projects/tree/master/TuxSSH\00"
@str.19 = [103 x i8] c"Licensing and License Information at https://github.com/bmw417/projects/blob/master/TuxSSH/LICENSE.md\0A\00"
@str.20 = [72 x i8] c"Contact me at brendan.wilson@student.nmt.edu for questions or comments\0A\00"
define void @about() {
%1 = alloca [100 x i8]
%2 = alloca i8
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
br label %4
4: ; preds = %4, %0
%5 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str, i64 0, i64 0))
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.13, i64 0, i64 0))
%8 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.14, i64 0, i64 0))
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.15, i64 0, i64 0))
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.16, i64 0, i64 0))
%11 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.17, i64 0, i64 0))
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str.18, i64 0, i64 0))
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([103 x i8], [103 x i8]* @str.19, i64 0, i64 0))
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.20, i64 0, i64 0))
%16 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
%17 = load i32, i32* @stdin
%18 = call i32 @fgets(i8* %3, i32 100, i32 %17)
%19 = call i32 @sscanf(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* %2)
%20 = load i8, i8* %2
%21 = icmp eq i8 %20, 0
br i1 %21, label %4, label %22
22: ; preds = %4
%23 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret void
}