void ex5() {
  print("\n------------------------------\n");
  int i;
  for (i = 0; i < 3; i++) {
    float x, y, r1, r2;
    int z;
    char str[16];
    if (i == 0) {
      x = 0;
      y = 2;
      strcpy(str, "x = 0; y = 2;");
    } else if (i == 1) {
      x = -4;
      y = 2;
      strcpy(str, "x = -4; y = 2;");
    } else {
      x = 3;
      y = 0;
      strcpy(str, "x = 3; y = 0;");
    }
    print("-------------------------------------------");
    printf("|%4s%-6s%4s|%6s%-14s%6s|\n", "", "Pontos", "", "", str, "");
    print("-------------------------------------------");
    printf("|%4s%-6s%4s|%8s|%8s|%8s|\n", "", "1", "", "--------", "--------",
           "--------");
    z = 0;
    printf("|%4s%-6s%4s|%8s|%8s|%8d|\n", "", "2", "", "--------", "--------",
           z);
    r1 = x - 2 * y;
    printf("|%4s%-6s%4s|%8.2f|%8s|%8d|\n", "", "3", "", r1, "--------", z);
    r2 = -2 * x + 4 * y;
    if ((r1 + r2) < 0) {
      if (x > 0) {
        if (y >= 0)
          z = 10;
      }
    }
    printf("|%4s%-6s%4s|%8.2f|%8.2f|%8d|\n", "", "4", "", r1, r2, z);
    if ((x < 0) && (y > 0))
      z = 100;
    else {
      if (r1 > r2)
        z = 1234;
      else
        z = 1;
    }
    printf("|%4s%-6s%4s|%8.2f|%8.2f|%8d|\n", "", "5", "", r1, r2, z);
    print("-------------------------------------------");
  }
  print("\n------------------------------\n");
}


x86 assembly (clang, -O0):
<ex5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x3,-0x4(%rbp)
jge    1426 <ex5+0x2f6>
cmpl   $0x0,-0x4(%rbp)
jne    118b <ex5+0x5b>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xe93(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xeb0(%rip),%rsi
call   1030 <strcpy@plt>
jmp    11ee <ex5+0xbe>
cmpl   $0x1,-0x4(%rbp)
jne    11c4 <ex5+0x94>
movss  0xe6b(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xe5a(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xe85(%rip),%rsi
call   1030 <strcpy@plt>
jmp    11e9 <ex5+0xb9>
movss  0xe34(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xe6a(%rip),%rsi
call   1030 <strcpy@plt>
jmp    11ee <ex5+0xbe>
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
lea    -0x30(%rbp),%r9
lea    0xe81(%rip),%rdi
lea    0xe22(%rip),%rax
lea    0xe8d(%rip),%rdx
mov    %rax,%rsi
mov    %rax,%rcx
mov    %rax,%r8
mov    %rax,(%rsp)
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe2c(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
lea    0xe6b(%rip),%rdi
lea    0xdeb(%rip),%rcx
lea    0xe77(%rip),%rdx
lea    0xe2c(%rip),%rax
mov    %rcx,%rsi
mov    %rax,%r8
mov    %rax,%r9
mov    %rax,(%rsp)
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
lea    0xe4d(%rip),%rdi
lea    0xdb1(%rip),%rcx
lea    0xe59(%rip),%rdx
lea    0xdf2(%rip),%r9
mov    %rcx,%rsi
mov    %r9,%r8
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <printf@plt>
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
addss  %xmm1,%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x18(%rbp),%r9d
lea    0xe19(%rip),%rdi
lea    0xd61(%rip),%rcx
lea    0xe27(%rip),%rdx
lea    0xda2(%rip),%r8
mov    %rcx,%rsi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x8(%rbp),%xmm1
movss  0xd18(%rip),%xmm0
mulss  -0xc(%rbp),%xmm0
addss  %xmm1,%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x10(%rbp),%xmm1
addss  -0x14(%rbp),%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm1,%xmm0
jbe    134f <ex5+0x21f>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    134a <ex5+0x21a>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     1345 <ex5+0x215>
movl   $0xa,-0x18(%rbp)
jmp    134a <ex5+0x21a>
jmp    134f <ex5+0x21f>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    -0x18(%rbp),%r8d
lea    0xd93(%rip),%rdi
lea    0xcbd(%rip),%rcx
lea    0xda3(%rip),%rdx
mov    %rcx,%rsi
mov    $0x2,%al
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    13ae <ex5+0x27e>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    13ae <ex5+0x27e>
movl   $0x64,-0x18(%rbp)
jmp    13d5 <ex5+0x2a5>
movss  -0x10(%rbp),%xmm0
ucomiss -0x14(%rbp),%xmm0
jbe    13c9 <ex5+0x299>
movl   $0x4d2,-0x18(%rbp)
jmp    13d0 <ex5+0x2a0>
movl   $0x1,-0x18(%rbp)
jmp    13d5 <ex5+0x2a5>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    -0x18(%rbp),%r8d
lea    0xd0d(%rip),%rdi
lea    0xc37(%rip),%rcx
lea    0xd1f(%rip),%rdx
mov    %rcx,%rsi
mov    $0x2,%al
call   1040 <printf@plt>
lea    0xc4b(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    114d <ex5+0x1d>
lea    0xbe3(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ex5>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
lea    0xef3(%rip),%rdi
xor    %eax,%eax
call   1040 <print@plt>
lea    0xf31(%rip),%r14
lea    0xefe(%rip),%rbx
lea    0xf46(%rip),%rbp
lea    0xfbf(%rip),%r15
lea    0xfd8(%rip),%r13
xor    %r12d,%r12d
jmp    1356 <ex5+0x236>
nopw   0x0(%rax,%rax,1)
movabs $0x3b30203d207920,%rax
mov    %rax,0x16(%rsp)
movabs $0x79203b33203d2078,%rax
3b 20 79
mov    %rax,0x10(%rsp)
movaps 0xe7b(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <print@plt>
mov    %rbx,(%rsp)
lea    0xef1(%rip),%rdi
mov    %rbx,%rsi
lea    0xf01(%rip),%rdx
mov    %rbx,%rcx
mov    %rbx,%r8
lea    0x10(%rsp),%r9
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <print@plt>
mov    %rbp,(%rsp)
lea    0xee1(%rip),%rdi
mov    %rbx,%rsi
lea    0xef1(%rip),%rdx
mov    %rbx,%rcx
mov    %rbp,%r8
mov    %rbp,%r9
xor    %eax,%eax
call   1030 <printf@plt>
movl   $0x0,(%rsp)
lea    0xed5(%rip),%rdi
mov    %rbx,%rsi
lea    0xee5(%rip),%rdx
mov    %rbx,%rcx
mov    %rbp,%r8
mov    %rbp,%r9
xor    %eax,%eax
call   1030 <printf@plt>
movaps 0x20(%rsp),%xmm1
movaps %xmm1,0x20(%rsp)
movaps %xmm1,%xmm2
mulss  0xded(%rip),%xmm2
movaps %xmm1,%xmm0
shufps $0x55,%xmm1,%xmm0
movaps %xmm0,0x50(%rsp)
shufps $0xd4,%xmm1,%xmm2
shufps $0x52,%xmm1,%xmm2
movaps %xmm1,%xmm0
addps  %xmm1,%xmm0
subps  %xmm0,%xmm2
movaps %xmm2,0x40(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
movsd  %xmm0,0x30(%rsp)
lea    0xe8c(%rip),%rdi
mov    %rbx,%rsi
lea    0xe9e(%rip),%rdx
mov    %rbx,%rcx
mov    %rbp,%r8
xor    %r9d,%r9d
mov    $0x1,%al
call   1030 <printf@plt>
movaps 0x40(%rsp),%xmm0
movaps %xmm0,%xmm2
shufps $0x55,%xmm0,%xmm2
movaps %xmm2,0x60(%rsp)
addss  %xmm2,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
mov    $0x0,%r8d
mov    $0xa,%eax
cmova  %eax,%r8d
movaps 0x50(%rsp),%xmm0
ucomiss %xmm1,%xmm0
mov    $0x0,%eax
cmovbe %eax,%r8d
xorps  %xmm1,%xmm1
cvtss2sd %xmm2,%xmm1
movsd  %xmm1,0x38(%rsp)
mov    %r15,%rdi
mov    %rbx,%rsi
lea    0xe59(%rip),%rdx
mov    %rbx,%rcx
movsd  0x30(%rsp),%xmm0
mov    $0x2,%al
call   1030 <printf@plt>
movaps 0x40(%rsp),%xmm0
ucomiss 0x60(%rsp),%xmm0
mov    $0x1,%eax
mov    $0x4d2,%ecx
cmova  %ecx,%eax
xorps  %xmm1,%xmm1
ucomiss 0x50(%rsp),%xmm1
mov    %eax,%r8d
mov    $0x64,%ecx
cmova  %ecx,%r8d
movaps 0x20(%rsp),%xmm0
ucomiss %xmm1,%xmm0
cmovbe %eax,%r8d
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
movsd  0x30(%rsp),%xmm0
movsd  0x38(%rsp),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <print@plt>
add    $0x1,%r12d
cmp    $0x3,%r12d
je     13ba <ex5+0x29a>
cmp    $0x1,%r12d
je     1390 <ex5+0x270>
test   %r12d,%r12d
jne    1170 <ex5+0x50>
movabs $0x3b32203d207920,%rax
mov    %rax,0x16(%rsp)
movabs $0x79203b30203d2078,%rax
3b 20 79
mov    %rax,0x10(%rsp)
movss  0xc95(%rip),%xmm0
jmp    1195 <ex5+0x75>
movabs $0x3b32203d207920,%rax
mov    %rax,0x17(%rsp)
movabs $0x203b342d203d2078,%rax
34 3b 20
mov    %rax,0x10(%rsp)
movaps 0xc4b(%rip),%xmm0
jmp    1195 <ex5+0x75>
lea    0xc67(%rip),%rdi
xor    %eax,%eax
call   1040 <print@plt>
add    $0x78,%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 = [14 x i8] c"x = 0; y = 2;\00"
@.str.2 = [15 x i8] c"x = -4; y = 2;\00"
@.str.3 = [14 x i8] c"x = 3; y = 0;\00"
@.str.4 = [44 x i8] c"-------------------------------------------\00"
@.str.5 = [26 x i8] c"|%4s%-6s%4s|%6s%-14s%6s|\0A\00"
@.str.6 = [1 x i8] zeroinitializer
@.str.7 = [7 x i8] c"Pontos\00"
@.str.8 = [26 x i8] c"|%4s%-6s%4s|%8s|%8s|%8s|\0A\00"
@.str.9 = [2 x i8] c"1\00"
@.str.10 = [9 x i8] c"--------\00"
@.str.11 = [26 x i8] c"|%4s%-6s%4s|%8s|%8s|%8d|\0A\00"
@.str.12 = [2 x i8] c"2\00"
@.str.13 = [28 x i8] c"|%4s%-6s%4s|%8.2f|%8s|%8d|\0A\00"
@.str.14 = [2 x i8] c"3\00"
@.str.15 = [30 x i8] c"|%4s%-6s%4s|%8.2f|%8.2f|%8d|\0A\00"
@.str.16 = [2 x i8] c"4\00"
@.str.17 = [2 x i8] c"5\00"
define void @ex5() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca i32
%7 = alloca [16 x i8]
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
br label %9
9: ; preds = %88, %0
%10 = load i32, i32* %1
%11 = icmp slt i32 %10, 3
br i1 %11, label %12, label %91
12: ; preds = %9
%13 = load i32, i32* %1
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %12
store float 0.000000e+00, float* %2
store float 2.000000e+00, float* %3
%16 = getelementptr inbounds [16 x i8], [16 x i8]* %7, i64 0, i64 0
%17 = call i8* @strcpy(i8* %16, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %28
18: ; preds = %12
%19 = load i32, i32* %1
%20 = icmp eq i32 %19, 1
br i1 %20, label %21, label %24
21: ; preds = %18
store float -4.000000e+00, float* %2
store float 2.000000e+00, float* %3
%22 = getelementptr inbounds [16 x i8], [16 x i8]* %7, i64 0, i64 0
%23 = call i8* @strcpy(i8* %22, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %27
24: ; preds = %18
store float 3.000000e+00, float* %2
store float 0.000000e+00, float* %3
%25 = getelementptr inbounds [16 x i8], [16 x i8]* %7, i64 0, i64 0
%26 = call i8* @strcpy(i8* %25, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
br label %27
27: ; preds = %24, %21
br label %28
28: ; preds = %27, %15
%29 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%30 = getelementptr inbounds [16 x i8], [16 x i8]* %7, i64 0, i64 0
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* %30, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%32 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %6
%34 = load i32, i32* %6
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 %34)
%36 = load float, float* %2
%37 = load float, float* %3
%38 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %37, float %36)
store float %38, float* %4
%39 = load float, float* %4
%40 = fpext float %39 to double
%41 = load i32, i32* %6
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), double %40, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 %41)
%43 = load float, float* %2
%44 = load float, float* %3
%45 = fmul float 4.000000e+00, %44
%46 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %43, float %45)
store float %46, float* %5
%47 = load float, float* %4
%48 = load float, float* %5
%49 = fadd float %47, %48
%50 = fcmp olt float %49, 0.000000e+00
br i1 %50, label %51, label %60
51: ; preds = %28
%52 = load float, float* %2
%53 = fcmp ogt float %52, 0.000000e+00
br i1 %53, label %54, label %59
54: ; preds = %51
%55 = load float, float* %3
%56 = fcmp oge float %55, 0.000000e+00
br i1 %56, label %57, label %58
57: ; preds = %54
store i32 10, i32* %6
br label %58
58: ; preds = %57, %54
br label %59
59: ; preds = %58, %51
br label %60
60: ; preds = %59, %28
%61 = load float, float* %4
%62 = fpext float %61 to double
%63 = load float, float* %5
%64 = fpext float %63 to double
%65 = load i32, i32* %6
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), double %62, double %64, i32 %65)
%67 = load float, float* %2
%68 = fcmp olt float %67, 0.000000e+00
br i1 %68, label %69, label %73
69: ; preds = %60
%70 = load float, float* %3
%71 = fcmp ogt float %70, 0.000000e+00
br i1 %71, label %72, label %73
72: ; preds = %69
store i32 100, i32* %6
br label %80
73: ; preds = %69, %60
%74 = load float, float* %4
%75 = load float, float* %5
%76 = fcmp ogt float %74, %75
br i1 %76, label %77, label %78
77: ; preds = %73
store i32 1234, i32* %6
br label %79
78: ; preds = %73
store i32 1, i32* %6
br label %79
79: ; preds = %78, %77
br label %80
80: ; preds = %79, %72
%81 = load float, float* %4
%82 = fpext float %81 to double
%83 = load float, float* %5
%84 = fpext float %83 to double
%85 = load i32, i32* %6
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), double %82, double %84, i32 %85)
%87 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
br label %88
88: ; preds = %80
%89 = load i32, i32* %1
%90 = add nsw i32 %89, 1
store i32 %90, i32* %1
br label %9
91: ; preds = %9
%92 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(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 = [14 x i8] c"x = 0; y = 2;\00"
@.str.2 = [15 x i8] c"x = -4; y = 2;\00"
@.str.3 = [14 x i8] c"x = 3; y = 0;\00"
@.str.4 = [44 x i8] c"-------------------------------------------\00"
@.str.5 = [26 x i8] c"|%4s%-6s%4s|%6s%-14s%6s|\0A\00"
@.str.6 = [1 x i8] zeroinitializer
@.str.7 = [7 x i8] c"Pontos\00"
@.str.8 = [26 x i8] c"|%4s%-6s%4s|%8s|%8s|%8s|\0A\00"
@.str.9 = [2 x i8] c"1\00"
@.str.10 = [9 x i8] c"--------\00"
@.str.11 = [26 x i8] c"|%4s%-6s%4s|%8s|%8s|%8d|\0A\00"
@.str.12 = [2 x i8] c"2\00"
@.str.13 = [28 x i8] c"|%4s%-6s%4s|%8.2f|%8s|%8d|\0A\00"
@.str.14 = [2 x i8] c"3\00"
@.str.15 = [30 x i8] c"|%4s%-6s%4s|%8.2f|%8.2f|%8d|\0A\00"
@.str.16 = [2 x i8] c"4\00"
@.str.17 = [2 x i8] c"5\00"
define void @ex5() {
%1 = alloca [16 x i8]
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%3 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
br label %4
4: ; preds = %0, %9
%5 = phi i32 [ 0, %0 ], [ %41, %9 ]
switch i32 %5, label %8 [
i32 0, label %6
i32 1, label %7
]
6: ; preds = %4
br label %9
7: ; preds = %4
br label %9
8: ; preds = %4
br label %9
9: ; preds = %7, %8, %6
%10 = phi <2 x float> [ <float 2.000000e+00, float 0.000000e+00>, %6 ], [ <float 2.000000e+00, float -4.000000e+00>, %7 ], [ <float 0.000000e+00, float 3.000000e+00>, %8 ]
%11 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* %3, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 0)
%16 = extractelement <2 x float> %10, i64 0
%17 = fmul float %16, 4.000000e+00
%18 = extractelement <2 x float> %10, i64 1
%19 = insertelement <2 x float> poison, float %18, i64 0
%20 = insertelement <2 x float> %19, float %17, i64 1
%21 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %10, <2 x float> <float -2.000000e+00, float -2.000000e+00>, <2 x float> %20)
%22 = extractelement <2 x float> %21, i64 0
%23 = fpext float %22 to double
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), double %23, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 0)
%25 = extractelement <2 x float> %21, i64 1
%26 = fadd float %22, %25
%27 = fcmp olt float %26, 0.000000e+00
%28 = fcmp ogt float %18, 0.000000e+00
%29 = and i1 %28, %27
%30 = select i1 %29, i32 10, i32 0
%31 = fpext float %25 to double
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), double %23, double %31, i32 %30)
%33 = fcmp olt float %18, 0.000000e+00
%34 = fcmp ogt float %16, 0.000000e+00
%35 = and i1 %34, %33
%36 = fcmp ogt float %22, %25
%37 = select i1 %36, i32 1234, i32 1
%38 = select i1 %35, i32 100, i32 %37
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), double %23, double %31, i32 %38)
%40 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%41 = add nuw nsw i32 %5, 1
%42 = icmp eq i32 %41, 3
br i1 %42, label %43, label %4
43: ; preds = %9
%44 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret void
}