#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 /*<<< orphan*/ bubble(int *, int, float *, float *);
int /*<<< orphan*/ gera(int *, int);
int /*<<< orphan*/ gera_vetor_crescente(int *, int);
int /*<<< orphan*/ gera_vetor_decrescente(int *, int);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int *vetor_aleatorio;
  int *vetor_desc;
  int *vetor_asc;
  vetor_aleatorio = (int *)malloc(100000 * sizeof(int));
  vetor_desc = (int *)malloc(100000 * sizeof(int));
  vetor_asc = (int *)malloc(100000 * sizeof(int));
  int i = 0;
  float contador_comparacao = 0;
  float contador_atribuicao = 0;
  printf("Vamos testar o buble para ordenar o vetor aleatorio\n");
  for (i = 0; i < 10; i++) {
    printf("Gerando o vetor aleatorio...\n");
    gera(vetor_aleatorio, 100000);
    printf("Vetor aleatorio gerado \n");
    printf("Agora vamos ordenar o vetor aleatorio...\n");
    bubble(vetor_aleatorio, 100000, &contador_comparacao, &contador_atribuicao);
  }
  printf("Vetor aleatorio: Contador comparacao %.f Contador atribuicao %.f \n",
         contador_comparacao, contador_atribuicao);
  i = 0;
  contador_comparacao = 0;
  contador_atribuicao = 0;
  printf("Vamos testar o bubble para ordenar o vetor crescente\n");
  for (i = 0; i < 10; i++) {
    printf("Gerando o vetor crescente...\n");
    gera_vetor_crescente(vetor_asc, 100000);
    printf("Vetor crescente gerado \n");
    printf("Agora vamos ordenar o vetor crescente...\n");
    bubble(vetor_asc, 100000, &contador_comparacao, &contador_atribuicao);
  }
  printf("Vetor crescente: Contador comparacao %.f Contador atribuicao %.f \n",
         contador_comparacao, contador_atribuicao);
  i = 0;
  contador_comparacao = 0;
  contador_atribuicao = 0;
  printf("Vamos testar o bubble para ordenar o vetor decrescente\n");
  for (i = 0; i < 10; i++) {
    printf("Gerando o vetor decrescente...\n");
    gera_vetor_decrescente(vetor_desc, 100000);
    printf("Vetor decrescente gerado \n");
    printf("Agora vamos ordenar o vetor decrescente...\n");
    bubble(vetor_desc, 100000, &contador_comparacao, &contador_atribuicao);
  }
  printf(
      "Vetor decrescente: Contador comparacao %.f Contador atribuicao %.f \n",
      contador_comparacao, contador_atribuicao);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x61a80,%edi
call   1060 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    $0x61a80,%edi
call   1060 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    $0x61a80,%edi
call   1060 <malloc@plt>
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
lea    0xe49(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0xa,-0x24(%rbp)
jge    122b <main+0xcb>
lea    0xe5f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    $0x186a0,%esi
call   1080 <gera@plt>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    $0x186a0,%esi
lea    -0x28(%rbp),%rdx
lea    -0x2c(%rbp),%rcx
call   1040 <bubble@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11c5 <main+0x65>
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x2c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xe52(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movl   $0x0,-0x24(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0xa,-0x24(%rbp)
jge    12dd <main+0x17d>
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    $0x186a0,%esi
call   1070 <gera_vetor_crescente@plt>
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe94(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    $0x186a0,%esi
lea    -0x28(%rbp),%rdx
lea    -0x2c(%rbp),%rcx
call   1040 <bubble@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1277 <main+0x117>
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x2c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xe7a(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movl   $0x0,-0x24(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0xa,-0x24(%rbp)
jge    138f <main+0x22f>
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    $0x186a0,%esi
call   1030 <gera_vetor_decrescente@plt>
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    $0x186a0,%esi
lea    -0x28(%rbp),%rdx
lea    -0x2c(%rbp),%rcx
call   1040 <bubble@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1329 <main+0x1c9>
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x2c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xeaa(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@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
push   %rax
mov    $0x61a80,%edi
call   1070 <malloc@plt>
mov    %rax,%rbx
mov    $0x61a80,%edi
call   1070 <malloc@plt>
mov    %rax,%r14
mov    $0x61a80,%edi
call   1070 <malloc@plt>
mov    %rax,%r15
movl   $0x0,0x4(%rsp)
movl   $0x0,(%rsp)
lea    0xf13(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%ebp
lea    0x4(%rsp),%r12
mov    %rsp,%r13
nopw   0x0(%rax,%rax,1)
lea    0x1056(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
mov    $0x186a0,%esi
call   1090 <gera@plt>
lea    0x105a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1066(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
mov    $0x186a0,%esi
mov    %r12,%rdx
mov    %r13,%rcx
call   1050 <bubble@plt>
add    $0xffffffff,%ebp
jne    11d0 <main+0x60>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  (%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xdcd(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
movl   $0x0,0x4(%rsp)
movl   $0x0,(%rsp)
lea    0xeaf(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%r13d
lea    0xfa2(%rip),%rbp
lea    0x4(%rsp),%rbx
mov    %rsp,%r12
nopw   0x0(%rax,%rax,1)
lea    0xf58(%rip),%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
mov    $0x186a0,%esi
call   1080 <gera_vetor_crescente@plt>
lea    0xf5c(%rip),%rdi
call   1040 <puts@plt>
mov    %rbp,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
mov    $0x186a0,%esi
mov    %rbx,%rdx
mov    %r12,%rcx
call   1050 <bubble@plt>
add    $0xffffffff,%r13d
jne    1270 <main+0x100>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  (%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xd73(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
movl   $0x0,0x4(%rsp)
movl   $0x0,(%rsp)
lea    0xe47(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%r15d
lea    0xe8b(%rip),%r12
lea    0xe9e(%rip),%r13
lea    0x4(%rsp),%rbx
mov    %rsp,%rbp
xchg   %ax,%ax
lea    0xe54(%rip),%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
mov    $0x186a0,%esi
call   1030 <gera_vetor_decrescente@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    %r13,%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
mov    $0x186a0,%esi
mov    %rbx,%rdx
mov    %rbp,%rcx
call   1050 <bubble@plt>
add    $0xffffffff,%r15d
jne    1310 <main+0x1a0>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  (%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xd1a(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [53 x i8] c"Vamos testar o buble para ordenar o vetor aleatorio\0A\00"
@.str.1 = [30 x i8] c"Gerando o vetor aleatorio...\0A\00"
@.str.2 = [25 x i8] c"Vetor aleatorio gerado \0A\00"
@.str.3 = [42 x i8] c"Agora vamos ordenar o vetor aleatorio...\0A\00"
@.str.4 = [67 x i8] c"Vetor aleatorio: Contador comparacao %.f Contador atribuicao %.f \0A\00"
@.str.5 = [54 x i8] c"Vamos testar o bubble para ordenar o vetor crescente\0A\00"
@.str.6 = [30 x i8] c"Gerando o vetor crescente...\0A\00"
@.str.7 = [25 x i8] c"Vetor crescente gerado \0A\00"
@.str.8 = [42 x i8] c"Agora vamos ordenar o vetor crescente...\0A\00"
@.str.9 = [67 x i8] c"Vetor crescente: Contador comparacao %.f Contador atribuicao %.f \0A\00"
@.str.10 = [56 x i8] c"Vamos testar o bubble para ordenar o vetor decrescente\0A\00"
@.str.11 = [32 x i8] c"Gerando o vetor decrescente...\0A\00"
@.str.12 = [27 x i8] c"Vetor decrescente gerado \0A\00"
@.str.13 = [44 x i8] c"Agora vamos ordenar o vetor decrescente...\0A\00"
@.str.14 = [69 x i8] c"Vetor decrescente: Contador comparacao %.f Contador atribuicao %.f \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca float
%7 = alloca float
store i32 0, i32* %1
%8 = call i64 @malloc(i32 400000)
%9 = inttoptr i64 %8 to i32*
store i32* %9, i32** %2
%10 = call i64 @malloc(i32 400000)
%11 = inttoptr i64 %10 to i32*
store i32* %11, i32** %3
%12 = call i64 @malloc(i32 400000)
%13 = inttoptr i64 %12 to i32*
store i32* %13, i32** %4
store i32 0, i32* %5
store float 0.000000e+00, float* %6
store float 0.000000e+00, float* %7
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %5
br label %15
15: ; preds = %26, %0
%16 = load i32, i32* %5
%17 = icmp slt i32 %16, 10
br i1 %17, label %18, label %29
18: ; preds = %15
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%20 = load i32*, i32** %2
%21 = call i32 @gera(i32* %20, i32 100000)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%24 = load i32*, i32** %2
%25 = call i32 @bubble(i32* %24, i32 100000, float* %6, float* %7)
br label %26
26: ; preds = %18
%27 = load i32, i32* %5
%28 = add nsw i32 %27, 1
store i32 %28, i32* %5
br label %15
29: ; preds = %15
%30 = load float, float* %6
%31 = fpext float %30 to double
%32 = load float, float* %7
%33 = fpext float %32 to double
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.4, i64 0, i64 0), double %31, double %33)
store i32 0, i32* %5
store float 0.000000e+00, float* %6
store float 0.000000e+00, float* %7
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %5
br label %36
36: ; preds = %47, %29
%37 = load i32, i32* %5
%38 = icmp slt i32 %37, 10
br i1 %38, label %39, label %50
39: ; preds = %36
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%41 = load i32*, i32** %4
%42 = call i32 @gera_vetor_crescente(i32* %41, i32 100000)
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
%45 = load i32*, i32** %4
%46 = call i32 @bubble(i32* %45, i32 100000, float* %6, float* %7)
br label %47
47: ; preds = %39
%48 = load i32, i32* %5
%49 = add nsw i32 %48, 1
store i32 %49, i32* %5
br label %36
50: ; preds = %36
%51 = load float, float* %6
%52 = fpext float %51 to double
%53 = load float, float* %7
%54 = fpext float %53 to double
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.9, i64 0, i64 0), double %52, double %54)
store i32 0, i32* %5
store float 0.000000e+00, float* %6
store float 0.000000e+00, float* %7
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %5
br label %57
57: ; preds = %68, %50
%58 = load i32, i32* %5
%59 = icmp slt i32 %58, 10
br i1 %59, label %60, label %71
60: ; preds = %57
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%62 = load i32*, i32** %3
%63 = call i32 @gera_vetor_decrescente(i32* %62, i32 100000)
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.13, i64 0, i64 0))
%66 = load i32*, i32** %3
%67 = call i32 @bubble(i32* %66, i32 100000, float* %6, float* %7)
br label %68
68: ; preds = %60
%69 = load i32, i32* %5
%70 = add nsw i32 %69, 1
store i32 %70, i32* %5
br label %57
71: ; preds = %57
%72 = load float, float* %6
%73 = fpext float %72 to double
%74 = load float, float* %7
%75 = fpext float %74 to double
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.14, i64 0, i64 0), double %73, double %75)
ret i32 0
}

LLVM IR (-O2):
@.str.4 = [67 x i8] c"Vetor aleatorio: Contador comparacao %.f Contador atribuicao %.f \0A\00"
@.str.9 = [67 x i8] c"Vetor crescente: Contador comparacao %.f Contador atribuicao %.f \0A\00"
@.str.14 = [69 x i8] c"Vetor decrescente: Contador comparacao %.f Contador atribuicao %.f \0A\00"
@str = [52 x i8] c"Vamos testar o buble para ordenar o vetor aleatorio\00"
@str.15 = [53 x i8] c"Vamos testar o bubble para ordenar o vetor crescente\00"
@str.16 = [55 x i8] c"Vamos testar o bubble para ordenar o vetor decrescente\00"
@str.17 = [31 x i8] c"Gerando o vetor decrescente...\00"
@str.18 = [26 x i8] c"Vetor decrescente gerado \00"
@str.19 = [43 x i8] c"Agora vamos ordenar o vetor decrescente...\00"
@str.20 = [29 x i8] c"Gerando o vetor crescente...\00"
@str.21 = [24 x i8] c"Vetor crescente gerado \00"
@str.22 = [41 x i8] c"Agora vamos ordenar o vetor crescente...\00"
@str.23 = [29 x i8] c"Gerando o vetor aleatorio...\00"
@str.24 = [24 x i8] c"Vetor aleatorio gerado \00"
@str.25 = [41 x i8] c"Agora vamos ordenar o vetor aleatorio...\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = tail call i64 @malloc(i32 400000)
%4 = inttoptr i64 %3 to i32*
%5 = tail call i64 @malloc(i32 400000)
%6 = tail call i64 @malloc(i32 400000)
%7 = bitcast float* %1 to i8*
store float 0.000000e+00, float* %1
%8 = bitcast float* %2 to i8*
store float 0.000000e+00, float* %2
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str, i64 0, i64 0))
br label %10
10: ; preds = %0, %10
%11 = phi i32 [ 0, %0 ], [ %17, %10 ]
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.23, i64 0, i64 0))
%13 = call i32 @gera(i32* %4, i32 100000)
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.24, i64 0, i64 0))
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.25, i64 0, i64 0))
%16 = call i32 @bubble(i32* %4, i32 100000, float* %1, float* %2)
%17 = add nuw nsw i32 %11, 1
%18 = icmp eq i32 %17, 10
br i1 %18, label %19, label %10
19: ; preds = %10
%20 = inttoptr i64 %6 to i32*
%21 = load float, float* %1
%22 = fpext float %21 to double
%23 = load float, float* %2
%24 = fpext float %23 to double
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.4, i64 0, i64 0), double %22, double %24)
store float 0.000000e+00, float* %1
store float 0.000000e+00, float* %2
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.15, i64 0, i64 0))
br label %27
27: ; preds = %19, %27
%28 = phi i32 [ 0, %19 ], [ %34, %27 ]
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.20, i64 0, i64 0))
%30 = call i32 @gera_vetor_crescente(i32* %20, i32 100000)
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.21, i64 0, i64 0))
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.22, i64 0, i64 0))
%33 = call i32 @bubble(i32* %20, i32 100000, float* %1, float* %2)
%34 = add nuw nsw i32 %28, 1
%35 = icmp eq i32 %34, 10
br i1 %35, label %36, label %27
36: ; preds = %27
%37 = inttoptr i64 %5 to i32*
%38 = load float, float* %1
%39 = fpext float %38 to double
%40 = load float, float* %2
%41 = fpext float %40 to double
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.9, i64 0, i64 0), double %39, double %41)
store float 0.000000e+00, float* %1
store float 0.000000e+00, float* %2
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.16, i64 0, i64 0))
br label %44
44: ; preds = %36, %44
%45 = phi i32 [ 0, %36 ], [ %51, %44 ]
%46 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.17, i64 0, i64 0))
%47 = call i32 @gera_vetor_decrescente(i32* %37, i32 100000)
%48 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.18, i64 0, i64 0))
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.19, i64 0, i64 0))
%50 = call i32 @bubble(i32* %37, i32 100000, float* %1, float* %2)
%51 = add nuw nsw i32 %45, 1
%52 = icmp eq i32 %51, 10
br i1 %52, label %53, label %44
53: ; preds = %44
%54 = load float, float* %1
%55 = fpext float %54 to double
%56 = load float, float* %2
%57 = fpext float %56 to double
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.14, i64 0, i64 0), double %55, double %57)
ret i32 0
}