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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%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
jle    1161 <main+0x41>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     11d1 <main+0xb1>
mov    -0x10(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11be <main+0x9e>
mov    -0xc(%rbp),%eax
sub    -0x10(%rbp),%eax
cmp    $0x5,%eax
jge    11aa <main+0x8a>
mov    -0x10(%rbp),%esi
lea    0xe66(%rip),%rdi
call   1030 <printf@plt>
jmp    11b9 <main+0x99>
mov    -0x10(%rbp),%esi
lea    0xe56(%rip),%rdi
call   1030 <printf@plt>
jmp    11be <main+0x9e>
jmp    11c3 <main+0xa3>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1167 <main+0x47>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
lea    0xed2(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%ebx
mov    (%rsp),%eax
cmp    %eax,%ebx
jle    114c <main+0x2c>
mov    %eax,0x4(%rsp)
mov    %eax,%ebx
mov    %ebx,%ebp
neg    %ebp
lea    0xeaf(%rip),%r14
lea    0xeac(%rip),%r15
jmp    1176 <main+0x56>
mov    %ebx,%esi
call   1030 <printf@plt>
lea    0x1(%rbx),%ecx
mov    (%rsp),%eax
add    $0xffffffff,%ebp
cmp    %ebx,%eax
mov    %ecx,%ebx
jle    1199 <main+0x79>
imul   $0xcccccccd,%ebx,%ecx
add    $0x19999999,%ecx
cmp    $0x33333332,%ecx
ja     1167 <main+0x47>
add    %ebp,%eax
mov    %r14,%rdi
cmp    $0x5,%eax
jl     1160 <main+0x40>
mov    %r15,%rdi
jmp    1160 <main+0x40>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

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