#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 main() {
  int n, a, k, j, l;
  n = 3;
  j = 5;
  l = 7;
  printf("(%d,%d)", n, j);
  printf("\n");
  printf("(%d,%d)", j, l);
  printf("\n");
  while (n < l) {
    n = n + 1;
  }
  do {
    a = 1;
    do {
      a = a + 1;
    } while (n % a != 0);
    if (n % a == 0) {
      if (n = a) {
        printf("%d", n);
        n = n + 1;
      } else {
        n = n + 1;
      }
    }
  } while (n < 61);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x3,-0x8(%rbp)
movl   $0x5,-0x14(%rbp)
movl   $0x7,-0x18(%rbp)
mov    -0x8(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1192 <main+0x82>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1178 <main+0x68>
jmp    1197 <main+0x87>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cmp    $0x0,%edx
jne    119e <main+0x8e>
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cmp    $0x0,%edx
jne    1203 <main+0xf3>
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
cmp    $0x0,%eax
je     11f5 <main+0xe5>
mov    -0x8(%rbp),%esi
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11fe <main+0xee>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1203 <main+0xf3>
jmp    1208 <main+0xf8>
cmpl   $0x3d,-0x8(%rbp)
jl     1197 <main+0x87>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
lea    0xed5(%rip),%rbx
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x7,%ebp
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x7,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe95(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0x2(%rbx),%ecx
mov    %ebp,%eax
cltd
idiv   %ecx
add    $0x1,%ebx
test   %edx,%edx
jne    1190 <main+0x70>
lea    0x1(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x2(%rbx),%ebp
cmp    $0x3b,%ebx
jb     1180 <main+0x60>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [8 x i8] c"(%d,%d)\00"
@.str.2 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 3, i32 5)
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 5, i32 7)
%4 = tail call i32 @putchar(i32 10)
br label %5
5: ; preds = %0, %12
%6 = phi i32 [ %14, %12 ], [ 7, %0 ]
br label %7
7: ; preds = %7, %5
%8 = phi i32 [ 1, %5 ], [ %9, %7 ]
%9 = add nuw nsw i32 %8, 1
%10 = srem i32 %6, %9
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %7
12: ; preds = %7
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %9)
%14 = add nuw nsw i32 %8, 2
%15 = icmp ult i32 %8, 59
br i1 %15, label %5, label %16
16: ; preds = %12
ret i32 0
}