#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 M_PI;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ system(char *);
int main() {
  int num = 0, opcao = 0;
  float raio, p, l1, l2, l3;
  do {
    printf("\n-=- Menu de opções -=- ");
    printf("\n-=- Perímetro do círculo..............[1]");
    printf("\n-=- Perímetro do retângulo...........[2]");
    printf("\n-=- Perímetro do triângulo............[3]");
    printf("\n-=- Sair..............................[4]");
    printf("\n\n\n-=- Digite sua opção: ");
    scanf("%d", &opcao);
    switch (opcao) {
    case 1: {
      printf("\nDigite o valor do raio: ");
      scanf("%f", &raio);
      p = 2 * M_PI * raio;
      printf("O perímetro é: %f\n", p);
      system("pause");
      break;
    }
    case 2: {
      printf("\nDigite o valor da largura: ");
      scanf("%f", &l1);
      printf("\nDigite o valor da altura: ");
      scanf("%f", &l2);
      p = (l1 + l2) * 2;
      printf("O perímetro é: %f\n", p);
      system("pause");
      break;
    }
    case 3: {
      printf("\nDigite o valor do primeiro lado: ");
      scanf("%f", &l1);
      printf("\nDigite o valor do segundo lado: ");
      scanf("%f", &l2);
      printf("\nDigite o valor do terceiro lado: ");
      scanf("%f", &l3);
      p = l1 + l2 + l3;
      printf("O perímetro é: %f\n", p);
      system("pause");
      break;
    }
    case 4: {
      printf("\n\nSair!");
      break;
    }
    default: {
      printf("\nNúmero digitado: TENTE OUTROS VALORES!\n");
      break;
    }
    }
  } while (opcao != 4);
  printf("\nFim do programa\n\n");
  system("pause");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
lea    0xec0(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x29(%rbp)
call   1040 <printf@plt>
mov    -0x29(%rbp),%al
lea    0xec7(%rip),%rdi
call   1040 <printf@plt>
mov    -0x29(%rbp),%al
lea    0xee5(%rip),%rdi
call   1040 <printf@plt>
mov    -0x29(%rbp),%al
lea    0xf02(%rip),%rdi
call   1040 <printf@plt>
mov    -0x29(%rbp),%al
lea    0xf20(%rip),%rdi
call   1040 <printf@plt>
mov    -0x29(%rbp),%al
lea    0xf3c(%rip),%rdi
call   1040 <printf@plt>
mov    -0x29(%rbp),%al
lea    0xf49(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x3,%eax
ja     1379 <main+0x249>
mov    -0x28(%rbp),%rax
lea    0xe28(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf13(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf1f(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    0x2ddc(%rip),%rax
mov    (%rax),%eax
shl    $0x1,%eax
cvtsi2ss %eax,%xmm0
mulss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeed(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xef4(%rip),%rdi
call   1030 <system@plt>
jmp    1387 <main+0x257>
lea    0xee9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xebd(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xee6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe9d(%rip),%rdi
lea    -0x1c(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movss  -0x18(%rbp),%xmm0
addss  -0x1c(%rbp),%xmm0
movss  0xd67(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe6a(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe71(%rip),%rdi
call   1030 <system@plt>
jmp    1387 <main+0x257>
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe3a(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe1a(%rip),%rdi
lea    -0x1c(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdfa(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movss  -0x18(%rbp),%xmm0
addss  -0x1c(%rbp),%xmm0
addss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdce(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xdd5(%rip),%rdi
call   1030 <system@plt>
jmp    1387 <main+0x257>
lea    0xe6b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1387 <main+0x257>
lea    0xe60(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    138c <main+0x25c>
cmpl   $0x4,-0xc(%rbp)
jne    114d <main+0x1d>
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd86(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movl   $0x0,0xc(%rsp)
lea    0xf54(%rip),%rbx
lea    0xf78(%rip),%rbp
lea    0xf8d(%rip),%r14
lea    0xc(%rsp),%r15
lea    0xe89(%rip),%r13
lea    0xf97(%rip),%r12
jmp    11de <main+0x9e>
lea    0xf74(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x2e44(%rip),%rax
mov    (%rax),%eax
add    %eax,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
mulss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xf58(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xf5f(%rip),%rdi
call   1040 <system@plt>
cmpl   $0x4,0xc(%rsp)
je     1343 <main+0x203>
lea    0xe2b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe38(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe57(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe75(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     12a0 <main+0x160>
movslq 0x0(%r13,%rax,4),%rax
add    %r13,%rax
jmp    *%rax
lea    0xedf(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xedf(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movss  0x8(%rsp),%xmm0
addss  0x4(%rsp),%xmm0
addss  %xmm0,%xmm0
jmp    11b5 <main+0x75>
nopl   0x0(%rax)
lea    0xf47(%rip),%rdi
call   1030 <puts@plt>
jmp    11d3 <main+0x93>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0xea5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xeab(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xeb0(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movss  0x8(%rsp),%xmm0
addss  0x4(%rsp),%xmm0
addss  0x10(%rsp),%xmm0
jmp    11b5 <main+0x75>
xchg   %ax,%ax
lea    0xe9d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    11d3 <main+0x93>
lea    0xe92(%rip),%rdi
call   1030 <puts@plt>
lea    0xdd7(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [27 x i8] c"\0A-=- Menu de op\C3\A7\C3\B5es -=- \00"
@.str.1 = [45 x i8] c"\0A-=- Per\C3\ADmetro do c\C3\ADrculo..............[1]\00"
@.str.2 = [44 x i8] c"\0A-=- Per\C3\ADmetro do ret\C3\A2ngulo...........[2]\00"
@.str.3 = [45 x i8] c"\0A-=- Per\C3\ADmetro do tri\C3\A2ngulo............[3]\00"
@.str.4 = [43 x i8] c"\0A-=- Sair..............................[4]\00"
@.str.5 = [28 x i8] c"\0A\0A\0A-=- Digite sua op\C3\A7\C3\A3o: \00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [26 x i8] c"\0ADigite o valor do raio: \00"
@.str.8 = [3 x i8] c"%f\00"
@M_PI = global i32 0
@.str.9 = [21 x i8] c"O per\C3\ADmetro \C3\A9: %f\0A\00"
@.str.10 = [6 x i8] c"pause\00"
@.str.11 = [29 x i8] c"\0ADigite o valor da largura: \00"
@.str.12 = [28 x i8] c"\0ADigite o valor da altura: \00"
@.str.13 = [35 x i8] c"\0ADigite o valor do primeiro lado: \00"
@.str.14 = [34 x i8] c"\0ADigite o valor do segundo lado: \00"
@.str.15 = [35 x i8] c"\0ADigite o valor do terceiro lado: \00"
@.str.16 = [8 x i8] c"\0A\0ASair!\00"
@.str.17 = [42 x i8] c"\0AN\C3\BAmero digitado: TENTE OUTROS VALORES!\0A\00"
@.str.18 = [19 x i8] c"\0AFim do programa\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
br label %9
9: ; preds = %64, %0
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %3)
%17 = load i32, i32* %3
switch i32 %17, label %61 [
i32 1, label %18
i32 2, label %30
i32 3, label %43
i32 4, label %59
]
18: ; preds = %9
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %4)
%21 = load i32, i32* @M_PI
%22 = mul nsw i32 2, %21
%23 = sitofp i32 %22 to float
%24 = load float, float* %4
%25 = fmul float %23, %24
store float %25, float* %5
%26 = load float, float* %5
%27 = fpext float %26 to double
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), double %27)
%29 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
br label %63
30: ; preds = %9
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0))
%32 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %6)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0))
%34 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %7)
%35 = load float, float* %6
%36 = load float, float* %7
%37 = fadd float %35, %36
%38 = fmul float %37, 2.000000e+00
store float %38, float* %5
%39 = load float, float* %5
%40 = fpext float %39 to double
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), double %40)
%42 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
br label %63
43: ; preds = %9
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0))
%45 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %6)
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0))
%47 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %7)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.15, i64 0, i64 0))
%49 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %8)
%50 = load float, float* %6
%51 = load float, float* %7
%52 = fadd float %50, %51
%53 = load float, float* %8
%54 = fadd float %52, %53
store float %54, float* %5
%55 = load float, float* %5
%56 = fpext float %55 to double
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), double %56)
%58 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
br label %63
59: ; preds = %9
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
br label %63
61: ; preds = %9
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.17, i64 0, i64 0))
br label %63
63: ; preds = %61, %59, %43, %30, %18
br label %64
64: ; preds = %63
%65 = load i32, i32* %3
%66 = icmp ne i32 %65, 4
br i1 %66, label %9, label %67
67: ; preds = %64
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.18, i64 0, i64 0))
%69 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [27 x i8] c"\0A-=- Menu de op\C3\A7\C3\B5es -=- \00"
@.str.1 = [45 x i8] c"\0A-=- Per\C3\ADmetro do c\C3\ADrculo..............[1]\00"
@.str.2 = [44 x i8] c"\0A-=- Per\C3\ADmetro do ret\C3\A2ngulo...........[2]\00"
@.str.3 = [45 x i8] c"\0A-=- Per\C3\ADmetro do tri\C3\A2ngulo............[3]\00"
@.str.4 = [43 x i8] c"\0A-=- Sair..............................[4]\00"
@.str.5 = [28 x i8] c"\0A\0A\0A-=- Digite sua op\C3\A7\C3\A3o: \00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [26 x i8] c"\0ADigite o valor do raio: \00"
@.str.8 = [3 x i8] c"%f\00"
@M_PI = global i32 0
@.str.9 = [21 x i8] c"O per\C3\ADmetro \C3\A9: %f\0A\00"
@.str.10 = [6 x i8] c"pause\00"
@.str.11 = [29 x i8] c"\0ADigite o valor da largura: \00"
@.str.12 = [28 x i8] c"\0ADigite o valor da altura: \00"
@.str.13 = [35 x i8] c"\0ADigite o valor do primeiro lado: \00"
@.str.14 = [34 x i8] c"\0ADigite o valor do segundo lado: \00"
@.str.15 = [35 x i8] c"\0ADigite o valor do terceiro lado: \00"
@.str.16 = [8 x i8] c"\0A\0ASair!\00"
@str = [18 x i8] c"\0AFim do programa\0A\00"
@str.19 = [41 x i8] c"\0AN\C3\BAmero digitado: TENTE OUTROS VALORES!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%7 = bitcast float* %2 to i8*
%8 = bitcast float* %3 to i8*
%9 = bitcast float* %4 to i8*
%10 = bitcast float* %5 to i8*
br label %11
11: ; preds = %62, %0
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%18 = call i32 (i8*, ...) @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 %60 [
i32 1, label %20
i32 2, label %31
i32 3, label %43
i32 4, label %58
]
20: ; preds = %11
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
%22 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %2)
%23 = load i32, i32* @M_PI
%24 = shl nsw i32 %23, 1
%25 = sitofp i32 %24 to float
%26 = load float, float* %2
%27 = fmul float %26, %25
%28 = fpext float %27 to double
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), double %28)
%30 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
br label %62
31: ; preds = %11
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0))
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %3)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0))
%35 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %4)
%36 = load float, float* %3
%37 = load float, float* %4
%38 = fadd float %36, %37
%39 = fmul float %38, 2.000000e+00
%40 = fpext float %39 to double
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), double %40)
%42 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
br label %62
43: ; preds = %11
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0))
%45 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %3)
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0))
%47 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %4)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.15, i64 0, i64 0))
%49 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %5)
%50 = load float, float* %3
%51 = load float, float* %4
%52 = fadd float %50, %51
%53 = load float, float* %5
%54 = fadd float %52, %53
%55 = fpext float %54 to double
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), double %55)
%57 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
br label %62
58: ; preds = %11
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
br label %62
60: ; preds = %11
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.19, i64 0, i64 0))
br label %62
62: ; preds = %20, %31, %43, %58, %60
%63 = load i32, i32* %1
%64 = icmp eq i32 %63, 4
br i1 %64, label %65, label %11
65: ; preds = %62
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%67 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
ret i32 0
}