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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x7,-0x8(%rbp)
cmpl   $0x186a0,-0x8(%rbp)
jge    1206 <main+0xf6>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x1,%edx
jne    11f8 <main+0xe8>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11f8 <main+0xe8>
mov    -0x8(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x1,%edx
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    -0xc(%rbp),%eax
cmp    $0x4,%edx
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     11f8 <main+0xe8>
mov    -0x8(%rbp),%eax
mov    $0x6,%ecx
cltd
idiv   %ecx
cmp    $0x3,%edx
jne    11f8 <main+0xe8>
mov    -0x8(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11f8 <main+0xe8>
mov    -0x8(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cmp    $0x1,%edx
jne    11f8 <main+0xe8>
mov    -0x8(%rbp),%eax
mov    $0x9,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11f8 <main+0xe8>
mov    -0x8(%rbp),%esi
lea    0xe0d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    $0x7,%ebx
mov    $0xcccccccd,%r15d
mov    $0xaaaaaaab,%r12d
lea    0xed0(%rip),%r14
jmp    114f <main+0x3f>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%ebx
cmp    $0x186a0,%ebx
je     121a <main+0x10a>
test   $0x1,%bl
je     1140 <main+0x30>
mov    %ebx,%eax
mov    %rax,%rcx
imul   %r12,%rcx
mov    %rcx,%rdx
shr    $0x21,%rdx
lea    (%rdx,%rdx,2),%edx
neg    %edx
add    %ebx,%edx
add    $0x7,%edx
cmp    $0x7,%edx
jne    1140 <main+0x30>
mov    %ebx,%edx
and    $0x3,%edx
cmp    $0x1,%edx
jne    1140 <main+0x30>
mov    %rax,%rdx
imul   %r15,%rdx
shr    $0x22,%rdx
lea    (%rdx,%rdx,4),%edx
mov    $0x3,%esi
sub    %edx,%esi
add    %ebx,%esi
cmp    $0x7,%esi
jne    1140 <main+0x30>
shr    $0x22,%rcx
add    %ecx,%ecx
lea    (%rcx,%rcx,2),%ecx
mov    $0x4,%edx
sub    %ecx,%edx
add    %ebx,%edx
cmp    $0x7,%edx
jne    1140 <main+0x30>
imul   $0x24924925,%rax,%rcx
shr    $0x20,%rcx
mov    %ebx,%edx
sub    %ecx,%edx
shr    %edx
add    %ecx,%edx
shr    $0x2,%edx
mov    %edx,%ecx
shl    $0x3,%ecx
neg    %ecx
add    %edx,%ecx
add    $0x7,%ecx
add    %ebx,%ecx
cmp    $0x7,%ecx
jne    1140 <main+0x30>
mov    %ebx,%ecx
and    $0x7,%ecx
cmp    $0x1,%ecx
jne    1140 <main+0x30>
imul   $0x38e38e39,%rax,%rax
shr    $0x21,%rax
lea    (%rax,%rax,8),%eax
mov    $0x7,%ecx
sub    %eax,%ecx
add    %ebx,%ecx
cmp    $0x7,%ecx
jne    1140 <main+0x30>
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
jmp    1140 <main+0x30>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

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