#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*/ printf(char *, int /*<<< orphan*/);
int /*<<< orphan*/ taus88();
int main() {
  int j;
  for (j = 0; j < 499; j++) {
    taus88();
  }
  printf("  500: %08lx\n", taus88());
  for (++j; j < 999; j++) {
    taus88();
  }
  printf(" 1000: %08lx\n", taus88());
  for (++j; j < 2499; j++) {
    taus88();
  }
  printf(" 2500: %08lx\n", taus88());
  for (++j; j < 9999; j++) {
    taus88();
  }
  printf("10000: %08lx\n", taus88());
  for (++j; j < 19999; j++) {
    taus88();
  }
  printf("20000: %08lx\n", taus88());
  for (++j; j < 29999; j++) {
    taus88();
  }
  printf("30000: %08lx\n", taus88());
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x1f3,-0x8(%rbp)
jge    1158 <main+0x38>
mov    $0x0,%al
call   1040 <taus88@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
mov    $0x0,%al
call   1040 <taus88@plt>
mov    %eax,%esi
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x3e7,-0x8(%rbp)
jge    1198 <main+0x78>
mov    $0x0,%al
call   1040 <taus88@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1176 <main+0x56>
mov    $0x0,%al
call   1040 <taus88@plt>
mov    %eax,%esi
lea    0xe66(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x9c3,-0x8(%rbp)
jge    11d8 <main+0xb8>
mov    $0x0,%al
call   1040 <taus88@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11b6 <main+0x96>
mov    $0x0,%al
call   1040 <taus88@plt>
mov    %eax,%esi
lea    0xe34(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x270f,-0x8(%rbp)
jge    1218 <main+0xf8>
mov    $0x0,%al
call   1040 <taus88@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11f6 <main+0xd6>
mov    $0x0,%al
call   1040 <taus88@plt>
mov    %eax,%esi
lea    0xe02(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x4e1f,-0x8(%rbp)
jge    1258 <main+0x138>
mov    $0x0,%al
call   1040 <taus88@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1236 <main+0x116>
mov    $0x0,%al
call   1040 <taus88@plt>
mov    %eax,%esi
lea    0xdd0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x752f,-0x8(%rbp)
jge    1298 <main+0x178>
mov    $0x0,%al
call   1040 <taus88@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1276 <main+0x156>
mov    $0x0,%al
call   1040 <taus88@plt>
mov    %eax,%esi
lea    0xd9e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x1f3,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <taus88@plt>
add    $0xffffffff,%ebx
jne    1130 <main+0x10>
xor    %eax,%eax
call   1040 <taus88@plt>
lea    0xeb6(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x1f3,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <taus88@plt>
add    $0xffffffff,%ebx
jne    1160 <main+0x40>
xor    %eax,%eax
call   1040 <taus88@plt>
lea    0xe94(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x5db,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <taus88@plt>
add    $0xffffffff,%ebx
jne    1190 <main+0x70>
xor    %eax,%eax
call   1040 <taus88@plt>
lea    0xe72(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x1d4b,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <taus88@plt>
add    $0xffffffff,%ebx
jne    11c0 <main+0xa0>
xor    %eax,%eax
call   1040 <taus88@plt>
lea    0xe50(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x270f,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <taus88@plt>
add    $0xffffffff,%ebx
jne    11f0 <main+0xd0>
xor    %eax,%eax
call   1040 <taus88@plt>
lea    0xe2e(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x270f,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <taus88@plt>
add    $0xffffffff,%ebx
jne    1220 <main+0x100>
xor    %eax,%eax
call   1040 <taus88@plt>
lea    0xe0c(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [14 x i8] c" 500: %08lx\0A\00"
@.str.1 = [14 x i8] c" 1000: %08lx\0A\00"
@.str.2 = [14 x i8] c" 2500: %08lx\0A\00"
@.str.3 = [14 x i8] c"10000: %08lx\0A\00"
@.str.4 = [14 x i8] c"20000: %08lx\0A\00"
@.str.5 = [14 x i8] c"30000: %08lx\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %3
3: ; preds = %8, %0
%4 = load i32, i32* %2
%5 = icmp slt i32 %4, 499
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = call i32 (...) @taus88()
br label %8
8: ; preds = %6
%9 = load i32, i32* %2
%10 = add nsw i32 %9, 1
store i32 %10, i32* %2
br label %3
11: ; preds = %3
%12 = call i32 (...) @taus88()
%13 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = load i32, i32* %2
%15 = add nsw i32 %14, 1
store i32 %15, i32* %2
br label %16
16: ; preds = %21, %11
%17 = load i32, i32* %2
%18 = icmp slt i32 %17, 999
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = call i32 (...) @taus88()
br label %21
21: ; preds = %19
%22 = load i32, i32* %2
%23 = add nsw i32 %22, 1
store i32 %23, i32* %2
br label %16
24: ; preds = %16
%25 = call i32 (...) @taus88()
%26 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %25)
%27 = load i32, i32* %2
%28 = add nsw i32 %27, 1
store i32 %28, i32* %2
br label %29
29: ; preds = %34, %24
%30 = load i32, i32* %2
%31 = icmp slt i32 %30, 2499
br i1 %31, label %32, label %37
32: ; preds = %29
%33 = call i32 (...) @taus88()
br label %34
34: ; preds = %32
%35 = load i32, i32* %2
%36 = add nsw i32 %35, 1
store i32 %36, i32* %2
br label %29
37: ; preds = %29
%38 = call i32 (...) @taus88()
%39 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %38)
%40 = load i32, i32* %2
%41 = add nsw i32 %40, 1
store i32 %41, i32* %2
br label %42
42: ; preds = %47, %37
%43 = load i32, i32* %2
%44 = icmp slt i32 %43, 9999
br i1 %44, label %45, label %50
45: ; preds = %42
%46 = call i32 (...) @taus88()
br label %47
47: ; preds = %45
%48 = load i32, i32* %2
%49 = add nsw i32 %48, 1
store i32 %49, i32* %2
br label %42
50: ; preds = %42
%51 = call i32 (...) @taus88()
%52 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %51)
%53 = load i32, i32* %2
%54 = add nsw i32 %53, 1
store i32 %54, i32* %2
br label %55
55: ; preds = %60, %50
%56 = load i32, i32* %2
%57 = icmp slt i32 %56, 19999
br i1 %57, label %58, label %63
58: ; preds = %55
%59 = call i32 (...) @taus88()
br label %60
60: ; preds = %58
%61 = load i32, i32* %2
%62 = add nsw i32 %61, 1
store i32 %62, i32* %2
br label %55
63: ; preds = %55
%64 = call i32 (...) @taus88()
%65 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %64)
%66 = load i32, i32* %2
%67 = add nsw i32 %66, 1
store i32 %67, i32* %2
br label %68
68: ; preds = %73, %63
%69 = load i32, i32* %2
%70 = icmp slt i32 %69, 29999
br i1 %70, label %71, label %76
71: ; preds = %68
%72 = call i32 (...) @taus88()
br label %73
73: ; preds = %71
%74 = load i32, i32* %2
%75 = add nsw i32 %74, 1
store i32 %75, i32* %2
br label %68
76: ; preds = %68
%77 = call i32 (...) @taus88()
%78 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %77)
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c" 500: %08lx\0A\00"
@.str.1 = [14 x i8] c" 1000: %08lx\0A\00"
@.str.2 = [14 x i8] c" 2500: %08lx\0A\00"
@.str.3 = [14 x i8] c"10000: %08lx\0A\00"
@.str.4 = [14 x i8] c"20000: %08lx\0A\00"
@.str.5 = [14 x i8] c"30000: %08lx\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %4, %1 ]
%3 = tail call i32 (...) @taus88()
%4 = add nuw nsw i32 %2, 1
%5 = icmp eq i32 %4, 499
br i1 %5, label %6, label %1
6: ; preds = %1
%7 = tail call i32 (...) @taus88()
%8 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %7)
br label %9
9: ; preds = %6, %9
%10 = phi i32 [ %11, %9 ], [ 499, %6 ]
%11 = add nuw nsw i32 %10, 1
%12 = tail call i32 (...) @taus88()
%13 = icmp eq i32 %11, 998
br i1 %13, label %14, label %9
14: ; preds = %9
%15 = tail call i32 (...) @taus88()
%16 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %15)
br label %17
17: ; preds = %14, %17
%18 = phi i32 [ %20, %17 ], [ 1000, %14 ]
%19 = tail call i32 (...) @taus88()
%20 = add nuw nsw i32 %18, 1
%21 = icmp eq i32 %20, 2499
br i1 %21, label %22, label %17
22: ; preds = %17
%23 = tail call i32 (...) @taus88()
%24 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %23)
br label %25
25: ; preds = %22, %25
%26 = phi i32 [ %27, %25 ], [ 2499, %22 ]
%27 = add nuw nsw i32 %26, 1
%28 = tail call i32 (...) @taus88()
%29 = icmp eq i32 %27, 9998
br i1 %29, label %30, label %25
30: ; preds = %25
%31 = tail call i32 (...) @taus88()
%32 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %31)
br label %33
33: ; preds = %30, %33
%34 = phi i32 [ %36, %33 ], [ 10000, %30 ]
%35 = tail call i32 (...) @taus88()
%36 = add nuw nsw i32 %34, 1
%37 = icmp eq i32 %36, 19999
br i1 %37, label %38, label %33
38: ; preds = %33
%39 = tail call i32 (...) @taus88()
%40 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %39)
br label %41
41: ; preds = %38, %41
%42 = phi i32 [ %43, %41 ], [ 19999, %38 ]
%43 = add nuw nsw i32 %42, 1
%44 = tail call i32 (...) @taus88()
%45 = icmp eq i32 %43, 29998
br i1 %45, label %46, label %41
46: ; preds = %41
%47 = tail call i32 (...) @taus88()
%48 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %47)
ret i32 0
}