void init_pts(line, size) double *line[];
int size;
{
  int mid;
  mid = size / 2;
  line[0][size] = pgauss();
  line[0][mid] = pgauss();
  line[0][0] = pgauss();
  line[size][size] = pgauss();
  line[size][mid] = pgauss();
  line[size][0] = pgauss();
  line[mid][size] = pgauss();
  line[mid][mid] = pgauss();
  line[mid][0] = pgauss();
}


x86 assembly (clang, -O0):
<init_pts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1030 <pgauss@plt>
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movslq -0xc(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    $0x0,%al
call   1030 <pgauss@plt>
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movslq -0x10(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    $0x0,%al
call   1030 <pgauss@plt>
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsd  %xmm0,(%rax)
mov    $0x0,%al
call   1030 <pgauss@plt>
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    $0x0,%al
call   1030 <pgauss@plt>
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    $0x0,%al
call   1030 <pgauss@plt>
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,(%rax)
mov    $0x0,%al
call   1030 <pgauss@plt>
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    $0x0,%al
call   1030 <pgauss@plt>
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    $0x0,%al
call   1030 <pgauss@plt>
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_pts>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %rdi,%r15
mov    %esi,%ebp
shr    $0x1f,%ebp
add    %esi,%ebp
sar    %ebp
xor    %eax,%eax
call   1030 <pgauss@plt>
cvtsi2sd %eax,%xmm0
mov    (%r15),%rax
movslq %ebx,%rbx
movsd  %xmm0,(%rax,%rbx,8)
xor    %eax,%eax
call   1030 <pgauss@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    (%r15),%rax
movslq %ebp,%r14
movsd  %xmm0,(%rax,%r14,8)
xor    %eax,%eax
call   1030 <pgauss@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    (%r15),%rax
movsd  %xmm0,(%rax)
xor    %eax,%eax
call   1030 <pgauss@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    (%r15,%rbx,8),%rax
movsd  %xmm0,(%rax,%rbx,8)
xor    %eax,%eax
call   1030 <pgauss@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    (%r15,%rbx,8),%rax
movsd  %xmm0,(%rax,%r14,8)
xor    %eax,%eax
call   1030 <pgauss@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    (%r15,%rbx,8),%rax
movsd  %xmm0,(%rax)
xor    %eax,%eax
call   1030 <pgauss@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    (%r15,%r14,8),%rax
movsd  %xmm0,(%rax,%rbx,8)
xor    %eax,%eax
call   1030 <pgauss@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    (%r15,%r14,8),%rax
movsd  %xmm0,(%rax,%r14,8)
xor    %eax,%eax
call   1030 <pgauss@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    (%r15,%r14,8),%rax
movsd  %xmm0,(%rax)
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @init_pts(double** %0, i32 %1) {
%3 = alloca double**
%4 = alloca i32
%5 = alloca i32
store double** %0, double*** %3
store i32 %1, i32* %4
%6 = load i32, i32* %4
%7 = sdiv i32 %6, 2
store i32 %7, i32* %5
%8 = call i32 (...) @pgauss()
%9 = sitofp i32 %8 to double
%10 = load double**, double*** %3
%11 = getelementptr inbounds double*, double** %10, i64 0
%12 = load double*, double** %11
%13 = load i32, i32* %4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds double, double* %12, i64 %14
store double %9, double* %15
%16 = call i32 (...) @pgauss()
%17 = sitofp i32 %16 to double
%18 = load double**, double*** %3
%19 = getelementptr inbounds double*, double** %18, i64 0
%20 = load double*, double** %19
%21 = load i32, i32* %5
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, double* %20, i64 %22
store double %17, double* %23
%24 = call i32 (...) @pgauss()
%25 = sitofp i32 %24 to double
%26 = load double**, double*** %3
%27 = getelementptr inbounds double*, double** %26, i64 0
%28 = load double*, double** %27
%29 = getelementptr inbounds double, double* %28, i64 0
store double %25, double* %29
%30 = call i32 (...) @pgauss()
%31 = sitofp i32 %30 to double
%32 = load double**, double*** %3
%33 = load i32, i32* %4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double*, double** %32, i64 %34
%36 = load double*, double** %35
%37 = load i32, i32* %4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, double* %36, i64 %38
store double %31, double* %39
%40 = call i32 (...) @pgauss()
%41 = sitofp i32 %40 to double
%42 = load double**, double*** %3
%43 = load i32, i32* %4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double*, double** %42, i64 %44
%46 = load double*, double** %45
%47 = load i32, i32* %5
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, double* %46, i64 %48
store double %41, double* %49
%50 = call i32 (...) @pgauss()
%51 = sitofp i32 %50 to double
%52 = load double**, double*** %3
%53 = load i32, i32* %4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double*, double** %52, i64 %54
%56 = load double*, double** %55
%57 = getelementptr inbounds double, double* %56, i64 0
store double %51, double* %57
%58 = call i32 (...) @pgauss()
%59 = sitofp i32 %58 to double
%60 = load double**, double*** %3
%61 = load i32, i32* %5
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double*, double** %60, i64 %62
%64 = load double*, double** %63
%65 = load i32, i32* %4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, double* %64, i64 %66
store double %59, double* %67
%68 = call i32 (...) @pgauss()
%69 = sitofp i32 %68 to double
%70 = load double**, double*** %3
%71 = load i32, i32* %5
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double*, double** %70, i64 %72
%74 = load double*, double** %73
%75 = load i32, i32* %5
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, double* %74, i64 %76
store double %69, double* %77
%78 = call i32 (...) @pgauss()
%79 = sitofp i32 %78 to double
%80 = load double**, double*** %3
%81 = load i32, i32* %5
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double*, double** %80, i64 %82
%84 = load double*, double** %83
%85 = getelementptr inbounds double, double* %84, i64 0
store double %79, double* %85
ret void
}

LLVM IR (-O2):
define void @init_pts(double** nocapture %0, i32 %1) {
%3 = sdiv i32 %1, 2
%4 = tail call i32 (...) @pgauss()
%5 = sitofp i32 %4 to double
%6 = load double*, double** %0
%7 = sext i32 %1 to i64
%8 = getelementptr inbounds double, double* %6, i64 %7
store double %5, double* %8
%9 = tail call i32 (...) @pgauss()
%10 = sitofp i32 %9 to double
%11 = load double*, double** %0
%12 = sext i32 %3 to i64
%13 = getelementptr inbounds double, double* %11, i64 %12
store double %10, double* %13
%14 = tail call i32 (...) @pgauss()
%15 = sitofp i32 %14 to double
%16 = load double*, double** %0
store double %15, double* %16
%17 = tail call i32 (...) @pgauss()
%18 = sitofp i32 %17 to double
%19 = getelementptr inbounds double*, double** %0, i64 %7
%20 = load double*, double** %19
%21 = getelementptr inbounds double, double* %20, i64 %7
store double %18, double* %21
%22 = tail call i32 (...) @pgauss()
%23 = sitofp i32 %22 to double
%24 = load double*, double** %19
%25 = getelementptr inbounds double, double* %24, i64 %12
store double %23, double* %25
%26 = tail call i32 (...) @pgauss()
%27 = sitofp i32 %26 to double
%28 = load double*, double** %19
store double %27, double* %28
%29 = tail call i32 (...) @pgauss()
%30 = sitofp i32 %29 to double
%31 = getelementptr inbounds double*, double** %0, i64 %12
%32 = load double*, double** %31
%33 = getelementptr inbounds double, double* %32, i64 %7
store double %30, double* %33
%34 = tail call i32 (...) @pgauss()
%35 = sitofp i32 %34 to double
%36 = load double*, double** %31
%37 = getelementptr inbounds double, double* %36, i64 %12
store double %35, double* %37
%38 = tail call i32 (...) @pgauss()
%39 = sitofp i32 %38 to double
%40 = load double*, double** %31
store double %39, double* %40
ret void
}