#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 main(void) {
  int matriz[7][7], f, c, tras = 0, temp = 0;
  for (f = 0; f < 7; f++) {
    for (c = 0; c < 7; c++) {
      matriz[f][c] = tras;
      tras = tras + 6;
    }
  }
  printf("\nEsta es la matriz original[f][c]:  \n\n\n");
  for (f = 0; f < 7; f++) {
    for (c = 0; c < 7; c++) {
      printf("%d\t", matriz[f][c]);
    }
    printf("\n\n\n");
  }
  printf("\nEsta es la matriz transpuesta: \n\n\n");
  for (f = 0; f < 7; f++) {
    for (c = 0; c < 7; c++) {
      printf("%d\t", matriz[c][f]);
    }
    printf("\n\n\n");
  }
  for (f = 1; f <= 6; f++) {
    for (c = 1; c <= 6; c++) {
      if ((f == 1 || f == 5) && (c == 1 || c == 5)) {
        temp = temp + matriz[c][f];
        if ((f == 2 || f == 3 || f == 4) && (c == 2 || c == 3 || c == 4)) {
          temp = temp + matriz[c][f];
          matriz[c][f] = 0;
          if ((f == 1 || f == 5) && (c == 2 || c == 3 || c == 4)) {
            temp = temp + matriz[c][f];
            if ((f == 2 || f == 3 || f == 4) && (c == 1 || c == 5)) {
              temp = temp + matriz[c][f];
            }
          }
        }
      }
    }
  }
  printf("\n\n");
  printf("\nEsta es la Suma de la matriz transpuesta: \n\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xdc(%rbp)
movl   $0x0,-0xe0(%rbp)
movl   $0x0,-0xd4(%rbp)
cmpl   $0x7,-0xd4(%rbp)
jge    11c5 <main+0xb5>
movl   $0x0,-0xd8(%rbp)
cmpl   $0x7,-0xd8(%rbp)
jge    11ac <main+0x9c>
mov    -0xdc(%rbp),%edx
movslq -0xd4(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0x1c,%rcx,%rcx
add    %rcx,%rax
movslq -0xd8(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xdc(%rbp),%eax
add    $0x6,%eax
mov    %eax,-0xdc(%rbp)
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    1157 <main+0x47>
jmp    11b1 <main+0xa1>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    1140 <main+0x30>
lea    0xe34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xd4(%rbp)
cmpl   $0x7,-0xd4(%rbp)
jge    1264 <main+0x154>
movl   $0x0,-0xd8(%rbp)
cmpl   $0x7,-0xd8(%rbp)
jge    1242 <main+0x132>
movslq -0xd4(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0x1c,%rcx,%rcx
add    %rcx,%rax
movslq -0xd8(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    11f4 <main+0xe4>
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    11dd <main+0xcd>
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xd4(%rbp)
cmpl   $0x7,-0xd4(%rbp)
jge    1303 <main+0x1f3>
movl   $0x0,-0xd8(%rbp)
cmpl   $0x7,-0xd8(%rbp)
jge    12e1 <main+0x1d1>
movslq -0xd8(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0x1c,%rcx,%rcx
add    %rcx,%rax
movslq -0xd4(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd62(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    1293 <main+0x183>
lea    0xd3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    127c <main+0x16c>
movl   $0x1,-0xd4(%rbp)
cmpl   $0x6,-0xd4(%rbp)
jg     1545 <main+0x435>
movl   $0x1,-0xd8(%rbp)
cmpl   $0x6,-0xd8(%rbp)
jg     152c <main+0x41c>
cmpl   $0x1,-0xd4(%rbp)
je     134b <main+0x23b>
cmpl   $0x5,-0xd4(%rbp)
jne    1513 <main+0x403>
cmpl   $0x1,-0xd8(%rbp)
je     1365 <main+0x255>
cmpl   $0x5,-0xd8(%rbp)
jne    1513 <main+0x403>
mov    -0xe0(%rbp),%eax
movslq -0xd8(%rbp),%rdx
lea    -0xd0(%rbp),%rcx
imul   $0x1c,%rdx,%rdx
add    %rdx,%rcx
movslq -0xd4(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
mov    %eax,-0xe0(%rbp)
cmpl   $0x2,-0xd4(%rbp)
je     13b7 <main+0x2a7>
cmpl   $0x3,-0xd4(%rbp)
je     13b7 <main+0x2a7>
cmpl   $0x4,-0xd4(%rbp)
jne    150e <main+0x3fe>
cmpl   $0x2,-0xd8(%rbp)
je     13de <main+0x2ce>
cmpl   $0x3,-0xd8(%rbp)
je     13de <main+0x2ce>
cmpl   $0x4,-0xd8(%rbp)
jne    150e <main+0x3fe>
mov    -0xe0(%rbp),%eax
movslq -0xd8(%rbp),%rdx
lea    -0xd0(%rbp),%rcx
imul   $0x1c,%rdx,%rdx
add    %rdx,%rcx
movslq -0xd4(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
mov    %eax,-0xe0(%rbp)
movslq -0xd8(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0x1c,%rcx,%rcx
add    %rcx,%rax
movslq -0xd4(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
cmpl   $0x1,-0xd4(%rbp)
je     1446 <main+0x336>
cmpl   $0x5,-0xd4(%rbp)
jne    1509 <main+0x3f9>
cmpl   $0x2,-0xd8(%rbp)
je     146d <main+0x35d>
cmpl   $0x3,-0xd8(%rbp)
je     146d <main+0x35d>
cmpl   $0x4,-0xd8(%rbp)
jne    1509 <main+0x3f9>
mov    -0xe0(%rbp),%eax
movslq -0xd8(%rbp),%rdx
lea    -0xd0(%rbp),%rcx
imul   $0x1c,%rdx,%rdx
add    %rdx,%rcx
movslq -0xd4(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
mov    %eax,-0xe0(%rbp)
cmpl   $0x2,-0xd4(%rbp)
je     14bf <main+0x3af>
cmpl   $0x3,-0xd4(%rbp)
je     14bf <main+0x3af>
cmpl   $0x4,-0xd4(%rbp)
jne    1504 <main+0x3f4>
cmpl   $0x1,-0xd8(%rbp)
je     14d9 <main+0x3c9>
cmpl   $0x5,-0xd8(%rbp)
jne    1504 <main+0x3f4>
mov    -0xe0(%rbp),%eax
movslq -0xd8(%rbp),%rdx
lea    -0xd0(%rbp),%rcx
imul   $0x1c,%rdx,%rdx
add    %rdx,%rcx
movslq -0xd4(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
mov    %eax,-0xe0(%rbp)
jmp    1509 <main+0x3f9>
jmp    150e <main+0x3fe>
jmp    1513 <main+0x403>
jmp    1518 <main+0x408>
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    1324 <main+0x214>
jmp    1531 <main+0x421>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    130d <main+0x1fd>
lea    0xad9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xaf6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0xd0,%rsp
movaps 0xecd(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xed2(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xed6(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xeda(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xede(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xee2(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xee6(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xeea(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xeee(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xeef(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xef0(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xef1(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movl   $0x120,0xc0(%rsp)
lea    0xeeb(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1c,%ebx
lea    0xed6(%rip),%r15
lea    0xef7(%rip),%r14
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x18(%rsp,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x14(%rsp,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x10(%rsp,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0xc(%rsp,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x8(%rsp,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x4(%rsp,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
cmp    $0xc4,%rbx
je     1278 <main+0x158>
mov    (%rsp,%rbx,1),%esi
add    $0x1c,%rbx
jmp    1200 <main+0xe0>
lea    0xe6c(%rip),%rdi
call   1030 <puts@plt>
mov    $0xfffffffffffffffa,%rbx
lea    0xe2e(%rip),%r15
lea    0xe4f(%rip),%r14
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x34(%rsp,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x50(%rsp,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x6c(%rsp,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x88(%rsp,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xa4(%rsp,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc0(%rsp,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
test   %rbx,%rbx
je     131e <main+0x1fe>
mov    0x1c(%rsp,%rbx,4),%esi
add    $0x1,%rbx
jmp    12a0 <main+0x180>
lea    0xdc4(%rip),%rdi
call   1030 <puts@plt>
lea    0xddd(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0xd0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str.1 = [4 x i8] c"%d\09\00"
@str = [39 x i8] c"\0AEsta es la matriz original[f][c]: \0A\0A\00"
@str.6 = [35 x i8] c"\0AEsta es la matriz transpuesta: \0A\0A\00"
@str.7 = [2 x i8] c"\0A\00"
@str.8 = [46 x i8] c"\0AEsta es la Suma de la matriz transpuesta: \0A\0A\00"
@str.10 = [3 x i8] c"\0A\0A\00"
define i32 @main() {
%1 = alloca [7 x [7 x i32]]
%2 = bitcast [7 x [7 x i32]]* %1 to i8*
%3 = bitcast [7 x [7 x i32]]* %1 to <4 x i32>*
store <4 x i32> <i32 0, i32 6, i32 12, i32 18>, <4 x i32>* %3
%4 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 0, i64 4
%5 = bitcast i32* %4 to <4 x i32>*
store <4 x i32> <i32 24, i32 30, i32 36, i32 42>, <4 x i32>* %5
%6 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 1, i64 1
%7 = bitcast i32* %6 to <4 x i32>*
store <4 x i32> <i32 48, i32 54, i32 60, i32 66>, <4 x i32>* %7
%8 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 1, i64 5
%9 = bitcast i32* %8 to <4 x i32>*
store <4 x i32> <i32 72, i32 78, i32 84, i32 90>, <4 x i32>* %9
%10 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 2, i64 2
%11 = bitcast i32* %10 to <4 x i32>*
store <4 x i32> <i32 96, i32 102, i32 108, i32 114>, <4 x i32>* %11
%12 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 2, i64 6
%13 = bitcast i32* %12 to <4 x i32>*
store <4 x i32> <i32 120, i32 126, i32 132, i32 138>, <4 x i32>* %13
%14 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 3, i64 3
%15 = bitcast i32* %14 to <4 x i32>*
store <4 x i32> <i32 144, i32 150, i32 156, i32 162>, <4 x i32>* %15
%16 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 4, i64 0
%17 = bitcast i32* %16 to <4 x i32>*
store <4 x i32> <i32 168, i32 174, i32 180, i32 186>, <4 x i32>* %17
%18 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 4, i64 4
%19 = bitcast i32* %18 to <4 x i32>*
store <4 x i32> <i32 192, i32 198, i32 204, i32 210>, <4 x i32>* %19
%20 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 5, i64 1
%21 = bitcast i32* %20 to <4 x i32>*
store <4 x i32> <i32 216, i32 222, i32 228, i32 234>, <4 x i32>* %21
%22 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 5, i64 5
%23 = bitcast i32* %22 to <4 x i32>*
store <4 x i32> <i32 240, i32 246, i32 252, i32 258>, <4 x i32>* %23
%24 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 6, i64 2
%25 = bitcast i32* %24 to <4 x i32>*
store <4 x i32> <i32 264, i32 270, i32 276, i32 282>, <4 x i32>* %25
%26 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 6, i64 6
store i32 288, i32* %26
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str, i64 0, i64 0))
br label %28
28: ; preds = %53, %0
%29 = phi i32 [ 0, %0 ], [ %55, %53 ]
%30 = phi i64 [ 0, %0 ], [ %51, %53 ]
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %29)
%32 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 %30, i64 1
%33 = load i32, i32* %32
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %33)
%35 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 %30, i64 2
%36 = load i32, i32* %35
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %36)
%38 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 %30, i64 3
%39 = load i32, i32* %38
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %39)
%41 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 %30, i64 4
%42 = load i32, i32* %41
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %42)
%44 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 %30, i64 5
%45 = load i32, i32* %44
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %45)
%47 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 %30, i64 6
%48 = load i32, i32* %47
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %48)
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.10, i64 0, i64 0))
%51 = add nuw nsw i64 %30, 1
%52 = icmp eq i64 %51, 7
br i1 %52, label %56, label %53
53: ; preds = %28
%54 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 %51, i64 0
%55 = load i32, i32* %54
br label %28
56: ; preds = %28
%57 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.6, i64 0, i64 0))
br label %58
58: ; preds = %83, %56
%59 = phi i32 [ 0, %56 ], [ %85, %83 ]
%60 = phi i64 [ 0, %56 ], [ %81, %83 ]
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %59)
%62 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 1, i64 %60
%63 = load i32, i32* %62
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %63)
%65 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 2, i64 %60
%66 = load i32, i32* %65
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %66)
%68 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 3, i64 %60
%69 = load i32, i32* %68
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %69)
%71 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 4, i64 %60
%72 = load i32, i32* %71
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %72)
%74 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 5, i64 %60
%75 = load i32, i32* %74
%76 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %75)
%77 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 6, i64 %60
%78 = load i32, i32* %77
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %78)
%80 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.10, i64 0, i64 0))
%81 = add nuw nsw i64 %60, 1
%82 = icmp eq i64 %81, 7
br i1 %82, label %86, label %83
83: ; preds = %58
%84 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %1, i64 0, i64 0, i64 %81
%85 = load i32, i32* %84
br label %58
86: ; preds = %58
%87 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.7, i64 0, i64 0))
%88 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.8, i64 0, i64 0))
ret i32 0
}