#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*/ assert(int);
int /*<<< orphan*/ assume(int);
int main() {
  int i;
  int iterations;
  i = 0;
  assume(iterations > 50000);
  int a;
  int b;
  int c;
  int d;
  int e;
  int f;
  int g;
  int h;
  a = 1;
  b = 1;
  c = 1;
  d = 1;
  e = 1;
  f = 1;
  g = 1;
  while (i < iterations) {
    i = i + 1;
    a = a - 66;
    b = b - 166;
    c = c - 1;
    d = d + 1;
    e = e + 127;
    f = f + i - 66;
    g = g;
    h = h - 66;
  }
  i = i + a + b + c;
  i = i - a - b - c;
  assert(i == iterations + 1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xc350,-0xc(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assume@plt>
movl   $0x1,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
movl   $0x1,-0x20(%rbp)
movl   $0x1,-0x24(%rbp)
movl   $0x1,-0x28(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11df <main+0xbf>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
sub    $0x42,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
sub    $0xa6,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x20(%rbp),%eax
add    $0x7f,%eax
mov    %eax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
add    -0x8(%rbp),%eax
sub    $0x42,%eax
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%eax
sub    $0x42,%eax
mov    %eax,-0x2c(%rbp)
jmp    117b <main+0x5b>
mov    -0x8(%rbp),%eax
add    -0x10(%rbp),%eax
add    -0x14(%rbp),%eax
add    -0x18(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x10(%rbp),%eax
sub    -0x14(%rbp),%eax
sub    -0x18(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1040 <assume@plt>
xor    %edi,%edi
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%12 = load i32, i32* %3
%13 = icmp sgt i32 %12, 50000
%14 = zext i1 %13 to i32
%15 = call i32 @assume(i32 %14)
store i32 1, i32* %4
store i32 1, i32* %5
store i32 1, i32* %6
store i32 1, i32* %7
store i32 1, i32* %8
store i32 1, i32* %9
store i32 1, i32* %10
br label %16
16: ; preds = %20, %0
%17 = load i32, i32* %2
%18 = load i32, i32* %3
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %40
20: ; preds = %16
%21 = load i32, i32* %2
%22 = add nsw i32 %21, 1
store i32 %22, i32* %2
%23 = load i32, i32* %4
%24 = sub nsw i32 %23, 66
store i32 %24, i32* %4
%25 = load i32, i32* %5
%26 = sub nsw i32 %25, 166
store i32 %26, i32* %5
%27 = load i32, i32* %6
%28 = sub nsw i32 %27, 1
store i32 %28, i32* %6
%29 = load i32, i32* %7
%30 = add nsw i32 %29, 1
store i32 %30, i32* %7
%31 = load i32, i32* %8
%32 = add nsw i32 %31, 127
store i32 %32, i32* %8
%33 = load i32, i32* %9
%34 = load i32, i32* %2
%35 = add nsw i32 %33, %34
%36 = sub nsw i32 %35, 66
store i32 %36, i32* %9
%37 = load i32, i32* %10
store i32 %37, i32* %10
%38 = load i32, i32* %11
%39 = sub nsw i32 %38, 66
store i32 %39, i32* %11
br label %16
40: ; preds = %16
%41 = load i32, i32* %2
%42 = load i32, i32* %4
%43 = add nsw i32 %41, %42
%44 = load i32, i32* %5
%45 = add nsw i32 %43, %44
%46 = load i32, i32* %6
%47 = add nsw i32 %45, %46
store i32 %47, i32* %2
%48 = load i32, i32* %2
%49 = load i32, i32* %4
%50 = sub nsw i32 %48, %49
%51 = load i32, i32* %5
%52 = sub nsw i32 %50, %51
%53 = load i32, i32* %6
%54 = sub nsw i32 %52, %53
store i32 %54, i32* %2
%55 = load i32, i32* %2
%56 = load i32, i32* %3
%57 = add nsw i32 %56, 1
%58 = icmp eq i32 %55, %57
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assume(i32 0)
%2 = tail call i32 @assert(i32 0)
ret i32 0
}