#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);
int main() {
  int a, b;
  a = 3;
  b = 5;
  printf("(%d, %d)\n", a, b);
  a = 5;
  b = 7;
  printf("(%d, %d)\n", a, b);
  int i = 1;
  while (i < 9) {
    a = a + 1;
    b = a + 2;
    if ((a % 2 != 0) && (a % 3 != 0) && (a % 5 != 0) && (a % 7 != 0) &&
        (a % 9 != 0) && (b % 2 != 0) && (b % 3 != 0) && (b % 5 != 0) &&
        (b % 7 != 0) && (b % 9 != 0)) {
      printf("(%d, %d)\n", a, b);
      i++;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x3,-0x8(%rbp)
movl   $0x5,-0xc(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
movl   $0x5,-0x8(%rbp)
movl   $0x7,-0xc(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x10(%rbp)
cmpl   $0x9,-0x10(%rbp)
jge    126a <main+0x15a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1265 <main+0x155>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1265 <main+0x155>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1265 <main+0x155>
mov    -0x8(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1265 <main+0x155>
mov    -0x8(%rbp),%eax
mov    $0x9,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1265 <main+0x155>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1265 <main+0x155>
mov    -0xc(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1265 <main+0x155>
mov    -0xc(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1265 <main+0x155>
mov    -0xc(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1265 <main+0x155>
mov    -0xc(%rbp),%eax
mov    $0x9,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1265 <main+0x155>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xda9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1166 <main+0x56>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xede(%rip),%r14
mov    %r14,%rdi
mov    $0x3,%esi
mov    $0x5,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x5,%esi
mov    $0x7,%edx
call   1030 <printf@plt>
mov    $0x1,%r15d
mov    $0x6,%ebx
mov    $0x8,%ebp
mov    $0xcccccccd,%r12d
mov    $0xaaaaaaab,%r13d
jmp    1180 <main+0x70>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%ebx
add    $0x1,%ebp
cmp    $0x9,%r15d
jge    12ae <main+0x19e>
test   $0x1,%bl
je     1170 <main+0x60>
mov    %ebx,%eax
mov    %rax,%rcx
imul   %r13,%rcx
shr    $0x21,%rcx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
add    %ebx,%ecx
add    $0x6,%ecx
cmp    $0x6,%ecx
je     1170 <main+0x60>
mov    %rax,%rcx
imul   %r12,%rcx
shr    $0x22,%rcx
lea    (%rcx,%rcx,4),%ecx
neg    %ecx
add    %ebx,%ecx
add    $0x6,%ecx
cmp    $0x6,%ecx
je     1170 <main+0x60>
imul   $0x24924925,%rax,%rcx
shr    $0x20,%rcx
mov    %ebx,%edx
sub    %ecx,%edx
shr    %edx
add    %ecx,%edx
shr    $0x2,%edx
lea    0x0(,%rdx,8),%ecx
sub    %ecx,%edx
lea    (%rbx,%rdx,1),%ecx
add    $0x6,%ecx
cmp    $0x6,%ecx
je     1170 <main+0x60>
imul   $0x38e38e39,%rax,%rax
shr    $0x21,%rax
lea    (%rax,%rax,8),%eax
neg    %eax
add    %ebx,%eax
add    $0x6,%eax
cmp    $0x6,%eax
je     1170 <main+0x60>
lea    0x2(%rbx),%edx
mov    %edx,%eax
and    $0x1,%eax
je     1170 <main+0x60>
mov    %ebp,%eax
mov    %rax,%rcx
imul   %r13,%rcx
shr    $0x21,%rcx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
add    %ebx,%ecx
add    $0x8,%ecx
cmp    $0x6,%ecx
je     1170 <main+0x60>
mov    %rax,%rcx
imul   %r12,%rcx
shr    $0x22,%rcx
lea    (%rcx,%rcx,4),%ecx
neg    %ecx
add    %ebx,%ecx
add    $0x8,%ecx
cmp    $0x6,%ecx
je     1170 <main+0x60>
imul   $0x24924925,%rax,%rcx
shr    $0x20,%rcx
mov    %ebp,%esi
sub    %ecx,%esi
shr    %esi
add    %ecx,%esi
shr    $0x2,%esi
lea    0x0(,%rsi,8),%ecx
sub    %ecx,%esi
lea    (%rbx,%rsi,1),%ecx
add    $0x8,%ecx
cmp    $0x6,%ecx
je     1170 <main+0x60>
imul   $0x38e38e39,%rax,%rax
shr    $0x21,%rax
lea    (%rax,%rax,8),%eax
neg    %eax
add    %ebx,%eax
add    $0x8,%eax
cmp    $0x6,%eax
je     1170 <main+0x60>
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
add    $0x1,%r15d
jmp    1170 <main+0x60>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"(%d, %d)\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 3, i32* %2
store i32 5, i32* %3
%5 = load i32, i32* %2
%6 = load i32, i32* %3
%7 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6)
store i32 5, i32* %2
store i32 7, i32* %3
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %8, i32 %9)
store i32 1, i32* %4
br label %11
11: ; preds = %64, %0
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 9
br i1 %13, label %14, label %65
14: ; preds = %11
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
store i32 %16, i32* %2
%17 = load i32, i32* %2
%18 = add nsw i32 %17, 2
store i32 %18, i32* %3
%19 = load i32, i32* %2
%20 = srem i32 %19, 2
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %64
22: ; preds = %14
%23 = load i32, i32* %2
%24 = srem i32 %23, 3
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %64
26: ; preds = %22
%27 = load i32, i32* %2
%28 = srem i32 %27, 5
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %64
30: ; preds = %26
%31 = load i32, i32* %2
%32 = srem i32 %31, 7
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %64
34: ; preds = %30
%35 = load i32, i32* %2
%36 = srem i32 %35, 9
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %64
38: ; preds = %34
%39 = load i32, i32* %3
%40 = srem i32 %39, 2
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %64
42: ; preds = %38
%43 = load i32, i32* %3
%44 = srem i32 %43, 3
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %64
46: ; preds = %42
%47 = load i32, i32* %3
%48 = srem i32 %47, 5
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %64
50: ; preds = %46
%51 = load i32, i32* %3
%52 = srem i32 %51, 7
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %64
54: ; preds = %50
%55 = load i32, i32* %3
%56 = srem i32 %55, 9
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %64
58: ; preds = %54
%59 = load i32, i32* %2
%60 = load i32, i32* %3
%61 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %59, i32 %60)
%62 = load i32, i32* %4
%63 = add nsw i32 %62, 1
store i32 %63, i32* %4
br label %64
64: ; preds = %58, %54, %50, %46, %42, %38, %34, %30, %26, %22, %14
br label %11
65: ; preds = %11
ret i32 0
}

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