#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 */
scalar_t__ isalpha(unsigned short);
scalar_t__ isdigit(unsigned short);
int ftk_can_break(unsigned short c1, unsigned short c2) {
  if (c1 > 0x80 || c2 > 0x80) {
    return 1;
  }
  if (isdigit(c1) && isdigit(c2)) {
    return 0;
  }
  if (isalpha(c1) && isalpha(c2)) {
    return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<ftk_can_break>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %si,%ax
mov    %di,%cx
mov    %cx,-0x6(%rbp)
mov    %ax,-0x8(%rbp)
movzwl -0x6(%rbp),%eax
cmp    $0x80,%eax
jg     1154 <ftk_can_break+0x34>
movzwl -0x8(%rbp),%eax
cmp    $0x80,%eax
jle    1160 <ftk_can_break+0x40>
movl   $0x1,-0x4(%rbp)
jmp    11cb <ftk_can_break+0xab>
movzwl -0x6(%rbp),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1192 <ftk_can_break+0x72>
movzwl -0x8(%rbp),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1192 <ftk_can_break+0x72>
movl   $0x0,-0x4(%rbp)
jmp    11cb <ftk_can_break+0xab>
movzwl -0x6(%rbp),%edi
call   1040 <isalpha@plt>
cmp    $0x0,%rax
je     11c4 <ftk_can_break+0xa4>
movzwl -0x8(%rbp),%edi
call   1040 <isalpha@plt>
cmp    $0x0,%rax
je     11c4 <ftk_can_break+0xa4>
movl   $0x0,-0x4(%rbp)
jmp    11cb <ftk_can_break+0xab>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ftk_can_break>:
push   %rbp
push   %rbx
push   %rax
mov    $0x1,%eax
cmp    $0x80,%edi
ja     117d <ftk_can_break+0x5d>
movzwl %si,%ebx
cmp    $0x80,%ebx
ja     117d <ftk_can_break+0x5d>
movzwl %di,%ebp
mov    %ebp,%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     115b <ftk_can_break+0x3b>
mov    %ebx,%edi
call   1030 <isdigit@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
jne    117d <ftk_can_break+0x5d>
mov    %ebp,%edi
call   1040 <isalpha@plt>
test   %rax,%rax
je     1178 <ftk_can_break+0x58>
mov    %ebx,%edi
call   1040 <isalpha@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
jne    117d <ftk_can_break+0x5d>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @ftk_can_break(i16 zeroext %0, i16 zeroext %1) {
%3 = alloca i32
%4 = alloca i16
%5 = alloca i16
store i16 %0, i16* %4
store i16 %1, i16* %5
%6 = load i16, i16* %4
%7 = zext i16 %6 to i32
%8 = icmp sgt i32 %7, 128
br i1 %8, label %13, label %9
9: ; preds = %2
%10 = load i16, i16* %5
%11 = zext i16 %10 to i32
%12 = icmp sgt i32 %11, 128
br i1 %12, label %13, label %14
13: ; preds = %9, %2
store i32 1, i32* %3
br label %33
14: ; preds = %9
%15 = load i16, i16* %4
%16 = call i64 @isdigit(i16 zeroext %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i16, i16* %5
%20 = call i64 @isdigit(i16 zeroext %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 0, i32* %3
br label %33
23: ; preds = %18, %14
%24 = load i16, i16* %4
%25 = call i64 @isalpha(i16 zeroext %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %23
%28 = load i16, i16* %5
%29 = call i64 @isalpha(i16 zeroext %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %27
store i32 0, i32* %3
br label %33
32: ; preds = %27, %23
store i32 1, i32* %3
br label %33
33: ; preds = %32, %31, %22, %13
%34 = load i32, i32* %3
ret i32 %34
}

LLVM IR (-O2):
define i32 @ftk_can_break(i16 zeroext %0, i16 zeroext %1) {
%3 = icmp ugt i16 %0, 128
%4 = icmp ugt i16 %1, 128
%5 = or i1 %3, %4
br i1 %5, label %19, label %6
6: ; preds = %2
%7 = tail call i64 @isdigit(i16 zeroext %0)
%8 = icmp eq i64 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %6
%10 = tail call i64 @isdigit(i16 zeroext %1)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %19
12: ; preds = %9, %6
%13 = tail call i64 @isalpha(i16 zeroext %0)
%14 = icmp eq i64 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = tail call i64 @isalpha(i16 zeroext %1)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15, %12
br label %19
19: ; preds = %15, %9, %2, %18
%20 = phi i32 [ 1, %18 ], [ 1, %2 ], [ 0, %9 ], [ 0, %15 ]
ret i32 %20
}