#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() {
  printf("Usage: xtopo [-o file][-dsuFRTV][-S level][-H beta]");
  printf("[-m #][-w width][-h height]\n");
  printf("\nWhere :\n\t0 < beta < 1 (default is 0.5)\n");
  printf("\t0 < level < 1 (default is 0.35)\n");
  printf("\t-d indicates demo mode\n");
  printf("\t-s indicates spin color wheel when done computing\n");
  printf("\t-T indicates use Thin array (512x512)\n");
  printf("\t-R indicates use the root window\n");
  printf("\t-V indicates use Very Thin array (256x256)\n");
  printf("\t-m # indicates a minimum color index of # (0-255)\n");
  printf("\t-o file will save the output as 'file' in PPM format\n");
  printf("\t-w # indicates a window width of #\n");
  printf("\t-h # indicates a window height of #\n");
  printf("\t-u produces this message\n");
  printf("During display :\n");
  printf("\t'f' or 'F' will save the picture as a PPM file\n");
  printf("\t'+' will increment and '-' decrement the minimum color index\n");
  printf("\t'>' will increment and '<' decrement the sea level\n");
  printf("\t'0' - '9' will set the sea level to 0.0 - 0.9\n");
  printf("\t'r' or 's' will spin the color wheel forwards or backwards\n");
  printf("\t'W' will increment and 'w' decrement the color map selection\n");
  printf("\t'?' or 'h' will display the usage message\n");
  printf("\t'q' or 'Q' will quit\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf51(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf86(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb9(%rip),%rdi
call   1030 <printf@plt>
lea    0xfda(%rip),%rdi
call   1030 <printf@plt>
lea    0x1002(%rip),%rdi
call   1030 <printf@plt>
lea    0x102d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1046(%rip),%rdi
call   1030 <printf@plt>
lea    0x1060(%rip),%rdi
call   1030 <printf@plt>
lea    0x106f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1075(%rip),%rdi
call   1030 <printf@plt>
lea    0x109a(%rip),%rdi
call   1030 <printf@plt>
lea    0x10cd(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f6(%rip),%rdi
call   1030 <printf@plt>
lea    0x111a(%rip),%rdi
call   1030 <printf@plt>
lea    0x114b(%rip),%rdi
call   1030 <printf@plt>
lea    0x117e(%rip),%rdi
call   1030 <printf@plt>
lea    0x119e(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0xf00(%rip),%rdi
call   1030 <puts@plt>
lea    0xf10(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf41(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf74(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa5(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc5(%rip),%rdi
call   1030 <puts@plt>
lea    0xfec(%rip),%rdi
call   1030 <puts@plt>
lea    0x1016(%rip),%rdi
call   1030 <puts@plt>
lea    0x102e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1047(%rip),%rdi
call   1030 <puts@plt>
lea    0x1055(%rip),%rdi
call   1030 <puts@plt>
lea    0x105a(%rip),%rdi
call   1030 <puts@plt>
lea    0x107e(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b0(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d8(%rip),%rdi
call   1030 <puts@plt>
lea    0x10fb(%rip),%rdi
call   1030 <puts@plt>
lea    0x112b(%rip),%rdi
call   1030 <puts@plt>
lea    0x115d(%rip),%rdi
call   1030 <puts@plt>
lea    0x117c(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [52 x i8] c"Usage: xtopo [-o file][-dsuFRTV][-S level][-H beta]\00"
@.str.1 = [29 x i8] c"[-m #][-w width][-h height]\0A\00"
@.str.2 = [41 x i8] c"\0AWhere :\0A\090 < beta < 1 (default is 0.5)\0A\00"
@.str.3 = [34 x i8] c"\090 < level < 1 (default is 0.35)\0A\00"
@.str.4 = [25 x i8] c"\09-d indicates demo mode\0A\00"
@.str.5 = [52 x i8] c"\09-s indicates spin color wheel when done computing\0A\00"
@.str.6 = [40 x i8] c"\09-T indicates use Thin array (512x512)\0A\00"
@.str.7 = [35 x i8] c"\09-R indicates use the root window\0A\00"
@.str.8 = [45 x i8] c"\09-V indicates use Very Thin array (256x256)\0A\00"
@.str.9 = [52 x i8] c"\09-m # indicates a minimum color index of # (0-255)\0A\00"
@.str.10 = [55 x i8] c"\09-o file will save the output as 'file' in PPM format\0A\00"
@.str.11 = [37 x i8] c"\09-w # indicates a window width of #\0A\00"
@.str.12 = [38 x i8] c"\09-h # indicates a window height of #\0A\00"
@.str.13 = [27 x i8] c"\09-u produces this message\0A\00"
@.str.14 = [18 x i8] c"During display :\0A\00"
@.str.15 = [49 x i8] c"\09'f' or 'F' will save the picture as a PPM file\0A\00"
@.str.16 = [63 x i8] c"\09'+' will increment and '-' decrement the minimum color index\0A\00"
@.str.17 = [53 x i8] c"\09'>' will increment and '<' decrement the sea level\0A\00"
@.str.18 = [48 x i8] c"\09'0' - '9' will set the sea level to 0.0 - 0.9\0A\00"
@.str.19 = [61 x i8] c"\09'r' or 's' will spin the color wheel forwards or backwards\0A\00"
@.str.20 = [63 x i8] c"\09'W' will increment and 'w' decrement the color map selection\0A\00"
@.str.21 = [44 x i8] c"\09'?' or 'h' will display the usage message\0A\00"
@.str.22 = [23 x i8] c"\09'q' or 'Q' will quit\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.22, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [52 x i8] c"Usage: xtopo [-o file][-dsuFRTV][-S level][-H beta]\00"
@str = [28 x i8] c"[-m #][-w width][-h height]\00"
@str.23 = [40 x i8] c"\0AWhere :\0A\090 < beta < 1 (default is 0.5)\00"
@str.24 = [33 x i8] c"\090 < level < 1 (default is 0.35)\00"
@str.25 = [24 x i8] c"\09-d indicates demo mode\00"
@str.26 = [51 x i8] c"\09-s indicates spin color wheel when done computing\00"
@str.27 = [39 x i8] c"\09-T indicates use Thin array (512x512)\00"
@str.28 = [34 x i8] c"\09-R indicates use the root window\00"
@str.29 = [44 x i8] c"\09-V indicates use Very Thin array (256x256)\00"
@str.30 = [51 x i8] c"\09-m # indicates a minimum color index of # (0-255)\00"
@str.31 = [54 x i8] c"\09-o file will save the output as 'file' in PPM format\00"
@str.32 = [36 x i8] c"\09-w # indicates a window width of #\00"
@str.33 = [37 x i8] c"\09-h # indicates a window height of #\00"
@str.34 = [26 x i8] c"\09-u produces this message\00"
@str.35 = [17 x i8] c"During display :\00"
@str.36 = [48 x i8] c"\09'f' or 'F' will save the picture as a PPM file\00"
@str.37 = [62 x i8] c"\09'+' will increment and '-' decrement the minimum color index\00"
@str.38 = [52 x i8] c"\09'>' will increment and '<' decrement the sea level\00"
@str.39 = [47 x i8] c"\09'0' - '9' will set the sea level to 0.0 - 0.9\00"
@str.40 = [60 x i8] c"\09'r' or 's' will spin the color wheel forwards or backwards\00"
@str.41 = [62 x i8] c"\09'W' will increment and 'w' decrement the color map selection\00"
@str.42 = [43 x i8] c"\09'?' or 'h' will display the usage message\00"
@str.43 = [22 x i8] c"\09'q' or 'Q' will quit\00"
define void @usage() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.23, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.24, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.25, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.26, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.27, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.28, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.29, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.30, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.31, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.32, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.33, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.34, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.35, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.36, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.37, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.38, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.39, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.40, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.41, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.42, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.43, i64 0, i64 0))
ret void
}