#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 */
typedef int int8_t;

/* Variables and functions */
void f3x3matrixAeqMinusA(float A[][3]) {
  float *pAij;
  int8_t i, j;
  for (i = 0; i < 3; i++) {
    pAij = A[i];
    for (j = 0; j < 3; j++) {
      *pAij = -*pAij;
      pAij++;
    }
  }
}


x86 assembly (clang, -O0):
<f3x3matrixAeqMinusA>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    1187 <f3x3matrixAeqMinusA+0x87>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0x3,-0x18(%rbp)
jge    1174 <f3x3matrixAeqMinusA+0x74>
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1133 <f3x3matrixAeqMinusA+0x33>
jmp    1179 <f3x3matrixAeqMinusA+0x79>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    110f <f3x3matrixAeqMinusA+0xf>
pop    %rbp
ret

x86 assembly (clang, -O2):
<f3x3matrixAeqMinusA>:
movaps 0xef9(%rip),%xmm0
movups (%rdi),%xmm1
movups 0x10(%rdi),%xmm2
xorps  %xmm0,%xmm1
movups %xmm1,(%rdi)
xorps  %xmm0,%xmm2
movups %xmm2,0x10(%rdi)
movss  0x20(%rdi),%xmm1
xorps  %xmm0,%xmm1
movss  %xmm1,0x20(%rdi)
ret

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

LLVM IR (-O2):
define void @f3x3matrixAeqMinusA([3 x float]* nocapture %0) {
%2 = bitcast [3 x float]* %0 to <4 x float>*
%3 = load <4 x float>, <4 x float>* %2
%4 = fneg <4 x float> %3
%5 = bitcast [3 x float]* %0 to <4 x float>*
store <4 x float> %4, <4 x float>* %5
%6 = getelementptr inbounds [3 x float], [3 x float]* %0, i64 1, i64 1
%7 = bitcast float* %6 to <4 x float>*
%8 = load <4 x float>, <4 x float>* %7
%9 = fneg <4 x float> %8
%10 = bitcast float* %6 to <4 x float>*
store <4 x float> %9, <4 x float>* %10
%11 = getelementptr inbounds [3 x float], [3 x float]* %0, i64 2, i64 2
%12 = load float, float* %11
%13 = fneg float %12
store float %13, float* %11
ret void
}