#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 */
struct stat {
  long st_size;
};

/* Variables and functions */
char File_Read(char *, char *, long);
int atol(char *);
scalar_t__ calloc(int, int);
int /*<<< orphan*/ free(char *);
int stat(char *, struct stat *);
int strlen(char *);
int /*<<< orphan*/ strncat(char *, char *, int);
int /*<<< orphan*/ system(char *);
char Status_Network(double *Network_Sent, double *Network_Received) {
  system("ifstat > Netflow");
  long File_Size = 200;
  struct stat Status;
  if (stat("Netflow", &Status) != -1) {
    File_Size = Status.st_size;
  }
  char *Content = (char *)calloc(File_Size + 1, sizeof(char));
  if (Content == NULL) {
    return 'X';
  }
  if (File_Read("Netflow", Content, File_Size) == 'X') {
    free(Content);
    return 'X';
  }
  char *Cursor_Content = Content;
  for (short Skip = 0; Skip < 5; Skip++) {
    while (*Cursor_Content != '\n')
      Cursor_Content++;
    Cursor_Content++;
  }
  char *Network_Received_String = (char *)calloc(20, sizeof(char));
  if (Network_Received_String == NULL) {
    free(Content);
    return 'X';
  }
  for (short Loop = 0; Loop < 5; Loop++) {
    while (*Cursor_Content != ' ')
      Cursor_Content++;
    while (*Cursor_Content == ' ')
      Cursor_Content++;
  }
  unsigned short Cursor_Received = 0;
  while (*Cursor_Content != ' ') {
    *(Network_Received_String + Cursor_Received) = *Cursor_Content;
    Cursor_Received++;
    Cursor_Content++;
  }
  if (*(Network_Received_String + strlen(Network_Received_String) - 1) == 'K') {
    char *Temp = (char *)calloc(20, sizeof(char));
    while (Temp == NULL) {
      Temp = (char *)calloc(20, sizeof(char));
    }
    strncat(Temp, Network_Received_String, strlen(Network_Received_String) - 1);
    *Network_Received = atol(Temp) * 1024;
    free(Temp);
  } else {
    *Network_Received = atol(Network_Received_String);
  }
  free(Network_Received_String);
  Cursor_Content += 2;
  while (*Cursor_Content != ' ')
    Cursor_Content++;
  while (*Cursor_Content == ' ')
    Cursor_Content++;
  char *Network_Sent_String = (char *)calloc(20, sizeof(char));
  if (Network_Sent_String == NULL) {
    free(Content);
    return 'X';
  }
  unsigned short Cursor_Sent = 0;
  while (*Cursor_Content != ' ') {
    *(Network_Sent_String + Cursor_Sent) = *Cursor_Content;
    Cursor_Sent++;
    Cursor_Content++;
  }
  if (*(Network_Sent_String + strlen(Network_Sent_String) - 1) == 'K') {
    char *Temp = (char *)calloc(20, sizeof(char));
    while (Temp == NULL) {
      Temp = (char *)calloc(20, sizeof(char));
    }
    strncat(Temp, Network_Sent_String, strlen(Network_Sent_String) - 1);
    *Network_Sent = atol(Temp) * 1024;
    free(Temp);
  } else {
    *Network_Sent = atol(Network_Sent_String);
  }
  free(Network_Sent_String);
  free(Content);
  return 'V';
}


x86 assembly (clang, -O0):
<Status_Network>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
lea    0xe66(%rip),%rdi
call   1060 <system@plt>
movq   $0xc8,-0x20(%rbp)
lea    0xe5b(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   1090 <stat@plt>
cmp    $0xffffffff,%eax
je     11c8 <Status_Network+0x48>
mov    -0x28(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %eax,%edi
mov    $0x1,%esi
call   1080 <calloc@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    11f4 <Status_Network+0x74>
movb   $0x58,-0x1(%rbp)
jmp    15f9 <Status_Network+0x479>
mov    -0x30(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xe06(%rip),%rdi
call   1040 <File_Read@plt>
movsbl %al,%eax
cmp    $0x58,%eax
jne    1226 <Status_Network+0xa6>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
movb   $0x58,-0x1(%rbp)
jmp    15f9 <Status_Network+0x479>
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
movw   $0x0,-0x3a(%rbp)
movswl -0x3a(%rbp),%eax
cmp    $0x5,%eax
jge    1284 <Status_Network+0x104>
jmp    1246 <Status_Network+0xc6>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
je     1267 <Status_Network+0xe7>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    1246 <Status_Network+0xc6>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
mov    -0x3a(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x3a(%rbp)
jmp    1234 <Status_Network+0xb4>
mov    $0x14,%edi
mov    $0x1,%esi
call   1080 <calloc@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    12b4 <Status_Network+0x134>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
movb   $0x58,-0x1(%rbp)
jmp    15f9 <Status_Network+0x479>
movw   $0x0,-0x4a(%rbp)
movswl -0x4a(%rbp),%eax
cmp    $0x5,%eax
jge    1329 <Status_Network+0x1a9>
jmp    12cc <Status_Network+0x14c>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     12ed <Status_Network+0x16d>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    12cc <Status_Network+0x14c>
jmp    12f2 <Status_Network+0x172>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    1313 <Status_Network+0x193>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    12f2 <Status_Network+0x172>
jmp    1318 <Status_Network+0x198>
mov    -0x4a(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x4a(%rbp)
jmp    12ba <Status_Network+0x13a>
movw   $0x0,-0x4c(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     1370 <Status_Network+0x1f0>
mov    -0x38(%rbp),%rax
mov    (%rax),%dl
mov    -0x48(%rbp),%rax
movzwl -0x4c(%rbp),%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x4c(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x4c(%rbp)
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    132f <Status_Network+0x1af>
mov    -0x48(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x48(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x78(%rbp),%rax
movslq %ecx,%rcx
movsbl -0x1(%rax,%rcx,1),%eax
cmp    $0x4b,%eax
jne    1425 <Status_Network+0x2a5>
mov    $0x14,%edi
mov    $0x1,%esi
call   1080 <calloc@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
jne    13ce <Status_Network+0x24e>
mov    $0x14,%edi
mov    $0x1,%esi
call   1080 <calloc@plt>
mov    %rax,-0x58(%rbp)
jmp    13ab <Status_Network+0x22b>
mov    -0x58(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x48(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x88(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    %eax,%edx
sub    $0x1,%edx
call   1070 <strncat@plt>
mov    -0x58(%rbp),%rdi
call   10a0 <atol@plt>
shl    $0xa,%eax
cvtsi2sd %eax,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
jmp    143a <Status_Network+0x2ba>
mov    -0x48(%rbp),%rdi
call   10a0 <atol@plt>
cvtsi2sd %eax,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     1470 <Status_Network+0x2f0>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    144f <Status_Network+0x2cf>
jmp    1475 <Status_Network+0x2f5>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    1496 <Status_Network+0x316>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    1475 <Status_Network+0x2f5>
mov    $0x14,%edi
mov    $0x1,%esi
call   1080 <calloc@plt>
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x60(%rbp)
jne    14c6 <Status_Network+0x346>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
movb   $0x58,-0x1(%rbp)
jmp    15f9 <Status_Network+0x479>
movw   $0x0,-0x62(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     150d <Status_Network+0x38d>
mov    -0x38(%rbp),%rax
mov    (%rax),%dl
mov    -0x60(%rbp),%rax
movzwl -0x62(%rbp),%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x62(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x62(%rbp)
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    14cc <Status_Network+0x34c>
mov    -0x60(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x60(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x90(%rbp),%rax
movslq %ecx,%rcx
movsbl -0x1(%rax,%rcx,1),%eax
cmp    $0x4b,%eax
jne    15ce <Status_Network+0x44e>
mov    $0x14,%edi
mov    $0x1,%esi
call   1080 <calloc@plt>
mov    %rax,-0x70(%rbp)
cmpq   $0x0,-0x70(%rbp)
jne    1571 <Status_Network+0x3f1>
mov    $0x14,%edi
mov    $0x1,%esi
call   1080 <calloc@plt>
mov    %rax,-0x70(%rbp)
jmp    154e <Status_Network+0x3ce>
mov    -0x70(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x60(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0xa0(%rbp),%rdi
mov    -0x98(%rbp),%rsi
mov    %eax,%edx
sub    $0x1,%edx
call   1070 <strncat@plt>
mov    -0x70(%rbp),%rdi
call   10a0 <atol@plt>
shl    $0xa,%eax
cvtsi2sd %eax,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x70(%rbp),%rdi
call   1030 <free@plt>
jmp    15e3 <Status_Network+0x463>
mov    -0x60(%rbp),%rdi
call   10a0 <atol@plt>
cvtsi2sd %eax,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
movb   $0x56,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Status_Network>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r15
mov    %rdi,%rbp
lea    0xe65(%rip),%rdi
call   1060 <system@plt>
lea    0xe62(%rip),%rdi
lea    0x10(%rsp),%rsi
call   1090 <stat@plt>
mov    $0xc8,%ebx
cmp    $0xffffffff,%eax
je     11c0 <Status_Network+0x40>
mov    0x10(%rsp),%rbx
lea    0x1(%rbx),%edi
mov    $0x1,%esi
call   1080 <calloc@plt>
test   %rax,%rax
je     13ab <Status_Network+0x22b>
mov    %rax,%r14
lea    0xe29(%rip),%rdi
mov    %rax,%rsi
mov    %rbx,%rdx
call   1040 <File_Read@plt>
mov    $0x58,%r12b
cmp    $0x58,%al
je     14d1 <Status_Network+0x351>
mov    %rbp,0x8(%rsp)
mov    %r14,%r13
add    $0x1,%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmpb   $0xa,-0x1(%r13)
lea    0x1(%r13),%r13
jne    1210 <Status_Network+0x90>
nopl   0x0(%rax,%rax,1)
cmpb   $0xa,-0x1(%r13)
lea    0x1(%r13),%r13
jne    1220 <Status_Network+0xa0>
nopl   0x0(%rax,%rax,1)
cmpb   $0xa,-0x1(%r13)
lea    0x1(%r13),%r13
jne    1230 <Status_Network+0xb0>
nopl   0x0(%rax,%rax,1)
cmpb   $0xa,-0x1(%r13)
lea    0x1(%r13),%r13
jne    1240 <Status_Network+0xc0>
nopl   0x0(%rax,%rax,1)
cmpb   $0xa,-0x1(%r13)
lea    0x1(%r13),%r13
jne    1250 <Status_Network+0xd0>
mov    $0x14,%edi
mov    $0x1,%esi
call   1080 <calloc@plt>
test   %rax,%rax
je     14d1 <Status_Network+0x351>
mov    %rax,%rbp
cs nopw 0x0(%rax,%rax,1)
cmpb   $0x20,-0x1(%r13)
lea    0x1(%r13),%r13
jne    1280 <Status_Network+0x100>
nopl   0x0(%rax,%rax,1)
cmpb   $0x20,-0x1(%r13)
lea    0x1(%r13),%r13
je     1290 <Status_Network+0x110>
nopl   0x0(%rax,%rax,1)
cmpb   $0x20,-0x1(%r13)
lea    0x1(%r13),%r13
jne    12a0 <Status_Network+0x120>
nopl   0x0(%rax,%rax,1)
cmpb   $0x20,-0x1(%r13)
lea    0x1(%r13),%r13
je     12b0 <Status_Network+0x130>
nopl   0x0(%rax,%rax,1)
cmpb   $0x20,-0x1(%r13)
lea    0x1(%r13),%r13
jne    12c0 <Status_Network+0x140>
nopl   0x0(%rax,%rax,1)
cmpb   $0x20,-0x1(%r13)
lea    0x1(%r13),%r13
je     12d0 <Status_Network+0x150>
nopl   0x0(%rax,%rax,1)
cmpb   $0x20,-0x1(%r13)
lea    0x1(%r13),%r13
jne    12e0 <Status_Network+0x160>
nopl   0x0(%rax,%rax,1)
cmpb   $0x20,-0x1(%r13)
lea    0x1(%r13),%r13
je     12f0 <Status_Network+0x170>
nopl   0x0(%rax,%rax,1)
cmpb   $0x20,-0x1(%r13)
lea    0x1(%r13),%r13
jne    1300 <Status_Network+0x180>
nopl   0x0(%rax,%rax,1)
movzbl -0x1(%r13),%eax
add    $0x1,%r13
cmp    $0x20,%al
je     1310 <Status_Network+0x190>
xor    %ecx,%ecx
nop
movzwl %cx,%edx
mov    %al,0x0(%rbp,%rdx,1)
add    $0x1,%ecx
movzbl -0x1(%r13),%eax
add    $0x1,%r13
cmp    $0x20,%al
jne    1320 <Status_Network+0x1a0>
mov    %rbp,%rdi
call   1050 <strlen@plt>
cltq
cmpb   $0x4b,-0x1(%rbp,%rax,1)
jne    13b3 <Status_Network+0x233>
mov    $0x14,%edi
mov    $0x1,%esi
call   1080 <calloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1377 <Status_Network+0x1f7>
nop
mov    $0x14,%edi
mov    $0x1,%esi
call   1080 <calloc@plt>
test   %rax,%rax
je     1360 <Status_Network+0x1e0>
mov    %rax,%rbx
mov    %rbp,%rdi
call   1050 <strlen@plt>
lea    -0x1(%rax),%edx
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1070 <strncat@plt>
mov    %rbx,%rdi
call   10a0 <atol@plt>
shl    $0xa,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,(%r15)
mov    %rbx,%rdi
call   1030 <free@plt>
jmp    13c4 <Status_Network+0x244>
mov    $0x58,%r12b
jmp    14d9 <Status_Network+0x359>
mov    %rbp,%rdi
call   10a0 <atol@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,(%r15)
mov    %rbp,%rdi
call   1030 <free@plt>
nopl   0x0(%rax)
cmpb   $0x20,0x0(%r13)
lea    0x1(%r13),%r13
jne    13d0 <Status_Network+0x250>
nopl   0x0(%rax,%rax,1)
cmpb   $0x20,0x0(%r13)
lea    0x1(%r13),%r13
je     13e0 <Status_Network+0x260>
mov    $0x14,%edi
mov    $0x1,%esi
call   1080 <calloc@plt>
test   %rax,%rax
je     14d1 <Status_Network+0x351>
mov    %rax,%rbp
mov    -0x1(%r13),%al
cmp    $0x20,%al
je     1427 <Status_Network+0x2a7>
xor    %ecx,%ecx
movzwl %cx,%edx
mov    %al,0x0(%rbp,%rdx,1)
add    $0x1,%ecx
movzbl 0x0(%r13),%eax
add    $0x1,%r13
cmp    $0x20,%al
jne    1410 <Status_Network+0x290>
mov    %rbp,%rdi
call   1050 <strlen@plt>
cltq
cmpb   $0x4b,-0x1(%rbp,%rax,1)
jne    14ae <Status_Network+0x32e>
mov    $0x14,%edi
mov    $0x1,%esi
call   1080 <calloc@plt>
mov    %rax,%rbx
test   %rax,%rax
mov    0x8(%rsp),%r15
jne    1477 <Status_Network+0x2f7>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x14,%edi
mov    $0x1,%esi
call   1080 <calloc@plt>
test   %rax,%rax
je     1460 <Status_Network+0x2e0>
mov    %rax,%rbx
mov    %rbp,%rdi
call   1050 <strlen@plt>
lea    -0x1(%rax),%edx
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1070 <strncat@plt>
mov    %rbx,%rdi
call   10a0 <atol@plt>
shl    $0xa,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,(%r15)
mov    %rbx,%rdi
call   1030 <free@plt>
jmp    14c6 <Status_Network+0x346>
mov    %rbp,%rdi
call   10a0 <atol@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    0x8(%rsp),%rax
movsd  %xmm0,(%rax)
mov    %rbp,%rdi
call   1030 <free@plt>
mov    $0x56,%r12b
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r12d,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.stat = type { i64 }
@.str = [17 x i8] c"ifstat > Netflow\00"
@.str.1 = [8 x i8] c"Netflow\00"
define signext i8 @Status_Network(double* %0, double* %1) {
%3 = alloca i8
%4 = alloca double*
%5 = alloca double*
%6 = alloca i64
%7 = alloca %struct.stat
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i16
%11 = alloca i8*
%12 = alloca i16
%13 = alloca i16
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i16
%17 = alloca i8*
store double* %0, double** %4
store double* %1, double** %5
%18 = call i32 @system(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
store i64 200, i64* %6
%19 = call i32 @stat(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), %struct.stat* %7)
%20 = icmp ne i32 %19, -1
br i1 %20, label %21, label %24
21: ; preds = %2
%22 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%23 = load i64, i64* %22
store i64 %23, i64* %6
br label %24
24: ; preds = %21, %2
%25 = load i64, i64* %6
%26 = add nsw i64 %25, 1
%27 = trunc i64 %26 to i32
%28 = call i64 @calloc(i32 %27, i32 1)
%29 = inttoptr i64 %28 to i8*
store i8* %29, i8** %8
%30 = load i8*, i8** %8
%31 = icmp eq i8* %30, null
br i1 %31, label %32, label %33
32: ; preds = %24
store i8 88, i8* %3
br label %245
33: ; preds = %24
%34 = load i8*, i8** %8
%35 = load i64, i64* %6
%36 = call signext i8 @File_Read(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %34, i64 %35)
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 88
br i1 %38, label %39, label %42
39: ; preds = %33
%40 = load i8*, i8** %8
%41 = call i32 @free(i8* %40)
store i8 88, i8* %3
br label %245
42: ; preds = %33
%43 = load i8*, i8** %8
store i8* %43, i8** %9
store i16 0, i16* %10
br label %44
44: ; preds = %60, %42
%45 = load i16, i16* %10
%46 = sext i16 %45 to i32
%47 = icmp slt i32 %46, 5
br i1 %47, label %48, label %63
48: ; preds = %44
br label %49
49: ; preds = %54, %48
%50 = load i8*, i8** %9
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 10
br i1 %53, label %54, label %57
54: ; preds = %49
%55 = load i8*, i8** %9
%56 = getelementptr inbounds i8, i8* %55, i32 1
store i8* %56, i8** %9
br label %49
57: ; preds = %49
%58 = load i8*, i8** %9
%59 = getelementptr inbounds i8, i8* %58, i32 1
store i8* %59, i8** %9
br label %60
60: ; preds = %57
%61 = load i16, i16* %10
%62 = add i16 %61, 1
store i16 %62, i16* %10
br label %44
63: ; preds = %44
%64 = call i64 @calloc(i32 20, i32 1)
%65 = inttoptr i64 %64 to i8*
store i8* %65, i8** %11
%66 = load i8*, i8** %11
%67 = icmp eq i8* %66, null
br i1 %67, label %68, label %71
68: ; preds = %63
%69 = load i8*, i8** %8
%70 = call i32 @free(i8* %69)
store i8 88, i8* %3
br label %245
71: ; preds = %63
store i16 0, i16* %12
br label %72
72: ; preds = %95, %71
%73 = load i16, i16* %12
%74 = sext i16 %73 to i32
%75 = icmp slt i32 %74, 5
br i1 %75, label %76, label %98
76: ; preds = %72
br label %77
77: ; preds = %82, %76
%78 = load i8*, i8** %9
%79 = load i8, i8* %78
%80 = sext i8 %79 to i32
%81 = icmp ne i32 %80, 32
br i1 %81, label %82, label %85
82: ; preds = %77
%83 = load i8*, i8** %9
%84 = getelementptr inbounds i8, i8* %83, i32 1
store i8* %84, i8** %9
br label %77
85: ; preds = %77
br label %86
86: ; preds = %91, %85
%87 = load i8*, i8** %9
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = icmp eq i32 %89, 32
br i1 %90, label %91, label %94
91: ; preds = %86
%92 = load i8*, i8** %9
%93 = getelementptr inbounds i8, i8* %92, i32 1
store i8* %93, i8** %9
br label %86
94: ; preds = %86
br label %95
95: ; preds = %94
%96 = load i16, i16* %12
%97 = add i16 %96, 1
store i16 %97, i16* %12
br label %72
98: ; preds = %72
store i16 0, i16* %13
br label %99
99: ; preds = %104, %98
%100 = load i8*, i8** %9
%101 = load i8, i8* %100
%102 = sext i8 %101 to i32
%103 = icmp ne i32 %102, 32
br i1 %103, label %104, label %116
104: ; preds = %99
%105 = load i8*, i8** %9
%106 = load i8, i8* %105
%107 = load i8*, i8** %11
%108 = load i16, i16* %13
%109 = zext i16 %108 to i32
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, i8* %107, i64 %110
store i8 %106, i8* %111
%112 = load i16, i16* %13
%113 = add i16 %112, 1
store i16 %113, i16* %13
%114 = load i8*, i8** %9
%115 = getelementptr inbounds i8, i8* %114, i32 1
store i8* %115, i8** %9
br label %99
116: ; preds = %99
%117 = load i8*, i8** %11
%118 = load i8*, i8** %11
%119 = call i32 @strlen(i8* %118)
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i8, i8* %117, i64 %120
%122 = getelementptr inbounds i8, i8* %121, i64 -1
%123 = load i8, i8* %122
%124 = sext i8 %123 to i32
%125 = icmp eq i32 %124, 75
br i1 %125, label %126, label %149
126: ; preds = %116
%127 = call i64 @calloc(i32 20, i32 1)
%128 = inttoptr i64 %127 to i8*
store i8* %128, i8** %14
br label %129
129: ; preds = %132, %126
%130 = load i8*, i8** %14
%131 = icmp eq i8* %130, null
br i1 %131, label %132, label %135
132: ; preds = %129
%133 = call i64 @calloc(i32 20, i32 1)
%134 = inttoptr i64 %133 to i8*
store i8* %134, i8** %14
br label %129
135: ; preds = %129
%136 = load i8*, i8** %14
%137 = load i8*, i8** %11
%138 = load i8*, i8** %11
%139 = call i32 @strlen(i8* %138)
%140 = sub nsw i32 %139, 1
%141 = call i32 @strncat(i8* %136, i8* %137, i32 %140)
%142 = load i8*, i8** %14
%143 = call i32 @atol(i8* %142)
%144 = mul nsw i32 %143, 1024
%145 = sitofp i32 %144 to double
%146 = load double*, double** %5
store double %145, double* %146
%147 = load i8*, i8** %14
%148 = call i32 @free(i8* %147)
br label %154
149: ; preds = %116
%150 = load i8*, i8** %11
%151 = call i32 @atol(i8* %150)
%152 = sitofp i32 %151 to double
%153 = load double*, double** %5
store double %152, double* %153
br label %154
154: ; preds = %149, %135
%155 = load i8*, i8** %11
%156 = call i32 @free(i8* %155)
%157 = load i8*, i8** %9
%158 = getelementptr inbounds i8, i8* %157, i64 2
store i8* %158, i8** %9
br label %159
159: ; preds = %164, %154
%160 = load i8*, i8** %9
%161 = load i8, i8* %160
%162 = sext i8 %161 to i32
%163 = icmp ne i32 %162, 32
br i1 %163, label %164, label %167
164: ; preds = %159
%165 = load i8*, i8** %9
%166 = getelementptr inbounds i8, i8* %165, i32 1
store i8* %166, i8** %9
br label %159
167: ; preds = %159
br label %168
168: ; preds = %173, %167
%169 = load i8*, i8** %9
%170 = load i8, i8* %169
%171 = sext i8 %170 to i32
%172 = icmp eq i32 %171, 32
br i1 %172, label %173, label %176
173: ; preds = %168
%174 = load i8*, i8** %9
%175 = getelementptr inbounds i8, i8* %174, i32 1
store i8* %175, i8** %9
br label %168
176: ; preds = %168
%177 = call i64 @calloc(i32 20, i32 1)
%178 = inttoptr i64 %177 to i8*
store i8* %178, i8** %15
%179 = load i8*, i8** %15
%180 = icmp eq i8* %179, null
br i1 %180, label %181, label %184
181: ; preds = %176
%182 = load i8*, i8** %8
%183 = call i32 @free(i8* %182)
store i8 88, i8* %3
br label %245
184: ; preds = %176
store i16 0, i16* %16
br label %185
185: ; preds = %190, %184
%186 = load i8*, i8** %9
%187 = load i8, i8* %186
%188 = sext i8 %187 to i32
%189 = icmp ne i32 %188, 32
br i1 %189, label %190, label %202
190: ; preds = %185
%191 = load i8*, i8** %9
%192 = load i8, i8* %191
%193 = load i8*, i8** %15
%194 = load i16, i16* %16
%195 = zext i16 %194 to i32
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds i8, i8* %193, i64 %196
store i8 %192, i8* %197
%198 = load i16, i16* %16
%199 = add i16 %198, 1
store i16 %199, i16* %16
%200 = load i8*, i8** %9
%201 = getelementptr inbounds i8, i8* %200, i32 1
store i8* %201, i8** %9
br label %185
202: ; preds = %185
%203 = load i8*, i8** %15
%204 = load i8*, i8** %15
%205 = call i32 @strlen(i8* %204)
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds i8, i8* %203, i64 %206
%208 = getelementptr inbounds i8, i8* %207, i64 -1
%209 = load i8, i8* %208
%210 = sext i8 %209 to i32
%211 = icmp eq i32 %210, 75
br i1 %211, label %212, label %235
212: ; preds = %202
%213 = call i64 @calloc(i32 20, i32 1)
%214 = inttoptr i64 %213 to i8*
store i8* %214, i8** %17
br label %215
215: ; preds = %218, %212
%216 = load i8*, i8** %17
%217 = icmp eq i8* %216, null
br i1 %217, label %218, label %221
218: ; preds = %215
%219 = call i64 @calloc(i32 20, i32 1)
%220 = inttoptr i64 %219 to i8*
store i8* %220, i8** %17
br label %215
221: ; preds = %215
%222 = load i8*, i8** %17
%223 = load i8*, i8** %15
%224 = load i8*, i8** %15
%225 = call i32 @strlen(i8* %224)
%226 = sub nsw i32 %225, 1
%227 = call i32 @strncat(i8* %222, i8* %223, i32 %226)
%228 = load i8*, i8** %17
%229 = call i32 @atol(i8* %228)
%230 = mul nsw i32 %229, 1024
%231 = sitofp i32 %230 to double
%232 = load double*, double** %4
store double %231, double* %232
%233 = load i8*, i8** %17
%234 = call i32 @free(i8* %233)
br label %240
235: ; preds = %202
%236 = load i8*, i8** %15
%237 = call i32 @atol(i8* %236)
%238 = sitofp i32 %237 to double
%239 = load double*, double** %4
store double %238, double* %239
br label %240
240: ; preds = %235, %221
%241 = load i8*, i8** %15
%242 = call i32 @free(i8* %241)
%243 = load i8*, i8** %8
%244 = call i32 @free(i8* %243)
store i8 86, i8* %3
br label %245
245: ; preds = %240, %181, %68, %39, %32
%246 = load i8, i8* %3
ret i8 %246
}

LLVM IR (-O2):
%struct.stat = type { i64 }
@.str = [17 x i8] c"ifstat > Netflow\00"
@.str.1 = [8 x i8] c"Netflow\00"
define signext i8 @Status_Network(double* nocapture writeonly %0, double* nocapture writeonly %1) {
%3 = alloca %struct.stat
%4 = tail call i32 @system(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%5 = bitcast %struct.stat* %3 to i8*
%6 = call i32 @stat(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), %struct.stat* %3)
%7 = icmp eq i32 %6, -1
%8 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%9 = load i64, i64* %8
%10 = select i1 %7, i64 200, i64 %9
%11 = trunc i64 %10 to i32
%12 = add i32 %11, 1
%13 = tail call i64 @calloc(i32 %12, i32 1)
%14 = inttoptr i64 %13 to i8*
%15 = icmp eq i64 %13, 0
br i1 %15, label %203, label %16
16: ; preds = %2
%17 = tail call signext i8 @File_Read(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %14, i64 %10)
%18 = icmp eq i8 %17, 88
br i1 %18, label %200, label %19
19: ; preds = %16, %19
%20 = phi i8* [ %23, %19 ], [ %14, %16 ]
%21 = load i8, i8* %20
%22 = icmp eq i8 %21, 10
%23 = getelementptr inbounds i8, i8* %20, i64 1
br i1 %22, label %24, label %19
24: ; preds = %19, %24
%25 = phi i8* [ %28, %24 ], [ %23, %19 ]
%26 = load i8, i8* %25
%27 = icmp eq i8 %26, 10
%28 = getelementptr inbounds i8, i8* %25, i64 1
br i1 %27, label %29, label %24
29: ; preds = %24, %29
%30 = phi i8* [ %33, %29 ], [ %28, %24 ]
%31 = load i8, i8* %30
%32 = icmp eq i8 %31, 10
%33 = getelementptr inbounds i8, i8* %30, i64 1
br i1 %32, label %34, label %29
34: ; preds = %29, %34
%35 = phi i8* [ %38, %34 ], [ %33, %29 ]
%36 = load i8, i8* %35
%37 = icmp eq i8 %36, 10
%38 = getelementptr inbounds i8, i8* %35, i64 1
br i1 %37, label %39, label %34
39: ; preds = %34, %39
%40 = phi i8* [ %43, %39 ], [ %38, %34 ]
%41 = load i8, i8* %40
%42 = icmp eq i8 %41, 10
%43 = getelementptr inbounds i8, i8* %40, i64 1
br i1 %42, label %44, label %39
44: ; preds = %39
%45 = tail call i64 @calloc(i32 20, i32 1)
%46 = inttoptr i64 %45 to i8*
%47 = icmp eq i64 %45, 0
br i1 %47, label %200, label %48
48: ; preds = %44, %48
%49 = phi i8* [ %52, %48 ], [ %43, %44 ]
%50 = load i8, i8* %49
%51 = icmp eq i8 %50, 32
%52 = getelementptr inbounds i8, i8* %49, i64 1
br i1 %51, label %53, label %48
53: ; preds = %48, %53
%54 = phi i8* [ %55, %53 ], [ %49, %48 ]
%55 = getelementptr inbounds i8, i8* %54, i64 1
%56 = load i8, i8* %55
%57 = icmp eq i8 %56, 32
br i1 %57, label %53, label %58
58: ; preds = %53
%59 = getelementptr inbounds i8, i8* %54, i64 2
br label %60
60: ; preds = %58, %60
%61 = phi i8* [ %59, %58 ], [ %64, %60 ]
%62 = load i8, i8* %61
%63 = icmp eq i8 %62, 32
%64 = getelementptr inbounds i8, i8* %61, i64 1
br i1 %63, label %65, label %60
65: ; preds = %60, %65
%66 = phi i8* [ %67, %65 ], [ %61, %60 ]
%67 = getelementptr inbounds i8, i8* %66, i64 1
%68 = load i8, i8* %67
%69 = icmp eq i8 %68, 32
br i1 %69, label %65, label %70
70: ; preds = %65
%71 = getelementptr inbounds i8, i8* %66, i64 2
br label %72
72: ; preds = %70, %72
%73 = phi i8* [ %71, %70 ], [ %76, %72 ]
%74 = load i8, i8* %73
%75 = icmp eq i8 %74, 32
%76 = getelementptr inbounds i8, i8* %73, i64 1
br i1 %75, label %77, label %72
77: ; preds = %72, %77
%78 = phi i8* [ %79, %77 ], [ %73, %72 ]
%79 = getelementptr inbounds i8, i8* %78, i64 1
%80 = load i8, i8* %79
%81 = icmp eq i8 %80, 32
br i1 %81, label %77, label %82
82: ; preds = %77
%83 = getelementptr inbounds i8, i8* %78, i64 2
br label %84
84: ; preds = %82, %84
%85 = phi i8* [ %83, %82 ], [ %88, %84 ]
%86 = load i8, i8* %85
%87 = icmp eq i8 %86, 32
%88 = getelementptr inbounds i8, i8* %85, i64 1
br i1 %87, label %89, label %84
89: ; preds = %84, %89
%90 = phi i8* [ %91, %89 ], [ %85, %84 ]
%91 = getelementptr inbounds i8, i8* %90, i64 1
%92 = load i8, i8* %91
%93 = icmp eq i8 %92, 32
br i1 %93, label %89, label %94
94: ; preds = %89
%95 = getelementptr inbounds i8, i8* %90, i64 2
br label %96
96: ; preds = %94, %96
%97 = phi i8* [ %95, %94 ], [ %100, %96 ]
%98 = load i8, i8* %97
%99 = icmp eq i8 %98, 32
%100 = getelementptr inbounds i8, i8* %97, i64 1
br i1 %99, label %101, label %96
101: ; preds = %96, %101
%102 = phi i8* [ %103, %101 ], [ %97, %96 ]
%103 = getelementptr inbounds i8, i8* %102, i64 1
%104 = load i8, i8* %103
%105 = icmp eq i8 %104, 32
br i1 %105, label %101, label %106
106: ; preds = %101, %106
%107 = phi i8 [ %114, %106 ], [ %104, %101 ]
%108 = phi i16 [ %112, %106 ], [ 0, %101 ]
%109 = phi i8* [ %113, %106 ], [ %103, %101 ]
%110 = zext i16 %108 to i64
%111 = getelementptr inbounds i8, i8* %46, i64 %110
store i8 %107, i8* %111
%112 = add i16 %108, 1
%113 = getelementptr inbounds i8, i8* %109, i64 1
%114 = load i8, i8* %113
%115 = icmp eq i8 %114, 32
br i1 %115, label %116, label %106
116: ; preds = %106
%117 = tail call i32 @strlen(i8* %46)
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i8, i8* %46, i64 %118
%120 = getelementptr inbounds i8, i8* %119, i64 -1
%121 = load i8, i8* %120
%122 = icmp eq i8 %121, 75
br i1 %122, label %123, label %139
123: ; preds = %116
%124 = tail call i64 @calloc(i32 20, i32 1)
%125 = icmp eq i64 %124, 0
br i1 %125, label %126, label %129
126: ; preds = %123, %126
%127 = tail call i64 @calloc(i32 20, i32 1)
%128 = icmp eq i64 %127, 0
br i1 %128, label %126, label %129
129: ; preds = %126, %123
%130 = phi i64 [ %124, %123 ], [ %127, %126 ]
%131 = inttoptr i64 %130 to i8*
%132 = tail call i32 @strlen(i8* %46)
%133 = add nsw i32 %132, -1
%134 = tail call i32 @strncat(i8* %131, i8* %46, i32 %133)
%135 = tail call i32 @atol(i8* %131)
%136 = shl nsw i32 %135, 10
%137 = sitofp i32 %136 to double
store double %137, double* %1
%138 = tail call i32 @free(i8* %131)
br label %142
139: ; preds = %116
%140 = tail call i32 @atol(i8* %46)
%141 = sitofp i32 %140 to double
store double %141, double* %1
br label %142
142: ; preds = %139, %129
%143 = tail call i32 @free(i8* %46)
%144 = getelementptr inbounds i8, i8* %109, i64 3
br label %145
145: ; preds = %145, %142
%146 = phi i8* [ %144, %142 ], [ %149, %145 ]
%147 = load i8, i8* %146
%148 = icmp eq i8 %147, 32
%149 = getelementptr inbounds i8, i8* %146, i64 1
br i1 %148, label %150, label %145
150: ; preds = %145, %150
%151 = phi i8* [ %152, %150 ], [ %146, %145 ]
%152 = getelementptr inbounds i8, i8* %151, i64 1
%153 = load i8, i8* %152
%154 = icmp eq i8 %153, 32
br i1 %154, label %150, label %155
155: ; preds = %150
%156 = tail call i64 @calloc(i32 20, i32 1)
%157 = inttoptr i64 %156 to i8*
%158 = icmp eq i64 %156, 0
br i1 %158, label %200, label %159
159: ; preds = %155
%160 = load i8, i8* %152
%161 = icmp eq i8 %160, 32
br i1 %161, label %172, label %162
162: ; preds = %159, %162
%163 = phi i8 [ %170, %162 ], [ %160, %159 ]
%164 = phi i16 [ %168, %162 ], [ 0, %159 ]
%165 = phi i8* [ %169, %162 ], [ %152, %159 ]
%166 = zext i16 %164 to i64
%167 = getelementptr inbounds i8, i8* %157, i64 %166
store i8 %163, i8* %167
%168 = add i16 %164, 1
%169 = getelementptr inbounds i8, i8* %165, i64 1
%170 = load i8, i8* %169
%171 = icmp eq i8 %170, 32
br i1 %171, label %172, label %162
172: ; preds = %162, %159
%173 = tail call i32 @strlen(i8* %157)
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds i8, i8* %157, i64 %174
%176 = getelementptr inbounds i8, i8* %175, i64 -1
%177 = load i8, i8* %176
%178 = icmp eq i8 %177, 75
br i1 %178, label %179, label %195
179: ; preds = %172
%180 = tail call i64 @calloc(i32 20, i32 1)
%181 = icmp eq i64 %180, 0
br i1 %181, label %182, label %185
182: ; preds = %179, %182
%183 = tail call i64 @calloc(i32 20, i32 1)
%184 = icmp eq i64 %183, 0
br i1 %184, label %182, label %185
185: ; preds = %182, %179
%186 = phi i64 [ %180, %179 ], [ %183, %182 ]
%187 = inttoptr i64 %186 to i8*
%188 = tail call i32 @strlen(i8* %157)
%189 = add nsw i32 %188, -1
%190 = tail call i32 @strncat(i8* %187, i8* %157, i32 %189)
%191 = tail call i32 @atol(i8* %187)
%192 = shl nsw i32 %191, 10
%193 = sitofp i32 %192 to double
store double %193, double* %0
%194 = tail call i32 @free(i8* %187)
br label %198
195: ; preds = %172
%196 = tail call i32 @atol(i8* %157)
%197 = sitofp i32 %196 to double
store double %197, double* %0
br label %198
198: ; preds = %195, %185
%199 = tail call i32 @free(i8* %157)
br label %200
200: ; preds = %155, %44, %16, %198
%201 = phi i8 [ 86, %198 ], [ 88, %16 ], [ 88, %44 ], [ 88, %155 ]
%202 = tail call i32 @free(i8* %14)
br label %203
203: ; preds = %200, %2
%204 = phi i8 [ 88, %2 ], [ %201, %200 ]
ret i8 %204
}