#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 printUsage() {
  printf("hdc1008 - communicate with HDC1008-sensor via i2c - (c)2015, Thomas "
         "Hangstörfer\n");
  printf("Usage: hdc1008 [param]\n");
  printf(
      "\t-a <address>: address of the device on the i2c-bus (default: 0x40)\n");
  printf("\t-i <bus-num>: number of the i2c-bus (default: 1 -> /dev/i2c-1)\n");
  printf("\t-m <mode>   : mode = 0: Temperature or Humidity is acquired. "
         "(default)\n");
  printf("\t            : mode = 1: Temperature and Humidity are acquired in "
         "sequence, Temperature first.\n");
  printf("\t-e <heat>   : heat = 0: Heater disabled. (default)\n");
  printf("\t            : heat = 1: Heater enabled.\n");
  printf("\t-t : read and print temperature\n");
  printf("\t-h : read and print humidity\n");
  printf("\t-c : read configuration from device. Write config to device "
         "otherwise.\n");
  printf("\t-v : be verbose\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<printUsage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf37(%rip),%rdi
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe2(%rip),%rdi
call   1030 <printf@plt>
lea    0x1036(%rip),%rdi
call   1030 <printf@plt>
lea    0x105f(%rip),%rdi
call   1030 <printf@plt>
lea    0x107d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1093(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a6(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e3(%rip),%rdi
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printUsage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1d(%rip),%rdi
call   1040 <puts@plt>
lea    0xf28(%rip),%rdi
call   1040 <puts@plt>
lea    0xf60(%rip),%rdi
call   1040 <puts@plt>
lea    0xf94(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd0(%rip),%rdi
call   1040 <puts@plt>
lea    0x1023(%rip),%rdi
call   1040 <puts@plt>
lea    0x104b(%rip),%rdi
call   1040 <puts@plt>
lea    0x1068(%rip),%rdi
call   1040 <puts@plt>
lea    0x107d(%rip),%rdi
call   1040 <puts@plt>
lea    0x108f(%rip),%rdi
call   1040 <puts@plt>
lea    0x10cb(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [82 x i8] c"hdc1008 - communicate with HDC1008-sensor via i2c - (c)2015, Thomas Hangst\C3\B6rfer\0A\00"
@.str.1 = [24 x i8] c"Usage: hdc1008 [param]\0A\00"
@.str.2 = [69 x i8] c"\09-a <address>: address of the device on the i2c-bus (default: 0x40)\0A\00"
@.str.3 = [65 x i8] c"\09-i <bus-num>: number of the i2c-bus (default: 1 -> /dev/i2c-1)\0A\00"
@.str.4 = [73 x i8] c"\09-m <mode> : mode = 0: Temperature or Humidity is acquired. (default)\0A\00"
@.str.5 = [96 x i8] c"\09 : mode = 1: Temperature and Humidity are acquired in sequence, Temperature first.\0A\00"
@.str.6 = [53 x i8] c"\09-e <heat> : heat = 0: Heater disabled. (default)\0A\00"
@.str.7 = [42 x i8] c"\09 : heat = 1: Heater enabled.\0A\00"
@.str.8 = [34 x i8] c"\09-t : read and print temperature\0A\00"
@.str.9 = [31 x i8] c"\09-h : read and print humidity\0A\00"
@.str.10 = [73 x i8] c"\09-c : read configuration from device. Write config to device otherwise.\0A\00"
@.str.11 = [18 x i8] c"\09-v : be verbose\0A\00"
@.str.12 = [2 x i8] c"\0A\00"
define void @printUsage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [81 x i8] c"hdc1008 - communicate with HDC1008-sensor via i2c - (c)2015, Thomas Hangst\C3\B6rfer\00"
@str.13 = [23 x i8] c"Usage: hdc1008 [param]\00"
@str.14 = [68 x i8] c"\09-a <address>: address of the device on the i2c-bus (default: 0x40)\00"
@str.15 = [64 x i8] c"\09-i <bus-num>: number of the i2c-bus (default: 1 -> /dev/i2c-1)\00"
@str.16 = [72 x i8] c"\09-m <mode> : mode = 0: Temperature or Humidity is acquired. (default)\00"
@str.17 = [95 x i8] c"\09 : mode = 1: Temperature and Humidity are acquired in sequence, Temperature first.\00"
@str.18 = [52 x i8] c"\09-e <heat> : heat = 0: Heater disabled. (default)\00"
@str.19 = [41 x i8] c"\09 : heat = 1: Heater enabled.\00"
@str.20 = [33 x i8] c"\09-t : read and print temperature\00"
@str.21 = [30 x i8] c"\09-h : read and print humidity\00"
@str.22 = [72 x i8] c"\09-c : read configuration from device. Write config to device otherwise.\00"
@str.23 = [17 x i8] c"\09-v : be verbose\00"
define void @printUsage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @putchar(i32 10)
ret void
}