#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 broqch, a, b, j, f, t, tf;
  broqch = 0;
  a = 2;
  f = 0;
  while (broqch < 10) {
    while (f == 0) {
      a++;
      t = 1;
      for (j = 1; j < a; j++) {
        if (a % j < 0 || a % j > 0)
          t = 0;
      }
      if (t = 1)
        f = 1;
    }
    b = a + 2;
    tf = 1;
    for (j = 1; j < b; j++) {
      if (b % j < 0 || b % j > 0)
        tf = 0;
    }
    if (tf = 1) {
      printf("%d - %d\n", a, b);
      broqch++;
      a++;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    1268 <main+0x158>
jmp    1143 <main+0x33>
cmpl   $0x0,-0x18(%rbp)
jne    11cc <main+0xbc>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x1,-0x1c(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11aa <main+0x9a>
mov    -0xc(%rbp),%eax
cltd
idivl  -0x14(%rbp)
cmp    $0x0,%edx
jl     1190 <main+0x80>
mov    -0xc(%rbp),%eax
cltd
idivl  -0x14(%rbp)
cmp    $0x0,%edx
jle    1197 <main+0x87>
movl   $0x0,-0x1c(%rbp)
jmp    119c <main+0x8c>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1164 <main+0x54>
movl   $0x1,-0x1c(%rbp)
mov    $0x1,%al
test   $0x1,%al
jne    11c0 <main+0xb0>
jmp    11c7 <main+0xb7>
movl   $0x1,-0x18(%rbp)
jmp    1143 <main+0x33>
mov    -0xc(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x10(%rbp)
movl   $0x1,-0x20(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1229 <main+0x119>
mov    -0x10(%rbp),%eax
cltd
idivl  -0x14(%rbp)
cmp    $0x0,%edx
jl     120f <main+0xff>
mov    -0x10(%rbp),%eax
cltd
idivl  -0x14(%rbp)
cmp    $0x0,%edx
jle    1216 <main+0x106>
movl   $0x0,-0x20(%rbp)
jmp    121b <main+0x10b>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11e3 <main+0xd3>
movl   $0x1,-0x20(%rbp)
mov    $0x1,%al
test   $0x1,%al
jne    123f <main+0x12f>
jmp    1263 <main+0x153>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xdb4(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1134 <main+0x24>
xor    %eax,%eax
add    $0x20,%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    $0x4,%esi
mov    $0x6,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x7,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0x8,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
mov    $0x9,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0xa,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0xb,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0xc,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xb,%esi
mov    $0xd,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
mov    $0xe,%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
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 2, i32* %3
store i32 0, i32* %6
br label %9
9: ; preds = %72, %0
%10 = load i32, i32* %2
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %73
12: ; preds = %9
br label %13
13: ; preds = %40, %12
%14 = load i32, i32* %6
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %41
16: ; preds = %13
%17 = load i32, i32* %3
%18 = add nsw i32 %17, 1
store i32 %18, i32* %3
store i32 1, i32* %7
store i32 1, i32* %5
br label %19
19: ; preds = %35, %16
%20 = load i32, i32* %5
%21 = load i32, i32* %3
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %38
23: ; preds = %19
%24 = load i32, i32* %3
%25 = load i32, i32* %5
%26 = srem i32 %24, %25
%27 = icmp slt i32 %26, 0
br i1 %27, label %33, label %28
28: ; preds = %23
%29 = load i32, i32* %3
%30 = load i32, i32* %5
%31 = srem i32 %29, %30
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %28, %23
store i32 0, i32* %7
br label %34
34: ; preds = %33, %28
br label %35
35: ; preds = %34
%36 = load i32, i32* %5
%37 = add nsw i32 %36, 1
store i32 %37, i32* %5
br label %19
38: ; preds = %19
store i32 1, i32* %7
br i1 true, label %39, label %40
39: ; preds = %38
store i32 1, i32* %6
br label %40
40: ; preds = %39, %38
br label %13
41: ; preds = %13
%42 = load i32, i32* %3
%43 = add nsw i32 %42, 2
store i32 %43, i32* %4
store i32 1, i32* %8
store i32 1, i32* %5
br label %44
44: ; preds = %60, %41
%45 = load i32, i32* %5
%46 = load i32, i32* %4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %63
48: ; preds = %44
%49 = load i32, i32* %4
%50 = load i32, i32* %5
%51 = srem i32 %49, %50
%52 = icmp slt i32 %51, 0
br i1 %52, label %58, label %53
53: ; preds = %48
%54 = load i32, i32* %4
%55 = load i32, i32* %5
%56 = srem i32 %54, %55
%57 = icmp sgt i32 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %53, %48
store i32 0, i32* %8
br label %59
59: ; preds = %58, %53
br label %60
60: ; preds = %59
%61 = load i32, i32* %5
%62 = add nsw i32 %61, 1
store i32 %62, i32* %5
br label %44
63: ; preds = %44
store i32 1, i32* %8
br i1 true, label %64, label %72
64: ; preds = %63
%65 = load i32, i32* %3
%66 = load i32, i32* %4
%67 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %65, i32 %66)
%68 = load i32, i32* %2
%69 = add nsw i32 %68, 1
store i32 %69, i32* %2
%70 = load i32, i32* %3
%71 = add nsw i32 %70, 1
store i32 %71, i32* %3
br label %72
72: ; preds = %64, %63
br label %9
73: ; preds = %9
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 4, i32 6)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 5, i32 7)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 6, i32 8)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 7, i32 9)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 8, i32 10)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 9, i32 11)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 10, i32 12)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 11, i32 13)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 12, i32 14)
ret i32 0
}