#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ usage(char *);
void help(char *program) {
  usage(program);
  fprintf(
      stderr,
      "\n"
      "OPTIONS:\n"
      "  -c: Create mode. Writes CREATE TABLE statement and COPY statement.\n"
      "  -a: Append mode. Writes COPY statement.\n"
      "  -p: Prepare mode. Writes CREATE TABLE statement.\n"
      "  -sd <snapdenom>: Denomination of snap grid size.\n"
      "                   If not spcified, does not snap.\n"
      "  -er <expansion rate>: Expansion rate of cellsize.\n"
      "  -o <outfile>: Outputfile. If not specified, writes statements to "
      "standard out.\n"
      "  -q: Quiet mode.\n"
      "\n"
      "  (corner position) = round((corner position)/<sd>)*<sd>\n"
      "  (cellsize) = round((original cellsize)/<sd>)*<sd> * (1.0+<er>)\n"
      "\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <usage@plt>
mov    0x2ea4(%rip),%rax
mov    (%rax),%edi
lea    0xebb(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
call   1040 <usage@plt>
mov    0x2eb3(%rip),%rax
mov    (%rax),%edi
lea    0xeca(%rip),%rsi
pop    %rax
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [550 x i8] c"\0AOPTIONS:\0A -c: Create mode. Writes CREATE TABLE statement and COPY statement.\0A -a: Append mode. Writes COPY statement.\0A -p: Prepare mode. Writes CREATE TABLE statement.\0A -sd <snapdenom>: Denomination of snap grid size.\0A If not spcified, does not snap.\0A -er <expansion rate>: Expansion rate of cellsize.\0A -o <outfile>: Outputfile. If not specified, writes statements to standard out.\0A -q: Quiet mode.\0A\0A (corner position) = round((corner position)/<sd>)*<sd>\0A (cellsize) = round((original cellsize)/<sd>)*<sd> * (1.0+<er>)\0A\0A\00"
define void @help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @usage(i8* %3)
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([550 x i8], [550 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [550 x i8] c"\0AOPTIONS:\0A -c: Create mode. Writes CREATE TABLE statement and COPY statement.\0A -a: Append mode. Writes COPY statement.\0A -p: Prepare mode. Writes CREATE TABLE statement.\0A -sd <snapdenom>: Denomination of snap grid size.\0A If not spcified, does not snap.\0A -er <expansion rate>: Expansion rate of cellsize.\0A -o <outfile>: Outputfile. If not specified, writes statements to standard out.\0A -q: Quiet mode.\0A\0A (corner position) = round((corner position)/<sd>)*<sd>\0A (cellsize) = round((original cellsize)/<sd>)*<sd> * (1.0+<er>)\0A\0A\00"
define void @help(i8* %0) {
%2 = tail call i32 @usage(i8* %0)
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([550 x i8], [550 x i8]* @.str, i64 0, i64 0))
ret void
}