#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(int argc, const char *argv[]) {
  for (int i = 0; i < 100; i++) {
    if ((i % 6 == 0) || (i % 7 == 0)) {
      if (i >= 6) {
        printf("%d\n", i);
      }
    }
  }
  return 0;
}


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   $0x64,-0x14(%rbp)
jge    1190 <main+0x80>
mov    -0x14(%rbp),%eax
mov    $0x6,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     115f <main+0x4f>
mov    -0x14(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    117d <main+0x6d>
cmpl   $0x6,-0x14(%rbp)
jl     1178 <main+0x68>
mov    -0x14(%rbp),%esi
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
jmp    117d <main+0x6d>
jmp    1182 <main+0x72>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    112d <main+0x1d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
lea    0xee3(%rip),%r14
jmp    1132 <main+0x22>
nop
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x64,%ebx
je     1187 <main+0x77>
movzbl %bl,%eax
imul   $0xab,%eax,%ecx
shr    $0x9,%ecx
and    $0xfffffffe,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
add    %al,%cl
je     1180 <main+0x70>
cmp    $0x6,%ebx
jb     112a <main+0x1a>
lea    (%rax,%rax,8),%ecx
lea    (%rax,%rcx,4),%ecx
shr    $0x8,%ecx
sub    %cl,%al
shr    %al
add    %cl,%al
shr    $0x2,%al
movzbl %al,%eax
lea    0x0(,%rax,8),%ecx
sub    %ecx,%eax
movzbl %al,%eax
add    %ebx,%eax
test   %al,%al
je     1120 <main+0x10>
jmp    112a <main+0x1a>
nopl   0x0(%rax,%rax,1)
cmp    $0x6,%ebx
jae    1120 <main+0x10>
jmp    112a <main+0x1a>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %7
7: ; preds = %26, %2
%8 = load i32, i32* %6
%9 = icmp slt i32 %8, 100
br i1 %9, label %10, label %29
10: ; preds = %7
%11 = load i32, i32* %6
%12 = srem i32 %11, 6
%13 = icmp eq i32 %12, 0
br i1 %13, label %18, label %14
14: ; preds = %10
%15 = load i32, i32* %6
%16 = srem i32 %15, 7
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %14, %10
%19 = load i32, i32* %6
%20 = icmp sge i32 %19, 6
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load i32, i32* %6
%23 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %22)
br label %24
24: ; preds = %21, %18
br label %25
25: ; preds = %24, %14
br label %26
26: ; preds = %25
%27 = load i32, i32* %6
%28 = add nsw i32 %27, 1
store i32 %28, i32* %6
br label %7
29: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %4
3: ; preds = %18
ret i32 0
4: ; preds = %2, %18
%5 = phi i32 [ 0, %2 ], [ %19, %18 ]
%6 = trunc i32 %5 to i8
%7 = urem i8 %6, 6
%8 = icmp eq i8 %7, 0
br i1 %8, label %14, label %9
9: ; preds = %4
%10 = urem i8 %6, 7
%11 = icmp eq i8 %10, 0
%12 = icmp ugt i32 %5, 5
%13 = and i1 %12, %11
br i1 %13, label %16, label %18
14: ; preds = %4
%15 = icmp ugt i32 %5, 5
br i1 %15, label %16, label %18
16: ; preds = %9, %14
%17 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %5)
br label %18
18: ; preds = %9, %16, %14
%19 = add nuw nsw i32 %5, 1
%20 = icmp eq i32 %19, 100
br i1 %20, label %3, label %4
}