#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 *, ...);
int usage(char *name) {
  printf("%s %s\n", "teleinfo", "1.0.8");
  printf("Usage is: %s [options]\n", "teleinfo");
  printf("Options are:\n");
  printf("  --tt<y> dev  : open serial dev name\n");
  printf("  --no<l>ock   : do not create serial lock file\n");
  printf("  --<v>erbose  : speak more to user\n");
  printf("  --<h>elp\n");
  printf("<?> indicates the equivalent short option.\n");
  printf("Short options are prefixed by \"-\" instead of by \"--\".\n");
  printf("Example :\n");
  printf("teleinfo -d -y /dev/teleinfo -q \n\tstart teleinfo as a daemon to "
         "continuously add the frame received on port /dev/teleinfo to a mysql "
         "database\n\n");
  printf("teleinfo -y /dev/teleinfo\n\tstart teleinfo display the frame "
         "received from serial port /dev/teleinfo\n\n");
  printf("teleinfo -v\n\tstart teleinfo to wait for a frame, then display it "
         "and exit\n");
  printf("teleinfo -g ADCO\n\tstart teleinfo to wait for a frame, then display "
         "ADCO field value and exit\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
lea    0xedd(%rip),%rdi
lea    0xedd(%rip),%rsi
lea    0xedf(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
lea    0xec1(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1049(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1086(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
lea    0xed8(%rip),%rdi
lea    0xed8(%rip),%rbx
lea    0xeda(%rip),%rdx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed6(%rip),%rdi
call   1030 <puts@plt>
lea    0xed7(%rip),%rdi
call   1030 <puts@plt>
lea    0xef1(%rip),%rdi
call   1030 <puts@plt>
lea    0xf15(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf75(%rip),%rdi
call   1030 <puts@plt>
lea    0xf73(%rip),%rdi
call   1030 <puts@plt>
lea    0xff6(%rip),%rdi
call   1030 <puts@plt>
lea    0x104f(%rip),%rdi
call   1030 <puts@plt>
lea    0x108d(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"%s %s\0A\00"
@.str.1 = [9 x i8] c"teleinfo\00"
@.str.2 = [6 x i8] c"1.0.8\00"
@.str.3 = [24 x i8] c"Usage is: %s [options]\0A\00"
@.str.4 = [14 x i8] c"Options are:\0A\00"
@.str.5 = [39 x i8] c" --tt<y> dev : open serial dev name\0A\00"
@.str.6 = [49 x i8] c" --no<l>ock : do not create serial lock file\0A\00"
@.str.7 = [37 x i8] c" --<v>erbose : speak more to user\0A\00"
@.str.8 = [12 x i8] c" --<h>elp\0A\00"
@.str.9 = [44 x i8] c"<?> indicates the equivalent short option.\0A\00"
@.str.10 = [55 x i8] c"Short options are prefixed by \22-\22 instead of by \22--\22.\0A\00"
@.str.11 = [11 x i8] c"Example :\0A\00"
@.str.12 = [144 x i8] c"teleinfo -d -y /dev/teleinfo -q \0A\09start teleinfo as a daemon to continuously add the frame received on port /dev/teleinfo to a mysql database\0A\0A\00"
@.str.13 = [102 x i8] c"teleinfo -y /dev/teleinfo\0A\09start teleinfo display the frame received from serial port /dev/teleinfo\0A\0A\00"
@.str.14 = [75 x i8] c"teleinfo -v\0A\09start teleinfo to wait for a frame, then display it and exit\0A\00"
@.str.15 = [94 x i8] c"teleinfo -g ADCO\0A\09start teleinfo to wait for a frame, then display ADCO field value and exit\0A\00"
define i32 @usage(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.13, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.14, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.15, i64 0, i64 0))
%18 = load i32, i32* %2
ret i32 %18
}

LLVM IR (-O2):
@.str = [7 x i8] c"%s %s\0A\00"
@.str.1 = [9 x i8] c"teleinfo\00"
@.str.2 = [6 x i8] c"1.0.8\00"
@.str.3 = [24 x i8] c"Usage is: %s [options]\0A\00"
@str = [13 x i8] c"Options are:\00"
@str.16 = [38 x i8] c" --tt<y> dev : open serial dev name\00"
@str.17 = [48 x i8] c" --no<l>ock : do not create serial lock file\00"
@str.18 = [36 x i8] c" --<v>erbose : speak more to user\00"
@str.19 = [11 x i8] c" --<h>elp\00"
@str.20 = [43 x i8] c"<?> indicates the equivalent short option.\00"
@str.21 = [54 x i8] c"Short options are prefixed by \22-\22 instead of by \22--\22.\00"
@str.22 = [10 x i8] c"Example :\00"
@str.23 = [143 x i8] c"teleinfo -d -y /dev/teleinfo -q \0A\09start teleinfo as a daemon to continuously add the frame received on port /dev/teleinfo to a mysql database\0A\00"
@str.24 = [101 x i8] c"teleinfo -y /dev/teleinfo\0A\09start teleinfo display the frame received from serial port /dev/teleinfo\0A\00"
@str.25 = [74 x i8] c"teleinfo -v\0A\09start teleinfo to wait for a frame, then display it and exit\00"
@str.26 = [93 x i8] c"teleinfo -g ADCO\0A\09start teleinfo to wait for a frame, then display ADCO field value and exit\00"
define i32 @usage(i8* nocapture readnone %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([143 x i8], [143 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([101 x i8], [101 x i8]* @str.24, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.25, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.26, i64 0, i64 0))
ret i32 undef
}