#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 *, char const *);
int /*<<< orphan*/ puts(char *);
void PrintUsage(const char *ProgramName) {
  printf(("Usage: %s [options] file.jpg ...\n"), ProgramName);
  puts(("-g, --gps file.gpx       Specifies GPX file with GPS data"));
  puts(("-z, --timeadd +/-HH[:MM] Time to add to GPS data to make it match "
        "photos"));
  puts(("-i, --no-interpolation   Disable interpolation between points; "
        "interpolation\n"
        "                         is linear, points rounded if disabled"));
  puts(("-d, --datum DATUM        Specify measurement datum (defaults to "
        "WGS-84)"));
  puts(("-n, --no-write           Do not write the EXIF data. Useful with "
        "--verbose"));
  puts(("-m, --max-dist SECS      Max time outside points that photo will be "
        "matched"));
  puts(
      ("-s, --show               Just show the GPS data from the given files"));
  puts(("-o, --machine            Similar to --show but with machine-readable "
        "output"));
  puts(("-r, --remove             Strip GPS tags from the given files"));
  puts(("-t, --ignore-tracksegs   Interpolate between track segments, too"));
  puts(("-M, --no-mtime           Don't change mtime of modified files"));
  puts(("-f, --fix-datestamps     Fix broken GPS datestamps written with ver. "
        "< 1.5.2"));
  puts(("    --degmins            Write location as DD MM.MM (was default "
        "before v1.5.3)"));
  puts(("-O, --photooffset SECS   Offset added to photo time to make it match "
        "the GPS"));
  puts(("-h, --help               Display usage/help message"));
  puts(("-v, --verbose            Show more detailed output"));
  puts(("-V, --version            Display version information"));
}


x86 assembly (clang, -O0):
<PrintUsage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1040 <printf@plt>
lea    0xedf(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4a(%rip),%rdi
call   1030 <puts@plt>
lea    0xfca(%rip),%rdi
call   1030 <puts@plt>
lea    0x1006(%rip),%rdi
call   1030 <puts@plt>
lea    0x1045(%rip),%rdi
call   1030 <puts@plt>
lea    0x1085(%rip),%rdi
call   1030 <puts@plt>
lea    0x10be(%rip),%rdi
call   1030 <puts@plt>
lea    0x10fe(%rip),%rdi
call   1030 <puts@plt>
lea    0x112f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1164(%rip),%rdi
call   1030 <puts@plt>
lea    0x1196(%rip),%rdi
call   1030 <puts@plt>
lea    0x11d7(%rip),%rdi
call   1030 <puts@plt>
lea    0x121b(%rip),%rdi
call   1030 <puts@plt>
lea    0x125c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1284(%rip),%rdi
call   1030 <puts@plt>
lea    0x12ab(%rip),%rdi
call   1030 <puts@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintUsage>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
call   1040 <printf@plt>
lea    0xeeb(%rip),%rdi
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
lea    0xf56(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1012(%rip),%rdi
call   1030 <puts@plt>
lea    0x1051(%rip),%rdi
call   1030 <puts@plt>
lea    0x1091(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ca(%rip),%rdi
call   1030 <puts@plt>
lea    0x110a(%rip),%rdi
call   1030 <puts@plt>
lea    0x113b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1170(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a2(%rip),%rdi
call   1030 <puts@plt>
lea    0x11e3(%rip),%rdi
call   1030 <puts@plt>
lea    0x1227(%rip),%rdi
call   1030 <puts@plt>
lea    0x1268(%rip),%rdi
call   1030 <puts@plt>
lea    0x1290(%rip),%rdi
call   1030 <puts@plt>
lea    0x12b7(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"Usage: %s [options] file.jpg ...\0A\00"
@.str.1 = [58 x i8] c"-g, --gps file.gpx Specifies GPX file with GPS data\00"
@.str.2 = [73 x i8] c"-z, --timeadd +/-HH[:MM] Time to add to GPS data to make it match photos\00"
@.str.3 = [140 x i8] c"-i, --no-interpolation Disable interpolation between points; interpolation\0A is linear, points rounded if disabled\00"
@.str.4 = [72 x i8] c"-d, --datum DATUM Specify measurement datum (defaults to WGS-84)\00"
@.str.5 = [75 x i8] c"-n, --no-write Do not write the EXIF data. Useful with --verbose\00"
@.str.6 = [76 x i8] c"-m, --max-dist SECS Max time outside points that photo will be matched\00"
@.str.7 = [69 x i8] c"-s, --show Just show the GPS data from the given files\00"
@.str.8 = [76 x i8] c"-o, --machine Similar to --show but with machine-readable output\00"
@.str.9 = [61 x i8] c"-r, --remove Strip GPS tags from the given files\00"
@.str.10 = [65 x i8] c"-t, --ignore-tracksegs Interpolate between track segments, too\00"
@.str.11 = [62 x i8] c"-M, --no-mtime Don't change mtime of modified files\00"
@.str.12 = [77 x i8] c"-f, --fix-datestamps Fix broken GPS datestamps written with ver. < 1.5.2\00"
@.str.13 = [80 x i8] c" --degmins Write location as DD MM.MM (was default before v1.5.3)\00"
@.str.14 = [77 x i8] c"-O, --photooffset SECS Offset added to photo time to make it match the GPS\00"
@.str.15 = [52 x i8] c"-h, --help Display usage/help message\00"
@.str.16 = [51 x i8] c"-v, --verbose Show more detailed output\00"
@.str.17 = [53 x i8] c"-V, --version Display version information\00"
define void @PrintUsage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 @puts(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 @puts(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 @puts(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 @puts(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.15, i64 0, i64 0))
%20 = call i32 @puts(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.16, i64 0, i64 0))
%21 = call i32 @puts(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.17, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [34 x i8] c"Usage: %s [options] file.jpg ...\0A\00"
@.str.1 = [58 x i8] c"-g, --gps file.gpx Specifies GPX file with GPS data\00"
@.str.2 = [73 x i8] c"-z, --timeadd +/-HH[:MM] Time to add to GPS data to make it match photos\00"
@.str.3 = [140 x i8] c"-i, --no-interpolation Disable interpolation between points; interpolation\0A is linear, points rounded if disabled\00"
@.str.4 = [72 x i8] c"-d, --datum DATUM Specify measurement datum (defaults to WGS-84)\00"
@.str.5 = [75 x i8] c"-n, --no-write Do not write the EXIF data. Useful with --verbose\00"
@.str.6 = [76 x i8] c"-m, --max-dist SECS Max time outside points that photo will be matched\00"
@.str.7 = [69 x i8] c"-s, --show Just show the GPS data from the given files\00"
@.str.8 = [76 x i8] c"-o, --machine Similar to --show but with machine-readable output\00"
@.str.9 = [61 x i8] c"-r, --remove Strip GPS tags from the given files\00"
@.str.10 = [65 x i8] c"-t, --ignore-tracksegs Interpolate between track segments, too\00"
@.str.11 = [62 x i8] c"-M, --no-mtime Don't change mtime of modified files\00"
@.str.12 = [77 x i8] c"-f, --fix-datestamps Fix broken GPS datestamps written with ver. < 1.5.2\00"
@.str.13 = [80 x i8] c" --degmins Write location as DD MM.MM (was default before v1.5.3)\00"
@.str.14 = [77 x i8] c"-O, --photooffset SECS Offset added to photo time to make it match the GPS\00"
@.str.15 = [52 x i8] c"-h, --help Display usage/help message\00"
@.str.16 = [51 x i8] c"-v, --verbose Show more detailed output\00"
@.str.17 = [53 x i8] c"-V, --version Display version information\00"
define void @PrintUsage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([140 x i8], [140 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.7, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.8, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.10, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.11, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.12, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @.str.13, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.14, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.15, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.16, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.17, i64 0, i64 0))
ret void
}