#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 print_usage(char *program) {
  printf("\nUsage: %s [-h] [-i] [-x] [-s speed]", program);
  printf(" [-w rot_v] [-g gravity]\n\n");
  printf("-h              Print this message.\n");
  printf("-i              Print information about the demo.\n");
  printf("-x              Enclose the particles in a box made of hexagons.\n");
  printf("-s speed        Sets the number of new line segments per redraw \n");
  printf("                interval per line. Default value: 3.\n");
  printf(
      "-w rot_v        Spins the hexagons on their centers, and the sides\n");
  printf("                of the box on their centers. Hexagons spin at the\n");
  printf("                rate rot_v degrees per redraw, and box sides spin\n");
  printf("                at -rot_v/2 degrees per redraw.\n");
  printf("-g gravity      Sets the strength of the attraction of the eye to\n");
  printf(
      "                the red particle. Actually, it's not gravity since\n");
  printf("                the attraction is proportionate to distance.\n");
  printf("                Default value: 0.002. Try large values!\n");
  printf(" Executions control:  \n");
  printf("    <spacebar>	step through single frames\n");
  printf("    g		begin continuous frames\n");
  printf("    s		stop continuous frames\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf39(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1034(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1069(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x108c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10c1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10f7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1127(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1152(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x115c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1179(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x118b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeec(%rip),%rdi
call   1030 <puts@plt>
lea    0xefa(%rip),%rdi
call   1030 <puts@plt>
lea    0xf12(%rip),%rdi
call   1030 <puts@plt>
lea    0xf38(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6d(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1030 <puts@plt>
lea    0x1002(%rip),%rdi
call   1030 <puts@plt>
lea    0x1038(%rip),%rdi
call   1030 <puts@plt>
lea    0x106e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1092(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c8(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ff(%rip),%rdi
call   1030 <puts@plt>
lea    0x1130(%rip),%rdi
call   1030 <puts@plt>
lea    0x115c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1167(%rip),%rdi
call   1030 <puts@plt>
lea    0x1185(%rip),%rdi
call   1030 <puts@plt>
lea    0x1198(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [37 x i8] c"\0AUsage: %s [-h] [-i] [-x] [-s speed]\00"
@.str.1 = [27 x i8] c" [-w rot_v] [-g gravity]\0A\0A\00"
@.str.2 = [37 x i8] c"-h Print this message.\0A\00"
@.str.3 = [51 x i8] c"-i Print information about the demo.\0A\00"
@.str.4 = [66 x i8] c"-x Enclose the particles in a box made of hexagons.\0A\00"
@.str.5 = [66 x i8] c"-s speed Sets the number of new line segments per redraw \0A\00"
@.str.6 = [54 x i8] c" interval per line. Default value: 3.\0A\00"
@.str.7 = [68 x i8] c"-w rot_v Spins the hexagons on their centers, and the sides\0A\00"
@.str.8 = [67 x i8] c" of the box on their centers. Hexagons spin at the\0A\00"
@.str.9 = [67 x i8] c" rate rot_v degrees per redraw, and box sides spin\0A\00"
@.str.10 = [49 x i8] c" at -rot_v/2 degrees per redraw.\0A\00"
@.str.11 = [67 x i8] c"-g gravity Sets the strength of the attraction of the eye to\0A\00"
@.str.12 = [68 x i8] c" the red particle. Actually, it's not gravity since\0A\00"
@.str.13 = [62 x i8] c" the attraction is proportionate to distance.\0A\00"
@.str.14 = [57 x i8] c" Default value: 0.002. Try large values!\0A\00"
@.str.15 = [24 x i8] c" Executions control: \0A\00"
@.str.16 = [43 x i8] c" <spacebar>\09step through single frames\0A\00"
@.str.17 = [32 x i8] c" g\09\09begin continuous frames\0A\00"
@.str.18 = [31 x i8] c" s\09\09stop continuous frames\0A\00"
define void @print_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.16, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.17, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.18, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [37 x i8] c"\0AUsage: %s [-h] [-i] [-x] [-s speed]\00"
@str = [26 x i8] c" [-w rot_v] [-g gravity]\0A\00"
@str.19 = [36 x i8] c"-h Print this message.\00"
@str.20 = [50 x i8] c"-i Print information about the demo.\00"
@str.21 = [65 x i8] c"-x Enclose the particles in a box made of hexagons.\00"
@str.22 = [65 x i8] c"-s speed Sets the number of new line segments per redraw \00"
@str.23 = [53 x i8] c" interval per line. Default value: 3.\00"
@str.24 = [67 x i8] c"-w rot_v Spins the hexagons on their centers, and the sides\00"
@str.25 = [66 x i8] c" of the box on their centers. Hexagons spin at the\00"
@str.26 = [66 x i8] c" rate rot_v degrees per redraw, and box sides spin\00"
@str.27 = [48 x i8] c" at -rot_v/2 degrees per redraw.\00"
@str.28 = [66 x i8] c"-g gravity Sets the strength of the attraction of the eye to\00"
@str.29 = [67 x i8] c" the red particle. Actually, it's not gravity since\00"
@str.30 = [61 x i8] c" the attraction is proportionate to distance.\00"
@str.31 = [56 x i8] c" Default value: 0.002. Try large values!\00"
@str.32 = [23 x i8] c" Executions control: \00"
@str.33 = [42 x i8] c" <spacebar>\09step through single frames\00"
@str.34 = [31 x i8] c" g\09\09begin continuous frames\00"
@str.35 = [30 x i8] c" s\09\09stop continuous frames\00"
define void @print_usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.22, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.23, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.24, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.27, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.30, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.31, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.32, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.33, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.34, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.35, i64 0, i64 0))
ret void
}