#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 *, unsigned char, unsigned char);
int /*<<< orphan*/ show();
int main(int argc, char *argv[]) {
  show();
  unsigned char x = 0;
  while (x++ < 81) {
    if (x / 9 % 3 == x % 9 % 3) {
      continue;
    }
    printf("A = %d, B = %d\n", x / 9, x % 9);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <show@plt>
movb   $0x0,-0x11(%rbp)
mov    -0x11(%rbp),%al
mov    %al,%cl
add    $0x1,%cl
mov    %cl,-0x11(%rbp)
movzbl %al,%eax
cmp    $0x51,%eax
jge    11ca <main+0xaa>
movzbl -0x11(%rbp),%eax
mov    $0x9,%ecx
cltd
idiv   %ecx
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,-0x18(%rbp)
movzbl -0x11(%rbp),%eax
mov    $0x9,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
mov    -0x18(%rbp),%edx
cmp    %eax,%edx
jne    1197 <main+0x77>
jmp    1141 <main+0x21>
movzbl -0x11(%rbp),%eax
mov    $0x9,%ecx
cltd
idiv   %ecx
mov    %al,%cl
movzbl -0x11(%rbp),%eax
mov    $0x9,%esi
cltd
idiv   %esi
mov    %dl,%al
lea    0xe46(%rip),%rdi
movzbl %cl,%esi
movzbl %al,%edx
call   1030 <printf@plt>
jmp    1141 <main+0x21>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <show@plt>
mov    $0x1,%bl
lea    0xecc(%rip),%r14
jmp    1148 <main+0x28>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%bl
cmp    $0x52,%bl
je     1195 <main+0x75>
movzbl %bl,%edx
imul   $0x39,%edx,%edi
shr    $0x9,%edi
lea    (%rdi,%rdi,8),%ecx
sub    %cl,%dl
neg    %ecx
movzbl %dl,%edx
imul   $0xab,%edx,%edx
shr    $0x9,%edx
lea    (%rdx,%rdx,2),%edx
neg    %edx
imul   $0xab,%edi,%esi
shr    $0x9,%esi
lea    (%rsi,%rsi,2),%esi
mov    %edi,%eax
sub    %sil,%al
add    %bl,%dl
add    %cl,%dl
cmp    %al,%dl
je     1140 <main+0x20>
add    %bl,%cl
movzbl %dil,%esi
movzbl %cl,%edx
mov    %r14,%rdi
call   1030 <printf@plt>
jmp    1140 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [16 x i8] c"A = %d, B = %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 (...) @show()
store i8 0, i8* %6
br label %8
8: ; preds = %24, %23, %2
%9 = load i8, i8* %6
%10 = add i8 %9, 1
store i8 %10, i8* %6
%11 = zext i8 %9 to i32
%12 = icmp slt i32 %11, 81
br i1 %12, label %13, label %34
13: ; preds = %8
%14 = load i8, i8* %6
%15 = zext i8 %14 to i32
%16 = sdiv i32 %15, 9
%17 = srem i32 %16, 3
%18 = load i8, i8* %6
%19 = zext i8 %18 to i32
%20 = srem i32 %19, 9
%21 = srem i32 %20, 3
%22 = icmp eq i32 %17, %21
br i1 %22, label %23, label %24
23: ; preds = %13
br label %8
24: ; preds = %13
%25 = load i8, i8* %6
%26 = zext i8 %25 to i32
%27 = sdiv i32 %26, 9
%28 = trunc i32 %27 to i8
%29 = load i8, i8* %6
%30 = zext i8 %29 to i32
%31 = srem i32 %30, 9
%32 = trunc i32 %31 to i8
%33 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8 zeroext %28, i8 zeroext %32)
br label %8
34: ; preds = %8
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"A = %d, B = %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @show()
br label %4
4: ; preds = %2, %13
%5 = phi i8 [ 1, %2 ], [ %14, %13 ]
%6 = udiv i8 %5, 9
%7 = urem i8 %6, 3
%8 = urem i8 %5, 9
%9 = urem i8 %8, 3
%10 = icmp eq i8 %7, %9
br i1 %10, label %13, label %11
11: ; preds = %4
%12 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8 zeroext %6, i8 zeroext %8)
br label %13
13: ; preds = %11, %4
%14 = add nuw nsw i8 %5, 1
%15 = icmp eq i8 %14, 82
br i1 %15, label %16, label %4
16: ; preds = %13
ret i32 0
}