#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 *, double);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  double M[12][12], soma = 0, cont_n = 0;
  int i, j, L;
  char T;
  scanf(" %c", &T);
  for (i = 0; i < 12; i++) {
    for (j = 0; j < 12; j++) {
      scanf(" %lf", &M[i][j]);
      if (i < j) {
        soma += M[i][j];
        cont_n++;
      }
    }
  }
  switch (T) {
  case 'S':
    printf("%0.1lf\n", soma);
    break;
  case 'M':
    printf("%0.1lf\n", soma / cont_n);
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4c0,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x498(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x4a0(%rbp)
ff
lea    0xeb9(%rip),%rdi
lea    -0x4ad(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x0,-0x4a4(%rbp)
cmpl   $0xc,-0x4a4(%rbp)
jge    1249 <main+0x129>
movl   $0x0,-0x4a8(%rbp)
cmpl   $0xc,-0x4a8(%rbp)
jge    1230 <main+0x110>
movslq -0x4a4(%rbp),%rax
lea    -0x490(%rbp),%rsi
imul   $0x60,%rax,%rax
add    %rax,%rsi
movslq -0x4a8(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rsi
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x4a4(%rbp),%eax
cmp    -0x4a8(%rbp),%eax
jge    1217 <main+0xf7>
movslq -0x4a4(%rbp),%rcx
lea    -0x490(%rbp),%rax
imul   $0x60,%rcx,%rcx
add    %rcx,%rax
movslq -0x4a8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x498(%rbp),%xmm0
ff
movsd  %xmm0,-0x498(%rbp)
ff
movsd  0xdf9(%rip),%xmm0
addsd  -0x4a0(%rbp),%xmm0
ff
movsd  %xmm0,-0x4a0(%rbp)
ff
jmp    121c <main+0xfc>
mov    -0x4a8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4a8(%rbp)
jmp    117e <main+0x5e>
jmp    1235 <main+0x115>
mov    -0x4a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4a4(%rbp)
jmp    1167 <main+0x47>
movsbl -0x4ad(%rbp),%eax
mov    %eax,-0x4b4(%rbp)
sub    $0x4d,%eax
je     1291 <main+0x171>
jmp    1264 <main+0x144>
mov    -0x4b4(%rbp),%eax
sub    $0x53,%eax
jne    12ad <main+0x18d>
jmp    1278 <main+0x158>
movsd  -0x498(%rbp),%xmm0
ff
lea    0xd8a(%rip),%rdi
call   1030 <printf@plt>
jmp    12ad <main+0x18d>
movsd  -0x498(%rbp),%xmm0
ff
divsd  -0x4a0(%rbp),%xmm0
ff
lea    0xd69(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x4c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x4a8,%rsp
lea    0xedb(%rip),%rdi
lea    0x1f(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
xorpd  %xmm1,%xmm1
lea    0xec8(%rip),%r14
xor    %r15d,%r15d
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movapd %xmm1,(%rsp)
lea    (%rsp,%r15,1),%rsi
add    $0x20,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    (%rsp,%r15,1),%rsi
add    $0x28,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
test   %r15,%r15
je     11c0 <main+0xa0>
lea    (%r12,%r12,2),%rbx
shl    $0x5,%rbx
lea    (%rsp,%r15,1),%rsi
add    $0x30,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
cmp    $0x60,%r15
jne    13d0 <main+0x2b0>
add    %rsp,%rbx
add    $0x30,%rbx
jmp    11f2 <main+0xd2>
nopl   0x0(%rax,%rax,1)
movapd 0xe38(%rip),%xmm0
movhpd 0x28(%rsp,%r15,1),%xmm0
movapd (%rsp),%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
lea    (%rsp,%r15,1),%rbx
add    $0x30,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movapd (%rsp),%xmm1
movapd 0xe01(%rip),%xmm0
movhpd (%rbx),%xmm0
addpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
lea    (%rsp,%r15,1),%rbx
add    $0x38,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movapd (%rsp),%xmm1
movapd 0xdd2(%rip),%xmm0
movhpd (%rbx),%xmm0
addpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
lea    (%rsp,%r15,1),%rbx
add    $0x40,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movapd (%rsp),%xmm1
movapd 0xda3(%rip),%xmm0
movhpd (%rbx),%xmm0
addpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
lea    (%rsp,%r15,1),%rbx
add    $0x48,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movapd (%rsp),%xmm1
movapd 0xd74(%rip),%xmm0
movhpd (%rbx),%xmm0
addpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
lea    (%rsp,%r15,1),%rbx
add    $0x50,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movapd (%rsp),%xmm1
movapd 0xd45(%rip),%xmm0
movhpd (%rbx),%xmm0
addpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
lea    (%rsp,%r15,1),%rbx
add    $0x58,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movapd (%rsp),%xmm1
movapd 0xd16(%rip),%xmm0
movhpd (%rbx),%xmm0
addpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
lea    (%rsp,%r15,1),%rbx
add    $0x60,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movapd (%rsp),%xmm1
movapd 0xce7(%rip),%xmm0
movhpd (%rbx),%xmm0
addpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
lea    (%rsp,%r15,1),%rbx
add    $0x68,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movapd (%rsp),%xmm1
movapd 0xcb8(%rip),%xmm0
movhpd (%rbx),%xmm0
addpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
lea    (%rsp,%r15,1),%rbx
add    $0x70,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movapd (%rsp),%xmm1
movapd 0xc89(%rip),%xmm0
movhpd (%rbx),%xmm0
addpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
lea    (%rsp,%r15,1),%rbx
add    $0x78,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movapd (%rsp),%xmm1
movapd 0xc5a(%rip),%xmm0
movhpd (%rbx),%xmm0
addpd  %xmm0,%xmm1
add    $0x1,%r12
add    $0x60,%r15
cmp    $0x480,%r15
jne    1160 <main+0x40>
jmp    152a <main+0x40a>
nopl   0x0(%rax,%rax,1)
lea    (%rsp,%r15,1),%rsi
add    $0x38,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
cmp    $0x2,%r12
ja     13f4 <main+0x2d4>
add    %rsp,%rbx
add    $0x38,%rbx
jmp    1221 <main+0x101>
lea    (%rsp,%r15,1),%rsi
add    $0x40,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
cmp    $0x120,%r15
jne    141b <main+0x2fb>
add    %rsp,%rbx
add    $0x40,%rbx
jmp    1250 <main+0x130>
lea    (%rsp,%r15,1),%rsi
add    $0x48,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
cmp    $0x4,%r12
ja     143f <main+0x31f>
add    %rsp,%rbx
add    $0x48,%rbx
jmp    127f <main+0x15f>
lea    (%rsp,%r15,1),%rsi
add    $0x50,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
cmp    $0x1e0,%r15
jne    1466 <main+0x346>
add    %rsp,%rbx
add    $0x50,%rbx
jmp    12ae <main+0x18e>
lea    (%rsp,%r15,1),%rsi
add    $0x58,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
cmp    $0x6,%r12
ja     148a <main+0x36a>
add    %rsp,%rbx
add    $0x58,%rbx
jmp    12dd <main+0x1bd>
lea    (%rsp,%r15,1),%rsi
add    $0x60,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
cmp    $0x2a0,%r15
jne    14b1 <main+0x391>
add    %rsp,%rbx
add    $0x60,%rbx
jmp    130c <main+0x1ec>
lea    (%rsp,%r15,1),%rsi
add    $0x68,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
cmp    $0x8,%r12
ja     14d5 <main+0x3b5>
add    %rsp,%rbx
add    $0x68,%rbx
jmp    133b <main+0x21b>
lea    (%rsp,%r15,1),%rsi
add    $0x70,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
cmp    $0x360,%r15
jne    14fc <main+0x3dc>
add    %rsp,%rbx
add    $0x70,%rbx
jmp    136a <main+0x24a>
lea    (%rsp,%r15,1),%rsi
add    $0x78,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
cmp    $0xa,%r12
ja     1520 <main+0x400>
add    %rsp,%rbx
add    $0x78,%rbx
jmp    1399 <main+0x279>
movapd (%rsp),%xmm1
jmp    13ae <main+0x28e>
movsbl 0x1f(%rsp),%eax
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
cmp    $0x53,%eax
je     1545 <main+0x425>
cmp    $0x4d,%eax
jne    1551 <main+0x431>
divsd  %xmm1,%xmm0
lea    0xacd(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x4a8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c" %c\00"
@.str.1 = [5 x i8] c" %lf\00"
@.str.2 = [8 x i8] c"%0.1lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [12 x [12 x double]]
%3 = alloca double
%4 = alloca double
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
store i32 0, i32* %1
store double 0.000000e+00, double* %3
store double 0.000000e+00, double* %4
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %8)
store i32 0, i32* %5
br label %10
10: ; preds = %45, %0
%11 = load i32, i32* %5
%12 = icmp slt i32 %11, 12
br i1 %12, label %13, label %48
13: ; preds = %10
store i32 0, i32* %6
br label %14
14: ; preds = %41, %13
%15 = load i32, i32* %6
%16 = icmp slt i32 %15, 12
br i1 %16, label %17, label %44
17: ; preds = %14
%18 = load i32, i32* %5
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %2, i64 0, i64 %19
%21 = load i32, i32* %6
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [12 x double], [12 x double]* %20, i64 0, i64 %22
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %23)
%25 = load i32, i32* %5
%26 = load i32, i32* %6
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %40
28: ; preds = %17
%29 = load i32, i32* %5
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %2, i64 0, i64 %30
%32 = load i32, i32* %6
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [12 x double], [12 x double]* %31, i64 0, i64 %33
%35 = load double, double* %34
%36 = load double, double* %3
%37 = fadd double %36, %35
store double %37, double* %3
%38 = load double, double* %4
%39 = fadd double %38, 1.000000e+00
store double %39, double* %4
br label %40
40: ; preds = %28, %17
br label %41
41: ; preds = %40
%42 = load i32, i32* %6
%43 = add nsw i32 %42, 1
store i32 %43, i32* %6
br label %14
44: ; preds = %14
br label %45
45: ; preds = %44
%46 = load i32, i32* %5
%47 = add nsw i32 %46, 1
store i32 %47, i32* %5
br label %10
48: ; preds = %10
%49 = load i8, i8* %8
%50 = sext i8 %49 to i32
switch i32 %50, label %59 [
i32 83, label %51
i32 77, label %54
]
51: ; preds = %48
%52 = load double, double* %3
%53 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), double %52)
br label %59
54: ; preds = %48
%55 = load double, double* %3
%56 = load double, double* %4
%57 = fdiv double %55, %56
%58 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), double %57)
br label %59
59: ; preds = %48, %54, %51
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c" %c\00"
@.str.1 = [5 x i8] c" %lf\00"
@.str.2 = [8 x i8] c"%0.1lf\0A\00"
define i32 @main() {
%1 = alloca [12 x [12 x double]]
%2 = alloca i8
%3 = bitcast [12 x [12 x double]]* %1 to i8*
%4 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %2)
br label %5
5: ; preds = %137, %0
%6 = phi i64 [ 0, %0 ], [ %139, %137 ]
%7 = phi <2 x double> [ zeroinitializer, %0 ], [ %138, %137 ]
%8 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 0
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %8)
%10 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 1
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %10)
%12 = icmp eq i64 %6, 0
br i1 %12, label %13, label %19
13: ; preds = %5
%14 = load double, double* %10
%15 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %14, i64 1
%16 = fadd <2 x double> %7, %15
%17 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 2
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %17)
br label %23
19: ; preds = %5
%20 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 2
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %20)
%22 = icmp eq i64 %6, 1
br i1 %22, label %23, label %31
23: ; preds = %19, %13
%24 = phi double* [ %17, %13 ], [ %20, %19 ]
%25 = phi <2 x double> [ %16, %13 ], [ %7, %19 ]
%26 = load double, double* %24
%27 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %26, i64 1
%28 = fadd <2 x double> %25, %27
%29 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 3
%30 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %29)
br label %35
31: ; preds = %19
%32 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 3
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %32)
%34 = icmp ult i64 %6, 3
br i1 %34, label %35, label %43
35: ; preds = %31, %23
%36 = phi double* [ %29, %23 ], [ %32, %31 ]
%37 = phi <2 x double> [ %28, %23 ], [ %7, %31 ]
%38 = load double, double* %36
%39 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %38, i64 1
%40 = fadd <2 x double> %37, %39
%41 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 4
%42 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %41)
br label %47
43: ; preds = %31
%44 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 4
%45 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %44)
%46 = icmp eq i64 %6, 3
br i1 %46, label %47, label %55
47: ; preds = %43, %35
%48 = phi double* [ %41, %35 ], [ %44, %43 ]
%49 = phi <2 x double> [ %40, %35 ], [ %7, %43 ]
%50 = load double, double* %48
%51 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %50, i64 1
%52 = fadd <2 x double> %49, %51
%53 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 5
%54 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %53)
br label %59
55: ; preds = %43
%56 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 5
%57 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %56)
%58 = icmp ult i64 %6, 5
br i1 %58, label %59, label %67
59: ; preds = %55, %47
%60 = phi double* [ %53, %47 ], [ %56, %55 ]
%61 = phi <2 x double> [ %52, %47 ], [ %7, %55 ]
%62 = load double, double* %60
%63 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %62, i64 1
%64 = fadd <2 x double> %61, %63
%65 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 6
%66 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %65)
br label %71
67: ; preds = %55
%68 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 6
%69 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %68)
%70 = icmp eq i64 %6, 5
br i1 %70, label %71, label %79
71: ; preds = %67, %59
%72 = phi double* [ %65, %59 ], [ %68, %67 ]
%73 = phi <2 x double> [ %64, %59 ], [ %7, %67 ]
%74 = load double, double* %72
%75 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %74, i64 1
%76 = fadd <2 x double> %73, %75
%77 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 7
%78 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %77)
br label %83
79: ; preds = %67
%80 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 7
%81 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %80)
%82 = icmp ult i64 %6, 7
br i1 %82, label %83, label %91
83: ; preds = %79, %71
%84 = phi double* [ %77, %71 ], [ %80, %79 ]
%85 = phi <2 x double> [ %76, %71 ], [ %7, %79 ]
%86 = load double, double* %84
%87 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %86, i64 1
%88 = fadd <2 x double> %85, %87
%89 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 8
%90 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %89)
br label %95
91: ; preds = %79
%92 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 8
%93 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %92)
%94 = icmp eq i64 %6, 7
br i1 %94, label %95, label %103
95: ; preds = %91, %83
%96 = phi double* [ %89, %83 ], [ %92, %91 ]
%97 = phi <2 x double> [ %88, %83 ], [ %7, %91 ]
%98 = load double, double* %96
%99 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %98, i64 1
%100 = fadd <2 x double> %97, %99
%101 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 9
%102 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %101)
br label %107
103: ; preds = %91
%104 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 9
%105 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %104)
%106 = icmp ult i64 %6, 9
br i1 %106, label %107, label %115
107: ; preds = %103, %95
%108 = phi double* [ %101, %95 ], [ %104, %103 ]
%109 = phi <2 x double> [ %100, %95 ], [ %7, %103 ]
%110 = load double, double* %108
%111 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %110, i64 1
%112 = fadd <2 x double> %109, %111
%113 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 10
%114 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %113)
br label %119
115: ; preds = %103
%116 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 10
%117 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %116)
%118 = icmp eq i64 %6, 9
br i1 %118, label %119, label %127
119: ; preds = %115, %107
%120 = phi double* [ %113, %107 ], [ %116, %115 ]
%121 = phi <2 x double> [ %112, %107 ], [ %7, %115 ]
%122 = load double, double* %120
%123 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %122, i64 1
%124 = fadd <2 x double> %121, %123
%125 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 11
%126 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %125)
br label %131
127: ; preds = %115
%128 = getelementptr inbounds [12 x [12 x double]], [12 x [12 x double]]* %1, i64 0, i64 %6, i64 11
%129 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %128)
%130 = icmp ult i64 %6, 11
br i1 %130, label %131, label %137
131: ; preds = %119, %127
%132 = phi double* [ %125, %119 ], [ %128, %127 ]
%133 = phi <2 x double> [ %124, %119 ], [ %7, %127 ]
%134 = load double, double* %132
%135 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %134, i64 1
%136 = fadd <2 x double> %133, %135
br label %137
137: ; preds = %131, %127
%138 = phi <2 x double> [ %136, %131 ], [ %7, %127 ]
%139 = add nuw nsw i64 %6, 1
%140 = icmp eq i64 %139, 12
br i1 %140, label %141, label %5
141: ; preds = %137
%142 = load i8, i8* %2
%143 = sext i8 %142 to i32
%144 = extractelement <2 x double> %138, i64 1
switch i32 %143, label %151 [
i32 83, label %148
i32 77, label %145
]
145: ; preds = %141
%146 = extractelement <2 x double> %138, i64 0
%147 = fdiv double %144, %146
br label %148
148: ; preds = %141, %145
%149 = phi double [ %147, %145 ], [ %144, %141 ]
%150 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), double %149)
br label %151
151: ; preds = %148, %141
ret i32 0
}