#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*/ I2C_SLAVE;
int /*<<< orphan*/ O_RDWR;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ ioctl(int, int /*<<< orphan*/, int);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int read(int, char *, int);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ write(int, char *, int);
void main() {
  int file;
  char *bus = "/dev/i2c-1";
  if ((file = open(bus, O_RDWR)) < 0) {
    printf("Failed to open the bus. \n");
    exit(1);
  }
  ioctl(file, I2C_SLAVE, 0x45);
  int command = 0x2c06;
  char config[2] = {0};
  config[0] = (command >> 8) & 0xff;
  config[1] = command & 0xff;
  printf("Command 0: 0x%02x\n", config[0]);
  printf("Command 1: 0x%02x\n", config[1]);
  write(file, config, 2);
  sleep(1);
  char data[6] = {0};
  if (read(file, data, 6) != 6) {
    printf("Error : Input/output Error \n");
  } else {
    int temp = (data[0] << 8 | data[1]);
    printf("Field 1: 0x%02x\n", data[0]);
    printf("Field 2: 0x%02x\n", data[1]);
    printf("Field 3: 0x%02x\n", data[2]);
    printf("Field 4: 0x%02x\n", data[3]);
    printf("Field 5: 0x%02x\n", data[4]);
    printf("Field 6: 0x%02x\n", data[5]);
    printf("Temp: %i\n", temp);
    float cTemp = -45 + (175 * temp / 65535.0);
    float fTemp = -49 + (315 * temp / 65535.0);
    float humidity = 100 * (data[3] * 256 + data[4]) / 65535.0;
    printf("Relative Humidity : %.2f RH \n", humidity);
    printf("Temperature in Celsius : %.2f C \n", cTemp);
    printf("Temperature in Fahrenheit : %.2f F \n", fTemp);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    0xe89(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    0x2e4a(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
mov    %eax,-0x4(%rbp)
cmp    $0x0,%eax
jge    11c9 <main+0x49>
lea    0xe6b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x4(%rbp),%edi
mov    0x2e0d(%rip),%rax
mov    (%rax),%esi
mov    $0x45,%edx
call   1060 <ioctl@plt>
movl   $0x2c06,-0x14(%rbp)
lea    -0x16(%rbp),%rdi
xor    %esi,%esi
mov    $0x2,%edx
call   1050 <memset@plt>
mov    -0x14(%rbp),%eax
sar    $0x8,%eax
and    $0xff,%eax
mov    %al,-0x16(%rbp)
mov    -0x14(%rbp),%eax
and    $0xff,%eax
mov    %al,-0x15(%rbp)
movsbl -0x16(%rbp),%esi
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x15(%rbp),%esi
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
lea    -0x16(%rbp),%rsi
mov    $0x2,%edx
call   1030 <write@plt>
mov    $0x1,%edi
call   10a0 <sleep@plt>
lea    -0x1c(%rbp),%rdi
xor    %esi,%esi
mov    $0x6,%edx
call   1050 <memset@plt>
mov    -0x4(%rbp),%edi
lea    -0x1c(%rbp),%rsi
mov    $0x6,%edx
call   1070 <read@plt>
cmp    $0x6,%eax
je     128b <main+0x10b>
lea    0xde4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13de <main+0x25e>
movsbl -0x1c(%rbp),%eax
shl    $0x8,%eax
movsbl -0x1b(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x20(%rbp)
movsbl -0x1c(%rbp),%esi
lea    0xdda(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x1b(%rbp),%esi
lea    0xdd9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x1a(%rbp),%esi
lea    0xdd8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x19(%rbp),%esi
lea    0xdd7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x18(%rbp),%esi
lea    0xdd6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x17(%rbp),%esi
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%esi
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
imul   $0xaf,-0x20(%rbp),%eax
cvtsi2sd %eax,%xmm1
movsd  0xcd5(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xcd9(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
imul   $0x13b,-0x20(%rbp),%eax
cvtsi2sd %eax,%xmm1
movsd  0xca9(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xca5(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
movsbl -0x19(%rbp),%eax
shl    $0x8,%eax
movsbl -0x18(%rbp),%ecx
add    %ecx,%eax
imul   $0x64,%eax,%eax
cvtsi2sd %eax,%xmm0
movsd  0xc74(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd47(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd4e(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd59(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    0x2e59(%rip),%rax
mov    (%rax),%esi
lea    0xe80(%rip),%rdi
call   1080 <open@plt>
test   %eax,%eax
js     137b <main+0x1fb>
mov    %eax,%ebx
mov    0x2e32(%rip),%rax
mov    (%rax),%esi
mov    %ebx,%edi
mov    $0x45,%edx
call   1060 <ioctl@plt>
movw   $0x62c,0x6(%rsp)
lea    0xe59(%rip),%rdi
mov    $0x2c,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe59(%rip),%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x6(%rsp),%rsi
mov    %ebx,%edi
mov    $0x2,%edx
call   1040 <write@plt>
mov    $0x1,%edi
call   10a0 <sleep@plt>
movw   $0x0,0x4(%rsp)
movl   $0x0,(%rsp)
mov    %rsp,%rsi
mov    %ebx,%edi
mov    $0x6,%edx
call   1070 <read@plt>
cmp    $0x6,%eax
jne    1367 <main+0x1e7>
movsbl (%rsp),%esi
mov    %esi,%ebx
shl    $0x8,%ebx
movsbl 0x1(%rsp),%ebp
or     %ebp,%ebx
lea    0xe08(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe0b(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x2(%rsp),%esi
lea    0xe07(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x3(%rsp),%ebp
lea    0xe05(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x4(%rsp),%r14d
lea    0xe00(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x5(%rsp),%esi
lea    0xdfb(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdfe(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
imul   $0xaf,%ebx,%eax
cvtsi2sd %eax,%xmm0
movsd  0xd34(%rip),%xmm1
divsd  %xmm1,%xmm0
addsd  0xd30(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x8(%rsp)
imul   $0x13b,%ebx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  %xmm1,%xmm0
addsd  0xd15(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0xc(%rsp)
shl    $0x8,%ebp
add    %r14d,%ebp
imul   $0x64,%ebp,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd91(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd97(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xda1(%rip),%rdi
mov    $0x1,%al
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
jmp    1050 <printf@plt>
lea    0xdb0(%rip),%rdi
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <puts@plt>
lea    0xdb8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"/dev/i2c-1\00"
@O_RDWR = global i32 0
@.str.1 = [26 x i8] c"Failed to open the bus. \0A\00"
@I2C_SLAVE = global i32 0
@.str.2 = [19 x i8] c"Command 0: 0x%02x\0A\00"
@.str.3 = [19 x i8] c"Command 1: 0x%02x\0A\00"
@.str.4 = [29 x i8] c"Error : Input/output Error \0A\00"
@.str.5 = [17 x i8] c"Field 1: 0x%02x\0A\00"
@.str.6 = [17 x i8] c"Field 2: 0x%02x\0A\00"
@.str.7 = [17 x i8] c"Field 3: 0x%02x\0A\00"
@.str.8 = [17 x i8] c"Field 4: 0x%02x\0A\00"
@.str.9 = [17 x i8] c"Field 5: 0x%02x\0A\00"
@.str.10 = [17 x i8] c"Field 6: 0x%02x\0A\00"
@.str.11 = [10 x i8] c"Temp: %i\0A\00"
@.str.12 = [30 x i8] c"Relative Humidity : %.2f RH \0A\00"
@.str.13 = [34 x i8] c"Temperature in Celsius : %.2f C \0A\00"
@.str.14 = [37 x i8] c"Temperature in Fahrenheit : %.2f F \0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i32
%4 = alloca [2 x i8]
%5 = alloca [6 x i8]
%6 = alloca i32
%7 = alloca float
%8 = alloca float
%9 = alloca float
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8** %2
%10 = load i8*, i8** %2
%11 = load i32, i32* @O_RDWR
%12 = call i32 @open(i8* %10, i32 %11)
store i32 %12, i32* %1
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %0
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 @exit(i32 1)
unreachable
17: ; preds = %0
%18 = load i32, i32* %1
%19 = load i32, i32* @I2C_SLAVE
%20 = call i32 @ioctl(i32 %18, i32 %19, i32 69)
store i32 11270, i32* %3
%21 = bitcast [2 x i8]* %4 to i8*
%22 = load i32, i32* %3
%23 = ashr i32 %22, 8
%24 = and i32 %23, 255
%25 = trunc i32 %24 to i8
%26 = getelementptr inbounds [2 x i8], [2 x i8]* %4, i64 0, i64 0
store i8 %25, i8* %26
%27 = load i32, i32* %3
%28 = and i32 %27, 255
%29 = trunc i32 %28 to i8
%30 = getelementptr inbounds [2 x i8], [2 x i8]* %4, i64 0, i64 1
store i8 %29, i8* %30
%31 = getelementptr inbounds [2 x i8], [2 x i8]* %4, i64 0, i64 0
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %33)
%35 = getelementptr inbounds [2 x i8], [2 x i8]* %4, i64 0, i64 1
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 %37)
%39 = load i32, i32* %1
%40 = getelementptr inbounds [2 x i8], [2 x i8]* %4, i64 0, i64 0
%41 = call i32 @write(i32 %39, i8* %40, i32 2)
%42 = call i32 @sleep(i32 1)
%43 = bitcast [6 x i8]* %5 to i8*
%44 = load i32, i32* %1
%45 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 0
%46 = call i32 @read(i32 %44, i8* %45, i32 6)
%47 = icmp ne i32 %46, 6
br i1 %47, label %48, label %50
48: ; preds = %17
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
br label %118
50: ; preds = %17
%51 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 0
%52 = load i8, i8* %51
%53 = sext i8 %52 to i32
%54 = shl i32 %53, 8
%55 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 1
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
%58 = or i32 %54, %57
store i32 %58, i32* %6
%59 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 0
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %61)
%63 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 1
%64 = load i8, i8* %63
%65 = sext i8 %64 to i32
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 %65)
%67 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 2
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i32 %69)
%71 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 3
%72 = load i8, i8* %71
%73 = sext i8 %72 to i32
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32 %73)
%75 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 4
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i32 %77)
%79 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 5
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i32 %81)
%83 = load i32, i32* %6
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i32 %83)
%85 = load i32, i32* %6
%86 = mul nsw i32 175, %85
%87 = sitofp i32 %86 to double
%88 = fdiv double %87, 6.553500e+04
%89 = fadd double -4.500000e+01, %88
%90 = fptrunc double %89 to float
store float %90, float* %7
%91 = load i32, i32* %6
%92 = mul nsw i32 315, %91
%93 = sitofp i32 %92 to double
%94 = fdiv double %93, 6.553500e+04
%95 = fadd double -4.900000e+01, %94
%96 = fptrunc double %95 to float
store float %96, float* %8
%97 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 3
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = mul nsw i32 %99, 256
%101 = getelementptr inbounds [6 x i8], [6 x i8]* %5, i64 0, i64 4
%102 = load i8, i8* %101
%103 = sext i8 %102 to i32
%104 = add nsw i32 %100, %103
%105 = mul nsw i32 100, %104
%106 = sitofp i32 %105 to double
%107 = fdiv double %106, 6.553500e+04
%108 = fptrunc double %107 to float
store float %108, float* %9
%109 = load float, float* %9
%110 = fpext float %109 to double
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0), double %110)
%112 = load float, float* %7
%113 = fpext float %112 to double
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0), double %113)
%115 = load float, float* %8
%116 = fpext float %115 to double
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i64 0, i64 0), double %116)
br label %118
118: ; preds = %50, %48
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"/dev/i2c-1\00"
@O_RDWR = global i32 0
@I2C_SLAVE = global i32 0
@.str.2 = [19 x i8] c"Command 0: 0x%02x\0A\00"
@.str.3 = [19 x i8] c"Command 1: 0x%02x\0A\00"
@.str.5 = [17 x i8] c"Field 1: 0x%02x\0A\00"
@.str.6 = [17 x i8] c"Field 2: 0x%02x\0A\00"
@.str.7 = [17 x i8] c"Field 3: 0x%02x\0A\00"
@.str.8 = [17 x i8] c"Field 4: 0x%02x\0A\00"
@.str.9 = [17 x i8] c"Field 5: 0x%02x\0A\00"
@.str.10 = [17 x i8] c"Field 6: 0x%02x\0A\00"
@.str.11 = [10 x i8] c"Temp: %i\0A\00"
@.str.12 = [30 x i8] c"Relative Humidity : %.2f RH \0A\00"
@.str.13 = [34 x i8] c"Temperature in Celsius : %.2f C \0A\00"
@.str.14 = [37 x i8] c"Temperature in Fahrenheit : %.2f F \0A\00"
@str = [28 x i8] c"Error : Input/output Error \00"
@str.15 = [25 x i8] c"Failed to open the bus. \00"
define void @main() {
%1 = alloca i16
%2 = alloca [6 x i8]
%3 = load i32, i32* @O_RDWR
%4 = tail call i32 @open(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.15, i64 0, i64 0))
%8 = tail call i32 @exit(i32 1)
unreachable
9: ; preds = %0
%10 = load i32, i32* @I2C_SLAVE
%11 = tail call i32 @ioctl(i32 %4, i32 %10, i32 69)
%12 = bitcast i16* %1 to i8*
store i16 1580, i16* %1
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 44)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 6)
%15 = call i32 @write(i32 %4, i8* %12, i32 2)
%16 = tail call i32 @sleep(i32 1)
%17 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 0
%18 = call i32 @read(i32 %4, i8* %17, i32 6)
%19 = icmp eq i32 %18, 6
br i1 %19, label %22, label %20
20: ; preds = %9
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
br label %71
22: ; preds = %9
%23 = load i8, i8* %17
%24 = sext i8 %23 to i32
%25 = shl nsw i32 %24, 8
%26 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 1
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = or i32 %25, %28
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %24)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 %28)
%32 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 2
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i32 %34)
%36 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 3
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32 %38)
%40 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 4
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i32 %42)
%44 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 5
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i32 %46)
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i32 %29)
%49 = mul nsw i32 %29, 175
%50 = sitofp i32 %49 to double
%51 = fdiv double %50, 6.553500e+04
%52 = fadd double %51, -4.500000e+01
%53 = fptrunc double %52 to float
%54 = mul nsw i32 %29, 315
%55 = sitofp i32 %54 to double
%56 = fdiv double %55, 6.553500e+04
%57 = fadd double %56, -4.900000e+01
%58 = fptrunc double %57 to float
%59 = shl nsw i32 %38, 8
%60 = add nsw i32 %59, %42
%61 = mul nsw i32 %60, 100
%62 = sitofp i32 %61 to double
%63 = fdiv double %62, 6.553500e+04
%64 = fptrunc double %63 to float
%65 = fpext float %64 to double
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0), double %65)
%67 = fpext float %53 to double
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0), double %67)
%69 = fpext float %58 to double
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i64 0, i64 0), double %69)
br label %71
71: ; preds = %22, %20
ret void
}