#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, char);
int main() {
  char i, j, k;
  for (i = 'x'; i <= 'z'; i++)
    for (j = 'x'; j <= 'z'; j++)
      if (i != j)
        for (k = 'x'; k <= 'z'; k++)
          if (i != k && j != k)
            if (i != 'x' && k != 'x' && k != 'z')
              printf("A--%c\nB--%c\nC--%c\n", i, j, k);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x78,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x7a,%eax
jg     1205 <main+0xf5>
movb   $0x78,-0x6(%rbp)
movsbl -0x6(%rbp),%eax
cmp    $0x7a,%eax
jg     11f3 <main+0xe3>
movsbl -0x5(%rbp),%eax
movsbl -0x6(%rbp),%ecx
cmp    %ecx,%eax
je     11e1 <main+0xd1>
movb   $0x78,-0x7(%rbp)
movsbl -0x7(%rbp),%eax
cmp    $0x7a,%eax
jg     11dc <main+0xcc>
movsbl -0x5(%rbp),%eax
movsbl -0x7(%rbp),%ecx
cmp    %ecx,%eax
je     11ca <main+0xba>
movsbl -0x6(%rbp),%eax
movsbl -0x7(%rbp),%ecx
cmp    %ecx,%eax
je     11ca <main+0xba>
movsbl -0x5(%rbp),%eax
cmp    $0x78,%eax
je     11c5 <main+0xb5>
movsbl -0x7(%rbp),%eax
cmp    $0x78,%eax
je     11c5 <main+0xb5>
movsbl -0x7(%rbp),%eax
cmp    $0x7a,%eax
je     11c5 <main+0xb5>
mov    -0x5(%rbp),%cl
mov    -0x6(%rbp),%al
lea    0xe4a(%rip),%rdi
movsbl %cl,%esi
movsbl %al,%edx
movsbl -0x7(%rbp),%ecx
call   1030 <printf@plt>
jmp    11ca <main+0xba>
jmp    11cf <main+0xbf>
mov    -0x7(%rbp),%al
add    $0x1,%al
mov    %al,-0x7(%rbp)
jmp    1155 <main+0x45>
jmp    11e1 <main+0xd1>
jmp    11e6 <main+0xd6>
mov    -0x6(%rbp),%al
add    $0x1,%al
mov    %al,-0x6(%rbp)
jmp    1134 <main+0x24>
jmp    11f8 <main+0xe8>
mov    -0x5(%rbp),%al
add    $0x1,%al
mov    %al,-0x5(%rbp)
jmp    1123 <main+0x13>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    $0x78,%bl
lea    0xee3(%rip),%r14
jmp    1123 <main+0x13>
nop
add    $0x1,%bl
mov    %ebx,%eax
and    $0x7e,%al
cmp    $0x78,%al
je     1120 <main+0x10>
movsbl %bl,%ebp
mov    %r14,%rdi
mov    %ebp,%esi
mov    $0x78,%edx
mov    $0x79,%ecx
call   1030 <printf@plt>
lea    -0x78(%rbx),%eax
cmp    $0x2,%al
jb     1120 <main+0x10>
cmp    $0x7a,%bl
je     1164 <main+0x54>
mov    %r14,%rdi
mov    %ebp,%esi
mov    $0x7a,%edx
mov    $0x79,%ecx
call   1030 <printf@plt>
jmp    1120 <main+0x10>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [19 x i8] c"A--%c\0AB--%c\0AC--%c\0A\00"
define i32 @main() {
br label %1
1: ; preds = %9, %0
%2 = phi i8 [ 120, %0 ], [ %10, %9 ]
%3 = and i8 %2, 126
%4 = icmp eq i8 %3, 120
br i1 %4, label %9, label %5
5: ; preds = %1
%6 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8 signext %2, i8 signext 120, i8 signext 121)
switch i8 %2, label %7 [
i8 121, label %9
i8 122, label %11
i8 120, label %9
]
7: ; preds = %5
%8 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8 signext %2, i8 signext 122, i8 signext 121)
br label %9
9: ; preds = %1, %5, %5, %7
%10 = add nuw nsw i8 %2, 1
br label %1
11: ; preds = %5
ret i32 0
}