#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*/ stdout;
int /*<<< orphan*/ uint16_to_batt(unsigned int);
int /*<<< orphan*/ uint16_to_light(unsigned int);
int /*<<< orphan*/ uint16_to_temp(unsigned int);
int main(void) {
  unsigned int i;
  fprintf(stdout,
          "/*\n"
          " * lunix-tables.h\n"
          " *\n"
          " * Machine-generated file. DO NOT EDIT.\n"
          " * See %s instead.\n"
          " *\n"
          " * Instead of doing floating-point in kernelspace,\n"
          " * use the following lookup tables to convert 16-bit\n"
          " * raw measurements to floating point values.\n"
          " */\n"
          "\n"
          "long lookup_temperature[65536] = {\n",
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/dsarlis/OSLab/refs/heads/master/1/src/"
          "mk_lookup_tables.c");
  for (i = 0; i <= 0xFFFC; i += 4) {
    fprintf(stdout, "\t%ld, %ld, %ld, %ld", uint16_to_temp(i),
            uint16_to_temp(i + 1), uint16_to_temp(i + 2),
            uint16_to_temp(i + 3));
    fprintf(stdout, (i != 0xFFFC) ? ",\n" : "\n");
  }
  fprintf(stdout, "};\n\n"
                  "long lookup_voltage[65536] = {\n");
  for (i = 0; i <= 0xFFFC; i += 4) {
    fprintf(stdout, "\t%ld, %ld, %ld, %ld", uint16_to_batt(i),
            uint16_to_batt(i + 1), uint16_to_batt(i + 2),
            uint16_to_batt(i + 3));
    fprintf(stdout, (i != 0xFFFC) ? ",\n" : "\n");
  }
  fprintf(stdout, "};\n\n"
                  "long lookup_light[65536] = {\n");
  for (i = 0; i <= 0xFFFC; i += 4) {
    fprintf(stdout, "\t%ld, %ld, %ld, %ld", uint16_to_light(i),
            uint16_to_light(i + 1), uint16_to_light(i + 2),
            uint16_to_light(i + 3));
    fprintf(stdout, (i != 0xFFFC) ? ",\n" : "\n");
  }
  fprintf(stdout, "};\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e8a(%rip),%rax
mov    (%rax),%edi
lea    0xea1(%rip),%rsi
lea    0xfaf(%rip),%rdx
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xfffc,-0x8(%rbp)
ja     1216 <main+0xd6>
mov    0x2e58(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%edi
call   1050 <uint16_to_temp@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%edi
add    $0x1,%edi
call   1050 <uint16_to_temp@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%edi
add    $0x2,%edi
call   1050 <uint16_to_temp@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
add    $0x3,%edi
call   1050 <uint16_to_temp@plt>
mov    -0x18(%rbp),%edi
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%r8d
mov    %eax,%r9d
lea    0xfd2(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2dfc(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%ecx
lea    0x1018(%rip),%rsi
lea    0xfc5(%rip),%rax
cmp    $0xfffc,%ecx
cmovne %rax,%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x8(%rbp)
jmp    1174 <main+0x34>
mov    0x2dc3(%rip),%rax
mov    (%rax),%edi
lea    0xf99(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xfffc,-0x8(%rbp)
ja     12d6 <main+0x196>
mov    0x2d98(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%edi
call   1060 <uint16_to_batt@plt>
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%edi
add    $0x1,%edi
call   1060 <uint16_to_batt@plt>
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%edi
add    $0x2,%edi
call   1060 <uint16_to_batt@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%edi
add    $0x3,%edi
call   1060 <uint16_to_batt@plt>
mov    -0x28(%rbp),%edi
mov    -0x24(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
mov    %eax,%r9d
lea    0xf12(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d3c(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%ecx
lea    0xf58(%rip),%rsi
lea    0xf05(%rip),%rax
cmp    $0xfffc,%ecx
cmovne %rax,%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x8(%rbp)
jmp    1234 <main+0xf4>
mov    0x2d03(%rip),%rax
mov    (%rax),%edi
lea    0xefd(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xfffc,-0x8(%rbp)
ja     1396 <main+0x256>
mov    0x2cd8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <uint16_to_light@plt>
mov    %eax,-0x34(%rbp)
mov    -0x8(%rbp),%edi
add    $0x1,%edi
call   1030 <uint16_to_light@plt>
mov    %eax,-0x30(%rbp)
mov    -0x8(%rbp),%edi
add    $0x2,%edi
call   1030 <uint16_to_light@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x8(%rbp),%edi
add    $0x3,%edi
call   1030 <uint16_to_light@plt>
mov    -0x38(%rbp),%edi
mov    -0x34(%rbp),%edx
mov    -0x30(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
mov    %eax,%r9d
lea    0xe52(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2c7c(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%ecx
lea    0xe98(%rip),%rsi
lea    0xe45(%rip),%rax
cmp    $0xfffc,%ecx
cmovne %rax,%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x8(%rbp)
jmp    12f4 <main+0x1b4>
mov    0x2c43(%rip),%rax
mov    (%rax),%edi
lea    0xe5f(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    0x2e8e(%rip),%r14
mov    (%r14),%edi
lea    0xea4(%rip),%rsi
lea    0xfb2(%rip),%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    (%r14),%r15d
mov    %ebx,%edi
call   1050 <uint16_to_temp@plt>
mov    %eax,%r12d
lea    0x1(%rbx),%edi
call   1050 <uint16_to_temp@plt>
mov    %eax,%r13d
lea    0x2(%rbx),%edi
call   1050 <uint16_to_temp@plt>
mov    %r14,%rbp
mov    %eax,%r14d
lea    0x3(%rbx),%edi
call   1050 <uint16_to_temp@plt>
mov    %r15d,%edi
lea    0x1060(%rip),%r15
lea    0xff9(%rip),%rsi
mov    %r12d,%edx
lea    0x1003(%rip),%r12
mov    %r13d,%ecx
mov    %r14d,%r8d
mov    %rbp,%r14
mov    %eax,%r9d
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x0(%rbp),%edi
cmp    $0xfffc,%ebx
mov    %r12,%rsi
cmove  %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0x4(%rbx),%eax
cmp    $0xfff9,%ebx
mov    %eax,%ebx
jb     1170 <main+0x30>
mov    (%r14),%edi
lea    0xfc5(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%r14),%ebp
mov    %ebx,%edi
call   1060 <uint16_to_batt@plt>
mov    %eax,%r12d
lea    0x1(%rbx),%edi
call   1060 <uint16_to_batt@plt>
mov    %eax,%r13d
lea    0x2(%rbx),%edi
call   1060 <uint16_to_batt@plt>
mov    %eax,%r15d
lea    0x3(%rbx),%edi
call   1060 <uint16_to_batt@plt>
mov    %ebp,%edi
lea    0xf64(%rip),%rsi
mov    %r12d,%edx
mov    %r13d,%ecx
mov    %r15d,%r8d
mov    %eax,%r9d
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r14),%edi
cmp    $0xfffc,%ebx
lea    0xf55(%rip),%rsi
lea    0xf9a(%rip),%rax
cmove  %rax,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0x4(%rbx),%eax
cmp    $0xfff9,%ebx
mov    %eax,%ebx
jb     1210 <main+0xd0>
mov    (%r14),%edi
lea    0xf53(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    (%r14),%ebp
mov    %ebx,%edi
call   1030 <uint16_to_light@plt>
mov    %eax,%r12d
lea    0x1(%rbx),%edi
call   1030 <uint16_to_light@plt>
mov    %eax,%r13d
lea    0x2(%rbx),%edi
call   1030 <uint16_to_light@plt>
mov    %eax,%r15d
lea    0x3(%rbx),%edi
call   1030 <uint16_to_light@plt>
mov    %ebp,%edi
lea    0xed4(%rip),%rsi
mov    %r12d,%edx
mov    %r13d,%ecx
mov    %r15d,%r8d
mov    %eax,%r9d
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r14),%edi
cmp    $0xfffc,%ebx
lea    0xec5(%rip),%rsi
lea    0xf0a(%rip),%rax
cmove  %rax,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0x4(%rbx),%eax
cmp    $0xfff9,%ebx
mov    %eax,%ebx
jb     12a0 <main+0x160>
mov    (%r14),%edi
lea    0xee5(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [277 x i8] c"/*\0A * lunix-tables.h\0A *\0A * Machine-generated file. DO NOT EDIT.\0A * See %s instead.\0A *\0A * Instead of doing floating-point in kernelspace,\0A * use the following lookup tables to convert 16-bit\0A * raw measurements to floating point values.\0A */\0A\0Along lookup_temperature[65536] = {\0A\00"
@.str.1 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/dsarlis/OSLab/refs/heads/master/1/src/mk_lookup_tables.c\00"
@.str.2 = [20 x i8] c"\09%ld, %ld, %ld, %ld\00"
@.str.3 = [3 x i8] c",\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [36 x i8] c"};\0A\0Along lookup_voltage[65536] = {\0A\00"
@.str.6 = [34 x i8] c"};\0A\0Along lookup_light[65536] = {\0A\00"
@.str.7 = [5 x i8] c"};\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = load i32, i32* @stdout
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([277 x i8], [277 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %5
5: ; preds = %28, %0
%6 = load i32, i32* %2
%7 = icmp ule i32 %6, 65532
br i1 %7, label %8, label %31
8: ; preds = %5
%9 = load i32, i32* @stdout
%10 = load i32, i32* %2
%11 = call i32 @uint16_to_temp(i32 %10)
%12 = load i32, i32* %2
%13 = add i32 %12, 1
%14 = call i32 @uint16_to_temp(i32 %13)
%15 = load i32, i32* %2
%16 = add i32 %15, 2
%17 = call i32 @uint16_to_temp(i32 %16)
%18 = load i32, i32* %2
%19 = add i32 %18, 3
%20 = call i32 @uint16_to_temp(i32 %19)
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %11, i32 %14, i32 %17, i32 %20)
%22 = load i32, i32* @stdout
%23 = load i32, i32* %2
%24 = icmp ne i32 %23, 65532
%25 = zext i1 %24 to i64
%26 = select i1 %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0)
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* %26)
br label %28
28: ; preds = %8
%29 = load i32, i32* %2
%30 = add i32 %29, 4
store i32 %30, i32* %2
br label %5
31: ; preds = %5
%32 = load i32, i32* @stdout
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %2
br label %34
34: ; preds = %57, %31
%35 = load i32, i32* %2
%36 = icmp ule i32 %35, 65532
br i1 %36, label %37, label %60
37: ; preds = %34
%38 = load i32, i32* @stdout
%39 = load i32, i32* %2
%40 = call i32 @uint16_to_batt(i32 %39)
%41 = load i32, i32* %2
%42 = add i32 %41, 1
%43 = call i32 @uint16_to_batt(i32 %42)
%44 = load i32, i32* %2
%45 = add i32 %44, 2
%46 = call i32 @uint16_to_batt(i32 %45)
%47 = load i32, i32* %2
%48 = add i32 %47, 3
%49 = call i32 @uint16_to_batt(i32 %48)
%50 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %40, i32 %43, i32 %46, i32 %49)
%51 = load i32, i32* @stdout
%52 = load i32, i32* %2
%53 = icmp ne i32 %52, 65532
%54 = zext i1 %53 to i64
%55 = select i1 %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0)
%56 = call i32 (i32, i8*, ...) @fprintf(i32 %51, i8* %55)
br label %57
57: ; preds = %37
%58 = load i32, i32* %2
%59 = add i32 %58, 4
store i32 %59, i32* %2
br label %34
60: ; preds = %34
%61 = load i32, i32* @stdout
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %2
br label %63
63: ; preds = %86, %60
%64 = load i32, i32* %2
%65 = icmp ule i32 %64, 65532
br i1 %65, label %66, label %89
66: ; preds = %63
%67 = load i32, i32* @stdout
%68 = load i32, i32* %2
%69 = call i32 @uint16_to_light(i32 %68)
%70 = load i32, i32* %2
%71 = add i32 %70, 1
%72 = call i32 @uint16_to_light(i32 %71)
%73 = load i32, i32* %2
%74 = add i32 %73, 2
%75 = call i32 @uint16_to_light(i32 %74)
%76 = load i32, i32* %2
%77 = add i32 %76, 3
%78 = call i32 @uint16_to_light(i32 %77)
%79 = call i32 (i32, i8*, ...) @fprintf(i32 %67, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %69, i32 %72, i32 %75, i32 %78)
%80 = load i32, i32* @stdout
%81 = load i32, i32* %2
%82 = icmp ne i32 %81, 65532
%83 = zext i1 %82 to i64
%84 = select i1 %82, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0)
%85 = call i32 (i32, i8*, ...) @fprintf(i32 %80, i8* %84)
br label %86
86: ; preds = %66
%87 = load i32, i32* %2
%88 = add i32 %87, 4
store i32 %88, i32* %2
br label %63
89: ; preds = %63
%90 = load i32, i32* @stdout
%91 = call i32 (i32, i8*, ...) @fprintf(i32 %90, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [277 x i8] c"/*\0A * lunix-tables.h\0A *\0A * Machine-generated file. DO NOT EDIT.\0A * See %s instead.\0A *\0A * Instead of doing floating-point in kernelspace,\0A * use the following lookup tables to convert 16-bit\0A * raw measurements to floating point values.\0A */\0A\0Along lookup_temperature[65536] = {\0A\00"
@.str.1 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/dsarlis/OSLab/refs/heads/master/1/src/mk_lookup_tables.c\00"
@.str.2 = [20 x i8] c"\09%ld, %ld, %ld, %ld\00"
@.str.3 = [3 x i8] c",\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [36 x i8] c"};\0A\0Along lookup_voltage[65536] = {\0A\00"
@.str.6 = [34 x i8] c"};\0A\0Along lookup_light[65536] = {\0A\00"
@.str.7 = [5 x i8] c"};\0A\0A\00"
define i32 @main() {
%1 = load i32, i32* @stdout
%2 = tail call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([277 x i8], [277 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.1, i64 0, i64 0))
br label %3
3: ; preds = %0, %3
%4 = phi i32 [ 0, %0 ], [ %18, %3 ]
%5 = load i32, i32* @stdout
%6 = tail call i32 @uint16_to_temp(i32 %4)
%7 = or i32 %4, 1
%8 = tail call i32 @uint16_to_temp(i32 %7)
%9 = or i32 %4, 2
%10 = tail call i32 @uint16_to_temp(i32 %9)
%11 = or i32 %4, 3
%12 = tail call i32 @uint16_to_temp(i32 %11)
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %6, i32 %8, i32 %10, i32 %12)
%14 = load i32, i32* @stdout
%15 = icmp eq i32 %4, 65532
%16 = select i1 %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0)
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* %16)
%18 = add nuw nsw i32 %4, 4
%19 = icmp ult i32 %4, 65529
br i1 %19, label %3, label %20
20: ; preds = %3
%21 = load i32, i32* @stdout
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
br label %23
23: ; preds = %20, %23
%24 = phi i32 [ 0, %20 ], [ %38, %23 ]
%25 = load i32, i32* @stdout
%26 = tail call i32 @uint16_to_batt(i32 %24)
%27 = or i32 %24, 1
%28 = tail call i32 @uint16_to_batt(i32 %27)
%29 = or i32 %24, 2
%30 = tail call i32 @uint16_to_batt(i32 %29)
%31 = or i32 %24, 3
%32 = tail call i32 @uint16_to_batt(i32 %31)
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %26, i32 %28, i32 %30, i32 %32)
%34 = load i32, i32* @stdout
%35 = icmp eq i32 %24, 65532
%36 = select i1 %35, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0)
%37 = tail call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* %36)
%38 = add nuw nsw i32 %24, 4
%39 = icmp ult i32 %24, 65529
br i1 %39, label %23, label %40
40: ; preds = %23
%41 = load i32, i32* @stdout
%42 = tail call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
br label %43
43: ; preds = %40, %43
%44 = phi i32 [ 0, %40 ], [ %58, %43 ]
%45 = load i32, i32* @stdout
%46 = tail call i32 @uint16_to_light(i32 %44)
%47 = or i32 %44, 1
%48 = tail call i32 @uint16_to_light(i32 %47)
%49 = or i32 %44, 2
%50 = tail call i32 @uint16_to_light(i32 %49)
%51 = or i32 %44, 3
%52 = tail call i32 @uint16_to_light(i32 %51)
%53 = tail call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %46, i32 %48, i32 %50, i32 %52)
%54 = load i32, i32* @stdout
%55 = icmp eq i32 %44, 65532
%56 = select i1 %55, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0)
%57 = tail call i32 (i32, i8*, ...) @fprintf(i32 %54, i8* %56)
%58 = add nuw nsw i32 %44, 4
%59 = icmp ult i32 %44, 65529
br i1 %59, label %43, label %60
60: ; preds = %43
%61 = load i32, i32* @stdout
%62 = tail call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}