#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*/ puts(char *);
int showusage(void) {
  puts("mkpalette <palettescript.txt> [outputfile]");
  puts("If outputfile is not given, palette.dat is assumed");
  puts("\nPalette script format:\n"
       "  A line beginning with # is a comment, otherwise each line contains "
       "none\n"
       "values separated by spaces defining the gradient:\n"
       "\n"
       "  startindex rangesize skip starthue startsat startval endhue endsat "
       "endval\n"
       "\n"
       "Any text after the end of a gradient description is ignored, so may "
       "use it\n"
       "to describe the colour.\n"
       "\n"
       "* 'startindex' specifies the first palette index to write to\n"
       "* 'rangesize' specifies the length of the gradient\n"
       "* 'skip' specifies whether the first and/or last elements of the range "
       "should\n"
       "  be ignored and with 'rangesize' elements interpolated between. This "
       "is so\n"
       "  you can have a gradient starting at (potentially) pure black and "
       "ending at\n"
       "  (potentially) pure white but without wasting a palette index on "
       "those colours\n"
       "  if they already exist, eg. in a grey ramp.\n"
       "  Legal values are 0 (no skipping), 1 (skip start), 2 (skip end),\n"
       "  or 3 (skip start and end).\n"
       "* 'starthue', 'startsat', 'startval' are integers specifying the "
       "beginning\n"
       "  colour in Hue-Saturation-Value format.\n"
       "  'starthue' should be in the range 0-360 indicating a degrees value\n"
       "  'startsat' should be in the range 0-100 indicating a saturation "
       "percentage\n"
       "  'startval' should be in the range 0-100 indicating an intensity "
       "percentage\n"
       "* 'endhue', 'endsat', 'endval' specify the ending colour.");
  return 0;
}


x86 assembly (clang, -O0):
<showusage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf04(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2b(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<showusage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf07(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2e(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [43 x i8] c"mkpalette <palettescript.txt> [outputfile]\00"
@.str.1 = [51 x i8] c"If outputfile is not given, palette.dat is assumed\00"
@.str.2 = [1286 x i8] c"\0APalette script format:\0A A line beginning with # is a comment, otherwise each line contains none\0Avalues separated by spaces defining the gradient:\0A\0A startindex rangesize skip starthue startsat startval endhue endsat endval\0A\0AAny text after the end of a gradient description is ignored, so may use it\0Ato describe the colour.\0A\0A* 'startindex' specifies the first palette index to write to\0A* 'rangesize' specifies the length of the gradient\0A* 'skip' specifies whether the first and/or last elements of the range should\0A be ignored and with 'rangesize' elements interpolated between. This is so\0A you can have a gradient starting at (potentially) pure black and ending at\0A (potentially) pure white but without wasting a palette index on those colours\0A if they already exist, eg. in a grey ramp.\0A Legal values are 0 (no skipping), 1 (skip start), 2 (skip end),\0A or 3 (skip start and end).\0A* 'starthue', 'startsat', 'startval' are integers specifying the beginning\0A colour in Hue-Saturation-Value format.\0A 'starthue' should be in the range 0-360 indicating a degrees value\0A 'startsat' should be in the range 0-100 indicating a saturation percentage\0A 'startval' should be in the range 0-100 indicating an intensity percentage\0A* 'endhue', 'endsat', 'endval' specify the ending colour.\00"
define i32 @showusage() {
%1 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([1286 x i8], [1286 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [43 x i8] c"mkpalette <palettescript.txt> [outputfile]\00"
@.str.1 = [51 x i8] c"If outputfile is not given, palette.dat is assumed\00"
@.str.2 = [1286 x i8] c"\0APalette script format:\0A A line beginning with # is a comment, otherwise each line contains none\0Avalues separated by spaces defining the gradient:\0A\0A startindex rangesize skip starthue startsat startval endhue endsat endval\0A\0AAny text after the end of a gradient description is ignored, so may use it\0Ato describe the colour.\0A\0A* 'startindex' specifies the first palette index to write to\0A* 'rangesize' specifies the length of the gradient\0A* 'skip' specifies whether the first and/or last elements of the range should\0A be ignored and with 'rangesize' elements interpolated between. This is so\0A you can have a gradient starting at (potentially) pure black and ending at\0A (potentially) pure white but without wasting a palette index on those colours\0A if they already exist, eg. in a grey ramp.\0A Legal values are 0 (no skipping), 1 (skip start), 2 (skip end),\0A or 3 (skip start and end).\0A* 'starthue', 'startsat', 'startval' are integers specifying the beginning\0A colour in Hue-Saturation-Value format.\0A 'starthue' should be in the range 0-360 indicating a degrees value\0A 'startsat' should be in the range 0-100 indicating a saturation percentage\0A 'startval' should be in the range 0-100 indicating an intensity percentage\0A* 'endhue', 'endsat', 'endval' specify the ending colour.\00"
define i32 @showusage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([1286 x i8], [1286 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}