#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*/ my_putchar(char);
int pause_system() {
  int i;
  i = 0;
  while (i < 250000000)
    i++;
  my_putchar('.');
  while (i < 500000000)
    i++;
  my_putchar('.');
  while (i < 750000000)
    i++;
  my_putchar('.');
  while (i < 830000000)
    i++;
  my_putchar('\r');
  return (i);
}


x86 assembly (clang, -O0):
<pause_system>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0xee6b280,-0x4(%rbp)
jge    113a <pause_system+0x2a>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <pause_system+0xf>
mov    $0x2e,%edi
call   1030 <my_putchar@plt>
cmpl   $0x1dcd6500,-0x4(%rbp)
jge    115f <pause_system+0x4f>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1144 <pause_system+0x34>
mov    $0x2e,%edi
call   1030 <my_putchar@plt>
cmpl   $0x2cb41780,-0x4(%rbp)
jge    1184 <pause_system+0x74>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1169 <pause_system+0x59>
mov    $0x2e,%edi
call   1030 <my_putchar@plt>
cmpl   $0x3178cb80,-0x4(%rbp)
jge    11a9 <pause_system+0x99>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    118e <pause_system+0x7e>
mov    $0xd,%edi
call   1030 <my_putchar@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pause_system>:
push   %rax
mov    $0x2e,%edi
call   1030 <my_putchar@plt>
mov    $0x2e,%edi
call   1030 <my_putchar@plt>
mov    $0x2e,%edi
call   1030 <my_putchar@plt>
mov    $0xd,%edi
call   1030 <my_putchar@plt>
mov    $0x3178cb80,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @pause_system() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %5, %0
%3 = load i32, i32* %1
%4 = icmp slt i32 %3, 250000000
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = load i32, i32* %1
%7 = add nsw i32 %6, 1
store i32 %7, i32* %1
br label %2
8: ; preds = %2
%9 = call i32 @my_putchar(i8 signext 46)
br label %10
10: ; preds = %13, %8
%11 = load i32, i32* %1
%12 = icmp slt i32 %11, 500000000
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, i32* %1
%15 = add nsw i32 %14, 1
store i32 %15, i32* %1
br label %10
16: ; preds = %10
%17 = call i32 @my_putchar(i8 signext 46)
br label %18
18: ; preds = %21, %16
%19 = load i32, i32* %1
%20 = icmp slt i32 %19, 750000000
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load i32, i32* %1
%23 = add nsw i32 %22, 1
store i32 %23, i32* %1
br label %18
24: ; preds = %18
%25 = call i32 @my_putchar(i8 signext 46)
br label %26
26: ; preds = %29, %24
%27 = load i32, i32* %1
%28 = icmp slt i32 %27, 830000000
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = load i32, i32* %1
%31 = add nsw i32 %30, 1
store i32 %31, i32* %1
br label %26
32: ; preds = %26
%33 = call i32 @my_putchar(i8 signext 13)
%34 = load i32, i32* %1
ret i32 %34
}

LLVM IR (-O2):
define i32 @pause_system() {
%1 = tail call i32 @my_putchar(i8 signext 46)
%2 = tail call i32 @my_putchar(i8 signext 46)
%3 = tail call i32 @my_putchar(i8 signext 46)
%4 = tail call i32 @my_putchar(i8 signext 13)
ret i32 830000000
}