void Init_Pheromone_Information_Function(double (*pheromone)[100 + 1]) {
  int i, j;
  for (i = 0; i < 100 + 1; i++) {
    for (j = 0; j < 100 + 1; j++) {
      if (i != j) {
        pheromone[i][j] = 0;
      }
    }
  }
  return;
}


x86 assembly (clang, -O0):
<Init_Pheromone_Information_Function>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x65,-0xc(%rbp)
jge    117a <Init_Pheromone_Information_Function+0x7a>
movl   $0x0,-0x10(%rbp)
cmpl   $0x65,-0x10(%rbp)
jge    1167 <Init_Pheromone_Information_Function+0x67>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
je     1154 <Init_Pheromone_Information_Function+0x54>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    1159 <Init_Pheromone_Information_Function+0x59>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1120 <Init_Pheromone_Information_Function+0x20>
jmp    116c <Init_Pheromone_Information_Function+0x6c>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <Init_Pheromone_Information_Function+0xf>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Init_Pheromone_Information_Function>:
add    $0x8,%rdi
xor    %eax,%eax
jmp    1121 <Init_Pheromone_Information_Function+0x21>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rax
add    $0x328,%rdi
cmp    $0x65,%rax
je     115e <Init_Pheromone_Information_Function+0x5e>
xor    %ecx,%ecx
jmp    1137 <Init_Pheromone_Information_Function+0x37>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%rdx
mov    %rdx,%rcx
cmp    %rcx,%rax
je     1145 <Init_Pheromone_Information_Function+0x45>
movq   $0x0,-0x8(%rdi,%rcx,8)
lea    0x1(%rcx),%rdx
cmp    $0x65,%rdx
je     1110 <Init_Pheromone_Information_Function+0x10>
cmp    %rdx,%rax
je     1130 <Init_Pheromone_Information_Function+0x30>
movq   $0x0,(%rdi,%rcx,8)
jmp    1130 <Init_Pheromone_Information_Function+0x30>
ret

LLVM IR (-O0):
define void @Init_Pheromone_Information_Function([101 x double]* %0) {
%2 = alloca [101 x double]*
%3 = alloca i32
%4 = alloca i32
store [101 x double]* %0, [101 x double]** %2
store i32 0, i32* %3
br label %5
5: ; preds = %29, %1
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 101
br i1 %7, label %8, label %32
8: ; preds = %5
store i32 0, i32* %4
br label %9
9: ; preds = %25, %8
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 101
br i1 %11, label %12, label %28
12: ; preds = %9
%13 = load i32, i32* %3
%14 = load i32, i32* %4
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %24
16: ; preds = %12
%17 = load [101 x double]*, [101 x double]** %2
%18 = load i32, i32* %3
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [101 x double], [101 x double]* %17, i64 %19
%21 = load i32, i32* %4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [101 x double], [101 x double]* %20, i64 0, i64 %22
store double 0.000000e+00, double* %23
br label %24
24: ; preds = %16, %12
br label %25
25: ; preds = %24
%26 = load i32, i32* %4
%27 = add nsw i32 %26, 1
store i32 %27, i32* %4
br label %9
28: ; preds = %9
br label %29
29: ; preds = %28
%30 = load i32, i32* %3
%31 = add nsw i32 %30, 1
store i32 %31, i32* %3
br label %5
32: ; preds = %5
ret void
}

LLVM IR (-O2):
define void @Init_Pheromone_Information_Function([101 x double]* nocapture writeonly %0) {
br label %2
2: ; preds = %1, %18
%3 = phi i64 [ 0, %1 ], [ %19, %18 ]
br label %4
4: ; preds = %16, %2
%5 = phi i64 [ 0, %2 ], [ %17, %16 ]
%6 = icmp eq i64 %3, %5
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = getelementptr inbounds [101 x double], [101 x double]* %0, i64 %3, i64 %5
store double 0.000000e+00, double* %8
br label %9
9: ; preds = %4, %7
%10 = or i64 %5, 1
%11 = icmp eq i64 %10, 101
br i1 %11, label %18, label %12
12: ; preds = %9
%13 = icmp eq i64 %3, %10
br i1 %13, label %16, label %14
14: ; preds = %12
%15 = getelementptr inbounds [101 x double], [101 x double]* %0, i64 %3, i64 %10
store double 0.000000e+00, double* %15
br label %16
16: ; preds = %14, %12
%17 = add nuw nsw i64 %5, 2
br label %4
18: ; preds = %9
%19 = add nuw nsw i64 %3, 1
%20 = icmp eq i64 %19, 101
br i1 %20, label %21, label %2
21: ; preds = %18
ret void
}