#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 */
scalar_t__ EOF;
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ puts(char *);
scalar_t__ scanf(char *, ...);
int main(void) {
  int A, B, C, i, m;
  scanf("%*d");
  while (scanf("%d %d %d", &A, &B, &C) != EOF) {
    m = 0;
    for (i = A + 1; i < B; i++) {
      if (i % C != 0) {
        printf("%d ", i);
        m = 1;
      }
    }
    if (m == 0)
      puts("No free parking spaces.");
    else
      puts("");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xeb0(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
mov    $0x0,%al
call   1050 <scanf@plt>
mov    0x2e7a(%rip),%rcx
cmp    (%rcx),%rax
je     11f8 <main+0xc8>
movl   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11cc <main+0x9c>
mov    -0x14(%rbp),%eax
cltd
idivl  -0x10(%rbp)
cmp    $0x0,%edx
je     11b9 <main+0x89>
mov    -0x14(%rbp),%esi
lea    0xe60(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x18(%rbp)
jmp    11be <main+0x8e>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1187 <main+0x57>
cmpl   $0x0,-0x18(%rbp)
jne    11e7 <main+0xb7>
lea    0xe34(%rip),%rdi
call   1030 <puts@plt>
jmp    11f3 <main+0xc3>
lea    0xe22(%rip),%rdi
call   1030 <puts@plt>
jmp    114d <main+0x1d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xeab(%rip),%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xea1(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x10(%rsp),%rcx
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x2e68(%rip),%r15
cmp    (%r15),%rax
jne    1196 <main+0x56>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe70(%rip),%rbx
lea    0x14(%rsp),%r12
lea    0xc(%rsp),%r13
lea    0x10(%rsp),%rbp
jmp    11d8 <main+0x98>
xchg   %ax,%ax
lea    0xe5a(%rip),%rdi
call   1040 <puts@plt>
lea    0xe41(%rip),%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1060 <scanf@plt>
cmp    (%r15),%rax
je     1185 <main+0x45>
mov    0x14(%rsp),%r14d
add    $0x1,%r14d
mov    0xc(%rsp),%ecx
cmp    %ecx,%r14d
jge    11b0 <main+0x70>
xor    %esi,%esi
jmp    11f9 <main+0xb9>
xchg   %ax,%ax
add    $0x1,%r14d
cmp    %ecx,%r14d
jge    1220 <main+0xe0>
mov    %r14d,%eax
cltd
idivl  0x10(%rsp)
test   %edx,%edx
je     11f0 <main+0xb0>
mov    %rbx,%rdi
mov    %r14d,%esi
call   1050 <printf@plt>
mov    $0x1,%esi
mov    0xc(%rsp),%ecx
jmp    11f0 <main+0xb0>
nopl   0x0(%rax,%rax,1)
test   %esi,%esi
je     11b0 <main+0x70>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    11bc <main+0x7c>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%*d\00"
@.str.1 = [9 x i8] c"%d %d %d\00"
@EOF = global i64 0
@.str.2 = [4 x i8] c"%d \00"
@.str.3 = [24 x i8] c"No free parking spaces.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = tail call i64 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%8 = call i64 (i8*, ...) @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%9 = load i64, i64* @EOF
%10 = icmp eq i64 %8, %9
br i1 %10, label %41, label %11
11: ; preds = %0, %37
%12 = load i32, i32* %1
%13 = add nsw i32 %12, 1
%14 = load i32, i32* %2
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %33
16: ; preds = %11, %26
%17 = phi i32 [ %27, %26 ], [ %14, %11 ]
%18 = phi i32 [ %29, %26 ], [ %13, %11 ]
%19 = phi i32 [ %28, %26 ], [ 0, %11 ]
%20 = load i32, i32* %3
%21 = srem i32 %18, %20
%22 = icmp eq i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %16
%24 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %18)
%25 = load i32, i32* %2
br label %26
26: ; preds = %16, %23
%27 = phi i32 [ %25, %23 ], [ %17, %16 ]
%28 = phi i32 [ 1, %23 ], [ %19, %16 ]
%29 = add nsw i32 %18, 1
%30 = icmp slt i32 %29, %27
br i1 %30, label %16, label %31
31: ; preds = %26
%32 = icmp eq i32 %28, 0
br i1 %32, label %33, label %35
33: ; preds = %11, %31
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
br label %37
35: ; preds = %31
%36 = call i32 @putchar(i32 10)
br label %37
37: ; preds = %35, %33
%38 = call i64 (i8*, ...) @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%39 = load i64, i64* @EOF
%40 = icmp eq i64 %38, %39
br i1 %40, label %41, label %11
41: ; preds = %37, %0
ret i32 0
}