#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_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
char *getprogname();
int /*<<< orphan*/ printf(char *, ...);
void usage(void) {
  printf("Usage:  %s [options] [tx freq] [rx freq]\n", getprogname());
  printf("  Version: %s\n", "1.0");
  printf("  frequency range: 1340000 to 1740000\n");
  printf("  No decimal points used in freq\n");
  printf("  -v  --volume     Set volume of module (1-8)\n");
  printf("  -s  --squelch    Set squelch level (0-8)\n");
  printf("  -V  --verbose    Print verbose messages\n");
  printf("  -h  --help       Display this usage info\n");
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <getprogname@plt>
mov    %rax,%rsi
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xed7(%rip),%rdi
lea    0xedf(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeee(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf02(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf23(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf41(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf5e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2e24(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
xor    %eax,%eax
call   1040 <getprogname@plt>
lea    0xeb1(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeca(%rip),%rdi
lea    0xed2(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xec8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee2(%rip),%rdi
call   1030 <puts@plt>
lea    0xef7(%rip),%rdi
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
lea    0xf38(%rip),%rdi
call   1030 <puts@plt>
lea    0xf56(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e23(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [42 x i8] c"Usage: %s [options] [tx freq] [rx freq]\0A\00"
@.str.1 = [15 x i8] c" Version: %s\0A\00"
@.str.2 = [4 x i8] c"1.0\00"
@.str.3 = [39 x i8] c" frequency range: 1340000 to 1740000\0A\00"
@.str.4 = [34 x i8] c" No decimal points used in freq\0A\00"
@.str.5 = [47 x i8] c" -v --volume Set volume of module (1-8)\0A\00"
@.str.6 = [44 x i8] c" -s --squelch Set squelch level (0-8)\0A\00"
@.str.7 = [43 x i8] c" -V --verbose Print verbose messages\0A\00"
@.str.8 = [44 x i8] c" -h --help Display this usage info\0A\00"
@EXIT_SUCCESS = global i32 0
define void @usage() {
%1 = call i8* (...) @getprogname()
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0))
%10 = load i32, i32* @EXIT_SUCCESS
%11 = call i32 @exit(i32 %10)
unreachable
}

LLVM IR (-O2):
@.str = [42 x i8] c"Usage: %s [options] [tx freq] [rx freq]\0A\00"
@.str.1 = [15 x i8] c" Version: %s\0A\00"
@.str.2 = [4 x i8] c"1.0\00"
@EXIT_SUCCESS = global i32 0
@str = [38 x i8] c" frequency range: 1340000 to 1740000\00"
@str.9 = [33 x i8] c" No decimal points used in freq\00"
@str.10 = [46 x i8] c" -v --volume Set volume of module (1-8)\00"
@str.11 = [43 x i8] c" -s --squelch Set squelch level (0-8)\00"
@str.12 = [42 x i8] c" -V --verbose Print verbose messages\00"
@str.13 = [43 x i8] c" -h --help Display this usage info\00"
define void @usage() {
%1 = tail call i8* (...) @getprogname()
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.9, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.10, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.11, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.12, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.13, i64 0, i64 0))
%10 = load i32, i32* @EXIT_SUCCESS
%11 = tail call i32 @exit(i32 %10)
unreachable
}