#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 */
typedef int /*<<< orphan*/ s;

/* Variables and functions */
int /*<<< orphan*/ delayerloop();
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ stdout;
void cintaTransportadora(void) {
  int n;
  char s[] = "..................................";
  int slen = sizeof(s);
  for (n = 0; n < slen; n++) {
    delayerloop();
    putchar(s[n]);
    fflush(stdout);
  }
}


x86 assembly (clang, -O0):
<cintaTransportadora>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    -0x30(%rbp),%rdi
lea    0xead(%rip),%rsi
mov    $0x23,%edx
call   1040 <memcpy@plt>
movl   $0x23,-0x34(%rbp)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    11a8 <cintaTransportadora+0x68>
mov    $0x0,%al
call   1060 <delayerloop@plt>
movslq -0x4(%rbp),%rax
movsbl -0x30(%rbp,%rax,1),%edi
call   1030 <putchar@plt>
mov    0x2e4d(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    116b <cintaTransportadora+0x2b>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cintaTransportadora>:
push   %r15
push   %r14
push   %rbx
lea    0xec4(%rip),%r14
mov    0x2e9d(%rip),%r15
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
call   1050 <delayerloop@plt>
movsbl (%rbx,%r14,1),%edi
call   1030 <putchar@plt>
mov    (%r15),%edi
call   1040 <fflush@plt>
add    $0x1,%rbx
cmp    $0x23,%rbx
jne    1150 <cintaTransportadora+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.cintaTransportadora.s = [35 x i8] c"..................................\00"
@stdout = global i32 0
define void @cintaTransportadora() {
%1 = alloca i32
%2 = alloca [35 x i8]
%3 = alloca i32
%4 = bitcast [35 x i8]* %2 to i8*
store i32 35, i32* %3
store i32 0, i32* %1
br label %5
5: ; preds = %18, %0
%6 = load i32, i32* %1
%7 = load i32, i32* %3
%8 = icmp slt i32 %6, %7
br i1 %8, label %9, label %21
9: ; preds = %5
%10 = call i32 (...) @delayerloop()
%11 = load i32, i32* %1
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [35 x i8], [35 x i8]* %2, i64 0, i64 %12
%14 = load i8, i8* %13
%15 = call i32 @putchar(i8 signext %14)
%16 = load i32, i32* @stdout
%17 = call i32 @fflush(i32 %16)
br label %18
18: ; preds = %9
%19 = load i32, i32* %1
%20 = add nsw i32 %19, 1
store i32 %20, i32* %1
br label %5
21: ; preds = %5
ret void
}

LLVM IR (-O2):
@__const.cintaTransportadora.s = [35 x i8] c"..................................\00"
@stdout = global i32 0
define void @cintaTransportadora() {
br label %1
1: ; preds = %0, %1
%2 = phi i64 [ 0, %0 ], [ %9, %1 ]
%3 = tail call i32 (...) @delayerloop()
%4 = getelementptr inbounds [35 x i8], [35 x i8]* @__const.cintaTransportadora.s, i64 0, i64 %2
%5 = load i8, i8* %4
%6 = tail call i32 @putchar(i8 signext %5)
%7 = load i32, i32* @stdout
%8 = tail call i32 @fflush(i32 %7)
%9 = add nuw nsw i64 %2, 1
%10 = icmp eq i64 %9, 35
br i1 %10, label %11, label %1
11: ; preds = %1
ret void
}