#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 *);
void usage(void) {
  printf("Usage: rw1990 [OPTIONS]\n\n");
  printf("Options:\n");
  printf("  \033[1m-d, --device\033[0m\n     Specify the device, overriding "
         "the value /dev/ttyUSB0\n\n");
  printf("  \033[1m-t, --type\033[0m\n      Specify the type of key:\n        "
         "1 - RW1990\n        2 - RW1990.2\n\n");
  printf("  \033[1m-w, --write\033[0m\n      New serial number key like: "
         "0000FFFFFF\n\n");
  printf("  \033[1m-s, --delay\033[0m\n      Specify bit delay for write "
         "operation in range of 10 - 500 ms. Default is 10 ms.\n\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
call   1030 <printf@plt>
lea    0xf39(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8b(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc4(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef5(%rip),%rdi
call   1030 <puts@plt>
lea    0xef2(%rip),%rdi
call   1030 <puts@plt>
lea    0xf39(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8a(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc2(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"Usage: rw1990 [OPTIONS]\0A\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [84 x i8] c" \1B[1m-d, --device\1B[0m\0A Specify the device, overriding the value /dev/ttyUSB0\0A\0A\00"
@.str.3 = [94 x i8] c" \1B[1m-t, --type\1B[0m\0A Specify the type of key:\0A 1 - RW1990\0A 2 - RW1990.2\0A\0A\00"
@.str.4 = [69 x i8] c" \1B[1m-w, --write\1B[0m\0A New serial number key like: 0000FFFFFF\0A\0A\00"
@.str.5 = [111 x i8] c" \1B[1m-s, --delay\1B[0m\0A Specify bit delay for write operation in range of 10 - 500 ms. Default is 10 ms.\0A\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [25 x i8] c"Usage: rw1990 [OPTIONS]\0A\00"
@str.6 = [9 x i8] c"Options:\00"
@str.7 = [83 x i8] c" \1B[1m-d, --device\1B[0m\0A Specify the device, overriding the value /dev/ttyUSB0\0A\00"
@str.8 = [93 x i8] c" \1B[1m-t, --type\1B[0m\0A Specify the type of key:\0A 1 - RW1990\0A 2 - RW1990.2\0A\00"
@str.9 = [68 x i8] c" \1B[1m-w, --write\1B[0m\0A New serial number key like: 0000FFFFFF\0A\00"
@str.10 = [110 x i8] c" \1B[1m-s, --delay\1B[0m\0A Specify bit delay for write operation in range of 10 - 500 ms. Default is 10 ms.\0A\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.6, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.7, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.8, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.9, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([110 x i8], [110 x i8]* @str.10, i64 0, i64 0))
ret void
}