#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*/ print_version();
int /*<<< orphan*/ printf(char *, char const *);
void usage(const char *s) {
  print_version();
  printf(
      "usage: %s [OPTIONS] <window>\n"
      "   <window> := <center> | <bbox>\n"
      "   <bbox>   := <left lower>:<right upper>\n"
      "   <left lower> := <coords>\n"
      "   <right upper> := <coords>\n"
      "   <center> := <coords>:<size>\n"
      "   <coords> := <lat>:<lon>\n"
      "   <size>   := <scale> | <length>'d' | <length>'m'\n"
      "               <scale> Scale of chart.\n"
      "               <length> Length of mean latitude in either degrees ('d') "
      "or\n"
      "                        nautical miles ('m')\n"
      "   -a .................. Render all nodes, otherwise only nodes which "
      "are\n"
      "                         on the page are rendered.\n"
      "   -B <border> ......... Add an additional border to the page.\n"
      "   -b <color> .......... Choose background color ('white' is default).\n"
      "   -D .................. Increase verbosity (can be specified multiple "
      "times).\n"
      "   -d <density> ........ Set image density (300 is default).\n"
      "   -f .................. Use loading filter.\n"
      "   -g <grd>[:<t>[:
]]  Distance of grid/ticks/subticks in minutes.\n"
      "   -G .................. Do not generate grid nodes/ways.\n"
      "   -i <osm input> ...... OSM input data (default is stdin).\n"
      "   -k <filename> ....... Generate KAP file.\n"
      "   -K <filename> ....... Generate KAP header file.\n"
      "   -L <logfile> ........ Save log output to <logfile>.\n"
      "   -l .................. Select landscape output. Only useful with "
      "option -P.\n"
      "   -M .................. Input file is memory mapped (default).\n"
      "   -m .................. Input file is read into heap memory.\n"
      "   -N <offset> ......... Add numerical <offset> to all IDs in output "
      "data.\n"
      "   -n .................. Output IDs as positive values only.\n"
      "   -r <rules file> ..... Rules file ('rules.osm' is default).\n"
      "                         Set <rules file> to 'none' to run without "
      "rules.\n"
      "   -R <file> ........... Output all rules to <file>.\n"
      "   -s <img scale> ...... Set global image scale (default = 1).\n"
      "   -t <title> .......... Set descriptional chart title.\n"
      "   -T <tile_info> ...... Create tiles.\n"
      "      <tile_info> := <zoom_lo> [ '-' <zoom_hi> ] ':' <tile_path> [ ':' "
      "<file_type> ]\n"
      "      <file_type> := 'png' | 'jpg'\n"
      "   -o <image file> ..... Name of output file. The extensions determines "
      "the output format.\n"
      "                         Currently supported formats: .PDF, .PNG, "
      ".SVG.\n"
      "   -O <pdf file> ....... Filename of output PDF file (DEPRECATED).\n"
      "   -p <projection> ..... Chart projection, either 'mercator' (default) "
      "or 'adams2'.\n"
      "   -P <page format> .... Select output page format.\n"
      "   -u .................. Output URLs suitable for OSM data download "
      "and\n"
      "                         exit.\n"
      "   -V .................. Show chart parameters and exit.\n"
      "   -v .................. Print version and exit.\n"
      "   -w <osm file> ....... Output OSM data to file.\n",
      s);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <print_version@plt>
mov    -0x8(%rbp),%rsi
lea    0xec2(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <print_version@plt>
lea    0xece(%rip),%rdi
mov    %rbx,%rsi
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [2643 x i8] c"usage: %s [OPTIONS] <window>\0A <window> := <center> | <bbox>\0A <bbox> := <left lower>:<right upper>\0A <left lower> := <coords>\0A <right upper> := <coords>\0A <center> := <coords>:<size>\0A <coords> := <lat>:<lon>\0A <size> := <scale> | <length>'d' | <length>'m'\0A <scale> Scale of chart.\0A <length> Length of mean latitude in either degrees ('d') or\0A nautical miles ('m')\0A -a .................. Render all nodes, otherwise only nodes which are\0A on the page are rendered.\0A -B <border> ......... Add an additional border to the page.\0A -b <color> .......... Choose background color ('white' is default).\0A -D .................. Increase verbosity (can be specified multiple times).\0A -d <density> ........ Set image density (300 is default).\0A -f .................. Use loading filter.\0A -g <grd>[:<t>[:
]] Distance of grid/ticks/subticks in minutes.\0A -G .................. Do not generate grid nodes/ways.\0A -i <osm input> ...... OSM input data (default is stdin).\0A -k <filename> ....... Generate KAP file.\0A -K <filename> ....... Generate KAP header file.\0A -L <logfile> ........ Save log output to <logfile>.\0A -l .................. Select landscape output. Only useful with option -P.\0A -M .................. Input file is memory mapped (default).\0A -m .................. Input file is read into heap memory.\0A -N <offset> ......... Add numerical <offset> to all IDs in output data.\0A -n .................. Output IDs as positive values only.\0A -r <rules file> ..... Rules file ('rules.osm' is default).\0A Set <rules file> to 'none' to run without rules.\0A -R <file> ........... Output all rules to <file>.\0A -s <img scale> ...... Set global image scale (default = 1).\0A -t <title> .......... Set descriptional chart title.\0A -T <tile_info> ...... Create tiles.\0A <tile_info> := <zoom_lo> [ '-' <zoom_hi> ] ':' <tile_path> [ ':' <file_type> ]\0A <file_type> := 'png' | 'jpg'\0A -o <image file> ..... Name of output file. The extensions determines the output format.\0A Currently supported formats: .PDF, .PNG, .SVG.\0A -O <pdf file> ....... Filename of output PDF file (DEPRECATED).\0A -p <projection> ..... Chart projection, either 'mercator' (default) or 'adams2'.\0A -P <page format> .... Select output page format.\0A -u .................. Output URLs suitable for OSM data download and\0A exit.\0A -V .................. Show chart parameters and exit.\0A -v .................. Print version and exit.\0A -w <osm file> ....... Output OSM data to file.\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (...) @print_version()
%4 = load i8*, i8** %2
%5 = call i32 @printf(i8* getelementptr inbounds ([2643 x i8], [2643 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@.str = [2643 x i8] c"usage: %s [OPTIONS] <window>\0A <window> := <center> | <bbox>\0A <bbox> := <left lower>:<right upper>\0A <left lower> := <coords>\0A <right upper> := <coords>\0A <center> := <coords>:<size>\0A <coords> := <lat>:<lon>\0A <size> := <scale> | <length>'d' | <length>'m'\0A <scale> Scale of chart.\0A <length> Length of mean latitude in either degrees ('d') or\0A nautical miles ('m')\0A -a .................. Render all nodes, otherwise only nodes which are\0A on the page are rendered.\0A -B <border> ......... Add an additional border to the page.\0A -b <color> .......... Choose background color ('white' is default).\0A -D .................. Increase verbosity (can be specified multiple times).\0A -d <density> ........ Set image density (300 is default).\0A -f .................. Use loading filter.\0A -g <grd>[:<t>[:
]] Distance of grid/ticks/subticks in minutes.\0A -G .................. Do not generate grid nodes/ways.\0A -i <osm input> ...... OSM input data (default is stdin).\0A -k <filename> ....... Generate KAP file.\0A -K <filename> ....... Generate KAP header file.\0A -L <logfile> ........ Save log output to <logfile>.\0A -l .................. Select landscape output. Only useful with option -P.\0A -M .................. Input file is memory mapped (default).\0A -m .................. Input file is read into heap memory.\0A -N <offset> ......... Add numerical <offset> to all IDs in output data.\0A -n .................. Output IDs as positive values only.\0A -r <rules file> ..... Rules file ('rules.osm' is default).\0A Set <rules file> to 'none' to run without rules.\0A -R <file> ........... Output all rules to <file>.\0A -s <img scale> ...... Set global image scale (default = 1).\0A -t <title> .......... Set descriptional chart title.\0A -T <tile_info> ...... Create tiles.\0A <tile_info> := <zoom_lo> [ '-' <zoom_hi> ] ':' <tile_path> [ ':' <file_type> ]\0A <file_type> := 'png' | 'jpg'\0A -o <image file> ..... Name of output file. The extensions determines the output format.\0A Currently supported formats: .PDF, .PNG, .SVG.\0A -O <pdf file> ....... Filename of output PDF file (DEPRECATED).\0A -p <projection> ..... Chart projection, either 'mercator' (default) or 'adams2'.\0A -P <page format> .... Select output page format.\0A -u .................. Output URLs suitable for OSM data download and\0A exit.\0A -V .................. Show chart parameters and exit.\0A -v .................. Print version and exit.\0A -w <osm file> ....... Output OSM data to file.\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 (...) @print_version()
%3 = tail call i32 @printf(i8* getelementptr inbounds ([2643 x i8], [2643 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}