#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void exceed_standard_deviation_stdout(char *key_string, char delimiter,
                                      double value, double minimum_value,
                                      double average, double maximum_value) {
  if (minimum_value <= value && value <= maximum_value)
    return;
  if (value < minimum_value) {
    printf("%s%c%.3lf%ctoo_low%c", key_string, delimiter, value, delimiter,
           delimiter);
  } else if (value > maximum_value) {
    printf("%s%c%.3lf%ctoo_high%c", key_string, delimiter, value, delimiter,
           delimiter);
  }
  printf("min=%.2lf%cavg=%.2lf%cmax=%.2lf\n", minimum_value, delimiter, average,
         delimiter, maximum_value);
}


x86 assembly (clang, -O0):
<exceed_standard_deviation_stdout>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
movsd  %xmm0,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
movsd  %xmm2,-0x28(%rbp)
movsd  %xmm3,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1163 <exceed_standard_deviation_stdout+0x53>
movsd  -0x18(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1163 <exceed_standard_deviation_stdout+0x53>
jmp    11fe <exceed_standard_deviation_stdout+0xee>
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    11a0 <exceed_standard_deviation_stdout+0x90>
mov    -0x8(%rbp),%rsi
movsbl -0x9(%rbp),%edx
movsd  -0x18(%rbp),%xmm0
movsbl -0x9(%rbp),%ecx
movsbl -0x9(%rbp),%r8d
lea    0xe6c(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    11d9 <exceed_standard_deviation_stdout+0xc9>
movsd  -0x18(%rbp),%xmm0
ucomisd -0x30(%rbp),%xmm0
jbe    11d4 <exceed_standard_deviation_stdout+0xc4>
mov    -0x8(%rbp),%rsi
movsbl -0x9(%rbp),%edx
movsd  -0x18(%rbp),%xmm0
movsbl -0x9(%rbp),%ecx
movsbl -0x9(%rbp),%r8d
lea    0xe48(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    11d9 <exceed_standard_deviation_stdout+0xc9>
movsd  -0x20(%rbp),%xmm0
movsbl -0x9(%rbp),%esi
movsd  -0x28(%rbp),%xmm1
movsbl -0x9(%rbp),%edx
movsd  -0x30(%rbp),%xmm2
lea    0xe34(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exceed_standard_deviation_stdout>:
mov    %rdi,%rax
ucomisd %xmm1,%xmm0
jb     1120 <exceed_standard_deviation_stdout+0x10>
ucomisd %xmm0,%xmm3
jb     1120 <exceed_standard_deviation_stdout+0x10>
ret
push   %rbx
sub    $0x20,%rsp
ucomisd %xmm0,%xmm1
jbe    1138 <exceed_standard_deviation_stdout+0x28>
movsbl %sil,%ebx
lea    0xeca(%rip),%rdi
jmp    1149 <exceed_standard_deviation_stdout+0x39>
ucomisd %xmm3,%xmm0
movsbl %sil,%ebx
jbe    117e <exceed_standard_deviation_stdout+0x6e>
lea    0xecc(%rip),%rdi
mov    %rax,%rsi
mov    %ebx,%edx
mov    %ebx,%ecx
mov    %ebx,%r8d
mov    $0x1,%al
movsd  %xmm3,0x18(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
lea    0xea6(%rip),%rdi
movapd %xmm1,%xmm0
mov    %ebx,%esi
movaps %xmm2,%xmm1
mov    %ebx,%edx
movapd %xmm3,%xmm2
mov    $0x3,%al
add    $0x20,%rsp
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"%s%c%.3lf%ctoo_low%c\00"
@.str.1 = [22 x i8] c"%s%c%.3lf%ctoo_high%c\00"
@.str.2 = [33 x i8] c"min=%.2lf%cavg=%.2lf%cmax=%.2lf\0A\00"
define void @exceed_standard_deviation_stdout(i8* %0, i8 signext %1, double %2, double %3, double %4, double %5) {
%7 = alloca i8*
%8 = alloca i8
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
store i8* %0, i8** %7
store i8 %1, i8* %8
store double %2, double* %9
store double %3, double* %10
store double %4, double* %11
store double %5, double* %12
%13 = load double, double* %10
%14 = load double, double* %9
%15 = fcmp ole double %13, %14
br i1 %15, label %16, label %21
16: ; preds = %6
%17 = load double, double* %9
%18 = load double, double* %12
%19 = fcmp ole double %17, %18
br i1 %19, label %20, label %21
20: ; preds = %16
br label %59
21: ; preds = %16, %6
%22 = load double, double* %9
%23 = load double, double* %10
%24 = fcmp olt double %22, %23
br i1 %24, label %25, label %35
25: ; preds = %21
%26 = load i8*, i8** %7
%27 = load i8, i8* %8
%28 = sext i8 %27 to i32
%29 = load double, double* %9
%30 = load i8, i8* %8
%31 = sext i8 %30 to i32
%32 = load i8, i8* %8
%33 = sext i8 %32 to i32
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %26, i32 %28, double %29, i32 %31, i32 %33)
br label %50
35: ; preds = %21
%36 = load double, double* %9
%37 = load double, double* %12
%38 = fcmp ogt double %36, %37
br i1 %38, label %39, label %49
39: ; preds = %35
%40 = load i8*, i8** %7
%41 = load i8, i8* %8
%42 = sext i8 %41 to i32
%43 = load double, double* %9
%44 = load i8, i8* %8
%45 = sext i8 %44 to i32
%46 = load i8, i8* %8
%47 = sext i8 %46 to i32
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %40, i32 %42, double %43, i32 %45, i32 %47)
br label %49
49: ; preds = %39, %35
br label %50
50: ; preds = %49, %25
%51 = load double, double* %10
%52 = load i8, i8* %8
%53 = sext i8 %52 to i32
%54 = load double, double* %11
%55 = load i8, i8* %8
%56 = sext i8 %55 to i32
%57 = load double, double* %12
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), double %51, i32 %53, double %54, i32 %56, double %57)
br label %59
59: ; preds = %50, %20
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"%s%c%.3lf%ctoo_low%c\00"
@.str.1 = [22 x i8] c"%s%c%.3lf%ctoo_high%c\00"
@.str.2 = [33 x i8] c"min=%.2lf%cavg=%.2lf%cmax=%.2lf\0A\00"
define void @exceed_standard_deviation_stdout(i8* %0, i8 signext %1, double %2, double %3, double %4, double %5) {
%7 = fcmp ugt double %3, %2
%8 = fcmp ugt double %2, %5
%9 = or i1 %7, %8
br i1 %9, label %10, label %23
10: ; preds = %6
%11 = fcmp olt double %2, %3
br i1 %11, label %12, label %15
12: ; preds = %10
%13 = sext i8 %1 to i32
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %13, double %2, i32 %13, i32 %13)
br label %20
15: ; preds = %10
%16 = fcmp ogt double %2, %5
%17 = sext i8 %1 to i32
br i1 %16, label %18, label %20
18: ; preds = %15
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %0, i32 %17, double %2, i32 %17, i32 %17)
br label %20
20: ; preds = %15, %18, %12
%21 = phi i32 [ %17, %18 ], [ %13, %12 ], [ %17, %15 ]
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), double %3, i32 %21, double %4, i32 %21, double %5)
br label %23
23: ; preds = %6, %20
ret void
}