#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 */
void init(size_t n, double a[(n)][(n)], double b[(n)][(n)]) {
  size_t i, j;
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      a[i][j] = 1.0;
      b[i][j] = 1.0;
    }
  }
}


x86 assembly (clang, -O0):
<init>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
movq   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x8(%rbp),%rax
jae    11bd <init+0xbd>
movq   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%rax
cmp    -0x8(%rbp),%rax
jae    11a7 <init+0xa7>
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%rdx
mov    -0x10(%rbp),%rax
imul   -0x20(%rbp),%rdx
shl    $0x3,%rdx
add    %rdx,%rax
mov    -0x28(%rbp),%rdx
movsd  0xe90(%rip),%xmm0
movsd  %xmm0,(%rax,%rdx,8)
mov    -0x18(%rbp),%rax
imul   -0x20(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    -0x28(%rbp),%rcx
movsd  0xe6f(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    113e <init+0x3e>
jmp    11ac <init+0xac>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1128 <init+0x28>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
test   %rdi,%rdi
je     1355 <init+0x255>
lea    -0x4(%rdi),%rax
mov    %rax,-0x8(%rsp)
shr    $0x2,%rax
add    $0x1,%rax
mov    %rdi,%rcx
and    $0xfffffffffffffffc,%rcx
mov    %rcx,-0x10(%rsp)
mov    %eax,%r12d
and    $0x3,%r12d
and    $0xfffffffffffffffc,%rax
mov    %rax,-0x20(%rsp)
mov    %edi,%r8d
and    $0x3,%r8d
lea    0x70(%rsi),%r10
lea    0x0(,%rdi,8),%r15
lea    0x70(%rdx),%r9
mov    %r12,-0x18(%rsp)
shl    $0x5,%r12
xor    %r13d,%r13d
movabs $0x3ff0000000000000,%rbx
movaps 0xe8c(%rip),%xmm0
mov    %rsi,%rbp
mov    %rdx,%r14
mov    %r15,-0x28(%rsp)
jmp    11a9 <init+0xa9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r13
add    %r15,%r10
add    %r15,%r9
add    %r15,%r14
add    %r15,%rbp
cmp    %rdi,%r13
je     1355 <init+0x255>
cmp    $0x4,%rdi
jae    11c0 <init+0xc0>
xor    %r11d,%r11d
jmp    12e0 <init+0x1e0>
nopw   0x0(%rax,%rax,1)
mov    %r8,%r15
mov    %r13,%rax
imul   %rdi,%rax
lea    (%rax,%rdi,1),%rcx
lea    (%rdx,%rcx,8),%r11
lea    (%rsi,%rax,8),%r8
cmp    %r11,%r8
jae    1200 <init+0x100>
lea    (%rdx,%rax,8),%rax
lea    (%rsi,%rcx,8),%rcx
cmp    %rcx,%rax
jae    1200 <init+0x100>
xor    %r11d,%r11d
mov    %r15,%r8
mov    -0x28(%rsp),%r15
jmp    12e0 <init+0x1e0>
nopl   0x0(%rax,%rax,1)
cmpq   $0xc,-0x8(%rsp)
mov    %r15,%r8
jae    1214 <init+0x114>
xor    %eax,%eax
mov    -0x28(%rsp),%r15
jmp    1288 <init+0x188>
mov    -0x20(%rsp),%rcx
xor    %eax,%eax
mov    -0x28(%rsp),%r15
movups %xmm0,-0x70(%r10,%rax,8)
movups %xmm0,-0x60(%r10,%rax,8)
movups %xmm0,-0x70(%r9,%rax,8)
movups %xmm0,-0x60(%r9,%rax,8)
movups %xmm0,-0x50(%r10,%rax,8)
movups %xmm0,-0x40(%r10,%rax,8)
movups %xmm0,-0x50(%r9,%rax,8)
movups %xmm0,-0x40(%r9,%rax,8)
movups %xmm0,-0x30(%r10,%rax,8)
movups %xmm0,-0x20(%r10,%rax,8)
movups %xmm0,-0x30(%r9,%rax,8)
movups %xmm0,-0x20(%r9,%rax,8)
movups %xmm0,-0x10(%r10,%rax,8)
movups %xmm0,(%r10,%rax,8)
movups %xmm0,-0x10(%r9,%rax,8)
movups %xmm0,(%r9,%rax,8)
add    $0x10,%rax
add    $0xfffffffffffffffc,%rcx
jne    1220 <init+0x120>
cmpq   $0x0,-0x18(%rsp)
je     12cd <init+0x1cd>
lea    (%r14,%rax,8),%r11
lea    0x0(,%rax,8),%rax
add    %rbp,%rax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movups %xmm0,(%rax,%rcx,1)
movups %xmm0,0x10(%rax,%rcx,1)
movups %xmm0,(%r11,%rcx,1)
movups %xmm0,0x10(%r11,%rcx,1)
add    $0x20,%rcx
cmp    %rcx,%r12
jne    12b0 <init+0x1b0>
mov    -0x10(%rsp),%rax
mov    %rax,%r11
cmp    %rdi,%rax
je     1190 <init+0x90>
xchg   %ax,%ax
mov    %r11,%rax
not    %rax
add    %rdi,%rax
test   %r8,%r8
je     1313 <init+0x213>
mov    %r8,%rcx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,0x0(%rbp,%r11,8)
mov    %rbx,(%r14,%r11,8)
add    $0x1,%r11
add    $0xffffffffffffffff,%rcx
jne    1300 <init+0x200>
cmp    $0x3,%rax
jb     1190 <init+0x90>
nopl   (%rax)
mov    %rbx,0x0(%rbp,%r11,8)
mov    %rbx,(%r14,%r11,8)
mov    %rbx,0x8(%rbp,%r11,8)
mov    %rbx,0x8(%r14,%r11,8)
mov    %rbx,0x10(%rbp,%r11,8)
mov    %rbx,0x10(%r14,%r11,8)
mov    %rbx,0x18(%rbp,%r11,8)
mov    %rbx,0x18(%r14,%r11,8)
add    $0x4,%r11
cmp    %r11,%rdi
jne    1320 <init+0x220>
jmp    1190 <init+0x90>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @init(i64 %0, double* %1, double* %2) {
%4 = alloca i64
%5 = alloca double*
%6 = alloca double*
%7 = alloca i64
%8 = alloca i64
store i64 %0, i64* %4
store double* %1, double** %5
store double* %2, double** %6
%9 = load i64, i64* %4
%10 = load i64, i64* %4
%11 = load i64, i64* %4
%12 = load i64, i64* %4
store i64 0, i64* %7
br label %13
13: ; preds = %39, %3
%14 = load i64, i64* %7
%15 = load i64, i64* %4
%16 = icmp ult i64 %14, %15
br i1 %16, label %17, label %42
17: ; preds = %13
store i64 0, i64* %8
br label %18
18: ; preds = %35, %17
%19 = load i64, i64* %8
%20 = load i64, i64* %4
%21 = icmp ult i64 %19, %20
br i1 %21, label %22, label %38
22: ; preds = %18
%23 = load double*, double** %5
%24 = load i64, i64* %7
%25 = mul nsw i64 %24, %10
%26 = getelementptr inbounds double, double* %23, i64 %25
%27 = load i64, i64* %8
%28 = getelementptr inbounds double, double* %26, i64 %27
store double 1.000000e+00, double* %28
%29 = load double*, double** %6
%30 = load i64, i64* %7
%31 = mul nsw i64 %30, %12
%32 = getelementptr inbounds double, double* %29, i64 %31
%33 = load i64, i64* %8
%34 = getelementptr inbounds double, double* %32, i64 %33
store double 1.000000e+00, double* %34
br label %35
35: ; preds = %22
%36 = load i64, i64* %8
%37 = add i64 %36, 1
store i64 %37, i64* %8
br label %18
38: ; preds = %18
br label %39
39: ; preds = %38
%40 = load i64, i64* %7
%41 = add i64 %40, 1
store i64 %41, i64* %7
br label %13
42: ; preds = %13
ret void
}

LLVM IR (-O2):
define void @init(i64 %0, double* nocapture writeonly %1, double* nocapture writeonly %2) {
%4 = icmp eq i64 %0, 0
br i1 %4, label %125, label %5
5: ; preds = %3
%6 = add i64 %0, -4
%7 = lshr i64 %6, 2
%8 = add nuw nsw i64 %7, 1
%9 = icmp ult i64 %0, 4
%10 = and i64 %0, -4
%11 = and i64 %8, 3
%12 = icmp ult i64 %6, 12
%13 = and i64 %8, 9223372036854775804
%14 = icmp eq i64 %11, 0
%15 = icmp eq i64 %10, %0
%16 = and i64 %0, 3
%17 = icmp eq i64 %16, 0
br label %18
18: ; preds = %5, %122
%19 = phi i64 [ %123, %122 ], [ 0, %5 ]
%20 = mul i64 %19, %0
%21 = add i64 %20, %0
%22 = mul nsw i64 %19, %0
%23 = getelementptr inbounds double, double* %1, i64 %22
%24 = getelementptr inbounds double, double* %2, i64 %22
br i1 %9, label %92, label %25
25: ; preds = %18
%26 = getelementptr double, double* %2, i64 %21
%27 = getelementptr double, double* %2, i64 %20
%28 = getelementptr double, double* %1, i64 %21
%29 = getelementptr double, double* %1, i64 %20
%30 = icmp ult double* %29, %26
%31 = icmp ult double* %27, %28
%32 = and i1 %30, %31
br i1 %32, label %92, label %33
33: ; preds = %25
br i1 %12, label %75, label %34
34: ; preds = %33, %34
%35 = phi i64 [ %72, %34 ], [ 0, %33 ]
%36 = phi i64 [ %73, %34 ], [ 0, %33 ]
%37 = getelementptr inbounds double, double* %23, i64 %35
%38 = bitcast double* %37 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %38
%39 = getelementptr inbounds double, double* %37, i64 2
%40 = bitcast double* %39 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %40
%41 = getelementptr inbounds double, double* %24, i64 %35
%42 = bitcast double* %41 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %42
%43 = getelementptr inbounds double, double* %41, i64 2
%44 = bitcast double* %43 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %44
%45 = or i64 %35, 4
%46 = getelementptr inbounds double, double* %23, i64 %45
%47 = bitcast double* %46 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %47
%48 = getelementptr inbounds double, double* %46, i64 2
%49 = bitcast double* %48 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %49
%50 = getelementptr inbounds double, double* %24, i64 %45
%51 = bitcast double* %50 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %51
%52 = getelementptr inbounds double, double* %50, i64 2
%53 = bitcast double* %52 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %53
%54 = or i64 %35, 8
%55 = getelementptr inbounds double, double* %23, i64 %54
%56 = bitcast double* %55 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %56
%57 = getelementptr inbounds double, double* %55, i64 2
%58 = bitcast double* %57 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %58
%59 = getelementptr inbounds double, double* %24, i64 %54
%60 = bitcast double* %59 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %60
%61 = getelementptr inbounds double, double* %59, i64 2
%62 = bitcast double* %61 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %62
%63 = or i64 %35, 12
%64 = getelementptr inbounds double, double* %23, i64 %63
%65 = bitcast double* %64 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %65
%66 = getelementptr inbounds double, double* %64, i64 2
%67 = bitcast double* %66 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %67
%68 = getelementptr inbounds double, double* %24, i64 %63
%69 = bitcast double* %68 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %69
%70 = getelementptr inbounds double, double* %68, i64 2
%71 = bitcast double* %70 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %71
%72 = add nuw i64 %35, 16
%73 = add nuw i64 %36, 4
%74 = icmp eq i64 %73, %13
br i1 %74, label %75, label %34
75: ; preds = %34, %33
%76 = phi i64 [ 0, %33 ], [ %72, %34 ]
br i1 %14, label %91, label %77
77: ; preds = %75, %77
%78 = phi i64 [ %88, %77 ], [ %76, %75 ]
%79 = phi i64 [ %89, %77 ], [ 0, %75 ]
%80 = getelementptr inbounds double, double* %23, i64 %78
%81 = bitcast double* %80 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %81
%82 = getelementptr inbounds double, double* %80, i64 2
%83 = bitcast double* %82 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %83
%84 = getelementptr inbounds double, double* %24, i64 %78
%85 = bitcast double* %84 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %85
%86 = getelementptr inbounds double, double* %84, i64 2
%87 = bitcast double* %86 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %87
%88 = add nuw i64 %78, 4
%89 = add i64 %79, 1
%90 = icmp eq i64 %89, %11
br i1 %90, label %91, label %77
91: ; preds = %77, %75
br i1 %15, label %122, label %92
92: ; preds = %25, %18, %91
%93 = phi i64 [ 0, %25 ], [ 0, %18 ], [ %10, %91 ]
%94 = xor i64 %93, -1
%95 = add i64 %94, %0
br i1 %17, label %104, label %96
96: ; preds = %92, %96
%97 = phi i64 [ %101, %96 ], [ %93, %92 ]
%98 = phi i64 [ %102, %96 ], [ 0, %92 ]
%99 = getelementptr inbounds double, double* %23, i64 %97
store double 1.000000e+00, double* %99
%100 = getelementptr inbounds double, double* %24, i64 %97
store double 1.000000e+00, double* %100
%101 = add nuw i64 %97, 1
%102 = add i64 %98, 1
%103 = icmp eq i64 %102, %16
br i1 %103, label %104, label %96
104: ; preds = %96, %92
%105 = phi i64 [ %93, %92 ], [ %101, %96 ]
%106 = icmp ult i64 %95, 3
br i1 %106, label %122, label %107
107: ; preds = %104, %107
%108 = phi i64 [ %120, %107 ], [ %105, %104 ]
%109 = getelementptr inbounds double, double* %23, i64 %108
store double 1.000000e+00, double* %109
%110 = getelementptr inbounds double, double* %24, i64 %108
store double 1.000000e+00, double* %110
%111 = add nuw i64 %108, 1
%112 = getelementptr inbounds double, double* %23, i64 %111
store double 1.000000e+00, double* %112
%113 = getelementptr inbounds double, double* %24, i64 %111
store double 1.000000e+00, double* %113
%114 = add nuw i64 %108, 2
%115 = getelementptr inbounds double, double* %23, i64 %114
store double 1.000000e+00, double* %115
%116 = getelementptr inbounds double, double* %24, i64 %114
store double 1.000000e+00, double* %116
%117 = add nuw i64 %108, 3
%118 = getelementptr inbounds double, double* %23, i64 %117
store double 1.000000e+00, double* %118
%119 = getelementptr inbounds double, double* %24, i64 %117
store double 1.000000e+00, double* %119
%120 = add nuw i64 %108, 4
%121 = icmp eq i64 %120, %0
br i1 %121, label %122, label %107
122: ; preds = %104, %107, %91
%123 = add nuw i64 %19, 1
%124 = icmp eq i64 %123, %0
br i1 %124, label %125, label %18
125: ; preds = %122, %3
ret void
}