#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 EXIT_SUCCESS;
int /*<<< orphan*/ issues();
int /*<<< orphan*/ must_be_false_sample();
int /*<<< orphan*/ must_be_true_sample();
int main(int argc, char **argv) {
  for (int i = 0; i < 4000000; i++)
    must_be_true_sample();
  for (int i = 0; i < 4000000; i++)
    must_be_false_sample();
  issues();
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x3d0900,-0x14(%rbp)
jge    116f <main+0x3f>
mov    $0x0,%al
call   1050 <must_be_true_sample@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114d <main+0x1d>
movl   $0x0,-0x18(%rbp)
cmpl   $0x3d0900,-0x18(%rbp)
jge    1198 <main+0x68>
mov    $0x0,%al
call   1040 <must_be_false_sample@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1176 <main+0x46>
mov    $0x0,%al
call   1030 <issues@plt>
mov    0x2e3a(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x3d0900,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1050 <must_be_true_sample@plt>
add    $0xffffffff,%ebx
jne    1140 <main+0x10>
mov    $0x3d0900,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <must_be_false_sample@plt>
add    $0xffffffff,%ebx
jne    1160 <main+0x30>
xor    %eax,%eax
call   1030 <issues@plt>
mov    0x2e66(%rip),%rax
mov    (%rax),%eax
pop    %rbx
ret

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %8
8: ; preds = %13, %2
%9 = load i32, i32* %6
%10 = icmp slt i32 %9, 4000000
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = call i32 (...) @must_be_true_sample()
br label %13
13: ; preds = %11
%14 = load i32, i32* %6
%15 = add nsw i32 %14, 1
store i32 %15, i32* %6
br label %8
16: ; preds = %8
store i32 0, i32* %7
br label %17
17: ; preds = %22, %16
%18 = load i32, i32* %7
%19 = icmp slt i32 %18, 4000000
br i1 %19, label %20, label %25
20: ; preds = %17
%21 = call i32 (...) @must_be_false_sample()
br label %22
22: ; preds = %20
%23 = load i32, i32* %7
%24 = add nsw i32 %23, 1
store i32 %24, i32* %7
br label %17
25: ; preds = %17
%26 = call i32 (...) @issues()
%27 = load i32, i32* @EXIT_SUCCESS
ret i32 %27
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i32 [ 0, %2 ], [ %6, %3 ]
%5 = tail call i32 (...) @must_be_true_sample()
%6 = add nuw nsw i32 %4, 1
%7 = icmp eq i32 %6, 4000000
br i1 %7, label %11, label %3
8: ; preds = %11
%9 = tail call i32 (...) @issues()
%10 = load i32, i32* @EXIT_SUCCESS
ret i32 %10
11: ; preds = %3, %11
%12 = phi i32 [ %14, %11 ], [ 0, %3 ]
%13 = tail call i32 (...) @must_be_false_sample()
%14 = add nuw nsw i32 %12, 1
%15 = icmp eq i32 %14, 4000000
br i1 %15, label %8, label %11
}