#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, c;
  scanf("%d %d", &a, &b);
  if (a > b) {
    c = a;
    a = b;
    b = c;
  }
  while (a < b) {
    if ((a % 5 == 2) || (a % 5 == 3)) {
      printf("%d\n", a);
    }
    a++;
  }
  return 0;
}


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
jle    1168 <main+0x48>
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    116d <main+0x4d>
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11be <main+0x9e>
mov    -0x14(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x2,%edx
je     11a1 <main+0x81>
mov    -0x14(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x3,%edx
jne    11b0 <main+0x90>
mov    -0x14(%rbp),%esi
lea    0xe5b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    116d <main+0x4d>
xor    %eax,%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),%ecx
mov    0xc(%rsp),%esi
cmp    %esi,%ecx
jle    1157 <main+0x37>
mov    %esi,0x8(%rsp)
mov    %ecx,0xc(%rsp)
mov    %ecx,%eax
cmp    %eax,%esi
jl     115f <main+0x3f>
jmp    11b1 <main+0x91>
mov    %esi,%eax
mov    %ecx,%esi
cmp    %eax,%esi
jge    11b1 <main+0x91>
lea    0xea0(%rip),%rbx
jmp    117b <main+0x5b>
nopl   0x0(%rax,%rax,1)
add    $0x1,%esi
mov    %esi,0x8(%rsp)
cmp    %eax,%esi
jge    11b1 <main+0x91>
movslq %esi,%rcx
imul   $0x66666667,%rcx,%rdx
mov    %rdx,%rdi
shr    $0x3f,%rdi
sar    $0x21,%rdx
add    %edi,%edx
lea    (%rdx,%rdx,4),%edx
sub    %edx,%ecx
and    $0xfffffffe,%ecx
cmp    $0x2,%ecx
jne    1170 <main+0x50>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x8(%rsp),%esi
mov    0xc(%rsp),%eax
jmp    1170 <main+0x50>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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