#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 /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int aux, i, x, y;
  scanf("%d %d", &x, &y);
  if (x > y) {
    aux = x;
    x = y;
    y = aux;
  }
  for (i = x; i <= y; ++i)
    if (i % 10 != 0 && i % (i / 10) == 0)
      printf("%d\n", i);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x14(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
jle    1161 <main+0x41>
mov    -0x10(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     11cb <main+0xab>
mov    -0xc(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11b8 <main+0x98>
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x18(%rbp),%eax
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11b8 <main+0x98>
mov    -0xc(%rbp),%esi
lea    0xe53(%rip),%rdi
call   1030 <printf@plt>
jmp    11bd <main+0x9d>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1167 <main+0x47>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    (%rsp),%ebx
cmp    %ebx,%eax
jle    1152 <main+0x32>
mov    %ebx,0x4(%rsp)
mov    %eax,(%rsp)
mov    %eax,%ecx
cmp    %ecx,%ebx
jg     115a <main+0x3a>
jmp    1164 <main+0x44>
mov    %ebx,%ecx
mov    %eax,%ebx
cmp    %ecx,%ebx
jle    1164 <main+0x44>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xe9b(%rip),%r14
jmp    1179 <main+0x59>
nopl   (%rax)
lea    0x1(%rbx),%eax
cmp    %ecx,%ebx
mov    %eax,%ebx
jge    115a <main+0x3a>
imul   $0xcccccccd,%ebx,%eax
add    $0x19999998,%eax
ror    %eax
cmp    $0x19999999,%eax
jb     1170 <main+0x50>
movslq %ebx,%rax
imul   $0x66666667,%rax,%rsi
mov    %rsi,%rax
shr    $0x3f,%rax
sar    $0x22,%rsi
add    %eax,%esi
mov    %ebx,%eax
cltd
idiv   %esi
test   %edx,%edx
jne    1170 <main+0x50>
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
mov    (%rsp),%ecx
jmp    1170 <main+0x50>

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

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = load i32, i32* %2
%8 = icmp sgt i32 %6, %7
br i1 %8, label %9, label %10
9: ; preds = %0
store i32 %7, i32* %1
store i32 %6, i32* %2
br label %10
10: ; preds = %9, %0
%11 = phi i32 [ %6, %9 ], [ %7, %0 ]
%12 = phi i32 [ %7, %9 ], [ %6, %0 ]
%13 = icmp sgt i32 %12, %11
br i1 %13, label %30, label %14
14: ; preds = %10, %26
%15 = phi i32 [ %27, %26 ], [ %11, %10 ]
%16 = phi i32 [ %28, %26 ], [ %12, %10 ]
%17 = srem i32 %16, 10
%18 = sdiv i32 %16, 10
%19 = icmp eq i32 %17, 0
br i1 %19, label %26, label %20
20: ; preds = %14
%21 = srem i32 %16, %18
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %16)
%25 = load i32, i32* %2
br label %26
26: ; preds = %14, %20, %23
%27 = phi i32 [ %15, %14 ], [ %15, %20 ], [ %25, %23 ]
%28 = add nsw i32 %16, 1
%29 = icmp slt i32 %16, %27
br i1 %29, label %14, label %30
30: ; preds = %26, %10
ret i32 0
}