#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);
int main() {
  for (int i = 0; i < 10000; i++) {
    if (i % 2 == 1 && i % 3 == 0 && i % 4 == 1 && i % 5 == 3 && i % 6 == 3 &&
        i % 7 == 0 && i % 8 == 1 && i % 9 == 0) {
      printf("%d\n", i);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x2710,-0x8(%rbp)
jge    11f5 <main+0xe5>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x1,%edx
jne    11e2 <main+0xd2>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11e2 <main+0xd2>
mov    -0x8(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x1,%edx
jne    11e2 <main+0xd2>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x3,%edx
jne    11e2 <main+0xd2>
mov    -0x8(%rbp),%eax
mov    $0x6,%ecx
cltd
idiv   %ecx
cmp    $0x3,%edx
jne    11e2 <main+0xd2>
mov    -0x8(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11e2 <main+0xd2>
mov    -0x8(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cmp    $0x1,%edx
jne    11e2 <main+0xd2>
mov    -0x8(%rbp),%eax
mov    $0x9,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11e2 <main+0xd2>
mov    -0x8(%rbp),%esi
lea    0xe23(%rip),%rdi
call   1030 <printf@plt>
jmp    11e7 <main+0xd7>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
xor    %ebx,%ebx
mov    $0xaaaaaaab,%r15d
lea    0xedc(%rip),%r14
jmp    113f <main+0x2f>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%ebx
cmp    $0x2710,%ebx
je     11f2 <main+0xe2>
test   $0x1,%bl
je     1130 <main+0x20>
movzwl %bx,%eax
imul   $0xaaab,%eax,%ecx
shr    $0x11,%ecx
lea    (%rcx,%rcx,2),%ecx
mov    %ebx,%edx
sub    %ecx,%edx
test   %dx,%dx
jne    1130 <main+0x20>
mov    %ebx,%ecx
and    $0x3,%ecx
cmp    $0x1,%ecx
jne    1130 <main+0x20>
imul   $0xcccd,%eax,%ecx
shr    $0x12,%ecx
lea    (%rcx,%rcx,4),%ecx
add    $0x3,%ecx
cmp    %bx,%cx
jne    1130 <main+0x20>
mov    %ebx,%ecx
imul   %r15,%rcx
shr    $0x22,%rcx
lea    (%rcx,%rcx,2),%ecx
add    %ecx,%ecx
add    $0x3,%ecx
cmp    %bx,%cx
jne    1130 <main+0x20>
imul   $0x2493,%eax,%ecx
shr    $0x10,%ecx
mov    %ebx,%edx
sub    %ecx,%edx
movzwl %dx,%edx
shr    %edx
add    %ecx,%edx
shr    $0x2,%edx
lea    0x0(,%rdx,8),%ecx
sub    %ecx,%edx
add    %ebx,%edx
test   %dx,%dx
jne    1130 <main+0x20>
mov    %ebx,%ecx
and    $0x7,%ecx
cmp    $0x1,%ecx
jne    1130 <main+0x20>
imul   $0xe38f,%eax,%eax
shr    $0x13,%eax
lea    (%rax,%rax,8),%eax
mov    %ebx,%ecx
sub    %eax,%ecx
test   %cx,%cx
jne    1130 <main+0x20>
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
jmp    1130 <main+0x20>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\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 = %42, %0
%4 = load i32, i32* %2
%5 = icmp slt i32 %4, 10000
br i1 %5, label %6, label %45
6: ; preds = %3
%7 = load i32, i32* %2
%8 = srem i32 %7, 2
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %41
10: ; preds = %6
%11 = load i32, i32* %2
%12 = srem i32 %11, 3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %41
14: ; preds = %10
%15 = load i32, i32* %2
%16 = srem i32 %15, 4
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %41
18: ; preds = %14
%19 = load i32, i32* %2
%20 = srem i32 %19, 5
%21 = icmp eq i32 %20, 3
br i1 %21, label %22, label %41
22: ; preds = %18
%23 = load i32, i32* %2
%24 = srem i32 %23, 6
%25 = icmp eq i32 %24, 3
br i1 %25, label %26, label %41
26: ; preds = %22
%27 = load i32, i32* %2
%28 = srem i32 %27, 7
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %41
30: ; preds = %26
%31 = load i32, i32* %2
%32 = srem i32 %31, 8
%33 = icmp eq i32 %32, 1
br i1 %33, label %34, label %41
34: ; preds = %30
%35 = load i32, i32* %2
%36 = srem i32 %35, 9
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load i32, i32* %2
%40 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %39)
br label %41
41: ; preds = %38, %34, %30, %26, %22, %18, %14, %10, %6
br label %42
42: ; preds = %41
%43 = load i32, i32* %2
%44 = add nsw i32 %43, 1
store i32 %44, i32* %2
br label %3
45: ; preds = %3
%46 = load i32, i32* %1
ret i32 %46
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
br label %2
1: ; preds = %30
ret i32 0
2: ; preds = %0, %30
%3 = phi i32 [ 0, %0 ], [ %31, %30 ]
%4 = and i32 %3, 1
%5 = icmp ne i32 %4, 0
%6 = trunc i32 %3 to i16
%7 = urem i16 %6, 3
%8 = icmp eq i16 %7, 0
%9 = and i1 %5, %8
%10 = and i32 %3, 3
%11 = icmp eq i32 %10, 1
%12 = select i1 %9, i1 %11, i1 false
%13 = urem i16 %6, 5
%14 = icmp eq i16 %13, 3
%15 = select i1 %12, i1 %14, i1 false
%16 = urem i16 %6, 6
%17 = icmp eq i16 %16, 3
%18 = select i1 %15, i1 %17, i1 false
%19 = urem i16 %6, 7
%20 = icmp eq i16 %19, 0
%21 = select i1 %18, i1 %20, i1 false
%22 = and i32 %3, 7
%23 = icmp eq i32 %22, 1
%24 = select i1 %21, i1 %23, i1 false
%25 = urem i16 %6, 9
%26 = icmp eq i16 %25, 0
%27 = select i1 %24, i1 %26, i1 false
br i1 %27, label %28, label %30
28: ; preds = %2
%29 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %3)
br label %30
30: ; preds = %2, %28
%31 = add nuw nsw i32 %3, 1
%32 = icmp eq i32 %31, 10000
br i1 %32, label %1, label %2
}