#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ uiUsage();
void uiHelp() {
  fprintf(stderr, "SolarMax S3000 DB Logger\n");
  fprintf(stderr, "\n");
  uiUsage();
  fprintf(stderr, "\n");
  fprintf(stderr, "Options list with default values:\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "    -c | --config            Config file (overwrite all "
                  "other options)\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "    -h | --help              This message\n");
  fprintf(stderr, "    -V | --version           Print Version and exit\n");
  fprintf(stderr, "\n");
  fprintf(stderr,
          "    -q | --quiet             Disable output (debug level 0)\n");
  fprintf(stderr,
          "    -v | --verbose           Verbose output (debug level 4)\n");
  fprintf(stderr, "    -d | --debug             Debug level (%d)\n", 2);
  fprintf(stderr, "                             0 DISABLE (quiet)\n");
  fprintf(stderr, "                             1 ERROR\n");
  fprintf(stderr, "                             2 WARNING\n");
  fprintf(stderr, "                             3 INFO\n");
  fprintf(stderr, "                             4 DEBUG (verbose)\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "    -a | --inv-addr          Inverter IP Address (%s)\n",
          "172.16.83.2");
  fprintf(stderr, "    -p | --inv-port          Inverter TCP Port (%d)\n",
          12345);
  fprintf(stderr, "    -n | --inv-num           Inverter number (%d)\n", 1);
  fprintf(stderr, "\n");
  fprintf(stderr, "    -k | --query             Logger query (%s)\n",
          "UDC;IDC;UL1;IL1;PAC;PRL;TKK;TNF;KDY;KLD");
  fprintf(stderr,
          "    -i | --interval          Logger interval in seconds (%d)\n", 10);
  fprintf(stderr, "\n");
  fprintf(stderr, "    -s | --mysql-addr        MySQL Server IP Address (%s)\n",
          "127.0.0.1");
  fprintf(stderr, "    -t | --mysql-port        MySQL Server TCP port (%d)\n",
          3306);
  fprintf(stderr, "    -u | --mysql-user        MySQL Server Username (%s)\n",
          "smlgr");
  fprintf(stderr, "    -w | --mysql-password    MySQL Server Password (%s)\n",
          "smlgr");
  fprintf(stderr,
          "    -b | --mysql-database    MySQL Server Database name (%s)\n",
          "smlgr");
  fprintf(stderr, "\n");
  fprintf(stderr, "    -l | --mysql-table       Database table name (%s)\n",
          "invdata");
  fprintf(stderr, "\n");
  fprintf(stderr, "All outputs are on Standard Error.\n");
}


x86 assembly (clang, -O0):
<uiHelp>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e9e(%rip),%rax
mov    (%rax),%edi
lea    0xfd5(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x0,%al
call   1030 <uiUsage@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
lea    0xfb7(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e69(%rip),%rax
mov    (%rax),%edi
lea    0xe9a(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e52(%rip),%rax
mov    (%rax),%edi
lea    0xf89(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e3b(%rip),%rax
mov    (%rax),%edi
lea    0xe8f(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e24(%rip),%rax
mov    (%rax),%edi
lea    0xf5b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
lea    0xea9(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2df6(%rip),%rax
mov    (%rax),%edi
lea    0xebd(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2ddf(%rip),%rax
mov    (%rax),%edi
lea    0xf16(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2dc8(%rip),%rax
mov    (%rax),%edi
lea    0xec4(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2db1(%rip),%rax
mov    (%rax),%edi
lea    0xeea(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d9a(%rip),%rax
mov    (%rax),%edi
lea    0xf10(%rip),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d7e(%rip),%rax
mov    (%rax),%edi
lea    0xf23(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d67(%rip),%rax
mov    (%rax),%edi
lea    0xf3c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d50(%rip),%rax
mov    (%rax),%edi
lea    0xf4b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d39(%rip),%rax
mov    (%rax),%edi
lea    0xf5c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d22(%rip),%rax
mov    (%rax),%edi
lea    0xf6a(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d0b(%rip),%rax
mov    (%rax),%edi
lea    0xe42(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2cf4(%rip),%rax
mov    (%rax),%edi
lea    0xf6c(%rip),%rsi
lea    0xf9c(%rip),%rdx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2cd6(%rip),%rax
mov    (%rax),%edi
lea    0xf91(%rip),%rsi
mov    $0x3039,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2cba(%rip),%rax
mov    (%rax),%edi
lea    0xfaa(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2c9e(%rip),%rax
mov    (%rax),%edi
lea    0xdd5(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2c87(%rip),%rax
mov    (%rax),%edi
lea    0xfaa(%rip),%rsi
lea    0xfd3(%rip),%rdx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2c69(%rip),%rax
mov    (%rax),%edi
lea    0xfe4(%rip),%rsi
mov    $0xa,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2c4d(%rip),%rax
mov    (%rax),%edi
lea    0xd84(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2c36(%rip),%rax
mov    (%rax),%edi
lea    0xfef(%rip),%rsi
lea    0x1023(%rip),%rdx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2c18(%rip),%rax
mov    (%rax),%edi
lea    0x1016(%rip),%rsi
mov    $0xcea,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2bfc(%rip),%rax
mov    (%rax),%edi
lea    0x1033(%rip),%rsi
lea    0x1065(%rip),%rdx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2bde(%rip),%rax
mov    (%rax),%edi
lea    0x1054(%rip),%rsi
lea    0x1047(%rip),%rdx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2bc0(%rip),%rax
mov    (%rax),%edi
lea    0x106f(%rip),%rsi
lea    0x1029(%rip),%rdx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2ba2(%rip),%rax
mov    (%rax),%edi
lea    0xcd9(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2b8b(%rip),%rax
mov    (%rax),%edi
lea    0x1078(%rip),%rsi
lea    0x10a8(%rip),%rdx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2b6d(%rip),%rax
mov    (%rax),%edi
lea    0xca4(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2b56(%rip),%rax
mov    (%rax),%edi
lea    0x1082(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<uiHelp>:
push   %r15
push   %r14
push   %rbx
mov    0x2eb4(%rip),%rbx
mov    (%rbx),%edi
lea    0xecb(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfdb(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
xor    %eax,%eax
call   1030 <uiUsage@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xeaf(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xeb6(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee2(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xefd(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf16(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf43(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf70(%rip),%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf8a(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfaa(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfc0(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfd8(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfed(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1001(%rip),%rsi
lea    0x1031(%rip),%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x102d(%rip),%rsi
mov    $0x3039,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x104d(%rip),%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x105f(%rip),%rsi
lea    0x1088(%rip),%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10a0(%rip),%rsi
mov    $0xa,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10bd(%rip),%rsi
lea    0x10f1(%rip),%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10eb(%rip),%rsi
mov    $0xcea,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x110f(%rip),%rsi
lea    0x1141(%rip),%r15
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1134(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x115a(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1179(%rip),%rsi
lea    0x11a9(%rip),%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1195(%rip),%rsi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [26 x i8] c"SolarMax S3000 DB Logger\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [35 x i8] c"Options list with default values:\0A\00"
@.str.3 = [72 x i8] c" -c | --config Config file (overwrite all other options)\0A\00"
@.str.4 = [43 x i8] c" -h | --help This message\0A\00"
@.str.5 = [53 x i8] c" -V | --version Print Version and exit\0A\00"
@.str.6 = [61 x i8] c" -q | --quiet Disable output (debug level 0)\0A\00"
@.str.7 = [61 x i8] c" -v | --verbose Verbose output (debug level 4)\0A\00"
@.str.8 = [47 x i8] c" -d | --debug Debug level (%d)\0A\00"
@.str.9 = [48 x i8] c" 0 DISABLE (quiet)\0A\00"
@.str.10 = [38 x i8] c" 1 ERROR\0A\00"
@.str.11 = [40 x i8] c" 2 WARNING\0A\00"
@.str.12 = [37 x i8] c" 3 INFO\0A\00"
@.str.13 = [48 x i8] c" 4 DEBUG (verbose)\0A\00"
@.str.14 = [55 x i8] c" -a | --inv-addr Inverter IP Address (%s)\0A\00"
@.str.15 = [12 x i8] c"172.16.83.2\00"
@.str.16 = [53 x i8] c" -p | --inv-port Inverter TCP Port (%d)\0A\00"
@.str.17 = [51 x i8] c" -n | --inv-num Inverter number (%d)\0A\00"
@.str.18 = [48 x i8] c" -k | --query Logger query (%s)\0A\00"
@.str.19 = [40 x i8] c"UDC;IDC;UL1;IL1;PAC;PRL;TKK;TNF;KDY;KLD\00"
@.str.20 = [62 x i8] c" -i | --interval Logger interval in seconds (%d)\0A\00"
@.str.21 = [59 x i8] c" -s | --mysql-addr MySQL Server IP Address (%s)\0A\00"
@.str.22 = [10 x i8] c"127.0.0.1\00"
@.str.23 = [57 x i8] c" -t | --mysql-port MySQL Server TCP port (%d)\0A\00"
@.str.24 = [57 x i8] c" -u | --mysql-user MySQL Server Username (%s)\0A\00"
@.str.25 = [6 x i8] c"smlgr\00"
@.str.26 = [57 x i8] c" -w | --mysql-password MySQL Server Password (%s)\0A\00"
@.str.27 = [62 x i8] c" -b | --mysql-database MySQL Server Database name (%s)\0A\00"
@.str.28 = [55 x i8] c" -l | --mysql-table Database table name (%s)\0A\00"
@.str.29 = [8 x i8] c"invdata\00"
@.str.30 = [36 x i8] c"All outputs are on Standard Error.\0A\00"
define void @uiHelp() {
%1 = load i32, i32* @stderr
%2 = call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 (...) @uiUsage()
%6 = load i32, i32* @stderr
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.7, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.8, i64 0, i64 0), i32 2)
%28 = load i32, i32* @stderr
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.9, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.11, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0))
%36 = load i32, i32* @stderr
%37 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.13, i64 0, i64 0))
%38 = load i32, i32* @stderr
%39 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%40 = load i32, i32* @stderr
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%42 = load i32, i32* @stderr
%43 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.16, i64 0, i64 0), i32 12345)
%44 = load i32, i32* @stderr
%45 = call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.17, i64 0, i64 0), i32 1)
%46 = load i32, i32* @stderr
%47 = call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%48 = load i32, i32* @stderr
%49 = call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.19, i64 0, i64 0))
%50 = load i32, i32* @stderr
%51 = call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.20, i64 0, i64 0), i32 10)
%52 = load i32, i32* @stderr
%53 = call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%54 = load i32, i32* @stderr
%55 = call i32 (i32, i8*, ...) @fprintf(i32 %54, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0))
%56 = load i32, i32* @stderr
%57 = call i32 (i32, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.23, i64 0, i64 0), i32 3306)
%58 = load i32, i32* @stderr
%59 = call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0))
%60 = load i32, i32* @stderr
%61 = call i32 (i32, i8*, ...) @fprintf(i32 %60, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0))
%62 = load i32, i32* @stderr
%63 = call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0))
%64 = load i32, i32* @stderr
%65 = call i32 (i32, i8*, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%66 = load i32, i32* @stderr
%67 = call i32 (i32, i8*, ...) @fprintf(i32 %66, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.29, i64 0, i64 0))
%68 = load i32, i32* @stderr
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%70 = load i32, i32* @stderr
%71 = call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.30, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [26 x i8] c"SolarMax S3000 DB Logger\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [35 x i8] c"Options list with default values:\0A\00"
@.str.3 = [72 x i8] c" -c | --config Config file (overwrite all other options)\0A\00"
@.str.4 = [43 x i8] c" -h | --help This message\0A\00"
@.str.5 = [53 x i8] c" -V | --version Print Version and exit\0A\00"
@.str.6 = [61 x i8] c" -q | --quiet Disable output (debug level 0)\0A\00"
@.str.7 = [61 x i8] c" -v | --verbose Verbose output (debug level 4)\0A\00"
@.str.8 = [47 x i8] c" -d | --debug Debug level (%d)\0A\00"
@.str.9 = [48 x i8] c" 0 DISABLE (quiet)\0A\00"
@.str.10 = [38 x i8] c" 1 ERROR\0A\00"
@.str.11 = [40 x i8] c" 2 WARNING\0A\00"
@.str.12 = [37 x i8] c" 3 INFO\0A\00"
@.str.13 = [48 x i8] c" 4 DEBUG (verbose)\0A\00"
@.str.14 = [55 x i8] c" -a | --inv-addr Inverter IP Address (%s)\0A\00"
@.str.15 = [12 x i8] c"172.16.83.2\00"
@.str.16 = [53 x i8] c" -p | --inv-port Inverter TCP Port (%d)\0A\00"
@.str.17 = [51 x i8] c" -n | --inv-num Inverter number (%d)\0A\00"
@.str.18 = [48 x i8] c" -k | --query Logger query (%s)\0A\00"
@.str.19 = [40 x i8] c"UDC;IDC;UL1;IL1;PAC;PRL;TKK;TNF;KDY;KLD\00"
@.str.20 = [62 x i8] c" -i | --interval Logger interval in seconds (%d)\0A\00"
@.str.21 = [59 x i8] c" -s | --mysql-addr MySQL Server IP Address (%s)\0A\00"
@.str.22 = [10 x i8] c"127.0.0.1\00"
@.str.23 = [57 x i8] c" -t | --mysql-port MySQL Server TCP port (%d)\0A\00"
@.str.24 = [57 x i8] c" -u | --mysql-user MySQL Server Username (%s)\0A\00"
@.str.25 = [6 x i8] c"smlgr\00"
@.str.26 = [57 x i8] c" -w | --mysql-password MySQL Server Password (%s)\0A\00"
@.str.27 = [62 x i8] c" -b | --mysql-database MySQL Server Database name (%s)\0A\00"
@.str.28 = [55 x i8] c" -l | --mysql-table Database table name (%s)\0A\00"
@.str.29 = [8 x i8] c"invdata\00"
@.str.30 = [36 x i8] c"All outputs are on Standard Error.\0A\00"
define void @uiHelp() {
%1 = load i32, i32* @stderr
%2 = tail call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 (...) @uiUsage()
%6 = load i32, i32* @stderr
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.7, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = tail call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.8, i64 0, i64 0), i32 2)
%28 = load i32, i32* @stderr
%29 = tail call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.9, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = tail call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.11, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = tail call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0))
%36 = load i32, i32* @stderr
%37 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.13, i64 0, i64 0))
%38 = load i32, i32* @stderr
%39 = tail call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%40 = load i32, i32* @stderr
%41 = tail call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%42 = load i32, i32* @stderr
%43 = tail call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.16, i64 0, i64 0), i32 12345)
%44 = load i32, i32* @stderr
%45 = tail call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.17, i64 0, i64 0), i32 1)
%46 = load i32, i32* @stderr
%47 = tail call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%48 = load i32, i32* @stderr
%49 = tail call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.19, i64 0, i64 0))
%50 = load i32, i32* @stderr
%51 = tail call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.20, i64 0, i64 0), i32 10)
%52 = load i32, i32* @stderr
%53 = tail call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%54 = load i32, i32* @stderr
%55 = tail call i32 (i32, i8*, ...) @fprintf(i32 %54, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0))
%56 = load i32, i32* @stderr
%57 = tail call i32 (i32, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.23, i64 0, i64 0), i32 3306)
%58 = load i32, i32* @stderr
%59 = tail call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0))
%60 = load i32, i32* @stderr
%61 = tail call i32 (i32, i8*, ...) @fprintf(i32 %60, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0))
%62 = load i32, i32* @stderr
%63 = tail call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0))
%64 = load i32, i32* @stderr
%65 = tail call i32 (i32, i8*, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%66 = load i32, i32* @stderr
%67 = tail call i32 (i32, i8*, ...) @fprintf(i32 %66, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.29, i64 0, i64 0))
%68 = load i32, i32* @stderr
%69 = tail call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%70 = load i32, i32* @stderr
%71 = tail call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.30, i64 0, i64 0))
ret void
}