#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void print_help_and_exit(void) {
  printf("Allowed options: %s [options]\n", "kmssnake");
  printf("	-l --log-level <level>: log level (1-6)\n");
  printf("	-b --log-backend <confstring>: backend log level.\n");
  printf(
      "		Override log-level setting for the particular backend.\n");
  printf(
      "		confstring is in the form backend=level,backend2=level\n");
  printf("		eg. --log-backend=main=3,drm=6\n");
  printf("	-h --help: this message\n");
  exit(0);
}


x86 assembly (clang, -O0):
<print_help_and_exit>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xeed(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_help_and_exit>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xee0(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedb(%rip),%rdi
call   1030 <puts@plt>
lea    0xef8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf79(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8e(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [31 x i8] c"Allowed options: %s [options]\0A\00"
@.str.1 = [9 x i8] c"kmssnake\00"
@.str.2 = [42 x i8] c"\09-l --log-level <level>: log level (1-6)\0A\00"
@.str.3 = [52 x i8] c"\09-b --log-backend <confstring>: backend log level.\0A\00"
@.str.4 = [58 x i8] c"\09\09Override log-level setting for the particular backend.\0A\00"
@.str.5 = [58 x i8] c"\09\09confstring is in the form backend=level,backend2=level\0A\00"
@.str.6 = [34 x i8] c"\09\09eg. --log-backend=main=3,drm=6\0A\00"
@.str.7 = [26 x i8] c"\09-h --help: this message\0A\00"
define void @print_help_and_exit() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [31 x i8] c"Allowed options: %s [options]\0A\00"
@.str.1 = [9 x i8] c"kmssnake\00"
@str = [41 x i8] c"\09-l --log-level <level>: log level (1-6)\00"
@str.8 = [51 x i8] c"\09-b --log-backend <confstring>: backend log level.\00"
@str.9 = [57 x i8] c"\09\09Override log-level setting for the particular backend.\00"
@str.10 = [57 x i8] c"\09\09confstring is in the form backend=level,backend2=level\00"
@str.11 = [33 x i8] c"\09\09eg. --log-backend=main=3,drm=6\00"
@str.12 = [25 x i8] c"\09-h --help: this message\00"
define void @print_help_and_exit() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.8, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.11, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.12, i64 0, i64 0))
%8 = tail call i32 @exit(i32 0)
unreachable
}