#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 *);
void main() {
  int FirstMatrix[2][2], SecondMatrix[2][2], ProductMatrix[2][2], i, j;
  printf("Enter the 4 elements of first matrix: ");
  for (i = 0; i < 2; i++) {
    for (j = 0; j < 2; j++) {
      scanf("%d", &FirstMatrix[i][j]);
    }
  }
  printf("Enter the 4 elements of second matrix: ");
  for (i = 0; i < 2; i++) {
    for (j = 0; j < 2; j++) {
      scanf("%d", &SecondMatrix[i][j]);
    }
  }
  int a = (FirstMatrix[0][0] + FirstMatrix[1][1]) *
          (SecondMatrix[0][0] + SecondMatrix[1][1]);
  int b = (FirstMatrix[1][0] + FirstMatrix[1][1]) * SecondMatrix[0][0];
  int c = FirstMatrix[0][0] * (SecondMatrix[0][1] - SecondMatrix[1][1]);
  int d = FirstMatrix[1][1] * (SecondMatrix[1][0] - SecondMatrix[0][0]);
  int e = (FirstMatrix[0][0] + FirstMatrix[0][1]) * SecondMatrix[1][1];
  int f = (FirstMatrix[1][0] - FirstMatrix[0][0]) *
          (SecondMatrix[0][0] + SecondMatrix[0][1]);
  int g = (FirstMatrix[0][1] - FirstMatrix[1][1]) *
          (SecondMatrix[1][0] + SecondMatrix[1][1]);
  ProductMatrix[0][0] = a + d - e + g;
  ProductMatrix[0][1] = c + e;
  ProductMatrix[1][0] = b + d;
  ProductMatrix[1][1] = a - b + c + f;
  printf("\nAfter multiplication using Strassen's algorithm \n");
  for (i = 0; i < 2; i++) {
    printf("\n");
    for (j = 0; j < 2; j++) {
      printf("%d\t", ProductMatrix[i][j]);
    }
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jge    119f <main+0x7f>
movl   $0x0,-0x38(%rbp)
cmpl   $0x2,-0x38(%rbp)
jge    118c <main+0x6c>
movslq -0x34(%rbp),%rax
lea    -0x10(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
movslq -0x38(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xeae(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    114e <main+0x2e>
jmp    1191 <main+0x71>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    113d <main+0x1d>
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jge    1216 <main+0xf6>
movl   $0x0,-0x38(%rbp)
cmpl   $0x2,-0x38(%rbp)
jge    1203 <main+0xe3>
movslq -0x34(%rbp),%rax
lea    -0x20(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
movslq -0x38(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe37(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11c5 <main+0xa5>
jmp    1208 <main+0xe8>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11b4 <main+0x94>
mov    -0x10(%rbp),%eax
add    -0x4(%rbp),%eax
mov    -0x20(%rbp),%ecx
add    -0x14(%rbp),%ecx
imul   %ecx,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%eax
add    -0x4(%rbp),%eax
imul   -0x20(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x10(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    -0x14(%rbp),%ecx
imul   %ecx,%eax
mov    %eax,-0x44(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    -0x20(%rbp),%ecx
imul   %ecx,%eax
mov    %eax,-0x48(%rbp)
mov    -0x10(%rbp),%eax
add    -0xc(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x10(%rbp),%eax
mov    -0x20(%rbp),%ecx
add    -0x1c(%rbp),%ecx
imul   %ecx,%eax
mov    %eax,-0x50(%rbp)
mov    -0xc(%rbp),%eax
sub    -0x4(%rbp),%eax
mov    -0x18(%rbp),%ecx
add    -0x14(%rbp),%ecx
imul   %ecx,%eax
mov    %eax,-0x54(%rbp)
mov    -0x3c(%rbp),%eax
add    -0x48(%rbp),%eax
sub    -0x4c(%rbp),%eax
add    -0x54(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x44(%rbp),%eax
add    -0x4c(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x40(%rbp),%eax
add    -0x48(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x3c(%rbp),%eax
sub    -0x40(%rbp),%eax
add    -0x44(%rbp),%eax
add    -0x50(%rbp),%eax
mov    %eax,-0x24(%rbp)
lea    0xd97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jge    1337 <main+0x217>
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0x2,-0x38(%rbp)
jge    1324 <main+0x204>
movslq -0x34(%rbp),%rcx
lea    -0x30(%rbp),%rax
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12e8 <main+0x1c8>
jmp    1329 <main+0x209>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12c9 <main+0x1a9>
lea    0xd45(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xeab(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xec4(%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    0xe8c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    0x1c(%rsp),%r9d
mov    0x10(%rsp),%edi
mov    0x14(%rsp),%r8d
lea    (%r9,%rdi,1),%esi
mov    0xc(%rsp),%ebx
mov    (%rsp),%eax
mov    0x4(%rsp),%ebp
lea    (%rbx,%rax,1),%r15d
imul   %esi,%r15d
mov    0x18(%rsp),%ecx
lea    (%rcx,%r9,1),%esi
imul   %eax,%esi
mov    0x8(%rsp),%edx
mov    %edx,%r14d
sub    %eax,%r14d
add    %ebp,%eax
sub    %ebx,%ebp
imul   %edi,%ebp
imul   %r9d,%r14d
lea    (%r8,%rdi,1),%r13d
imul   %ebx,%r13d
sub    %edi,%ecx
imul   %ecx,%eax
sub    %r9d,%r8d
add    %ebx,%edx
imul   %r8d,%edx
lea    (%r14,%r15,1),%ebx
sub    %r13d,%ebx
add    %edx,%ebx
add    %ebp,%r13d
add    %esi,%r14d
sub    %esi,%r15d
add    %ebp,%r15d
add    %eax,%r15d
lea    0xe05(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdeb(%rip),%r12
mov    %r12,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r12,%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [39 x i8] c"Enter the 4 elements of first matrix: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [40 x i8] c"Enter the 4 elements of second matrix: \00"
@.str.5 = [4 x i8] c"%d\09\00"
@str = [50 x i8] c"\0AAfter multiplication using Strassen's algorithm \00"
define void @main() {
%1 = alloca [2 x [2 x i32]]
%2 = alloca [2 x [2 x i32]]
%3 = bitcast [2 x [2 x i32]]* %1 to i8*
%4 = bitcast [2 x [2 x i32]]* %2 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%6 = getelementptr inbounds [2 x [2 x i32]], [2 x [2 x i32]]* %1, i64 0, i64 0, i64 0
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%8 = getelementptr inbounds [2 x [2 x i32]], [2 x [2 x i32]]* %1, i64 0, i64 0, i64 1
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %8)
%10 = getelementptr inbounds [2 x [2 x i32]], [2 x [2 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 [2 x [2 x i32]], [2 x [2 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 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%15 = getelementptr inbounds [2 x [2 x i32]], [2 x [2 x i32]]* %2, i64 0, i64 0, i64 0
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %15)
%17 = getelementptr inbounds [2 x [2 x i32]], [2 x [2 x i32]]* %2, i64 0, i64 0, i64 1
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %17)
%19 = getelementptr inbounds [2 x [2 x i32]], [2 x [2 x i32]]* %2, i64 0, i64 1, i64 0
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %19)
%21 = getelementptr inbounds [2 x [2 x i32]], [2 x [2 x i32]]* %2, i64 0, i64 1, i64 1
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %21)
%23 = load i32, i32* %6
%24 = load i32, i32* %12
%25 = add nsw i32 %24, %23
%26 = load i32, i32* %15
%27 = load i32, i32* %21
%28 = add nsw i32 %27, %26
%29 = mul nsw i32 %28, %25
%30 = load i32, i32* %10
%31 = add nsw i32 %30, %24
%32 = mul nsw i32 %31, %26
%33 = load i32, i32* %17
%34 = sub nsw i32 %33, %27
%35 = mul nsw i32 %34, %23
%36 = load i32, i32* %19
%37 = sub nsw i32 %36, %26
%38 = mul nsw i32 %37, %24
%39 = load i32, i32* %8
%40 = add nsw i32 %39, %23
%41 = mul nsw i32 %40, %27
%42 = sub nsw i32 %30, %23
%43 = add nsw i32 %33, %26
%44 = mul nsw i32 %43, %42
%45 = sub nsw i32 %39, %24
%46 = add nsw i32 %36, %27
%47 = mul nsw i32 %45, %46
%48 = add nsw i32 %38, %29
%49 = sub i32 %48, %41
%50 = add nsw i32 %49, %47
%51 = add nsw i32 %41, %35
%52 = add nsw i32 %38, %32
%53 = sub i32 %29, %32
%54 = add nsw i32 %53, %35
%55 = add nsw i32 %54, %44
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
%57 = call i32 @putchar(i32 10)
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %50)
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %51)
%60 = call i32 @putchar(i32 10)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %52)
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %55)
%63 = call i32 @putchar(i32 10)
ret void
}