#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 int /*<<< orphan*/ time_t;
struct tm {
  int dummy;
};
typedef int /*<<< orphan*/ buf;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
char *asctime(struct tm *);
int /*<<< orphan*/ fread(char *, int, int, int /*<<< orphan*/ *);
struct tm *localtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ pclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *popen(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, float, float, float);
int /*<<< orphan*/ sscanf(char *, char *, float *);
int /*<<< orphan*/ sys_log(char *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int check_load() {
  FILE *stream = NULL;
  char buf[1024] = {0};
  float load_1, load_5, load_15;
  char loadinfo[20] = {0};
  struct tm *timeinfo;
  time_t boxtime = 0;
  time(&boxtime);
  timeinfo = localtime(&boxtime);
  printf("---------check load average-----------\n");
  stream = NULL;
  if ((stream = popen("cat /proc/loadavg | awk '{print $1}'", "r")) == NULL)
    printf("popen failed\n");
  memset(buf, 0, sizeof(buf));
  fread(buf, sizeof(char), sizeof(buf), stream);
  buf[1023] = '\0';
  sscanf(buf, "%f", &load_1);
  pclose(stream);
  stream = NULL;
  if ((stream = popen("cat /proc/loadavg | awk '{print $2}'", "r")) == NULL)
    printf("popen failed\n");
  memset(buf, 0, sizeof(buf));
  fread(buf, sizeof(char), sizeof(buf), stream);
  buf[1023] = '\0';
  sscanf(buf, "%f", &load_5);
  pclose(stream);
  stream = NULL;
  if ((stream = popen("cat /proc/loadavg | awk '{print $3}'", "r")) == NULL)
    printf("popen failed\n");
  memset(buf, 0, sizeof(buf));
  fread(buf, sizeof(char), sizeof(buf), stream);
  buf[1023] = '\0';
  sscanf(buf, "%f", &load_15);
  pclose(stream);
  printf("load_1 : %.2f, load_5 : %.2f, load_15 : %.2f ------%s\n", load_1,
         load_5, load_15, asctime(timeinfo));
  if ((load_1 > load_5) && (load_5 > load_15)) {
    printf("loadavg is increasing...\n");
    if (load_15 > 3) {
      sprintf(loadinfo, "load_1 : %.2d, load_2 : %.2f, load_3: %.2f", load_1,
              load_5, load_15);
      sys_log(loadinfo);
      return 1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<check_load>:
push   %rbp
mov    %rsp,%rbp
sub    $0x460,%rsp
movq   $0x0,-0x10(%rbp)
lea    -0x410(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
lea    -0x430(%rbp),%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1080 <memset@plt>
movl   $0x0,-0x43c(%rbp)
lea    -0x43c(%rbp),%rdi
call   1090 <time@plt>
lea    -0x43c(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x438(%rbp)
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x10(%rbp)
lea    0xdfd(%rip),%rdi
lea    0xe1b(%rip),%rsi
call   10b0 <popen@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    1257 <check_load+0xa7>
lea    0xe03(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x410(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
lea    -0x410(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x1,%esi
mov    $0x400,%edx
call   1040 <fread@plt>
movb   $0x0,-0x11(%rbp)
lea    -0x410(%rbp),%rdi
lea    0xdcb(%rip),%rsi
lea    -0x414(%rbp),%rdx
call   10a0 <sscanf@plt>
mov    -0x10(%rbp),%rdi
call   1070 <pclose@plt>
movq   $0x0,-0x10(%rbp)
lea    0xdaa(%rip),%rdi
lea    0xd90(%rip),%rsi
call   10b0 <popen@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    12e2 <check_load+0x132>
lea    0xd78(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x410(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
lea    -0x410(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x1,%esi
mov    $0x400,%edx
call   1040 <fread@plt>
movb   $0x0,-0x11(%rbp)
lea    -0x410(%rbp),%rdi
lea    0xd40(%rip),%rsi
lea    -0x418(%rbp),%rdx
call   10a0 <sscanf@plt>
mov    -0x10(%rbp),%rdi
call   1070 <pclose@plt>
movq   $0x0,-0x10(%rbp)
lea    0xd44(%rip),%rdi
lea    0xd05(%rip),%rsi
call   10b0 <popen@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    136d <check_load+0x1bd>
lea    0xced(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x410(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
lea    -0x410(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x1,%esi
mov    $0x400,%edx
call   1040 <fread@plt>
movb   $0x0,-0x11(%rbp)
lea    -0x410(%rbp),%rdi
lea    0xcb5(%rip),%rsi
lea    -0x41c(%rbp),%rdx
call   10a0 <sscanf@plt>
mov    -0x10(%rbp),%rdi
call   1070 <pclose@plt>
movss  -0x414(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x458(%rbp)
ff
movss  -0x418(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x450(%rbp)
ff
movss  -0x41c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x448(%rbp)
ff
mov    -0x438(%rbp),%rdi
call   1050 <asctime@plt>
movsd  -0x458(%rbp),%xmm0
ff
movsd  -0x450(%rbp),%xmm1
ff
movsd  -0x448(%rbp),%xmm2
ff
mov    %rax,%rsi
lea    0xc83(%rip),%rdi
mov    $0x3,%al
call   1060 <printf@plt>
movss  -0x414(%rbp),%xmm0
ff
ucomiss -0x418(%rbp),%xmm0
jbe    14cb <check_load+0x31b>
movss  -0x418(%rbp),%xmm0
ff
ucomiss -0x41c(%rbp),%xmm0
jbe    14cb <check_load+0x31b>
lea    0xc82(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movss  -0x41c(%rbp),%xmm0
ff
movss  0xb86(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    14c6 <check_load+0x316>
lea    -0x430(%rbp),%rdi
movss  -0x414(%rbp),%xmm0
ff
movss  -0x418(%rbp),%xmm1
ff
movss  -0x41c(%rbp),%xmm2
ff
lea    0xc56(%rip),%rsi
call   10d0 <sprintf@plt>
lea    -0x430(%rbp),%rdi
call   10c0 <sys_log@plt>
movl   $0x1,-0x4(%rbp)
jmp    14d2 <check_load+0x322>
jmp    14cb <check_load+0x31b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x460,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_load>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x458,%rsp
lea    0x50(%rsp),%rdi
mov    $0x400,%edx
xor    %esi,%esi
call   1090 <memset@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,0x30(%rsp)
movl   $0x0,0x40(%rsp)
movl   $0x0,0x14(%rsp)
lea    0x14(%rsp),%rbx
mov    %rbx,%rdi
call   10a0 <time@plt>
mov    %rbx,%rdi
call   1030 <localtime@plt>
mov    %rax,%r14
lea    0xec5(%rip),%rdi
call   1040 <puts@plt>
lea    0xde3(%rip),%rdi
lea    0xe01(%rip),%rsi
call   10c0 <popen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1241 <check_load+0x81>
lea    0xede(%rip),%rdi
call   1040 <puts@plt>
lea    0x50(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1090 <memset@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x400,%edx
mov    %rbx,%rcx
call   1050 <fread@plt>
movb   $0x0,0x44f(%rsp)
lea    0xdb2(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %rbp,%rdi
call   10b0 <sscanf@plt>
mov    %rbx,%rdi
call   1080 <pclose@plt>
lea    0xd99(%rip),%rdi
lea    0xd8d(%rip),%rsi
call   10c0 <popen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    12b5 <check_load+0xf5>
lea    0xe6a(%rip),%rdi
call   1040 <puts@plt>
lea    0x50(%rsp),%rbp
xor    %r15d,%r15d
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1090 <memset@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x400,%edx
mov    %rbx,%rcx
call   1050 <fread@plt>
movb   $0x0,0x44f(%rsp)
lea    0xd3b(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %rbp,%rdi
call   10b0 <sscanf@plt>
mov    %rbx,%rdi
call   1080 <pclose@plt>
lea    0xd47(%rip),%rdi
lea    0xd16(%rip),%rsi
call   10c0 <popen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    132c <check_load+0x16c>
lea    0xdf3(%rip),%rdi
call   1040 <puts@plt>
lea    0x50(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1090 <memset@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x400,%edx
mov    %rbx,%rcx
call   1050 <fread@plt>
movb   $0x0,0x44f(%rsp)
lea    0xcc7(%rip),%rsi
lea    0x8(%rsp),%rdx
mov    %rbp,%rdi
call   10b0 <sscanf@plt>
mov    %rbx,%rdi
call   1080 <pclose@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x28(%rsp)
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x20(%rsp)
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
mov    %r14,%rdi
call   1060 <asctime@plt>
lea    0xcc0(%rip),%rdi
movsd  0x28(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
mov    %rax,%rsi
mov    $0x3,%al
call   1070 <printf@plt>
movss  0x10(%rsp),%xmm1
movss  0xc(%rsp),%xmm0
ucomiss %xmm0,%xmm1
jbe    1435 <check_load+0x275>
ucomiss 0x8(%rsp),%xmm0
jbe    1435 <check_load+0x275>
lea    0xd0e(%rip),%rdi
call   1040 <puts@plt>
movss  0x8(%rsp),%xmm2
ucomiss 0xbfb(%rip),%xmm2
jbe    1435 <check_load+0x275>
movss  0x10(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
lea    0xc95(%rip),%rsi
lea    0x30(%rsp),%rbx
mov    %rbx,%rdi
call   10e0 <sprintf@plt>
mov    %rbx,%rdi
call   10d0 <sys_log@plt>
mov    $0x1,%r15d
mov    %r15d,%eax
add    $0x458,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
@.str = [40 x i8] c"---------check load average-----------\0A\00"
@.str.1 = [37 x i8] c"cat /proc/loadavg | awk '{print $1}'\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [14 x i8] c"popen failed\0A\00"
@.str.4 = [3 x i8] c"%f\00"
@.str.5 = [37 x i8] c"cat /proc/loadavg | awk '{print $2}'\00"
@.str.6 = [37 x i8] c"cat /proc/loadavg | awk '{print $3}'\00"
@.str.7 = [55 x i8] c"load_1 : %.2f, load_5 : %.2f, load_15 : %.2f ------%s\0A\00"
@.str.8 = [26 x i8] c"loadavg is increasing...\0A\00"
@.str.9 = [43 x i8] c"load_1 : %.2d, load_2 : %.2f, load_3: %.2f\00"
define i32 @check_load() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca [1024 x i8]
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca [20 x i8]
%8 = alloca %struct.tm*
%9 = alloca i32
store i32* null, i32** %2
%10 = bitcast [1024 x i8]* %3 to i8*
%11 = bitcast [20 x i8]* %7 to i8*
store i32 0, i32* %9
%12 = call i32 @time(i32* %9)
%13 = call %struct.tm* @localtime(i32* %9)
store %struct.tm* %13, %struct.tm** %8
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
store i32* null, i32** %2
%15 = call i32* @popen(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %15, i32** %2
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %19
17: ; preds = %0
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
br label %19
19: ; preds = %17, %0
%20 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%21 = call i32 @memset(i8* %20, i32 0, i32 1024)
%22 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%23 = load i32*, i32** %2
%24 = call i32 @fread(i8* %22, i32 1, i32 1024, i32* %23)
%25 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 1023
store i8 0, i8* %25
%26 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%27 = call i32 @sscanf(i8* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %4)
%28 = load i32*, i32** %2
%29 = call i32 @pclose(i32* %28)
store i32* null, i32** %2
%30 = call i32* @popen(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %30, i32** %2
%31 = icmp eq i32* %30, null
br i1 %31, label %32, label %34
32: ; preds = %19
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
br label %34
34: ; preds = %32, %19
%35 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%36 = call i32 @memset(i8* %35, i32 0, i32 1024)
%37 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%38 = load i32*, i32** %2
%39 = call i32 @fread(i8* %37, i32 1, i32 1024, i32* %38)
%40 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 1023
store i8 0, i8* %40
%41 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%42 = call i32 @sscanf(i8* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %5)
%43 = load i32*, i32** %2
%44 = call i32 @pclose(i32* %43)
store i32* null, i32** %2
%45 = call i32* @popen(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %45, i32** %2
%46 = icmp eq i32* %45, null
br i1 %46, label %47, label %49
47: ; preds = %34
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
br label %49
49: ; preds = %47, %34
%50 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%51 = call i32 @memset(i8* %50, i32 0, i32 1024)
%52 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%53 = load i32*, i32** %2
%54 = call i32 @fread(i8* %52, i32 1, i32 1024, i32* %53)
%55 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 1023
store i8 0, i8* %55
%56 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%57 = call i32 @sscanf(i8* %56, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %6)
%58 = load i32*, i32** %2
%59 = call i32 @pclose(i32* %58)
%60 = load float, float* %4
%61 = fpext float %60 to double
%62 = load float, float* %5
%63 = fpext float %62 to double
%64 = load float, float* %6
%65 = fpext float %64 to double
%66 = load %struct.tm*, %struct.tm** %8
%67 = call i8* @asctime(%struct.tm* %66)
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0), double %61, double %63, double %65, i8* %67)
%69 = load float, float* %4
%70 = load float, float* %5
%71 = fcmp ogt float %69, %70
br i1 %71, label %72, label %89
72: ; preds = %49
%73 = load float, float* %5
%74 = load float, float* %6
%75 = fcmp ogt float %73, %74
br i1 %75, label %76, label %89
76: ; preds = %72
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0))
%78 = load float, float* %6
%79 = fcmp ogt float %78, 3.000000e+00
br i1 %79, label %80, label %88
80: ; preds = %76
%81 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%82 = load float, float* %4
%83 = load float, float* %5
%84 = load float, float* %6
%85 = call i32 @sprintf(i8* %81, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0), float %82, float %83, float %84)
%86 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%87 = call i32 @sys_log(i8* %86)
store i32 1, i32* %1
br label %90
88: ; preds = %76
br label %89
89: ; preds = %88, %72, %49
store i32 0, i32* %1
br label %90
90: ; preds = %89, %80
%91 = load i32, i32* %1
ret i32 %91
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@.str.1 = [37 x i8] c"cat /proc/loadavg | awk '{print $1}'\00"
@.str.2 = [2 x i8] c"r\00"
@.str.4 = [3 x i8] c"%f\00"
@.str.5 = [37 x i8] c"cat /proc/loadavg | awk '{print $2}'\00"
@.str.6 = [37 x i8] c"cat /proc/loadavg | awk '{print $3}'\00"
@.str.7 = [55 x i8] c"load_1 : %.2f, load_5 : %.2f, load_15 : %.2f ------%s\0A\00"
@.str.9 = [43 x i8] c"load_1 : %.2d, load_2 : %.2f, load_3: %.2f\00"
@str = [39 x i8] c"---------check load average-----------\00"
@str.10 = [25 x i8] c"loadavg is increasing...\00"
@str.13 = [13 x i8] c"popen failed\00"
define i32 @check_load() {
%1 = alloca [1024 x i8]
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca [20 x i8]
%6 = alloca i32
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%8 = bitcast float* %2 to i8*
%9 = bitcast float* %3 to i8*
%10 = bitcast float* %4 to i8*
%11 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%12 = bitcast i32* %6 to i8*
store i32 0, i32* %6
%13 = call i32 @time(i32* %6)
%14 = call %struct.tm* @localtime(i32* %6)
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str, i64 0, i64 0))
%16 = call i32* @popen(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%17 = icmp eq i32* %16, null
br i1 %17, label %18, label %20
18: ; preds = %0
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.13, i64 0, i64 0))
br label %20
20: ; preds = %18, %0
%21 = call i32 @memset(i8* %7, i32 0, i32 1024)
%22 = call i32 @fread(i8* %7, i32 1, i32 1024, i32* %16)
%23 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 1023
store i8 0, i8* %23
%24 = call i32 @sscanf(i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %2)
%25 = call i32 @pclose(i32* %16)
%26 = call i32* @popen(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%27 = icmp eq i32* %26, null
br i1 %27, label %28, label %30
28: ; preds = %20
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.13, i64 0, i64 0))
br label %30
30: ; preds = %28, %20
%31 = call i32 @memset(i8* %7, i32 0, i32 1024)
%32 = call i32 @fread(i8* %7, i32 1, i32 1024, i32* %26)
store i8 0, i8* %23
%33 = call i32 @sscanf(i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %3)
%34 = call i32 @pclose(i32* %26)
%35 = call i32* @popen(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%36 = icmp eq i32* %35, null
br i1 %36, label %37, label %39
37: ; preds = %30
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.13, i64 0, i64 0))
br label %39
39: ; preds = %37, %30
%40 = call i32 @memset(i8* %7, i32 0, i32 1024)
%41 = call i32 @fread(i8* %7, i32 1, i32 1024, i32* %35)
store i8 0, i8* %23
%42 = call i32 @sscanf(i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %4)
%43 = call i32 @pclose(i32* %35)
%44 = load float, float* %2
%45 = fpext float %44 to double
%46 = load float, float* %3
%47 = fpext float %46 to double
%48 = load float, float* %4
%49 = fpext float %48 to double
%50 = call i8* @asctime(%struct.tm* %14)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0), double %45, double %47, double %49, i8* %50)
%52 = load float, float* %2
%53 = load float, float* %3
%54 = fcmp ogt float %52, %53
%55 = load float, float* %4
%56 = fcmp ogt float %53, %55
%57 = select i1 %54, i1 %56, i1 false
br i1 %57, label %58, label %67
58: ; preds = %39
%59 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.10, i64 0, i64 0))
%60 = load float, float* %4
%61 = fcmp ogt float %60, 3.000000e+00
br i1 %61, label %62, label %67
62: ; preds = %58
%63 = load float, float* %2
%64 = load float, float* %3
%65 = call i32 @sprintf(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0), float %63, float %64, float %60)
%66 = call i32 @sys_log(i8* %11)
br label %67
67: ; preds = %39, %58, %62
%68 = phi i32 [ 1, %62 ], [ 0, %58 ], [ 0, %39 ]
ret i32 %68
}