#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 */
typedef scalar_t__ time_t;

/* Variables and functions */
int /*<<< orphan*/ asctime(int /*<<< orphan*/);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ gmtime(scalar_t__ *);
int /*<<< orphan*/ printf(char *, ...);
char *send_command(char *, char *);
int /*<<< orphan*/ send_command2(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, ...);
int /*<<< orphan*/ sscanf(char *, char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int main() {
  int x, y, z, satnum;
  char buf[128], command[128], satlist[625], satname[26], visibility,
      satnamelist[26][26], event[15], squint_string[15];
  long aostime, orbitnum, start;
  float az, el, slong, slat, footprint, range, altitude, velocity, phase,
      eclipse_depth, squint;
  time_t t;
  strcpy(satlist, send_command("localhost", "GET_LIST"));
  printf(
      "\nPREDICT returned the following string in response to GET_LIST:\n%s\n",
      satlist);
  for (x = 0, y = 0, z = 0; y < strlen(satlist); y++) {
    if (satlist[y] != '\n') {
      satnamelist[z][x] = satlist[y];
      x++;
    } else {
      satnamelist[z][x] = 0;
      z++;
      x = 0;
    }
  }
  satnum = z;
  for (z = 0; z < satnum; z++) {
    sprintf(command, "GET_SAT %s", satnamelist[z]);
    strcpy(buf, send_command("localhost", command));
    printf("The following string was returned in response to %s:\n%s\n",
           command, buf);
    for (x = 0; buf[x] != '\n'; x++)
      satname[x] = buf[x];
    satname[x] = 0;
    x++;
    for (y = 0; buf[x + y] != 0; y++)
      buf[y] = buf[x + y];
    buf[y] = 0;
    sscanf(buf, "%f %f %f %f %ld %f %f %f %f %ld %c %f %f %f", &slong, &slat,
           &az, &el, &aostime, &footprint, &range, &altitude, &velocity,
           &orbitnum, &visibility, &phase, &eclipse_depth, &squint);
    t = (time_t)aostime;
    if (el > 0.0)
      strcpy(event, "LOS at");
    else
      strcpy(event, "Next AOS at");
    if (squint == 360.0)
      sprintf(squint_string, "N/A");
    else
      sprintf(squint_string, "%.2f degrees", squint);
    printf("Values are as follows:\nName: %s\nLong: %.2f degrees\nLat: %.2f "
           "degrees\nAz: %.2f degrees\nEl: %+-6.2f degrees\n%s: %ld = "
           "%sFootprint: %.2f km\nRange: %.2f km\nAltitude: %.2f km\nVelocity: "
           "%.2f km/hr\nEclipse Depth: %.2f\nPhase: %.2f\nSquint: %s\nOrbit #: "
           "%ld\n\n",
           satname, slong, slat, az, el, event, aostime, asctime(gmtime(&t)),
           footprint, range, altitude, velocity, eclipse_depth, phase,
           squint_string, orbitnum);
  }
  strcpy(buf, send_command("localhost", "GET_MOON"));
  printf("\nThe following string was returned in response to GET_MOON:\n%s\n",
         buf);
  strcpy(buf, send_command("localhost", "GET_SUN"));
  printf("The following string was returned in response to GET_SUN:\n%s\n",
         buf);
  strcpy(buf, send_command("localhost", "GET_VERSION"));
  printf("The following string was returned in response to GET_VERSION:\n%s\n",
         buf);
  strcpy(buf, send_command("localhost", "GET_QTH"));
  printf("The following string was returned in response to GET_QTH:\n%s\n",
         buf);
  strcpy(buf, send_command("localhost", "GET_MODE"));
  printf("The following string was returned in response to the GET_MODE "
         "command:\n%s\n",
         buf);
  sprintf(command, "GET_TLE %s", satnamelist[9]);
  strcpy(buf, send_command("localhost", command));
  printf("The following string was returned in response to %s:\n%s\n", command,
         buf);
  strcpy(buf, send_command("localhost", "GET_TIME$"));
  printf("The following string was returned in response to GET_TIME$:\n%s\n",
         buf);
  strcpy(buf, send_command("localhost", "GET_TIME"));
  printf("The following string was returned in response to GET_TIME:\n%s\n",
         buf);
  sscanf(buf, "%ld", &start);
  sprintf(command, "GET_SAT_POS \"%s\" %ld +10m", satnamelist[0], start);
  printf("The following string was returned in response to:\n\n\t%s:\n\n",
         command);
  send_command2("localhost", command);
  sprintf(command, "PREDICT \"%s\" %ld", satnamelist[23], start);
  printf("The following string was returned in response to:\n\n\t%s:\n\n",
         command);
  send_command2("localhost", command);
  printf("If that flew by too fast, consider piping the output of\n");
  printf("this demo program through 'less'.  (ie: demo | less)  :-)\n\n");
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x7d8,%rsp
movl   $0x0,-0x2c(%rbp)
lea    -0x3c0(%rbp),%rax
mov    %rax,-0x708(%rbp)
lea    0xe38(%rip),%rdi
lea    0xe3b(%rip),%rsi
call   1090 <send_command@plt>
mov    -0x708(%rbp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    -0x3c0(%rbp),%rsi
lea    0xe22(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x70c(%rbp)
lea    -0x3c0(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x70c(%rbp),%eax
cmp    %ecx,%eax
jge    12be <main+0x11e>
movslq -0x34(%rbp),%rax
movsbl -0x3c0(%rbp,%rax,1),%eax
ff
cmp    $0xa,%eax
je     1281 <main+0xe1>
movslq -0x34(%rbp),%rax
mov    -0x3c0(%rbp,%rax,1),%dl
movslq -0x38(%rbp),%rcx
lea    -0x690(%rbp),%rax
imul   $0x1a,%rcx,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    12ab <main+0x10b>
movslq -0x38(%rbp),%rcx
lea    -0x690(%rbp),%rax
imul   $0x1a,%rcx,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
movl   $0x0,-0x30(%rbp)
jmp    12b0 <main+0x110>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1215 <main+0x75>
mov    -0x38(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    16c3 <main+0x523>
lea    -0x140(%rbp),%rdi
movslq -0x38(%rbp),%rax
lea    -0x690(%rbp),%rdx
imul   $0x1a,%rax,%rax
add    %rax,%rdx
lea    0xd68(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0xc0(%rbp),%rax
mov    %rax,-0x718(%rbp)
lea    -0x140(%rbp),%rsi
lea    0xcee(%rip),%rdi
call   1090 <send_command@plt>
mov    -0x718(%rbp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    -0x140(%rbp),%rsi
lea    -0xc0(%rbp),%rdx
lea    0xd27(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x30(%rbp)
movslq -0x30(%rbp),%rax
movsbl -0xc0(%rbp,%rax,1),%eax
ff
cmp    $0xa,%eax
je     138a <main+0x1ea>
movslq -0x30(%rbp),%rax
mov    -0xc0(%rbp,%rax,1),%cl
movslq -0x30(%rbp),%rax
mov    %cl,-0x3e0(%rbp,%rax,1)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1351 <main+0x1b1>
movslq -0x30(%rbp),%rax
movb   $0x0,-0x3e0(%rbp,%rax,1)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x30(%rbp),%eax
add    -0x34(%rbp),%eax
cltq
movsbl -0xc0(%rbp,%rax,1),%eax
ff
cmp    $0x0,%eax
je     13e7 <main+0x247>
mov    -0x30(%rbp),%eax
add    -0x34(%rbp),%eax
cltq
mov    -0xc0(%rbp,%rax,1),%cl
movslq -0x34(%rbp),%rax
mov    %cl,-0xc0(%rbp,%rax,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    13a6 <main+0x206>
movslq -0x34(%rbp),%rax
movb   $0x0,-0xc0(%rbp,%rax,1)
lea    -0xc0(%rbp),%rdi
lea    0xca2(%rip),%rsi
lea    -0x6d4(%rbp),%rdx
lea    -0x6d8(%rbp),%rcx
lea    -0x6cc(%rbp),%r8
lea    -0x6d0(%rbp),%r9
lea    -0x6b8(%rbp),%rax
mov    %rax,-0x730(%rbp)
lea    -0x6dc(%rbp),%rax
mov    %rax,-0x728(%rbp)
lea    -0x6e0(%rbp),%r13
lea    -0x6e4(%rbp),%r12
lea    -0x6e8(%rbp),%r15
lea    -0x6c0(%rbp),%r14
lea    -0x3e1(%rbp),%rbx
lea    -0x6ec(%rbp),%r11
lea    -0x6f0(%rbp),%r10
lea    -0x6f4(%rbp),%rax
mov    %rax,-0x720(%rbp)
mov    -0x730(%rbp),%rax
mov    %rax,(%rsp)
mov    -0x728(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x720(%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)
mov    $0x0,%al
call   1080 <sscanf@plt>
mov    -0x6b8(%rbp),%rax
mov    %rax,-0x700(%rbp)
movss  -0x6d0(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1504 <main+0x364>
lea    -0x69f(%rbp),%rdi
lea    0xbd5(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1517 <main+0x377>
lea    -0x69f(%rbp),%rdi
lea    0xbc4(%rip),%rsi
call   1030 <strcpy@plt>
movss  -0x6f4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xad5(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1555 <main+0x3b5>
jp     1555 <main+0x3b5>
lea    -0x6ae(%rbp),%rdi
lea    0xb99(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
jmp    1576 <main+0x3d6>
lea    -0x6ae(%rbp),%rdi
movss  -0x6f4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xb77(%rip),%rsi
mov    $0x1,%al
call   10b0 <sprintf@plt>
lea    -0x3e0(%rbp),%rax
mov    %rax,-0x768(%rbp)
movss  -0x6d4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x760(%rbp)
ff
movss  -0x6d8(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x758(%rbp)
ff
movss  -0x6cc(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x750(%rbp)
ff
movss  -0x6d0(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x748(%rbp)
ff
lea    -0x69f(%rbp),%rax
mov    %rax,-0x740(%rbp)
mov    -0x6b8(%rbp),%rax
mov    %rax,-0x738(%rbp)
lea    -0x700(%rbp),%rdi
call   10a0 <gmtime@plt>
mov    %eax,%edi
call   1050 <asctime@plt>
mov    -0x768(%rbp),%rsi
movsd  -0x760(%rbp),%xmm0
ff
movsd  -0x758(%rbp),%xmm1
ff
movsd  -0x750(%rbp),%xmm2
ff
movsd  -0x748(%rbp),%xmm3
ff
mov    -0x740(%rbp),%rdx
mov    -0x738(%rbp),%rcx
mov    %eax,%r8d
movss  -0x6dc(%rbp),%xmm4
ff
cvtss2sd %xmm4,%xmm4
movss  -0x6e0(%rbp),%xmm5
ff
cvtss2sd %xmm5,%xmm5
movss  -0x6e4(%rbp),%xmm6
ff
cvtss2sd %xmm6,%xmm6
movss  -0x6e8(%rbp),%xmm7
ff
cvtss2sd %xmm7,%xmm7
movss  -0x6f0(%rbp),%xmm8
ff ff
cvtss2sd %xmm8,%xmm9
movss  -0x6ec(%rbp),%xmm8
ff ff
cvtss2sd %xmm8,%xmm8
lea    -0x6ae(%rbp),%r9
mov    -0x6c0(%rbp),%rax
lea    0xa57(%rip),%rdi
movsd  %xmm9,(%rsp)
movsd  %xmm8,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x8,%al
call   1060 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12cb <main+0x12b>
lea    -0xc0(%rbp),%rax
mov    %rax,-0x7a8(%rbp)
lea    0x930(%rip),%rdi
lea    0xb0d(%rip),%rsi
call   1090 <send_command@plt>
mov    -0x7a8(%rbp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    -0xc0(%rbp),%rsi
lea    0xaf4(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc0(%rbp),%rax
mov    %rax,-0x7a0(%rbp)
lea    0x8eb(%rip),%rdi
lea    0xb11(%rip),%rsi
call   1090 <send_command@plt>
mov    -0x7a0(%rbp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    -0xc0(%rbp),%rsi
lea    0xaf7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc0(%rbp),%rax
mov    %rax,-0x798(%rbp)
lea    0x8a6(%rip),%rdi
lea    0xb12(%rip),%rsi
call   1090 <send_command@plt>
mov    -0x798(%rbp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    -0xc0(%rbp),%rsi
lea    0xafc(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc0(%rbp),%rax
mov    %rax,-0x790(%rbp)
lea    0x861(%rip),%rdi
lea    0xb1b(%rip),%rsi
call   1090 <send_command@plt>
mov    -0x790(%rbp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    -0xc0(%rbp),%rsi
lea    0xb01(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc0(%rbp),%rax
mov    %rax,-0x788(%rbp)
lea    0x81c(%rip),%rdi
lea    0xb1c(%rip),%rsi
call   1090 <send_command@plt>
mov    -0x788(%rbp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    -0xc0(%rbp),%rsi
lea    0xb03(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x140(%rbp),%rdi
lea    -0x690(%rbp),%rdx
add    $0xea,%rdx
lea    0xb2b(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0xc0(%rbp),%rax
mov    %rax,-0x780(%rbp)
lea    -0x140(%rbp),%rsi
lea    0x7ad(%rip),%rdi
call   1090 <send_command@plt>
mov    -0x780(%rbp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    -0x140(%rbp),%rsi
lea    -0xc0(%rbp),%rdx
lea    0x7e6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc0(%rbp),%rax
mov    %rax,-0x778(%rbp)
lea    0x768(%rip),%rdi
lea    0xac7(%rip),%rsi
call   1090 <send_command@plt>
mov    -0x778(%rbp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    -0xc0(%rbp),%rsi
lea    0xaaf(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc0(%rbp),%rax
mov    %rax,-0x770(%rbp)
lea    0x723(%rip),%rdi
lea    0xacc(%rip),%rsi
call   1090 <send_command@plt>
mov    -0x770(%rbp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    -0xc0(%rbp),%rsi
lea    0xab3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc0(%rbp),%rdi
lea    0xb3e(%rip),%rsi
lea    -0x6c8(%rbp),%rdx
mov    $0x0,%al
call   1080 <sscanf@plt>
lea    -0x140(%rbp),%rdi
lea    -0x690(%rbp),%rdx
mov    -0x6c8(%rbp),%rcx
lea    0xab3(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x140(%rbp),%rsi
lea    0xab8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x140(%rbp),%rsi
lea    0x691(%rip),%rdi
call   1070 <send_command2@plt>
lea    -0x140(%rbp),%rdi
lea    -0x690(%rbp),%rdx
add    $0x256,%rdx
mov    -0x6c8(%rbp),%rcx
lea    0xab5(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x140(%rbp),%rsi
lea    0xa66(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x140(%rbp),%rsi
lea    0x63f(%rip),%rdi
call   1070 <send_command2@plt>
lea    0xa90(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xabb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %edi,%edi
call   10c0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x6e8,%rsp
lea    0xe40(%rip),%rdi
lea    0xe43(%rip),%rsi
call   10a0 <send_command@plt>
lea    0x470(%rsp),%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    0xe2d(%rip),%rdi
xor    %ebp,%ebp
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
test   %eax,%eax
jle    1569 <main+0x3b9>
lea    0x470(%rsp),%r14
xor    %ebx,%ebx
xor    %r15d,%r15d
jmp    123c <main+0x8c>
nopl   0x0(%rax)
movb   $0x0,(%rcx)
add    $0x1,%r15d
xor    %ebp,%ebp
add    $0x1,%rbx
mov    %r14,%rdi
call   1050 <strlen@plt>
cltq
cmp    %rax,%rbx
jge    126e <main+0xbe>
movzbl 0x470(%rsp,%rbx,1),%eax
movslq %r15d,%rdx
movslq %ebp,%rcx
lea    (%rdx,%rdx,4),%rsi
lea    (%rsi,%rsi,4),%rsi
add    %rdx,%rsi
lea    (%rsp,%rsi,1),%rdx
add    $0x1c0,%rdx
add    %rdx,%rcx
cmp    $0xa,%al
je     1220 <main+0x70>
mov    %al,(%rcx)
add    $0x1,%ebp
jmp    1229 <main+0x79>
test   %r15d,%r15d
jle    1569 <main+0x3b9>
mov    %r15d,%eax
mov    %rax,0x48(%rsp)
lea    0x140(%rsp),%r12
lea    0xc0(%rsp),%rbx
lea    0xb1(%rsp),%r14
xor    %r15d,%r15d
jmp    13bb <main+0x20b>
nop
cvtss2sd %xmm0,%xmm0
lea    0x80(%rsp),%rbp
mov    %rbp,%rdi
lea    0xe2c(%rip),%rsi
mov    $0x1,%al
call   10c0 <sprintf@plt>
movss  0x30(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x68(%rsp)
movss  0x2c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x60(%rsp)
movss  0x34(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x58(%rsp)
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x50(%rsp)
mov    0x40(%rsp),%r13
lea    0x70(%rsp),%rdi
call   10b0 <gmtime@plt>
mov    %eax,%edi
call   1060 <asctime@plt>
movss  0x28(%rsp),%xmm0
cvtss2sd %xmm0,%xmm4
movss  0x24(%rsp),%xmm0
cvtss2sd %xmm0,%xmm5
movss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm6
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm7
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x18(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    0x78(%rsp),%rcx
sub    $0x20,%rsp
mov    %rcx,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
lea    0xd80(%rip),%rdi
lea    0xb0(%rsp),%rsi
movsd  0x88(%rsp),%xmm0
movsd  0x80(%rsp),%xmm1
movsd  0x78(%rsp),%xmm2
movsd  0x70(%rsp),%xmm3
mov    %r14,%rdx
mov    %r13,%rcx
mov    %eax,%r8d
mov    %rbp,%r9
mov    $0x8,%al
call   1070 <printf@plt>
add    $0x20,%rsp
add    $0x1,%r15
cmp    0x48(%rsp),%r15
je     1569 <main+0x3b9>
lea    (%r15,%r15,4),%rax
lea    (%rax,%rax,4),%rax
add    %r15,%rax
lea    (%rsp,%rax,1),%rdx
add    $0x1c0,%rdx
mov    %r12,%rdi
lea    0xc84(%rip),%rsi
xor    %eax,%eax
call   10c0 <sprintf@plt>
lea    0xc1f(%rip),%rdi
mov    %r12,%rsi
call   10a0 <send_command@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    0xc67(%rip),%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xc0(%rsp),%cl
mov    $0x0,%eax
cmp    $0xa,%cl
je     1448 <main+0x298>
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %cl,0x90(%rsp,%rax,1)
movzbl 0xc1(%rsp,%rax,1),%ecx
add    $0x1,%rax
cmp    $0xa,%cl
jne    1430 <main+0x280>
mov    %eax,%ecx
movb   $0x0,0x90(%rsp,%rcx,1)
mov    0xc1(%rsp,%rcx,1),%al
test   %al,%al
je     1490 <main+0x2e0>
add    $0x1,%rcx
lea    (%rcx,%rbx,1),%rdx
add    $0x1,%rdx
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
mov    %al,0xc0(%rsp,%rcx,1)
movzbl (%rdx,%rcx,1),%eax
add    $0x1,%rcx
test   %al,%al
jne    1470 <main+0x2c0>
jmp    1492 <main+0x2e2>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %ecx,%ecx
mov    %ecx,%eax
movb   $0x0,0xc0(%rsp,%rax,1)
mov    %rbx,%rdi
lea    0xbfd(%rip),%rsi
lea    0x30(%rsp),%rdx
lea    0x2c(%rsp),%rcx
lea    0x34(%rsp),%r8
lea    0xc(%rsp),%r9
xor    %eax,%eax
lea    0x10(%rsp),%rbp
push   %rbp
lea    0x1c(%rsp),%rbp
push   %rbp
lea    0x28(%rsp),%rbp
push   %rbp
lea    0x23(%rsp),%rbp
push   %rbp
lea    0x98(%rsp),%rbp
push   %rbp
lea    0x44(%rsp),%rbp
push   %rbp
lea    0x50(%rsp),%rbp
push   %rbp
lea    0x5c(%rsp),%rbp
push   %rbp
lea    0x68(%rsp),%rbp
push   %rbp
lea    0x88(%rsp),%rbp
push   %rbp
call   1090 <sscanf@plt>
add    $0x50,%rsp
mov    0x40(%rsp),%rax
movss  0xc(%rsp),%xmm0
ucomiss 0xaeb(%rip),%xmm0
mov    %rax,0x70(%rsp)
lea    0xbb1(%rip),%rsi
lea    0xba3(%rip),%rax
cmova  %rax,%rsi
mov    %r14,%rdi
call   1030 <strcpy@plt>
movss  0x10(%rsp),%xmm0
ucomiss 0xabb(%rip),%xmm0
jne    12a0 <main+0xf0>
jp     12a0 <main+0xf0>
movl   $0x412f4e,0x80(%rsp)
lea    0x80(%rsp),%rbp
jmp    12bd <main+0x10d>
lea    0xa98(%rip),%r14
lea    0xc71(%rip),%rsi
mov    %r14,%rdi
call   10a0 <send_command@plt>
lea    0xc0(%rsp),%rbp
mov    %rbp,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    0xc58(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xc87(%rip),%rsi
mov    %r14,%rdi
call   10a0 <send_command@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    0xc75(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xca2(%rip),%rsi
mov    %r14,%rdi
call   10a0 <send_command@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    0xc94(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xcc5(%rip),%rsi
mov    %r14,%rdi
call   10a0 <send_command@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    0xcb3(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xce0(%rip),%rsi
mov    %r14,%rdi
call   10a0 <send_command@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    0xccf(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x2aa(%rsp),%rdx
lea    0xd01(%rip),%rsi
lea    0x140(%rsp),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   10c0 <sprintf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   10a0 <send_command@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    0x9dd(%rip),%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xcc9(%rip),%rsi
mov    %r14,%rdi
call   10a0 <send_command@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    0xcb9(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xce8(%rip),%rsi
mov    %r14,%rdi
call   10a0 <send_command@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    0xcd7(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xd66(%rip),%rsi
lea    0x38(%rsp),%rdx
mov    %rbp,%rdi
xor    %eax,%eax
call   1090 <sscanf@plt>
mov    0x38(%rsp),%rcx
lea    0xcea(%rip),%rsi
lea    0x1c0(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   10c0 <sprintf@plt>
lea    0xceb(%rip),%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1080 <send_command2@plt>
lea    0x416(%rsp),%rdx
mov    0x38(%rsp),%rcx
lea    0xcf9(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   10c0 <sprintf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1080 <send_command2@plt>
lea    0xce1(%rip),%rdi
call   1040 <puts@plt>
lea    0xd0d(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"localhost\00"
@.str.1 = [9 x i8] c"GET_LIST\00"
@.str.2 = [68 x i8] c"\0APREDICT returned the following string in response to GET_LIST:\0A%s\0A\00"
@.str.3 = [11 x i8] c"GET_SAT %s\00"
@.str.4 = [57 x i8] c"The following string was returned in response to %s:\0A%s\0A\00"
@.str.5 = [44 x i8] c"%f %f %f %f %ld %f %f %f %f %ld %c %f %f %f\00"
@.str.6 = [7 x i8] c"LOS at\00"
@.str.7 = [12 x i8] c"Next AOS at\00"
@.str.8 = [4 x i8] c"N/A\00"
@.str.9 = [13 x i8] c"%.2f degrees\00"
@.str.10 = [249 x i8] c"Values are as follows:\0AName: %s\0ALong: %.2f degrees\0ALat: %.2f degrees\0AAz: %.2f degrees\0AEl: %+-6.2f degrees\0A%s: %ld = %sFootprint: %.2f km\0ARange: %.2f km\0AAltitude: %.2f km\0AVelocity: %.2f km/hr\0AEclipse Depth: %.2f\0APhase: %.2f\0ASquint: %s\0AOrbit #: %ld\0A\0A\00"
@.str.11 = [9 x i8] c"GET_MOON\00"
@.str.12 = [64 x i8] c"\0AThe following string was returned in response to GET_MOON:\0A%s\0A\00"
@.str.13 = [8 x i8] c"GET_SUN\00"
@.str.14 = [62 x i8] c"The following string was returned in response to GET_SUN:\0A%s\0A\00"
@.str.15 = [12 x i8] c"GET_VERSION\00"
@.str.16 = [66 x i8] c"The following string was returned in response to GET_VERSION:\0A%s\0A\00"
@.str.17 = [8 x i8] c"GET_QTH\00"
@.str.18 = [62 x i8] c"The following string was returned in response to GET_QTH:\0A%s\0A\00"
@.str.19 = [9 x i8] c"GET_MODE\00"
@.str.20 = [75 x i8] c"The following string was returned in response to the GET_MODE command:\0A%s\0A\00"
@.str.21 = [11 x i8] c"GET_TLE %s\00"
@.str.22 = [10 x i8] c"GET_TIME$\00"
@.str.23 = [64 x i8] c"The following string was returned in response to GET_TIME$:\0A%s\0A\00"
@.str.24 = [9 x i8] c"GET_TIME\00"
@.str.25 = [63 x i8] c"The following string was returned in response to GET_TIME:\0A%s\0A\00"
@.str.26 = [4 x i8] c"%ld\00"
@.str.27 = [26 x i8] c"GET_SAT_POS \22%s\22 %ld +10m\00"
@.str.28 = [58 x i8] c"The following string was returned in response to:\0A\0A\09%s:\0A\0A\00"
@.str.29 = [17 x i8] c"PREDICT \22%s\22 %ld\00"
@.str.30 = [57 x i8] c"If that flew by too fast, consider piping the output of\0A\00"
@.str.31 = [60 x i8] c"this demo program through 'less'. (ie: demo | less) :-)\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [128 x i8]
%7 = alloca [128 x i8]
%8 = alloca [625 x i8]
%9 = alloca [26 x i8]
%10 = alloca i8
%11 = alloca [26 x [26 x i8]]
%12 = alloca [15 x i8]
%13 = alloca [15 x i8]
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca float
%21 = alloca float
%22 = alloca float
%23 = alloca float
%24 = alloca float
%25 = alloca float
%26 = alloca float
%27 = alloca float
%28 = alloca i64
store i32 0, i32* %1
%29 = getelementptr inbounds [625 x i8], [625 x i8]* %8, i64 0, i64 0
%30 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%31 = call i32 @strcpy(i8* %29, i8* %30)
%32 = getelementptr inbounds [625 x i8], [625 x i8]* %8, i64 0, i64 0
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0), i8* %32)
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
br label %34
34: ; preds = %69, %0
%35 = load i32, i32* %3
%36 = getelementptr inbounds [625 x i8], [625 x i8]* %8, i64 0, i64 0
%37 = call i32 @strlen(i8* %36)
%38 = icmp slt i32 %35, %37
br i1 %38, label %39, label %72
39: ; preds = %34
%40 = load i32, i32* %3
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [625 x i8], [625 x i8]* %8, i64 0, i64 %41
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 10
br i1 %45, label %46, label %59
46: ; preds = %39
%47 = load i32, i32* %3
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [625 x i8], [625 x i8]* %8, i64 0, i64 %48
%50 = load i8, i8* %49
%51 = load i32, i32* %4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [26 x [26 x i8]], [26 x [26 x i8]]* %11, i64 0, i64 %52
%54 = load i32, i32* %2
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [26 x i8], [26 x i8]* %53, i64 0, i64 %55
store i8 %50, i8* %56
%57 = load i32, i32* %2
%58 = add nsw i32 %57, 1
store i32 %58, i32* %2
br label %68
59: ; preds = %39
%60 = load i32, i32* %4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [26 x [26 x i8]], [26 x [26 x i8]]* %11, i64 0, i64 %61
%63 = load i32, i32* %2
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [26 x i8], [26 x i8]* %62, i64 0, i64 %64
store i8 0, i8* %65
%66 = load i32, i32* %4
%67 = add nsw i32 %66, 1
store i32 %67, i32* %4
store i32 0, i32* %2
br label %68
68: ; preds = %59, %46
br label %69
69: ; preds = %68
%70 = load i32, i32* %3
%71 = add nsw i32 %70, 1
store i32 %71, i32* %3
br label %34
72: ; preds = %34
%73 = load i32, i32* %4
store i32 %73, i32* %5
store i32 0, i32* %4
br label %74
74: ; preds = %195, %72
%75 = load i32, i32* %4
%76 = load i32, i32* %5
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %198
78: ; preds = %74
%79 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%80 = load i32, i32* %4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [26 x [26 x i8]], [26 x [26 x i8]]* %11, i64 0, i64 %81
%83 = getelementptr inbounds [26 x i8], [26 x i8]* %82, i64 0, i64 0
%84 = call i32 (i8*, i8*, ...) @sprintf(i8* %79, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* %83)
%85 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%86 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%87 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %86)
%88 = call i32 @strcpy(i8* %85, i8* %87)
%89 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%90 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0), i8* %89, i8* %90)
store i32 0, i32* %2
br label %92
92: ; preds = %107, %78
%93 = load i32, i32* %2
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %94
%96 = load i8, i8* %95
%97 = sext i8 %96 to i32
%98 = icmp ne i32 %97, 10
br i1 %98, label %99, label %110
99: ; preds = %92
%100 = load i32, i32* %2
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %101
%103 = load i8, i8* %102
%104 = load i32, i32* %2
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [26 x i8], [26 x i8]* %9, i64 0, i64 %105
store i8 %103, i8* %106
br label %107
107: ; preds = %99
%108 = load i32, i32* %2
%109 = add nsw i32 %108, 1
store i32 %109, i32* %2
br label %92
110: ; preds = %92
%111 = load i32, i32* %2
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [26 x i8], [26 x i8]* %9, i64 0, i64 %112
store i8 0, i8* %113
%114 = load i32, i32* %2
%115 = add nsw i32 %114, 1
store i32 %115, i32* %2
store i32 0, i32* %3
br label %116
116: ; preds = %135, %110
%117 = load i32, i32* %2
%118 = load i32, i32* %3
%119 = add nsw i32 %117, %118
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %120
%122 = load i8, i8* %121
%123 = sext i8 %122 to i32
%124 = icmp ne i32 %123, 0
br i1 %124, label %125, label %138
125: ; preds = %116
%126 = load i32, i32* %2
%127 = load i32, i32* %3
%128 = add nsw i32 %126, %127
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %129
%131 = load i8, i8* %130
%132 = load i32, i32* %3
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %133
store i8 %131, i8* %134
br label %135
135: ; preds = %125
%136 = load i32, i32* %3
%137 = add nsw i32 %136, 1
store i32 %137, i32* %3
br label %116
138: ; preds = %116
%139 = load i32, i32* %3
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %140
store i8 0, i8* %141
%142 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%143 = call i32 (i8*, i8*, ...) @sscanf(i8* %142, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), float* %19, float* %20, float* %17, float* %18, i64* %14, float* %21, float* %22, float* %23, float* %24, i64* %15, i8* %10, float* %25, float* %26, float* %27)
%144 = load i64, i64* %14
store i64 %144, i64* %28
%145 = load float, float* %18
%146 = fpext float %145 to double
%147 = fcmp ogt double %146, 0.000000e+00
br i1 %147, label %148, label %151
148: ; preds = %138
%149 = getelementptr inbounds [15 x i8], [15 x i8]* %12, i64 0, i64 0
%150 = call i32 @strcpy(i8* %149, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %154
151: ; preds = %138
%152 = getelementptr inbounds [15 x i8], [15 x i8]* %12, i64 0, i64 0
%153 = call i32 @strcpy(i8* %152, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
br label %154
154: ; preds = %151, %148
%155 = load float, float* %27
%156 = fpext float %155 to double
%157 = fcmp oeq double %156, 3.600000e+02
br i1 %157, label %158, label %161
158: ; preds = %154
%159 = getelementptr inbounds [15 x i8], [15 x i8]* %13, i64 0, i64 0
%160 = call i32 (i8*, i8*, ...) @sprintf(i8* %159, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
br label %166
161: ; preds = %154
%162 = getelementptr inbounds [15 x i8], [15 x i8]* %13, i64 0, i64 0
%163 = load float, float* %27
%164 = fpext float %163 to double
%165 = call i32 (i8*, i8*, ...) @sprintf(i8* %162, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), double %164)
br label %166
166: ; preds = %161, %158
%167 = getelementptr inbounds [26 x i8], [26 x i8]* %9, i64 0, i64 0
%168 = load float, float* %19
%169 = fpext float %168 to double
%170 = load float, float* %20
%171 = fpext float %170 to double
%172 = load float, float* %17
%173 = fpext float %172 to double
%174 = load float, float* %18
%175 = fpext float %174 to double
%176 = getelementptr inbounds [15 x i8], [15 x i8]* %12, i64 0, i64 0
%177 = load i64, i64* %14
%178 = call i32 @gmtime(i64* %28)
%179 = call i32 @asctime(i32 %178)
%180 = load float, float* %21
%181 = fpext float %180 to double
%182 = load float, float* %22
%183 = fpext float %182 to double
%184 = load float, float* %23
%185 = fpext float %184 to double
%186 = load float, float* %24
%187 = fpext float %186 to double
%188 = load float, float* %26
%189 = fpext float %188 to double
%190 = load float, float* %25
%191 = fpext float %190 to double
%192 = getelementptr inbounds [15 x i8], [15 x i8]* %13, i64 0, i64 0
%193 = load i64, i64* %15
%194 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([249 x i8], [249 x i8]* @.str.10, i64 0, i64 0), i8* %167, double %169, double %171, double %173, double %175, i8* %176, i64 %177, i32 %179, double %181, double %183, double %185, double %187, double %189, double %191, i8* %192, i64 %193)
br label %195
195: ; preds = %166
%196 = load i32, i32* %4
%197 = add nsw i32 %196, 1
store i32 %197, i32* %4
br label %74
198: ; preds = %74
%199 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%200 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%201 = call i32 @strcpy(i8* %199, i8* %200)
%202 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%203 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.12, i64 0, i64 0), i8* %202)
%204 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%205 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%206 = call i32 @strcpy(i8* %204, i8* %205)
%207 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%208 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.14, i64 0, i64 0), i8* %207)
%209 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%210 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%211 = call i32 @strcpy(i8* %209, i8* %210)
%212 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%213 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.16, i64 0, i64 0), i8* %212)
%214 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%215 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%216 = call i32 @strcpy(i8* %214, i8* %215)
%217 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%218 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.18, i64 0, i64 0), i8* %217)
%219 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%220 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0))
%221 = call i32 @strcpy(i8* %219, i8* %220)
%222 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%223 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.20, i64 0, i64 0), i8* %222)
%224 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%225 = getelementptr inbounds [26 x [26 x i8]], [26 x [26 x i8]]* %11, i64 0, i64 9
%226 = getelementptr inbounds [26 x i8], [26 x i8]* %225, i64 0, i64 0
%227 = call i32 (i8*, i8*, ...) @sprintf(i8* %224, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0), i8* %226)
%228 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%229 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%230 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %229)
%231 = call i32 @strcpy(i8* %228, i8* %230)
%232 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%233 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%234 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0), i8* %232, i8* %233)
%235 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%236 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0))
%237 = call i32 @strcpy(i8* %235, i8* %236)
%238 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%239 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.23, i64 0, i64 0), i8* %238)
%240 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%241 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.24, i64 0, i64 0))
%242 = call i32 @strcpy(i8* %240, i8* %241)
%243 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%244 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.25, i64 0, i64 0), i8* %243)
%245 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%246 = call i32 (i8*, i8*, ...) @sscanf(i8* %245, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0), i64* %16)
%247 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%248 = getelementptr inbounds [26 x [26 x i8]], [26 x [26 x i8]]* %11, i64 0, i64 0
%249 = getelementptr inbounds [26 x i8], [26 x i8]* %248, i64 0, i64 0
%250 = load i64, i64* %16
%251 = call i32 (i8*, i8*, ...) @sprintf(i8* %247, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.27, i64 0, i64 0), i8* %249, i64 %250)
%252 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%253 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.28, i64 0, i64 0), i8* %252)
%254 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%255 = call i32 @send_command2(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %254)
%256 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%257 = getelementptr inbounds [26 x [26 x i8]], [26 x [26 x i8]]* %11, i64 0, i64 23
%258 = getelementptr inbounds [26 x i8], [26 x i8]* %257, i64 0, i64 0
%259 = load i64, i64* %16
%260 = call i32 (i8*, i8*, ...) @sprintf(i8* %256, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.29, i64 0, i64 0), i8* %258, i64 %259)
%261 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%262 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.28, i64 0, i64 0), i8* %261)
%263 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%264 = call i32 @send_command2(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %263)
%265 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.30, i64 0, i64 0))
%266 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.31, i64 0, i64 0))
%267 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [10 x i8] c"localhost\00"
@.str.1 = [9 x i8] c"GET_LIST\00"
@.str.2 = [68 x i8] c"\0APREDICT returned the following string in response to GET_LIST:\0A%s\0A\00"
@.str.3 = [11 x i8] c"GET_SAT %s\00"
@.str.4 = [57 x i8] c"The following string was returned in response to %s:\0A%s\0A\00"
@.str.5 = [44 x i8] c"%f %f %f %f %ld %f %f %f %f %ld %c %f %f %f\00"
@.str.6 = [7 x i8] c"LOS at\00"
@.str.7 = [12 x i8] c"Next AOS at\00"
@.str.9 = [13 x i8] c"%.2f degrees\00"
@.str.10 = [249 x i8] c"Values are as follows:\0AName: %s\0ALong: %.2f degrees\0ALat: %.2f degrees\0AAz: %.2f degrees\0AEl: %+-6.2f degrees\0A%s: %ld = %sFootprint: %.2f km\0ARange: %.2f km\0AAltitude: %.2f km\0AVelocity: %.2f km/hr\0AEclipse Depth: %.2f\0APhase: %.2f\0ASquint: %s\0AOrbit #: %ld\0A\0A\00"
@.str.11 = [9 x i8] c"GET_MOON\00"
@.str.12 = [64 x i8] c"\0AThe following string was returned in response to GET_MOON:\0A%s\0A\00"
@.str.13 = [8 x i8] c"GET_SUN\00"
@.str.14 = [62 x i8] c"The following string was returned in response to GET_SUN:\0A%s\0A\00"
@.str.15 = [12 x i8] c"GET_VERSION\00"
@.str.16 = [66 x i8] c"The following string was returned in response to GET_VERSION:\0A%s\0A\00"
@.str.17 = [8 x i8] c"GET_QTH\00"
@.str.18 = [62 x i8] c"The following string was returned in response to GET_QTH:\0A%s\0A\00"
@.str.19 = [9 x i8] c"GET_MODE\00"
@.str.20 = [75 x i8] c"The following string was returned in response to the GET_MODE command:\0A%s\0A\00"
@.str.21 = [11 x i8] c"GET_TLE %s\00"
@.str.22 = [10 x i8] c"GET_TIME$\00"
@.str.23 = [64 x i8] c"The following string was returned in response to GET_TIME$:\0A%s\0A\00"
@.str.24 = [9 x i8] c"GET_TIME\00"
@.str.25 = [63 x i8] c"The following string was returned in response to GET_TIME:\0A%s\0A\00"
@.str.26 = [4 x i8] c"%ld\00"
@.str.27 = [26 x i8] c"GET_SAT_POS \22%s\22 %ld +10m\00"
@.str.28 = [58 x i8] c"The following string was returned in response to:\0A\0A\09%s:\0A\0A\00"
@.str.29 = [17 x i8] c"PREDICT \22%s\22 %ld\00"
@str = [56 x i8] c"If that flew by too fast, consider piping the output of\00"
@str.32 = [59 x i8] c"this demo program through 'less'. (ie: demo | less) :-)\0A\00"
define i32 @main() {
%1 = alloca [128 x i8]
%2 = alloca [128 x i8]
%3 = alloca [625 x i8]
%4 = alloca [26 x i8]
%5 = alloca i8
%6 = alloca [26 x [26 x i8]]
%7 = alloca [15 x i8]
%8 = alloca [15 x i8]
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca float
%21 = alloca float
%22 = alloca float
%23 = alloca i64
%24 = getelementptr inbounds [128 x i8], [128 x i8]* %1, i64 0, i64 0
%25 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%26 = getelementptr inbounds [625 x i8], [625 x i8]* %3, i64 0, i64 0
%27 = getelementptr inbounds [26 x i8], [26 x i8]* %4, i64 0, i64 0
%28 = getelementptr inbounds [26 x [26 x i8]], [26 x [26 x i8]]* %6, i64 0, i64 0, i64 0
%29 = getelementptr inbounds [15 x i8], [15 x i8]* %7, i64 0, i64 0
%30 = getelementptr inbounds [15 x i8], [15 x i8]* %8, i64 0, i64 0
%31 = bitcast i64* %9 to i8*
%32 = bitcast i64* %10 to i8*
%33 = bitcast i64* %11 to i8*
%34 = bitcast float* %12 to i8*
%35 = bitcast float* %13 to i8*
%36 = bitcast float* %14 to i8*
%37 = bitcast float* %15 to i8*
%38 = bitcast float* %16 to i8*
%39 = bitcast float* %17 to i8*
%40 = bitcast float* %18 to i8*
%41 = bitcast float* %19 to i8*
%42 = bitcast float* %20 to i8*
%43 = bitcast float* %21 to i8*
%44 = bitcast float* %22 to i8*
%45 = bitcast i64* %23 to i8*
%46 = tail call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%47 = call i32 @strcpy(i8* %26, i8* %46)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%49 = call i32 @strlen(i8* %26)
%50 = icmp sgt i32 %49, 0
br i1 %50, label %56, label %158
51: ; preds = %70
%52 = icmp sgt i32 %71, 0
br i1 %52, label %53, label %158
53: ; preds = %51
%54 = bitcast [15 x i8]* %8 to i32*
%55 = zext i32 %71 to i64
br label %77
56: ; preds = %0, %70
%57 = phi i64 [ %73, %70 ], [ 0, %0 ]
%58 = phi i32 [ %72, %70 ], [ 0, %0 ]
%59 = phi i32 [ %71, %70 ], [ 0, %0 ]
%60 = getelementptr inbounds [625 x i8], [625 x i8]* %3, i64 0, i64 %57
%61 = load i8, i8* %60
%62 = icmp eq i8 %61, 10
%63 = sext i32 %59 to i64
%64 = sext i32 %58 to i64
%65 = getelementptr inbounds [26 x [26 x i8]], [26 x [26 x i8]]* %6, i64 0, i64 %63, i64 %64
br i1 %62, label %68, label %66
66: ; preds = %56
store i8 %61, i8* %65
%67 = add nsw i32 %58, 1
br label %70
68: ; preds = %56
store i8 0, i8* %65
%69 = add nsw i32 %59, 1
br label %70
70: ; preds = %66, %68
%71 = phi i32 [ %59, %66 ], [ %69, %68 ]
%72 = phi i32 [ %67, %66 ], [ 0, %68 ]
%73 = add nuw nsw i64 %57, 1
%74 = call i32 @strlen(i8* %26)
%75 = sext i32 %74 to i64
%76 = icmp slt i64 %73, %75
br i1 %76, label %56, label %51
77: ; preds = %53, %130
%78 = phi i64 [ 0, %53 ], [ %156, %130 ]
%79 = getelementptr inbounds [26 x [26 x i8]], [26 x [26 x i8]]* %6, i64 0, i64 %78, i64 0
%80 = call i32 (i8*, i8*, ...) @sprintf(i8* %25, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* %79)
%81 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %25)
%82 = call i32 @strcpy(i8* %24, i8* %81)
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0), i8* %25, i8* %24)
%84 = load i8, i8* %24
%85 = icmp eq i8 %84, 10
br i1 %85, label %96, label %86
86: ; preds = %77, %86
%87 = phi i64 [ %90, %86 ], [ 0, %77 ]
%88 = phi i8 [ %92, %86 ], [ %84, %77 ]
%89 = getelementptr inbounds [26 x i8], [26 x i8]* %4, i64 0, i64 %87
store i8 %88, i8* %89
%90 = add nuw nsw i64 %87, 1
%91 = getelementptr inbounds [128 x i8], [128 x i8]* %1, i64 0, i64 %90
%92 = load i8, i8* %91
%93 = icmp eq i8 %92, 10
br i1 %93, label %94, label %86
94: ; preds = %86
%95 = trunc i64 %90 to i32
br label %96
96: ; preds = %94, %77
%97 = phi i32 [ 0, %77 ], [ %95, %94 ]
%98 = zext i32 %97 to i64
%99 = getelementptr inbounds [26 x i8], [26 x i8]* %4, i64 0, i64 %98
store i8 0, i8* %99
%100 = add nuw nsw i32 %97, 1
%101 = zext i32 %100 to i64
%102 = getelementptr inbounds [128 x i8], [128 x i8]* %1, i64 0, i64 %101
%103 = load i8, i8* %102
%104 = icmp eq i8 %103, 0
br i1 %104, label %114, label %105
105: ; preds = %96, %105
%106 = phi i64 [ %109, %105 ], [ 0, %96 ]
%107 = phi i8 [ %112, %105 ], [ %103, %96 ]
%108 = getelementptr inbounds [128 x i8], [128 x i8]* %1, i64 0, i64 %106
store i8 %107, i8* %108
%109 = add nuw i64 %106, 1
%110 = add nuw nsw i64 %109, %101
%111 = getelementptr inbounds [128 x i8], [128 x i8]* %1, i64 0, i64 %110
%112 = load i8, i8* %111
%113 = icmp eq i8 %112, 0
br i1 %113, label %114, label %105
114: ; preds = %105, %96
%115 = phi i64 [ 0, %96 ], [ %109, %105 ]
%116 = and i64 %115, 4294967295
%117 = getelementptr inbounds [128 x i8], [128 x i8]* %1, i64 0, i64 %116
store i8 0, i8* %117
%118 = call i32 (i8*, i8*, ...) @sscanf(i8* %24, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), float* %14, float* %15, float* %12, float* %13, i64* %9, float* %16, float* %17, float* %18, float* %19, i64* %10, i8* %5, float* %20, float* %21, float* %22)
%119 = load i64, i64* %9
store i64 %119, i64* %23
%120 = load float, float* %13
%121 = fcmp ogt float %120, 0.000000e+00
%122 = select i1 %121, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0)
%123 = call i32 @strcpy(i8* %29, i8* %122)
%124 = load float, float* %22
%125 = fcmp oeq float %124, 3.600000e+02
br i1 %125, label %126, label %127
126: ; preds = %114
store i32 4271950, i32* %54
br label %130
127: ; preds = %114
%128 = fpext float %124 to double
%129 = call i32 (i8*, i8*, ...) @sprintf(i8* %30, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), double %128)
br label %130
130: ; preds = %127, %126
%131 = load float, float* %14
%132 = fpext float %131 to double
%133 = load float, float* %15
%134 = fpext float %133 to double
%135 = load float, float* %12
%136 = fpext float %135 to double
%137 = load float, float* %13
%138 = fpext float %137 to double
%139 = load i64, i64* %9
%140 = call i32 @gmtime(i64* %23)
%141 = call i32 @asctime(i32 %140)
%142 = load float, float* %16
%143 = fpext float %142 to double
%144 = load float, float* %17
%145 = fpext float %144 to double
%146 = load float, float* %18
%147 = fpext float %146 to double
%148 = load float, float* %19
%149 = fpext float %148 to double
%150 = load float, float* %21
%151 = fpext float %150 to double
%152 = load float, float* %20
%153 = fpext float %152 to double
%154 = load i64, i64* %10
%155 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([249 x i8], [249 x i8]* @.str.10, i64 0, i64 0), i8* %27, double %132, double %134, double %136, double %138, i8* %29, i64 %139, i32 %141, double %143, double %145, double %147, double %149, double %151, double %153, i8* %30, i64 %154)
%156 = add nuw nsw i64 %78, 1
%157 = icmp eq i64 %156, %55
br i1 %157, label %158, label %77
158: ; preds = %130, %0, %51
%159 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%160 = call i32 @strcpy(i8* %24, i8* %159)
%161 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.12, i64 0, i64 0), i8* %24)
%162 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%163 = call i32 @strcpy(i8* %24, i8* %162)
%164 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.14, i64 0, i64 0), i8* %24)
%165 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%166 = call i32 @strcpy(i8* %24, i8* %165)
%167 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.16, i64 0, i64 0), i8* %24)
%168 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%169 = call i32 @strcpy(i8* %24, i8* %168)
%170 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.18, i64 0, i64 0), i8* %24)
%171 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0))
%172 = call i32 @strcpy(i8* %24, i8* %171)
%173 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.20, i64 0, i64 0), i8* %24)
%174 = getelementptr inbounds [26 x [26 x i8]], [26 x [26 x i8]]* %6, i64 0, i64 9, i64 0
%175 = call i32 (i8*, i8*, ...) @sprintf(i8* %25, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0), i8* %174)
%176 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %25)
%177 = call i32 @strcpy(i8* %24, i8* %176)
%178 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0), i8* %25, i8* %24)
%179 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0))
%180 = call i32 @strcpy(i8* %24, i8* %179)
%181 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.23, i64 0, i64 0), i8* %24)
%182 = call i8* @send_command(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.24, i64 0, i64 0))
%183 = call i32 @strcpy(i8* %24, i8* %182)
%184 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.25, i64 0, i64 0), i8* %24)
%185 = call i32 (i8*, i8*, ...) @sscanf(i8* %24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0), i64* %11)
%186 = load i64, i64* %11
%187 = call i32 (i8*, i8*, ...) @sprintf(i8* %25, i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.27, i64 0, i64 0), i8* %28, i64 %186)
%188 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.28, i64 0, i64 0), i8* %25)
%189 = call i32 @send_command2(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %25)
%190 = getelementptr inbounds [26 x [26 x i8]], [26 x [26 x i8]]* %6, i64 0, i64 23, i64 0
%191 = load i64, i64* %11
%192 = call i32 (i8*, i8*, ...) @sprintf(i8* %25, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.29, i64 0, i64 0), i8* %190, i64 %191)
%193 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.28, i64 0, i64 0), i8* %25)
%194 = call i32 @send_command2(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %25)
%195 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str, i64 0, i64 0))
%196 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.32, i64 0, i64 0))
%197 = call i32 @exit(i32 0)
unreachable
}