#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("clear");
  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) {
      printf("Deseja informar outro vetor? (1 - Sim / 0 - Nao): ");
      scanf("%d", &op);
    }
    system("clear");
  }
  printf("---Valor resultante (produto escalar)---\n");
  for (j = 0; j < 3; j++) {
    result += vetResult[j];
  }
  printf("Resultado: %d\n", result);
}


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     1349 <prodEscalar+0x209>
cmpl   $0x0,-0x8(%rbp)
jne    1215 <prodEscalar+0xd5>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
lea    0xe8b(%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    0xe40(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0xc(%rbp),%rax
lea    -0x24(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe41(%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    0xe13(%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    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0xc(%rbp),%rax
lea    -0x18(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xdca(%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    0xda7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdb1(%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    1349 <prodEscalar+0x209>
jmp    1305 <prodEscalar+0x1c5>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    1338 <prodEscalar+0x1f8>
lea    0xd4b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd0f(%rip),%rdi
lea    -0x28(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xcd9(%rip),%rdi
call   1030 <system@plt>
jmp    1194 <prodEscalar+0x54>
lea    0xd4d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x3,-0xc(%rbp)
jge    1384 <prodEscalar+0x244>
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    135e <prodEscalar+0x21e>
mov    -0x2c(%rbp),%esi
lea    0xd39(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prodEscalar>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %edi,%ebx
mov    0xea2(%rip),%eax
mov    %eax,0x20(%rsp)
mov    0xe8f(%rip),%rcx
mov    %rcx,0x18(%rsp)
mov    %eax,0x10(%rsp)
mov    %rcx,0x8(%rsp)
movl   $0x1,0x14(%rsp)
lea    0xe7e(%rip),%r15
mov    %r15,%rdi
call   1040 <system@plt>
lea    0xe75(%rip),%r13
lea    0xe8c(%rip),%rbp
lea    0x14(%rsp),%r14
xor    %r12d,%r12d
jmp    1258 <prodEscalar+0x108>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0x1,%r12d
lea    0xe67(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
call   1060 <letraCoeficiente@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    $0x1,%edi
call   1060 <letraCoeficiente@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    $0x2,%edi
call   1060 <letraCoeficiente@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r15,%rdi
call   1040 <system@plt>
cmpl   $0x0,0x14(%rsp)
je     138b <prodEscalar+0x23b>
test   %r12d,%r12d
je     11c0 <prodEscalar+0x70>
cmp    $0x1,%ebx
jne    1328 <prodEscalar+0x1d8>
add    $0x1,%r12d
lea    0xdbe(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
call   1060 <letraCoeficiente@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
lea    0x18(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x8(%rsp),%eax
imul   0x18(%rsp),%eax
mov    %eax,0x8(%rsp)
mov    $0x1,%edi
call   1060 <letraCoeficiente@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
lea    0x1c(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0xc(%rsp),%eax
imul   0x1c(%rsp),%eax
mov    %eax,0xc(%rsp)
mov    $0x2,%edi
call   1060 <letraCoeficiente@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
lea    0x20(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x10(%rsp),%eax
imul   0x20(%rsp),%eax
mov    %eax,0x10(%rsp)
lea    0xd45(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rsi
jmp    123b <prodEscalar+0xeb>
lea    0xd14(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd1e(%rip),%rdi
lea    0x24(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
cvtsi2ssl 0x8(%rsp),%xmm0
movss  0x24(%rsp),%xmm1
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,0x8(%rsp)
xorps  %xmm0,%xmm0
cvtsi2ssl 0xc(%rsp),%xmm0
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,0xc(%rsp)
xorps  %xmm0,%xmm0
cvtsi2ssl 0x10(%rsp),%xmm0
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,0x10(%rsp)
lea    0xd0e(%rip),%rdi
call   1030 <puts@plt>
mov    0xc(%rsp),%esi
add    0x8(%rsp),%esi
add    0x10(%rsp),%esi
lea    0xce7(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
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 = [6 x i8] c"clear\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 = [51 x i8] c"Deseja informar outro vetor? (1 - Sim / 0 - Nao): \00"
@.str.8 = [42 x i8] c"---Valor resultante (produto escalar)---\0A\00"
@.str.9 = [15 x i8] c"Resultado: %d\0A\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 ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %13
13: ; preds = %97, %1
%14 = load i32, i32* %7
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %99
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 %99
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 %97
94: ; preds = %89
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
%96 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %7)
br label %97
97: ; preds = %94, %89
%98 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %13
99: ; preds = %87, %13
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %4
br label %101
101: ; preds = %111, %99
%102 = load i32, i32* %4
%103 = icmp slt i32 %102, 3
br i1 %103, label %104, label %114
104: ; preds = %101
%105 = load i32, i32* %4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 %106
%108 = load i32, i32* %107
%109 = load i32, i32* %8
%110 = add nsw i32 %109, %108
store i32 %110, i32* %8
br label %111
111: ; preds = %104
%112 = load i32, i32* %4
%113 = add nsw i32 %112, 1
store i32 %113, i32* %4
br label %101
114: ; preds = %101
%115 = load i32, i32* %8
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 %115)
ret void
}

LLVM IR (-O2):
@__const.prodEscalar.vetResult = [3 x i32] [i32 1, i32 1, i32 1]
@.str = [6 x i8] c"clear\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 = [51 x i8] c"Deseja informar outro vetor? (1 - Sim / 0 - Nao): \00"
@.str.9 = [15 x i8] c"Resultado: %d\0A\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 i32
%5 = alloca float
%6 = bitcast [3 x i32]* %2 to i8*
%7 = bitcast [3 x i32]* %3 to i8*
%8 = bitcast i32* %4 to i8*
store i32 1, i32* %4
%9 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i32 %0, 1
%11 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%12 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%13 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 1
%14 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
%15 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 2
%16 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
%17 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%18 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
%19 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
br label %20
20: ; preds = %1, %76
%21 = phi i32 [ 0, %1 ], [ %78, %76 ]
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %33
23: ; preds = %20
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 1)
%25 = call i32 @letraCoeficiente(i32 0)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %25)
%27 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %17)
%28 = call i32 @letraCoeficiente(i32 1)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %28)
%30 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %18)
%31 = call i32 @letraCoeficiente(i32 2)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %31)
br label %76
33: ; preds = %20
br i1 %10, label %54, label %34
34: ; preds = %33
%35 = bitcast float* %5 to i8*
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %5)
%38 = load float, float* %5
%39 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%40 = load i32, i32* %39
%41 = sitofp i32 %40 to float
%42 = fmul float %38, %41
%43 = fptosi float %42 to i32
store i32 %43, i32* %39
%44 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
%45 = load i32, i32* %44
%46 = sitofp i32 %45 to float
%47 = fmul float %38, %46
%48 = fptosi float %47 to i32
store i32 %48, i32* %44
%49 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
%50 = load i32, i32* %49
%51 = sitofp i32 %50 to float
%52 = fmul float %38, %51
%53 = fptosi float %52 to i32
store i32 %53, i32* %49
br label %83
54: ; preds = %33
%55 = add nuw nsw i32 %21, 1
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %55)
%57 = call i32 @letraCoeficiente(i32 0)
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %57)
%59 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %11)
%60 = load i32, i32* %11
%61 = load i32, i32* %12
%62 = mul nsw i32 %61, %60
store i32 %62, i32* %12
%63 = call i32 @letraCoeficiente(i32 1)
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %63)
%65 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %13)
%66 = load i32, i32* %13
%67 = load i32, i32* %14
%68 = mul nsw i32 %67, %66
store i32 %68, i32* %14
%69 = call i32 @letraCoeficiente(i32 2)
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %69)
%71 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %15)
%72 = load i32, i32* %15
%73 = load i32, i32* %16
%74 = mul nsw i32 %73, %72
store i32 %74, i32* %16
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
br label %76
76: ; preds = %23, %54
%77 = phi i32* [ %19, %23 ], [ %4, %54 ]
%78 = phi i32 [ 1, %23 ], [ %55, %54 ]
%79 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %77)
%80 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%81 = load i32, i32* %4
%82 = icmp eq i32 %81, 0
br i1 %82, label %83, label %20
83: ; preds = %76, %34
%84 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str, i64 0, i64 0))
%85 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%86 = load i32, i32* %85
%87 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
%88 = load i32, i32* %87
%89 = add nsw i32 %88, %86
%90 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
%91 = load i32, i32* %90
%92 = add nsw i32 %91, %89
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 %92)
ret void
}