#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*/
exceed_standard_deviation_key_value_file(char *, char, double, double, double);
int /*<<< orphan*/ exceed_standard_deviation_stdout(char *, char, double,
                                                    double, double, double);
scalar_t__ strcmp(char *, char *);
void exceed_standard_deviation_output(double minimum_value,
                                      double maximum_value, double average,
                                      char *key_string, double value,
                                      char delimiter, char *key_value_file) {
  if (!*key_value_file || strcmp(key_value_file, "key_value_file") == 0) {
    exceed_standard_deviation_stdout(key_string, delimiter, value,
                                     minimum_value, average, maximum_value);
  } else {
    exceed_standard_deviation_key_value_file(
        key_value_file, delimiter, minimum_value, average, maximum_value);
  }
}


x86 assembly (clang, -O0):
<exceed_standard_deviation_output>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %sil,%al
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    %rdi,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
mov    %al,-0x29(%rbp)
mov    %rdx,-0x38(%rbp)
mov    -0x38(%rbp),%rax
cmpb   $0x0,(%rax)
je     1181 <exceed_standard_deviation_output+0x51>
mov    -0x38(%rbp),%rdi
lea    0xe8e(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11a9 <exceed_standard_deviation_output+0x79>
mov    -0x20(%rbp),%rdi
mov    -0x29(%rbp),%al
movsd  -0x28(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm3
movsbl %al,%esi
call   1050 <exceed_standard_deviation_stdout@plt>
jmp    11c7 <exceed_standard_deviation_output+0x97>
mov    -0x38(%rbp),%rdi
mov    -0x29(%rbp),%al
movsd  -0x8(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
movsbl %al,%esi
call   1030 <exceed_standard_deviation_key_value_file@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exceed_standard_deviation_output>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %esi,%ebp
mov    %rdi,%r14
movaps %xmm1,%xmm4
movaps %xmm0,%xmm1
cmpb   $0x0,(%rdx)
je     11aa <exceed_standard_deviation_output+0x7a>
mov    %rdx,%rbx
lea    0xeae(%rip),%rsi
mov    %rdx,%rdi
movsd  %xmm4,0x18(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm3,(%rsp)
call   1040 <strcmp@plt>
movsd  (%rsp),%xmm3
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm4
test   %rax,%rax
je     11aa <exceed_standard_deviation_output+0x7a>
movsbl %bpl,%esi
mov    %rbx,%rdi
movaps %xmm1,%xmm0
movaps %xmm2,%xmm1
movaps %xmm4,%xmm2
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <exceed_standard_deviation_key_value_file@plt>
movsbl %bpl,%esi
mov    %r14,%rdi
movaps %xmm3,%xmm0
movaps %xmm4,%xmm3
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
jmp    1050 <exceed_standard_deviation_stdout@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"key_value_file\00"
define void @exceed_standard_deviation_output(double %0, double %1, double %2, i8* %3, double %4, i8 signext %5, i8* %6) {
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca i8*
%12 = alloca double
%13 = alloca i8
%14 = alloca i8*
store double %0, double* %8
store double %1, double* %9
store double %2, double* %10
store i8* %3, i8** %11
store double %4, double* %12
store i8 %5, i8* %13
store i8* %6, i8** %14
%15 = load i8*, i8** %14
%16 = load i8, i8* %15
%17 = icmp ne i8 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %7
%19 = load i8*, i8** %14
%20 = call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %30
22: ; preds = %18, %7
%23 = load i8*, i8** %11
%24 = load i8, i8* %13
%25 = load double, double* %12
%26 = load double, double* %8
%27 = load double, double* %10
%28 = load double, double* %9
%29 = call i32 @exceed_standard_deviation_stdout(i8* %23, i8 signext %24, double %25, double %26, double %27, double %28)
br label %37
30: ; preds = %18
%31 = load i8*, i8** %14
%32 = load i8, i8* %13
%33 = load double, double* %8
%34 = load double, double* %10
%35 = load double, double* %9
%36 = call i32 @exceed_standard_deviation_key_value_file(i8* %31, i8 signext %32, double %33, double %34, double %35)
br label %37
37: ; preds = %30, %22
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"key_value_file\00"
define void @exceed_standard_deviation_output(double %0, double %1, double %2, i8* %3, double %4, i8 signext %5, i8* %6) {
%8 = load i8, i8* %6
%9 = icmp eq i8 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10, %7
%14 = tail call i32 @exceed_standard_deviation_stdout(i8* %3, i8 signext %5, double %4, double %0, double %2, double %1)
br label %17
15: ; preds = %10
%16 = tail call i32 @exceed_standard_deviation_key_value_file(i8* %6, i8 signext %5, double %0, double %2, double %1)
br label %17
17: ; preds = %15, %13
ret void
}