#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 pow(int, int);
int /*<<< orphan*/ print(char *);
int /*<<< orphan*/ printf(char *, int, int, ...);
int /*<<< orphan*/ scanf(char *, int *);
void ex6() {
  print("\n------------------------------\n");
  int opcao;
  while (1) {
    print("\nDigite:");
    print("\t[1] Para calcular o volume de uma esfera.");
    print("\t[2] Para calcular o volume de um paralelepipedo.");
    print("\t[0] Para sair.");
    print("Informe a opcao desejada:");
    scanf("%d", &opcao);
    if (opcao == 0) {
      break;
    } else if (opcao == 1) {
      int raio;
      print("Informe o raio da esfera:");
      scanf("%d", &raio);
      while (!(raio > 0)) {
        print("Valor invalido, tente novamente:");
        scanf("%d", &raio);
      }
      float volume = (4 * 3.14 * pow(raio, 3)) / 3.;
      printf("O volume da esfera de raio = %d e: %.2f u.v.\n", raio, volume);
    } else if (opcao == 2) {
      int base, largura, altura;
      print("Informe a base do paralelepipedo:");
      scanf("%d", &base);
      while (!(base > 0)) {
        print("Valor invalido, tente novamente:");
        scanf("%d", &base);
      }
      print("Informe a largura do paralelepipedo:");
      scanf("%d", &largura);
      while (!(largura > 0)) {
        print("Valor invalido, tente novamente:");
        scanf("%d", &largura);
      }
      print("Informe a altura do paralelepipedo:");
      scanf("%d", &altura);
      while (!(altura > 0)) {
        print("Valor invalido, tente novamente:");
        scanf("%d", &altura);
      }
      int volume = base * altura * largura;
      printf("O volume do paralelepipedo (%dx%dx%d) e: %d\n u.v.", base,
             largura, altura, volume);
    } else {
      print("Opcao invalida!");
    }
  }
  print("\n------------------------------\n");
}


x86 assembly (clang, -O0):
<ex6>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xec1(%rip),%rdi
call   1040 <print@plt>
lea    0xed6(%rip),%rdi
call   1040 <print@plt>
lea    0xed3(%rip),%rdi
call   1040 <print@plt>
lea    0xef2(%rip),%rdi
call   1040 <print@plt>
lea    0xf18(%rip),%rdi
call   1040 <print@plt>
lea    0xf1c(%rip),%rdi
call   1040 <print@plt>
lea    0xf2a(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,-0x4(%rbp)
jne    11af <ex6+0x6f>
jmp    13a5 <ex6+0x265>
cmpl   $0x1,-0x4(%rbp)
jne    1259 <ex6+0x119>
lea    0xf04(%rip),%rdi
call   1040 <print@plt>
lea    0xef5(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
setg   %al
xor    $0xff,%al
test   $0x1,%al
jne    11eb <ex6+0xab>
jmp    120c <ex6+0xcc>
lea    0xeec(%rip),%rdi
call   1040 <print@plt>
lea    0xec3(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
jmp    11d5 <ex6+0x95>
mov    -0x8(%rbp),%edi
mov    $0x3,%esi
call   1060 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xde3(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xdcf(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%esi
cvttss2si -0xc(%rbp),%edx
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    139b <ex6+0x25b>
cmpl   $0x2,-0x4(%rbp)
jne    138a <ex6+0x24a>
lea    0xec3(%rip),%rdi
call   1040 <print@plt>
lea    0xe4b(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,-0x10(%rbp)
setg   %al
xor    $0xff,%al
test   $0x1,%al
jne    1295 <ex6+0x155>
jmp    12b6 <ex6+0x176>
lea    0xe42(%rip),%rdi
call   1040 <print@plt>
lea    0xe19(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
jmp    127f <ex6+0x13f>
lea    0xe92(%rip),%rdi
call   1040 <print@plt>
lea    0xdf8(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,-0x14(%rbp)
setg   %al
xor    $0xff,%al
test   $0x1,%al
jne    12e8 <ex6+0x1a8>
jmp    1309 <ex6+0x1c9>
lea    0xdef(%rip),%rdi
call   1040 <print@plt>
lea    0xdc6(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1050 <scanf@plt>
jmp    12d2 <ex6+0x192>
lea    0xe64(%rip),%rdi
call   1040 <print@plt>
lea    0xda5(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,-0x18(%rbp)
setg   %al
xor    $0xff,%al
test   $0x1,%al
jne    133b <ex6+0x1fb>
jmp    135c <ex6+0x21c>
lea    0xd9c(%rip),%rdi
call   1040 <print@plt>
lea    0xd73(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1050 <scanf@plt>
jmp    1325 <ex6+0x1e5>
mov    -0x10(%rbp),%eax
imul   -0x18(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
lea    0xe1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1396 <ex6+0x256>
lea    0xe39(%rip),%rdi
call   1040 <print@plt>
jmp    139b <ex6+0x25b>
jmp    13a0 <ex6+0x260>
jmp    1154 <ex6+0x14>
lea    0xc64(%rip),%rdi
call   1040 <print@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ex6>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xebb(%rip),%rdi
call   1040 <print@plt>
lea    0xf60(%rip),%rbp
lea    0x14(%rsp),%r14
lea    0x8(%rsp),%r15
lea    0xf6c(%rip),%r12
lea    0xc(%rsp),%r13
lea    0x10(%rsp),%rbx
jmp    11a1 <ex6+0x61>
xchg   %ax,%ax
mov    0x8(%rsp),%esi
mov    %esi,%r8d
imul   %ecx,%r8d
mov    0xc(%rsp),%edx
imul   %edx,%r8d
lea    0xffe(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe89(%rip),%rdi
call   1040 <print@plt>
lea    0xe86(%rip),%rdi
call   1040 <print@plt>
lea    0xea5(%rip),%rdi
call   1040 <print@plt>
lea    0xecb(%rip),%rdi
call   1040 <print@plt>
lea    0xecf(%rip),%rdi
call   1040 <print@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
call   1050 <scanf@plt>
mov    0x14(%rsp),%eax
cmp    $0x1,%eax
je     1210 <ex6+0xd0>
cmp    $0x2,%eax
je     1240 <ex6+0x100>
test   %eax,%eax
je     1311 <ex6+0x1d1>
lea    0xfc5(%rip),%rdi
call   1040 <print@plt>
jmp    11a1 <ex6+0x61>
nopl   0x0(%rax)
lea    0xead(%rip),%rdi
nopw   0x0(%rax,%rax,1)
call   1040 <print@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
mov    0x8(%rsp),%edi
test   %edi,%edi
jg     1270 <ex6+0x130>
mov    %r12,%rdi
jmp    1220 <ex6+0xe0>
nopl   (%rax)
lea    0xee6(%rip),%rdi
nopw   0x0(%rax,%rax,1)
call   1040 <print@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
cmpl   $0x0,0x8(%rsp)
jg     12b0 <ex6+0x170>
mov    %r12,%rdi
jmp    1250 <ex6+0x110>
nopl   0x0(%rax)
mov    $0x3,%esi
call   1060 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xd77(%rip),%xmm0
divsd  0xd77(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0x8(%rsp),%esi
cvttss2si %xmm0,%edx
lea    0xe5b(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    11a1 <ex6+0x61>
lea    0xe98(%rip),%rdi
nopw   0x0(%rax,%rax,1)
call   1040 <print@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1050 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
jg     12e0 <ex6+0x1a0>
mov    %r12,%rdi
jmp    12c0 <ex6+0x180>
nopl   0x0(%rax)
lea    0xe8d(%rip),%rdi
nopw   0x0(%rax,%rax,1)
call   1040 <print@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    0x10(%rsp),%ecx
test   %ecx,%ecx
jg     1180 <ex6+0x40>
mov    %r12,%rdi
jmp    12f0 <ex6+0x1b0>
lea    0xcf8(%rip),%rdi
call   1040 <print@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [33 x i8] c"\0A------------------------------\0A\00"
@.str.1 = [9 x i8] c"\0ADigite:\00"
@.str.2 = [43 x i8] c"\09[1] Para calcular o volume de uma esfera.\00"
@.str.3 = [50 x i8] c"\09[2] Para calcular o volume de um paralelepipedo.\00"
@.str.4 = [16 x i8] c"\09[0] Para sair.\00"
@.str.5 = [26 x i8] c"Informe a opcao desejada:\00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [26 x i8] c"Informe o raio da esfera:\00"
@.str.8 = [33 x i8] c"Valor invalido, tente novamente:\00"
@.str.9 = [46 x i8] c"O volume da esfera de raio = %d e: %.2f u.v.\0A\00"
@.str.10 = [34 x i8] c"Informe a base do paralelepipedo:\00"
@.str.11 = [37 x i8] c"Informe a largura do paralelepipedo:\00"
@.str.12 = [36 x i8] c"Informe a altura do paralelepipedo:\00"
@.str.13 = [50 x i8] c"O volume do paralelepipedo (%dx%dx%d) e: %d\0A u.v.\00"
@.str.14 = [16 x i8] c"Opcao invalida!\00"
define void @ex6() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %0, %91
%10 = call i32 @print(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @print(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 @print(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 @print(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 @print(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %1)
%16 = load i32, i32* %1
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %9
br label %92
19: ; preds = %9
%20 = load i32, i32* %1
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %43
22: ; preds = %19
%23 = call i32 @print(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %2)
br label %25
25: ; preds = %29, %22
%26 = load i32, i32* %2
%27 = icmp sgt i32 %26, 0
%28 = xor i1 %27, true
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %2)
br label %25
32: ; preds = %25
%33 = load i32, i32* %2
%34 = call i32 @pow(i32 %33, i32 3)
%35 = sitofp i32 %34 to double
%36 = fmul double 1.256000e+01, %35
%37 = fdiv double %36, 3.000000e+00
%38 = fptrunc double %37 to float
store float %38, float* %3
%39 = load i32, i32* %2
%40 = load float, float* %3
%41 = fptosi float %40 to i32
%42 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.9, i64 0, i64 0), i32 %39, i32 %41)
br label %90
43: ; preds = %19
%44 = load i32, i32* %1
%45 = icmp eq i32 %44, 2
br i1 %45, label %46, label %87
46: ; preds = %43
%47 = call i32 @print(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
%48 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %4)
br label %49
49: ; preds = %53, %46
%50 = load i32, i32* %4
%51 = icmp sgt i32 %50, 0
%52 = xor i1 %51, true
br i1 %52, label %53, label %56
53: ; preds = %49
%54 = call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%55 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %4)
br label %49
56: ; preds = %49
%57 = call i32 @print(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
%58 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %5)
br label %59
59: ; preds = %63, %56
%60 = load i32, i32* %5
%61 = icmp sgt i32 %60, 0
%62 = xor i1 %61, true
br i1 %62, label %63, label %66
63: ; preds = %59
%64 = call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%65 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %5)
br label %59
66: ; preds = %59
%67 = call i32 @print(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
%68 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %6)
br label %69
69: ; preds = %73, %66
%70 = load i32, i32* %6
%71 = icmp sgt i32 %70, 0
%72 = xor i1 %71, true
br i1 %72, label %73, label %76
73: ; preds = %69
%74 = call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%75 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %6)
br label %69
76: ; preds = %69
%77 = load i32, i32* %4
%78 = load i32, i32* %6
%79 = mul nsw i32 %77, %78
%80 = load i32, i32* %5
%81 = mul nsw i32 %79, %80
store i32 %81, i32* %7
%82 = load i32, i32* %4
%83 = load i32, i32* %5
%84 = load i32, i32* %6
%85 = load i32, i32* %7
%86 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0), i32 %82, i32 %83, i32 %84, i32 %85)
br label %89
87: ; preds = %43
%88 = call i32 @print(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0))
br label %89
89: ; preds = %87, %76
br label %90
90: ; preds = %89, %32
br label %91
91: ; preds = %90
br label %9
92: ; preds = %18
%93 = call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [33 x i8] c"\0A------------------------------\0A\00"
@.str.1 = [9 x i8] c"\0ADigite:\00"
@.str.2 = [43 x i8] c"\09[1] Para calcular o volume de uma esfera.\00"
@.str.3 = [50 x i8] c"\09[2] Para calcular o volume de um paralelepipedo.\00"
@.str.4 = [16 x i8] c"\09[0] Para sair.\00"
@.str.5 = [26 x i8] c"Informe a opcao desejada:\00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [26 x i8] c"Informe o raio da esfera:\00"
@.str.8 = [33 x i8] c"Valor invalido, tente novamente:\00"
@.str.9 = [46 x i8] c"O volume da esfera de raio = %d e: %.2f u.v.\0A\00"
@.str.10 = [34 x i8] c"Informe a base do paralelepipedo:\00"
@.str.11 = [37 x i8] c"Informe a largura do paralelepipedo:\00"
@.str.12 = [36 x i8] c"Informe a altura do paralelepipedo:\00"
@.str.13 = [50 x i8] c"O volume do paralelepipedo (%dx%dx%d) e: %d\0A u.v.\00"
@.str.14 = [16 x i8] c"Opcao invalida!\00"
define void @ex6() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = tail call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%7 = bitcast i32* %1 to i8*
%8 = bitcast i32* %3 to i8*
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = bitcast i32* %2 to i8*
br label %12
12: ; preds = %40, %0
%13 = call i32 @print(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 @print(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%15 = call i32 @print(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0))
%16 = call i32 @print(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%17 = call i32 @print(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %1)
%19 = load i32, i32* %1
switch i32 %19, label %78 [
i32 0, label %80
i32 1, label %20
i32 2, label %41
]
20: ; preds = %12
%21 = call i32 @print(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %2)
%23 = load i32, i32* %2
%24 = icmp slt i32 %23, 1
br i1 %24, label %25, label %30
25: ; preds = %20, %25
%26 = call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %2)
%28 = load i32, i32* %2
%29 = icmp slt i32 %28, 1
br i1 %29, label %25, label %30
30: ; preds = %25, %20
%31 = phi i32 [ %23, %20 ], [ %28, %25 ]
%32 = call i32 @pow(i32 %31, i32 3)
%33 = sitofp i32 %32 to double
%34 = fmul double %33, 1.256000e+01
%35 = fdiv double %34, 3.000000e+00
%36 = fptrunc double %35 to float
%37 = load i32, i32* %2
%38 = fptosi float %36 to i32
%39 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.9, i64 0, i64 0), i32 %37, i32 %38)
br label %40
40: ; preds = %30, %78, %71
br label %12
41: ; preds = %12
%42 = call i32 @print(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
%43 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %3)
%44 = load i32, i32* %3
%45 = icmp slt i32 %44, 1
br i1 %45, label %46, label %51
46: ; preds = %41, %46
%47 = call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%48 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %3)
%49 = load i32, i32* %3
%50 = icmp slt i32 %49, 1
br i1 %50, label %46, label %51
51: ; preds = %46, %41
%52 = call i32 @print(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
%53 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %4)
%54 = load i32, i32* %4
%55 = icmp slt i32 %54, 1
br i1 %55, label %56, label %61
56: ; preds = %51, %56
%57 = call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%58 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %4)
%59 = load i32, i32* %4
%60 = icmp slt i32 %59, 1
br i1 %60, label %56, label %61
61: ; preds = %56, %51
%62 = call i32 @print(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
%63 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %5)
%64 = load i32, i32* %5
%65 = icmp slt i32 %64, 1
br i1 %65, label %66, label %71
66: ; preds = %61, %66
%67 = call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%68 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %5)
%69 = load i32, i32* %5
%70 = icmp slt i32 %69, 1
br i1 %70, label %66, label %71
71: ; preds = %66, %61
%72 = phi i32 [ %64, %61 ], [ %69, %66 ]
%73 = load i32, i32* %3
%74 = mul nsw i32 %73, %72
%75 = load i32, i32* %4
%76 = mul nsw i32 %74, %75
%77 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0), i32 %73, i32 %75, i32 %72, i32 %76)
br label %40
78: ; preds = %12
%79 = call i32 @print(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0))
br label %40
80: ; preds = %12
%81 = call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret void
}