LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/main.c
// Function: main
int main(int argc, const char* argv[]) {
    
    if (argc < 2) {
        fprintf(stderr, "Expect at least one input\n");
        print_usage(argv[0]);
        return 1;
    }
    
    const char* monitor_file_name;
    const char* implementation_file_name;
    if (argc == 3) {
        monitor_file_name = argv[1];
        implementation_file_name = argv[2];
    } else {
        assert(argc == 2);
        // monitor is given via stdin
        monitor_file_name = NULL;
        implementation_file_name = argv[1];
    }
    
    aiger* monitor = aiger_init();
    if (monitor == NULL) {
        return 1;
    }
    
    if (monitor_file_name != NULL) {
        if (aiger_open_and_read_from_file(monitor, monitor_file_name) != NULL) {
            fprintf(stderr, "error: cannot read monitor file\n");
            return 1;
        }
    } else {
        if (aiger_read_from_file(monitor, stdin) != NULL) {
            fprintf(stderr, "error: cannot read monitor file\n");
            return 1;
        }
    }
    
    aiger* implementation = aiger_init();
    if (implementation == NULL) {
        return 1;
    }
    
    if (aiger_open_and_read_from_file(implementation, implementation_file_name) != NULL) {
        fprintf(stderr, "error: cannot read implementation file\n");
        return 1;
    }
    
    aiger* combination = combine(monitor, implementation);
    if (combination == NULL) {
        return 1;
    }
    
    assert(!aiger_check(combination));

    //aiger_reencode(combination);
    aiger_write_to_file(combination, aiger_binary_mode, stdout);
    
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x1, %edi
jle 0x1484
cmpl $0x2, %edi
je 0x13d7
cmpl $0x3, %edi
jne 0x14ad
movq 0x8(%rsi), %r12
movl $0x10, %eax
jmp 0x13df
movl $0x8, %eax
xorl %r12d, %r12d
movq (%rsi,%rax), %r15
callq 0x1c5e
movl $0x1, %ebx
testq %rax, %rax
je 0x149f
movq %rax, %r14
testq %r12, %r12
je 0x1418
movq %r14, %rdi
movq %r12, %rsi
callq 0x64a7
testq %rax, %rax
je 0x142f
callq 0x11e0
jmp 0x149f
movq 0xabb9(%rip), %rax      # 0xbfd8
movq (%rax), %rsi
movq %r14, %rdi
callq 0x6464
testq %rax, %rax
jne 0x149a
callq 0x1c5e
testq %rax, %rax
je 0x149f
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x64a7
testq %rax, %rax
jne 0x1493
movq %r14, %rdi
movq %r12, %rsi
callq 0x14ec
testq %rax, %rax
je 0x149f
movq %rax, %r14
movq %rax, %rdi
callq 0x2fe8
testq %rax, %rax
jne 0x14cc
movq 0xab5d(%rip), %rax      # 0xbfd0
movq (%rax), %rdx
xorl %ebx, %ebx
movq %r14, %rdi
xorl %esi, %esi
callq 0x4f60
jmp 0x149f
movq %rsi, %rdi
callq 0x1234
movl $0x1, %ebx
jmp 0x149f
callq 0x1218
jmp 0x149f
callq 0x11fc
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x6bcd(%rip), %rdi      # 0x8081
leaq 0x6bd0(%rip), %rsi      # 0x808b
leaq 0x6bd0(%rip), %rcx      # 0x8092
movl $0x20, %edx
callq 0x10f0
leaq 0x6c25(%rip), %rdi      # 0x80f8
leaq 0x6bb1(%rip), %rsi      # 0x808b
leaq 0x6bb1(%rip), %rcx      # 0x8092
movl $0x46, %edx
callq 0x10f0
nop
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/combine.c
// Function: names_do_match
static bool names_do_match(const char* monitor_input, const char* impl_output) {
    const unsigned monitor_input_len = strlen(monitor_input);
    const unsigned impl_output_len = strlen(impl_output);
    const unsigned prefix_len = strlen("AIGER_NEXT_");
    
    if (strncmp(monitor_input, "AIGER_NEXT_", prefix_len) != 0) {
        // special case if input is not contained in LTL formula
        return strcmp(monitor_input, impl_output) == 0;
    }
    assert(monitor_input_len > prefix_len);
    
    if (prefix_len + impl_output_len > monitor_input_len) {
        return false;
    }
    // do a case-insensitive comparision because of different translations
    if (strcasecmp(monitor_input + prefix_len, impl_output) == 0) {
        return true;
    }
    return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x10b0
movq %rax, %r15
movq %rbx, %rdi
callq 0x10b0
movq %rax, %r12
leaq 0x679e(%rip), %rsi      # 0x81ce
movl $0xb, %edx
movq %r14, %rdi
callq 0x1070
testl %eax, %eax
je 0x1a4e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1120
jmp 0x1a70
cmpl $0xb, %r15d
jbe 0x1a81
addl $0xb, %r12d
cmpl %r15d, %r12d
jbe 0x1a61
xorl %eax, %eax
jmp 0x1a75
addq $0xb, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1040
testl %eax, %eax
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x6752(%rip), %rdi      # 0x81da
leaq 0x66af(%rip), %rsi      # 0x813e
leaq 0x6763(%rip), %rcx      # 0x81f9
movl $0x1b, %edx
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/combine.c
// Function: translate_literal
static unsigned translate_literal(const aiger* implementation, unsigned literal, unsigned offset) {
    unsigned tag = aiger_lit2tag(implementation, literal);
    if (tag == 0) {
        // constant
        return literal;
    } else if (tag == 1) {
        // input
        aiger_symbol* input = aiger_is_input(implementation, aiger_strip(literal));
        assert(input != NULL);
        assert(input->next != 0);
        return literal % 2 == 1 ? aiger_not(input->next) : input->next;
    } else if (tag == 2) {
        // latch
        return literal + offset * 2;
    } else {
        assert(tag == 3);
        // and
        return literal + offset * 2;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %r14d
movl %esi, %ebx
movq %rdi, %r15
callq 0x6765
cmpl $0x3, %eax
ja 0x1af5
movl %eax, %eax
leaq 0x6654(%rip), %rcx      # 0x8114
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leal (%rbx,%r14,2), %ebx
jmp 0x1aed
movl %ebx, %esi
andl $-0x2, %esi
movq %r15, %rdi
callq 0x67e9
testq %rax, %rax
je 0x1b14
movl 0x4(%rax), %eax
testl %eax, %eax
je 0x1b33
andl $0x1, %ebx
xorl %eax, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x6797(%rip), %rdi      # 0x8293
leaq 0x663b(%rip), %rsi      # 0x813e
leaq 0x672e(%rip), %rcx      # 0x8238
movl $0x96, %edx
callq 0x10f0
leaq 0x670f(%rip), %rdi      # 0x822a
leaq 0x661c(%rip), %rsi      # 0x813e
leaq 0x670f(%rip), %rcx      # 0x8238
movl $0x8f, %edx
callq 0x10f0
leaq 0x6748(%rip), %rdi      # 0x8282
leaq 0x65fd(%rip), %rsi      # 0x813e
leaq 0x66f0(%rip), %rcx      # 0x8238
movl $0x90, %edx
callq 0x10f0
nop
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_init_mem
aiger *
aiger_init_mem (void *memory_mgr,
		aiger_malloc external_malloc, aiger_free external_free)
{
  aiger_private *private;
  aiger *public;

  assert (external_malloc);
  assert (external_free);
  private = external_malloc (memory_mgr, sizeof (*private));
  CLR (*private);
  private->memory_mgr = memory_mgr;
  private->malloc_callback = external_malloc;
  private->free_callback = external_free;
  public = &private->public;
  PUSH (public->comments, private->num_comments, private->size_comments, 0);

  return public;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x1c20
movq %rdx, %r12
testq %rdx, %rdx
je 0x1c3f
movq %rsi, %r14
movq %rdi, %r15
movl $0xd8, %esi
callq *%r14
movq %rax, %rbx
xorl %r13d, %r13d
movl $0xd8, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0x1100
movq %r15, 0xb8(%rbx)
movq %r14, 0xc0(%rbx)
movq %r12, 0xc8(%rbx)
movl $0x8, %esi
movq %r15, %rdi
callq *%r14
movq %rax, %r14
movq %r13, (%rax)
movq 0x68(%rbx), %rsi
movq 0xb8(%rbx), %rdi
xorl %edx, %edx
callq *0xc8(%rbx)
movq %r14, 0x68(%rbx)
movl $0x1, 0xb0(%rbx)
movl 0xac(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0xac(%rbx)
movq %r13, (%r14,%rax,8)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x66bc(%rip), %rdi      # 0x82e3
leaq 0x66c5(%rip), %rsi      # 0x82f3
leaq 0x66c6(%rip), %rcx      # 0x82fb
movl $0xd4, %edx
callq 0x10f0
leaq 0x66ed(%rip), %rdi      # 0x8333
leaq 0x66a6(%rip), %rsi      # 0x82f3
leaq 0x66a7(%rip), %rcx      # 0x82fb
movl $0xd5, %edx
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_delete_comments
static unsigned
aiger_delete_comments (aiger * public)
{
  char **start = (char **) public->comments, ** end, ** p;
  IMPORT_private_FROM (public);

  end = start + private->num_comments;
  for (p = start; p < end; p++)
    aiger_delete_str (private, *p);

  private->num_comments = 0;
  public->comments[0] = 0;

  return private->num_comments;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x68(%rdi), %r15
movl 0xac(%rdi), %eax
testq %rax, %rax
je 0x1f9f
leaq (%r15,%rax,8), %r12
movq (%r15), %r14
testq %r14, %r14
je 0x1f92
movq %r14, %rdi
callq 0x10b0
leaq 0x1(%rax), %rdx
movq 0xb8(%rbx), %rdi
movq %r14, %rsi
callq *0xc8(%rbx)
addq $0x8, %r15
cmpq %r12, %r15
jb 0x1f6e
movq 0x68(%rbx), %r15
movl $0x0, 0xac(%rbx)
movq $0x0, (%r15)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_import_literal
static aiger_type *
aiger_import_literal (aiger_private * private, unsigned lit)
{
  unsigned var = aiger_lit2var (lit);
  EXPORT_public_FROM (private);

  if (var > public->maxvar)
    public->maxvar = var;

  while (var >= private->size_types)
    ENLARGE (private->types, private->size_types);

  return private->types + var;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
shrl %esi
cmpl (%rdi), %esi
jbe 0x21f6
movl %esi, (%r14)
movl 0x78(%r14), %eax
cmpl %eax, %esi
jae 0x2207
movq 0x70(%r14), %rbx
jmp 0x2294
movl %esi, -0x2c(%rbp)
movl %eax, %r12d
leaq (%r12,%r12), %r15
testl %eax, %eax
movl $0x1, %eax
cmoveq %rax, %r15
shlq $0x3, %r12
leaq (,%r15,8), %r13
cmpq %r13, %r12
movq %r13, %rbx
cmovbq %r12, %rbx
movq 0xb8(%r14), %rdi
movq %r13, %rsi
callq *0xc0(%r14)
movq 0x70(%r14), %rsi
movq %rax, %rdi
movq %rbx, %rdx
movq %rax, %rbx
callq 0x1150
subq %r12, %r13
jbe 0x2268
leaq (%rbx,%r12), %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x1100
movq 0x70(%r14), %rsi
movq 0xb8(%r14), %rdi
movq %r12, %rdx
callq *0xc8(%r14)
movq %rbx, 0x70(%r14)
movl %r15d, 0x78(%r14)
movl %r15d, %eax
movl -0x2c(%rbp), %esi
cmpl %r15d, %esi
jae 0x220a
movl %esi, %eax
leaq (%rbx,%rax,8), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_add_reset
void
aiger_add_reset (aiger * public, unsigned lit, unsigned reset) 
{
  IMPORT_private_FROM (public);
  aiger_type * type;
  assert (reset <= 1 || reset == lit);
  assert (!aiger_error (public));
  assert (lit);
  assert (!aiger_sign (lit));
  type = aiger_import_literal (private, lit);
  assert (type->latch);
  assert (type->idx < public->num_latches);
  public->latches[type->idx].reset = reset;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
cmpl $0x2, %edx
setb %al
cmpl %esi, %edx
sete %cl
orb %al, %cl
je 0x259c
movq %rdi, %r14
cmpq $0x0, 0xd0(%rdi)
jne 0x25bb
testl %esi, %esi
je 0x25da
testb $0x1, %sil
jne 0x25f9
movl %edx, %ebx
movq %r14, %rdi
callq 0x21dc
testb $0x2, (%rax)
je 0x2618
movl 0x4(%rax), %eax
cmpl 0x8(%r14), %eax
jae 0x2637
movq 0x30(%r14), %rcx
shlq $0x5, %rax
movl %ebx, 0x8(%rcx,%rax)
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x5e6d(%rip), %rdi      # 0x8410
leaq 0x5d49(%rip), %rsi      # 0x82f3
leaq 0x5e7a(%rip), %rcx      # 0x842b
movl $0x1a4, %edx            # imm = 0x1A4
callq 0x10f0
leaq 0x5d7f(%rip), %rdi      # 0x8341
leaq 0x5d2a(%rip), %rsi      # 0x82f3
leaq 0x5e5b(%rip), %rcx      # 0x842b
movl $0x1a5, %edx            # imm = 0x1A5
callq 0x10f0
leaq 0x5e46(%rip), %rdi      # 0x8427
leaq 0x5d0b(%rip), %rsi      # 0x82f3
leaq 0x5e3c(%rip), %rcx      # 0x842b
movl $0x1a6, %edx            # imm = 0x1A6
callq 0x10f0
leaq 0x5d91(%rip), %rdi      # 0x8391
leaq 0x5cec(%rip), %rsi      # 0x82f3
leaq 0x5e1d(%rip), %rcx      # 0x842b
movl $0x1a7, %edx            # imm = 0x1A7
callq 0x10f0
leaq 0x6821(%rip), %rdi      # 0x8e40
leaq 0x5ccd(%rip), %rsi      # 0x82f3
leaq 0x5dfe(%rip), %rcx      # 0x842b
movl $0x1a9, %edx            # imm = 0x1A9
callq 0x10f0
leaq 0x5e27(%rip), %rdi      # 0x8465
leaq 0x5cae(%rip), %rsi      # 0x82f3
leaq 0x5ddf(%rip), %rcx      # 0x842b
movl $0x1aa, %edx            # imm = 0x1AA
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_add_output
void
aiger_add_output (aiger * public, unsigned lit, const char *name)
{
  IMPORT_private_FROM (public);
  aiger_symbol symbol;
  aiger_import_literal (private, lit);
  CLR (symbol);
  symbol.lit = lit;
  symbol.name = aiger_copy_str (private, name);
  PUSH (public->outputs, public->num_outputs, private->size_outputs, symbol);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r14
callq 0x21dc
movq %r14, %rdi
movq %r15, %rsi
callq 0x22a9
movl 0xc(%r14), %r12d
cmpl 0x94(%r14), %r12d
jne 0x2727
movq %rax, -0x40(%rbp)
movl %ebx, -0x2c(%rbp)
leaq (%r12,%r12), %rax
testl %r12d, %r12d
movl $0x1, %r15d
cmovneq %rax, %r15
shlq $0x5, %r12
movq %r15, -0x38(%rbp)
shlq $0x5, %r15
cmpq %r15, %r12
movq %r15, %rbx
cmovbq %r12, %rbx
movq 0xb8(%r14), %rdi
movq %r15, %rsi
callq *0xc0(%r14)
movq %rax, %r13
movq 0x38(%r14), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x1150
subq %r12, %r15
jbe 0x26f6
movq %r13, %rdi
addq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1100
movq 0x38(%r14), %rsi
movq 0xb8(%r14), %rdi
movq %r12, %rdx
callq *0xc8(%r14)
movq %r13, 0x38(%r14)
movq -0x38(%rbp), %rax
movl %eax, 0x94(%r14)
movl 0xc(%r14), %r12d
movl -0x2c(%rbp), %ebx
movq -0x40(%rbp), %rax
jmp 0x272b
movq 0x38(%r14), %r13
leal 0x1(%r12), %ecx
movl %ecx, 0xc(%r14)
movl %r12d, %ecx
shlq $0x5, %rcx
movl %ebx, (%r13,%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%r13,%rcx)
movl $0x0, 0x14(%r13,%rcx)
movq %rax, 0x18(%r13,%rcx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_add_bad
void
aiger_add_bad (aiger * public, unsigned lit, const char *name)
{
  IMPORT_private_FROM (public);
  aiger_symbol symbol;
  aiger_import_literal (private, lit);
  CLR (symbol);
  symbol.lit = lit;
  symbol.name = aiger_copy_str (private, name);
  PUSH (public->bad, public->num_bad, private->size_bad, symbol);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r14
callq 0x21dc
movq %r14, %rdi
movq %r15, %rsi
callq 0x22a9
movl 0x14(%r14), %r12d
cmpl 0x9c(%r14), %r12d
jne 0x2837
movq %rax, -0x40(%rbp)
movl %ebx, -0x2c(%rbp)
leaq (%r12,%r12), %rax
testl %r12d, %r12d
movl $0x1, %r15d
cmovneq %rax, %r15
shlq $0x5, %r12
movq %r15, -0x38(%rbp)
shlq $0x5, %r15
cmpq %r15, %r12
movq %r15, %rbx
cmovbq %r12, %rbx
movq 0xb8(%r14), %rdi
movq %r15, %rsi
callq *0xc0(%r14)
movq %rax, %r13
movq 0x40(%r14), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x1150
subq %r12, %r15
jbe 0x2806
movq %r13, %rdi
addq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1100
movq 0x40(%r14), %rsi
movq 0xb8(%r14), %rdi
movq %r12, %rdx
callq *0xc8(%r14)
movq %r13, 0x40(%r14)
movq -0x38(%rbp), %rax
movl %eax, 0x9c(%r14)
movl 0x14(%r14), %r12d
movl -0x2c(%rbp), %ebx
movq -0x40(%rbp), %rax
jmp 0x283b
movq 0x40(%r14), %r13
leal 0x1(%r12), %ecx
movl %ecx, 0x14(%r14)
movl %r12d, %ecx
shlq $0x5, %rcx
movl %ebx, (%r13,%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%r13,%rcx)
movl $0x0, 0x14(%r13,%rcx)
movq %rax, 0x18(%r13,%rcx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_add_constraint
void
aiger_add_constraint (aiger * public, unsigned lit, const char *name)
{
  IMPORT_private_FROM (public);
  aiger_symbol symbol;
  aiger_import_literal (private, lit);
  CLR (symbol);
  symbol.lit = lit;
  symbol.name = aiger_copy_str (private, name);
  PUSH (public->constraints, 
        public->num_constraints, private->size_constraints, symbol);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r14
callq 0x21dc
movq %r14, %rdi
movq %r15, %rsi
callq 0x22a9
movl 0x18(%r14), %r12d
cmpl 0xa0(%r14), %r12d
jne 0x2947
movq %rax, -0x40(%rbp)
movl %ebx, -0x2c(%rbp)
leaq (%r12,%r12), %rax
testl %r12d, %r12d
movl $0x1, %r15d
cmovneq %rax, %r15
shlq $0x5, %r12
movq %r15, -0x38(%rbp)
shlq $0x5, %r15
cmpq %r15, %r12
movq %r15, %rbx
cmovbq %r12, %rbx
movq 0xb8(%r14), %rdi
movq %r15, %rsi
callq *0xc0(%r14)
movq %rax, %r13
movq 0x48(%r14), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x1150
subq %r12, %r15
jbe 0x2916
movq %r13, %rdi
addq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1100
movq 0x48(%r14), %rsi
movq 0xb8(%r14), %rdi
movq %r12, %rdx
callq *0xc8(%r14)
movq %r13, 0x48(%r14)
movq -0x38(%rbp), %rax
movl %eax, 0xa0(%r14)
movl 0x18(%r14), %r12d
movl -0x2c(%rbp), %ebx
movq -0x40(%rbp), %rax
jmp 0x294b
movq 0x48(%r14), %r13
leal 0x1(%r12), %ecx
movl %ecx, 0x18(%r14)
movl %r12d, %ecx
shlq $0x5, %rcx
movl %ebx, (%r13,%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%r13,%rcx)
movl $0x0, 0x14(%r13,%rcx)
movq %rax, 0x18(%r13,%rcx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_add_justice
void
aiger_add_justice (aiger * public, 
                   unsigned size, unsigned * lits,
		   const char * name)
{
  IMPORT_private_FROM (public);
  aiger_symbol symbol;
  unsigned i, lit;
  CLR (symbol);
  symbol.size = size;
  NEWN (symbol.lits, size);
  for (i = 0; i < size; i++)
    {
      lit = lits[i];
      aiger_import_literal (private, lit);
      symbol.lits[i] = lit;
    }
  symbol.name = aiger_copy_str (private, name);
  PUSH (public->justice, 
        public->num_justice, private->size_justice, symbol);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movl %esi, %r15d
movq %rdi, %r13
movl %esi, %r12d
leaq (,%r12,4), %rbx
movq 0xb8(%rdi), %rdi
movq %rbx, %rsi
callq *0xc0(%r13)
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x1100
movl %r15d, -0x2c(%rbp)
testl %r15d, %r15d
je 0x29fb
xorl %r15d, %r15d
movq -0x38(%rbp), %rax
movl (%rax,%r15,4), %ebx
movq %r13, %rdi
movl %ebx, %esi
callq 0x21dc
movl %ebx, (%r14,%r15,4)
incq %r15
cmpq %r15, %r12
jne 0x29dd
movq %r14, -0x38(%rbp)
movq %r13, %rdi
movq -0x40(%rbp), %rsi
callq 0x22a9
movl 0x1c(%r13), %r15d
cmpl 0xa4(%r13), %r15d
jne 0x2ab3
movq %rax, -0x40(%rbp)
leaq (%r15,%r15), %rax
testl %r15d, %r15d
movl $0x1, %ebx
cmovneq %rax, %rbx
shlq $0x5, %r15
movq %rbx, -0x48(%rbp)
shlq $0x5, %rbx
cmpq %rbx, %r15
movq %rbx, %r14
cmovbq %r15, %r14
movq 0xb8(%r13), %rdi
movq %rbx, %rsi
callq *0xc0(%r13)
movq %rax, %r12
movq 0x50(%r13), %rsi
movq %rax, %rdi
movq %r14, %rdx
callq 0x1150
subq %r15, %rbx
jbe 0x2a7e
movq %r12, %rdi
addq %r15, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x1100
movq 0x50(%r13), %rsi
movq 0xb8(%r13), %rdi
movq %r15, %rdx
callq *0xc8(%r13)
movq %r12, 0x50(%r13)
movq -0x48(%rbp), %rax
movl %eax, 0xa4(%r13)
movl 0x1c(%r13), %r15d
movl -0x2c(%rbp), %ecx
movq -0x38(%rbp), %r14
movq -0x40(%rbp), %rax
jmp 0x2abe
movq 0x50(%r13), %r12
movl -0x2c(%rbp), %ecx
movq -0x38(%rbp), %r14
leal 0x1(%r15), %edx
movl %edx, 0x1c(%r13)
movl %r15d, %edx
shlq $0x5, %rdx
movl $0x0, 0x8(%r12,%rdx)
movq $0x0, (%r12,%rdx)
movl %ecx, 0xc(%r12,%rdx)
movq %r14, 0x10(%r12,%rdx)
movq %rax, 0x18(%r12,%rdx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_add_fairness
void
aiger_add_fairness (aiger * public, unsigned lit, const char *name)
{
  IMPORT_private_FROM (public);
  aiger_symbol symbol;
  aiger_import_literal (private, lit);
  CLR (symbol);
  symbol.lit = lit;
  symbol.name = aiger_copy_str (private, name);
  PUSH (public->fairness, 
        public->num_fairness, private->size_fairness, symbol);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r14
callq 0x21dc
movq %r14, %rdi
movq %r15, %rsi
callq 0x22a9
movl 0x20(%r14), %r12d
cmpl 0xa8(%r14), %r12d
jne 0x2bcd
movq %rax, -0x40(%rbp)
movl %ebx, -0x2c(%rbp)
leaq (%r12,%r12), %rax
testl %r12d, %r12d
movl $0x1, %r15d
cmovneq %rax, %r15
shlq $0x5, %r12
movq %r15, -0x38(%rbp)
shlq $0x5, %r15
cmpq %r15, %r12
movq %r15, %rbx
cmovbq %r12, %rbx
movq 0xb8(%r14), %rdi
movq %r15, %rsi
callq *0xc0(%r14)
movq %rax, %r13
movq 0x58(%r14), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x1150
subq %r12, %r15
jbe 0x2b9c
movq %r13, %rdi
addq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1100
movq 0x58(%r14), %rsi
movq 0xb8(%r14), %rdi
movq %r12, %rdx
callq *0xc8(%r14)
movq %r13, 0x58(%r14)
movq -0x38(%rbp), %rax
movl %eax, 0xa8(%r14)
movl 0x20(%r14), %r12d
movl -0x2c(%rbp), %ebx
movq -0x40(%rbp), %rax
jmp 0x2bd1
movq 0x58(%r14), %r13
leal 0x1(%r12), %ecx
movl %ecx, 0x20(%r14)
movl %r12d, %ecx
shlq $0x5, %rcx
movl %ebx, (%r13,%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%r13,%rcx)
movl $0x0, 0x14(%r13,%rcx)
movq %rax, 0x18(%r13,%rcx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_add_comment
void
aiger_add_comment (aiger * public, const char *comment)
{
  IMPORT_private_FROM (public);
  char **p;

  assert (!aiger_error (public));

  assert (!strchr (comment, '\n'));
  assert (private->num_comments);
  p = public->comments + private->num_comments - 1;
  assert (!*p);
  *p = aiger_copy_str (private, comment);
  PUSH (public->comments, private->num_comments, private->size_comments, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0xd0(%rdi)
jne 0x2f6c
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movl $0xa, %esi
callq 0x10c0
testq %rax, %rax
jne 0x2f8b
movl 0xac(%rbx), %r15d
testq %r15, %r15
je 0x2faa
movq 0x68(%rbx), %r12
cmpq $0x0, -0x8(%r12,%r15,8)
jne 0x2fc9
movq %rbx, %rdi
movq %r14, %rsi
callq 0x22a9
movq %rax, -0x8(%r12,%r15,8)
movl 0xac(%rbx), %eax
cmpl 0xb0(%rbx), %eax
jne 0x2f46
leaq (%rax,%rax), %rcx
testl %eax, %eax
movl $0x1, %edx
cmovneq %rcx, %rdx
leaq (,%rax,8), %r15
movq %rdx, -0x30(%rbp)
leaq (,%rdx,8), %r12
cmpq %r12, %r15
movq %r12, %r13
cmovbq %r15, %r13
movq 0xb8(%rbx), %rdi
movq %r12, %rsi
callq *0xc0(%rbx)
movq %rax, %r14
movq 0x68(%rbx), %rsi
movq %rax, %rdi
movq %r13, %rdx
callq 0x1150
subq %r15, %r12
jbe 0x2f1c
movq %r14, %rdi
addq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x1100
movq 0x68(%rbx), %rsi
movq 0xb8(%rbx), %rdi
movq %r15, %rdx
callq *0xc8(%rbx)
movq %r14, 0x68(%rbx)
movq -0x30(%rbp), %rax
movl %eax, 0xb0(%rbx)
movl 0xac(%rbx), %eax
jmp 0x2f4a
movq 0x68(%rbx), %r14
leal 0x1(%rax), %ecx
movl %ecx, 0xac(%rbx)
movl %eax, %eax
movq $0x0, (%r14,%rax,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x53ce(%rip), %rdi      # 0x8341
leaq 0x5379(%rip), %rsi      # 0x82f3
leaq 0x5564(%rip), %rcx      # 0x84e5
movl $0x220, %edx            # imm = 0x220
callq 0x10f0
leaq 0x5581(%rip), %rdi      # 0x8513
leaq 0x535a(%rip), %rsi      # 0x82f3
leaq 0x5545(%rip), %rcx      # 0x84e5
movl $0x222, %edx            # imm = 0x222
callq 0x10f0
leaq 0x557a(%rip), %rdi      # 0x852b
leaq 0x533b(%rip), %rsi      # 0x82f3
leaq 0x5526(%rip), %rcx      # 0x84e5
movl $0x223, %edx            # imm = 0x223
callq 0x10f0
leaq 0x5571(%rip), %rdi      # 0x8541
leaq 0x531c(%rip), %rsi      # 0x82f3
leaq 0x5507(%rip), %rcx      # 0x84e5
movl $0x225, %edx            # imm = 0x225
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_write_symbols
static int
aiger_write_symbols (aiger * public, void *state, aiger_put put)
{
  if (!aiger_write_symbols_aux (public, state, put,
				"i", public->inputs, public->num_inputs))
    return 0;

  if (!aiger_write_symbols_aux (public, state, put,
				"l", public->latches, public->num_latches))
    return 0;

  if (!aiger_write_symbols_aux (public, state, put,
				"o", public->outputs, public->num_outputs))
    return 0;

  if (!aiger_write_symbols_aux (public, state, put,
				"b", public->bad, public->num_bad))
    return 0;

  if (!aiger_write_symbols_aux (public, state, put,
				"c", public->constraints,
				public->num_constraints))
    return 0;

  if (!aiger_write_symbols_aux (public, state, put,
				"j", public->justice, public->num_justice))
    return 0;

  if (!aiger_write_symbols_aux (public, state, put,
				"f", public->fairness, public->num_fairness))
    return 0;

  return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x28(%rdi), %rcx
movl 0x4(%rdi), %r8d
leaq 0x5466(%rip), %rdx      # 0x8cc2
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x6b78
testl %eax, %eax
je 0x392d
movq 0x30(%r15), %rcx
movl 0x8(%r15), %r8d
leaq 0x59ad(%rip), %rdx      # 0x922b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6b78
testl %eax, %eax
je 0x392d
movq 0x38(%r15), %rcx
movl 0xc(%r15), %r8d
leaq 0x5424(%rip), %rdx      # 0x8cc4
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6b78
testl %eax, %eax
je 0x392d
movq 0x40(%r15), %rcx
movl 0x14(%r15), %r8d
leaq 0x501b(%rip), %rdx      # 0x88d9
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6b78
testl %eax, %eax
je 0x392d
movq 0x48(%r15), %rcx
movl 0x18(%r15), %r8d
leaq 0x486a(%rip), %rdx      # 0x8146
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6b78
testl %eax, %eax
je 0x392d
movq 0x50(%r15), %rcx
movl 0x1c(%r15), %r8d
leaq 0x53ad(%rip), %rdx      # 0x8ca7
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6b78
testl %eax, %eax
je 0x392d
movq 0x58(%r15), %rcx
movl 0x20(%r15), %r8d
leaq 0x53ae(%rip), %rdx      # 0x8cc6
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x6b78
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_is_reencoded
int
aiger_is_reencoded (aiger * public)
{
  unsigned i, tmp, max, lhs;
  aiger_and *and;

  max = 0;
  for (i = 0; i < public->num_inputs; i++)
    {
      max += 2;
      tmp = public->inputs[i].lit;
      if (max != tmp)
	return 0;
    }

  for (i = 0; i < public->num_latches; i++)
    {
      max += 2;
      tmp = public->latches[i].lit;
      if (max != tmp)
	return 0;
    }

  lhs = aiger_max_input_or_latch (public) + 2;
  for (i = 0; i < public->num_ands; i++)
    {
      and = public->ands + i;

      if (and->lhs <= max)
	return 0;

      if (and->lhs != lhs)
	return 0;

      if (and->lhs < and->rhs0)
	return 0;

      if (and->rhs0 < and->rhs1)
	return 0;

      lhs += 2;
    }

  return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x4(%rdi), %ecx
testq %rcx, %rcx
je 0x3a2e
movq 0x28(%rbx), %rdx
leal (%rcx,%rcx), %r14d
addq %rcx, %rcx
xorl %eax, %eax
xorl %esi, %esi
addq $0x2, %rsi
cmpl (%rdx), %esi
jne 0x3ab3
addq $0x20, %rdx
cmpq %rsi, %rcx
jne 0x3a17
jmp 0x3a31
xorl %r14d, %r14d
movl 0x8(%rbx), %ecx
testq %rcx, %rcx
je 0x3a5f
movq 0x30(%rbx), %rdx
leal (%r14,%rcx,2), %esi
shlq $0x5, %rcx
xorl %eax, %eax
xorl %edi, %edi
addl $0x2, %r14d
cmpl (%rdx,%rdi), %r14d
jne 0x3ab3
addq $0x20, %rdi
cmpq %rdi, %rcx
jne 0x3a49
movl %esi, %r14d
movq %rbx, %rdi
callq 0x3ab8
movl %eax, %ecx
movl 0x10(%rbx), %esi
movl $0x1, %eax
testq %rsi, %rsi
je 0x3ab3
movq 0x60(%rbx), %rdx
shlq $0x2, %rsi
leaq (%rsi,%rsi,2), %rsi
xorl %edi, %edi
movl (%rdx,%rdi), %r8d
cmpl %r14d, %r8d
jbe 0x3ab1
addl $0x2, %ecx
cmpl %r8d, %ecx
jne 0x3ab1
movl 0x4(%rdx,%rdi), %r8d
cmpl %r8d, %ecx
jb 0x3ab1
cmpl 0x8(%rdx,%rdi), %r8d
jb 0x3ab1
addq $0xc, %rdi
cmpq %rdi, %rsi
jne 0x3a84
jmp 0x3ab3
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_max_input_or_latch
static unsigned
aiger_max_input_or_latch (aiger * public)
{
  unsigned i, tmp, res;

  res = 0;

  for (i = 0; i < public->num_inputs; i++)
    {
      tmp = public->inputs[i].lit;
      assert (!aiger_sign (tmp));
      if (tmp > res)
	res = tmp;
    }

  for (i = 0; i < public->num_latches; i++)
    {
      tmp = public->latches[i].lit;
      assert (!aiger_sign (tmp));
      if (tmp > res)
	res = tmp;
    }

  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x4(%rdi), %ecx
testq %rcx, %rcx
je 0x3aec
movq 0x28(%rdi), %rdx
shlq $0x5, %rcx
xorl %esi, %esi
xorl %eax, %eax
movl (%rdx,%rsi), %r8d
testb $0x1, %r8b
jne 0x3b19
cmpl %eax, %r8d
cmoval %r8d, %eax
addq $0x20, %rsi
cmpq %rsi, %rcx
jne 0x3ad0
jmp 0x3aee
xorl %eax, %eax
movl 0x8(%rdi), %ecx
testq %rcx, %rcx
je 0x3b17
movq 0x30(%rdi), %rdx
shlq $0x5, %rcx
xorl %esi, %esi
movl (%rdx,%rsi), %edi
testb $0x1, %dil
jne 0x3b38
cmpl %eax, %edi
cmoval %edi, %eax
addq $0x20, %rsi
cmpq %rsi, %rcx
jne 0x3b00
popq %rbp
retq
leaq 0x521f(%rip), %rdi      # 0x8d3f
leaq 0x47cc(%rip), %rsi      # 0x82f3
leaq 0x5223(%rip), %rcx      # 0x8d51
movl $0x50b, %edx            # imm = 0x50B
callq 0x10f0
leaq 0x5200(%rip), %rdi      # 0x8d3f
leaq 0x47ad(%rip), %rsi      # 0x82f3
leaq 0x5204(%rip), %rcx      # 0x8d51
movl $0x513, %edx            # imm = 0x513
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_strip_symbols_and_comments
unsigned
aiger_strip_symbols_and_comments (aiger * public)
{
  IMPORT_private_FROM (public);
  unsigned res;

  assert (!aiger_error (public));

  res = aiger_delete_comments (public);

  res += aiger_delete_symbols_aux (private,
				   public->inputs,
				   private->size_inputs);
  res += aiger_delete_symbols_aux (private,
				   public->latches,
				   private->size_latches);
  res += aiger_delete_symbols_aux (private,
				   public->outputs,
				   private->size_outputs);
  res += aiger_delete_symbols_aux (private,
				   public->bad, 
				   private->size_bad);
  res += aiger_delete_symbols_aux (private,
				   public->constraints,
				   private->size_constraints);
  res += aiger_delete_symbols_aux (private,
				   public->justice,
				   private->size_justice);
  res += aiger_delete_symbols_aux (private,
				   public->fairness,
				   private->size_fairness);
  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpq $0x0, 0xd0(%rdi)
jne 0x49ac
movq %rdi, %rbx
callq 0x1f4d
movl %eax, %r14d
movq 0x28(%rbx), %rsi
movl 0x8c(%rbx), %edx
movq %rbx, %rdi
callq 0x49cb
movl %eax, %r15d
addl %r14d, %r15d
movq 0x30(%rbx), %rsi
movl 0x90(%rbx), %edx
movq %rbx, %rdi
callq 0x49cb
movl %eax, %r12d
movq 0x38(%rbx), %rsi
movl 0x94(%rbx), %edx
movq %rbx, %rdi
callq 0x49cb
movl %eax, %r14d
addl %r12d, %r14d
addl %r15d, %r14d
movq 0x40(%rbx), %rsi
movl 0x9c(%rbx), %edx
movq %rbx, %rdi
callq 0x49cb
movl %eax, %r15d
movq 0x48(%rbx), %rsi
movl 0xa0(%rbx), %edx
movq %rbx, %rdi
callq 0x49cb
movl %eax, %r12d
addl %r15d, %r12d
movq 0x50(%rbx), %rsi
movl 0xa4(%rbx), %edx
movq %rbx, %rdi
callq 0x49cb
movl %eax, %r15d
addl %r12d, %r15d
addl %r14d, %r15d
movq 0x58(%rbx), %rsi
movl 0xa8(%rbx), %edx
movq %rbx, %rdi
callq 0x49cb
addl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x398e(%rip), %rdi      # 0x8341
leaq 0x3939(%rip), %rsi      # 0x82f3
leaq 0x3cfa(%rip), %rcx      # 0x86bb
movl $0x6bb, %edx            # imm = 0x6BB
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_delete_symbols_aux
static unsigned
aiger_delete_symbols_aux (aiger_private * private,
			  aiger_symbol * symbols, unsigned size)
{
  unsigned i, res;

  res = 0;
  for (i = 0; i < size; i++)
    {
      aiger_symbol *s = symbols + i;
      if (!s->name)
	continue;

      aiger_delete_str (private, s->name);
      s->name = 0;
      res++;
    }

  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %edx, %edx
je 0x4a32
movq %rsi, %rbx
movq %rdi, %r14
movl %edx, %eax
shlq $0x5, %rax
movq %rax, -0x30(%rbp)
xorl %r13d, %r13d
xorl %r15d, %r15d
movq 0x18(%rbx,%r13), %r12
testq %r12, %r12
je 0x4a26
movq %r12, %rdi
callq 0x10b0
leaq 0x1(%rax), %rdx
movq 0xb8(%r14), %rdi
movq %r12, %rsi
callq *0xc8(%r14)
movq $0x0, 0x18(%rbx,%r13)
incl %r15d
addq $0x20, %r13
cmpq %r13, -0x30(%rbp)
jne 0x49f3
jmp 0x4a35
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_write_to_string
int
aiger_write_to_string (aiger * public, aiger_mode mode, char *str, size_t len)
{
  aiger_buffer buffer;
  int res;

  assert (!aiger_error (public));

  buffer.start = str;
  buffer.cursor = str;
  buffer.end = str + len;
  res = aiger_write_generic (public,
			     mode, &buffer, (aiger_put) aiger_string_put);

  if (!res)
    return 0;

  if (aiger_string_put (0, &buffer) == EOF)
    return 0;

  return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
cmpq $0x0, 0xd0(%rdi)
jne 0x4fec
leaq -0x18(%rbp), %rax
movq %rdx, (%rax)
movq %rdx, 0x8(%rax)
addq %rdx, %rcx
movq %rcx, 0x10(%rax)
leaq 0x47(%rip), %rcx        # 0x500b
movq %rax, %rdx
callq 0x4a47
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
je 0x4fe6
movq -0x10(%rbp), %rcx
cmpq -0x8(%rbp), %rcx
je 0x4fe6
movb $0x0, (%rcx)
movl $0x1, %eax
addq $0x20, %rsp
popq %rbp
retq
leaq 0x334e(%rip), %rdi      # 0x8341
leaq 0x32f9(%rip), %rsi      # 0x82f3
leaq 0x3769(%rip), %rcx      # 0x876a
movl $0x70b, %edx            # imm = 0x70B
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_open_and_write_to_file
int
aiger_open_and_write_to_file (aiger * public, const char *file_name)
{
  IMPORT_private_FROM (public);
  int res, pclose_file;
  char *cmd, size_cmd;
  aiger_mode mode;
  FILE *file;

  assert (!aiger_error (public));

  assert (file_name);

  if (aiger_has_suffix (file_name, ".gz"))
    {
      size_cmd = strlen (file_name) + strlen (GZIP);
      NEWN (cmd, size_cmd);
      sprintf (cmd, GZIP, file_name);
      file = popen (cmd, "w");
      DELETEN (cmd, size_cmd);
      pclose_file = 1;
    }
  else
    {
      file = fopen (file_name, "w");
      pclose_file = 0;
    }

  if (!file)
    return 0;

  if (aiger_has_suffix (file_name, ".aag") ||
      aiger_has_suffix (file_name, ".aag.gz"))
    mode = aiger_ascii_mode;
  else
    mode = aiger_binary_mode;

  res = aiger_write_to_file (public, mode, file);

  if (pclose_file)
    pclose (file);
  else
    fclose (file);

  if (!res)
    unlink (file_name);

  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0xd0(%rdi)
jne 0x5167
movq %rsi, %rbx
testq %rsi, %rsi
je 0x5186
movq %rdi, %r14
leaq 0x37ab(%rip), %rsi      # 0x880d
movq %rbx, %rdi
callq 0x51a5
movl %eax, -0x2c(%rbp)
testl %eax, %eax
je 0x50dc
movq %rbx, %rdi
callq 0x10b0
addb $0x18, %al
movsbq %al, %r13
movq 0xb8(%r14), %rdi
movq %r13, %rsi
callq *0xc0(%r14)
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x1100
leaq 0x3744(%rip), %rsi      # 0x87eb
movq %r15, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1190
leaq 0x3d9a(%rip), %rsi      # 0x8e55
movq %r15, %rdi
callq 0x1170
movq %rax, %r12
movq 0xb8(%r14), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq *0xc8(%r14)
jmp 0x50ee
leaq 0x3d72(%rip), %rsi      # 0x8e55
movq %rbx, %rdi
callq 0x1180
movq %rax, %r12
xorl %eax, %eax
testq %r12, %r12
je 0x5158
leaq 0x3708(%rip), %rsi      # 0x8804
movq %rbx, %rdi
callq 0x51a5
movl $0x1, %esi
testl %eax, %eax
jne 0x511e
leaq 0x36f5(%rip), %rsi      # 0x8809
movq %rbx, %rdi
callq 0x51a5
movl %eax, %esi
movq %r14, %rdi
movq %r12, %rdx
callq 0x4f60
movl %eax, %r14d
cmpl $0x0, -0x2c(%rbp)
je 0x513c
movq %r12, %rdi
callq 0x10e0
jmp 0x5144
movq %r12, %rdi
callq 0x10a0
movl $0x1, %eax
testl %r14d, %r14d
jne 0x5158
movq %rbx, %rdi
callq 0x1060
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x31d3(%rip), %rdi      # 0x8341
leaq 0x317e(%rip), %rsi      # 0x82f3
leaq 0x362d(%rip), %rcx      # 0x87a9
movl $0x72e, %edx            # imm = 0x72E
callq 0x10f0
leaq 0x3654(%rip), %rdi      # 0x87e1
leaq 0x315f(%rip), %rsi      # 0x82f3
leaq 0x360e(%rip), %rcx      # 0x87a9
movl $0x730, %edx            # imm = 0x730
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_open_and_read_from_file
const char *
aiger_open_and_read_from_file (aiger * public, const char *file_name)
{
  IMPORT_private_FROM (public);
  char *cmd, size_cmd;
  const char *res;
  int pclose_file;
  FILE *file;

  assert (!aiger_error (public));

  if (aiger_has_suffix (file_name, ".gz"))
    {
      size_cmd = strlen (file_name) + strlen (GUNZIP);
      NEWN (cmd, size_cmd);
      sprintf (cmd, GUNZIP, file_name);
      file = popen (cmd, "r");
      DELETEN (cmd, size_cmd);
      pclose_file = 1;
    }
  else
    {
      file = fopen (file_name, "rb");
      pclose_file = 0;
    }

  if (!file)
    return aiger_error_s (private, "can not read '%s'", file_name);

  res = aiger_read_from_file (public, file);

  if (pclose_file)
    pclose (file);
  else
    fclose (file);

  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0xd0(%rdi)
jne 0x6652
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x233d(%rip), %rsi      # 0x880d
movq %r14, %rdi
callq 0x51a5
testl %eax, %eax
je 0x6564
movq %r14, %rdi
callq 0x10b0
addb $0x18, %al
movsbq %al, %r15
movq 0xb8(%rbx), %rdi
movq %r15, %rsi
callq *0xc0(%rbx)
movq %rax, %r13
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1100
leaq 0x23aa(%rip), %rsi      # 0x88bf
movq %r13, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1190
leaq 0x28e3(%rip), %rsi      # 0x8e0c
movq %r13, %rdi
callq 0x1170
movq %rax, %r12
movq 0xb8(%rbx), %rdi
movq %r13, %rsi
movq %r15, %rdx
callq *0xc8(%rbx)
testq %r12, %r12
je 0x6599
movq %rbx, %rdi
movq %r12, %rsi
callq 0x6464
movq %rax, %rbx
movq %r12, %rdi
callq 0x10e0
jmp 0x6591
leaq 0x236d(%rip), %rsi      # 0x88d8
movq %r14, %rdi
callq 0x1180
testq %rax, %rax
je 0x6599
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6464
movq %rax, %rbx
movq %r15, %rdi
callq 0x10a0
movq %rbx, %rax
jmp 0x6643
cmpq $0x0, 0xd0(%rbx)
jne 0x6671
movq %r14, %rdi
callq 0x10b0
leal 0x12(%rax), %r15d
movq 0xb8(%rbx), %rdi
movq %r15, %rsi
callq *0xc0(%rbx)
movq %rax, %r12
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1100
leaq 0x2301(%rip), %rsi      # 0x88db
movq %r12, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1190
movq %r12, %rdi
callq 0x10b0
leal 0x1(%rax), %r14d
movq 0xb8(%rbx), %rdi
movq %r14, %rsi
callq *0xc0(%rbx)
movq %rax, 0xd0(%rbx)
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x1100
movq 0xd0(%rbx), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x1150
movq 0xb8(%rbx), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq *0xc8(%rbx)
movq 0xd0(%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ce8(%rip), %rdi      # 0x8341
leaq 0x1c93(%rip), %rsi      # 0x82f3
leaq 0x2217(%rip), %rcx      # 0x887e
movl $0xa1d, %edx            # imm = 0xA1D
callq 0x10f0
leaq 0x242b(%rip), %rdi      # 0x8aa3
leaq 0x1c74(%rip), %rsi      # 0x82f3
leaq 0x2f99(%rip), %rcx      # 0x961f
movl $0x22f, %edx            # imm = 0x22F
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_get_symbol
const char *
aiger_get_symbol (aiger * public, unsigned lit)
{
  IMPORT_private_FROM (public);
  aiger_symbol *symbol;
  aiger_type *type;
  unsigned var;

  assert (!aiger_error (public));

  assert (lit);
  assert (!aiger_sign (lit));

  var = aiger_lit2var (lit);
  assert (var <= public->maxvar);
  type = private->types + var;

  if (type->input)
    symbol = public->inputs;
  else if (type->latch)
    symbol = public->latches;
  else
    return 0;

  return symbol[type->idx].name;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpq $0x0, 0xd0(%rdi)
jne 0x66e9
testl %esi, %esi
je 0x6708
testb $0x1, %sil
jne 0x6727
shrl %esi
cmpl (%rdi), %esi
ja 0x6746
movq 0x70(%rdi), %rax
movl %esi, %ecx
movb (%rax,%rcx,8), %sil
movl $0x28, %edx
testb $0x1, %sil
jne 0x66d6
movl $0x30, %edx
testb $0x2, %sil
jne 0x66d6
xorl %eax, %eax
jmp 0x66e7
movq (%rdi,%rdx), %rdx
movl 0x4(%rax,%rcx,8), %eax
shlq $0x5, %rax
movq 0x18(%rdx,%rax), %rax
popq %rbp
retq
leaq 0x1c51(%rip), %rdi      # 0x8341
leaq 0x1bfc(%rip), %rsi      # 0x82f3
leaq 0x21ef(%rip), %rcx      # 0x88ed
movl $0xa43, %edx            # imm = 0xA43
callq 0x10f0
leaq 0x1d18(%rip), %rdi      # 0x8427
leaq 0x1bdd(%rip), %rsi      # 0x82f3
leaq 0x21d0(%rip), %rcx      # 0x88ed
movl $0xa45, %edx            # imm = 0xA45
callq 0x10f0
leaq 0x1c63(%rip), %rdi      # 0x8391
leaq 0x1bbe(%rip), %rsi      # 0x82f3
leaq 0x21b1(%rip), %rcx      # 0x88ed
movl $0xa46, %edx            # imm = 0xA46
callq 0x10f0
leaq 0x21d4(%rip), %rdi      # 0x8921
leaq 0x1b9f(%rip), %rsi      # 0x82f3
leaq 0x2192(%rip), %rcx      # 0x88ed
movl $0xa49, %edx            # imm = 0xA49
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_lit2tag
int
aiger_lit2tag (aiger * public, unsigned lit) 
{
  aiger_type * type;
  lit = aiger_strip (lit);
  if (!lit) return 0;
  type = aiger_lit2type (public, lit);
  if (type->input) return 1;
  if (type->latch) return 2;
  return 3;
}

// Assembly:
andl $-0x2, %esi
je 0x678c
pushq %rbp
movq %rsp, %rbp
callq 0x678f
movb (%rax), %cl
movl $0x1, %eax
testb $0x1, %cl
popq %rbp
jne 0x678b
andb $0x2, %cl
xorl %eax, %eax
cmpb $0x1, %cl
adcl $0x2, %eax
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_lit2type
static aiger_type *
aiger_lit2type (aiger * public, unsigned lit)
{
  IMPORT_private_FROM (public);
  aiger_type *type;
  unsigned var;

  assert (!aiger_sign (lit));
  var = aiger_lit2var (lit);
  assert (var <= public->maxvar);
  type = private->types + var;

  return type;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testb $0x1, %sil
jne 0x67ab
shrl %esi
cmpl (%rdi), %esi
ja 0x67ca
movl %esi, %eax
shlq $0x3, %rax
addq 0x70(%rdi), %rax
popq %rbp
retq
leaq 0x1bdf(%rip), %rdi      # 0x8391
leaq 0x1b3a(%rip), %rsi      # 0x82f3
leaq 0x2ea6(%rip), %rcx      # 0x9666
movl $0xa5d, %edx            # imm = 0xA5D
callq 0x10f0
leaq 0x2150(%rip), %rdi      # 0x8921
leaq 0x1b1b(%rip), %rsi      # 0x82f3
leaq 0x2e87(%rip), %rcx      # 0x9666
movl $0xa5f, %edx            # imm = 0xA5F
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_is_input
aiger_symbol *
aiger_is_input (aiger * public, unsigned lit)
{
  aiger_type *type;
  aiger_symbol *res;

  assert (!aiger_error (public));
  type = aiger_lit2type (public, lit);
  if (!type->input)
    return 0;

  res = public->inputs + type->idx;

  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpq $0x0, 0xd0(%rdi)
jne 0x681c
movq %rdi, %rbx
callq 0x678f
testb $0x1, (%rax)
jne 0x680a
xorl %eax, %eax
jmp 0x6815
movl 0x4(%rax), %eax
shlq $0x5, %rax
addq 0x28(%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x1b1e(%rip), %rdi      # 0x8341
leaq 0x1ac9(%rip), %rsi      # 0x82f3
leaq 0x2106(%rip), %rcx      # 0x8937
movl $0xa77, %edx            # imm = 0xA77
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_is_latch
aiger_symbol *
aiger_is_latch (aiger * public, unsigned lit)
{
  aiger_symbol *res;
  aiger_type *type;

  assert (!aiger_error (public));
  type = aiger_lit2type (public, lit);
  if (!type->latch)
    return 0;

  res = public->latches + type->idx;

  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpq $0x0, 0xd0(%rdi)
jne 0x686e
movq %rdi, %rbx
callq 0x678f
testb $0x2, (%rax)
jne 0x685c
xorl %eax, %eax
jmp 0x6867
movl 0x4(%rax), %eax
shlq $0x5, %rax
addq 0x30(%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x1acc(%rip), %rdi      # 0x8341
leaq 0x1a77(%rip), %rsi      # 0x82f3
leaq 0x20e8(%rip), %rcx      # 0x896b
movl $0xa87, %edx            # imm = 0xA87
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_is_and
aiger_and *
aiger_is_and (aiger * public, unsigned lit)
{
  aiger_type *type;
  aiger_and *res;

  assert (!aiger_error (public));
  type = aiger_lit2type (public, lit);
  if (!type->and)
    return 0;

  res = public->ands + type->idx;

  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpq $0x0, 0xd0(%rdi)
jne 0x68c4
movq %rdi, %rbx
callq 0x678f
testb $0x4, (%rax)
jne 0x68ae
xorl %eax, %eax
jmp 0x68bd
movl 0x4(%rax), %eax
leaq (%rax,%rax,2), %rax
shlq $0x2, %rax
addq 0x60(%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x1a76(%rip), %rdi      # 0x8341
leaq 0x1a21(%rip), %rsi      # 0x82f3
leaq 0x20c6(%rip), %rcx      # 0x899f
movl $0xa97, %edx            # imm = 0xA97
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O3/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_literal_defined
static int
aiger_literal_defined (aiger_private * private, unsigned lit)
{
  unsigned var = aiger_lit2var (lit);
#ifndef NDEBUG
  EXPORT_public_FROM (private);
#endif
  aiger_type *type;

  assert (var <= public->maxvar);
  if (!var)
    return 1;

  type = private->types + var;

  return type->and || type->input || type->latch;
}

// Assembly:
movl %esi, %ecx
shrl %ecx
cmpl (%rdi), %ecx
ja 0x6905
movl $0x1, %eax
cmpl $0x2, %esi
jb 0x6904
movq 0x70(%rdi), %rdx
movl %ecx, %ecx
xorl %eax, %eax
testb $0x7, (%rdx,%rcx,8)
setne %al
retq
pushq %rbp
movq %rsp, %rbp
leaq 0x2011(%rip), %rdi      # 0x8921
leaq 0x19dc(%rip), %rsi      # 0x82f3
leaq 0x214c(%rip), %rcx      # 0x8a6a
movl $0x27c, %edx            # imm = 0x27C
callq 0x10f0