#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 *, int *);
int main() {
  int a[3][3], i, j;
  float det = 0;
  printf("Enter the 9 elements of matrix: ");
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 3; j++) {
      scanf("%d", &a[i][j]);
    }
  }
  printf("\nThe matrix is\n");
  for (i = 0; i < 3; i++) {
    printf("\n");
    for (j = 0; j < 3; j++)
      printf("%d\t", a[i][j]);
  }
  for (i = 0; i < 3; i++) {
    det = det + (a[0][i] * (a[1][(i + 1) % 3] * a[2][(i + 2) % 3] -
                            a[1][(i + 2) % 3] * a[2][(i + 1) % 3]));
    printf("\nInverse of matrix is: \n\n");
    for (i = 0; i < 3; i++) {
      for (j = 0; j < 3; j++) {
        printf("%.2f\t",
               ((a[(i + 1) % 3][(j + 1) % 3] * a[(i + 2) % 3][(j + 2) % 3]) -
                (a[(i + 1) % 3][(j + 2) % 3] * a[(i + 2) % 3][(j + 1) % 3])) /
                   det);
      }
      printf("\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x3c(%rbp)
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x3,-0x34(%rbp)
jge    11ae <main+0x8e>
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    119b <main+0x7b>
movslq -0x34(%rbp),%rax
lea    -0x30(%rbp),%rsi
imul   $0xc,%rax,%rax
add    %rax,%rsi
movslq -0x38(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe99(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    115d <main+0x3d>
jmp    11a0 <main+0x80>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    114c <main+0x2c>
lea    0xe6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x3,-0x34(%rbp)
jge    1231 <main+0x111>
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    121e <main+0xfe>
movslq -0x34(%rbp),%rcx
lea    -0x30(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11e2 <main+0xc2>
jmp    1223 <main+0x103>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11c3 <main+0xa3>
movl   $0x0,-0x34(%rbp)
cmpl   $0x3,-0x34(%rbp)
jge    1437 <main+0x317>
movss  -0x3c(%rbp),%xmm0
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0x44(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
movslq %edx,%rax
mov    -0x24(%rbp,%rax,4),%ecx
mov    -0x34(%rbp),%eax
add    $0x2,%eax
mov    $0x3,%esi
cltd
idiv   %esi
movslq %edx,%rax
imul   -0x18(%rbp,%rax,4),%ecx
mov    -0x34(%rbp),%eax
add    $0x2,%eax
mov    $0x3,%esi
cltd
idiv   %esi
movslq %edx,%rax
mov    -0x24(%rbp,%rax,4),%eax
mov    %eax,-0x40(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    $0x3,%esi
cltd
idiv   %esi
mov    -0x44(%rbp),%eax
mov    %edx,%esi
mov    -0x40(%rbp),%edx
movslq %esi,%rsi
imul   -0x18(%rbp,%rsi,4),%edx
sub    %edx,%ecx
imul   %ecx,%eax
cvtsi2ss %eax,%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x3c(%rbp)
lea    0xd6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x3,-0x34(%rbp)
jge    1424 <main+0x304>
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    1408 <main+0x2e8>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
movslq %edx,%rcx
lea    -0x30(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    -0x70(%rbp),%rax
movslq %edx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x64(%rbp)
mov    -0x34(%rbp),%eax
add    $0x2,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
movslq %edx,%rax
lea    -0x30(%rbp),%rcx
imul   $0xc,%rax,%rax
add    %rax,%rcx
mov    -0x38(%rbp),%eax
add    $0x2,%eax
mov    $0x3,%esi
cltd
idiv   %esi
mov    -0x64(%rbp),%eax
movslq %edx,%rdx
imul   (%rcx,%rdx,4),%eax
mov    %eax,-0x54(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
movslq %edx,%rcx
lea    -0x30(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x38(%rbp),%eax
add    $0x2,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    -0x60(%rbp),%rax
movslq %edx,%rcx
mov    (%rax,%rcx,4),%ecx
mov    -0x34(%rbp),%eax
add    $0x2,%eax
mov    $0x3,%esi
cltd
idiv   %esi
movslq %edx,%rdx
lea    -0x30(%rbp),%rax
imul   $0xc,%rdx,%rdx
add    %rdx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    $0x3,%esi
cltd
idiv   %esi
mov    -0x54(%rbp),%eax
mov    %edx,%esi
mov    -0x50(%rbp),%rdx
movslq %esi,%rsi
imul   (%rdx,%rsi,4),%ecx
sub    %ecx,%eax
cvtsi2ss %eax,%xmm0
divss  -0x3c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc5f(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12eb <main+0x1cb>
lea    0xc41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12da <main+0x1ba>
jmp    1429 <main+0x309>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1238 <main+0x118>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xeab(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xebe(%rip),%rbx
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x28(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x2c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x30(%rsp),%r13
mov    %rbx,%rdi
mov    %r13,%rsi
call   1060 <scanf@plt>
lea    0xe4c(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x10(%rsp),%esi
lea    0xe28(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x28(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rsp),%eax
mov    0x30(%rsp),%ecx
imul   0x20(%rsp),%ecx
imul   0x24(%rsp),%eax
sub    %eax,%ecx
imul   0x10(%rsp),%ecx
cvtsi2ss %ecx,%xmm0
movss  %xmm0,0xc(%rsp)
lea    0xd89(%rip),%rdi
call   1040 <puts@plt>
mov    $0xfffffffd,%ebp
mov    $0x2,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rax
movabs $0xaaaaaaaaaaaaaaab,%rcx
aa aa aa
mul    %rcx
add    %rdx,%rdx
and    $0xfffffffffffffffc,%rdx
lea    (%rdx,%rdx,8),%r12
mov    %r13,%r14
sub    %r12,%r14
lea    0x4(%rbp),%eax
inc    %ebp
mov    $0x0,%ecx
cmove  %ecx,%eax
lea    (%rax,%rax,2),%r15
mov    -0x4(%r14),%eax
mov    (%r14),%ecx
imul   0x14(%rsp,%r15,4),%ecx
imul   0x18(%rsp,%r15,4),%eax
sub    %eax,%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
divss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcf9(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x8(%r14),%eax
mov    (%r14),%ecx
imul   0x18(%rsp,%r15,4),%eax
imul   0x10(%rsp,%r15,4),%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
neg    %r12
divss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcc2(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x4(%r14),%eax
imul   0x10(%rsp,%r15,4),%eax
mov    -0x8(%r13,%r12,1),%ecx
imul   0x14(%rsp,%r15,4),%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
divss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc8c(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0xc,%r13
add    $0x1,%rbx
test   %ebp,%ebp
jne    12d0 <main+0x190>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [33 x i8] c"Enter the 9 elements of matrix: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [16 x i8] c"\0AThe matrix is\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [4 x i8] c"%d\09\00"
@.str.5 = [26 x i8] c"\0AInverse of matrix is: \0A\0A\00"
@.str.6 = [6 x i8] c"%.2f\09\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x [3 x i32]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
store i32 0, i32* %1
store float 0.000000e+00, float* %5
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %7
7: ; preds = %26, %0
%8 = load i32, i32* %3
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %29
10: ; preds = %7
store i32 0, i32* %4
br label %11
11: ; preds = %22, %10
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 3
br i1 %13, label %14, label %25
14: ; preds = %11
%15 = load i32, i32* %3
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 %16
%18 = load i32, i32* %4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [3 x i32], [3 x i32]* %17, i64 0, i64 %19
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %20)
br label %22
22: ; preds = %14
%23 = load i32, i32* %4
%24 = add nsw i32 %23, 1
store i32 %24, i32* %4
br label %11
25: ; preds = %11
br label %26
26: ; preds = %25
%27 = load i32, i32* %3
%28 = add nsw i32 %27, 1
store i32 %28, i32* %3
br label %7
29: ; preds = %7
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %3
br label %31
31: ; preds = %52, %29
%32 = load i32, i32* %3
%33 = icmp slt i32 %32, 3
br i1 %33, label %34, label %55
34: ; preds = %31
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %4
br label %36
36: ; preds = %48, %34
%37 = load i32, i32* %4
%38 = icmp slt i32 %37, 3
br i1 %38, label %39, label %51
39: ; preds = %36
%40 = load i32, i32* %3
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 %41
%43 = load i32, i32* %4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [3 x i32], [3 x i32]* %42, i64 0, i64 %44
%46 = load i32, i32* %45
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %46)
br label %48
48: ; preds = %39
%49 = load i32, i32* %4
%50 = add nsw i32 %49, 1
store i32 %50, i32* %4
br label %36
51: ; preds = %36
br label %52
52: ; preds = %51
%53 = load i32, i32* %3
%54 = add nsw i32 %53, 1
store i32 %54, i32* %3
br label %31
55: ; preds = %31
store i32 0, i32* %3
br label %56
56: ; preds = %170, %55
%57 = load i32, i32* %3
%58 = icmp slt i32 %57, 3
br i1 %58, label %59, label %173
59: ; preds = %56
%60 = load float, float* %5
%61 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 0
%62 = load i32, i32* %3
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [3 x i32], [3 x i32]* %61, i64 0, i64 %63
%65 = load i32, i32* %64
%66 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 1
%67 = load i32, i32* %3
%68 = add nsw i32 %67, 1
%69 = srem i32 %68, 3
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [3 x i32], [3 x i32]* %66, i64 0, i64 %70
%72 = load i32, i32* %71
%73 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 2
%74 = load i32, i32* %3
%75 = add nsw i32 %74, 2
%76 = srem i32 %75, 3
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [3 x i32], [3 x i32]* %73, i64 0, i64 %77
%79 = load i32, i32* %78
%80 = mul nsw i32 %72, %79
%81 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 1
%82 = load i32, i32* %3
%83 = add nsw i32 %82, 2
%84 = srem i32 %83, 3
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [3 x i32], [3 x i32]* %81, i64 0, i64 %85
%87 = load i32, i32* %86
%88 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 2
%89 = load i32, i32* %3
%90 = add nsw i32 %89, 1
%91 = srem i32 %90, 3
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [3 x i32], [3 x i32]* %88, i64 0, i64 %92
%94 = load i32, i32* %93
%95 = mul nsw i32 %87, %94
%96 = sub nsw i32 %80, %95
%97 = mul nsw i32 %65, %96
%98 = sitofp i32 %97 to float
%99 = fadd float %60, %98
store float %99, float* %5
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %3
br label %101
101: ; preds = %166, %59
%102 = load i32, i32* %3
%103 = icmp slt i32 %102, 3
br i1 %103, label %104, label %169
104: ; preds = %101
store i32 0, i32* %4
br label %105
105: ; preds = %161, %104
%106 = load i32, i32* %4
%107 = icmp slt i32 %106, 3
br i1 %107, label %108, label %164
108: ; preds = %105
%109 = load i32, i32* %3
%110 = add nsw i32 %109, 1
%111 = srem i32 %110, 3
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 %112
%114 = load i32, i32* %4
%115 = add nsw i32 %114, 1
%116 = srem i32 %115, 3
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [3 x i32], [3 x i32]* %113, i64 0, i64 %117
%119 = load i32, i32* %118
%120 = load i32, i32* %3
%121 = add nsw i32 %120, 2
%122 = srem i32 %121, 3
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 %123
%125 = load i32, i32* %4
%126 = add nsw i32 %125, 2
%127 = srem i32 %126, 3
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [3 x i32], [3 x i32]* %124, i64 0, i64 %128
%130 = load i32, i32* %129
%131 = mul nsw i32 %119, %130
%132 = load i32, i32* %3
%133 = add nsw i32 %132, 1
%134 = srem i32 %133, 3
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 %135
%137 = load i32, i32* %4
%138 = add nsw i32 %137, 2
%139 = srem i32 %138, 3
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [3 x i32], [3 x i32]* %136, i64 0, i64 %140
%142 = load i32, i32* %141
%143 = load i32, i32* %3
%144 = add nsw i32 %143, 2
%145 = srem i32 %144, 3
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %2, i64 0, i64 %146
%148 = load i32, i32* %4
%149 = add nsw i32 %148, 1
%150 = srem i32 %149, 3
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [3 x i32], [3 x i32]* %147, i64 0, i64 %151
%153 = load i32, i32* %152
%154 = mul nsw i32 %142, %153
%155 = sub nsw i32 %131, %154
%156 = sitofp i32 %155 to float
%157 = load float, float* %5
%158 = fdiv float %156, %157
%159 = fpext float %158 to double
%160 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %159)
br label %161
161: ; preds = %108
%162 = load i32, i32* %4
%163 = add nsw i32 %162, 1
store i32 %163, i32* %4
br label %105
164: ; preds = %105
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %166
166: ; preds = %164
%167 = load i32, i32* %3
%168 = add nsw i32 %167, 1
store i32 %168, i32* %3
br label %101
169: ; preds = %101
br label %170
170: ; preds = %169
%171 = load i32, i32* %3
%172 = add nsw i32 %171, 1
store i32 %172, i32* %3
br label %56
173: ; preds = %56
ret i32 0
}

LLVM IR (-O2):
@.str = [33 x i8] c"Enter the 9 elements of matrix: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.4 = [4 x i8] c"%d\09\00"
@.str.6 = [6 x i8] c"%.2f\09\00"
@str = [15 x i8] c"\0AThe matrix is\00"
@str.7 = [25 x i8] c"\0AInverse of matrix is: \0A\00"
define i32 @main() {
%1 = alloca [3 x [3 x i32]]
%2 = bitcast [3 x [3 x i32]]* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%6 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0, i64 1
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%8 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0, i64 2
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %8)
%10 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 1, i64 0
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %10)
%12 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 1, i64 1
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %12)
%14 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 1, i64 2
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %14)
%16 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 2, i64 0
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %16)
%18 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 2, i64 1
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %18)
%20 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 2, i64 2
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %20)
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%23 = call i32 @putchar(i32 10)
%24 = load i32, i32* %4
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %24)
%26 = load i32, i32* %6
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %26)
%28 = load i32, i32* %8
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %28)
%30 = call i32 @putchar(i32 10)
%31 = load i32, i32* %10
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %31)
%33 = load i32, i32* %12
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %33)
%35 = load i32, i32* %14
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %35)
%37 = call i32 @putchar(i32 10)
%38 = load i32, i32* %16
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %38)
%40 = load i32, i32* %18
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %40)
%42 = load i32, i32* %20
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %42)
%44 = load i32, i32* %4
%45 = load i32, i32* %12
%46 = load i32, i32* %20
%47 = mul nsw i32 %46, %45
%48 = load i32, i32* %14
%49 = load i32, i32* %18
%50 = mul nsw i32 %49, %48
%51 = sub nsw i32 %47, %50
%52 = mul nsw i32 %51, %44
%53 = sitofp i32 %52 to float
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.7, i64 0, i64 0))
br label %55
55: ; preds = %0, %55
%56 = phi i32 [ 0, %0 ], [ %57, %55 ]
%57 = add nuw nsw i32 %56, 1
%58 = icmp eq i32 %57, 3
%59 = select i1 %58, i32 0, i32 %57
%60 = zext i32 %59 to i64
%61 = add nuw nsw i32 %56, 2
%62 = urem i32 %61, 3
%63 = zext i32 %62 to i64
%64 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 %60, i64 1
%65 = load i32, i32* %64
%66 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 %63, i64 2
%67 = load i32, i32* %66
%68 = mul nsw i32 %67, %65
%69 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 %60, i64 2
%70 = load i32, i32* %69
%71 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 %63, i64 1
%72 = load i32, i32* %71
%73 = mul nsw i32 %72, %70
%74 = sub nsw i32 %68, %73
%75 = sitofp i32 %74 to float
%76 = fdiv float %75, %53
%77 = fpext float %76 to double
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %77)
%79 = load i32, i32* %69
%80 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 %63, i64 0
%81 = load i32, i32* %80
%82 = mul nsw i32 %81, %79
%83 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 %60, i64 0
%84 = load i32, i32* %83
%85 = load i32, i32* %66
%86 = mul nsw i32 %85, %84
%87 = sub nsw i32 %82, %86
%88 = sitofp i32 %87 to float
%89 = fdiv float %88, %53
%90 = fpext float %89 to double
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %90)
%92 = load i32, i32* %83
%93 = load i32, i32* %71
%94 = mul nsw i32 %93, %92
%95 = load i32, i32* %64
%96 = load i32, i32* %80
%97 = mul nsw i32 %96, %95
%98 = sub nsw i32 %94, %97
%99 = sitofp i32 %98 to float
%100 = fdiv float %99, %53
%101 = fpext float %100 to double
%102 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %101)
%103 = call i32 @putchar(i32 10)
%104 = icmp eq i32 %57, 3
br i1 %104, label %105, label %55
105: ; preds = %55
ret i32 0
}