#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 opr_usage(void) {
  printf("Operations:\n");
  printf("       %s\t\t- Write To Memory/Flash\n", "wr");
  printf("       %s\t\t- Read From Memory/Flash\n", "rd");
  printf("       %s\t\t- Execute a non-return code\n", "go");
  printf("       %s\t\t- Execute a returnable code\n", "call");
}


x86 assembly (clang, -O0):
<opr_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
lea    0xf01(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
lea    0xf14(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
lea    0xf2a(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
lea    0xf40(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<opr_usage>:
push   %rax
lea    0xf7f(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
lea    0xee9(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xede(%rip),%rdi
lea    0xefc(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef1(%rip),%rdi
lea    0xf12(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf07(%rip),%rdi
lea    0xf28(%rip),%rsi
xor    %eax,%eax
pop    %rcx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"Operations:\0A\00"
@.str.1 = [36 x i8] c" %s\09\09- Write To Memory/Flash\0A\00"
@.str.2 = [3 x i8] c"wr\00"
@.str.3 = [37 x i8] c" %s\09\09- Read From Memory/Flash\0A\00"
@.str.4 = [3 x i8] c"rd\00"
@.str.5 = [40 x i8] c" %s\09\09- Execute a non-return code\0A\00"
@.str.6 = [3 x i8] c"go\00"
@.str.7 = [40 x i8] c" %s\09\09- Execute a returnable code\0A\00"
@.str.8 = [5 x i8] c"call\00"
define void @opr_usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [36 x i8] c" %s\09\09- Write To Memory/Flash\0A\00"
@.str.2 = [3 x i8] c"wr\00"
@.str.3 = [37 x i8] c" %s\09\09- Read From Memory/Flash\0A\00"
@.str.4 = [3 x i8] c"rd\00"
@.str.5 = [40 x i8] c" %s\09\09- Execute a non-return code\0A\00"
@.str.6 = [3 x i8] c"go\00"
@.str.7 = [40 x i8] c" %s\09\09- Execute a returnable code\0A\00"
@.str.8 = [5 x i8] c"call\00"
@str = [12 x i8] c"Operations:\00"
define void @opr_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
ret void
}