#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 print_options(char *strApp) {
  printf("Serial Port Arguments\n");
  printf("\t-b x\t\tBaud Rate(1=9600(Default), 2=19200)\n");
  printf("\t-s dev_name\tSerial Port Device Name(/dev/ttyUSB0 (Default))\n\n");
  printf("Inverter Arguments\n");
  printf("\t-a x\t\tInverter Address(45 (Default))\n");
  printf("\t-l\t\tLook/Scan for Inverter Address (0=Off(Default), 1=On)\n");
  printf("\t-g\t\tGet Inverter Data (0=Off(Default), 1=On)\n\n");
  printf("PVOutput Arguments\n");
  printf("\t-p\t\tPublish Data to PVOutput (0=Off(Default), 1=On)\n");
  printf("\t-i sys_id\tPVOutput System ID\n");
  printf("\t-k api_key\tPVOutput API Key\n\n");
  printf("Restart-On-Failure Arguments\n");
  printf("\t-c\t\tRestart on Failure Flag (0=Off(Default), 1=On)\n");
  printf("\t-c x\t\tMax Number of Failures before Restart(300 (Default))\n");
  printf("\t-e x\t\tHour to start monitoring failures (8 (Default))\n");
  printf("\t-f x\t\tHour to stop monitoring failures (16 (Default))\n\n");
}


x86 assembly (clang, -O0):
<print_options>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf43(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8e(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfba(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe4(%rip),%rdi
call   1030 <printf@plt>
lea    0xff7(%rip),%rdi
call   1030 <printf@plt>
lea    0x100a(%rip),%rdi
call   1030 <printf@plt>
lea    0x101c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1045(%rip),%rdi
call   1030 <printf@plt>
lea    0x1076(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a2(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_options>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef2(%rip),%rdi
call   1030 <puts@plt>
lea    0xf11(%rip),%rdi
call   1030 <puts@plt>
lea    0xf43(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf64(%rip),%rdi
call   1030 <puts@plt>
lea    0xf93(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbd(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe6(%rip),%rdi
call   1030 <puts@plt>
lea    0xff8(%rip),%rdi
call   1030 <puts@plt>
lea    0x100a(%rip),%rdi
call   1030 <puts@plt>
lea    0x101b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1043(%rip),%rdi
call   1030 <puts@plt>
lea    0x1073(%rip),%rdi
call   1030 <puts@plt>
lea    0x109e(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"Serial Port Arguments\0A\00"
@.str.1 = [44 x i8] c"\09-b x\09\09Baud Rate(1=9600(Default), 2=19200)\0A\00"
@.str.2 = [63 x i8] c"\09-s dev_name\09Serial Port Device Name(/dev/ttyUSB0 (Default))\0A\0A\00"
@.str.3 = [20 x i8] c"Inverter Arguments\0A\00"
@.str.4 = [39 x i8] c"\09-a x\09\09Inverter Address(45 (Default))\0A\00"
@.str.5 = [60 x i8] c"\09-l\09\09Look/Scan for Inverter Address (0=Off(Default), 1=On)\0A\00"
@.str.6 = [48 x i8] c"\09-g\09\09Get Inverter Data (0=Off(Default), 1=On)\0A\0A\00"
@.str.7 = [20 x i8] c"PVOutput Arguments\0A\00"
@.str.8 = [54 x i8] c"\09-p\09\09Publish Data to PVOutput (0=Off(Default), 1=On)\0A\00"
@.str.9 = [31 x i8] c"\09-i sys_id\09PVOutput System ID\0A\00"
@.str.10 = [31 x i8] c"\09-k api_key\09PVOutput API Key\0A\0A\00"
@.str.11 = [30 x i8] c"Restart-On-Failure Arguments\0A\00"
@.str.12 = [53 x i8] c"\09-c\09\09Restart on Failure Flag (0=Off(Default), 1=On)\0A\00"
@.str.13 = [61 x i8] c"\09-c x\09\09Max Number of Failures before Restart(300 (Default))\0A\00"
@.str.14 = [56 x i8] c"\09-e x\09\09Hour to start monitoring failures (8 (Default))\0A\00"
@.str.15 = [57 x i8] c"\09-f x\09\09Hour to stop monitoring failures (16 (Default))\0A\0A\00"
define void @print_options(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [22 x i8] c"Serial Port Arguments\00"
@str.16 = [43 x i8] c"\09-b x\09\09Baud Rate(1=9600(Default), 2=19200)\00"
@str.17 = [62 x i8] c"\09-s dev_name\09Serial Port Device Name(/dev/ttyUSB0 (Default))\0A\00"
@str.18 = [19 x i8] c"Inverter Arguments\00"
@str.19 = [38 x i8] c"\09-a x\09\09Inverter Address(45 (Default))\00"
@str.20 = [59 x i8] c"\09-l\09\09Look/Scan for Inverter Address (0=Off(Default), 1=On)\00"
@str.21 = [47 x i8] c"\09-g\09\09Get Inverter Data (0=Off(Default), 1=On)\0A\00"
@str.22 = [19 x i8] c"PVOutput Arguments\00"
@str.23 = [53 x i8] c"\09-p\09\09Publish Data to PVOutput (0=Off(Default), 1=On)\00"
@str.24 = [30 x i8] c"\09-i sys_id\09PVOutput System ID\00"
@str.25 = [30 x i8] c"\09-k api_key\09PVOutput API Key\0A\00"
@str.26 = [29 x i8] c"Restart-On-Failure Arguments\00"
@str.27 = [52 x i8] c"\09-c\09\09Restart on Failure Flag (0=Off(Default), 1=On)\00"
@str.28 = [60 x i8] c"\09-c x\09\09Max Number of Failures before Restart(300 (Default))\00"
@str.29 = [55 x i8] c"\09-e x\09\09Hour to start monitoring failures (8 (Default))\00"
@str.30 = [56 x i8] c"\09-f x\09\09Hour to stop monitoring failures (16 (Default))\0A\00"
define void @print_options(i8* nocapture readnone %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.16, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.17, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.18, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.19, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.20, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.21, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.22, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.23, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.24, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.25, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.26, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.27, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.28, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.30, i64 0, i64 0))
ret void
}