#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 buildReadHoldingRegistersPacket(unsigned char *, int, int, int, int);
int buildWriteHoldingRegistersPacket(unsigned char *, int, int, int, int);
float parseFPRegisterResponse(unsigned char *, int /*<<< orphan*/);
int parseIntRegisterResponse(unsigned char *, int /*<<< orphan*/);
short parseShortRegisterResponse(unsigned char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putFPIntoBuffer(unsigned char *, int, double);
int /*<<< orphan*/ putIntIntoBuffer(unsigned char *, int, int);
int /*<<< orphan*/ putShortIntoBuffer(unsigned char *, int, int);
int main() {
  int i;
  printf("Modbus Function tests:\n\n");
  unsigned char sendBuffer[14];
  int startReg = 0;
  int numRegs = 2;
  int unitId = 0;
  int prependZeros = 1;
  int numBytesToRead;
  numBytesToRead = buildReadHoldingRegistersPacket(
      sendBuffer, startReg, numRegs, unitId, prependZeros);
  printf("buildReadHoldingRegistersPacket:\n  sendBuffer: [");
  for (i = 0; i < 13; i++) {
    printf("0x%X, ", sendBuffer[i]);
  }
  printf("0x%X]\n  numBytesToRead: %d\n\n", sendBuffer[13], numBytesToRead);
  unsigned char recBuffer[] = {0x40, 0x0, 0x0, 0x0};
  float fValue = parseFPRegisterResponse(recBuffer, 0);
  printf("parseFPRegister: [0x40, 0x0, 0x0, 0x0] => %f\n\n", fValue);
  recBuffer[0] = 0x0;
  recBuffer[1] = 0x84;
  recBuffer[2] = 0x5F;
  recBuffer[3] = 0xED;
  int iValue = parseIntRegisterResponse(recBuffer, 0);
  printf("parseIntRegister: [0x0, 0x84, 0x5F, 0xED] => %i\n\n", iValue);
  recBuffer[0] = 0x2;
  recBuffer[1] = 0x10;
  short sValue = parseShortRegisterResponse(recBuffer, 0);
  printf("parseShortRegister: [0x2, 0x10] => %i\n\n", sValue);
  startReg = 0;
  numRegs = 5;
  unitId = 0;
  prependZeros = 1;
  unsigned char writeBuffer[25];
  numBytesToRead = buildWriteHoldingRegistersPacket(
      writeBuffer, startReg, numRegs, unitId, prependZeros);
  printf("buildWriteHoldingRegistersPacket:\n  writeBuffer: [");
  for (i = 0; i < 24; i++) {
    printf("0x%X, ", writeBuffer[i]);
  }
  printf("0x%X]\n  numBytesToRead: %d\n\n", writeBuffer[24], numBytesToRead);
  putFPIntoBuffer(writeBuffer, 15, 2.0);
  printf("putFPIntoBuffer: Appended 2.0 to packet.\n\n");
  putIntIntoBuffer(writeBuffer, 19, 8675309);
  printf("putIntIntoBuffer: Appended 8675309 to packet.\n\n");
  putShortIntoBuffer(writeBuffer, 23, 528);
  printf("putShortIntoBuffer: Appended 528 to packet.\n\n");
  printf("Result:\n  writeBuffer: [");
  for (i = 0; i < 24; i++) {
    printf("0x%X, ", writeBuffer[i]);
  }
  printf("0x%X]\n\n", writeBuffer[24]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x1c(%rbp)
movl   $0x2,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x1,-0x28(%rbp)
lea    -0x16(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%r8d
call   1080 <buildReadHoldingRegistersPacket@plt>
mov    %eax,-0x2c(%rbp)
lea    0xe38(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xd,-0x8(%rbp)
jge    1226 <main+0x96>
movslq -0x8(%rbp),%rax
movzbl -0x16(%rbp,%rax,1),%esi
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11f7 <main+0x67>
movzbl -0x9(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xe25(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0xf9b(%rip),%eax
mov    %eax,-0x30(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
call   1090 <parseFPRegisterResponse@plt>
movss  %xmm0,-0x34(%rbp)
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe12(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movb   $0x0,-0x30(%rbp)
movb   $0x84,-0x2f(%rbp)
movb   $0x5f,-0x2e(%rbp)
movb   $0xed,-0x2d(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
call   1050 <parseIntRegisterResponse@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%esi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movb   $0x2,-0x30(%rbp)
movb   $0x10,-0x2f(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
call   1040 <parseShortRegisterResponse@plt>
mov    %ax,-0x3a(%rbp)
movswl -0x3a(%rbp),%esi
lea    0xe1b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x1c(%rbp)
movl   $0x5,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x1,-0x28(%rbp)
lea    -0x60(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%r8d
call   10a0 <buildWriteHoldingRegistersPacket@plt>
mov    %eax,-0x2c(%rbp)
lea    0xe00(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x18,-0x8(%rbp)
jge    133c <main+0x1ac>
movslq -0x8(%rbp),%rax
movzbl -0x60(%rbp,%rax,1),%esi
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    130d <main+0x17d>
movzbl -0x48(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xd0f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x60(%rbp),%rdi
mov    $0xf,%esi
movsd  0xc9e(%rip),%xmm0
call   1030 <putFPIntoBuffer@plt>
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x60(%rbp),%rdi
mov    $0x13,%esi
mov    $0x845fed,%edx
call   10b0 <putIntIntoBuffer@plt>
lea    0xdce(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x60(%rbp),%rdi
mov    $0x17,%esi
mov    $0x210,%edx
call   1070 <putShortIntoBuffer@plt>
lea    0xddd(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xdfd(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x18,-0x8(%rbp)
jge    13fb <main+0x26b>
movslq -0x8(%rbp),%rax
movzbl -0x60(%rbp,%rax,1),%esi
lea    0xc6c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    13cc <main+0x23c>
movzbl -0x48(%rbp),%esi
lea    0xdce(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x38,%rsp
lea    0xf89(%rip),%rdi
call   1050 <puts@plt>
lea    0x26(%rsp),%rdi
xor    %esi,%esi
mov    $0x2,%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
call   1090 <buildReadHoldingRegistersPacket@plt>
mov    %eax,%ebp
lea    0xe30(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x26(%rsp),%esi
lea    0xe4e(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x27(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x28(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x29(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2a(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2b(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2d(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2e(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2f(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x30(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x31(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x32(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x33(%rsp),%esi
lea    0xd8b(%rip),%r14
mov    %r14,%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   1070 <printf@plt>
movl   $0x40,0x34(%rsp)
lea    0x34(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
call   10a0 <parseFPRegisterResponse@plt>
cvtss2sd %xmm0,%xmm0
lea    0xd7a(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movl   $0xed5f8400,0x34(%rsp)
ed
mov    %rbp,%rdi
xor    %esi,%esi
call   1060 <parseIntRegisterResponse@plt>
lea    0xd89(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
movw   $0x1002,0x34(%rsp)
mov    %rbp,%rdi
xor    %esi,%esi
call   1040 <parseShortRegisterResponse@plt>
movswl %ax,%esi
lea    0xd97(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rsp,%r15
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x5,%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
call   10b0 <buildWriteHoldingRegistersPacket@plt>
mov    %eax,%ebp
lea    0xd95(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl (%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x3(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x5(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x6(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x7(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x9(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xa(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xb(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xd(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xe(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xf(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x11(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x12(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x13(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x15(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x16(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x17(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x18(%rsp),%esi
mov    %r14,%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   1070 <printf@plt>
movsd  0xb28(%rip),%xmm0
mov    %r15,%rdi
mov    $0xf,%esi
call   1030 <putFPIntoBuffer@plt>
lea    0xc66(%rip),%rdi
call   1050 <puts@plt>
mov    %r15,%rdi
mov    $0x13,%esi
mov    $0x845fed,%edx
call   10c0 <putIntIntoBuffer@plt>
lea    0xc72(%rip),%rdi
call   1050 <puts@plt>
mov    %r15,%rdi
mov    $0x17,%esi
mov    $0x210,%edx
call   1080 <putShortIntoBuffer@plt>
lea    0xc83(%rip),%rdi
call   1050 <puts@plt>
lea    0xbe5(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl (%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x1(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x2(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x3(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x5(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x6(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x7(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x9(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xa(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xb(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xd(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xe(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0xf(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x11(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x12(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x13(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x15(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x16(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x17(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movzbl 0x18(%rsp),%esi
lea    0xa84(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [25 x i8] c"Modbus Function tests:\0A\0A\00"
@.str.1 = [49 x i8] c"buildReadHoldingRegistersPacket:\0A sendBuffer: [\00"
@.str.2 = [7 x i8] c"0x%X, \00"
@.str.3 = [29 x i8] c"0x%X]\0A numBytesToRead: %d\0A\0A\00"
@__const.main.recBuffer = [4 x i8] c"@\00\00\00"
@.str.4 = [47 x i8] c"parseFPRegister: [0x40, 0x0, 0x0, 0x0] => %f\0A\0A\00"
@.str.5 = [50 x i8] c"parseIntRegister: [0x0, 0x84, 0x5F, 0xED] => %i\0A\0A\00"
@.str.6 = [40 x i8] c"parseShortRegister: [0x2, 0x10] => %i\0A\0A\00"
@.str.7 = [51 x i8] c"buildWriteHoldingRegistersPacket:\0A writeBuffer: [\00"
@.str.8 = [43 x i8] c"putFPIntoBuffer: Appended 2.0 to packet.\0A\0A\00"
@.str.9 = [48 x i8] c"putIntIntoBuffer: Appended 8675309 to packet.\0A\0A\00"
@.str.10 = [46 x i8] c"putShortIntoBuffer: Appended 528 to packet.\0A\0A\00"
@.str.11 = [25 x i8] c"Result:\0A writeBuffer: [\00"
@.str.12 = [8 x i8] c"0x%X]\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [14 x i8]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [4 x i8]
%10 = alloca float
%11 = alloca i32
%12 = alloca i16
%13 = alloca [25 x i8]
store i32 0, i32* %1
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %4
store i32 2, i32* %5
store i32 0, i32* %6
store i32 1, i32* %7
%15 = getelementptr inbounds [14 x i8], [14 x i8]* %3, i64 0, i64 0
%16 = load i32, i32* %4
%17 = load i32, i32* %5
%18 = load i32, i32* %6
%19 = load i32, i32* %7
%20 = call i32 @buildReadHoldingRegistersPacket(i8* %15, i32 %16, i32 %17, i32 %18, i32 %19)
store i32 %20, i32* %8
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %22
22: ; preds = %32, %0
%23 = load i32, i32* %2
%24 = icmp slt i32 %23, 13
br i1 %24, label %25, label %35
25: ; preds = %22
%26 = load i32, i32* %2
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [14 x i8], [14 x i8]* %3, i64 0, i64 %27
%29 = load i8, i8* %28
%30 = zext i8 %29 to i32
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %30)
br label %32
32: ; preds = %25
%33 = load i32, i32* %2
%34 = add nsw i32 %33, 1
store i32 %34, i32* %2
br label %22
35: ; preds = %22
%36 = getelementptr inbounds [14 x i8], [14 x i8]* %3, i64 0, i64 13
%37 = load i8, i8* %36
%38 = zext i8 %37 to i32
%39 = load i32, i32* %8
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %38, i32 %39)
%41 = bitcast [4 x i8]* %9 to i8*
%42 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%43 = call float @parseFPRegisterResponse(i8* %42, i32 0)
store float %43, float* %10
%44 = load float, float* %10
%45 = fpext float %44 to double
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), double %45)
%47 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
store i8 0, i8* %47
%48 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 1
store i8 -124, i8* %48
%49 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 2
store i8 95, i8* %49
%50 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 3
store i8 -19, i8* %50
%51 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%52 = call i32 @parseIntRegisterResponse(i8* %51, i32 0)
store i32 %52, i32* %11
%53 = load i32, i32* %11
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.5, i64 0, i64 0), i32 %53)
%55 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
store i8 2, i8* %55
%56 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 1
store i8 16, i8* %56
%57 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%58 = call signext i16 @parseShortRegisterResponse(i8* %57, i32 0)
store i16 %58, i16* %12
%59 = load i16, i16* %12
%60 = sext i16 %59 to i32
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i32 %60)
store i32 0, i32* %4
store i32 5, i32* %5
store i32 0, i32* %6
store i32 1, i32* %7
%62 = getelementptr inbounds [25 x i8], [25 x i8]* %13, i64 0, i64 0
%63 = load i32, i32* %4
%64 = load i32, i32* %5
%65 = load i32, i32* %6
%66 = load i32, i32* %7
%67 = call i32 @buildWriteHoldingRegistersPacket(i8* %62, i32 %63, i32 %64, i32 %65, i32 %66)
store i32 %67, i32* %8
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %2
br label %69
69: ; preds = %79, %35
%70 = load i32, i32* %2
%71 = icmp slt i32 %70, 24
br i1 %71, label %72, label %82
72: ; preds = %69
%73 = load i32, i32* %2
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [25 x i8], [25 x i8]* %13, i64 0, i64 %74
%76 = load i8, i8* %75
%77 = zext i8 %76 to i32
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %77)
br label %79
79: ; preds = %72
%80 = load i32, i32* %2
%81 = add nsw i32 %80, 1
store i32 %81, i32* %2
br label %69
82: ; preds = %69
%83 = getelementptr inbounds [25 x i8], [25 x i8]* %13, i64 0, i64 24
%84 = load i8, i8* %83
%85 = zext i8 %84 to i32
%86 = load i32, i32* %8
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %85, i32 %86)
%88 = getelementptr inbounds [25 x i8], [25 x i8]* %13, i64 0, i64 0
%89 = call i32 @putFPIntoBuffer(i8* %88, i32 15, double 2.000000e+00)
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
%91 = getelementptr inbounds [25 x i8], [25 x i8]* %13, i64 0, i64 0
%92 = call i32 @putIntIntoBuffer(i8* %91, i32 19, i32 8675309)
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.9, i64 0, i64 0))
%94 = getelementptr inbounds [25 x i8], [25 x i8]* %13, i64 0, i64 0
%95 = call i32 @putShortIntoBuffer(i8* %94, i32 23, i32 528)
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0))
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
store i32 0, i32* %2
br label %98
98: ; preds = %108, %82
%99 = load i32, i32* %2
%100 = icmp slt i32 %99, 24
br i1 %100, label %101, label %111
101: ; preds = %98
%102 = load i32, i32* %2
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [25 x i8], [25 x i8]* %13, i64 0, i64 %103
%105 = load i8, i8* %104
%106 = zext i8 %105 to i32
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %106)
br label %108
108: ; preds = %101
%109 = load i32, i32* %2
%110 = add nsw i32 %109, 1
store i32 %110, i32* %2
br label %98
111: ; preds = %98
%112 = getelementptr inbounds [25 x i8], [25 x i8]* %13, i64 0, i64 24
%113 = load i8, i8* %112
%114 = zext i8 %113 to i32
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i32 %114)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [49 x i8] c"buildReadHoldingRegistersPacket:\0A sendBuffer: [\00"
@.str.2 = [7 x i8] c"0x%X, \00"
@.str.3 = [29 x i8] c"0x%X]\0A numBytesToRead: %d\0A\0A\00"
@.str.4 = [47 x i8] c"parseFPRegister: [0x40, 0x0, 0x0, 0x0] => %f\0A\0A\00"
@.str.5 = [50 x i8] c"parseIntRegister: [0x0, 0x84, 0x5F, 0xED] => %i\0A\0A\00"
@.str.6 = [40 x i8] c"parseShortRegister: [0x2, 0x10] => %i\0A\0A\00"
@.str.7 = [51 x i8] c"buildWriteHoldingRegistersPacket:\0A writeBuffer: [\00"
@.str.11 = [25 x i8] c"Result:\0A writeBuffer: [\00"
@.str.12 = [8 x i8] c"0x%X]\0A\0A\00"
@str = [24 x i8] c"Modbus Function tests:\0A\00"
@str.13 = [42 x i8] c"putFPIntoBuffer: Appended 2.0 to packet.\0A\00"
@str.14 = [47 x i8] c"putIntIntoBuffer: Appended 8675309 to packet.\0A\00"
@str.15 = [45 x i8] c"putShortIntoBuffer: Appended 528 to packet.\0A\00"
define i32 @main() {
%1 = alloca [14 x i8]
%2 = alloca i32
%3 = alloca [25 x i8]
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%5 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 0
%6 = call i32 @buildReadHoldingRegistersPacket(i8* %5, i32 0, i32 2, i32 0, i32 1)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%8 = load i8, i8* %5
%9 = zext i8 %8 to i32
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %9)
%11 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 1
%12 = load i8, i8* %11
%13 = zext i8 %12 to i32
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %13)
%15 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 2
%16 = load i8, i8* %15
%17 = zext i8 %16 to i32
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %17)
%19 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 3
%20 = load i8, i8* %19
%21 = zext i8 %20 to i32
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %21)
%23 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 4
%24 = load i8, i8* %23
%25 = zext i8 %24 to i32
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %25)
%27 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 5
%28 = load i8, i8* %27
%29 = zext i8 %28 to i32
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %29)
%31 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 6
%32 = load i8, i8* %31
%33 = zext i8 %32 to i32
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %33)
%35 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 7
%36 = load i8, i8* %35
%37 = zext i8 %36 to i32
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %37)
%39 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 8
%40 = load i8, i8* %39
%41 = zext i8 %40 to i32
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %41)
%43 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 9
%44 = load i8, i8* %43
%45 = zext i8 %44 to i32
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %45)
%47 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 10
%48 = load i8, i8* %47
%49 = zext i8 %48 to i32
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %49)
%51 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 11
%52 = load i8, i8* %51
%53 = zext i8 %52 to i32
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %53)
%55 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 12
%56 = load i8, i8* %55
%57 = zext i8 %56 to i32
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %57)
%59 = bitcast i32* %2 to [4 x i8]*
%60 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 13
%61 = load i8, i8* %60
%62 = zext i8 %61 to i32
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %62, i32 %6)
%64 = bitcast i32* %2 to i8*
store i32 64, i32* %2
%65 = call float @parseFPRegisterResponse(i8* %64, i32 0)
%66 = fpext float %65 to double
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), double %66)
store i8 0, i8* %64
%68 = getelementptr inbounds [4 x i8], [4 x i8]* %59, i64 0, i64 1
store i8 -124, i8* %68
%69 = getelementptr inbounds [4 x i8], [4 x i8]* %59, i64 0, i64 2
store i8 95, i8* %69
%70 = getelementptr inbounds [4 x i8], [4 x i8]* %59, i64 0, i64 3
store i8 -19, i8* %70
%71 = call i32 @parseIntRegisterResponse(i8* %64, i32 0)
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.5, i64 0, i64 0), i32 %71)
store i8 2, i8* %64
store i8 16, i8* %68
%73 = call signext i16 @parseShortRegisterResponse(i8* %64, i32 0)
%74 = sext i16 %73 to i32
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i32 %74)
%76 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 0
%77 = call i32 @buildWriteHoldingRegistersPacket(i8* %76, i32 0, i32 5, i32 0, i32 1)
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
%79 = load i8, i8* %76
%80 = zext i8 %79 to i32
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %80)
%82 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 1
%83 = load i8, i8* %82
%84 = zext i8 %83 to i32
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %84)
%86 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 2
%87 = load i8, i8* %86
%88 = zext i8 %87 to i32
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %88)
%90 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 3
%91 = load i8, i8* %90
%92 = zext i8 %91 to i32
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %92)
%94 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 4
%95 = load i8, i8* %94
%96 = zext i8 %95 to i32
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %96)
%98 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 5
%99 = load i8, i8* %98
%100 = zext i8 %99 to i32
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %100)
%102 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 6
%103 = load i8, i8* %102
%104 = zext i8 %103 to i32
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %104)
%106 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 7
%107 = load i8, i8* %106
%108 = zext i8 %107 to i32
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %108)
%110 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 8
%111 = load i8, i8* %110
%112 = zext i8 %111 to i32
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %112)
%114 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 9
%115 = load i8, i8* %114
%116 = zext i8 %115 to i32
%117 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %116)
%118 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 10
%119 = load i8, i8* %118
%120 = zext i8 %119 to i32
%121 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %120)
%122 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 11
%123 = load i8, i8* %122
%124 = zext i8 %123 to i32
%125 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %124)
%126 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 12
%127 = load i8, i8* %126
%128 = zext i8 %127 to i32
%129 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %128)
%130 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 13
%131 = load i8, i8* %130
%132 = zext i8 %131 to i32
%133 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %132)
%134 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 14
%135 = load i8, i8* %134
%136 = zext i8 %135 to i32
%137 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %136)
%138 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 15
%139 = load i8, i8* %138
%140 = zext i8 %139 to i32
%141 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %140)
%142 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 16
%143 = load i8, i8* %142
%144 = zext i8 %143 to i32
%145 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %144)
%146 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 17
%147 = load i8, i8* %146
%148 = zext i8 %147 to i32
%149 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %148)
%150 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 18
%151 = load i8, i8* %150
%152 = zext i8 %151 to i32
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %152)
%154 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 19
%155 = load i8, i8* %154
%156 = zext i8 %155 to i32
%157 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %156)
%158 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 20
%159 = load i8, i8* %158
%160 = zext i8 %159 to i32
%161 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %160)
%162 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 21
%163 = load i8, i8* %162
%164 = zext i8 %163 to i32
%165 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %164)
%166 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 22
%167 = load i8, i8* %166
%168 = zext i8 %167 to i32
%169 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %168)
%170 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 23
%171 = load i8, i8* %170
%172 = zext i8 %171 to i32
%173 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %172)
%174 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 24
%175 = load i8, i8* %174
%176 = zext i8 %175 to i32
%177 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %176, i32 %77)
%178 = call i32 @putFPIntoBuffer(i8* %76, i32 15, double 2.000000e+00)
%179 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.13, i64 0, i64 0))
%180 = call i32 @putIntIntoBuffer(i8* %76, i32 19, i32 8675309)
%181 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.14, i64 0, i64 0))
%182 = call i32 @putShortIntoBuffer(i8* %76, i32 23, i32 528)
%183 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.15, i64 0, i64 0))
%184 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
%185 = load i8, i8* %76
%186 = zext i8 %185 to i32
%187 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %186)
%188 = load i8, i8* %82
%189 = zext i8 %188 to i32
%190 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %189)
%191 = load i8, i8* %86
%192 = zext i8 %191 to i32
%193 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %192)
%194 = load i8, i8* %90
%195 = zext i8 %194 to i32
%196 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %195)
%197 = load i8, i8* %94
%198 = zext i8 %197 to i32
%199 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %198)
%200 = load i8, i8* %98
%201 = zext i8 %200 to i32
%202 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %201)
%203 = load i8, i8* %102
%204 = zext i8 %203 to i32
%205 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %204)
%206 = load i8, i8* %106
%207 = zext i8 %206 to i32
%208 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %207)
%209 = load i8, i8* %110
%210 = zext i8 %209 to i32
%211 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %210)
%212 = load i8, i8* %114
%213 = zext i8 %212 to i32
%214 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %213)
%215 = load i8, i8* %118
%216 = zext i8 %215 to i32
%217 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %216)
%218 = load i8, i8* %122
%219 = zext i8 %218 to i32
%220 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %219)
%221 = load i8, i8* %126
%222 = zext i8 %221 to i32
%223 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %222)
%224 = load i8, i8* %130
%225 = zext i8 %224 to i32
%226 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %225)
%227 = load i8, i8* %134
%228 = zext i8 %227 to i32
%229 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %228)
%230 = load i8, i8* %138
%231 = zext i8 %230 to i32
%232 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %231)
%233 = load i8, i8* %142
%234 = zext i8 %233 to i32
%235 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %234)
%236 = load i8, i8* %146
%237 = zext i8 %236 to i32
%238 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %237)
%239 = load i8, i8* %150
%240 = zext i8 %239 to i32
%241 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %240)
%242 = load i8, i8* %154
%243 = zext i8 %242 to i32
%244 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %243)
%245 = load i8, i8* %158
%246 = zext i8 %245 to i32
%247 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %246)
%248 = load i8, i8* %162
%249 = zext i8 %248 to i32
%250 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %249)
%251 = load i8, i8* %166
%252 = zext i8 %251 to i32
%253 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %252)
%254 = load i8, i8* %170
%255 = zext i8 %254 to i32
%256 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %255)
%257 = load i8, i8* %174
%258 = zext i8 %257 to i32
%259 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i32 %258)
ret i32 0
}