#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 *, char, char);
void main() {
  char team1, team2, team;
  for (team1 = 'a'; team1 <= 'c'; team1++) {
    for (team2 = 'x'; team2 <= 'z'; team2++) {
      team = team2 - team1;
      if (team != 'x' - 'a' && team != 'x' - 'c' && team != 'z' - 'c')
        printf("%c---%c\n", team1, team2);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0x61,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x63,%eax
jg     11a8 <main+0x98>
movb   $0x78,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
cmp    $0x7a,%eax
jg     1196 <main+0x86>
movsbl -0x2(%rbp),%eax
movsbl -0x1(%rbp),%ecx
sub    %ecx,%eax
mov    %al,-0x3(%rbp)
movsbl -0x3(%rbp),%eax
cmp    $0x17,%eax
je     1184 <main+0x74>
movsbl -0x3(%rbp),%eax
cmp    $0x15,%eax
je     1184 <main+0x74>
movsbl -0x3(%rbp),%eax
cmp    $0x17,%eax
je     1184 <main+0x74>
mov    -0x1(%rbp),%al
lea    0xe88(%rip),%rdi
movsbl %al,%esi
movsbl -0x2(%rbp),%edx
call   1030 <printf@plt>
jmp    1189 <main+0x79>
mov    -0x2(%rbp),%al
add    $0x1,%al
mov    %al,-0x2(%rbp)
jmp    112d <main+0x1d>
jmp    119b <main+0x8b>
mov    -0x1(%rbp),%al
add    $0x1,%al
mov    %al,-0x1(%rbp)
jmp    111c <main+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x61,%esi
mov    $0x79,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x61,%esi
mov    $0x7a,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x62,%esi
mov    $0x78,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x62,%esi
mov    $0x7a,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x63,%esi
mov    $0x79,%edx
pop    %rbx
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [9 x i8] c"%c---%c\0A\00"
define void @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 97, i8 signext 121)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 97, i8 signext 122)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 98, i8 signext 120)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 98, i8 signext 122)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8 signext 99, i8 signext 121)
ret void
}