#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*/ decodeStr(char *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ stdin;
int main(void) {
  int T;
  char line[100 + 2], trash[100 + 2];
  scanf("%d", &T);
  fgets(trash, 100 + 2, stdin);
  while (T) {
    while (1) {
      if (fgets(line, 100 + 2, stdin) == NULL)
        break;
      if (line[0] == '\n')
        break;
      decodeStr(line);
      printf("%s", line);
    }
    if (T != 1)
      printf("\n");
    T--;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xea7(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1060 <scanf@plt>
lea    -0xe0(%rbp),%rdi
mov    0x2e78(%rip),%rax
mov    (%rax),%edx
mov    $0x66,%esi
call   1050 <fgets@plt>
cmpl   $0x0,-0x8(%rbp)
je     1209 <main+0xc9>
jmp    118b <main+0x4b>
lea    -0x70(%rbp),%rdi
mov    0x2e52(%rip),%rax
mov    (%rax),%edx
mov    $0x66,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
jne    11b1 <main+0x71>
jmp    11e3 <main+0xa3>
movsbl -0x70(%rbp),%eax
cmp    $0xa,%eax
jne    11c3 <main+0x83>
jmp    11e3 <main+0xa3>
lea    -0x70(%rbp),%rdi
call   1030 <decodeStr@plt>
lea    -0x70(%rbp),%rsi
lea    0xe2c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    118b <main+0x4b>
cmpl   $0x1,-0x8(%rbp)
je     11fb <main+0xbb>
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    117c <main+0x3c>
xor    %eax,%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0xf0,%rsp
lea    0xe9d(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1070 <scanf@plt>
mov    0x2e74(%rip),%r15
mov    (%r15),%edx
lea    0x80(%rsp),%rdi
mov    $0x66,%esi
call   1060 <fgets@plt>
cmpl   $0x0,0xc(%rsp)
je     11e9 <main+0x99>
lea    0x10(%rsp),%rbx
lea    0xe67(%rip),%r14
jmp    11b5 <main+0x65>
xchg   %ax,%ax
mov    %rbx,%rdi
call   1040 <decodeStr@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r15),%edx
mov    %rbx,%rdi
mov    $0x66,%esi
call   1060 <fgets@plt>
test   %rax,%rax
je     11d1 <main+0x81>
cmpb   $0xa,0x10(%rsp)
jne    11a0 <main+0x50>
cmpl   $0x1,0xc(%rsp)
je     11e9 <main+0x99>
mov    $0xa,%edi
call   1030 <putchar@plt>
addl   $0xffffffff,0xc(%rsp)
jne    11b5 <main+0x65>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@stdin = global i32 0
@.str.1 = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [102 x i8]
%3 = alloca [102 x i8]
%4 = bitcast i32* %1 to i8*
%5 = getelementptr inbounds [102 x i8], [102 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [102 x i8], [102 x i8]* %3, i64 0, i64 0
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%8 = load i32, i32* @stdin
%9 = call i32* @fgets(i8* %6, i32 102, i32 %8)
%10 = load i32, i32* %1
%11 = icmp eq i32 %10, 0
br i1 %11, label %36, label %12
12: ; preds = %0, %31
%13 = load i32, i32* @stdin
%14 = call i32* @fgets(i8* %5, i32 102, i32 %13)
%15 = icmp eq i32* %14, null
%16 = load i8, i8* %5
%17 = icmp eq i8 %16, 10
%18 = select i1 %15, i1 true, i1 %17
br i1 %18, label %28, label %19
19: ; preds = %12, %19
%20 = call i32 @decodeStr(i8* %5)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%22 = load i32, i32* @stdin
%23 = call i32* @fgets(i8* %5, i32 102, i32 %22)
%24 = icmp eq i32* %23, null
%25 = load i8, i8* %5
%26 = icmp eq i8 %25, 10
%27 = select i1 %24, i1 true, i1 %26
br i1 %27, label %28, label %19
28: ; preds = %19, %12
%29 = load i32, i32* %1
%30 = icmp eq i32 %29, 1
br i1 %30, label %36, label %31
31: ; preds = %28
%32 = call i32 @putchar(i32 10)
%33 = load i32, i32* %1
%34 = add nsw i32 %33, -1
store i32 %34, i32* %1
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %12
36: ; preds = %31, %28, %0
ret i32 0
}