#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);
void 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("order is a---%c\tb---%c\tc---%c\n", i, j, k);
          }
        }
    }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0x78,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x7a,%eax
jg     11fe <main+0xee>
movb   $0x78,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
cmp    $0x7a,%eax
jg     11ec <main+0xdc>
movsbl -0x1(%rbp),%eax
movsbl -0x2(%rbp),%ecx
cmp    %ecx,%eax
je     11da <main+0xca>
movb   $0x78,-0x3(%rbp)
movsbl -0x3(%rbp),%eax
cmp    $0x7a,%eax
jg     11d5 <main+0xc5>
movsbl -0x1(%rbp),%eax
movsbl -0x3(%rbp),%ecx
cmp    %ecx,%eax
je     11c3 <main+0xb3>
movsbl -0x2(%rbp),%eax
movsbl -0x3(%rbp),%ecx
cmp    %ecx,%eax
je     11c3 <main+0xb3>
movsbl -0x1(%rbp),%eax
cmp    $0x78,%eax
je     11be <main+0xae>
movsbl -0x3(%rbp),%eax
cmp    $0x78,%eax
je     11be <main+0xae>
movsbl -0x3(%rbp),%eax
cmp    $0x7a,%eax
je     11be <main+0xae>
mov    -0x1(%rbp),%cl
mov    -0x2(%rbp),%al
lea    0xe51(%rip),%rdi
movsbl %cl,%esi
movsbl %al,%edx
movsbl -0x3(%rbp),%ecx
call   1030 <printf@plt>
jmp    11c3 <main+0xb3>
jmp    11c8 <main+0xb8>
mov    -0x3(%rbp),%al
add    $0x1,%al
mov    %al,-0x3(%rbp)
jmp    114e <main+0x3e>
jmp    11da <main+0xca>
jmp    11df <main+0xcf>
mov    -0x2(%rbp),%al
add    $0x1,%al
mov    %al,-0x2(%rbp)
jmp    112d <main+0x1d>
jmp    11f1 <main+0xe1>
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   %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>
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [31 x i8] c"order is a---%c\09b---%c\09c---%c\0A\00"
define void @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 ([31 x i8], [31 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 ([31 x i8], [31 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 void
}