#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ *stdout;
void print_usage() {
  FILE *f = stdout;
  fprintf(f, "usage: sunwait [options] [sun|civ|naut|astr] [up|down] "
             "[+/-offset] [latitude] [longitude]\n\n");
  fprintf(f, "latitude/longigude are expressed in floating-point degrees, with "
             "[NESW] appended\n");
  fprintf(f, "\nexample: sunwait sun up -0:15:10 38.794433N 77.069450W\n");
  fprintf(f, "This example will wait until 15 minutes and 10 seconds before "
             "the sun rises in Alexandria, VA\n");
  fprintf(f, "\nThe offset is expressed as MM, or HH:MM, or HH:MM:SS,\n");
  fprintf(f, "and indicates the additional amount of time to wait after \n");
  fprintf(f, "(or before, if negative) the specified event.\n\n");
  fprintf(f, "options: -p prints a summary of relevant times\n");
  fprintf(
      f,
      "         -z changes the printout to Universal Coordinated Time (UTC)\n");
  fprintf(f, "         -V prints the version number\n");
  fprintf(f, "         -v increases verbosity\n");
  fprintf(f,
          "\nThese options are useful mainly when used with the '-p' option\n");
  fprintf(f, "         -y YYYY sets the year to calculate for\n");
  fprintf(f, "         -m MM sets the month to calculate for\n");
  fprintf(f, "         -d DD sets the day-of-month to calculate for\n\n");
  fprintf(f, "         -h prints this help\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ec1(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf1b(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf5d(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf86(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xfd5(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xffd(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1029(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1049(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1069(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x109f(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x10b6(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x10c7(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x10f8(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1119(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1139(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1161(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rbx
mov    0x2ec8(%rip),%rax
mov    (%rax),%rbx
lea    0xede(%rip),%rdi
mov    $0x5b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xf21(%rip),%rdi
mov    $0x51,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xf5a(%rip),%rdi
mov    $0x38,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xf7a(%rip),%rdi
mov    $0x5e,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xfc0(%rip),%rdi
mov    $0x37,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xfdf(%rip),%rdi
mov    $0x3b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0x1002(%rip),%rdi
mov    $0x2f,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0x1019(%rip),%rdi
mov    $0x2f,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0x1030(%rip),%rdi
mov    $0x45,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0x105d(%rip),%rdi
mov    $0x26,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0x106b(%rip),%rdi
mov    $0x20,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0x1073(%rip),%rdi
mov    $0x40,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0x109b(%rip),%rdi
mov    $0x30,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0x10b3(%rip),%rdi
mov    $0x2f,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0x10ca(%rip),%rdi
mov    $0x37,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0x10e9(%rip),%rdi
mov    $0x1d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1030 <fwrite@plt>

LLVM IR (-O0):
@stdout = global i32* null
@.str = [92 x i8] c"usage: sunwait [options] [sun|civ|naut|astr] [up|down] [+/-offset] [latitude] [longitude]\0A\0A\00"
@.str.1 = [82 x i8] c"latitude/longigude are expressed in floating-point degrees, with [NESW] appended\0A\00"
@.str.2 = [57 x i8] c"\0Aexample: sunwait sun up -0:15:10 38.794433N 77.069450W\0A\00"
@.str.3 = [95 x i8] c"This example will wait until 15 minutes and 10 seconds before the sun rises in Alexandria, VA\0A\00"
@.str.4 = [56 x i8] c"\0AThe offset is expressed as MM, or HH:MM, or HH:MM:SS,\0A\00"
@.str.5 = [60 x i8] c"and indicates the additional amount of time to wait after \0A\00"
@.str.6 = [48 x i8] c"(or before, if negative) the specified event.\0A\0A\00"
@.str.7 = [48 x i8] c"options: -p prints a summary of relevant times\0A\00"
@.str.8 = [70 x i8] c" -z changes the printout to Universal Coordinated Time (UTC)\0A\00"
@.str.9 = [39 x i8] c" -V prints the version number\0A\00"
@.str.10 = [33 x i8] c" -v increases verbosity\0A\00"
@.str.11 = [65 x i8] c"\0AThese options are useful mainly when used with the '-p' option\0A\00"
@.str.12 = [49 x i8] c" -y YYYY sets the year to calculate for\0A\00"
@.str.13 = [48 x i8] c" -m MM sets the month to calculate for\0A\00"
@.str.14 = [56 x i8] c" -d DD sets the day-of-month to calculate for\0A\0A\00"
@.str.15 = [30 x i8] c" -h prints this help\0A\00"
define void @print_usage() {
%1 = alloca i32*
%2 = load i32*, i32** @stdout
store i32* %2, i32** %1
%3 = load i32*, i32** %1
%4 = call i32 @fprintf(i32* %3, i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str, i64 0, i64 0))
%5 = load i32*, i32** %1
%6 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32*, i32** %1
%8 = call i32 @fprintf(i32* %7, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32*, i32** %1
%10 = call i32 @fprintf(i32* %9, i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32*, i32** %1
%12 = call i32 @fprintf(i32* %11, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0))
%13 = load i32*, i32** %1
%14 = call i32 @fprintf(i32* %13, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i64 0, i64 0))
%15 = load i32*, i32** %1
%16 = call i32 @fprintf(i32* %15, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
%17 = load i32*, i32** %1
%18 = call i32 @fprintf(i32* %17, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
%19 = load i32*, i32** %1
%20 = call i32 @fprintf(i32* %19, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.8, i64 0, i64 0))
%21 = load i32*, i32** %1
%22 = call i32 @fprintf(i32* %21, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0))
%23 = load i32*, i32** %1
%24 = call i32 @fprintf(i32* %23, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0))
%25 = load i32*, i32** %1
%26 = call i32 @fprintf(i32* %25, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0))
%27 = load i32*, i32** %1
%28 = call i32 @fprintf(i32* %27, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.12, i64 0, i64 0))
%29 = load i32*, i32** %1
%30 = call i32 @fprintf(i32* %29, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.13, i64 0, i64 0))
%31 = load i32*, i32** %1
%32 = call i32 @fprintf(i32* %31, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0))
%33 = load i32*, i32** %1
%34 = call i32 @fprintf(i32* %33, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stdout = global i32* null
@.str = [92 x i8] c"usage: sunwait [options] [sun|civ|naut|astr] [up|down] [+/-offset] [latitude] [longitude]\0A\0A\00"
@.str.1 = [82 x i8] c"latitude/longigude are expressed in floating-point degrees, with [NESW] appended\0A\00"
@.str.2 = [57 x i8] c"\0Aexample: sunwait sun up -0:15:10 38.794433N 77.069450W\0A\00"
@.str.3 = [95 x i8] c"This example will wait until 15 minutes and 10 seconds before the sun rises in Alexandria, VA\0A\00"
@.str.4 = [56 x i8] c"\0AThe offset is expressed as MM, or HH:MM, or HH:MM:SS,\0A\00"
@.str.5 = [60 x i8] c"and indicates the additional amount of time to wait after \0A\00"
@.str.6 = [48 x i8] c"(or before, if negative) the specified event.\0A\0A\00"
@.str.7 = [48 x i8] c"options: -p prints a summary of relevant times\0A\00"
@.str.8 = [70 x i8] c" -z changes the printout to Universal Coordinated Time (UTC)\0A\00"
@.str.9 = [39 x i8] c" -V prints the version number\0A\00"
@.str.10 = [33 x i8] c" -v increases verbosity\0A\00"
@.str.11 = [65 x i8] c"\0AThese options are useful mainly when used with the '-p' option\0A\00"
@.str.12 = [49 x i8] c" -y YYYY sets the year to calculate for\0A\00"
@.str.13 = [48 x i8] c" -m MM sets the month to calculate for\0A\00"
@.str.14 = [56 x i8] c" -d DD sets the day-of-month to calculate for\0A\0A\00"
@.str.15 = [30 x i8] c" -h prints this help\0A\00"
define void @print_usage() {
%1 = load i32*, i32** @stdout
%2 = tail call i64 @fwrite(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str, i64 0, i64 0), i64 91, i64 1, i32* %1)
%3 = tail call i64 @fwrite(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.1, i64 0, i64 0), i64 81, i64 1, i32* %1)
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0), i64 56, i64 1, i32* %1)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.3, i64 0, i64 0), i64 94, i64 1, i32* %1)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0), i64 55, i64 1, i32* %1)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i64 0, i64 0), i64 59, i64 1, i32* %1)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0), i64 47, i64 1, i32* %1)
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0), i64 47, i64 1, i32* %1)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.8, i64 0, i64 0), i64 69, i64 1, i32* %1)
%11 = tail call i64 @fwrite(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), i64 38, i64 1, i32* %1)
%12 = tail call i64 @fwrite(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i64 32, i64 1, i32* %1)
%13 = tail call i64 @fwrite(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0), i64 64, i64 1, i32* %1)
%14 = tail call i64 @fwrite(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.12, i64 0, i64 0), i64 48, i64 1, i32* %1)
%15 = tail call i64 @fwrite(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.13, i64 0, i64 0), i64 47, i64 1, i32* %1)
%16 = tail call i64 @fwrite(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0), i64 55, i64 1, i32* %1)
%17 = tail call i64 @fwrite(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i64 29, i64 1, i32* %1)
ret void
}