#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 argc, char const *argv[]) {
  int a, b;
  scanf("%d %d", &a, &b);
  while (a <= b) {
    if (((a % 10) != 0) && ((a % (a / 10)) == 0)) {
      printf("%d\n", a);
    }
    a++;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec3(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     11a9 <main+0x89>
mov    -0x14(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     119b <main+0x7b>
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x1c(%rbp),%eax
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    119b <main+0x7b>
mov    -0x14(%rbp),%esi
lea    0xe70(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114a <main+0x2a>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1040 <scanf@plt>
mov    0x8(%rsp),%esi
mov    0xc(%rsp),%ecx
cmp    %ecx,%esi
jle    114f <main+0x2f>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret
lea    0xeb0(%rip),%rbx
jmp    116d <main+0x4d>
nopl   0x0(%rax,%rax,1)
lea    0x1(%rsi),%eax
mov    %eax,0x8(%rsp)
cmp    %ecx,%esi
mov    %eax,%esi
jge    1147 <main+0x27>
imul   $0xcccccccd,%esi,%eax
add    $0x19999998,%eax
ror    %eax
cmp    $0x19999999,%eax
jb     1160 <main+0x40>
movslq %esi,%rax
imul   $0x66666667,%rax,%rdi
mov    %rdi,%rax
shr    $0x3f,%rax
sar    $0x22,%rdi
add    %eax,%edi
mov    %esi,%eax
cltd
idiv   %edi
test   %edx,%edx
jne    1160 <main+0x40>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x8(%rsp),%esi
mov    0xc(%rsp),%ecx
jmp    1160 <main+0x40>

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

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