#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(void) {
  (void)printf("pifacertc [-d nBusDevId] [-i 0|1] [-o option]\n");
  (void)printf("pifacertc [-d nBusDevId] [-i 0|1] [-p] [-u]\n");
  (void)printf("pifacertc [-d nBusDevId] [-i 0|1] [-r] [-w \"...\"]\n");
  (void)printf(
      "pifacertc [-d nBusDevId] [-i 0|1] [-c] [[[[[cc]yy]mm]dd]HH]MM[.ss]\n");
  (void)printf("pifacertc [-d nBusDevId] [-i 0|1] [-s]\n");
  (void)printf("pifacertc [-d nBusDevId] [-i 0|1] [-d]\n\n");
  (void)printf("Set or get the current date/time from the PiFace RTC, or get "
               "or set options.\n\n");
  (void)printf(
      "-b nn              Use the nBusDevId specified (7-bit address)\n");
  (void)printf(
      "-c                 Set the real time clock from the computer clock.\n");
  (void)printf("-d                 Output the date/time as input to the date "
               "command.\n");
  (void)printf("-h                 Prints this help.\n");
  (void)printf(
      "-i 0|1             Use /dev/iic0 or /dev/iic1 (will guess without).\n");
  (void)printf("-o option          Set an option on the HW RTC.\n\nThe "
               "following options are supported\n\n");
  (void)printf("  init      Initialize the RTC, and set the date to the "
               "current date/time\n");
  (void)printf("  bat       Enable battery backup (*)\n");
  (void)printf("  nobat     Disable battery backup (*)\n");
  (void)printf("  batstat   Show the battery status\n");
  (void)printf("  clrnvram  Clear the NVRAM\n");
  (void)printf(
      "  cal       Calibrate the device (write 0x47 to TRIM register)\n");
  (void)printf("  osc       Enable the oscillator (*)\n");
  (void)printf("  noosc     Disable the oscillator (*)\n");
  (void)printf("  oscset    Get the oscillator setting\n");
  (void)printf("  oscstat   Display the oscialltor status\n");
  (void)printf("  pwrstat   Get the power fail status\n");
  (void)printf("  clrpwr    Clear the powerfail status bit if set\n\n");
  (void)printf("Options can be separated with a comma, e.g. \"pifacertc -o "
               "bat,osc\".\n");
  (void)printf("(*) indicates options that can corrupt the RTC if used "
               "incorrectly.\n\n");
  (void)printf("-p                 Print the time that the power was turned "
               "off at or failed\n");
  (void)printf("-r                 Read the contents of the NVRAM from the "
               "Real Time Clock.\n");
  (void)printf("-s                 Set the computer clock from the RTC.\n");
  (void)printf("-u                 Print the time that the power was turned on "
               "or restored\n");
  (void)printf(
      "-w \"...\"           Write to the NVRAM on the Real Time Clock.\n");
}


x86 assembly (clang, -O0):
<Usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
call   1030 <printf@plt>
lea    0xf29(%rip),%rdi
call   1030 <printf@plt>
lea    0xf50(%rip),%rdi
call   1030 <printf@plt>
lea    0xf88(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa4(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
call   1030 <printf@plt>
lea    0x1004(%rip),%rdi
call   1030 <printf@plt>
lea    0x1038(%rip),%rdi
call   1030 <printf@plt>
lea    0x1071(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ac(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c6(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ff(%rip),%rdi
call   1030 <printf@plt>
lea    0x114a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1189(%rip),%rdi
call   1030 <printf@plt>
lea    0x11a4(%rip),%rdi
call   1030 <printf@plt>
lea    0x11c0(%rip),%rdi
call   1030 <printf@plt>
lea    0x11d9(%rip),%rdi
call   1030 <printf@plt>
lea    0x11ea(%rip),%rdi
call   1030 <printf@plt>
lea    0x121e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1239(%rip),%rdi
call   1030 <printf@plt>
lea    0x1255(%rip),%rdi
call   1030 <printf@plt>
lea    0x1271(%rip),%rdi
call   1030 <printf@plt>
lea    0x1290(%rip),%rdi
call   1030 <printf@plt>
lea    0x12ab(%rip),%rdi
call   1030 <printf@plt>
lea    0x12d3(%rip),%rdi
call   1030 <printf@plt>
lea    0x130c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1346(%rip),%rdi
call   1030 <printf@plt>
lea    0x1388(%rip),%rdi
call   1030 <printf@plt>
lea    0x13c9(%rip),%rdi
call   1030 <printf@plt>
lea    0x13f6(%rip),%rdi
call   1030 <printf@plt>
lea    0x1436(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf50(%rip),%rdi
call   1030 <puts@plt>
lea    0xf87(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbe(%rip),%rdi
call   1030 <puts@plt>
lea    0x1000(%rip),%rdi
call   1030 <puts@plt>
lea    0x1033(%rip),%rdi
call   1030 <puts@plt>
lea    0x106b(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a5(%rip),%rdi
call   1030 <puts@plt>
lea    0x10be(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1140(%rip),%rdi
call   1030 <puts@plt>
lea    0x117e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1198(%rip),%rdi
call   1030 <puts@plt>
lea    0x11b3(%rip),%rdi
call   1030 <puts@plt>
lea    0x11cb(%rip),%rdi
call   1030 <puts@plt>
lea    0x11db(%rip),%rdi
call   1030 <puts@plt>
lea    0x120e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1228(%rip),%rdi
call   1030 <puts@plt>
lea    0x1243(%rip),%rdi
call   1030 <puts@plt>
lea    0x125e(%rip),%rdi
call   1030 <puts@plt>
lea    0x127c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1296(%rip),%rdi
call   1030 <puts@plt>
lea    0x12bd(%rip),%rdi
call   1030 <puts@plt>
lea    0x12f5(%rip),%rdi
call   1030 <puts@plt>
lea    0x132e(%rip),%rdi
call   1030 <puts@plt>
lea    0x136f(%rip),%rdi
call   1030 <puts@plt>
lea    0x13af(%rip),%rdi
call   1030 <puts@plt>
lea    0x13db(%rip),%rdi
call   1030 <puts@plt>
lea    0x141a(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [47 x i8] c"pifacertc [-d nBusDevId] [-i 0|1] [-o option]\0A\00"
@.str.1 = [45 x i8] c"pifacertc [-d nBusDevId] [-i 0|1] [-p] [-u]\0A\00"
@.str.2 = [51 x i8] c"pifacertc [-d nBusDevId] [-i 0|1] [-r] [-w \22...\22]\0A\00"
@.str.3 = [68 x i8] c"pifacertc [-d nBusDevId] [-i 0|1] [-c] [[[[[cc]yy]mm]dd]HH]MM[.ss]\0A\00"
@.str.4 = [40 x i8] c"pifacertc [-d nBusDevId] [-i 0|1] [-s]\0A\00"
@.str.5 = [41 x i8] c"pifacertc [-d nBusDevId] [-i 0|1] [-d]\0A\0A\00"
@.str.6 = [79 x i8] c"Set or get the current date/time from the PiFace RTC, or get or set options.\0A\0A\00"
@.str.7 = [64 x i8] c"-b nn Use the nBusDevId specified (7-bit address)\0A\00"
@.str.8 = [69 x i8] c"-c Set the real time clock from the computer clock.\0A\00"
@.str.9 = [71 x i8] c"-d Output the date/time as input to the date command.\0A\00"
@.str.10 = [38 x i8] c"-h Prints this help.\0A\00"
@.str.11 = [69 x i8] c"-i 0|1 Use /dev/iic0 or /dev/iic1 (will guess without).\0A\00"
@.str.12 = [87 x i8] c"-o option Set an option on the HW RTC.\0A\0AThe following options are supported\0A\0A\00"
@.str.13 = [75 x i8] c" init Initialize the RTC, and set the date to the current date/time\0A\00"
@.str.14 = [39 x i8] c" bat Enable battery backup (*)\0A\00"
@.str.15 = [40 x i8] c" nobat Disable battery backup (*)\0A\00"
@.str.16 = [37 x i8] c" batstat Show the battery status\0A\00"
@.str.17 = [29 x i8] c" clrnvram Clear the NVRAM\0A\00"
@.str.18 = [64 x i8] c" cal Calibrate the device (write 0x47 to TRIM register)\0A\00"
@.str.19 = [39 x i8] c" osc Enable the oscillator (*)\0A\00"
@.str.20 = [40 x i8] c" noosc Disable the oscillator (*)\0A\00"
@.str.21 = [40 x i8] c" oscset Get the oscillator setting\0A\00"
@.str.22 = [43 x i8] c" oscstat Display the oscialltor status\0A\00"
@.str.23 = [39 x i8] c" pwrstat Get the power fail status\0A\00"
@.str.24 = [52 x i8] c" clrpwr Clear the powerfail status bit if set\0A\0A\00"
@.str.25 = [69 x i8] c"Options can be separated with a comma, e.g. \22pifacertc -o bat,osc\22.\0A\00"
@.str.26 = [70 x i8] c"(*) indicates options that can corrupt the RTC if used incorrectly.\0A\0A\00"
@.str.27 = [78 x i8] c"-p Print the time that the power was turned off at or failed\0A\00"
@.str.28 = [77 x i8] c"-r Read the contents of the NVRAM from the Real Time Clock.\0A\00"
@.str.29 = [57 x i8] c"-s Set the computer clock from the RTC.\0A\00"
@.str.30 = [76 x i8] c"-u Print the time that the power was turned on or restored\0A\00"
@.str.31 = [63 x i8] c"-w \22...\22 Write to the NVRAM on the Real Time Clock.\0A\00"
define void @Usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.26, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.27, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.28, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.29, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.30, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.31, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [46 x i8] c"pifacertc [-d nBusDevId] [-i 0|1] [-o option]\00"
@str.32 = [44 x i8] c"pifacertc [-d nBusDevId] [-i 0|1] [-p] [-u]\00"
@str.33 = [50 x i8] c"pifacertc [-d nBusDevId] [-i 0|1] [-r] [-w \22...\22]\00"
@str.34 = [67 x i8] c"pifacertc [-d nBusDevId] [-i 0|1] [-c] [[[[[cc]yy]mm]dd]HH]MM[.ss]\00"
@str.35 = [39 x i8] c"pifacertc [-d nBusDevId] [-i 0|1] [-s]\00"
@str.36 = [40 x i8] c"pifacertc [-d nBusDevId] [-i 0|1] [-d]\0A\00"
@str.37 = [78 x i8] c"Set or get the current date/time from the PiFace RTC, or get or set options.\0A\00"
@str.38 = [63 x i8] c"-b nn Use the nBusDevId specified (7-bit address)\00"
@str.39 = [68 x i8] c"-c Set the real time clock from the computer clock.\00"
@str.40 = [70 x i8] c"-d Output the date/time as input to the date command.\00"
@str.41 = [37 x i8] c"-h Prints this help.\00"
@str.42 = [68 x i8] c"-i 0|1 Use /dev/iic0 or /dev/iic1 (will guess without).\00"
@str.43 = [86 x i8] c"-o option Set an option on the HW RTC.\0A\0AThe following options are supported\0A\00"
@str.44 = [74 x i8] c" init Initialize the RTC, and set the date to the current date/time\00"
@str.45 = [38 x i8] c" bat Enable battery backup (*)\00"
@str.46 = [39 x i8] c" nobat Disable battery backup (*)\00"
@str.47 = [36 x i8] c" batstat Show the battery status\00"
@str.48 = [28 x i8] c" clrnvram Clear the NVRAM\00"
@str.49 = [63 x i8] c" cal Calibrate the device (write 0x47 to TRIM register)\00"
@str.50 = [38 x i8] c" osc Enable the oscillator (*)\00"
@str.51 = [39 x i8] c" noosc Disable the oscillator (*)\00"
@str.52 = [39 x i8] c" oscset Get the oscillator setting\00"
@str.53 = [42 x i8] c" oscstat Display the oscialltor status\00"
@str.54 = [38 x i8] c" pwrstat Get the power fail status\00"
@str.55 = [51 x i8] c" clrpwr Clear the powerfail status bit if set\0A\00"
@str.56 = [68 x i8] c"Options can be separated with a comma, e.g. \22pifacertc -o bat,osc\22.\00"
@str.57 = [69 x i8] c"(*) indicates options that can corrupt the RTC if used incorrectly.\0A\00"
@str.58 = [77 x i8] c"-p Print the time that the power was turned off at or failed\00"
@str.59 = [76 x i8] c"-r Read the contents of the NVRAM from the Real Time Clock.\00"
@str.60 = [56 x i8] c"-s Set the computer clock from the RTC.\00"
@str.61 = [75 x i8] c"-u Print the time that the power was turned on or restored\00"
@str.62 = [62 x i8] c"-w \22...\22 Write to the NVRAM on the Real Time Clock.\00"
define void @Usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.32, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.33, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.34, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.35, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.36, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.37, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.38, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.39, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.40, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.41, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.42, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.43, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.44, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.45, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.46, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.47, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.48, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.49, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.50, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.51, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.52, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.53, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.54, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.55, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.56, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.57, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.58, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.59, i64 0, i64 0))
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.60, i64 0, i64 0))
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.61, i64 0, i64 0))
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.62, i64 0, i64 0))
ret void
}