#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(void) {
  int a, b, min, max, resto, i;
  scanf("%d %d", &a, &b);
  min = ((a) < (b) ? (a) : (b)) + 1;
  max = ((a) > (b) ? (a) : (b));
  for (i = min; i < max; i++) {
    resto = i % 5;
    if (resto == 2 || resto == 3) {
      printf("%d\n", i);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    115a <main+0x3a>
mov    -0x8(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    1160 <main+0x40>
mov    -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1180 <main+0x60>
mov    -0x8(%rbp),%eax
mov    %eax,-0x24(%rbp)
jmp    1186 <main+0x66>
mov    -0xc(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11e2 <main+0xc2>
mov    -0x1c(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    %edx,-0x18(%rbp)
cmpl   $0x2,-0x18(%rbp)
je     11c0 <main+0xa0>
cmpl   $0x3,-0x18(%rbp)
jne    11cf <main+0xaf>
mov    -0x1c(%rbp),%esi
lea    0xe3c(%rip),%rdi
call   1030 <printf@plt>
jmp    11d4 <main+0xb4>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1192 <main+0x72>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
mov    0x8(%rsp),%ebp
cmp    %ebp,%eax
mov    %ebp,%ebx
cmovl  %eax,%ebx
cmovg  %eax,%ebp
add    $0x1,%ebx
cmp    %ebp,%ebx
jge    1197 <main+0x77>
lea    0xea8(%rip),%r14
jmp    1167 <main+0x47>
add    $0x1,%ebx
cmp    %ebx,%ebp
je     1197 <main+0x77>
movslq %ebx,%rax
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x21,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
and    $0xfffffffe,%eax
cmp    $0x2,%eax
jne    1160 <main+0x40>
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
jmp    1160 <main+0x40>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

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
%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* %2, i32* %3)
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = load i32, i32* %2
br label %16
14: ; preds = %0
%15 = load i32, i32* %3
br label %16
16: ; preds = %14, %12
%17 = phi i32 [ %13, %12 ], [ %15, %14 ]
%18 = add nsw i32 %17, 1
store i32 %18, i32* %4
%19 = load i32, i32* %2
%20 = load i32, i32* %3
%21 = icmp sgt i32 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %16
%23 = load i32, i32* %2
br label %26
24: ; preds = %16
%25 = load i32, i32* %3
br label %26
26: ; preds = %24, %22
%27 = phi i32 [ %23, %22 ], [ %25, %24 ]
store i32 %27, i32* %5
%28 = load i32, i32* %4
store i32 %28, i32* %7
br label %29
29: ; preds = %45, %26
%30 = load i32, i32* %7
%31 = load i32, i32* %5
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %48
33: ; preds = %29
%34 = load i32, i32* %7
%35 = srem i32 %34, 5
store i32 %35, i32* %6
%36 = load i32, i32* %6
%37 = icmp eq i32 %36, 2
br i1 %37, label %41, label %38
38: ; preds = %33
%39 = load i32, i32* %6
%40 = icmp eq i32 %39, 3
br i1 %40, label %41, label %44
41: ; preds = %38, %33
%42 = load i32, i32* %7
%43 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %42)
br label %44
44: ; preds = %41, %38
br label %45
45: ; preds = %44
%46 = load i32, i32* %7
%47 = add nsw i32 %46, 1
store i32 %47, i32* %7
br label %29
48: ; preds = %29
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 slt i32 %6, %7
%9 = select i1 %8, i32 %6, i32 %7
%10 = icmp sgt i32 %6, %7
%11 = select i1 %10, i32 %6, i32 %7
%12 = add nsw i32 %9, 1
%13 = icmp slt i32 %12, %11
br i1 %13, label %14, label %24
14: ; preds = %0, %21
%15 = phi i32 [ %22, %21 ], [ %12, %0 ]
%16 = srem i32 %15, 5
%17 = and i32 %16, -2
%18 = icmp eq i32 %17, 2
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %15)
br label %21
21: ; preds = %19, %14
%22 = add i32 %15, 1
%23 = icmp eq i32 %22, %11
br i1 %23, label %24, label %14
24: ; preds = %21, %0
ret i32 0
}