#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*/ Sleep(int);
int /*<<< orphan*/ clrscr();
int /*<<< orphan*/ gotoxy(int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ textbackground(int);
int /*<<< orphan*/ textcolor(int);
void progreso_altas(void) {
  char x = '%';
  clrscr();
  gotoxy(25, 6);
  textcolor(11);
  printf("Guardando archivo...");
  Sleep(150);
  gotoxy(20, 14);
  textbackground(15);
  printf("    ");
  textcolor(14);
  gotoxy(38, 14);
  textbackground(0);
  printf("10%c", x);
  Sleep(150);
  gotoxy(24, 14);
  textbackground(15);
  printf("    ");
  textcolor(14);
  gotoxy(38, 14);
  textbackground(0);
  printf("20%c", x);
  Sleep(150);
  gotoxy(28, 14);
  textbackground(15);
  printf("    ");
  textcolor(14);
  gotoxy(38, 14);
  textbackground(0);
  printf("30%c", x);
  Sleep(150);
  gotoxy(32, 14);
  textbackground(15);
  printf("    ");
  textcolor(14);
  gotoxy(38, 14);
  textbackground(0);
  printf("40%c", x);
  Sleep(150);
  gotoxy(36, 14);
  textbackground(15);
  printf("    ");
  textcolor(14);
  gotoxy(38, 14);
  textbackground(0);
  printf("50%c", x);
  Sleep(150);
  gotoxy(40, 14);
  textbackground(15);
  printf("    ");
  textcolor(9);
  gotoxy(38, 14);
  textbackground(15);
  printf("60%c", x);
  Sleep(150);
  gotoxy(44, 14);
  textbackground(15);
  printf("    ");
  textcolor(9);
  gotoxy(38, 14);
  textbackground(15);
  printf("70%c", x);
  Sleep(150);
  gotoxy(48, 14);
  textbackground(15);
  printf("    ");
  textcolor(9);
  gotoxy(38, 14);
  textbackground(15);
  printf("80%c", x);
  Sleep(150);
  gotoxy(52, 14);
  textbackground(15);
  printf("    ");
  textcolor(9);
  gotoxy(38, 14);
  textbackground(15);
  printf("90%c", x);
  Sleep(150);
  gotoxy(56, 14);
  textbackground(15);
  printf("    ");
  textcolor(9);
  gotoxy(37, 14);
  textbackground(15);
  printf("100%c", x);
  textbackground(0);
  Sleep(150);
}


x86 assembly (clang, -O0):
<progreso_altas>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0x25,-0x1(%rbp)
mov    $0x0,%al
call   1030 <clrscr@plt>
mov    $0x19,%edi
mov    $0x6,%esi
call   1060 <gotoxy@plt>
mov    $0xb,%edi
call   1050 <textcolor@plt>
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x14,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xe51(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xe,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
xor    %edi,%edi
call   1070 <textbackground@plt>
movsbl -0x1(%rbp),%esi
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x18,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xe,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
xor    %edi,%edi
call   1070 <textbackground@plt>
movsbl -0x1(%rbp),%esi
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x1c,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xe,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
xor    %edi,%edi
call   1070 <textbackground@plt>
movsbl -0x1(%rbp),%esi
lea    0xd68(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x20,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xd28(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xe,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
xor    %edi,%edi
call   1070 <textbackground@plt>
movsbl -0x1(%rbp),%esi
lea    0xd0a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x24,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xcc5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xe,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
xor    %edi,%edi
call   1070 <textbackground@plt>
movsbl -0x1(%rbp),%esi
lea    0xcac(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x28,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xc62(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
movsbl -0x1(%rbp),%esi
lea    0xc4b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x2c,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xbfc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
movsbl -0x1(%rbp),%esi
lea    0xbea(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x30,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xb96(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
movsbl -0x1(%rbp),%esi
lea    0xb89(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x34,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xb30(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
movsbl -0x1(%rbp),%esi
lea    0xb28(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x38,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xaca(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <textcolor@plt>
mov    $0x25,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
movsbl -0x1(%rbp),%esi
lea    0xac7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1070 <textbackground@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<progreso_altas>:
push   %rbx
xor    %eax,%eax
call   1030 <clrscr@plt>
mov    $0x19,%edi
mov    $0x6,%esi
call   1060 <gotoxy@plt>
mov    $0xb,%edi
call   1050 <textcolor@plt>
lea    0xe78(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x14,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xe5c(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xe,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
xor    %edi,%edi
call   1070 <textbackground@plt>
lea    0xe30(%rip),%rdi
mov    $0x25,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x18,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xe,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
xor    %edi,%edi
call   1070 <textbackground@plt>
lea    0xdd5(%rip),%rdi
mov    $0x25,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x1c,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xe,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
xor    %edi,%edi
call   1070 <textbackground@plt>
lea    0xd7a(%rip),%rdi
mov    $0x25,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x20,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xe,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
xor    %edi,%edi
call   1070 <textbackground@plt>
lea    0xd1f(%rip),%rdi
mov    $0x25,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x24,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xe,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
xor    %edi,%edi
call   1070 <textbackground@plt>
lea    0xcc4(%rip),%rdi
mov    $0x25,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x28,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xc66(%rip),%rdi
mov    $0x25,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x2c,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xc08(%rip),%rdi
mov    $0x25,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x30,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xbaa(%rip),%rdi
mov    $0x25,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x34,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <textcolor@plt>
mov    $0x26,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xb4c(%rip),%rdi
mov    $0x25,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x96,%edi
call   1080 <Sleep@plt>
mov    $0x38,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <textcolor@plt>
mov    $0x25,%edi
mov    $0xe,%esi
call   1060 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textbackground@plt>
lea    0xaee(%rip),%rdi
mov    $0x25,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
call   1070 <textbackground@plt>
mov    $0x96,%edi
pop    %rbx
jmp    1080 <Sleep@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"Guardando archivo...\00"
@.str.1 = [5 x i8] c" \00"
@.str.2 = [5 x i8] c"10%c\00"
@.str.3 = [5 x i8] c"20%c\00"
@.str.4 = [5 x i8] c"30%c\00"
@.str.5 = [5 x i8] c"40%c\00"
@.str.6 = [5 x i8] c"50%c\00"
@.str.7 = [5 x i8] c"60%c\00"
@.str.8 = [5 x i8] c"70%c\00"
@.str.9 = [5 x i8] c"80%c\00"
@.str.10 = [5 x i8] c"90%c\00"
@.str.11 = [6 x i8] c"100%c\00"
define void @progreso_altas() {
%1 = alloca i8
store i8 37, i8* %1
%2 = call i32 (...) @clrscr()
%3 = call i32 @gotoxy(i32 25, i32 6)
%4 = call i32 @textcolor(i32 11)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @Sleep(i32 150)
%7 = call i32 @gotoxy(i32 20, i32 14)
%8 = call i32 @textbackground(i32 15)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @textcolor(i32 14)
%11 = call i32 @gotoxy(i32 38, i32 14)
%12 = call i32 @textbackground(i32 0)
%13 = load i8, i8* %1
%14 = sext i8 %13 to i32
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %14)
%16 = call i32 @Sleep(i32 150)
%17 = call i32 @gotoxy(i32 24, i32 14)
%18 = call i32 @textbackground(i32 15)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 @textcolor(i32 14)
%21 = call i32 @gotoxy(i32 38, i32 14)
%22 = call i32 @textbackground(i32 0)
%23 = load i8, i8* %1
%24 = sext i8 %23 to i32
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %24)
%26 = call i32 @Sleep(i32 150)
%27 = call i32 @gotoxy(i32 28, i32 14)
%28 = call i32 @textbackground(i32 15)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%30 = call i32 @textcolor(i32 14)
%31 = call i32 @gotoxy(i32 38, i32 14)
%32 = call i32 @textbackground(i32 0)
%33 = load i8, i8* %1
%34 = sext i8 %33 to i32
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %34)
%36 = call i32 @Sleep(i32 150)
%37 = call i32 @gotoxy(i32 32, i32 14)
%38 = call i32 @textbackground(i32 15)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%40 = call i32 @textcolor(i32 14)
%41 = call i32 @gotoxy(i32 38, i32 14)
%42 = call i32 @textbackground(i32 0)
%43 = load i8, i8* %1
%44 = sext i8 %43 to i32
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %44)
%46 = call i32 @Sleep(i32 150)
%47 = call i32 @gotoxy(i32 36, i32 14)
%48 = call i32 @textbackground(i32 15)
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%50 = call i32 @textcolor(i32 14)
%51 = call i32 @gotoxy(i32 38, i32 14)
%52 = call i32 @textbackground(i32 0)
%53 = load i8, i8* %1
%54 = sext i8 %53 to i32
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %54)
%56 = call i32 @Sleep(i32 150)
%57 = call i32 @gotoxy(i32 40, i32 14)
%58 = call i32 @textbackground(i32 15)
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%60 = call i32 @textcolor(i32 9)
%61 = call i32 @gotoxy(i32 38, i32 14)
%62 = call i32 @textbackground(i32 15)
%63 = load i8, i8* %1
%64 = sext i8 %63 to i32
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %64)
%66 = call i32 @Sleep(i32 150)
%67 = call i32 @gotoxy(i32 44, i32 14)
%68 = call i32 @textbackground(i32 15)
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%70 = call i32 @textcolor(i32 9)
%71 = call i32 @gotoxy(i32 38, i32 14)
%72 = call i32 @textbackground(i32 15)
%73 = load i8, i8* %1
%74 = sext i8 %73 to i32
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 %74)
%76 = call i32 @Sleep(i32 150)
%77 = call i32 @gotoxy(i32 48, i32 14)
%78 = call i32 @textbackground(i32 15)
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%80 = call i32 @textcolor(i32 9)
%81 = call i32 @gotoxy(i32 38, i32 14)
%82 = call i32 @textbackground(i32 15)
%83 = load i8, i8* %1
%84 = sext i8 %83 to i32
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %84)
%86 = call i32 @Sleep(i32 150)
%87 = call i32 @gotoxy(i32 52, i32 14)
%88 = call i32 @textbackground(i32 15)
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%90 = call i32 @textcolor(i32 9)
%91 = call i32 @gotoxy(i32 38, i32 14)
%92 = call i32 @textbackground(i32 15)
%93 = load i8, i8* %1
%94 = sext i8 %93 to i32
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 %94)
%96 = call i32 @Sleep(i32 150)
%97 = call i32 @gotoxy(i32 56, i32 14)
%98 = call i32 @textbackground(i32 15)
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%100 = call i32 @textcolor(i32 9)
%101 = call i32 @gotoxy(i32 37, i32 14)
%102 = call i32 @textbackground(i32 15)
%103 = load i8, i8* %1
%104 = sext i8 %103 to i32
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 %104)
%106 = call i32 @textbackground(i32 0)
%107 = call i32 @Sleep(i32 150)
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"Guardando archivo...\00"
@.str.1 = [5 x i8] c" \00"
@.str.2 = [5 x i8] c"10%c\00"
@.str.3 = [5 x i8] c"20%c\00"
@.str.4 = [5 x i8] c"30%c\00"
@.str.5 = [5 x i8] c"40%c\00"
@.str.6 = [5 x i8] c"50%c\00"
@.str.7 = [5 x i8] c"60%c\00"
@.str.8 = [5 x i8] c"70%c\00"
@.str.9 = [5 x i8] c"80%c\00"
@.str.10 = [5 x i8] c"90%c\00"
@.str.11 = [6 x i8] c"100%c\00"
define void @progreso_altas() {
%1 = tail call i32 (...) @clrscr()
%2 = tail call i32 @gotoxy(i32 25, i32 6)
%3 = tail call i32 @textcolor(i32 11)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @Sleep(i32 150)
%6 = tail call i32 @gotoxy(i32 20, i32 14)
%7 = tail call i32 @textbackground(i32 15)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 @textcolor(i32 14)
%10 = tail call i32 @gotoxy(i32 38, i32 14)
%11 = tail call i32 @textbackground(i32 0)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 37)
%13 = tail call i32 @Sleep(i32 150)
%14 = tail call i32 @gotoxy(i32 24, i32 14)
%15 = tail call i32 @textbackground(i32 15)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%17 = tail call i32 @textcolor(i32 14)
%18 = tail call i32 @gotoxy(i32 38, i32 14)
%19 = tail call i32 @textbackground(i32 0)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 37)
%21 = tail call i32 @Sleep(i32 150)
%22 = tail call i32 @gotoxy(i32 28, i32 14)
%23 = tail call i32 @textbackground(i32 15)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%25 = tail call i32 @textcolor(i32 14)
%26 = tail call i32 @gotoxy(i32 38, i32 14)
%27 = tail call i32 @textbackground(i32 0)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 37)
%29 = tail call i32 @Sleep(i32 150)
%30 = tail call i32 @gotoxy(i32 32, i32 14)
%31 = tail call i32 @textbackground(i32 15)
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%33 = tail call i32 @textcolor(i32 14)
%34 = tail call i32 @gotoxy(i32 38, i32 14)
%35 = tail call i32 @textbackground(i32 0)
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 37)
%37 = tail call i32 @Sleep(i32 150)
%38 = tail call i32 @gotoxy(i32 36, i32 14)
%39 = tail call i32 @textbackground(i32 15)
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%41 = tail call i32 @textcolor(i32 14)
%42 = tail call i32 @gotoxy(i32 38, i32 14)
%43 = tail call i32 @textbackground(i32 0)
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 37)
%45 = tail call i32 @Sleep(i32 150)
%46 = tail call i32 @gotoxy(i32 40, i32 14)
%47 = tail call i32 @textbackground(i32 15)
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%49 = tail call i32 @textcolor(i32 9)
%50 = tail call i32 @gotoxy(i32 38, i32 14)
%51 = tail call i32 @textbackground(i32 15)
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 37)
%53 = tail call i32 @Sleep(i32 150)
%54 = tail call i32 @gotoxy(i32 44, i32 14)
%55 = tail call i32 @textbackground(i32 15)
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%57 = tail call i32 @textcolor(i32 9)
%58 = tail call i32 @gotoxy(i32 38, i32 14)
%59 = tail call i32 @textbackground(i32 15)
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 37)
%61 = tail call i32 @Sleep(i32 150)
%62 = tail call i32 @gotoxy(i32 48, i32 14)
%63 = tail call i32 @textbackground(i32 15)
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%65 = tail call i32 @textcolor(i32 9)
%66 = tail call i32 @gotoxy(i32 38, i32 14)
%67 = tail call i32 @textbackground(i32 15)
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 37)
%69 = tail call i32 @Sleep(i32 150)
%70 = tail call i32 @gotoxy(i32 52, i32 14)
%71 = tail call i32 @textbackground(i32 15)
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%73 = tail call i32 @textcolor(i32 9)
%74 = tail call i32 @gotoxy(i32 38, i32 14)
%75 = tail call i32 @textbackground(i32 15)
%76 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 37)
%77 = tail call i32 @Sleep(i32 150)
%78 = tail call i32 @gotoxy(i32 56, i32 14)
%79 = tail call i32 @textbackground(i32 15)
%80 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%81 = tail call i32 @textcolor(i32 9)
%82 = tail call i32 @gotoxy(i32 37, i32 14)
%83 = tail call i32 @textbackground(i32 15)
%84 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 37)
%85 = tail call i32 @textbackground(i32 0)
%86 = tail call i32 @Sleep(i32 150)
ret void
}