#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 == 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    11bd <main+0xad>
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    11aa <main+0x9a>
mov    -0x14(%rbp),%eax
mov    $0x6,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1187 <main+0x77>
mov    -0x14(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11a5 <main+0x95>
cmpl   $0x6,-0x14(%rbp)
jl     11a0 <main+0x90>
mov    -0x14(%rbp),%esi
lea    0xe65(%rip),%rdi
call   1030 <printf@plt>
jmp    11a5 <main+0x95>
jmp    11aa <main+0x9a>
jmp    11af <main+0x9f>
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     1189 <main+0x79>
movzbl %bl,%eax
lea    (%rax,%rax,8),%ecx
lea    (%rax,%rcx,4),%ecx
shr    $0x8,%ecx
imul   $0xab,%eax,%edx
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
shr    $0x9,%edx
and    $0xfffffffe,%edx
lea    (%rdx,%rdx,2),%edx
mov    %ebx,%ecx
sub    %edx,%ecx
add    %ebx,%eax
test   %cl,%cl
je     1173 <main+0x63>
test   %al,%al
jne    112a <main+0x1a>
test   %cl,%cl
je     117e <main+0x6e>
cmp    $0x6,%ebx
jae    1120 <main+0x10>
jmp    112a <main+0x1a>
cmp    $0x6,%ebx
jb     112a <main+0x1a>
test   %al,%al
jne    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 = %35, %2
%8 = load i32, i32* %6
%9 = icmp slt i32 %8, 100
br i1 %9, label %10, label %38
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 %34
18: ; preds = %14, %10
%19 = load i32, i32* %6
%20 = srem i32 %19, 6
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load i32, i32* %6
%24 = srem i32 %23, 7
%25 = icmp eq i32 %24, 0
br i1 %25, label %33, label %26
26: ; preds = %22, %18
%27 = load i32, i32* %6
%28 = icmp sge i32 %27, 6
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = load i32, i32* %6
%31 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %30)
br label %32
32: ; preds = %29, %26
br label %33
33: ; preds = %32, %22
br label %34
34: ; preds = %33, %14
br label %35
35: ; preds = %34
%36 = load i32, i32* %6
%37 = add nsw i32 %36, 1
store i32 %37, i32* %6
br label %7
38: ; 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 = %21
ret i32 0
4: ; preds = %2, %21
%5 = phi i32 [ 0, %2 ], [ %22, %21 ]
%6 = trunc i32 %5 to i8
%7 = urem i8 %6, 6
%8 = icmp eq i8 %7, 0
%9 = urem i8 %6, 7
%10 = icmp eq i8 %9, 0
%11 = or i1 %8, %10
br i1 %11, label %12, label %21
12: ; preds = %4
br i1 %8, label %13, label %17
13: ; preds = %12
%14 = icmp ne i8 %9, 0
%15 = icmp ugt i32 %5, 5
%16 = and i1 %15, %14
br i1 %16, label %19, label %21
17: ; preds = %12
%18 = icmp ugt i32 %5, 5
br i1 %18, label %19, label %21
19: ; preds = %13, %17
%20 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %5)
br label %21
21: ; preds = %4, %17, %19, %13
%22 = add nuw nsw i32 %5, 1
%23 = icmp eq i32 %22, 100
br i1 %23, label %3, label %4
}