#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 *, ...);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float matris[3][3] = {};
  printf("3x3'luk matrisin elementlerini sirayla giriniz...\n");
  for (int i = 1; i < 4; i++) {
    for (int k = 1; k < 4; k++) {
      printf("Matris elementi: %d,%d giriniz: ", i, k);
      scanf("%f", &matris[i - 1][k - 1]);
    }
  }
  printf("\n");
  float a = matris[0][0];
  float b = matris[0][1];
  float c = matris[0][2];
  float d = matris[1][0];
  float e = matris[1][1];
  float f = matris[1][2];
  float g = matris[2][0];
  float h = matris[2][1];
  float k = matris[2][2];
  float det = (a * e * k) + (d * h * c) + (g * b * f) - (a * h * f) -
              (g * e * c) - (d * b * k);
  printf("Determinant: %.0f\n\n---Matrisin Tersi--- \n\n", det);
  if (det == 0) {
    printf("Matrisin determinanti 0'a esit oldugundan dolayi tersi yoktur.\n");
    return 0;
  }
  float a1 = ((e * k) - (f * h)) * 1 / det;
  float b1 = ((c * h) - (b * k)) * 1 / det;
  float c1 = ((b * f) - (c * e)) * 1 / det;
  float d1 = ((f * g) - (d * k)) * 1 / det;
  float e1 = ((a * k) - (c * g)) * 1 / det;
  float f1 = ((c * d) - (a * f)) * 1 / det;
  float g1 = ((d * h) - (e * g)) * 1 / det;
  float h1 = ((b * g) - (a * h)) * 1 / det;
  float k1 = ((a * e) - (b * d)) * 1 / det;
  float ters_matris[3][3] = {{a1, b1, c1}, {d1, e1, f1}, {g1, h1, k1}};
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      printf("%.03f\t\t", ters_matris[i][j]);
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x24,%edx
call   1040 <memset@plt>
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x34(%rbp)
cmpl   $0x4,-0x34(%rbp)
jge    11e5 <main+0xb5>
movl   $0x1,-0x38(%rbp)
cmpl   $0x4,-0x38(%rbp)
jge    11d2 <main+0xa2>
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%edx
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
sub    $0x1,%eax
cltq
lea    -0x30(%rbp),%rsi
imul   $0xc,%rax,%rax
add    %rax,%rsi
mov    -0x38(%rbp),%eax
sub    $0x1,%eax
cltq
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe99(%rip),%rdi
call   1050 <scanf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1178 <main+0x48>
jmp    11d7 <main+0xa7>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1167 <main+0x37>
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x30(%rbp),%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  -0x2c(%rbp),%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x28(%rbp),%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x24(%rbp),%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x50(%rbp)
movss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x58(%rbp)
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x5c(%rbp)
movss  -0x3c(%rbp),%xmm0
mulss  -0x4c(%rbp),%xmm0
movss  -0x5c(%rbp),%xmm2
movss  -0x48(%rbp),%xmm1
mulss  -0x58(%rbp),%xmm1
mulss  -0x44(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x54(%rbp),%xmm1
mulss  -0x40(%rbp),%xmm1
movss  -0x50(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x3c(%rbp),%xmm0
mulss  -0x58(%rbp),%xmm0
movss  -0x50(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x54(%rbp),%xmm1
mulss  -0x4c(%rbp),%xmm1
movss  -0x44(%rbp),%xmm2
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x48(%rbp),%xmm0
mulss  -0x40(%rbp),%xmm0
movss  -0x5c(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x60(%rbp)
movss  -0x60(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd50(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x60(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1343 <main+0x213>
jp     1343 <main+0x213>
lea    0xd56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1693 <main+0x563>
movss  -0x4c(%rbp),%xmm0
movss  -0x5c(%rbp),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  -0x58(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xc8c(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  -0x60(%rbp),%xmm0
movss  %xmm0,-0x64(%rbp)
movss  -0x44(%rbp),%xmm0
movss  -0x58(%rbp),%xmm2
movss  -0x40(%rbp),%xmm1
mulss  -0x5c(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xc4d(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  -0x60(%rbp),%xmm0
movss  %xmm0,-0x68(%rbp)
movss  -0x40(%rbp),%xmm0
movss  -0x50(%rbp),%xmm2
movss  -0x44(%rbp),%xmm1
mulss  -0x4c(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xc0e(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  -0x60(%rbp),%xmm0
movss  %xmm0,-0x6c(%rbp)
movss  -0x50(%rbp),%xmm0
movss  -0x54(%rbp),%xmm2
movss  -0x48(%rbp),%xmm1
mulss  -0x5c(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xbcf(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  -0x60(%rbp),%xmm0
movss  %xmm0,-0x70(%rbp)
movss  -0x3c(%rbp),%xmm0
movss  -0x5c(%rbp),%xmm2
movss  -0x44(%rbp),%xmm1
mulss  -0x54(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xb90(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  -0x60(%rbp),%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0x44(%rbp),%xmm0
movss  -0x48(%rbp),%xmm2
movss  -0x3c(%rbp),%xmm1
mulss  -0x50(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xb51(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  -0x60(%rbp),%xmm0
movss  %xmm0,-0x78(%rbp)
movss  -0x48(%rbp),%xmm0
movss  -0x58(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm1
mulss  -0x54(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xb12(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  -0x60(%rbp),%xmm0
movss  %xmm0,-0x7c(%rbp)
movss  -0x40(%rbp),%xmm0
movss  -0x54(%rbp),%xmm2
movss  -0x3c(%rbp),%xmm1
mulss  -0x58(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xad3(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  -0x60(%rbp),%xmm0
movss  %xmm0,-0x80(%rbp)
movss  -0x3c(%rbp),%xmm0
movss  -0x4c(%rbp),%xmm2
movss  -0x40(%rbp),%xmm1
mulss  -0x48(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xa94(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  -0x60(%rbp),%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  -0x64(%rbp),%xmm0
movss  %xmm0,-0xb0(%rbp)
ff
movss  -0x68(%rbp),%xmm0
movss  %xmm0,-0xac(%rbp)
ff
movss  -0x6c(%rbp),%xmm0
movss  %xmm0,-0xa8(%rbp)
ff
movss  -0x70(%rbp),%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
movss  -0x74(%rbp),%xmm0
movss  %xmm0,-0xa0(%rbp)
ff
movss  -0x78(%rbp),%xmm0
movss  %xmm0,-0x9c(%rbp)
ff
movss  -0x7c(%rbp),%xmm0
movss  %xmm0,-0x98(%rbp)
ff
movss  -0x80(%rbp),%xmm0
movss  %xmm0,-0x94(%rbp)
ff
movss  -0x84(%rbp),%xmm0
ff
movss  %xmm0,-0x90(%rbp)
ff
movl   $0x0,-0xb4(%rbp)
cmpl   $0x3,-0xb4(%rbp)
jge    168c <main+0x55c>
movl   $0x0,-0xb8(%rbp)
cmpl   $0x3,-0xb8(%rbp)
jge    166a <main+0x53a>
movslq -0xb4(%rbp),%rcx
lea    -0xb0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0xb8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xa77(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0xb8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb8(%rbp)
jmp    1616 <main+0x4e6>
lea    0xa13(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
jmp    15ff <main+0x4cf>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xd8,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movl   $0x0,0x30(%rsp)
lea    0x30(%rsp),%r14
lea    0x20(%rsp),%r12
lea    0xef3(%rip),%rdi
call   1040 <puts@plt>
lea    0xe90(%rip),%r15
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe96(%rip),%rbx
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x3,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r15,%rdi
mov    $0x2,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r15,%rdi
mov    $0x2,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1060 <scanf@plt>
mov    %r15,%rdi
mov    $0x2,%esi
mov    $0x3,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r15,%rdi
mov    $0x3,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x28(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r15,%rdi
mov    $0x3,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x2c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r15,%rdi
mov    $0x3,%esi
mov    $0x3,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1060 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0x10(%rsp),%xmm4
movss  0x14(%rsp),%xmm8
movss  0x18(%rsp),%xmm11
movss  0x1c(%rsp),%xmm9
movss  0x20(%rsp),%xmm3
movss  0x24(%rsp),%xmm7
movss  0x28(%rsp),%xmm5
movss  0x2c(%rsp),%xmm6
movss  0x30(%rsp),%xmm10
movaps %xmm4,%xmm1
mulss  %xmm3,%xmm1
movaps %xmm9,%xmm2
mulss  %xmm6,%xmm2
movaps %xmm11,%xmm0
movaps %xmm2,0x70(%rsp)
mulss  %xmm2,%xmm0
movaps %xmm1,0x80(%rsp)
mulss  %xmm10,%xmm1
addss  %xmm0,%xmm1
movaps %xmm8,%xmm0
mulss  %xmm5,%xmm0
movss  %xmm0,0xc(%rsp)
mulss  %xmm7,%xmm0
addss  %xmm1,%xmm0
movaps 0xcc6(%rip),%xmm2
movaps %xmm4,0x50(%rsp)
xorps  %xmm2,%xmm4
movss  %xmm6,0x38(%rsp)
movaps %xmm6,%xmm1
movaps %xmm4,0xb0(%rsp)
mulss  %xmm4,%xmm1
movss  %xmm1,0x44(%rsp)
movss  %xmm7,(%rsp)
mulss  %xmm7,%xmm1
addss  %xmm0,%xmm1
movaps %xmm5,0xc0(%rsp)
movaps %xmm5,%xmm0
xorps  %xmm2,%xmm0
movss  %xmm3,0x40(%rsp)
mulss  %xmm3,%xmm0
movaps %xmm0,0xa0(%rsp)
movss  %xmm11,0x4(%rsp)
mulss  %xmm11,%xmm0
addss  %xmm1,%xmm0
movaps %xmm9,0x60(%rsp)
xorps  %xmm9,%xmm2
movss  %xmm8,0x8(%rsp)
movaps %xmm2,0x90(%rsp)
mulss  %xmm2,%xmm8
movss  %xmm8,0x3c(%rsp)
movss  %xmm10,0x48(%rsp)
mulss  %xmm10,%xmm8
addss  %xmm0,%xmm8
movss  %xmm8,0x4c(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm8,%xmm0
lea    0xc4e(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x4c(%rsp),%xmm6
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm6
jne    140e <main+0x2ce>
jp     140e <main+0x2ce>
lea    0xc95(%rip),%rdi
call   1040 <puts@plt>
jmp    1612 <main+0x4d2>
movss  0x4(%rsp),%xmm8
movaps %xmm8,%xmm0
movss  0x38(%rsp),%xmm1
mulss  %xmm1,%xmm0
movaps %xmm0,%xmm7
movss  (%rsp),%xmm3
mulss  %xmm3,%xmm1
movss  0x40(%rsp),%xmm5
movaps %xmm5,%xmm0
movss  0x48(%rsp),%xmm4
mulss  %xmm4,%xmm0
subss  %xmm1,%xmm0
movaps %xmm4,%xmm1
movss  0x8(%rsp),%xmm2
mulss  %xmm2,%xmm1
subss  %xmm1,%xmm7
movaps %xmm7,%xmm9
mulss  %xmm8,%xmm5
mulss  %xmm3,%xmm2
subss  %xmm5,%xmm2
movaps %xmm2,%xmm10
movaps 0x90(%rsp),%xmm5
mulss  %xmm4,%xmm5
movaps %xmm3,%xmm2
movaps 0xc0(%rsp),%xmm1
mulss  %xmm1,%xmm2
addss  %xmm5,%xmm2
movaps %xmm2,%xmm5
movaps 0x50(%rsp),%xmm2
mulss  %xmm4,%xmm2
mulss  %xmm8,%xmm1
subss  %xmm1,%xmm2
movaps %xmm2,%xmm4
movaps 0xb0(%rsp),%xmm1
mulss  %xmm3,%xmm1
movaps 0x60(%rsp),%xmm2
mulss  %xmm8,%xmm2
addss  %xmm1,%xmm2
movaps %xmm2,%xmm7
movaps 0x70(%rsp),%xmm1
addss  0xa0(%rsp),%xmm1
movaps %xmm1,%xmm3
movss  0xc(%rsp),%xmm2
addss  0x44(%rsp),%xmm2
movaps 0x80(%rsp),%xmm1
addss  0x3c(%rsp),%xmm1
divss  %xmm6,%xmm0
divss  %xmm6,%xmm9
movss  %xmm9,(%rsp)
divss  %xmm6,%xmm10
movss  %xmm10,0x8(%rsp)
divss  %xmm6,%xmm5
movss  %xmm5,0x4(%rsp)
divss  %xmm6,%xmm4
movaps %xmm4,0x50(%rsp)
divss  %xmm6,%xmm7
movaps %xmm7,0x60(%rsp)
divss  %xmm6,%xmm3
movaps %xmm3,0x70(%rsp)
divss  %xmm6,%xmm2
movss  %xmm2,0xc(%rsp)
divss  %xmm6,%xmm1
movaps %xmm1,0x80(%rsp)
cvtss2sd %xmm0,%xmm0
lea    0xb13(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movaps 0x50(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movaps 0x60(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movaps 0x70(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movaps 0x80(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [51 x i8] c"3x3'luk matrisin elementlerini sirayla giriniz...\0A\00"
@.str.1 = [33 x i8] c"Matris elementi: %d,%d giriniz: \00"
@.str.2 = [3 x i8] c"%f\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [43 x i8] c"Determinant: %.0f\0A\0A---Matrisin Tersi--- \0A\0A\00"
@.str.5 = [64 x i8] c"Matrisin determinanti 0'a esit oldugundan dolayi tersi yoktur.\0A\00"
@.str.6 = [8 x i8] c"%.03f\09\09\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x [3 x float]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca float
%21 = alloca float
%22 = alloca float
%23 = alloca float
%24 = alloca [3 x [3 x float]]
%25 = alloca i32
%26 = alloca i32
store i32 0, i32* %1
%27 = bitcast [3 x [3 x float]]* %2 to i8*
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %29
29: ; preds = %53, %0
%30 = load i32, i32* %3
%31 = icmp slt i32 %30, 4
br i1 %31, label %32, label %56
32: ; preds = %29
store i32 1, i32* %4
br label %33
33: ; preds = %49, %32
%34 = load i32, i32* %4
%35 = icmp slt i32 %34, 4
br i1 %35, label %36, label %52
36: ; preds = %33
%37 = load i32, i32* %3
%38 = load i32, i32* %4
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %37, i32 %38)
%40 = load i32, i32* %3
%41 = sub nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %2, i64 0, i64 %42
%44 = load i32, i32* %4
%45 = sub nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [3 x float], [3 x float]* %43, i64 0, i64 %46
%48 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %47)
br label %49
49: ; preds = %36
%50 = load i32, i32* %4
%51 = add nsw i32 %50, 1
store i32 %51, i32* %4
br label %33
52: ; preds = %33
br label %53
53: ; preds = %52
%54 = load i32, i32* %3
%55 = add nsw i32 %54, 1
store i32 %55, i32* %3
br label %29
56: ; preds = %29
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%58 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %2, i64 0, i64 0
%59 = getelementptr inbounds [3 x float], [3 x float]* %58, i64 0, i64 0
%60 = load float, float* %59
store float %60, float* %5
%61 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %2, i64 0, i64 0
%62 = getelementptr inbounds [3 x float], [3 x float]* %61, i64 0, i64 1
%63 = load float, float* %62
store float %63, float* %6
%64 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %2, i64 0, i64 0
%65 = getelementptr inbounds [3 x float], [3 x float]* %64, i64 0, i64 2
%66 = load float, float* %65
store float %66, float* %7
%67 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %2, i64 0, i64 1
%68 = getelementptr inbounds [3 x float], [3 x float]* %67, i64 0, i64 0
%69 = load float, float* %68
store float %69, float* %8
%70 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %2, i64 0, i64 1
%71 = getelementptr inbounds [3 x float], [3 x float]* %70, i64 0, i64 1
%72 = load float, float* %71
store float %72, float* %9
%73 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %2, i64 0, i64 1
%74 = getelementptr inbounds [3 x float], [3 x float]* %73, i64 0, i64 2
%75 = load float, float* %74
store float %75, float* %10
%76 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %2, i64 0, i64 2
%77 = getelementptr inbounds [3 x float], [3 x float]* %76, i64 0, i64 0
%78 = load float, float* %77
store float %78, float* %11
%79 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %2, i64 0, i64 2
%80 = getelementptr inbounds [3 x float], [3 x float]* %79, i64 0, i64 1
%81 = load float, float* %80
store float %81, float* %12
%82 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %2, i64 0, i64 2
%83 = getelementptr inbounds [3 x float], [3 x float]* %82, i64 0, i64 2
%84 = load float, float* %83
store float %84, float* %13
%85 = load float, float* %5
%86 = load float, float* %9
%87 = fmul float %85, %86
%88 = load float, float* %13
%89 = load float, float* %8
%90 = load float, float* %12
%91 = fmul float %89, %90
%92 = load float, float* %7
%93 = fmul float %91, %92
%94 = call float @llvm.fmuladd.f32(float %87, float %88, float %93)
%95 = load float, float* %11
%96 = load float, float* %6
%97 = fmul float %95, %96
%98 = load float, float* %10
%99 = call float @llvm.fmuladd.f32(float %97, float %98, float %94)
%100 = load float, float* %5
%101 = load float, float* %12
%102 = fmul float %100, %101
%103 = load float, float* %10
%104 = fneg float %102
%105 = call float @llvm.fmuladd.f32(float %104, float %103, float %99)
%106 = load float, float* %11
%107 = load float, float* %9
%108 = fmul float %106, %107
%109 = load float, float* %7
%110 = fneg float %108
%111 = call float @llvm.fmuladd.f32(float %110, float %109, float %105)
%112 = load float, float* %8
%113 = load float, float* %6
%114 = fmul float %112, %113
%115 = load float, float* %13
%116 = fneg float %114
%117 = call float @llvm.fmuladd.f32(float %116, float %115, float %111)
store float %117, float* %14
%118 = load float, float* %14
%119 = fpext float %118 to double
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), double %119)
%121 = load float, float* %14
%122 = fcmp oeq float %121, 0.000000e+00
br i1 %122, label %123, label %125
123: ; preds = %56
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %1
br label %263
125: ; preds = %56
%126 = load float, float* %9
%127 = load float, float* %13
%128 = load float, float* %10
%129 = load float, float* %12
%130 = fmul float %128, %129
%131 = fneg float %130
%132 = call float @llvm.fmuladd.f32(float %126, float %127, float %131)
%133 = fmul float %132, 1.000000e+00
%134 = load float, float* %14
%135 = fdiv float %133, %134
store float %135, float* %15
%136 = load float, float* %7
%137 = load float, float* %12
%138 = load float, float* %6
%139 = load float, float* %13
%140 = fmul float %138, %139
%141 = fneg float %140
%142 = call float @llvm.fmuladd.f32(float %136, float %137, float %141)
%143 = fmul float %142, 1.000000e+00
%144 = load float, float* %14
%145 = fdiv float %143, %144
store float %145, float* %16
%146 = load float, float* %6
%147 = load float, float* %10
%148 = load float, float* %7
%149 = load float, float* %9
%150 = fmul float %148, %149
%151 = fneg float %150
%152 = call float @llvm.fmuladd.f32(float %146, float %147, float %151)
%153 = fmul float %152, 1.000000e+00
%154 = load float, float* %14
%155 = fdiv float %153, %154
store float %155, float* %17
%156 = load float, float* %10
%157 = load float, float* %11
%158 = load float, float* %8
%159 = load float, float* %13
%160 = fmul float %158, %159
%161 = fneg float %160
%162 = call float @llvm.fmuladd.f32(float %156, float %157, float %161)
%163 = fmul float %162, 1.000000e+00
%164 = load float, float* %14
%165 = fdiv float %163, %164
store float %165, float* %18
%166 = load float, float* %5
%167 = load float, float* %13
%168 = load float, float* %7
%169 = load float, float* %11
%170 = fmul float %168, %169
%171 = fneg float %170
%172 = call float @llvm.fmuladd.f32(float %166, float %167, float %171)
%173 = fmul float %172, 1.000000e+00
%174 = load float, float* %14
%175 = fdiv float %173, %174
store float %175, float* %19
%176 = load float, float* %7
%177 = load float, float* %8
%178 = load float, float* %5
%179 = load float, float* %10
%180 = fmul float %178, %179
%181 = fneg float %180
%182 = call float @llvm.fmuladd.f32(float %176, float %177, float %181)
%183 = fmul float %182, 1.000000e+00
%184 = load float, float* %14
%185 = fdiv float %183, %184
store float %185, float* %20
%186 = load float, float* %8
%187 = load float, float* %12
%188 = load float, float* %9
%189 = load float, float* %11
%190 = fmul float %188, %189
%191 = fneg float %190
%192 = call float @llvm.fmuladd.f32(float %186, float %187, float %191)
%193 = fmul float %192, 1.000000e+00
%194 = load float, float* %14
%195 = fdiv float %193, %194
store float %195, float* %21
%196 = load float, float* %6
%197 = load float, float* %11
%198 = load float, float* %5
%199 = load float, float* %12
%200 = fmul float %198, %199
%201 = fneg float %200
%202 = call float @llvm.fmuladd.f32(float %196, float %197, float %201)
%203 = fmul float %202, 1.000000e+00
%204 = load float, float* %14
%205 = fdiv float %203, %204
store float %205, float* %22
%206 = load float, float* %5
%207 = load float, float* %9
%208 = load float, float* %6
%209 = load float, float* %8
%210 = fmul float %208, %209
%211 = fneg float %210
%212 = call float @llvm.fmuladd.f32(float %206, float %207, float %211)
%213 = fmul float %212, 1.000000e+00
%214 = load float, float* %14
%215 = fdiv float %213, %214
store float %215, float* %23
%216 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %24, i64 0, i64 0
%217 = getelementptr inbounds [3 x float], [3 x float]* %216, i64 0, i64 0
%218 = load float, float* %15
store float %218, float* %217
%219 = getelementptr inbounds float, float* %217, i64 1
%220 = load float, float* %16
store float %220, float* %219
%221 = getelementptr inbounds float, float* %219, i64 1
%222 = load float, float* %17
store float %222, float* %221
%223 = getelementptr inbounds [3 x float], [3 x float]* %216, i64 1
%224 = getelementptr inbounds [3 x float], [3 x float]* %223, i64 0, i64 0
%225 = load float, float* %18
store float %225, float* %224
%226 = getelementptr inbounds float, float* %224, i64 1
%227 = load float, float* %19
store float %227, float* %226
%228 = getelementptr inbounds float, float* %226, i64 1
%229 = load float, float* %20
store float %229, float* %228
%230 = getelementptr inbounds [3 x float], [3 x float]* %223, i64 1
%231 = getelementptr inbounds [3 x float], [3 x float]* %230, i64 0, i64 0
%232 = load float, float* %21
store float %232, float* %231
%233 = getelementptr inbounds float, float* %231, i64 1
%234 = load float, float* %22
store float %234, float* %233
%235 = getelementptr inbounds float, float* %233, i64 1
%236 = load float, float* %23
store float %236, float* %235
store i32 0, i32* %25
br label %237
237: ; preds = %259, %125
%238 = load i32, i32* %25
%239 = icmp slt i32 %238, 3
br i1 %239, label %240, label %262
240: ; preds = %237
store i32 0, i32* %26
br label %241
241: ; preds = %254, %240
%242 = load i32, i32* %26
%243 = icmp slt i32 %242, 3
br i1 %243, label %244, label %257
244: ; preds = %241
%245 = load i32, i32* %25
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %24, i64 0, i64 %246
%248 = load i32, i32* %26
%249 = sext i32 %248 to i64
%250 = getelementptr inbounds [3 x float], [3 x float]* %247, i64 0, i64 %249
%251 = load float, float* %250
%252 = fpext float %251 to double
%253 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %252)
br label %254
254: ; preds = %244
%255 = load i32, i32* %26
%256 = add nsw i32 %255, 1
store i32 %256, i32* %26
br label %241
257: ; preds = %241
%258 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %259
259: ; preds = %257
%260 = load i32, i32* %25
%261 = add nsw i32 %260, 1
store i32 %261, i32* %25
br label %237
262: ; preds = %237
store i32 0, i32* %1
br label %263
263: ; preds = %262, %123
%264 = load i32, i32* %1
ret i32 %264
}

LLVM IR (-O2):
@.str.1 = [33 x i8] c"Matris elementi: %d,%d giriniz: \00"
@.str.2 = [3 x i8] c"%f\00"
@.str.4 = [43 x i8] c"Determinant: %.0f\0A\0A---Matrisin Tersi--- \0A\0A\00"
@.str.6 = [8 x i8] c"%.03f\09\09\00"
@str = [50 x i8] c"3x3'luk matrisin elementlerini sirayla giriniz...\00"
@str.7 = [63 x i8] c"Matrisin determinanti 0'a esit oldugundan dolayi tersi yoktur.\00"
define i32 @main() {
%1 = alloca [3 x [3 x float]]
%2 = bitcast [3 x [3 x float]]* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 1)
%5 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %1, i64 0, i64 0, i64 0
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %5)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 2)
%8 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %1, i64 0, i64 0, i64 1
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %8)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 3)
%11 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %1, i64 0, i64 0, i64 2
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %11)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 1)
%14 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %1, i64 0, i64 1, i64 0
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %14)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 2)
%17 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %1, i64 0, i64 1, i64 1
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %17)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 3)
%20 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %1, i64 0, i64 1, i64 2
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %20)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 3, i32 1)
%23 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %1, i64 0, i64 2, i64 0
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %23)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 3, i32 2)
%26 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %1, i64 0, i64 2, i64 1
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %26)
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 3, i32 3)
%29 = getelementptr inbounds [3 x [3 x float]], [3 x [3 x float]]* %1, i64 0, i64 2, i64 2
%30 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %29)
%31 = call i32 @putchar(i32 10)
%32 = load float, float* %5
%33 = load float, float* %8
%34 = load float, float* %11
%35 = load float, float* %14
%36 = load float, float* %17
%37 = load float, float* %20
%38 = load float, float* %23
%39 = load float, float* %26
%40 = load float, float* %29
%41 = fmul float %32, %36
%42 = fmul float %35, %39
%43 = fmul float %34, %42
%44 = call float @llvm.fmuladd.f32(float %41, float %40, float %43)
%45 = fmul float %33, %38
%46 = call float @llvm.fmuladd.f32(float %45, float %37, float %44)
%47 = fneg float %32
%48 = fmul float %39, %47
%49 = call float @llvm.fmuladd.f32(float %48, float %37, float %46)
%50 = fneg float %38
%51 = fmul float %36, %50
%52 = call float @llvm.fmuladd.f32(float %51, float %34, float %49)
%53 = fneg float %35
%54 = fmul float %33, %53
%55 = call float @llvm.fmuladd.f32(float %54, float %40, float %52)
%56 = fpext float %55 to double
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), double %56)
%58 = fcmp oeq float %55, 0.000000e+00
br i1 %58, label %59, label %61
59: ; preds = %0
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.7, i64 0, i64 0))
br label %110
61: ; preds = %0
%62 = fneg float %37
%63 = fmul float %39, %62
%64 = call float @llvm.fmuladd.f32(float %36, float %40, float %63)
%65 = fdiv float %64, %55
%66 = fneg float %33
%67 = fmul float %40, %66
%68 = call float @llvm.fmuladd.f32(float %34, float %39, float %67)
%69 = fdiv float %68, %55
%70 = fneg float %34
%71 = fmul float %36, %70
%72 = call float @llvm.fmuladd.f32(float %33, float %37, float %71)
%73 = fdiv float %72, %55
%74 = fmul float %40, %53
%75 = call float @llvm.fmuladd.f32(float %37, float %38, float %74)
%76 = fdiv float %75, %55
%77 = fmul float %38, %70
%78 = call float @llvm.fmuladd.f32(float %32, float %40, float %77)
%79 = fdiv float %78, %55
%80 = fmul float %37, %47
%81 = call float @llvm.fmuladd.f32(float %34, float %35, float %80)
%82 = fdiv float %81, %55
%83 = call float @llvm.fmuladd.f32(float %35, float %39, float %51)
%84 = fdiv float %83, %55
%85 = call float @llvm.fmuladd.f32(float %33, float %38, float %48)
%86 = fdiv float %85, %55
%87 = call float @llvm.fmuladd.f32(float %32, float %36, float %54)
%88 = fdiv float %87, %55
%89 = fpext float %65 to double
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %89)
%91 = fpext float %69 to double
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %91)
%93 = fpext float %73 to double
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %93)
%95 = call i32 @putchar(i32 10)
%96 = fpext float %76 to double
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %96)
%98 = fpext float %79 to double
%99 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %98)
%100 = fpext float %82 to double
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %100)
%102 = call i32 @putchar(i32 10)
%103 = fpext float %84 to double
%104 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %103)
%105 = fpext float %86 to double
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %105)
%107 = fpext float %88 to double
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %107)
%109 = call i32 @putchar(i32 10)
br label %110
110: ; preds = %61, %59
ret i32 0
}