#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 atoi(char *);
int /*<<< orphan*/ closeCBR();
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ openCBR(char *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ rxCBR(char *, int);
int /*<<< orphan*/ sscanf(char *, char *, float *, float *, float *, float *,
                          float *, float *, float *, float *, float *, float *,
                          float *, float *, float *, float *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ txCBR(char *);
int main(int argc, char *argv[]) {
  int inputlength = 11;
  int outputlength = 3;
  char host[100];
  int port = 5000;
  char aux_string[100];
  char tmp[10][inputlength];
  int i = 0;
  float caseOutput[inputlength + outputlength];
  strcpy(host, "172.16.75.90");
  if (argc > 2) {
    fprintf(stderr, "usage: client hostname\n");
    exit(1);
  } else if (argc == 2) {
    port = atoi(argv[1]);
  }
  if (!openCBR(host, port)) {
    printf("Error opening socket.\n");
    exit(0);
  }
  for (i = 0; i < 10; i++)
    memset(tmp[i], 0, inputlength);
  strcpy(tmp[0], "5000");
  strcat(tmp[0], "\n");
  strcpy(tmp[1], "1214");
  strcat(tmp[1], "\n");
  strcpy(tmp[2], "2185");
  strcat(tmp[2], "\n");
  strcpy(tmp[3], "5000");
  strcat(tmp[3], "\n");
  strcpy(tmp[4], "3748");
  strcat(tmp[4], "\n");
  strcpy(tmp[5], "2999");
  strcat(tmp[5], "\n");
  strcpy(tmp[6], "5000");
  strcat(tmp[6], "\n");
  strcpy(tmp[7], "2424");
  strcat(tmp[7], "\n");
  strcpy(tmp[8], "2413");
  strcat(tmp[8], "\n");
  strcpy(tmp[9], "1958");
  strcat(tmp[9], "\n");
  strcpy(tmp[10], "5000");
  strcat(tmp[10], "\n");
  for (i = 0; i < inputlength; i++) {
    strcpy(aux_string, tmp[i]);
    printf("Enviando: %s - %s", tmp[i], aux_string);
    if (!txCBR(aux_string))
      printf("Error enviando datos.\n");
  }
  if (!rxCBR(aux_string, 100))
    printf("Error recibiendo datos.\n");
  sscanf(aux_string, "%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n",
         &caseOutput[0], &caseOutput[1], &caseOutput[2], &caseOutput[3],
         &caseOutput[4], &caseOutput[5], &caseOutput[6], &caseOutput[7],
         &caseOutput[8], &caseOutput[9], &caseOutput[10], &caseOutput[11],
         &caseOutput[12], &caseOutput[13]);
  printf("Read data: ");
  for (i = 0; i < (inputlength + outputlength); i++)
    printf("%0.1f ", caseOutput[i]);
  printf("\n\n");
  printf("Deberia recibir: 5000 1214 2185 5000 3748 2999 5000 2424 2413 1958 "
         "5000 330 -1000 326 \n");
  if (!closeCBR())
    printf("Error cerrando socket.\n");
  printf("Fin %s\n", argv[0]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x148,%rsp
movl   $0x0,-0x2c(%rbp)
mov    %edi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
movl   $0xb,-0x3c(%rbp)
movl   $0x3,-0x40(%rbp)
movl   $0x1388,-0xb4(%rbp)
mov    -0x3c(%rbp),%eax
mov    %rax,-0x158(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x128(%rbp)
lea    (%rax,%rax,4),%rcx
lea    0xf(%rcx,%rcx,1),%rdx
movabs $0x1ffffffff0,%rcx
and    %rcx,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x150(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x130(%rbp)
movl   $0x0,-0x134(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x40(%rbp),%ecx
add    %ecx,%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x148(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x140(%rbp)
lea    -0xb0(%rbp),%rdi
lea    0xd82(%rip),%rsi
call   1040 <strcpy@plt>
cmpl   $0x2,-0x30(%rbp)
jle    12ac <main+0xec>
mov    0x2d4c(%rip),%rax
mov    (%rax),%edi
lea    0xd70(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
cmpl   $0x2,-0x30(%rbp)
jne    12c9 <main+0x109>
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0xb4(%rbp)
jmp    12ce <main+0x10e>
lea    -0xb0(%rbp),%rdi
mov    -0xb4(%rbp),%esi
call   10d0 <openCBR@plt>
cmp    $0x0,%eax
jne    12fe <main+0x13e>
lea    0xd35(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %edi,%edi
call   10e0 <exit@plt>
movl   $0x0,-0x134(%rbp)
cmpl   $0xa,-0x134(%rbp)
jge    134f <main+0x18f>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rcx
movslq -0x134(%rbp),%rax
imul   %rcx,%rax
add    %rax,%rdi
mov    -0x3c(%rbp),%edx
xor    %esi,%esi
call   1070 <memset@plt>
mov    -0x134(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x134(%rbp)
jmp    1308 <main+0x148>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
imul   $0x0,%rax,%rax
add    %rax,%rdi
lea    0xcd1(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
imul   $0x0,%rax,%rax
add    %rax,%rdi
lea    0xd59(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
shl    $0x0,%rax
add    %rax,%rdi
lea    0xc94(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
shl    $0x0,%rax
add    %rax,%rdi
lea    0xd17(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
shl    $0x1,%rax
add    %rax,%rdi
lea    0xc57(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
shl    $0x1,%rax
add    %rax,%rdi
lea    0xcd5(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
imul   $0x3,%rax,%rax
add    %rax,%rdi
lea    0xc0b(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
imul   $0x3,%rax,%rax
add    %rax,%rdi
lea    0xc93(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
lea    0xbd8(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
lea    0xc51(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
imul   $0x5,%rax,%rax
add    %rax,%rdi
lea    0xb9b(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
imul   $0x5,%rax,%rax
add    %rax,%rdi
lea    0xc0f(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
imul   $0x6,%rax,%rax
add    %rax,%rdi
lea    0xb45(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
imul   $0x6,%rax,%rax
add    %rax,%rdi
lea    0xbcd(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
imul   $0x7,%rax,%rax
add    %rax,%rdi
lea    0xb1c(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
imul   $0x7,%rax,%rax
add    %rax,%rdi
lea    0xb8b(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
lea    0xadf(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
lea    0xb49(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
imul   $0x9,%rax,%rax
add    %rax,%rdi
lea    0xaa2(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
imul   $0x9,%rax,%rax
add    %rax,%rdi
lea    0xb07(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
imul   $0xa,%rax,%rax
add    %rax,%rdi
lea    0xa3d(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x150(%rbp),%rdi
mov    -0x158(%rbp),%rax
imul   $0xa,%rax,%rax
add    %rax,%rdi
lea    0xac5(%rip),%rsi
call   10c0 <strcat@plt>
movl   $0x0,-0x134(%rbp)
mov    -0x134(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    16d3 <main+0x513>
mov    -0x150(%rbp),%rsi
mov    -0x158(%rbp),%rcx
lea    -0x120(%rbp),%rdi
movslq -0x134(%rbp),%rax
imul   %rcx,%rax
add    %rax,%rsi
call   1040 <strcpy@plt>
mov    -0x158(%rbp),%rcx
mov    -0x150(%rbp),%rsi
movslq -0x134(%rbp),%rax
imul   %rcx,%rax
add    %rax,%rsi
lea    -0x120(%rbp),%rdx
lea    0x9d4(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x120(%rbp),%rdi
call   1030 <txCBR@plt>
cmp    $0x0,%eax
jne    16ba <main+0x4fa>
lea    0x9c3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    16bf <main+0x4ff>
mov    -0x134(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x134(%rbp)
jmp    162f <main+0x46f>
lea    -0x120(%rbp),%rdi
mov    $0x64,%esi
call   10a0 <rxCBR@plt>
cmp    $0x0,%eax
jne    16fb <main+0x53b>
lea    0x999(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x148(%rbp),%rdx
lea    -0x120(%rbp),%rdi
mov    %rdx,%rcx
add    $0x4,%rcx
mov    %rdx,%r8
add    $0x8,%r8
mov    %rdx,%r9
add    $0xc,%r9
mov    %rdx,%rax
add    $0x10,%rax
mov    %rdx,%rsi
add    $0x14,%rsi
mov    %rsi,-0x168(%rbp)
mov    %rdx,%r13
add    $0x18,%r13
mov    %rdx,%r12
add    $0x1c,%r12
mov    %rdx,%r15
add    $0x20,%r15
mov    %rdx,%r14
add    $0x24,%r14
mov    %rdx,%rbx
add    $0x28,%rbx
mov    %rdx,%r11
add    $0x2c,%r11
mov    %rdx,%r10
add    $0x30,%r10
mov    %rdx,%rsi
add    $0x34,%rsi
mov    %rsi,-0x160(%rbp)
lea    0x92d(%rip),%rsi
sub    $0x50,%rsp
mov    %rax,(%rsp)
mov    -0x168(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x160(%rbp),%rax
mov    %r13,0x10(%rsp)
mov    %r12,0x18(%rsp)
mov    %r15,0x20(%rsp)
mov    %r14,0x28(%rsp)
mov    %rbx,0x30(%rsp)
mov    %r11,0x38(%rsp)
mov    %r10,0x40(%rsp)
mov    %rax,0x48(%rsp)
call   1090 <sscanf@plt>
add    $0x50,%rsp
lea    0x905(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x134(%rbp)
mov    -0x134(%rbp),%eax
mov    -0x3c(%rbp),%ecx
add    -0x40(%rbp),%ecx
cmp    %ecx,%eax
jge    182a <main+0x66a>
mov    -0x148(%rbp),%rax
movslq -0x134(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x8ce(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x134(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x134(%rbp)
jmp    17dd <main+0x61d>
lea    0x8b3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x8a8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x0,%al
call   1050 <closeCBR@plt>
cmp    $0x0,%eax
jne    1864 <main+0x6a4>
lea    0x8e2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x38(%rbp),%rax
mov    (%rax),%rsi
lea    0x8e5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x128(%rbp),%rax
mov    %rax,%rsp
mov    -0x2c(%rbp),%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x198,%rsp
mov    %rsi,%rbp
mov    %edi,%ebx
mov    %rsp,%r14
lea    0xe10(%rip),%rsi
lea    0x130(%rsp),%rdi
call   1040 <strcpy@plt>
cmp    $0x3,%ebx
jge    16cb <main+0x4fb>
mov    $0x1388,%esi
cmp    $0x2,%ebx
jne    121b <main+0x4b>
mov    0x8(%rbp),%rdi
call   10c0 <atoi@plt>
mov    %eax,%esi
mov    %rbp,0x40(%rsp)
mov    %r14,0x48(%rsp)
lea    0x130(%rsp),%rdi
call   10e0 <openCBR@plt>
test   %eax,%eax
je     16ea <main+0x51a>
lea    0x50(%rsp),%r13
mov    %r13,%rdi
xor    %esi,%esi
mov    $0xb,%edx
call   1080 <memset@plt>
lea    0x5b(%rsp),%r15
mov    %r15,%rdi
xor    %esi,%esi
mov    $0xb,%edx
call   1080 <memset@plt>
lea    0x66(%rsp),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0xb,%edx
call   1080 <memset@plt>
lea    0x71(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0xb,%edx
call   1080 <memset@plt>
lea    0x7c(%rsp),%rdi
xor    %esi,%esi
mov    $0xb,%edx
call   1080 <memset@plt>
lea    0x87(%rsp),%rdi
xor    %esi,%esi
mov    $0xb,%edx
call   1080 <memset@plt>
lea    0x92(%rsp),%rdi
xor    %esi,%esi
mov    $0xb,%edx
call   1080 <memset@plt>
lea    0x9d(%rsp),%rdi
xor    %esi,%esi
mov    $0xb,%edx
call   1080 <memset@plt>
lea    0xa8(%rsp),%rdi
xor    %esi,%esi
mov    $0xb,%edx
call   1080 <memset@plt>
lea    0xb3(%rsp),%rdi
xor    %esi,%esi
mov    $0xb,%edx
call   1080 <memset@plt>
lea    0xd1f(%rip),%r12
mov    %r13,%rdi
mov    %r12,%rsi
call   1040 <strcpy@plt>
lea    0xd0b(%rip),%rbx
mov    %r13,%rdi
mov    %rbx,%rsi
call   10d0 <strcat@plt>
lea    0xd00(%rip),%rsi
mov    %r15,%rdi
call   1040 <strcpy@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   10d0 <strcat@plt>
lea    0xceb(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcpy@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   10d0 <strcat@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
call   1040 <strcpy@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10d0 <strcat@plt>
lea    0xcc0(%rip),%rsi
lea    0x7c(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strcpy@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10d0 <strcat@plt>
lea    0xca6(%rip),%rsi
lea    0x87(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strcpy@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10d0 <strcat@plt>
lea    0x92(%rsp),%rbp
mov    %rbp,%rdi
mov    %r12,%rsi
call   1040 <strcpy@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10d0 <strcat@plt>
lea    0xc6b(%rip),%rsi
lea    0x9d(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strcpy@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10d0 <strcat@plt>
lea    0xc4e(%rip),%rsi
lea    0xa8(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strcpy@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10d0 <strcat@plt>
lea    0xc31(%rip),%rsi
lea    0xb3(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strcpy@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10d0 <strcat@plt>
lea    0xbe(%rsp),%rbp
mov    %rbp,%rdi
mov    %r12,%rsi
call   1040 <strcpy@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10d0 <strcat@plt>
lea    0xc0(%rsp),%r12
lea    0xbee(%rip),%r15
lea    0xcdb(%rip),%r14
xor    %ebx,%ebx
jmp    147a <main+0x2aa>
nopw   0x0(%rax,%rax,1)
add    $0xb,%rbx
cmp    $0x79,%rbx
je     14b3 <main+0x2e3>
lea    (%rsp,%rbx,1),%rbp
add    $0x50,%rbp
mov    %r12,%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r12,%rdi
call   1030 <txCBR@plt>
test   %eax,%eax
jne    1470 <main+0x2a0>
mov    %r14,%rdi
call   1050 <puts@plt>
jmp    1470 <main+0x2a0>
lea    0xc0(%rsp),%rdi
mov    $0x64,%esi
call   10b0 <rxCBR@plt>
test   %eax,%eax
jne    14d5 <main+0x305>
lea    0xbeb(%rip),%rdi
call   1050 <puts@plt>
lea    0x4(%rsp),%rcx
lea    0x8(%rsp),%r8
lea    0xc(%rsp),%r9
lea    0x14(%rsp),%r11
lea    0x18(%rsp),%r14
lea    0x1c(%rsp),%r15
lea    0x20(%rsp),%r12
lea    0x24(%rsp),%r13
lea    0x28(%rsp),%r10
lea    0x2c(%rsp),%rbp
lea    0x30(%rsp),%rbx
lea    0x34(%rsp),%rax
lea    0xb47(%rip),%rsi
lea    0xc0(%rsp),%rdi
mov    %rsp,%rdx
push   %rax
push   %rbx
push   %rbp
push   %r10
push   %r13
push   %r12
push   %r15
push   %r14
push   %r11
lea    0x58(%rsp),%rax
push   %rax
call   10a0 <sscanf@plt>
add    $0x50,%rsp
lea    0xb42(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb37(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  0x24(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  0x28(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  0x2c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  0x30(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  0x34(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
lea    0x9af(%rip),%rdi
call   1050 <puts@plt>
lea    0xa53(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1060 <closeCBR@plt>
test   %eax,%eax
jne    169c <main+0x4cc>
lea    0xa93(%rip),%rdi
call   1050 <puts@plt>
mov    0x40(%rsp),%rax
mov    (%rax),%rsi
lea    0x9f2(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x48(%rsp),%rsp
xor    %eax,%eax
add    $0x198,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x290e(%rip),%rax
mov    (%rax),%edi
lea    0x932(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
lea    0x9b4(%rip),%rdi
call   1050 <puts@plt>
xor    %edi,%edi
call   10f0 <exit@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"172.16.75.90\00"
@stderr = global i32 0
@.str.1 = [24 x i8] c"usage: client hostname\0A\00"
@.str.2 = [23 x i8] c"Error opening socket.\0A\00"
@.str.3 = [5 x i8] c"5000\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [5 x i8] c"1214\00"
@.str.6 = [5 x i8] c"2185\00"
@.str.7 = [5 x i8] c"3748\00"
@.str.8 = [5 x i8] c"2999\00"
@.str.9 = [5 x i8] c"2424\00"
@.str.10 = [5 x i8] c"2413\00"
@.str.11 = [5 x i8] c"1958\00"
@.str.12 = [18 x i8] c"Enviando: %s - %s\00"
@.str.13 = [23 x i8] c"Error enviando datos.\0A\00"
@.str.14 = [25 x i8] c"Error recibiendo datos.\0A\00"
@.str.15 = [43 x i8] c"%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A\00"
@.str.16 = [12 x i8] c"Read data: \00"
@.str.17 = [7 x i8] c"%0.1f \00"
@.str.18 = [3 x i8] c"\0A\0A\00"
@.str.19 = [88 x i8] c"Deberia recibir: 5000 1214 2185 5000 3748 2999 5000 2424 2413 1958 5000 330 -1000 326 \0A\00"
@.str.20 = [24 x i8] c"Error cerrando socket.\0A\00"
@.str.21 = [8 x i8] c"Fin %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [100 x i8]
%9 = alloca i32
%10 = alloca [100 x i8]
%11 = alloca i8*
%12 = alloca i64
%13 = alloca i32
%14 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 11, i32* %6
store i32 3, i32* %7
store i32 5000, i32* %9
%15 = load i32, i32* %6
%16 = zext i32 %15 to i64
%17 = call i8* @llvm.stacksave()
store i8* %17, i8** %11
%18 = mul nuw i64 10, %16
%19 = alloca i8, i64 %18
store i64 %16, i64* %12
store i32 0, i32* %13
%20 = load i32, i32* %6
%21 = load i32, i32* %7
%22 = add nsw i32 %20, %21
%23 = zext i32 %22 to i64
%24 = alloca float, i64 %23
store i64 %23, i64* %14
%25 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%26 = call i32 @strcpy(i8* %25, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%27 = load i32, i32* %4
%28 = icmp sgt i32 %27, 2
br i1 %28, label %29, label %33
29: ; preds = %2
%30 = load i32, i32* @stderr
%31 = call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%32 = call i32 @exit(i32 1)
unreachable
33: ; preds = %2
%34 = load i32, i32* %4
%35 = icmp eq i32 %34, 2
br i1 %35, label %36, label %41
36: ; preds = %33
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 1
%39 = load i8*, i8** %38
%40 = call i32 @atoi(i8* %39)
store i32 %40, i32* %9
br label %41
41: ; preds = %36, %33
br label %42
42: ; preds = %41
%43 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%44 = load i32, i32* %9
%45 = call i32 @openCBR(i8* %43, i32 %44)
%46 = icmp ne i32 %45, 0
br i1 %46, label %50, label %47
47: ; preds = %42
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%49 = call i32 @exit(i32 0)
unreachable
50: ; preds = %42
store i32 0, i32* %13
br label %51
51: ; preds = %61, %50
%52 = load i32, i32* %13
%53 = icmp slt i32 %52, 10
br i1 %53, label %54, label %64
54: ; preds = %51
%55 = load i32, i32* %13
%56 = sext i32 %55 to i64
%57 = mul nsw i64 %56, %16
%58 = getelementptr inbounds i8, i8* %19, i64 %57
%59 = load i32, i32* %6
%60 = call i32 @memset(i8* %58, i32 0, i32 %59)
br label %61
61: ; preds = %54
%62 = load i32, i32* %13
%63 = add nsw i32 %62, 1
store i32 %63, i32* %13
br label %51
64: ; preds = %51
%65 = mul nsw i64 0, %16
%66 = getelementptr inbounds i8, i8* %19, i64 %65
%67 = call i32 @strcpy(i8* %66, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%68 = mul nsw i64 0, %16
%69 = getelementptr inbounds i8, i8* %19, i64 %68
%70 = call i32 @strcat(i8* %69, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%71 = mul nsw i64 1, %16
%72 = getelementptr inbounds i8, i8* %19, i64 %71
%73 = call i32 @strcpy(i8* %72, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%74 = mul nsw i64 1, %16
%75 = getelementptr inbounds i8, i8* %19, i64 %74
%76 = call i32 @strcat(i8* %75, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%77 = mul nsw i64 2, %16
%78 = getelementptr inbounds i8, i8* %19, i64 %77
%79 = call i32 @strcpy(i8* %78, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%80 = mul nsw i64 2, %16
%81 = getelementptr inbounds i8, i8* %19, i64 %80
%82 = call i32 @strcat(i8* %81, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%83 = mul nsw i64 3, %16
%84 = getelementptr inbounds i8, i8* %19, i64 %83
%85 = call i32 @strcpy(i8* %84, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%86 = mul nsw i64 3, %16
%87 = getelementptr inbounds i8, i8* %19, i64 %86
%88 = call i32 @strcat(i8* %87, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%89 = mul nsw i64 4, %16
%90 = getelementptr inbounds i8, i8* %19, i64 %89
%91 = call i32 @strcpy(i8* %90, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%92 = mul nsw i64 4, %16
%93 = getelementptr inbounds i8, i8* %19, i64 %92
%94 = call i32 @strcat(i8* %93, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%95 = mul nsw i64 5, %16
%96 = getelementptr inbounds i8, i8* %19, i64 %95
%97 = call i32 @strcpy(i8* %96, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%98 = mul nsw i64 5, %16
%99 = getelementptr inbounds i8, i8* %19, i64 %98
%100 = call i32 @strcat(i8* %99, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%101 = mul nsw i64 6, %16
%102 = getelementptr inbounds i8, i8* %19, i64 %101
%103 = call i32 @strcpy(i8* %102, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%104 = mul nsw i64 6, %16
%105 = getelementptr inbounds i8, i8* %19, i64 %104
%106 = call i32 @strcat(i8* %105, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%107 = mul nsw i64 7, %16
%108 = getelementptr inbounds i8, i8* %19, i64 %107
%109 = call i32 @strcpy(i8* %108, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%110 = mul nsw i64 7, %16
%111 = getelementptr inbounds i8, i8* %19, i64 %110
%112 = call i32 @strcat(i8* %111, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%113 = mul nsw i64 8, %16
%114 = getelementptr inbounds i8, i8* %19, i64 %113
%115 = call i32 @strcpy(i8* %114, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%116 = mul nsw i64 8, %16
%117 = getelementptr inbounds i8, i8* %19, i64 %116
%118 = call i32 @strcat(i8* %117, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%119 = mul nsw i64 9, %16
%120 = getelementptr inbounds i8, i8* %19, i64 %119
%121 = call i32 @strcpy(i8* %120, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%122 = mul nsw i64 9, %16
%123 = getelementptr inbounds i8, i8* %19, i64 %122
%124 = call i32 @strcat(i8* %123, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%125 = mul nsw i64 10, %16
%126 = getelementptr inbounds i8, i8* %19, i64 %125
%127 = call i32 @strcpy(i8* %126, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%128 = mul nsw i64 10, %16
%129 = getelementptr inbounds i8, i8* %19, i64 %128
%130 = call i32 @strcat(i8* %129, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %13
br label %131
131: ; preds = %154, %64
%132 = load i32, i32* %13
%133 = load i32, i32* %6
%134 = icmp slt i32 %132, %133
br i1 %134, label %135, label %157
135: ; preds = %131
%136 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%137 = load i32, i32* %13
%138 = sext i32 %137 to i64
%139 = mul nsw i64 %138, %16
%140 = getelementptr inbounds i8, i8* %19, i64 %139
%141 = call i32 @strcpy(i8* %136, i8* %140)
%142 = load i32, i32* %13
%143 = sext i32 %142 to i64
%144 = mul nsw i64 %143, %16
%145 = getelementptr inbounds i8, i8* %19, i64 %144
%146 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), i8* %145, i8* %146)
%148 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%149 = call i32 @txCBR(i8* %148)
%150 = icmp ne i32 %149, 0
br i1 %150, label %153, label %151
151: ; preds = %135
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0))
br label %153
153: ; preds = %151, %135
br label %154
154: ; preds = %153
%155 = load i32, i32* %13
%156 = add nsw i32 %155, 1
store i32 %156, i32* %13
br label %131
157: ; preds = %131
%158 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%159 = call i32 @rxCBR(i8* %158, i32 100)
%160 = icmp ne i32 %159, 0
br i1 %160, label %163, label %161
161: ; preds = %157
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0))
br label %163
163: ; preds = %161, %157
%164 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%165 = getelementptr inbounds float, float* %24, i64 0
%166 = getelementptr inbounds float, float* %24, i64 1
%167 = getelementptr inbounds float, float* %24, i64 2
%168 = getelementptr inbounds float, float* %24, i64 3
%169 = getelementptr inbounds float, float* %24, i64 4
%170 = getelementptr inbounds float, float* %24, i64 5
%171 = getelementptr inbounds float, float* %24, i64 6
%172 = getelementptr inbounds float, float* %24, i64 7
%173 = getelementptr inbounds float, float* %24, i64 8
%174 = getelementptr inbounds float, float* %24, i64 9
%175 = getelementptr inbounds float, float* %24, i64 10
%176 = getelementptr inbounds float, float* %24, i64 11
%177 = getelementptr inbounds float, float* %24, i64 12
%178 = getelementptr inbounds float, float* %24, i64 13
%179 = call i32 @sscanf(i8* %164, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.15, i64 0, i64 0), float* %165, float* %166, float* %167, float* %168, float* %169, float* %170, float* %171, float* %172, float* %173, float* %174, float* %175, float* %176, float* %177, float* %178)
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i64 0, i64 0))
store i32 0, i32* %13
br label %181
181: ; preds = %194, %163
%182 = load i32, i32* %13
%183 = load i32, i32* %6
%184 = load i32, i32* %7
%185 = add nsw i32 %183, %184
%186 = icmp slt i32 %182, %185
br i1 %186, label %187, label %197
187: ; preds = %181
%188 = load i32, i32* %13
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds float, float* %24, i64 %189
%191 = load float, float* %190
%192 = fpext float %191 to double
%193 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %192)
br label %194
194: ; preds = %187
%195 = load i32, i32* %13
%196 = add nsw i32 %195, 1
store i32 %196, i32* %13
br label %181
197: ; preds = %181
%198 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0))
%199 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.19, i64 0, i64 0))
%200 = call i32 (...) @closeCBR()
%201 = icmp ne i32 %200, 0
br i1 %201, label %204, label %202
202: ; preds = %197
%203 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.20, i64 0, i64 0))
br label %204
204: ; preds = %202, %197
%205 = load i8**, i8*** %5
%206 = getelementptr inbounds i8*, i8** %205, i64 0
%207 = load i8*, i8** %206
%208 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0), i8* %207)
store i32 0, i32* %3
%209 = load i8*, i8** %11
%210 = load i32, i32* %3
ret i32 %210
}

LLVM IR (-O2):
@.str = [13 x i8] c"172.16.75.90\00"
@stderr = global i32 0
@.str.1 = [24 x i8] c"usage: client hostname\0A\00"
@.str.3 = [5 x i8] c"5000\00"
@.str.5 = [5 x i8] c"1214\00"
@.str.6 = [5 x i8] c"2185\00"
@.str.7 = [5 x i8] c"3748\00"
@.str.8 = [5 x i8] c"2999\00"
@.str.9 = [5 x i8] c"2424\00"
@.str.10 = [5 x i8] c"2413\00"
@.str.11 = [5 x i8] c"1958\00"
@.str.12 = [18 x i8] c"Enviando: %s - %s\00"
@.str.15 = [43 x i8] c"%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A\00"
@.str.16 = [12 x i8] c"Read data: \00"
@.str.17 = [7 x i8] c"%0.1f \00"
@.str.21 = [8 x i8] c"Fin %s\0A\00"
@str = [22 x i8] c"Error opening socket.\00"
@str.22 = [24 x i8] c"Error recibiendo datos.\00"
@str.23 = [2 x i8] c"\0A\00"
@str.24 = [87 x i8] c"Deberia recibir: 5000 1214 2185 5000 3748 2999 5000 2424 2413 1958 5000 330 -1000 326 \00"
@str.25 = [23 x i8] c"Error cerrando socket.\00"
@str.26 = [22 x i8] c"Error enviando datos.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%7 = tail call i8* @llvm.stacksave()
%8 = alloca [110 x i8]
%9 = alloca [14 x float]
%10 = getelementptr inbounds [14 x float], [14 x float]* %9, i64 0, i64 0
%11 = getelementptr inbounds [110 x i8], [110 x i8]* %8, i64 0, i64 0
%12 = call i32 @strcpy(i8* %5, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%13 = icmp sgt i32 %0, 2
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%17 = call i32 @exit(i32 1)
unreachable
18: ; preds = %2
%19 = icmp eq i32 %0, 2
br i1 %19, label %20, label %24
20: ; preds = %18
%21 = getelementptr inbounds i8*, i8** %1, i64 1
%22 = load i8*, i8** %21
%23 = call i32 @atoi(i8* %22)
br label %24
24: ; preds = %18, %20
%25 = phi i32 [ %23, %20 ], [ 5000, %18 ]
%26 = call i32 @openCBR(i8* %5, i32 %25)
%27 = icmp eq i32 %26, 0
br i1 %27, label %71, label %28
28: ; preds = %24
%29 = call i32 @memset(i8* %11, i32 0, i32 11)
%30 = getelementptr inbounds [110 x i8], [110 x i8]* %8, i64 0, i64 11
%31 = call i32 @memset(i8* %30, i32 0, i32 11)
%32 = getelementptr inbounds [110 x i8], [110 x i8]* %8, i64 0, i64 22
%33 = call i32 @memset(i8* %32, i32 0, i32 11)
%34 = getelementptr inbounds [110 x i8], [110 x i8]* %8, i64 0, i64 33
%35 = call i32 @memset(i8* %34, i32 0, i32 11)
%36 = getelementptr inbounds [110 x i8], [110 x i8]* %8, i64 0, i64 44
%37 = call i32 @memset(i8* %36, i32 0, i32 11)
%38 = getelementptr inbounds [110 x i8], [110 x i8]* %8, i64 0, i64 55
%39 = call i32 @memset(i8* %38, i32 0, i32 11)
%40 = getelementptr inbounds [110 x i8], [110 x i8]* %8, i64 0, i64 66
%41 = call i32 @memset(i8* %40, i32 0, i32 11)
%42 = getelementptr inbounds [110 x i8], [110 x i8]* %8, i64 0, i64 77
%43 = call i32 @memset(i8* %42, i32 0, i32 11)
%44 = getelementptr inbounds [110 x i8], [110 x i8]* %8, i64 0, i64 88
%45 = call i32 @memset(i8* %44, i32 0, i32 11)
%46 = getelementptr inbounds [110 x i8], [110 x i8]* %8, i64 0, i64 99
%47 = call i32 @memset(i8* %46, i32 0, i32 11)
%48 = call i32 @strcpy(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%49 = call i32 @strcat(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.23, i64 0, i64 0))
%50 = call i32 @strcpy(i8* %30, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%51 = call i32 @strcat(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.23, i64 0, i64 0))
%52 = call i32 @strcpy(i8* %32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%53 = call i32 @strcat(i8* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.23, i64 0, i64 0))
%54 = call i32 @strcpy(i8* %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%55 = call i32 @strcat(i8* %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.23, i64 0, i64 0))
%56 = call i32 @strcpy(i8* %36, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%57 = call i32 @strcat(i8* %36, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.23, i64 0, i64 0))
%58 = call i32 @strcpy(i8* %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%59 = call i32 @strcat(i8* %38, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.23, i64 0, i64 0))
%60 = call i32 @strcpy(i8* %40, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%61 = call i32 @strcat(i8* %40, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.23, i64 0, i64 0))
%62 = call i32 @strcpy(i8* %42, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%63 = call i32 @strcat(i8* %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.23, i64 0, i64 0))
%64 = call i32 @strcpy(i8* %44, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%65 = call i32 @strcat(i8* %44, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.23, i64 0, i64 0))
%66 = call i32 @strcpy(i8* %46, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%67 = call i32 @strcat(i8* %46, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.23, i64 0, i64 0))
%68 = getelementptr inbounds [110 x i8], [110 x i8]* %8, i64 0, i64 110
%69 = call i32 @strcpy(i8* %68, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%70 = call i32 @strcat(i8* %68, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.23, i64 0, i64 0))
br label %74
71: ; preds = %24
%72 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%73 = call i32 @exit(i32 0)
unreachable
74: ; preds = %28, %84
%75 = phi i64 [ 0, %28 ], [ %85, %84 ]
%76 = mul nuw nsw i64 %75, 11
%77 = getelementptr inbounds [110 x i8], [110 x i8]* %8, i64 0, i64 %76
%78 = call i32 @strcpy(i8* %6, i8* %77)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), i8* %77, i8* %6)
%80 = call i32 @txCBR(i8* %6)
%81 = icmp eq i32 %80, 0
br i1 %81, label %82, label %84
82: ; preds = %74
%83 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.26, i64 0, i64 0))
br label %84
84: ; preds = %74, %82
%85 = add nuw nsw i64 %75, 1
%86 = icmp eq i64 %85, 11
br i1 %86, label %87, label %74
87: ; preds = %84
%88 = call i32 @rxCBR(i8* %6, i32 100)
%89 = icmp eq i32 %88, 0
br i1 %89, label %90, label %92
90: ; preds = %87
%91 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.22, i64 0, i64 0))
br label %92
92: ; preds = %90, %87
%93 = getelementptr inbounds [14 x float], [14 x float]* %9, i64 0, i64 1
%94 = getelementptr inbounds [14 x float], [14 x float]* %9, i64 0, i64 2
%95 = getelementptr inbounds [14 x float], [14 x float]* %9, i64 0, i64 3
%96 = getelementptr inbounds [14 x float], [14 x float]* %9, i64 0, i64 4
%97 = getelementptr inbounds [14 x float], [14 x float]* %9, i64 0, i64 5
%98 = getelementptr inbounds [14 x float], [14 x float]* %9, i64 0, i64 6
%99 = getelementptr inbounds [14 x float], [14 x float]* %9, i64 0, i64 7
%100 = getelementptr inbounds [14 x float], [14 x float]* %9, i64 0, i64 8
%101 = getelementptr inbounds [14 x float], [14 x float]* %9, i64 0, i64 9
%102 = getelementptr inbounds [14 x float], [14 x float]* %9, i64 0, i64 10
%103 = getelementptr inbounds [14 x float], [14 x float]* %9, i64 0, i64 11
%104 = getelementptr inbounds [14 x float], [14 x float]* %9, i64 0, i64 12
%105 = getelementptr inbounds [14 x float], [14 x float]* %9, i64 0, i64 13
%106 = call i32 @sscanf(i8* %6, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.15, i64 0, i64 0), float* %10, float* %93, float* %94, float* %95, float* %96, float* %97, float* %98, float* %99, float* %100, float* %101, float* %102, float* %103, float* %104, float* %105)
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i64 0, i64 0))
%108 = load float, float* %10
%109 = fpext float %108 to double
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %109)
%111 = load float, float* %93
%112 = fpext float %111 to double
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %112)
%114 = load float, float* %94
%115 = fpext float %114 to double
%116 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %115)
%117 = load float, float* %95
%118 = fpext float %117 to double
%119 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %118)
%120 = load float, float* %96
%121 = fpext float %120 to double
%122 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %121)
%123 = load float, float* %97
%124 = fpext float %123 to double
%125 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %124)
%126 = load float, float* %98
%127 = fpext float %126 to double
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %127)
%129 = load float, float* %99
%130 = fpext float %129 to double
%131 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %130)
%132 = load float, float* %100
%133 = fpext float %132 to double
%134 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %133)
%135 = load float, float* %101
%136 = fpext float %135 to double
%137 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %136)
%138 = load float, float* %102
%139 = fpext float %138 to double
%140 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %139)
%141 = load float, float* %103
%142 = fpext float %141 to double
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %142)
%144 = load float, float* %104
%145 = fpext float %144 to double
%146 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %145)
%147 = load float, float* %105
%148 = fpext float %147 to double
%149 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %148)
%150 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.23, i64 0, i64 0))
%151 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.24, i64 0, i64 0))
%152 = call i32 (...) @closeCBR()
%153 = icmp eq i32 %152, 0
br i1 %153, label %154, label %156
154: ; preds = %92
%155 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.25, i64 0, i64 0))
br label %156
156: ; preds = %154, %92
%157 = load i8*, i8** %1
%158 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0), i8* %157)
ret i32 0
}