#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 num1 = 3, num2 = 5, i = 1;
  printf("(%i, %i)\n", num1, num2);
  num1 = 5;
  num2 = 7;
  printf("(%i, %i)\n", num1, num2);
  while (i < 9) {
    num1++;
    num2 = num1 + 2;
    if ((num1 % 2 != 0) && (num1 % 3 != 0) && (num1 % 5 != 0) &&
        (num1 % 7 != 0) && (num2 % 2 != 0) && (num2 % 3 != 0) &&
        (num2 % 5 != 0) && (num2 % 7 != 0)) {
      i++;
      printf("(%i, %i)\n", num1, num2);
    }
  }
  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)
movl   $0x1,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xebf(%rip),%rdi
call   1030 <printf@plt>
movl   $0x5,-0x8(%rbp)
movl   $0x7,-0xc(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe9f(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x9,-0x10(%rbp)
jge    1242 <main+0x132>
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     123d <main+0x12d>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     123d <main+0x12d>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     123d <main+0x12d>
mov    -0x8(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     123d <main+0x12d>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     123d <main+0x12d>
mov    -0xc(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     123d <main+0x12d>
mov    -0xc(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     123d <main+0x12d>
mov    -0xc(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     123d <main+0x12d>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xdc8(%rip),%rdi
call   1030 <printf@plt>
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    126e <main+0x15e>
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,%rax
shr    $0x20,%rax
mov    %ebx,%ecx
sub    %eax,%ecx
shr    %ecx
add    %eax,%ecx
shr    $0x2,%ecx
lea    0x0(,%rcx,8),%eax
sub    %eax,%ecx
lea    (%rbx,%rcx,1),%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,%rax
shr    $0x20,%rax
mov    %ebp,%ecx
sub    %eax,%ecx
shr    %ecx
add    %eax,%ecx
shr    $0x2,%ecx
lea    0x0(,%rcx,8),%eax
sub    %eax,%ecx
lea    (%rbx,%rcx,1),%eax
add    $0x8,%eax
cmp    $0x6,%eax
je     1170 <main+0x60>
add    $0x1,%r15d
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
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"(%i, %i)\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
store i32 1, i32* %4
%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)
br label %11
11: ; preds = %56, %0
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 9
br i1 %13, label %14, label %57
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 %56
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 %56
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 %56
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 %56
34: ; preds = %30
%35 = load i32, i32* %3
%36 = srem i32 %35, 2
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %56
38: ; preds = %34
%39 = load i32, i32* %3
%40 = srem i32 %39, 3
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %56
42: ; preds = %38
%43 = load i32, i32* %3
%44 = srem i32 %43, 5
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %56
46: ; preds = %42
%47 = load i32, i32* %3
%48 = srem i32 %47, 7
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %56
50: ; preds = %46
%51 = load i32, i32* %4
%52 = add nsw i32 %51, 1
store i32 %52, i32* %4
%53 = load i32, i32* %2
%54 = load i32, i32* %3
%55 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %53, i32 %54)
br label %56
56: ; preds = %50, %46, %42, %38, %34, %30, %26, %22, %14
br label %11
57: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"(%i, %i)\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, %34
%4 = phi i32 [ 1, %0 ], [ %35, %34 ]
%5 = phi i32 [ 5, %0 ], [ %6, %34 ]
%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 = and i32 %7, 1
%20 = icmp eq i32 %19, 0
%21 = select i1 %18, i1 true, i1 %20
%22 = urem i32 %7, 3
%23 = icmp eq i32 %22, 0
%24 = select i1 %21, i1 true, i1 %23
%25 = urem i32 %7, 5
%26 = icmp eq i32 %25, 0
%27 = select i1 %24, i1 true, i1 %26
%28 = urem i32 %7, 7
%29 = icmp eq i32 %28, 0
%30 = select i1 %27, i1 true, i1 %29
br i1 %30, label %34, label %31
31: ; preds = %3
%32 = add nsw i32 %4, 1
%33 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %7)
br label %34
34: ; preds = %31, %3
%35 = phi i32 [ %32, %31 ], [ %4, %3 ]
%36 = icmp slt i32 %35, 9
br i1 %36, label %3, label %37
37: ; preds = %34
ret i32 0
}