#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 */
struct fsm {
  int dummy;
};

/* Variables and functions */
struct fsm *fsm_complement(int /*<<< orphan*/);
int /*<<< orphan*/ fsm_concat(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ fsm_contains(int /*<<< orphan*/);
int /*<<< orphan*/ fsm_copy(struct fsm *);
int /*<<< orphan*/ fsm_minimize(int /*<<< orphan*/);
int /*<<< orphan*/ fsm_universal();
struct fsm *fsm_precedes(struct fsm *net1, struct fsm *net2) {
  return (fsm_complement(fsm_minimize(fsm_contains(fsm_minimize(fsm_concat(
      fsm_minimize(fsm_copy(net2)),
      fsm_concat(fsm_universal(), fsm_minimize(fsm_copy(net1)))))))));
}


x86 assembly (clang, -O0):
<fsm_precedes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1060 <fsm_copy@plt>
mov    %eax,%edi
call   1040 <fsm_minimize@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1080 <fsm_universal@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <fsm_copy@plt>
mov    %eax,%edi
call   1040 <fsm_minimize@plt>
mov    -0x18(%rbp),%edi
mov    %eax,%esi
call   1070 <fsm_concat@plt>
mov    -0x14(%rbp),%edi
mov    %eax,%esi
call   1070 <fsm_concat@plt>
mov    %eax,%edi
call   1040 <fsm_minimize@plt>
mov    %eax,%edi
call   1030 <fsm_contains@plt>
mov    %eax,%edi
call   1040 <fsm_minimize@plt>
mov    %eax,%edi
call   1050 <fsm_complement@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fsm_precedes>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1060 <fsm_copy@plt>
mov    %eax,%edi
call   1040 <fsm_minimize@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1080 <fsm_universal@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1060 <fsm_copy@plt>
mov    %eax,%edi
call   1040 <fsm_minimize@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1070 <fsm_concat@plt>
mov    %r14d,%edi
mov    %eax,%esi
call   1070 <fsm_concat@plt>
mov    %eax,%edi
call   1040 <fsm_minimize@plt>
mov    %eax,%edi
call   1030 <fsm_contains@plt>
mov    %eax,%edi
call   1040 <fsm_minimize@plt>
mov    %eax,%edi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1050 <fsm_complement@plt>

LLVM IR (-O0):
%struct.fsm = type { i32 }
define %struct.fsm* @fsm_precedes(%struct.fsm* %0, %struct.fsm* %1) {
%3 = alloca %struct.fsm*
%4 = alloca %struct.fsm*
store %struct.fsm* %0, %struct.fsm** %3
store %struct.fsm* %1, %struct.fsm** %4
%5 = load %struct.fsm*, %struct.fsm** %4
%6 = call i32 @fsm_copy(%struct.fsm* %5)
%7 = call i32 @fsm_minimize(i32 %6)
%8 = call i32 (...) @fsm_universal()
%9 = load %struct.fsm*, %struct.fsm** %3
%10 = call i32 @fsm_copy(%struct.fsm* %9)
%11 = call i32 @fsm_minimize(i32 %10)
%12 = call i32 @fsm_concat(i32 %8, i32 %11)
%13 = call i32 @fsm_concat(i32 %7, i32 %12)
%14 = call i32 @fsm_minimize(i32 %13)
%15 = call i32 @fsm_contains(i32 %14)
%16 = call i32 @fsm_minimize(i32 %15)
%17 = call %struct.fsm* @fsm_complement(i32 %16)
ret %struct.fsm* %17
}

LLVM IR (-O2):
%struct.fsm = type { i32 }
define %struct.fsm* @fsm_precedes(%struct.fsm* %0, %struct.fsm* %1) {
%3 = tail call i32 @fsm_copy(%struct.fsm* %1)
%4 = tail call i32 @fsm_minimize(i32 %3)
%5 = tail call i32 (...) @fsm_universal()
%6 = tail call i32 @fsm_copy(%struct.fsm* %0)
%7 = tail call i32 @fsm_minimize(i32 %6)
%8 = tail call i32 @fsm_concat(i32 %5, i32 %7)
%9 = tail call i32 @fsm_concat(i32 %4, i32 %8)
%10 = tail call i32 @fsm_minimize(i32 %9)
%11 = tail call i32 @fsm_contains(i32 %10)
%12 = tail call i32 @fsm_minimize(i32 %11)
%13 = tail call %struct.fsm* @fsm_complement(i32 %12)
ret %struct.fsm* %13
}