#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 */
scalar_t__ isOk(int);
scalar_t__ isOk2(int, int);
int /*<<< orphan*/ printf(char *, int, int, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n, i, m;
  scanf("%d", &n);
  for (i = 1234; i < 98765; ++i) {
    if (isOk(i))
      ;
    else
      continue;
    m = i * n;
    if (m <= 98765 && isOk2(m, i))
      printf("%d/%d=%d\n", m, i, n);
    else
      continue;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
movl   $0x4d2,-0xc(%rbp)
cmpl   $0x181cd,-0xc(%rbp)
jge    11ed <main+0xad>
mov    -0xc(%rbp),%edi
call   1060 <isOk@plt>
cmp    $0x0,%rax
je     118a <main+0x4a>
jmp    118f <main+0x4f>
jmp    11df <main+0x9f>
mov    -0xc(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x181cd,-0x10(%rbp)
jg     11d5 <main+0x95>
mov    -0x10(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <isOk2@plt>
cmp    $0x0,%rax
je     11d5 <main+0x95>
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xe38(%rip),%rdi
call   1030 <printf@plt>
jmp    11da <main+0x9a>
jmp    11df <main+0x9f>
jmp    11df <main+0x9f>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1166 <main+0x26>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
lea    0xeb1(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
mov    $0x4d2,%ebx
lea    0xe9e(%rip),%r14
jmp    117b <main+0x3b>
nopw   0x0(%rax,%rax,1)
add    $0x1,%ebx
cmp    $0x181cd,%ebx
je     11b6 <main+0x76>
mov    %ebx,%edi
call   1060 <isOk@plt>
test   %rax,%rax
je     1170 <main+0x30>
mov    0xc(%rsp),%ebp
imul   %ebx,%ebp
cmp    $0x181cd,%ebp
jg     1170 <main+0x30>
mov    %ebp,%edi
mov    %ebx,%esi
call   1040 <isOk2@plt>
test   %rax,%rax
je     1170 <main+0x30>
mov    0xc(%rsp),%ecx
mov    %r14,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
jmp    1170 <main+0x30>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [10 x i8] c"%d/%d=%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
store i32 1234, i32* %3
br label %6
6: ; preds = %33, %0
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 98765
br i1 %8, label %9, label %36
9: ; preds = %6
%10 = load i32, i32* %3
%11 = call i64 @isOk(i32 %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %9
br label %15
14: ; preds = %9
br label %33
15: ; preds = %13
%16 = load i32, i32* %3
%17 = load i32, i32* %2
%18 = mul nsw i32 %16, %17
store i32 %18, i32* %4
%19 = load i32, i32* %4
%20 = icmp sle i32 %19, 98765
br i1 %20, label %21, label %31
21: ; preds = %15
%22 = load i32, i32* %4
%23 = load i32, i32* %3
%24 = call i64 @isOk2(i32 %22, i32 %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %21
%27 = load i32, i32* %4
%28 = load i32, i32* %3
%29 = load i32, i32* %2
%30 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %27, i32 %28, i32 %29)
br label %32
31: ; preds = %21, %15
br label %33
32: ; preds = %26
br label %33
33: ; preds = %32, %31, %14
%34 = load i32, i32* %3
%35 = add nsw i32 %34, 1
store i32 %35, i32* %3
br label %6
36: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [10 x i8] c"%d/%d=%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
br label %4
4: ; preds = %0, %18
%5 = phi i32 [ 1234, %0 ], [ %19, %18 ]
%6 = call i64 @isOk(i32 %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label %18, label %8
8: ; preds = %4
%9 = load i32, i32* %1
%10 = mul nsw i32 %9, %5
%11 = icmp slt i32 %10, 98766
br i1 %11, label %12, label %18
12: ; preds = %8
%13 = call i64 @isOk2(i32 %10, i32 %5)
%14 = icmp eq i64 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load i32, i32* %1
%17 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %10, i32 %5, i32 %16)
br label %18
18: ; preds = %8, %12, %4, %15
%19 = add nuw nsw i32 %5, 1
%20 = icmp eq i32 %19, 98765
br i1 %20, label %21, label %4
21: ; preds = %18
ret i32 0
}