#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*/ 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();
  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    115f <main+0x3f>
mov    $0x0,%al
call   1040 <must_be_true_sample@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    113d <main+0x1d>
movl   $0x0,-0x18(%rbp)
cmpl   $0x3d0900,-0x18(%rbp)
jge    1188 <main+0x68>
mov    $0x0,%al
call   1030 <must_be_false_sample@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1166 <main+0x46>
mov    0x2e51(%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   1040 <must_be_true_sample@plt>
add    $0xffffffff,%ebx
jne    1130 <main+0x10>
mov    $0x3d0900,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <must_be_false_sample@plt>
add    $0xffffffff,%ebx
jne    1150 <main+0x30>
mov    0x2e7d(%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 = load i32, i32* @EXIT_SUCCESS
ret i32 %26
}

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 %10, label %3
8: ; preds = %10
%9 = load i32, i32* @EXIT_SUCCESS
ret i32 %9
10: ; preds = %3, %10
%11 = phi i32 [ %13, %10 ], [ 0, %3 ]
%12 = tail call i32 (...) @must_be_false_sample()
%13 = add nuw nsw i32 %11, 1
%14 = icmp eq i32 %13, 4000000
br i1 %14, label %8, label %10
}