#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 */
float averageTemp(float *, int, int);
int /*<<< orphan*/ generateTemperatures(float *, int, float);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ system(char *);
int main() {
  int _startDay, _endDay, _numDays, i;
  float temperatureValues[20], _startTemp, *ptr, _averageTemp;
  printf("Please input a start Temperature:\n");
  scanf("%f", &_startTemp);
  if (_startTemp < -50 || _startTemp > 50) {
    printf("Temperature out of expected range\n");
  } else {
    printf("Begining generation of temperatures...\n");
    ptr = &temperatureValues[0];
    generateTemperatures(ptr, 20, _startTemp);
    printf("Temperatures are:\n");
    for (i = 0; i < 20; i++) {
      printf("%2.0f, ", temperatureValues[i]);
    }
    printf("\nPlease state the start day for average calculation:\n");
    scanf("%d", &_startDay);
    printf("Please state the end day for average calculation:\n");
    scanf("%d", &_endDay);
    _averageTemp = averageTemp(ptr, _startDay, _endDay);
    if (_averageTemp < 0) {
      switch ((int)_averageTemp) {
      case -1:
        printf("Start day and end day must be > 0\n");
        break;
      case -2:
        printf("Start day must be before end day\n");
        break;
      case -3:
        printf("End day must not exceed 20\n");
        break;
      default:
        break;
      }
    } else
      printf("The average Temperature is: %2.1f\n", _averageTemp);
  }
  system("PAUSE");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xeb4(%rip),%rdi
lea    -0x74(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
movss  0xe76(%rip),%xmm0
ucomiss -0x74(%rbp),%xmm0
ja     11aa <main+0x5a>
movss  -0x74(%rbp),%xmm0
movss  0xe63(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11bd <main+0x6d>
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    133c <main+0x1ec>
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x70(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rdi
movss  -0x74(%rbp),%xmm0
mov    $0x14,%esi
call   1070 <generateTemperatures@plt>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    122f <main+0xdf>
movslq -0x14(%rbp),%rax
movss  -0x70(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe72(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11fb <main+0xab>
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe86(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xe77(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe66(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
mov    -0x80(%rbp),%rdi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1030 <averageTemp@plt>
movss  %xmm0,-0x84(%rbp)
ff
xorps  %xmm0,%xmm0
ucomiss -0x84(%rbp),%xmm0
jbe    131d <main+0x1cd>
cvttss2si -0x84(%rbp),%eax
ff
mov    %eax,-0x88(%rbp)
sub    $0xfffffffd,%eax
je     1300 <main+0x1b0>
jmp    12b2 <main+0x162>
mov    -0x88(%rbp),%eax
sub    $0xfffffffe,%eax
je     12ed <main+0x19d>
jmp    12c6 <main+0x176>
mov    -0x88(%rbp),%eax
sub    $0xffffffff,%eax
jne    1313 <main+0x1c3>
jmp    12da <main+0x18a>
lea    0xe1f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1318 <main+0x1c8>
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1318 <main+0x1c8>
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1318 <main+0x1c8>
jmp    1318 <main+0x1c8>
jmp    1337 <main+0x1e7>
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xe31(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
jmp    133c <main+0x1ec>
lea    0xe41(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x68,%rsp
lea    0xed1(%rip),%rdi
call   1040 <puts@plt>
lea    0xe8e(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
movss  0x4(%rsp),%xmm0
movss  0xe6c(%rip),%xmm1
ucomiss %xmm0,%xmm1
ja     13e2 <main+0x282>
ucomiss 0xe60(%rip),%xmm0
ja     13e2 <main+0x282>
lea    0xeb0(%rip),%rdi
call   1040 <puts@plt>
movss  0x4(%rsp),%xmm0
lea    0x10(%rsp),%r14
mov    %r14,%rdi
mov    $0x14,%esi
call   1080 <generateTemperatures@plt>
lea    0xeb3(%rip),%rdi
call   1040 <puts@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe20(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x24(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x28(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x2c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x30(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x34(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x38(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x3c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x40(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x44(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x48(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x4c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x50(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x54(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x58(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x5c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xd22(%rip),%rdi
call   1040 <puts@plt>
lea    0xc8f(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xd35(%rip),%rdi
call   1040 <puts@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
mov    %r14,%rdi
call   1030 <averageTemp@plt>
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jbe    13f0 <main+0x290>
cvttss2si %xmm0,%eax
cmp    $0xfffffffd,%eax
je     1418 <main+0x2b8>
cmp    $0xfffffffe,%eax
je     1421 <main+0x2c1>
cmp    $0xffffffff,%eax
jne    1402 <main+0x2a2>
lea    0xd5d(%rip),%rdi
jmp    13e9 <main+0x289>
lea    0xd76(%rip),%rdi
call   1040 <puts@plt>
jmp    1402 <main+0x2a2>
cvtss2sd %xmm0,%xmm0
lea    0xc1b(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xc30(%rip),%rdi
call   1050 <system@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r14
ret
lea    0xce2(%rip),%rdi
jmp    13e9 <main+0x289>
lea    0xcf4(%rip),%rdi
jmp    13e9 <main+0x289>

LLVM IR (-O0):
@.str = [35 x i8] c"Please input a start Temperature:\0A\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [35 x i8] c"Temperature out of expected range\0A\00"
@.str.3 = [40 x i8] c"Begining generation of temperatures...\0A\00"
@.str.4 = [19 x i8] c"Temperatures are:\0A\00"
@.str.5 = [8 x i8] c"%2.0f, \00"
@.str.6 = [54 x i8] c"\0APlease state the start day for average calculation:\0A\00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [51 x i8] c"Please state the end day for average calculation:\0A\00"
@.str.9 = [35 x i8] c"Start day and end day must be > 0\0A\00"
@.str.10 = [34 x i8] c"Start day must be before end day\0A\00"
@.str.11 = [28 x i8] c"End day must not exceed 20\0A\00"
@.str.12 = [35 x i8] c"The average Temperature is: %2.1f\0A\00"
@.str.13 = [6 x i8] c"PAUSE\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [20 x float]
%7 = alloca float
%8 = alloca float*
%9 = alloca float
store i32 0, i32* %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %7)
%12 = load float, float* %7
%13 = fcmp olt float %12, -5.000000e+01
br i1 %13, label %17, label %14
14: ; preds = %0
%15 = load float, float* %7
%16 = fcmp ogt float %15, 5.000000e+01
br i1 %16, label %17, label %19
17: ; preds = %14, %0
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
br label %66
19: ; preds = %14
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0))
%21 = getelementptr inbounds [20 x float], [20 x float]* %6, i64 0, i64 0
store float* %21, float** %8
%22 = load float*, float** %8
%23 = load float, float* %7
%24 = call i32 @generateTemperatures(float* %22, i32 20, float %23)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %5
br label %26
26: ; preds = %36, %19
%27 = load i32, i32* %5
%28 = icmp slt i32 %27, 20
br i1 %28, label %29, label %39
29: ; preds = %26
%30 = load i32, i32* %5
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [20 x float], [20 x float]* %6, i64 0, i64 %31
%33 = load float, float* %32
%34 = fpext float %33 to double
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %34)
br label %36
36: ; preds = %29
%37 = load i32, i32* %5
%38 = add nsw i32 %37, 1
store i32 %38, i32* %5
br label %26
39: ; preds = %26
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i64 0, i64 0))
%41 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %2)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
%43 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %3)
%44 = load float*, float** %8
%45 = load i32, i32* %2
%46 = load i32, i32* %3
%47 = call float @averageTemp(float* %44, i32 %45, i32 %46)
store float %47, float* %9
%48 = load float, float* %9
%49 = fcmp olt float %48, 0.000000e+00
br i1 %49, label %50, label %61
50: ; preds = %39
%51 = load float, float* %9
%52 = fptosi float %51 to i32
switch i32 %52, label %59 [
i32 -1, label %53
i32 -2, label %55
i32 -3, label %57
]
53: ; preds = %50
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
br label %60
55: ; preds = %50
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
br label %60
57: ; preds = %50
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0))
br label %60
59: ; preds = %50
br label %60
60: ; preds = %59, %57, %55, %53
br label %65
61: ; preds = %39
%62 = load float, float* %9
%63 = fpext float %62 to double
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), double %63)
br label %65
65: ; preds = %61, %60
br label %66
66: ; preds = %65, %17
%67 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%f\00"
@.str.5 = [8 x i8] c"%2.0f, \00"
@.str.7 = [3 x i8] c"%d\00"
@.str.12 = [35 x i8] c"The average Temperature is: %2.1f\0A\00"
@.str.13 = [6 x i8] c"PAUSE\00"
@str = [34 x i8] c"Please input a start Temperature:\00"
@str.14 = [39 x i8] c"Begining generation of temperatures...\00"
@str.15 = [18 x i8] c"Temperatures are:\00"
@str.16 = [53 x i8] c"\0APlease state the start day for average calculation:\00"
@str.17 = [50 x i8] c"Please state the end day for average calculation:\00"
@str.18 = [27 x i8] c"End day must not exceed 20\00"
@str.19 = [33 x i8] c"Start day must be before end day\00"
@str.20 = [34 x i8] c"Start day and end day must be > 0\00"
@str.21 = [34 x i8] c"Temperature out of expected range\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [20 x float]
%4 = alloca float
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast [20 x float]* %3 to i8*
%8 = bitcast float* %4 to i8*
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %4)
%11 = load float, float* %4
%12 = fcmp olt float %11, -5.000000e+01
%13 = fcmp ogt float %11, 5.000000e+01
%14 = or i1 %12, %13
br i1 %14, label %15, label %17
15: ; preds = %0
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.21, i64 0, i64 0))
br label %121
17: ; preds = %0
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.14, i64 0, i64 0))
%19 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 0
%20 = load float, float* %4
%21 = call i32 @generateTemperatures(float* %19, i32 20, float %20)
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.15, i64 0, i64 0))
%23 = load float, float* %19
%24 = fpext float %23 to double
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %24)
%26 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 1
%27 = load float, float* %26
%28 = fpext float %27 to double
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %28)
%30 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 2
%31 = load float, float* %30
%32 = fpext float %31 to double
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %32)
%34 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 3
%35 = load float, float* %34
%36 = fpext float %35 to double
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %36)
%38 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 4
%39 = load float, float* %38
%40 = fpext float %39 to double
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %40)
%42 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 5
%43 = load float, float* %42
%44 = fpext float %43 to double
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %44)
%46 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 6
%47 = load float, float* %46
%48 = fpext float %47 to double
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %48)
%50 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 7
%51 = load float, float* %50
%52 = fpext float %51 to double
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %52)
%54 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 8
%55 = load float, float* %54
%56 = fpext float %55 to double
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %56)
%58 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 9
%59 = load float, float* %58
%60 = fpext float %59 to double
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %60)
%62 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 10
%63 = load float, float* %62
%64 = fpext float %63 to double
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %64)
%66 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 11
%67 = load float, float* %66
%68 = fpext float %67 to double
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %68)
%70 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 12
%71 = load float, float* %70
%72 = fpext float %71 to double
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %72)
%74 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 13
%75 = load float, float* %74
%76 = fpext float %75 to double
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %76)
%78 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 14
%79 = load float, float* %78
%80 = fpext float %79 to double
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %80)
%82 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 15
%83 = load float, float* %82
%84 = fpext float %83 to double
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %84)
%86 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 16
%87 = load float, float* %86
%88 = fpext float %87 to double
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %88)
%90 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 17
%91 = load float, float* %90
%92 = fpext float %91 to double
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %92)
%94 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 18
%95 = load float, float* %94
%96 = fpext float %95 to double
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %96)
%98 = getelementptr inbounds [20 x float], [20 x float]* %3, i64 0, i64 19
%99 = load float, float* %98
%100 = fpext float %99 to double
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %100)
%102 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.16, i64 0, i64 0))
%103 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%104 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.17, i64 0, i64 0))
%105 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %2)
%106 = load i32, i32* %1
%107 = load i32, i32* %2
%108 = call float @averageTemp(float* %19, i32 %106, i32 %107)
%109 = fcmp olt float %108, 0.000000e+00
br i1 %109, label %110, label %118
110: ; preds = %17
%111 = fptosi float %108 to i32
switch i32 %111, label %121 [
i32 -1, label %112
i32 -2, label %114
i32 -3, label %116
]
112: ; preds = %110
%113 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.20, i64 0, i64 0))
br label %121
114: ; preds = %110
%115 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.19, i64 0, i64 0))
br label %121
116: ; preds = %110
%117 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.18, i64 0, i64 0))
br label %121
118: ; preds = %17
%119 = fpext float %108 to double
%120 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), double %119)
br label %121
121: ; preds = %118, %110, %116, %114, %112, %15
%122 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
ret i32 0
}