#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 /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int A = 0, V = 0, aero[111], i = 0, teste = 0, v1 = 0, v2 = 0, maior = 0,
      flag = 0;
  while (1) {
    A = 0;
    V = 0;
    i = 0;
    maior = 0;
    flag = 0;
    for (i; i < 111; i++)
      aero[i] = 0;
    teste++;
    scanf("%d %d", &A, &V);
    if (A == 0)
      break;
    printf("Teste %d\n", teste);
    i = 1;
    for (i; i < V + 1; i++) {
      scanf("%d %d", &v1, &v2);
      aero[v1]++;
      aero[v2]++;
      if (aero[v1] > maior)
        maior = aero[v1];
      if (aero[v2] > maior)
        maior = aero[v2];
    }
    i = 1;
    for (i; i < A + 1; i++) {
      if (aero[i] == maior && flag == 0) {
        printf("%d", i);
        flag = 1;
      } else if (aero[i] == maior)
        printf(" %d", i);
    }
    printf("\n\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1f0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x1d4(%rbp)
movl   $0x0,-0x1d8(%rbp)
movl   $0x0,-0x1dc(%rbp)
movl   $0x0,-0x1e0(%rbp)
movl   $0x0,-0x1e4(%rbp)
movl   $0x0,-0x1e8(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x1d4(%rbp)
movl   $0x0,-0x1e4(%rbp)
movl   $0x0,-0x1e8(%rbp)
cmpl   $0x6f,-0x1d4(%rbp)
jge    11db <main+0xbb>
movslq -0x1d4(%rbp),%rax
movl   $0x0,-0x1d0(%rbp,%rax,4)
mov    -0x1d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1d4(%rbp)
jmp    11a8 <main+0x88>
mov    -0x1d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1d8(%rbp)
lea    0xe0f(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    120d <main+0xed>
jmp    13c5 <main+0x2a5>
mov    -0x1d8(%rbp),%esi
lea    0xdec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x1d4(%rbp)
mov    -0x1d4(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    12fe <main+0x1de>
lea    0xdba(%rip),%rdi
lea    -0x1dc(%rbp),%rsi
lea    -0x1e0(%rbp),%rdx
call   1040 <scanf@plt>
movslq -0x1dc(%rbp),%rax
mov    -0x1d0(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x1d0(%rbp,%rax,4)
movslq -0x1e0(%rbp),%rax
mov    -0x1d0(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x1d0(%rbp,%rax,4)
movslq -0x1dc(%rbp),%rax
mov    -0x1d0(%rbp,%rax,4),%eax
cmp    -0x1e4(%rbp),%eax
jle    12b7 <main+0x197>
movslq -0x1dc(%rbp),%rax
mov    -0x1d0(%rbp,%rax,4),%eax
mov    %eax,-0x1e4(%rbp)
movslq -0x1e0(%rbp),%rax
mov    -0x1d0(%rbp,%rax,4),%eax
cmp    -0x1e4(%rbp),%eax
jle    12e5 <main+0x1c5>
movslq -0x1e0(%rbp),%rax
mov    -0x1d0(%rbp,%rax,4),%eax
mov    %eax,-0x1e4(%rbp)
jmp    12ea <main+0x1ca>
mov    -0x1d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1d4(%rbp)
jmp    122b <main+0x10b>
movl   $0x1,-0x1d4(%rbp)
mov    -0x1d4(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    13b2 <main+0x292>
movslq -0x1d4(%rbp),%rax
mov    -0x1d0(%rbp,%rax,4),%eax
cmp    -0x1e4(%rbp),%eax
jne    1366 <main+0x246>
cmpl   $0x0,-0x1e8(%rbp)
jne    1366 <main+0x246>
mov    -0x1d4(%rbp),%esi
lea    0xcb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x1e8(%rbp)
jmp    1399 <main+0x279>
movslq -0x1d4(%rbp),%rax
mov    -0x1d0(%rbp,%rax,4),%eax
cmp    -0x1e4(%rbp),%eax
jne    1394 <main+0x274>
mov    -0x1d4(%rbp),%esi
lea    0xc75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1399 <main+0x279>
jmp    139e <main+0x27e>
mov    -0x1d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1d4(%rbp)
jmp    1308 <main+0x1e8>
lea    0xc57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    117c <main+0x5c>
xor    %eax,%eax
add    $0x1f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1e8,%rsp
movl   $0x0,0x14(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
lea    0x20(%rsp),%rdi
mov    $0x1bc,%edx
xor    %esi,%esi
call   1050 <memset@plt>
lea    0xe77(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x10(%rsp),%rdx
call   1060 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
je     12ec <main+0x1ac>
lea    0xe56(%rip),%r14
lea    0x14(%rsp),%r12
lea    0x18(%rsp),%r15
mov    $0x1,%ebx
jmp    1216 <main+0xd6>
nopl   0x0(%rax,%rax,1)
lea    0xe47(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
mov    $0x1bc,%edx
lea    0x20(%rsp),%rdi
xor    %esi,%esi
call   1050 <memset@plt>
mov    0x1c(%rsp),%ebx
add    $0x1,%ebx
mov    %r14,%rdi
lea    0xc(%rsp),%rsi
lea    0x10(%rsp),%rdx
call   1060 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
lea    0x14(%rsp),%r12
je     12ec <main+0x1ac>
lea    0xde9(%rip),%rdi
mov    %ebx,0x1c(%rsp)
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x10(%rsp)
mov    $0x0,%ebp
jle    127f <main+0x13f>
xor    %ebx,%ebx
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   1060 <scanf@plt>
movslq 0x14(%rsp),%rax
addl   $0x1,0x20(%rsp,%rax,4)
movslq 0x18(%rsp),%rcx
mov    0x20(%rsp,%rcx,4),%edx
add    $0x1,%edx
mov    %edx,0x20(%rsp,%rcx,4)
mov    0x20(%rsp,%rax,4),%eax
cmp    %ebp,%eax
cmovg  %eax,%ebp
cmp    %ebp,%edx
cmovg  %edx,%ebp
add    $0x1,%ebx
cmp    0x10(%rsp),%ebx
jl     1240 <main+0x100>
cmpl   $0x0,0xc(%rsp)
mov    $0x1,%ebx
jle    11c0 <main+0x80>
xor    %r12d,%r12d
mov    $0x1,%r13d
jmp    12b5 <main+0x175>
nopw   0x0(%rax,%rax,1)
lea    0x1(%r13),%rax
movslq 0xc(%rsp),%rcx
cmp    %rcx,%r13
mov    %rax,%r13
jge    11c0 <main+0x80>
mov    0x20(%rsp,%r13,4),%ecx
mov    %ecx,%eax
xor    %ebp,%eax
or     %r12d,%eax
sete   %al
cmp    %ebp,%ecx
jne    12a0 <main+0x160>
test   %al,%al
cmovne %ebx,%r12d
lea    0xd2d(%rip),%rdi
lea    0xd27(%rip),%rax
cmovne %rax,%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    12a0 <main+0x160>
xor    %eax,%eax
add    $0x1e8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [10 x i8] c"Teste %d\0A\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [4 x i8] c" %d\00"
@.str.4 = [3 x i8] c"\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [111 x i32]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
br label %11
11: ; preds = %0, %113
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %5
store i32 0, i32* %9
store i32 0, i32* %10
%12 = load i32, i32* %5
br label %13
13: ; preds = %20, %11
%14 = load i32, i32* %5
%15 = icmp slt i32 %14, 111
br i1 %15, label %16, label %23
16: ; preds = %13
%17 = load i32, i32* %5
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [111 x i32], [111 x i32]* %4, i64 0, i64 %18
store i32 0, i32* %19
br label %20
20: ; preds = %16
%21 = load i32, i32* %5
%22 = add nsw i32 %21, 1
store i32 %22, i32* %5
br label %13
23: ; preds = %13
%24 = load i32, i32* %6
%25 = add nsw i32 %24, 1
store i32 %25, i32* %6
%26 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%27 = load i32, i32* %2
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %23
br label %115
30: ; preds = %23
%31 = load i32, i32* %6
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %31)
store i32 1, i32* %5
%33 = load i32, i32* %5
br label %34
34: ; preds = %75, %30
%35 = load i32, i32* %5
%36 = load i32, i32* %3
%37 = add nsw i32 %36, 1
%38 = icmp slt i32 %35, %37
br i1 %38, label %39, label %78
39: ; preds = %34
%40 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %7, i32* %8)
%41 = load i32, i32* %7
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [111 x i32], [111 x i32]* %4, i64 0, i64 %42
%44 = load i32, i32* %43
%45 = add nsw i32 %44, 1
store i32 %45, i32* %43
%46 = load i32, i32* %8
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [111 x i32], [111 x i32]* %4, i64 0, i64 %47
%49 = load i32, i32* %48
%50 = add nsw i32 %49, 1
store i32 %50, i32* %48
%51 = load i32, i32* %7
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [111 x i32], [111 x i32]* %4, i64 0, i64 %52
%54 = load i32, i32* %53
%55 = load i32, i32* %9
%56 = icmp sgt i32 %54, %55
br i1 %56, label %57, label %62
57: ; preds = %39
%58 = load i32, i32* %7
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [111 x i32], [111 x i32]* %4, i64 0, i64 %59
%61 = load i32, i32* %60
store i32 %61, i32* %9
br label %62
62: ; preds = %57, %39
%63 = load i32, i32* %8
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [111 x i32], [111 x i32]* %4, i64 0, i64 %64
%66 = load i32, i32* %65
%67 = load i32, i32* %9
%68 = icmp sgt i32 %66, %67
br i1 %68, label %69, label %74
69: ; preds = %62
%70 = load i32, i32* %8
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [111 x i32], [111 x i32]* %4, i64 0, i64 %71
%73 = load i32, i32* %72
store i32 %73, i32* %9
br label %74
74: ; preds = %69, %62
br label %75
75: ; preds = %74
%76 = load i32, i32* %5
%77 = add nsw i32 %76, 1
store i32 %77, i32* %5
br label %34
78: ; preds = %34
store i32 1, i32* %5
%79 = load i32, i32* %5
br label %80
80: ; preds = %110, %78
%81 = load i32, i32* %5
%82 = load i32, i32* %2
%83 = add nsw i32 %82, 1
%84 = icmp slt i32 %81, %83
br i1 %84, label %85, label %113
85: ; preds = %80
%86 = load i32, i32* %5
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [111 x i32], [111 x i32]* %4, i64 0, i64 %87
%89 = load i32, i32* %88
%90 = load i32, i32* %9
%91 = icmp eq i32 %89, %90
br i1 %91, label %92, label %98
92: ; preds = %85
%93 = load i32, i32* %10
%94 = icmp eq i32 %93, 0
br i1 %94, label %95, label %98
95: ; preds = %92
%96 = load i32, i32* %5
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %96)
store i32 1, i32* %10
br label %109
98: ; preds = %92, %85
%99 = load i32, i32* %5
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [111 x i32], [111 x i32]* %4, i64 0, i64 %100
%102 = load i32, i32* %101
%103 = load i32, i32* %9
%104 = icmp eq i32 %102, %103
br i1 %104, label %105, label %108
105: ; preds = %98
%106 = load i32, i32* %5
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %106)
br label %108
108: ; preds = %105, %98
br label %109
109: ; preds = %108, %95
br label %110
110: ; preds = %109
%111 = load i32, i32* %5
%112 = add nsw i32 %111, 1
store i32 %112, i32* %5
br label %80
113: ; preds = %80
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %11
115: ; preds = %29
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [10 x i8] c"Teste %d\0A\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [4 x i8] c" %d\00"
@str = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [111 x i32]
%4 = bitcast [111 x i32]* %3 to i8*
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %1 to i8*
%8 = bitcast i32* %2 to i8*
%9 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%10 = bitcast i32* %6 to i8*
store i32 0, i32* %6
store i32 0, i32* %1
store i32 0, i32* %2
%11 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%12 = load i32, i32* %1
%13 = icmp eq i32 %12, 0
br i1 %13, label %70, label %14
14: ; preds = %0, %64
%15 = phi i32 [ %66, %64 ], [ 1, %0 ]
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %15)
%17 = load i32, i32* %2
%18 = icmp slt i32 %17, 1
br i1 %18, label %19, label %23
19: ; preds = %23, %14
%20 = phi i32 [ 0, %14 ], [ %41, %23 ]
%21 = load i32, i32* %1
%22 = icmp slt i32 %21, 1
br i1 %22, label %64, label %45
23: ; preds = %14, %23
%24 = phi i32 [ %41, %23 ], [ 0, %14 ]
%25 = phi i32 [ %42, %23 ], [ 1, %14 ]
%26 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %5, i32* %6)
%27 = load i32, i32* %5
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [111 x i32], [111 x i32]* %3, i64 0, i64 %28
%30 = load i32, i32* %29
%31 = add nsw i32 %30, 1
store i32 %31, i32* %29
%32 = load i32, i32* %6
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [111 x i32], [111 x i32]* %3, i64 0, i64 %33
%35 = load i32, i32* %34
%36 = add nsw i32 %35, 1
store i32 %36, i32* %34
%37 = load i32, i32* %29
%38 = icmp sgt i32 %37, %24
%39 = select i1 %38, i32 %37, i32 %24
%40 = icmp sgt i32 %36, %39
%41 = select i1 %40, i32 %36, i32 %39
%42 = add nuw nsw i32 %25, 1
%43 = load i32, i32* %2
%44 = icmp slt i32 %25, %43
br i1 %44, label %23, label %19
45: ; preds = %19, %58
%46 = phi i64 [ %60, %58 ], [ 1, %19 ]
%47 = phi i32 [ %59, %58 ], [ 0, %19 ]
%48 = getelementptr inbounds [111 x i32], [111 x i32]* %3, i64 0, i64 %46
%49 = load i32, i32* %48
%50 = icmp eq i32 %49, %20
%51 = icmp eq i32 %47, 0
%52 = select i1 %50, i1 %51, i1 false
br i1 %50, label %53, label %58
53: ; preds = %45
%54 = select i1 %52, i32 1, i32 %47
%55 = select i1 %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0)
%56 = trunc i64 %46 to i32
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %55, i32 %56)
br label %58
58: ; preds = %45, %53
%59 = phi i32 [ %54, %53 ], [ %47, %45 ]
%60 = add nuw nsw i64 %46, 1
%61 = load i32, i32* %1
%62 = sext i32 %61 to i64
%63 = icmp slt i64 %46, %62
br i1 %63, label %45, label %64
64: ; preds = %58, %19
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
store i32 0, i32* %1
store i32 0, i32* %2
%66 = add nuw nsw i32 %15, 1
%67 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%68 = load i32, i32* %1
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %14
70: ; preds = %64, %0
ret i32 0
}