#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 main() {
  int x, y;
  scanf("%d", &x);
  scanf("%d", &y);
  if (x < y && x > 1 && x < 20 && y < 10000) {
    printf("%d", 1);
    for (int i = 2; i <= x; i++)
      printf(" %d", i);
    printf("\n%d", x + 1);
    for (int i = x + 2; i <= y; i++)
      printf(" %d", i);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xecf(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xebf(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1206 <main+0xe6>
cmpl   $0x1,-0x8(%rbp)
jle    1206 <main+0xe6>
cmpl   $0x14,-0x8(%rbp)
jge    1206 <main+0xe6>
cmpl   $0x2710,-0xc(%rbp)
jge    1206 <main+0xe6>
lea    0xe82(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
movl   $0x2,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     11bd <main+0x9d>
mov    -0x10(%rbp),%esi
lea    0xe56(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1194 <main+0x74>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
lea    0xe3a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1201 <main+0xe1>
mov    -0x14(%rbp),%esi
lea    0xe12(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11d8 <main+0xb8>
jmp    1206 <main+0xe6>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xeda(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    $0x270f,%eax
jg     11e3 <main+0xc3>
mov    (%rsp),%ecx
lea    -0x2(%rcx),%edx
cmp    $0x11,%edx
ja     11e3 <main+0xc3>
cmp    %eax,%ecx
jge    11e3 <main+0xc3>
lea    0xe95(%rip),%rdi
mov    $0x1,%ebx
mov    $0x1,%esi
call   1030 <printf@plt>
mov    (%rsp),%esi
cmp    $0x2,%esi
jl     11a4 <main+0x84>
lea    0xe72(%rip),%r14
xchg   %ax,%ax
add    $0x1,%ebx
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
mov    (%rsp),%esi
cmp    %esi,%ebx
jl     1190 <main+0x70>
add    $0x1,%esi
lea    0xe56(%rip),%rdi
call   1030 <printf@plt>
mov    (%rsp),%ebx
lea    0x2(%rbx),%eax
cmp    0x4(%rsp),%eax
jg     11e3 <main+0xc3>
add    $0x1,%ebx
lea    0xe37(%rip),%r14
nopl   0x0(%rax)
add    $0x1,%ebx
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
cmp    0x4(%rsp),%ebx
jl     11d0 <main+0xb0>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

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