#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 main() {
  int x, y, solvable = 0;
  for (x = 0; x < 10; x++) {
    for (y = 0; y < 10; y++) {
      if ((10 * x + y) < 10 || (10 * y + x) < 10)
        ;
      else {
        if (((10 * x + y) + (10 * y + x)) == 102)
          printf("%d,%d\n", x, y);
        else
          solvable += 1;
      }
    }
  }
  if (solvable == 81)
    printf("无解\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    11d3 <main+0xc3>
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    11c0 <main+0xb0>
imul   $0xa,-0x8(%rbp),%eax
add    -0xc(%rbp),%eax
cmp    $0xa,%eax
jl     1168 <main+0x58>
imul   $0xa,-0xc(%rbp),%eax
add    -0x8(%rbp),%eax
cmp    $0xa,%eax
jge    116d <main+0x5d>
jmp    11ad <main+0x9d>
imul   $0xa,-0x8(%rbp),%eax
add    -0xc(%rbp),%eax
imul   $0xa,-0xc(%rbp),%ecx
add    -0x8(%rbp),%ecx
add    %ecx,%eax
cmp    $0x66,%eax
jne    119f <main+0x8f>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11a8 <main+0x98>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11ad <main+0x9d>
jmp    11b2 <main+0xa2>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113e <main+0x2e>
jmp    11c5 <main+0xb5>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    112d <main+0x1d>
cmpl   $0x51,-0x10(%rbp)
jne    11eb <main+0xdb>
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x66,%r15d
xor    %ebp,%ebp
xor    %r13d,%r13d
xor    %r14d,%r14d
jmp    1156 <main+0x36>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r14d
mov    0x4(%rsp),%r15d
add    $0xfffffff5,%r15d
add    $0xa,%ebp
cmp    $0xa,%r14d
je     11a8 <main+0x88>
mov    %r15d,0x4(%rsp)
mov    %r14d,%r12d
xor    %ebx,%ebx
jmp    1180 <main+0x60>
add    $0x1,%r13d
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%ebx
add    $0xa,%r12d
add    $0xfffffff5,%r15d
cmp    $0xa,%ebx
je     1140 <main+0x20>
lea    (%rbx,%rbp,1),%eax
cmp    $0xa,%eax
jb     1170 <main+0x50>
cmp    $0xa,%r12d
jb     1170 <main+0x50>
test   %r15d,%r15d
jne    1162 <main+0x42>
lea    0xe66(%rip),%rdi
mov    %r14d,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1170 <main+0x50>
cmp    $0x51,%r13d
jne    11ba <main+0x9a>
lea    0xe52(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%d,%d\0A\00"
@.str.1 = [8 x i8] c"\E6\97\A0\E8\A7\A3\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
store i32 0, i32* %2
br label %5
5: ; preds = %49, %0
%6 = load i32, i32* %2
%7 = icmp slt i32 %6, 10
br i1 %7, label %8, label %52
8: ; preds = %5
store i32 0, i32* %3
br label %9
9: ; preds = %45, %8
%10 = load i32, i32* %3
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %48
12: ; preds = %9
%13 = load i32, i32* %2
%14 = mul nsw i32 10, %13
%15 = load i32, i32* %3
%16 = add nsw i32 %14, %15
%17 = icmp slt i32 %16, 10
br i1 %17, label %24, label %18
18: ; preds = %12
%19 = load i32, i32* %3
%20 = mul nsw i32 10, %19
%21 = load i32, i32* %2
%22 = add nsw i32 %20, %21
%23 = icmp slt i32 %22, 10
br i1 %23, label %24, label %25
24: ; preds = %18, %12
br label %44
25: ; preds = %18
%26 = load i32, i32* %2
%27 = mul nsw i32 10, %26
%28 = load i32, i32* %3
%29 = add nsw i32 %27, %28
%30 = load i32, i32* %3
%31 = mul nsw i32 10, %30
%32 = load i32, i32* %2
%33 = add nsw i32 %31, %32
%34 = add nsw i32 %29, %33
%35 = icmp eq i32 %34, 102
br i1 %35, label %36, label %40
36: ; preds = %25
%37 = load i32, i32* %2
%38 = load i32, i32* %3
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %37, i32 %38)
br label %43
40: ; preds = %25
%41 = load i32, i32* %4
%42 = add nsw i32 %41, 1
store i32 %42, i32* %4
br label %43
43: ; preds = %40, %36
br label %44
44: ; preds = %43, %24
br label %45
45: ; preds = %44
%46 = load i32, i32* %3
%47 = add nsw i32 %46, 1
store i32 %47, i32* %3
br label %9
48: ; preds = %9
br label %49
49: ; preds = %48
%50 = load i32, i32* %2
%51 = add nsw i32 %50, 1
store i32 %51, i32* %2
br label %5
52: ; preds = %5
%53 = load i32, i32* %4
%54 = icmp eq i32 %53, 81
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %57
57: ; preds = %55, %52
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%d,%d\0A\00"
@str = [7 x i8] c"\E6\97\A0\E8\A7\A3\00"
define i32 @main() {
br label %1
1: ; preds = %0, %25
%2 = phi i32 [ 0, %0 ], [ %22, %25 ]
%3 = phi i32 [ 0, %0 ], [ %26, %25 ]
%4 = mul nuw nsw i32 %3, 10
br label %5
5: ; preds = %1, %21
%6 = phi i32 [ %2, %1 ], [ %22, %21 ]
%7 = phi i32 [ 0, %1 ], [ %23, %21 ]
%8 = add nuw nsw i32 %7, %4
%9 = icmp ult i32 %8, 10
br i1 %9, label %21, label %10
10: ; preds = %5
%11 = mul nuw nsw i32 %7, 10
%12 = add nuw nsw i32 %11, %3
%13 = icmp ult i32 %12, 10
br i1 %13, label %21, label %14
14: ; preds = %10
%15 = add nuw nsw i32 %12, %8
%16 = icmp eq i32 %15, 102
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %7)
br label %21
19: ; preds = %14
%20 = add nsw i32 %6, 1
br label %21
21: ; preds = %10, %5, %19, %17
%22 = phi i32 [ %6, %5 ], [ %6, %10 ], [ %6, %17 ], [ %20, %19 ]
%23 = add nuw nsw i32 %7, 1
%24 = icmp eq i32 %23, 10
br i1 %24, label %25, label %5
25: ; preds = %21
%26 = add nuw nsw i32 %3, 1
%27 = icmp eq i32 %26, 10
br i1 %27, label %28, label %1
28: ; preds = %25
%29 = icmp eq i32 %22, 81
br i1 %29, label %30, label %32
30: ; preds = %28
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
br label %32
32: ; preds = %30, %28
ret i32 0
}