#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 i, from, to, temp, op, digit;
  scanf("%d %d", &from, &to);
  for (i = from; i <= to; i++) {
    temp = i;
    op = 0;
    while (temp > 0) {
      digit = temp % 10;
      op = op * 10 + digit;
      temp /= 10;
    }
    if (op == i)
      printf("%d\t", 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    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     11c5 <main+0xa5>
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0x0,-0x14(%rbp)
jle    1197 <main+0x77>
mov    -0x14(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x1c(%rbp)
imul   $0xa,-0x18(%rbp),%eax
add    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x14(%rbp)
jmp    1162 <main+0x42>
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jne    11b2 <main+0x92>
mov    -0x8(%rbp),%esi
lea    0xe59(%rip),%rdi
call   1030 <printf@plt>
jmp    11b7 <main+0x97>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1149 <main+0x29>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
lea    0xed0(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1040 <scanf@plt>
mov    0xc(%rsp),%r15d
mov    0x8(%rsp),%r8d
cmp    %r8d,%r15d
jle    115a <main+0x3a>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret
mov    $0xcccccccd,%ebx
lea    0xea0(%rip),%r14
jmp    117c <main+0x5c>
nopl   0x0(%rax,%rax,1)
lea    0x1(%r15),%eax
cmp    %r8d,%r15d
mov    %eax,%r15d
jge    114e <main+0x2e>
xor    %edx,%edx
test   %r15d,%r15d
jle    11b1 <main+0x91>
mov    %r15d,%ecx
cs nopw 0x0(%rax,%rax,1)
lea    (%rdx,%rdx,4),%edx
mov    %ecx,%esi
imul   %rbx,%rsi
shr    $0x23,%rsi
lea    (%rsi,%rsi,1),%edi
lea    (%rdi,%rdi,4),%edi
mov    %ecx,%eax
sub    %edi,%eax
lea    (%rax,%rdx,2),%edx
cmp    $0x9,%ecx
mov    %esi,%ecx
ja     1190 <main+0x70>
cmp    %r15d,%edx
jne    1170 <main+0x50>
mov    %r14,%rdi
mov    %r15d,%esi
call   1030 <printf@plt>
mov    0x8(%rsp),%r8d
jmp    1170 <main+0x50>

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

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [4 x i8] c"%d\09\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 %31, label %9
9: ; preds = %0, %27
%10 = phi i32 [ %28, %27 ], [ %7, %0 ]
%11 = phi i32 [ %29, %27 ], [ %6, %0 ]
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %21
13: ; preds = %9, %13
%14 = phi i32 [ %18, %13 ], [ 0, %9 ]
%15 = phi i32 [ %19, %13 ], [ %11, %9 ]
%16 = urem i32 %15, 10
%17 = mul nsw i32 %14, 10
%18 = add nsw i32 %17, %16
%19 = udiv i32 %15, 10
%20 = icmp ult i32 %15, 10
br i1 %20, label %21, label %13
21: ; preds = %13, %9
%22 = phi i32 [ 0, %9 ], [ %18, %13 ]
%23 = icmp eq i32 %22, %11
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%26 = load i32, i32* %2
br label %27
27: ; preds = %21, %24
%28 = phi i32 [ %10, %21 ], [ %26, %24 ]
%29 = add nsw i32 %11, 1
%30 = icmp slt i32 %11, %28
br i1 %30, label %9, label %31
31: ; preds = %27, %0
ret i32 0
}