#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 a1, a2, b;
  a1 = 3;
  a2 = 5;
  printf("(%i, %i)\n", a1, a2);
  a1 = 5;
  a2 = 7;
  printf("(%i, %i)\n", a1, a2);
  while (b < 8) {
    a1++;
    a2 = a1 + 2;
    if ((a1 % 2 != 0) && (a1 % 3 != 0) && (a1 % 5 != 0) && (a1 % 7 != 0) &&
        (a1 % 9 != 0) && (a2 % 2 != 0) && (a2 % 3 != 0) && (a2 % 5 != 0) &&
        (a2 % 7 != 0) && (a2 % 9 != 0)) {
      b++;
      printf("(%i, %i)\n", a1, a2);
    }
  }
  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>
cmpl   $0x8,-0x10(%rbp)
jge    1263 <main+0x153>
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     125e <main+0x14e>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     125e <main+0x14e>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     125e <main+0x14e>
mov    -0x8(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     125e <main+0x14e>
mov    -0x8(%rbp),%eax
mov    $0x9,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     125e <main+0x14e>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     125e <main+0x14e>
mov    -0xc(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     125e <main+0x14e>
mov    -0xc(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     125e <main+0x14e>
mov    -0xc(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     125e <main+0x14e>
mov    -0xc(%rbp),%eax
mov    $0x9,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     125e <main+0x14e>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xda7(%rip),%rdi
call   1030 <printf@plt>
jmp    115f <main+0x4f>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x5,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x7,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
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
%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 = %64, %0
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 8
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* %4
%60 = add nsw i32 %59, 1
store i32 %60, i32* %4
%61 = load i32, i32* %2
%62 = load i32, i32* %3
%63 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %61, i32 %62)
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"(%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)
ret i32 0
}