#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 f;
  int s;
  int i;
  f = 3;
  s = 5;
  printf("(%d,%d)\n", f, s);
  f = 5;
  s = 7;
  printf("(%d,%d)\n", f, s);
  while (i < 8) {
    f++;
    s = f + 2;
    if ((f % 2 != 0) && (f % 3 != 0) && (f % 5 != 0) && (f % 7 != 0) &&
        (s % 2 != 0) && (s % 3 != 0) && (s % 5 != 0) && (s % 7 != 0)) {
      i++;
      printf("(%d,%d)\n", f, s);
    }
  }
  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    123b <main+0x12b>
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     1236 <main+0x126>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1236 <main+0x126>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1236 <main+0x126>
mov    -0x8(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1236 <main+0x126>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1236 <main+0x126>
mov    -0xc(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1236 <main+0x126>
mov    -0xc(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1236 <main+0x126>
mov    -0xc(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1236 <main+0x126>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xdcf(%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 = [9 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 ([9 x i8], [9 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 ([9 x i8], [9 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, 8
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 ([9 x i8], [9 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 = [9 x i8] c"(%d,%d)\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 3, i32 5)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 5, i32 7)
ret i32 0
}