#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef double clock_t;

/* Variables and functions */
double CLOCKS_PER_SEC;
int /*<<< orphan*/ LC_NUMERIC;
int atoi(char *);
double clock();
double **gera_matriz(int, int);
double **multiplica_matrizes(double **, double **, int, int, int);
int print_argumentos_invalidos();
int /*<<< orphan*/ print_matriz(double **, int, int, char *);
int /*<<< orphan*/ printf(char *, float, float);
int /*<<< orphan*/ setlocale(int /*<<< orphan*/, char *);
scalar_t__ strcmp(char *, char *);
double **transpoe_matriz(double **, int, int);
int main(int argc, char **argv) {
  int lm1, cm1;
  bool otimizar, verbose = 0;
  double **M1, **M2, **Mf;
  float tempo_global = 0.0, tempo_mult = 0.0;
  clock_t t_global_inicio, t_global_fim, t_mult_inicio, t_mult_fim;
  setlocale(LC_NUMERIC, "pt_BR.utf8");
  if (argc < 4) {
    return print_argumentos_invalidos();
  }
  lm1 = atoi(argv[1]);
  cm1 = atoi(argv[2]);
  if ((lm1 == 0) || (cm1 == 0)) {
    return print_argumentos_invalidos();
  }
  if (strcmp(argv[3], "o") == 0) {
    otimizar = 0;
  } else if (strcmp(argv[3], "t") == 0) {
    otimizar = 1;
  } else {
    return print_argumentos_invalidos();
  }
  if (argc > 4) {
    if (strcmp(argv[4], "--verbose") == 0) {
      verbose = 1;
    }
  }
  t_global_inicio = clock();
  M1 = gera_matriz(lm1, cm1);
  if (verbose)
    print_matriz(M1, lm1, cm1, "M1:");
  M2 = gera_matriz(cm1, lm1);
  if (verbose)
    print_matriz(M2, cm1, lm1, "M2:");
  if (otimizar) {
    M2 = transpoe_matriz(M2, cm1, lm1);
    if (verbose)
      print_matriz(M2, lm1, cm1, "M2t:");
  }
  t_mult_inicio = clock();
  Mf = multiplica_matrizes(M1, M2, lm1, cm1, otimizar);
  t_mult_fim = clock();
  if (verbose)
    print_matriz(Mf, lm1, lm1, "Mf: ");
  t_global_fim = clock();
  printf("Tempo total (desde a a alocação da primeira "
         "matriz):\n\t%f\tsegundos\nTempo da multiplicação:\n\t%f\tsegundos\n",
         (float)(((t_global_fim - t_global_inicio) + 0.0) / CLOCKS_PER_SEC),
         (float)(((t_mult_fim - t_mult_inicio) + 0.0) / CLOCKS_PER_SEC));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x3c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x40(%rbp)
mov    0x2e0c(%rip),%rax
mov    (%rax),%edi
lea    0xe23(%rip),%rsi
call   1070 <setlocale@plt>
cmpl   $0x4,-0x8(%rbp)
jge    11fb <main+0x5b>
mov    $0x0,%al
call   1050 <print_argumentos_invalidos@plt>
mov    %eax,-0x4(%rbp)
jmp    1438 <main+0x298>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     122f <main+0x8f>
cmpl   $0x0,-0x18(%rbp)
jne    123e <main+0x9e>
mov    $0x0,%al
call   1050 <print_argumentos_invalidos@plt>
mov    %eax,-0x4(%rbp)
jmp    1438 <main+0x298>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xdbe(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1268 <main+0xc8>
movl   $0x0,-0x1c(%rbp)
jmp    12a6 <main+0x106>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xd96(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1292 <main+0xf2>
movl   $0x1,-0x1c(%rbp)
jmp    12a1 <main+0x101>
mov    $0x0,%al
call   1050 <print_argumentos_invalidos@plt>
mov    %eax,-0x4(%rbp)
jmp    1438 <main+0x298>
jmp    12a6 <main+0x106>
cmpl   $0x4,-0x8(%rbp)
jle    12da <main+0x13a>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
lea    0xd50(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12d5 <main+0x135>
movl   $0x1,-0x20(%rbp)
jmp    12da <main+0x13a>
mov    $0x0,%al
call   1030 <clock@plt>
movsd  %xmm0,-0x48(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1080 <gera_matriz@plt>
mov    %rax,-0x28(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     1315 <main+0x175>
mov    -0x28(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xd09(%rip),%rcx
call   10a0 <print_matriz@plt>
mov    -0x18(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1080 <gera_matriz@plt>
mov    %rax,-0x30(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     1344 <main+0x1a4>
mov    -0x30(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xcde(%rip),%rcx
call   10a0 <print_matriz@plt>
cmpl   $0x0,-0x1c(%rbp)
je     1386 <main+0x1e6>
mov    -0x30(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    -0x14(%rbp),%edx
call   10c0 <transpoe_matriz@plt>
mov    %rax,-0x30(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     1381 <main+0x1e1>
mov    -0x30(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xca5(%rip),%rcx
call   10a0 <print_matriz@plt>
jmp    1386 <main+0x1e6>
mov    $0x0,%al
call   1030 <clock@plt>
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
call   1090 <multiplica_matrizes@plt>
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   1030 <clock@plt>
movsd  %xmm0,-0x60(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     13d9 <main+0x239>
mov    -0x38(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xc52(%rip),%rcx
call   10a0 <print_matriz@plt>
mov    $0x0,%al
call   1030 <clock@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
subsd  -0x48(%rbp),%xmm0
xorps  %xmm1,%xmm1
addsd  %xmm1,%xmm0
mov    0x2beb(%rip),%rax
divsd  (%rax),%xmm0
cvtsd2ss %xmm0,%xmm0
movsd  -0x60(%rbp),%xmm1
subsd  -0x58(%rbp),%xmm1
xorps  %xmm2,%xmm2
addsd  %xmm2,%xmm1
mov    0x2bcb(%rip),%rax
divsd  (%rax),%xmm1
cvtsd2ss %xmm1,%xmm1
lea    0xbff(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbp
mov    %edi,%ebx
mov    0x2e26(%rip),%rax
mov    (%rax),%edi
lea    0xe3d(%rip),%rsi
call   1070 <setlocale@plt>
cmp    $0x3,%ebx
jle    121b <main+0x7b>
mov    0x8(%rbp),%rdi
call   10b0 <atoi@plt>
mov    %eax,%r14d
mov    0x10(%rbp),%rdi
call   10b0 <atoi@plt>
test   %r14d,%r14d
je     121b <main+0x7b>
mov    %eax,%r13d
test   %eax,%eax
je     121b <main+0x7b>
mov    0x18(%rbp),%rdi
lea    0xe12(%rip),%rsi
call   1060 <strcmp@plt>
mov    %rax,%r15
test   %rax,%rax
je     1230 <main+0x90>
mov    0x18(%rbp),%rdi
lea    0xdfc(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1239 <main+0x99>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <print_argumentos_invalidos@plt>
movl   $0x0,(%rsp)
jmp    1240 <main+0xa0>
movl   $0x1,(%rsp)
mov    $0x1,%r12b
cmp    $0x5,%ebx
jb     125f <main+0xbf>
mov    0x20(%rbp),%rdi
lea    0xdbc(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
setne  %r12b
xor    %eax,%eax
call   1030 <clock@plt>
movsd  %xmm0,0x10(%rsp)
mov    %r14d,%edi
mov    %r13d,%esi
call   1080 <gera_matriz@plt>
mov    %rax,%rbp
test   %r12b,%r12b
je     12a5 <main+0x105>
mov    %r13d,%edi
mov    %r14d,%esi
call   1080 <gera_matriz@plt>
mov    %rax,%rbx
test   %r15,%r15
je     1308 <main+0x168>
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %r14d,%edx
call   10c0 <transpoe_matriz@plt>
mov    %rax,%rbx
jmp    1308 <main+0x168>
lea    0xd6d(%rip),%rcx
mov    %rbp,%rdi
mov    %r14d,%esi
mov    %r13d,%edx
call   10a0 <print_matriz@plt>
mov    %r13d,%edi
mov    %r14d,%esi
call   1080 <gera_matriz@plt>
mov    %rax,%rbx
lea    0xd4e(%rip),%rcx
mov    %rax,%rdi
mov    %r13d,%esi
mov    %r14d,%edx
call   10a0 <print_matriz@plt>
test   %r15,%r15
je     1308 <main+0x168>
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %r14d,%edx
call   10c0 <transpoe_matriz@plt>
mov    %rax,%rbx
lea    0xd27(%rip),%rcx
mov    %rax,%rdi
mov    %r14d,%esi
mov    %r13d,%edx
call   10a0 <print_matriz@plt>
xor    %eax,%eax
call   1030 <clock@plt>
movsd  %xmm0,0x8(%rsp)
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
mov    %r13d,%ecx
mov    (%rsp),%r8d
call   1090 <multiplica_matrizes@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1030 <clock@plt>
movsd  %xmm0,(%rsp)
test   %r12b,%r12b
jne    1353 <main+0x1b3>
lea    0xce1(%rip),%rcx
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %r14d,%edx
call   10a0 <print_matriz@plt>
xor    %eax,%eax
call   1030 <clock@plt>
subsd  0x10(%rsp),%xmm0
xorpd  %xmm1,%xmm1
addsd  %xmm1,%xmm0
mov    0x2c79(%rip),%rax
movsd  (%rax),%xmm2
divsd  %xmm2,%xmm0
cvtsd2ss %xmm0,%xmm0
movsd  (%rsp),%xmm3
subsd  0x8(%rsp),%xmm3
addsd  %xmm1,%xmm3
divsd  %xmm2,%xmm3
xorps  %xmm1,%xmm1
cvtsd2ss %xmm3,%xmm1
lea    0xc8f(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@LC_NUMERIC = global i32 0
@.str = [11 x i8] c"pt_BR.utf8\00"
@.str.1 = [2 x i8] c"o\00"
@.str.2 = [2 x i8] c"t\00"
@.str.3 = [10 x i8] c"--verbose\00"
@.str.4 = [4 x i8] c"M1:\00"
@.str.5 = [4 x i8] c"M2:\00"
@.str.6 = [5 x i8] c"M2t:\00"
@.str.7 = [5 x i8] c"Mf: \00"
@.str.8 = [108 x i8] c"Tempo total (desde a a aloca\C3\A7\C3\A3o da primeira matriz):\0A\09%f\09segundos\0ATempo da multiplica\C3\A7\C3\A3o:\0A\09%f\09segundos\0A\00"
@CLOCKS_PER_SEC = global double 0.000000e+00
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca double**
%11 = alloca double**
%12 = alloca double**
%13 = alloca float
%14 = alloca float
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %9
store float 0.000000e+00, float* %13
store float 0.000000e+00, float* %14
%19 = load i32, i32* @LC_NUMERIC
%20 = call i32 @setlocale(i32 %19, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%21 = load i32, i32* %4
%22 = icmp slt i32 %21, 4
br i1 %22, label %23, label %25
23: ; preds = %2
%24 = call i32 (...) @print_argumentos_invalidos()
store i32 %24, i32* %3
br label %141
25: ; preds = %2
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = call i32 @atoi(i8* %28)
store i32 %29, i32* %6
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 2
%32 = load i8*, i8** %31
%33 = call i32 @atoi(i8* %32)
store i32 %33, i32* %7
%34 = load i32, i32* %6
%35 = icmp eq i32 %34, 0
br i1 %35, label %39, label %36
36: ; preds = %25
%37 = load i32, i32* %7
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36, %25
%40 = call i32 (...) @print_argumentos_invalidos()
store i32 %40, i32* %3
br label %141
41: ; preds = %36
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 3
%44 = load i8*, i8** %43
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %41
store i32 0, i32* %8
br label %58
48: ; preds = %41
%49 = load i8**, i8*** %5
%50 = getelementptr inbounds i8*, i8** %49, i64 3
%51 = load i8*, i8** %50
%52 = call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %55
54: ; preds = %48
store i32 1, i32* %8
br label %57
55: ; preds = %48
%56 = call i32 (...) @print_argumentos_invalidos()
store i32 %56, i32* %3
br label %141
57: ; preds = %54
br label %58
58: ; preds = %57, %47
%59 = load i32, i32* %4
%60 = icmp sgt i32 %59, 4
br i1 %60, label %61, label %69
61: ; preds = %58
%62 = load i8**, i8*** %5
%63 = getelementptr inbounds i8*, i8** %62, i64 4
%64 = load i8*, i8** %63
%65 = call i64 @strcmp(i8* %64, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %68
67: ; preds = %61
store i32 1, i32* %9
br label %68
68: ; preds = %67, %61
br label %69
69: ; preds = %68, %58
%70 = call double (...) @clock()
store double %70, double* %15
%71 = load i32, i32* %6
%72 = load i32, i32* %7
%73 = call double** @gera_matriz(i32 %71, i32 %72)
store double** %73, double*** %10
%74 = load i32, i32* %9
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %81
76: ; preds = %69
%77 = load double**, double*** %10
%78 = load i32, i32* %6
%79 = load i32, i32* %7
%80 = call i32 @print_matriz(double** %77, i32 %78, i32 %79, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %81
81: ; preds = %76, %69
%82 = load i32, i32* %7
%83 = load i32, i32* %6
%84 = call double** @gera_matriz(i32 %82, i32 %83)
store double** %84, double*** %11
%85 = load i32, i32* %9
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %92
87: ; preds = %81
%88 = load double**, double*** %11
%89 = load i32, i32* %7
%90 = load i32, i32* %6
%91 = call i32 @print_matriz(double** %88, i32 %89, i32 %90, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
br label %92
92: ; preds = %87, %81
%93 = load i32, i32* %8
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %108
95: ; preds = %92
%96 = load double**, double*** %11
%97 = load i32, i32* %7
%98 = load i32, i32* %6
%99 = call double** @transpoe_matriz(double** %96, i32 %97, i32 %98)
store double** %99, double*** %11
%100 = load i32, i32* %9
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %107
102: ; preds = %95
%103 = load double**, double*** %11
%104 = load i32, i32* %6
%105 = load i32, i32* %7
%106 = call i32 @print_matriz(double** %103, i32 %104, i32 %105, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %107
107: ; preds = %102, %95
br label %108
108: ; preds = %107, %92
%109 = call double (...) @clock()
store double %109, double* %17
%110 = load double**, double*** %10
%111 = load double**, double*** %11
%112 = load i32, i32* %6
%113 = load i32, i32* %7
%114 = load i32, i32* %8
%115 = call double** @multiplica_matrizes(double** %110, double** %111, i32 %112, i32 %113, i32 %114)
store double** %115, double*** %12
%116 = call double (...) @clock()
store double %116, double* %18
%117 = load i32, i32* %9
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %124
119: ; preds = %108
%120 = load double**, double*** %12
%121 = load i32, i32* %6
%122 = load i32, i32* %6
%123 = call i32 @print_matriz(double** %120, i32 %121, i32 %122, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %124
124: ; preds = %119, %108
%125 = call double (...) @clock()
store double %125, double* %16
%126 = load double, double* %16
%127 = load double, double* %15
%128 = fsub double %126, %127
%129 = fadd double %128, 0.000000e+00
%130 = load double, double* @CLOCKS_PER_SEC
%131 = fdiv double %129, %130
%132 = fptrunc double %131 to float
%133 = load double, double* %18
%134 = load double, double* %17
%135 = fsub double %133, %134
%136 = fadd double %135, 0.000000e+00
%137 = load double, double* @CLOCKS_PER_SEC
%138 = fdiv double %136, %137
%139 = fptrunc double %138 to float
%140 = call i32 @printf(i8* getelementptr inbounds ([108 x i8], [108 x i8]* @.str.8, i64 0, i64 0), float %132, float %139)
store i32 0, i32* %3
br label %141
141: ; preds = %124, %55, %39, %23
%142 = load i32, i32* %3
ret i32 %142
}

LLVM IR (-O2):
@LC_NUMERIC = global i32 0
@.str = [11 x i8] c"pt_BR.utf8\00"
@.str.1 = [2 x i8] c"o\00"
@.str.2 = [2 x i8] c"t\00"
@.str.3 = [10 x i8] c"--verbose\00"
@.str.4 = [4 x i8] c"M1:\00"
@.str.5 = [4 x i8] c"M2:\00"
@.str.6 = [5 x i8] c"M2t:\00"
@.str.7 = [5 x i8] c"Mf: \00"
@.str.8 = [108 x i8] c"Tempo total (desde a a aloca\C3\A7\C3\A3o da primeira matriz):\0A\09%f\09segundos\0ATempo da multiplica\C3\A7\C3\A3o:\0A\09%f\09segundos\0A\00"
@CLOCKS_PER_SEC = global double 0.000000e+00
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = load i32, i32* @LC_NUMERIC
%4 = tail call i32 @setlocale(i32 %3, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%5 = icmp slt i32 %0, 4
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 (...) @print_argumentos_invalidos()
br label %73
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i32 @atoi(i8* %10)
%12 = getelementptr inbounds i8*, i8** %1, i64 2
%13 = load i8*, i8** %12
%14 = tail call i32 @atoi(i8* %13)
%15 = icmp eq i32 %11, 0
%16 = icmp eq i32 %14, 0
%17 = select i1 %15, i1 true, i1 %16
br i1 %17, label %18, label %20
18: ; preds = %8
%19 = tail call i32 (...) @print_argumentos_invalidos()
br label %73
20: ; preds = %8
%21 = getelementptr inbounds i8*, i8** %1, i64 3
%22 = load i8*, i8** %21
%23 = tail call i64 @strcmp(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %31, label %25
25: ; preds = %20
%26 = load i8*, i8** %21
%27 = tail call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %25
%30 = tail call i32 (...) @print_argumentos_invalidos()
br label %73
31: ; preds = %25, %20
%32 = phi i32 [ 0, %20 ], [ 1, %25 ]
%33 = icmp ugt i32 %0, 4
br i1 %33, label %34, label %39
34: ; preds = %31
%35 = getelementptr inbounds i8*, i8** %1, i64 4
%36 = load i8*, i8** %35
%37 = tail call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%38 = icmp ne i64 %37, 0
br label %39
39: ; preds = %34, %31
%40 = phi i1 [ true, %31 ], [ %38, %34 ]
%41 = tail call double (...) @clock()
%42 = tail call double** @gera_matriz(i32 %11, i32 %14)
br i1 %40, label %43, label %45
43: ; preds = %39
%44 = tail call double** @gera_matriz(i32 %14, i32 %11)
br i1 %24, label %54, label %49
45: ; preds = %39
%46 = tail call i32 @print_matriz(double** %42, i32 %11, i32 %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%47 = tail call double** @gera_matriz(i32 %14, i32 %11)
%48 = tail call i32 @print_matriz(double** %47, i32 %14, i32 %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
br i1 %24, label %54, label %51
49: ; preds = %43
%50 = tail call double** @transpoe_matriz(double** %44, i32 %14, i32 %11)
br label %54
51: ; preds = %45
%52 = tail call double** @transpoe_matriz(double** %47, i32 %14, i32 %11)
%53 = tail call i32 @print_matriz(double** %52, i32 %11, i32 %14, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %54
54: ; preds = %49, %45, %51, %43
%55 = phi double** [ %52, %51 ], [ %50, %49 ], [ %44, %43 ], [ %47, %45 ]
%56 = tail call double (...) @clock()
%57 = tail call double** @multiplica_matrizes(double** %42, double** %55, i32 %11, i32 %14, i32 %32)
%58 = tail call double (...) @clock()
br i1 %40, label %61, label %59
59: ; preds = %54
%60 = tail call i32 @print_matriz(double** %57, i32 %11, i32 %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %61
61: ; preds = %59, %54
%62 = tail call double (...) @clock()
%63 = fsub double %62, %41
%64 = fadd double %63, 0.000000e+00
%65 = load double, double* @CLOCKS_PER_SEC
%66 = fdiv double %64, %65
%67 = fptrunc double %66 to float
%68 = fsub double %58, %56
%69 = fadd double %68, 0.000000e+00
%70 = fdiv double %69, %65
%71 = fptrunc double %70 to float
%72 = tail call i32 @printf(i8* getelementptr inbounds ([108 x i8], [108 x i8]* @.str.8, i64 0, i64 0), float %67, float %71)
br label %73
73: ; preds = %61, %29, %18, %6
%74 = phi i32 [ %7, %6 ], [ %19, %18 ], [ 0, %61 ], [ %30, %29 ]
ret i32 %74
}