#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*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
void usage(void) {
  printf("\nseltag formats data on stdin by tag to column format on stdout\n");
  printf("Version %s\n\n", "1.0 150624");
  printf("Example\n");
  printf("seltag [-debug ] [-first_field 2] [-time_adjust 0] -sel  ID=%%s "
         "T=%%s V_MCU=%%s < infile > outfile\n");
  printf(" -sel           colums to extract. Format TAG=%%s\n");
  printf(" -debug\n");
  printf(" -time_adjust   add or del number Sec\n");
  printf("\nExample 1: Extract T\n seltag -sel T=%%s < infile\n");
  printf("Example 2: Extract V_IN, T, RH\n seltag -sel V_IN=%%s T=%%s RH=%%s < "
         "infile\n");
  printf("Example 3: Extract T, RH and adjust -2Hours\n seltag -time_adjust "
         "-7200 -sel T=%%s RH=%%s < infile\n");
  exit(-1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
lea    0xf0e(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0x1059(%rip),%rdi
call   1030 <puts@plt>
lea    0xebc(%rip),%rdi
lea    0xec2(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1078(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb3(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf09(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1058(%rip),%rdi
call   1030 <puts@plt>
lea    0x1054(%rip),%rdi
call   1030 <puts@plt>
lea    0xf16(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf3b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf79(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [65 x i8] c"\0Aseltag formats data on stdin by tag to column format on stdout\0A\00"
@.str.1 = [13 x i8] c"Version %s\0A\0A\00"
@.str.2 = [11 x i8] c"1.0 150624\00"
@.str.3 = [9 x i8] c"Example\0A\00"
@.str.4 = [100 x i8] c"seltag [-debug ] [-first_field 2] [-time_adjust 0] -sel ID=%%s T=%%s V_MCU=%%s < infile > outfile\0A\00"
@.str.5 = [51 x i8] c" -sel colums to extract. Format TAG=%%s\0A\00"
@.str.6 = [9 x i8] c" -debug\0A\00"
@.str.7 = [39 x i8] c" -time_adjust add or del number Sec\0A\00"
@.str.8 = [51 x i8] c"\0AExample 1: Extract T\0A seltag -sel T=%%s < infile\0A\00"
@.str.9 = [76 x i8] c"Example 2: Extract V_IN, T, RH\0A seltag -sel V_IN=%%s T=%%s RH=%%s < infile\0A\00"
@.str.10 = [99 x i8] c"Example 3: Extract T, RH and adjust -2Hours\0A seltag -time_adjust -7200 -sel T=%%s RH=%%s < infile\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.9, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.10, i64 0, i64 0))
%11 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@.str.1 = [13 x i8] c"Version %s\0A\0A\00"
@.str.2 = [11 x i8] c"1.0 150624\00"
@.str.4 = [100 x i8] c"seltag [-debug ] [-first_field 2] [-time_adjust 0] -sel ID=%%s T=%%s V_MCU=%%s < infile > outfile\0A\00"
@.str.5 = [51 x i8] c" -sel colums to extract. Format TAG=%%s\0A\00"
@.str.8 = [51 x i8] c"\0AExample 1: Extract T\0A seltag -sel T=%%s < infile\0A\00"
@.str.9 = [76 x i8] c"Example 2: Extract V_IN, T, RH\0A seltag -sel V_IN=%%s T=%%s RH=%%s < infile\0A\00"
@.str.10 = [99 x i8] c"Example 3: Extract T, RH and adjust -2Hours\0A seltag -time_adjust -7200 -sel T=%%s RH=%%s < infile\0A\00"
@str = [64 x i8] c"\0Aseltag formats data on stdin by tag to column format on stdout\00"
@str.11 = [8 x i8] c"Example\00"
@str.12 = [8 x i8] c" -debug\00"
@str.13 = [38 x i8] c" -time_adjust add or del number Sec\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.11, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([100 x i8], [100 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.12, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.13, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.9, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @.str.10, i64 0, i64 0))
%11 = tail call i32 @exit(i32 -1)
unreachable
}