#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 letraCoeficiente(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ system(char *);
void prodEscalar(int tipo) {
  int i = 0, j, vet[3] = {1, 1, 1};
  int vetResult[3] = {1, 1, 1};
  int op = 1, result = 0;
  system("cls");
  while (op) {
    if (i == 0) {
      printf("--vetor %d---\n", i + 1);
      for (j = 0; j < 3; j++) {
        printf("Informe o coeficiente de %c: ", letraCoeficiente(j));
        scanf("%d", &vetResult[j]);
      }
    } else {
      if (tipo == 1) {
        printf("---vetor %d---\n", i + 1);
        for (j = 0; j < 3; j++) {
          printf("Informe o coeficiente de %c: ", letraCoeficiente(j));
          scanf("%d", &vet[j]);
          vetResult[j] *= vet[j];
        }
      } else {
        float numReal;
        printf("Informe o numero real: ");
        scanf("%f", &numReal);
        for (j = 0; j < 3; j++) {
          vetResult[j] *= numReal;
        }
        break;
      }
    }
    i++;
    if (i > 1) {
      break;
    }
    system("cls");
  }
  printf("---Valor resultante (produto escalar)---\n");
  for (j = 0; j < 3; j++) {
    result += vetResult[j];
  }
  printf("Resultado: %d\n", result);
  system("pause");
}


x86 assembly (clang, -O0):
<prodEscalar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    0xea7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xea5(%rip),%eax
mov    %eax,-0x10(%rbp)
mov    0xe9f(%rip),%rax
mov    %rax,-0x24(%rbp)
mov    0xe9d(%rip),%eax
mov    %eax,-0x1c(%rbp)
movl   $0x1,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
lea    0xe89(%rip),%rdi
call   1030 <system@plt>
cmpl   $0x0,-0x28(%rbp)
je     132e <prodEscalar+0x1ee>
cmpl   $0x0,-0x8(%rbp)
jne    1215 <prodEscalar+0xd5>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x3,-0xc(%rbp)
jge    1210 <prodEscalar+0xd0>
mov    -0xc(%rbp),%edi
call   1050 <letraCoeficiente@plt>
mov    %eax,%esi
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0xc(%rbp),%rax
lea    -0x24(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11c3 <prodEscalar+0x83>
jmp    1305 <prodEscalar+0x1c5>
cmpl   $0x1,-0x4(%rbp)
jne    12a1 <prodEscalar+0x161>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x3,-0xc(%rbp)
jge    129c <prodEscalar+0x15c>
mov    -0xc(%rbp),%edi
call   1050 <letraCoeficiente@plt>
mov    %eax,%esi
lea    0xdc7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0xc(%rbp),%rax
lea    -0x18(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xdc8(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
movslq -0xc(%rbp),%rax
mov    -0x18(%rbp,%rax,4),%ecx
movslq -0xc(%rbp),%rax
imul   -0x24(%rbp,%rax,4),%ecx
mov    %ecx,-0x24(%rbp,%rax,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    123a <prodEscalar+0xfa>
jmp    1300 <prodEscalar+0x1c0>
lea    0xda5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdaf(%rip),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x3,-0xc(%rbp)
jge    12fb <prodEscalar+0x1bb>
movss  -0x30(%rbp),%xmm1
movslq -0xc(%rbp),%rax
cvtsi2ssl -0x24(%rbp,%rax,4),%xmm0
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%ecx
mov    %ecx,-0x24(%rbp,%rax,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12c8 <prodEscalar+0x188>
jmp    132e <prodEscalar+0x1ee>
jmp    1305 <prodEscalar+0x1c5>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    131d <prodEscalar+0x1dd>
jmp    132e <prodEscalar+0x1ee>
lea    0xcf4(%rip),%rdi
call   1030 <system@plt>
jmp    1194 <prodEscalar+0x54>
lea    0xd33(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x3,-0xc(%rbp)
jge    1369 <prodEscalar+0x229>
movslq -0xc(%rbp),%rax
mov    -0x24(%rbp,%rax,4),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1343 <prodEscalar+0x203>
mov    -0x2c(%rbp),%esi
lea    0xd1f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd20(%rip),%rdi
call   1030 <system@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prodEscalar>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
mov    %edi,%r12d
mov    0xea3(%rip),%eax
mov    %eax,0x18(%rsp)
mov    0xe90(%rip),%rcx
mov    %rcx,0x10(%rsp)
mov    %eax,0x8(%rsp)
mov    %rcx,(%rsp)
lea    0x8(%rsp),%r15
lea    0xe83(%rip),%r14
mov    %r14,%rdi
call   1040 <system@plt>
lea    0xe9a(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
call   1060 <letraCoeficiente@plt>
lea    0xe5e(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe69(%rip),%rbp
mov    %rsp,%rsi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    $0x1,%edi
call   1060 <letraCoeficiente@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    $0x2,%edi
call   1060 <letraCoeficiente@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r14,%rdi
call   1040 <system@plt>
cmp    $0x1,%r12d
jne    12dc <prodEscalar+0x18c>
lea    0xdfe(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
call   1060 <letraCoeficiente@plt>
lea    0xdc3(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdce(%rip),%r14
lea    0x10(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    (%rsp),%eax
imul   0x10(%rsp),%eax
mov    %eax,(%rsp)
mov    $0x1,%edi
call   1060 <letraCoeficiente@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x4(%rsp),%eax
imul   0x14(%rsp),%eax
mov    %eax,0x4(%rsp)
mov    $0x2,%edi
call   1060 <letraCoeficiente@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x18(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x8(%rsp),%eax
imul   0x18(%rsp),%eax
jmp    1339 <prodEscalar+0x1e9>
lea    0xd5e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd68(%rip),%rdi
lea    0x1c(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
cvtsi2ssl (%rsp),%xmm0
movss  0x1c(%rsp),%xmm1
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,(%rsp)
xorps  %xmm0,%xmm0
cvtsi2ssl 0x4(%rsp),%xmm0
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,0x4(%rsp)
xorps  %xmm0,%xmm0
cvtsi2ssl 0x8(%rsp),%xmm0
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,0x8(%rsp)
lea    0xd2d(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%esi
add    (%rsp),%esi
add    0x8(%rsp),%esi
lea    0xd01(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd02(%rip),%rdi
call   1040 <system@plt>
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.prodEscalar.vet = [3 x i32] [i32 1, i32 1, i32 1]
@__const.prodEscalar.vetResult = [3 x i32] [i32 1, i32 1, i32 1]
@.str = [4 x i8] c"cls\00"
@.str.1 = [15 x i8] c"--vetor %d---\0A\00"
@.str.2 = [30 x i8] c"Informe o coeficiente de %c: \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [16 x i8] c"---vetor %d---\0A\00"
@.str.5 = [24 x i8] c"Informe o numero real: \00"
@.str.6 = [3 x i8] c"%f\00"
@.str.7 = [42 x i8] c"---Valor resultante (produto escalar)---\0A\00"
@.str.8 = [15 x i8] c"Resultado: %d\0A\00"
@.str.9 = [6 x i8] c"pause\00"
define void @prodEscalar(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [3 x i32]
%6 = alloca [3 x i32]
%7 = alloca i32
%8 = alloca i32
%9 = alloca float
store i32 %0, i32* %2
store i32 0, i32* %3
%10 = bitcast [3 x i32]* %5 to i8*
%11 = bitcast [3 x i32]* %6 to i8*
store i32 1, i32* %7
store i32 0, i32* %8
%12 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %13
13: ; preds = %95, %1
%14 = load i32, i32* %7
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %97
16: ; preds = %13
%17 = load i32, i32* %3
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %38
19: ; preds = %16
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 1
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %21)
store i32 0, i32* %4
br label %23
23: ; preds = %34, %19
%24 = load i32, i32* %4
%25 = icmp slt i32 %24, 3
br i1 %25, label %26, label %37
26: ; preds = %23
%27 = load i32, i32* %4
%28 = call i32 @letraCoeficiente(i32 %27)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %28)
%30 = load i32, i32* %4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 %31
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %32)
br label %34
34: ; preds = %26
%35 = load i32, i32* %4
%36 = add nsw i32 %35, 1
store i32 %36, i32* %4
br label %23
37: ; preds = %23
br label %89
38: ; preds = %16
%39 = load i32, i32* %2
%40 = icmp eq i32 %39, 1
br i1 %40, label %41, label %69
41: ; preds = %38
%42 = load i32, i32* %3
%43 = add nsw i32 %42, 1
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %43)
store i32 0, i32* %4
br label %45
45: ; preds = %65, %41
%46 = load i32, i32* %4
%47 = icmp slt i32 %46, 3
br i1 %47, label %48, label %68
48: ; preds = %45
%49 = load i32, i32* %4
%50 = call i32 @letraCoeficiente(i32 %49)
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 %53
%55 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %54)
%56 = load i32, i32* %4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 %57
%59 = load i32, i32* %58
%60 = load i32, i32* %4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 %61
%63 = load i32, i32* %62
%64 = mul nsw i32 %63, %59
store i32 %64, i32* %62
br label %65
65: ; preds = %48
%66 = load i32, i32* %4
%67 = add nsw i32 %66, 1
store i32 %67, i32* %4
br label %45
68: ; preds = %45
br label %88
69: ; preds = %38
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%71 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %9)
store i32 0, i32* %4
br label %72
72: ; preds = %84, %69
%73 = load i32, i32* %4
%74 = icmp slt i32 %73, 3
br i1 %74, label %75, label %87
75: ; preds = %72
%76 = load float, float* %9
%77 = load i32, i32* %4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 %78
%80 = load i32, i32* %79
%81 = sitofp i32 %80 to float
%82 = fmul float %81, %76
%83 = fptosi float %82 to i32
store i32 %83, i32* %79
br label %84
84: ; preds = %75
%85 = load i32, i32* %4
%86 = add nsw i32 %85, 1
store i32 %86, i32* %4
br label %72
87: ; preds = %72
br label %97
88: ; preds = %68
br label %89
89: ; preds = %88, %37
%90 = load i32, i32* %3
%91 = add nsw i32 %90, 1
store i32 %91, i32* %3
%92 = load i32, i32* %3
%93 = icmp sgt i32 %92, 1
br i1 %93, label %94, label %95
94: ; preds = %89
br label %97
95: ; preds = %89
%96 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %13
97: ; preds = %94, %87, %13
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %4
br label %99
99: ; preds = %109, %97
%100 = load i32, i32* %4
%101 = icmp slt i32 %100, 3
br i1 %101, label %102, label %112
102: ; preds = %99
%103 = load i32, i32* %4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 %104
%106 = load i32, i32* %105
%107 = load i32, i32* %8
%108 = add nsw i32 %107, %106
store i32 %108, i32* %8
br label %109
109: ; preds = %102
%110 = load i32, i32* %4
%111 = add nsw i32 %110, 1
store i32 %111, i32* %4
br label %99
112: ; preds = %99
%113 = load i32, i32* %8
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 %113)
%115 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@__const.prodEscalar.vetResult = [3 x i32] [i32 1, i32 1, i32 1]
@.str = [4 x i8] c"cls\00"
@.str.1 = [15 x i8] c"--vetor %d---\0A\00"
@.str.2 = [30 x i8] c"Informe o coeficiente de %c: \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [16 x i8] c"---vetor %d---\0A\00"
@.str.5 = [24 x i8] c"Informe o numero real: \00"
@.str.6 = [3 x i8] c"%f\00"
@.str.8 = [15 x i8] c"Resultado: %d\0A\00"
@.str.9 = [6 x i8] c"pause\00"
@str = [41 x i8] c"---Valor resultante (produto escalar)---\00"
define void @prodEscalar(i32 %0) {
%2 = alloca [3 x i32]
%3 = alloca [3 x i32]
%4 = alloca float
%5 = bitcast [3 x i32]* %2 to i8*
%6 = bitcast [3 x i32]* %3 to i8*
%7 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i32 %0, 1
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 1)
%10 = call i32 @letraCoeficiente(i32 0)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %10)
%12 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %12)
%14 = call i32 @letraCoeficiente(i32 1)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %14)
%16 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %16)
%18 = call i32 @letraCoeficiente(i32 2)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %18)
%20 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %20)
%22 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br i1 %8, label %43, label %23
23: ; preds = %1
%24 = bitcast float* %4 to i8*
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%26 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %4)
%27 = load float, float* %4
%28 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%29 = load i32, i32* %28
%30 = sitofp i32 %29 to float
%31 = fmul float %27, %30
%32 = fptosi float %31 to i32
store i32 %32, i32* %28
%33 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
%34 = load i32, i32* %33
%35 = sitofp i32 %34 to float
%36 = fmul float %27, %35
%37 = fptosi float %36 to i32
store i32 %37, i32* %33
%38 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
%39 = load i32, i32* %38
%40 = sitofp i32 %39 to float
%41 = fmul float %27, %40
%42 = fptosi float %41 to i32
store i32 %42, i32* %38
br label %69
43: ; preds = %1
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 2)
%45 = call i32 @letraCoeficiente(i32 0)
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %45)
%47 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%48 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %47)
%49 = load i32, i32* %47
%50 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%51 = load i32, i32* %50
%52 = mul nsw i32 %51, %49
store i32 %52, i32* %50
%53 = call i32 @letraCoeficiente(i32 1)
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %53)
%55 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 1
%56 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %55)
%57 = load i32, i32* %55
%58 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
%59 = load i32, i32* %58
%60 = mul nsw i32 %59, %57
store i32 %60, i32* %58
%61 = call i32 @letraCoeficiente(i32 2)
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %61)
%63 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 2
%64 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %63)
%65 = load i32, i32* %63
%66 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
%67 = load i32, i32* %66
%68 = mul nsw i32 %67, %65
store i32 %68, i32* %66
br label %69
69: ; preds = %43, %23
%70 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str, i64 0, i64 0))
%71 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%72 = load i32, i32* %71
%73 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
%74 = load i32, i32* %73
%75 = add nsw i32 %74, %72
%76 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
%77 = load i32, i32* %76
%78 = add nsw i32 %77, %75
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 %78)
%80 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
ret void
}