// File: /workspace/github_cpp_makefile_star2_O3/VanAndelInstitute[P]intent/src/edlib.cpp
// Function: EqualityDefinition::EqualityDefinition(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, EdlibEqualityPair const*, int)
EqualityDefinition(const string& alphabet,
                       const EdlibEqualityPair* additionalEqualities = NULL,
                       const int additionalEqualitiesLength = 0) {
        for (int i = 0; i < static_cast<int>(alphabet.size()); i++) {
            for (int j = 0; j < static_cast<int>(alphabet.size()); j++) {
                matrix[i][j] = (i == j);
            }
        }
        if (additionalEqualities != NULL) {
            for (int i = 0; i < additionalEqualitiesLength; i++) {
                size_t firstTransformed = alphabet.find(additionalEqualities[i].first);
                size_t secondTransformed = alphabet.find(additionalEqualities[i].second);
                if (firstTransformed != string::npos && secondTransformed != string::npos) {
                    matrix[firstTransformed][secondTransformed] = matrix[secondTransformed][firstTransformed] = true;
                }
            }
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, 0x4(%rsp)
movq %rdx, 0x18(%rsp)
movq %rdi, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x8(%rsi), %rax
testl %eax, %eax
jle 0x2da98
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
addl $0xf, %eax
andl $-0x10, %eax
movq %rcx, 0x20(%rsp)
decq %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movdqa %xmm0, 0x50(%rsp)
movq 0x8(%rsp), %rcx
leaq 0xf(%rcx), %rsi
xorl %edi, %edi
movdqa 0x627d(%rip), %xmm9     # 0x33750
pcmpeqd %xmm10, %xmm10
leaq -0xf(%rdi), %rcx
movq %rcx, 0x48(%rsp)
leaq -0xe(%rdi), %rcx
movq %rcx, 0x40(%rsp)
leaq -0xd(%rdi), %rcx
movq %rcx, 0x38(%rsp)
leaq -0xc(%rdi), %rcx
movq %rcx, 0x30(%rsp)
leaq -0xb(%rdi), %rcx
movq %rcx, 0x28(%rsp)
leaq -0xa(%rdi), %r13
leaq -0x9(%rdi), %rbp
leaq -0x8(%rdi), %r15
leaq -0x7(%rdi), %rdx
leaq -0x6(%rdi), %rcx
leaq -0x5(%rdi), %rbx
leaq -0x4(%rdi), %r14
leaq -0x3(%rdi), %r8
leaq -0x2(%rdi), %r9
leaq -0x1(%rdi), %r10
movdqa 0x620a(%rip), %xmm12    # 0x33740
movdqa 0x61f1(%rip), %xmm13    # 0x33730
movdqa 0x61d8(%rip), %xmm14    # 0x33720
movdqa 0x61bf(%rip), %xmm15    # 0x33710
movdqa 0x61a7(%rip), %xmm4     # 0x33700
movdqa 0x618f(%rip), %xmm3     # 0x336f0
movdqa 0x6177(%rip), %xmm2     # 0x336e0
movdqa 0x615f(%rip), %xmm1     # 0x336d0
xorl %r11d, %r11d
movdqa 0x50(%rsp), %xmm0
pxor %xmm9, %xmm0
movdqa %xmm12, %xmm6
pxor %xmm9, %xmm6
movdqa %xmm6, %xmm8
pcmpgtd %xmm0, %xmm8
pshufd $0xa0, %xmm8, %xmm7     # xmm7 = xmm8[0,0,2,2]
pshuflw $0xe8, %xmm7, %xmm5     # xmm5 = xmm7[0,2,2,3,4,5,6,7]
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm6     # xmm6 = xmm6[1,1,3,3]
pshuflw $0xe8, %xmm6, %xmm11    # xmm11 = xmm6[0,2,2,3,4,5,6,7]
pand %xmm5, %xmm11
pshufd $0xf5, %xmm8, %xmm8     # xmm8 = xmm8[1,1,3,3]
pshuflw $0xe8, %xmm8, %xmm5     # xmm5 = xmm8[0,2,2,3,4,5,6,7]
por %xmm11, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
movd %xmm5, %r12d
testb $0x1, %r12b
je 0x2d5e0
cmpq %r11, %rdi
sete -0xf(%rsi,%r11)
pand %xmm7, %xmm6
por %xmm8, %xmm6
packssdw %xmm6, %xmm6
pxor %xmm10, %xmm6
packssdw %xmm6, %xmm6
packsswb %xmm6, %xmm6
movd %xmm6, %r12d
shrl $0x8, %r12d
testb $0x1, %r12b
je 0x2d612
cmpq %r11, %r10
sete -0xe(%rsi,%r11)
movdqa %xmm13, %xmm5
pxor %xmm9, %xmm5
movdqa %xmm5, %xmm8
pcmpgtd %xmm0, %xmm8
pshufd $0xa0, %xmm8, %xmm6     # xmm6 = xmm8[0,0,2,2]
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
movdqa %xmm7, %xmm5
pand %xmm6, %xmm5
pshufd $0xf5, %xmm8, %xmm8     # xmm8 = xmm8[1,1,3,3]
por %xmm8, %xmm5
packssdw %xmm5, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
packsswb %xmm5, %xmm5
movd %xmm5, %r12d
shrl $0x10, %r12d
testb $0x1, %r12b
je 0x2d671
cmpq %r11, %r9
sete -0xd(%rsi,%r11)
pshufhw $0x84, %xmm6, %xmm5     # xmm5 = xmm6[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm7, %xmm6     # xmm6 = xmm7[0,1,2,3,4,5,4,6]
pand %xmm5, %xmm6
pshufhw $0x84, %xmm8, %xmm5     # xmm5 = xmm8[0,1,2,3,4,5,4,6]
por %xmm6, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
packsswb %xmm5, %xmm5
movd %xmm5, %r12d
shrl $0x18, %r12d
testb $0x1, %r12b
je 0x2d6ae
cmpq %r11, %r8
sete -0xc(%rsi,%r11)
movdqa %xmm14, %xmm5
pxor %xmm9, %xmm5
movdqa %xmm5, %xmm8
pcmpgtd %xmm0, %xmm8
pshufd $0xa0, %xmm8, %xmm7     # xmm7 = xmm8[0,0,2,2]
pshuflw $0xe8, %xmm7, %xmm11    # xmm11 = xmm7[0,2,2,3,4,5,6,7]
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm6     # xmm6 = xmm5[1,1,3,3]
pshuflw $0xe8, %xmm6, %xmm5     # xmm5 = xmm6[0,2,2,3,4,5,6,7]
pand %xmm11, %xmm5
pshufd $0xf5, %xmm8, %xmm8     # xmm8 = xmm8[1,1,3,3]
pshuflw $0xe8, %xmm8, %xmm11    # xmm11 = xmm8[0,2,2,3,4,5,6,7]
por %xmm5, %xmm11
pxor %xmm10, %xmm11
packssdw %xmm11, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x2, %xmm5, %r12d
testb $0x1, %r12b
je 0x2d715
cmpq %r11, %r14
sete -0xb(%rsi,%r11)
pand %xmm7, %xmm6
por %xmm8, %xmm6
packssdw %xmm6, %xmm6
pxor %xmm10, %xmm6
packssdw %xmm6, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x2, %xmm5, %r12d
shrl $0x8, %r12d
testb $0x1, %r12b
je 0x2d748
cmpq %r11, %rbx
sete -0xa(%rsi,%r11)
movdqa %xmm15, %xmm5
pxor %xmm9, %xmm5
movdqa %xmm5, %xmm8
pcmpgtd %xmm0, %xmm8
pshufd $0xa0, %xmm8, %xmm6     # xmm6 = xmm8[0,0,2,2]
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
movdqa %xmm7, %xmm5
pand %xmm6, %xmm5
pshufd $0xf5, %xmm8, %xmm8     # xmm8 = xmm8[1,1,3,3]
por %xmm8, %xmm5
packssdw %xmm5, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x3, %xmm5, %r12d
testb $0x1, %r12b
je 0x2d7a4
cmpq %r11, %rcx
sete -0x9(%rsi,%r11)
pshufhw $0x84, %xmm6, %xmm5     # xmm5 = xmm6[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm7, %xmm6     # xmm6 = xmm7[0,1,2,3,4,5,4,6]
pand %xmm5, %xmm6
pshufhw $0x84, %xmm8, %xmm5     # xmm5 = xmm8[0,1,2,3,4,5,4,6]
por %xmm6, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x3, %xmm5, %r12d
shrl $0x8, %r12d
testb $0x1, %r12b
je 0x2d7e2
cmpq %r11, %rdx
sete -0x8(%rsi,%r11)
movdqa %xmm4, %xmm5
pxor %xmm9, %xmm5
movdqa %xmm5, %xmm8
pcmpgtd %xmm0, %xmm8
pshufd $0xa0, %xmm8, %xmm7     # xmm7 = xmm8[0,0,2,2]
pshuflw $0xe8, %xmm7, %xmm11    # xmm11 = xmm7[0,2,2,3,4,5,6,7]
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm6     # xmm6 = xmm5[1,1,3,3]
pshuflw $0xe8, %xmm6, %xmm5     # xmm5 = xmm6[0,2,2,3,4,5,6,7]
pand %xmm11, %xmm5
pshufd $0xf5, %xmm8, %xmm8     # xmm8 = xmm8[1,1,3,3]
pshuflw $0xe8, %xmm8, %xmm11    # xmm11 = xmm8[0,2,2,3,4,5,6,7]
por %xmm5, %xmm11
pxor %xmm10, %xmm11
packssdw %xmm11, %xmm11
packsswb %xmm11, %xmm5
pextrw $0x4, %xmm5, %r12d
testb $0x1, %r12b
je 0x2d849
cmpq %r11, %r15
sete -0x7(%rsi,%r11)
pand %xmm7, %xmm6
por %xmm8, %xmm6
packssdw %xmm6, %xmm6
pxor %xmm10, %xmm6
packssdw %xmm6, %xmm6
packsswb %xmm6, %xmm5
pextrw $0x4, %xmm5, %r12d
shrl $0x8, %r12d
testb $0x1, %r12b
je 0x2d87c
cmpq %r11, %rbp
sete -0x6(%rsi,%r11)
movdqa %xmm3, %xmm5
pxor %xmm9, %xmm5
movdqa %xmm5, %xmm8
pcmpgtd %xmm0, %xmm8
pshufd $0xa0, %xmm8, %xmm6     # xmm6 = xmm8[0,0,2,2]
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
movdqa %xmm7, %xmm5
pand %xmm6, %xmm5
pshufd $0xf5, %xmm8, %xmm8     # xmm8 = xmm8[1,1,3,3]
por %xmm8, %xmm5
packssdw %xmm5, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x5, %xmm5, %r12d
testb $0x1, %r12b
je 0x2d8d7
cmpq %r11, %r13
sete -0x5(%rsi,%r11)
pshufhw $0x84, %xmm6, %xmm5     # xmm5 = xmm6[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm7, %xmm6     # xmm6 = xmm7[0,1,2,3,4,5,4,6]
pand %xmm5, %xmm6
pshufhw $0x84, %xmm8, %xmm5     # xmm5 = xmm8[0,1,2,3,4,5,4,6]
por %xmm6, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x5, %xmm5, %r12d
shrl $0x8, %r12d
testb $0x1, %r12b
je 0x2d917
cmpq %r11, 0x28(%rsp)
sete -0x4(%rsi,%r11)
movdqa %xmm2, %xmm5
pxor %xmm9, %xmm5
movdqa %xmm5, %xmm8
pcmpgtd %xmm0, %xmm8
pshufd $0xa0, %xmm8, %xmm7     # xmm7 = xmm8[0,0,2,2]
pshuflw $0xe8, %xmm7, %xmm11    # xmm11 = xmm7[0,2,2,3,4,5,6,7]
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm6     # xmm6 = xmm5[1,1,3,3]
pshuflw $0xe8, %xmm6, %xmm5     # xmm5 = xmm6[0,2,2,3,4,5,6,7]
pand %xmm11, %xmm5
pshufd $0xf5, %xmm8, %xmm8     # xmm8 = xmm8[1,1,3,3]
pshuflw $0xe8, %xmm8, %xmm11    # xmm11 = xmm8[0,2,2,3,4,5,6,7]
por %xmm5, %xmm11
pxor %xmm10, %xmm11
packssdw %xmm11, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x6, %xmm5, %r12d
testb $0x1, %r12b
je 0x2d97f
cmpq %r11, 0x30(%rsp)
sete -0x3(%rsi,%r11)
pand %xmm7, %xmm6
por %xmm8, %xmm6
packssdw %xmm6, %xmm6
pxor %xmm10, %xmm6
packssdw %xmm6, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x6, %xmm5, %r12d
shrl $0x8, %r12d
testb $0x1, %r12b
je 0x2d9b4
cmpq %r11, 0x38(%rsp)
sete -0x2(%rsi,%r11)
movdqa %xmm1, %xmm5
pxor %xmm9, %xmm5
movdqa %xmm5, %xmm7
pcmpgtd %xmm0, %xmm7
pshufd $0xa0, %xmm7, %xmm6     # xmm6 = xmm7[0,0,2,2]
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm0     # xmm0 = xmm5[1,1,3,3]
movdqa %xmm0, %xmm5
pand %xmm6, %xmm5
pshufd $0xf5, %xmm7, %xmm7     # xmm7 = xmm7[1,1,3,3]
por %xmm7, %xmm5
packssdw %xmm5, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x7, %xmm5, %r12d
testb $0x1, %r12b
je 0x2da0c
cmpq %r11, 0x40(%rsp)
sete -0x1(%rsi,%r11)
pshufhw $0x84, %xmm6, %xmm5     # xmm5 = xmm6[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm0, %xmm0     # xmm0 = xmm0[0,1,2,3,4,5,4,6]
pand %xmm5, %xmm0
pshufhw $0x84, %xmm7, %xmm5     # xmm5 = xmm7[0,1,2,3,4,5,4,6]
por %xmm0, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm0
packsswb %xmm0, %xmm0
pextrw $0x7, %xmm0, %r12d
shrl $0x8, %r12d
testb $0x1, %r12b
je 0x2da4a
cmpq %r11, 0x48(%rsp)
sete (%rsi,%r11)
addq $0x10, %r11
movdqa 0x5d0a(%rip), %xmm0     # 0x33760
paddq %xmm0, %xmm12
paddq %xmm0, %xmm13
paddq %xmm0, %xmm14
paddq %xmm0, %xmm15
paddq %xmm0, %xmm4
paddq %xmm0, %xmm3
paddq %xmm0, %xmm2
paddq %xmm0, %xmm1
cmpq %r11, %rax
jne 0x2d574
incq %rdi
addq $0x100, %rsi            # imm = 0x100
cmpq 0x20(%rsp), %rdi
jne 0x2d4d8
movq 0x18(%rsp), %r15
testq %r15, %r15
sete %al
movl 0x4(%rsp), %edx
testl %edx, %edx
setle %cl
orb %al, %cl
movq 0x10(%rsp), %r13
jne 0x2db11
movl %edx, %ebx
xorl %r14d, %r14d
movb $0x1, %bpl
movsbl (%r15,%r14,2), %esi
movq %r13, %rdi
xorl %edx, %edx
callq 0x6500
movq %rax, %r12
movsbl 0x1(%r15,%r14,2), %esi
movq %r13, %rdi
xorl %edx, %edx
callq 0x6500
cmpq $-0x1, %r12
je 0x2db09
cmpq $-0x1, %rax
je 0x2db09
movq %rax, %rcx
shlq $0x8, %rcx
movq 0x8(%rsp), %rdx
addq %rdx, %rcx
movb %bpl, (%r12,%rcx)
shlq $0x8, %r12
addq %rdx, %r12
movb %bpl, (%rax,%r12)
incq %r14
cmpq %r14, %rbx
jne 0x2dabd
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq