#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 *, float);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float i, n, z, s = 0, ce;
  scanf("%f", &n);
  for (i = 1; i <= n; i++) {
    for (z = 1; z <= n; z++) {
      scanf("%f", &ce);
      if (z > i) {
        s = ce + s;
      }
    }
  }
  printf("%f\n", s);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
lea    0xec6(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
movss  0xeb1(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     11ed <main+0xcd>
movss  0xe91(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     11d1 <main+0xb1>
lea    0xe76(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x10(%rbp),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    11b5 <main+0x95>
movss  -0x18(%rbp),%xmm0
addss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
jmp    11ba <main+0x9a>
movss  0xe3e(%rip),%xmm0
addss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
jmp    1174 <main+0x54>
jmp    11d6 <main+0xb6>
movss  0xe22(%rip),%xmm0
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    1154 <main+0x34>
movss  -0x14(%rbp),%xmm0
lea    0xe0e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
lea    0xeda(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm1
xorps  %xmm0,%xmm0
ucomiss 0xeb8(%rip),%xmm1
jae    1160 <main+0x40>
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret
movss  0xe98(%rip),%xmm2
xorps  %xmm0,%xmm0
lea    0xe96(%rip),%r14
lea    0x14(%rsp),%rbx
movaps %xmm2,%xmm3
jmp    1189 <main+0x69>
nopl   0x0(%rax)
addss  %xmm2,%xmm3
ucomiss %xmm3,%xmm1
jb     114a <main+0x2a>
ucomiss %xmm2,%xmm1
jb     1180 <main+0x60>
movaps %xmm2,%xmm4
movss  %xmm3,0x8(%rsp)
nopw   0x0(%rax,%rax,1)
movss  %xmm4,0xc(%rsp)
movss  %xmm0,0x10(%rsp)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
movss  0xc(%rsp),%xmm4
movss  0x8(%rsp),%xmm3
movss  0xe39(%rip),%xmm0
movaps %xmm3,%xmm2
cmpltss %xmm4,%xmm2
movss  0x14(%rsp),%xmm1
andps  %xmm2,%xmm1
andnps %xmm0,%xmm2
orps   %xmm1,%xmm2
movss  0x10(%rsp),%xmm0
addss  %xmm2,%xmm0
movss  0xe0c(%rip),%xmm2
addss  %xmm2,%xmm4
movss  0x4(%rsp),%xmm1
ucomiss %xmm4,%xmm1
jae    11a0 <main+0x80>
jmp    1180 <main+0x60>

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
store i32 0, i32* %1
store float 0.000000e+00, float* %5
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
store float 1.000000e+00, float* %2
br label %8
8: ; preds = %31, %0
%9 = load float, float* %2
%10 = load float, float* %3
%11 = fcmp ole float %9, %10
br i1 %11, label %12, label %34
12: ; preds = %8
store float 1.000000e+00, float* %4
br label %13
13: ; preds = %27, %12
%14 = load float, float* %4
%15 = load float, float* %3
%16 = fcmp ole float %14, %15
br i1 %16, label %17, label %30
17: ; preds = %13
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %6)
%19 = load float, float* %4
%20 = load float, float* %2
%21 = fcmp ogt float %19, %20
br i1 %21, label %22, label %26
22: ; preds = %17
%23 = load float, float* %6
%24 = load float, float* %5
%25 = fadd float %23, %24
store float %25, float* %5
br label %26
26: ; preds = %22, %17
br label %27
27: ; preds = %26
%28 = load float, float* %4
%29 = fadd float %28, 1.000000e+00
store float %29, float* %4
br label %13
30: ; preds = %13
br label %31
31: ; preds = %30
%32 = load float, float* %2
%33 = fadd float %32, 1.000000e+00
store float %33, float* %2
br label %8
34: ; preds = %8
%35 = load float, float* %5
%36 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float %35)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = bitcast float* %1 to i8*
%4 = bitcast float* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%6 = load float, float* %1
%7 = fcmp ult float %6, 1.000000e+00
br i1 %7, label %29, label %8
8: ; preds = %0, %24
%9 = phi float [ %25, %24 ], [ %6, %0 ]
%10 = phi float [ %26, %24 ], [ 0.000000e+00, %0 ]
%11 = phi float [ %27, %24 ], [ 1.000000e+00, %0 ]
%12 = fcmp ult float %9, 1.000000e+00
br i1 %12, label %24, label %13
13: ; preds = %8, %13
%14 = phi float [ %20, %13 ], [ %10, %8 ]
%15 = phi float [ %21, %13 ], [ 1.000000e+00, %8 ]
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%17 = fcmp ogt float %15, %11
%18 = load float, float* %2
%19 = select i1 %17, float %18, float -0.000000e+00
%20 = fadd float %14, %19
%21 = fadd float %15, 1.000000e+00
%22 = load float, float* %1
%23 = fcmp ugt float %21, %22
br i1 %23, label %24, label %13
24: ; preds = %13, %8
%25 = phi float [ %9, %8 ], [ %22, %13 ]
%26 = phi float [ %10, %8 ], [ %20, %13 ]
%27 = fadd float %11, 1.000000e+00
%28 = fcmp ugt float %27, %25
br i1 %28, label %29, label %8
29: ; preds = %24, %0
%30 = phi float [ 0.000000e+00, %0 ], [ %26, %24 ]
%31 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float %30)
ret i32 0
}