LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/koendv[P]stm32duino-raspberrypi/Arduino_Tools/src/stm32flash/stm32.c
// Function: stm32_run_raw_code
static stm32_err_t stm32_run_raw_code(const stm32_t *stm,
				      uint32_t target_address,
				      const uint8_t *code, uint32_t code_size)
{
	uint32_t stack_le = le_u32(0x20002000);
	uint32_t code_address_le = le_u32(target_address + 8 + 1); // thumb mode address (!)
	uint32_t length = code_size + 8;
	uint8_t *mem, *pos;
	uint32_t address, w;

	/* Must be 32-bit aligned */
	if (target_address & 0x3) {
		fprintf(stderr, "Error: code address must be 4 byte aligned\n");
		return STM32_ERR_UNKNOWN;
	}

	mem = malloc(length);
	if (!mem)
		return STM32_ERR_UNKNOWN;

	memcpy(mem, &stack_le, sizeof(uint32_t));
	memcpy(mem + 4, &code_address_le, sizeof(uint32_t));
	memcpy(mem + 8, code, code_size);

	pos = mem;
	address = target_address;
	while (length > 0) {
		w = length > 256 ? 256 : length;
		if (stm32_write_memory(stm, address, pos, w) != STM32_ERR_OK) {
			free(mem);
			return STM32_ERR_UNKNOWN;
		}

		address += w;
		pos += w;
		length -= w;
	}

	free(mem);
	return stm32_go(stm, target_address);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r13d
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r14
movl $0x20002000, %edi       # imm = 0x20002000
callq 0x6358
movl %eax, %ebp
leal 0x9(%rbx), %edi
callq 0x6358
movq %rbx, 0x10(%rsp)
testb $0x3, %bl
jne 0x5e89
movl %eax, %r12d
leal 0x8(%r13), %ebx
movl %ebx, %edi
callq 0x21c0
testq %rax, %rax
je 0x5e77
movl %ebp, (%rax)
movl %r12d, 0x4(%rax)
movq %rax, %rdi
addq $0x8, %rdi
movl %r13d, %edx
movq %r15, %rsi
movq %rax, %r12
callq 0x21a0
movl $0x100, %r15d           # imm = 0x100
movq %r12, 0x8(%rsp)
movq 0x10(%rsp), %rax
movl %eax, %ebp
testl %ebx, %ebx
je 0x5e48
cmpl %r15d, %ebx
movl $0x100, %r13d           # imm = 0x100
cmovbl %ebx, %r13d
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
movl %r13d, %ecx
callq 0x5384
testl %eax, %eax
jne 0x5e6d
addl %r13d, %ebp
movl %r13d, %eax
addq %rax, %r12
subl %r13d, %ebx
jmp 0x5e15
movq 0x8(%rsp), %rdi
callq 0x2030
movq %r14, %rdi
movq 0x10(%rsp), %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5cc0
movq 0x8(%rsp), %rdi
callq 0x2030
pushq $0x1
popq %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x7160(%rip), %rax      # 0xcff0
movq (%rax), %rcx
leaq 0x334b(%rip), %rdi      # 0x91e5
pushq $0x2b
popq %rsi
pushq $0x1
popq %rdx
callq 0x22b0
jmp 0x5e77
// File: /workspace/github_c_makefile_star2_O2/koendv[P]stm32duino-raspberrypi/Arduino_Tools/src/stm32flash/stm32.c
// Function: stm32_sw_crc
uint32_t stm32_sw_crc(uint32_t crc, uint8_t *buf, unsigned int len)
{
	int i;
	uint32_t data;

	if (len & 0x3) {
		fprintf(stderr, "Buffer length must be multiple of 4 bytes\n");
		return 0;
	}

	while (len) {
		data = *buf++;
		data |= *buf++ << 8;
		data |= *buf++ << 16;
		data |= *buf++ << 24;
		len -= 4;

		crc ^= data;

		for (i = 0; i < 32; i++)
			if (crc & CRC_MSBMASK)
				crc = (crc << 1) ^ CRCPOLY_BE;
			else
				crc = (crc << 1);
	}
	return crc;
}

// Assembly:
pushq %rax
testb $0x3, %dl
jne 0x6084
movl %edi, %eax
pushq $0x20
popq %rcx
testl %edx, %edx
je 0x60a2
xorl (%rsi), %eax
addq $0x4, %rsi
movl %ecx, %edi
subl $0x1, %edi
jb 0x607f
leal (%rax,%rax), %r8d
movl %r8d, %r9d
xorl $0x4c11db7, %r9d        # imm = 0x4C11DB7
testl %eax, %eax
cmovnsl %r8d, %r9d
movl %r9d, %eax
jmp 0x6061
addl $-0x4, %edx
jmp 0x6055
movq 0x6f65(%rip), %rax      # 0xcff0
movq (%rax), %rcx
leaq 0x2e37(%rip), %rdi      # 0x8ecc
pushq $0x2a
popq %rsi
pushq $0x1
popq %rdx
callq 0x22b0
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/koendv[P]stm32duino-raspberrypi/Arduino_Tools/src/stm32flash/stm32.c
// Function: stm32_crc_wrapper
stm32_err_t stm32_crc_wrapper(const stm32_t *stm, uint32_t address,
			      uint32_t length, uint32_t *crc)
{
	uint8_t buf[256];
	uint32_t start, total_len, len, current_crc;

	if ((address & 0x3) || (length & 0x3)) {
		fprintf(stderr, "Start and end addresses must be 4 byte aligned\n");
		return STM32_ERR_UNKNOWN;
	}

	if (stm->cmd->crc != STM32_CMD_ERR)
		return stm32_crc_memory(stm, address, length, crc);

	start = address;
	total_len = length;
	current_crc = CRC_INIT_VALUE;
	while (length) {
		len = length > 256 ? 256 : length;
		if (stm32_read_memory(stm, address, buf, len) != STM32_ERR_OK) {
			fprintf(stderr,
				"Failed to read memory at address 0x%08x, target write-protected?\n",
				address);
			return STM32_ERR_UNKNOWN;
		}
		current_crc = stm32_sw_crc(current_crc, buf, len);
		length -= len;
		address += len;

		fprintf(stderr,
			"\rCRC address 0x%08x (%.2f%%) ",
			address,
			(100.0f / (float)total_len) * (float)(address - start)
		);
		fflush(stderr);
	}
	fprintf(stderr, "Done.\n");
	*crc = current_crc;
	return STM32_ERR_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movl %edx, %eax
orl %esi, %eax
testb $0x3, %al
jne 0x60e7
movl %edx, %ebp
movl %esi, %r13d
movq 0x18(%rdi), %rax
cmpb $-0x1, 0xb(%rax)
je 0x6108
movl %r13d, %esi
movl %ebp, %edx
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5ea7
movq 0x6f02(%rip), %rax      # 0xcff0
movq (%rax), %rcx
leaq 0x2d71(%rip), %rdi      # 0x8e69
pushq $0x2f
popq %rsi
pushq $0x1
popq %rdx
callq 0x22b0
jmp 0x61f5
movq %rcx, 0x10(%rsp)
movl %ebp, %eax
cvtsi2ss %rax, %xmm0
movss 0x1510(%rip), %xmm1     # 0x762c
divss %xmm0, %xmm1
movss %xmm1, 0xc(%rsp)
pushq $-0x1
popq %r12
movl %r13d, %r14d
movq %rdi, 0x18(%rsp)
testl %ebp, %ebp
je 0x61b2
movl %r12d, %r15d
movl $0x100, %eax            # imm = 0x100
cmpl %eax, %ebp
movl $0x100, %ebx            # imm = 0x100
cmovbl %ebp, %ebx
movl %r14d, %esi
leaq 0x20(%rsp), %r12
movq %r12, %rdx
movl %ebx, %ecx
callq 0x526e
testl %eax, %eax
jne 0x61da
movl %r15d, %edi
movq %r12, %rsi
movl %ebx, %edx
callq 0x604a
movl %eax, %r12d
addl %ebx, %r14d
movl %r14d, %eax
subl %r13d, %eax
cvtsi2ss %rax, %xmm0
subl %ebx, %ebp
movq 0x6e6b(%rip), %rbx      # 0xcff0
movq (%rbx), %rdi
mulss 0xc(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x2d5e(%rip), %rsi      # 0x8ef7
movl %r14d, %edx
movb $0x1, %al
callq 0x2170
movq (%rbx), %rdi
callq 0x21d0
movq 0x18(%rsp), %rdi
jmp 0x6132
movq 0x6e37(%rip), %rax      # 0xcff0
movq (%rax), %rcx
leaq 0x1811(%rip), %rdi      # 0x79d4
pushq $0x6
popq %rsi
pushq $0x1
popq %rdx
callq 0x22b0
movq 0x10(%rsp), %rax
movl %r12d, (%rax)
xorl %eax, %eax
jmp 0x61f8
movq 0x6e0f(%rip), %rax      # 0xcff0
movq (%rax), %rdi
leaq 0x176a(%rip), %rsi      # 0x7955
movl %r14d, %edx
xorl %eax, %eax
callq 0x2170
pushq $0x1
popq %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/koendv[P]stm32duino-raspberrypi/Arduino_Tools/src/stm32flash/stm32.c
// Function: stm32_send_command_timeout
static stm32_err_t stm32_send_command_timeout(const stm32_t *stm,
					      const uint8_t cmd,
					      time_t timeout)
{
	struct port_interface *port = stm->port;
	stm32_err_t s_err;
	port_err_t p_err;
	uint8_t buf[2];

	buf[0] = cmd;
	buf[1] = cmd ^ 0xFF;
	p_err = port->write(port, buf, 2);
	if (p_err != PORT_ERR_OK) {
		fprintf(stderr, "Failed to send command\n");
		return STM32_ERR_UNKNOWN;
	}
	s_err = stm32_get_ack_timeout(stm, timeout);
	if (s_err == STM32_ERR_OK)
		return STM32_ERR_OK;
	if (s_err == STM32_ERR_NACK)
		fprintf(stderr, "Got NACK from device on command 0x%02x\n", cmd);
	else
		fprintf(stderr, "Unexpected reply from device on command 0x%02x\n", cmd);
	return STM32_ERR_UNKNOWN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movl %esi, %ebx
movq %rdi, %r15
movq 0x8(%rdi), %rdi
leaq 0xe(%rsp), %rsi
movb %bl, (%rsi)
movl %ebx, %eax
notb %al
movb %al, 0x1(%rsi)
pushq $0x2
popq %rdx
callq *0x30(%rdi)
testl %eax, %eax
jne 0x6268
movq %r15, %rdi
movq %r14, %rsi
callq 0x551e
testl %eax, %eax
jne 0x6250
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
cmpl $0x2, %eax
jne 0x6286
movq 0x6d94(%rip), %rax      # 0xcff0
movq (%rax), %rdi
leaq 0x2d2f(%rip), %rsi      # 0x8f95
jmp 0x6297
movq 0x6d81(%rip), %rax      # 0xcff0
movq (%rax), %rcx
leaq 0x2d04(%rip), %rdi      # 0x8f7d
pushq $0x17
popq %rsi
pushq $0x1
popq %rdx
callq 0x22b0
jmp 0x62a0
movq 0x6d63(%rip), %rax      # 0xcff0
movq (%rax), %rdi
leaq 0x2d26(%rip), %rsi      # 0x8fbd
movl %ebx, %edx
xorl %eax, %eax
callq 0x2170
pushq $0x1
popq %rax
jmp 0x6246
// File: /workspace/github_c_makefile_star2_O2/koendv[P]stm32duino-raspberrypi/Arduino_Tools/src/stm32flash/stm32.c
// Function: stm32_resync
static stm32_err_t stm32_resync(const stm32_t *stm)
{
	struct port_interface *port = stm->port;
	port_err_t p_err;
	uint8_t buf[2], ack;
	time_t t0, t1;

	time(&t0);
	t1 = t0;

	buf[0] = STM32_CMD_ERR;
	buf[1] = STM32_CMD_ERR ^ 0xFF;
	while (t1 < t0 + STM32_RESYNC_TIMEOUT) {
		p_err = port->write(port, buf, 2);
		if (p_err != PORT_ERR_OK) {
			usleep(500000);
			time(&t1);
			continue;
		}
		p_err = port->read(port, &ack, 1);
		if (p_err != PORT_ERR_OK) {
			time(&t1);
			continue;
		}
		if (ack == STM32_NACK)
			return STM32_ERR_OK;
		time(&t1);
	}
	return STM32_ERR_UNKNOWN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x8(%rdi), %rbx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x21b0
movq (%r14), %rax
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
leaq 0x6(%rsp), %r15
movw $0xff, (%r15)
pushq $0x2
popq %r12
leaq 0x5(%rsp), %r13
pushq $0x1
popq %rbp
movq %rax, %rcx
addq $0x23, %rax
cmpq %rax, %rcx
jge 0x6339
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq *0x30(%rbx)
testl %eax, %eax
je 0x630e
movl $0x7a120, %edi          # imm = 0x7A120
callq 0x22d0
jmp 0x6325
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq *0x28(%rbx)
testl %eax, %eax
jne 0x6325
cmpb $0x1f, 0x5(%rsp)
je 0x633e
movq %r14, %rdi
callq 0x21b0
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
jmp 0x62e9
pushq $0x1
popq %rax
jmp 0x6340
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/koendv[P]stm32duino-raspberrypi/Arduino_Tools/src/stm32flash/utils.c
// Function: printStatus
void printStatus(FILE *fd, int condition){
	if(condition)
		fprintf(fd, "Error!\n");
	else
		fprintf(fd, "OK\n");
}

// Assembly:
movq %rdi, %rcx
testl %esi, %esi
je 0x6374
leaq 0x2f17(%rip), %rdi      # 0x9280
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
jmp 0x22b0
leaq 0x2f0d(%rip), %rdi      # 0x9288
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
jmp 0x22b0
nop
// File: /workspace/github_c_makefile_star2_O2/koendv[P]stm32duino-raspberrypi/Arduino_Tools/src/stm32flash/parsers/binary.c
// Function: binary_open
parser_err_t binary_open(void *storage, const char *filename, const char write) {
	binary_t *st = storage;
	if (write) {
		if (filename[0] == '-' && filename[1] == '\0')
			st->fd = 1;
		else
			st->fd = open(
				filename,
#ifndef __WIN32__
				O_WRONLY | O_CREAT | O_TRUNC,
#else
				O_WRONLY | O_CREAT | O_TRUNC | O_BINARY,
#endif
#ifndef __WIN32__
				S_IRUSR  | S_IWUSR | S_IRGRP | S_IROTH
#else
				0
#endif
			);
		st->stat.st_size = 0;
	} else {
		if (filename[0] == '-' && filename[1] == '\0') {
			st->fd = 0;
		} else {
			if (stat(filename, &st->stat) != 0)
				return PARSER_ERR_INVALID_FILE;
			st->fd = open(filename,
#ifndef __WIN32__
				O_RDONLY
#else
				O_RDONLY | O_BINARY
#endif
			);
		}
	}

	st->write = write;
	return st->fd == -1 ? PARSER_ERR_SYSTEM : PARSER_ERR_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
movb (%rsi), %al
testb %bl, %bl
je 0x63e3
cmpb $0x2d, %al
jne 0x63b3
cmpb $0x0, 0x1(%r15)
je 0x6403
movq %r15, %rdi
movl $0x241, %esi            # imm = 0x241
movl $0x1a4, %edx            # imm = 0x1A4
xorl %eax, %eax
callq 0x2230
movl %eax, (%r14)
andq $0x0, 0x38(%r14)
movb %bl, 0x4(%r14)
xorl %ecx, %ecx
cmpl $-0x1, %eax
sete %cl
movl %ecx, %eax
popq %rbx
popq %r14
popq %r15
retq
cmpb $0x2d, %al
jne 0x63ee
cmpb $0x0, 0x1(%r15)
je 0x6419
leaq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0x2190
testl %eax, %eax
je 0x6408
pushq $0x2
popq %rcx
jmp 0x63db
pushq $0x1
popq %rax
jmp 0x63c7
movq %r15, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x2230
movl %eax, (%r14)
jmp 0x63cf
andl $0x0, (%r14)
xorl %eax, %eax
jmp 0x63cf
// File: /workspace/github_c_makefile_star2_O2/koendv[P]stm32duino-raspberrypi/Arduino_Tools/src/stm32flash/parsers/binary.c
// Function: binary_close
parser_err_t binary_close(void *storage) {
	binary_t *st = storage;

	if (st->fd) close(st->fd);
	free(st);
	return PARSER_ERR_OK;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %edi
testl %edi, %edi
je 0x6430
callq 0x2120
movq %rbx, %rdi
callq 0x2030
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/koendv[P]stm32duino-raspberrypi/Arduino_Tools/src/stm32flash/parsers/binary.c
// Function: binary_read
parser_err_t binary_read(void *storage, void *data, unsigned int *len) {
	binary_t *st = storage;
	unsigned int left = *len;
	unsigned char *d = data;

	if (st->write) return PARSER_ERR_WRONLY;

	ssize_t r;
	while(left > 0) {
		r = read(st->fd, d, left);
		/* If there is no data to read at all, return OK, but with zero read */
		if (r == 0 && left == *len) {
			*len = 0;
			return PARSER_ERR_OK;
		}
		if (r <= 0) return PARSER_ERR_SYSTEM;
		left -= r;
		d += r;
	}

	*len = *len - left;
	return PARSER_ERR_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpb $0x0, 0x4(%rdi)
je 0x6453
pushq $0x3
popq %rbx
jmp 0x648c
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl (%rdx), %ebp
pushq $0x1
popq %rbx
testl %ebp, %ebp
je 0x648a
movl (%r12), %edi
movl %ebp, %edx
movq %r15, %rsi
callq 0x2140
testq %rax, %rax
je 0x6481
jle 0x648c
subl %eax, %ebp
addq %rax, %r15
jmp 0x6461
cmpl (%r14), %ebp
jne 0x648c
andl $0x0, (%r14)
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/koendv[P]stm32duino-raspberrypi/Arduino_Tools/src/stm32flash/parsers/binary.c
// Function: binary_write
parser_err_t binary_write(void *storage, void *data, unsigned int len) {
	binary_t *st = storage;
	unsigned char *d = data;

	if (!st->write) return PARSER_ERR_RDONLY;

	ssize_t r;
	while(len > 0) {
		r = write(st->fd, d, len);
		if (r < 1) return PARSER_ERR_SYSTEM;
		st->stat.st_size += r;

		len  -= r;
		d += r;
	}

	return PARSER_ERR_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpb $0x0, 0x4(%rdi)
je 0x64d0
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
pushq $0x1
popq %rbx
testl %ebp, %ebp
je 0x64d5
movl (%r15), %edi
movl %ebp, %edx
movq %r14, %rsi
callq 0x2090
testq %rax, %rax
jle 0x64d7
addq %rax, 0x38(%r15)
subl %eax, %ebp
addq %rax, %r14
jmp 0x64af
pushq $0x4
popq %rbx
jmp 0x64d7
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/koendv[P]stm32duino-raspberrypi/Arduino_Tools/src/stm32flash/parsers/hex.c
// Function: hex_close
parser_err_t hex_close(void *storage) {
	hex_t *st = storage;
	if (st) free(st->data);
	free(st);
	return PARSER_ERR_OK;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
testq %rdi, %rdi
je 0x6853
movq 0x10(%rbx), %rdi
callq 0x2030
movq %rbx, %rdi
callq 0x2030
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x68a2(%rip), %rsi      # 0x81ce
pushq $0xb
popq %rdx
movq %r14, %rdi
callq 0x1070
testl %eax, %eax
je 0x1948
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1110
jmp 0x196a
cmpl $0xb, %r15d
jbe 0x197b
addl $0xb, %r12d
cmpl %r15d, %r12d
jbe 0x195b
xorl %eax, %eax
jmp 0x196f
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 0x6858(%rip), %rdi      # 0x81da
leaq 0x67b5(%rip), %rsi      # 0x813e
leaq 0x6869(%rip), %rcx      # 0x81f9
pushq $0x1b
popq %rdx
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O2/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 0x626e
cmpl $0x3, %eax
ja 0x19ed
movl %eax, %eax
leaq 0x675c(%rip), %rcx      # 0x8114
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leal (%rbx,%r14,2), %ebx
jmp 0x19e5
movl %ebx, %esi
andl $-0x2, %esi
movq %r15, %rdi
callq 0x62f1
testq %rax, %rax
je 0x1a0c
movl 0x4(%rax), %eax
testl %eax, %eax
je 0x1a2b
andl $0x1, %ebx
xorl %eax, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x689f(%rip), %rdi      # 0x8293
leaq 0x6743(%rip), %rsi      # 0x813e
leaq 0x6836(%rip), %rcx      # 0x8238
movl $0x96, %edx
callq 0x10f0
leaq 0x6817(%rip), %rdi      # 0x822a
leaq 0x6724(%rip), %rsi      # 0x813e
leaq 0x6817(%rip), %rcx      # 0x8238
movl $0x8f, %edx
callq 0x10f0
leaq 0x6850(%rip), %rdi      # 0x8282
leaq 0x6705(%rip), %rsi      # 0x813e
leaq 0x67f8(%rip), %rcx      # 0x8238
movl $0x90, %edx
callq 0x10f0
nop
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
testq %rsi, %rsi
je 0x1b0c
movq %rdx, %r12
testq %rdx, %rdx
je 0x1b2b
movq %rsi, %r14
movq %rdi, %r15
movl $0xd8, %esi
callq *%r14
movq %rax, %rbx
movl $0xd8, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0x1100
movq %r15, 0xb8(%rbx)
movq %r14, 0xc0(%rbx)
movq %r12, 0xc8(%rbx)
pushq $0x8
popq %rsi
movq %r15, %rdi
callq *%r14
movq %rax, %r14
andq $0x0, (%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)
andq $0x0, (%r14,%rax,8)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x67d0(%rip), %rdi      # 0x82e3
leaq 0x67d9(%rip), %rsi      # 0x82f3
leaq 0x67da(%rip), %rcx      # 0x82fb
movl $0xd4, %edx
callq 0x10f0
leaq 0x6801(%rip), %rdi      # 0x8333
leaq 0x67ba(%rip), %rsi      # 0x82f3
leaq 0x67bb(%rip), %rcx      # 0x82fb
movl $0xd5, %edx
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O2/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_reset
void
aiger_reset (aiger * public)
{
  unsigned i;

  IMPORT_private_FROM (public);

  aiger_delete_symbols (private, public->inputs, private->size_inputs);
  aiger_delete_symbols (private, public->latches, private->size_latches);
  aiger_delete_symbols (private, public->outputs, private->size_outputs);
  aiger_delete_symbols (private, public->bad, private->size_bad);
  aiger_delete_symbols (private, public->constraints,
                        private->size_constraints);
  for (i = 0; i < public->num_justice; i++)
    DELETEN (public->justice[i].lits, public->justice[i].size);
  aiger_delete_symbols (private, public->justice, private->size_justice);
  aiger_delete_symbols (private, public->fairness, private->size_fairness);
  DELETEN (public->ands, private->size_ands);

  aiger_delete_comments (public);
  DELETEN (public->comments, private->size_comments);

  DELETEN (private->coi, private->size_coi);

  DELETEN (private->types, private->size_types);
  aiger_delete_str (private, private->error);
  DELETE (private);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x28(%rdi), %rsi
movl 0x8c(%rdi), %edx
callq 0x1cf9
movq 0x30(%rbx), %rsi
movl 0x90(%rbx), %edx
movq %rbx, %rdi
callq 0x1cf9
movq 0x38(%rbx), %rsi
movl 0x94(%rbx), %edx
movq %rbx, %rdi
callq 0x1cf9
movq 0x40(%rbx), %rsi
movl 0x9c(%rbx), %edx
movq %rbx, %rdi
callq 0x1cf9
movq 0x48(%rbx), %rsi
movl 0xa0(%rbx), %edx
movq %rbx, %rdi
callq 0x1cf9
pushq $0x10
popq %r14
xorl %r15d, %r15d
movl 0x1c(%rbx), %eax
movq 0x50(%rbx), %rsi
cmpq %rax, %r15
jae 0x1c21
movl -0x4(%rsi,%r14), %edx
shlq $0x2, %rdx
movq 0xb8(%rbx), %rdi
movq (%rsi,%r14), %rsi
callq *0xc8(%rbx)
movq 0x50(%rbx), %rax
andq $0x0, (%rax,%r14)
incq %r15
addq $0x20, %r14
jmp 0x1be9
movl 0xa4(%rbx), %edx
movq %rbx, %rdi
callq 0x1cf9
movq 0x58(%rbx), %rsi
movl 0xa8(%rbx), %edx
movq %rbx, %rdi
callq 0x1cf9
movl 0x98(%rbx), %eax
imulq $0xc, %rax, %rdx
movq 0xb8(%rbx), %rdi
movq 0x60(%rbx), %rsi
callq *0xc8(%rbx)
andq $0x0, 0x60(%rbx)
movq %rbx, %rdi
callq 0x1d33
movl 0xb0(%rbx), %edx
shlq $0x3, %rdx
movq 0xb8(%rbx), %rdi
movq 0x68(%rbx), %rsi
callq *0xc8(%rbx)
andq $0x0, 0x68(%rbx)
movl 0x88(%rbx), %edx
movq 0xb8(%rbx), %rdi
movq 0x80(%rbx), %rsi
callq *0xc8(%rbx)
andq $0x0, 0x80(%rbx)
movl 0x78(%rbx), %edx
shlq $0x3, %rdx
movq 0xb8(%rbx), %rdi
movq 0x70(%rbx), %rsi
callq *0xc8(%rbx)
andq $0x0, 0x70(%rbx)
movq 0xd0(%rbx), %rsi
movq %rbx, %rdi
callq 0x1d80
movq 0xb8(%rbx), %rdi
movq 0xc8(%rbx), %rax
movl $0xd8, %edx
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *%rax
// File: /workspace/github_c_makefile_star2_O2/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 %rbx
pushq %rax
movq %rdi, %rbx
movq 0x68(%rdi), %r14
movl 0xac(%rdi), %eax
leaq (%r14,%rax,8), %r15
cmpq %r15, %r14
jae 0x1d64
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x1d80
addq $0x8, %r14
jmp 0x1d4e
andl $0x0, 0xac(%rbx)
movq 0x68(%rbx), %rax
andq $0x0, (%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
shrl %esi
movl %esi, -0x2c(%rbp)
cmpl (%rdi), %esi
jbe 0x1ff1
movl -0x2c(%rbp), %eax
movl %eax, (%rbx)
movl 0x78(%rbx), %eax
cmpl %eax, -0x2c(%rbp)
jb 0x2078
movl %eax, %r15d
leaq (%r15,%r15), %r12
testl %eax, %eax
pushq $0x1
popq %rax
cmoveq %rax, %r12
shlq $0x3, %r15
leaq (,%r12,8), %r13
cmpq %r13, %r15
movq %r13, %r14
cmovbq %r15, %r14
movq 0xb8(%rbx), %rdi
movq %r13, %rsi
callq *0xc0(%rbx)
movq 0x70(%rbx), %rsi
movq %rax, %rdi
movq %r14, %rdx
movq %rax, %r14
callq 0x1140
subq %r15, %r13
jbe 0x2054
leaq (%r14,%r15), %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x1100
movq 0x70(%rbx), %rsi
movq 0xb8(%rbx), %rdi
movq %r15, %rdx
callq *0xc8(%rbx)
movq %r14, 0x70(%rbx)
movl %r12d, 0x78(%rbx)
movl %r12d, %eax
jmp 0x1ff4
movl -0x2c(%rbp), %eax
shlq $0x3, %rax
addq 0x70(%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_copy_str
static char *
aiger_copy_str (aiger_private * private, const char *str)
{
  char *res;

  if (!str || !str[0])
    return 0;

  NEWN (res, strlen (str) + 1);
  strcpy (res, str);

  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x20ee
movq %rsi, %rbx
cmpb $0x0, (%rsi)
je 0x20ee
movq %rdi, %r14
movq %rbx, %rdi
callq 0x10b0
leaq 0x1(%rax), %r15
movq 0xb8(%r14), %rdi
movq %r15, %rsi
callq *0xc0(%r14)
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1100
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1080
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2383
movq %rdi, %r14
cmpq $0x0, 0xd0(%rdi)
jne 0x23a2
testl %esi, %esi
je 0x23c1
testb $0x1, %sil
jne 0x23e0
movl %edx, %ebx
movq %r14, %rdi
callq 0x1fd2
testb $0x2, (%rax)
je 0x23ff
movl 0x4(%rax), %eax
cmpl 0x8(%r14), %eax
jae 0x241e
movq 0x30(%r14), %rcx
shlq $0x5, %rax
movl %ebx, 0x8(%rcx,%rax)
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x6086(%rip), %rdi      # 0x8410
leaq 0x5f62(%rip), %rsi      # 0x82f3
leaq 0x6093(%rip), %rcx      # 0x842b
movl $0x1a4, %edx            # imm = 0x1A4
callq 0x10f0
leaq 0x5f98(%rip), %rdi      # 0x8341
leaq 0x5f43(%rip), %rsi      # 0x82f3
leaq 0x6074(%rip), %rcx      # 0x842b
movl $0x1a5, %edx            # imm = 0x1A5
callq 0x10f0
leaq 0x605f(%rip), %rdi      # 0x8427
leaq 0x5f24(%rip), %rsi      # 0x82f3
leaq 0x6055(%rip), %rcx      # 0x842b
movl $0x1a6, %edx            # imm = 0x1A6
callq 0x10f0
leaq 0x5faa(%rip), %rdi      # 0x8391
leaq 0x5f05(%rip), %rsi      # 0x82f3
leaq 0x6036(%rip), %rcx      # 0x842b
movl $0x1a7, %edx            # imm = 0x1A7
callq 0x10f0
leaq 0x6a3a(%rip), %rdi      # 0x8e40
leaq 0x5ee6(%rip), %rsi      # 0x82f3
leaq 0x6017(%rip), %rcx      # 0x842b
movl $0x1a9, %edx            # imm = 0x1A9
callq 0x10f0
leaq 0x6040(%rip), %rdi      # 0x8465
leaq 0x5ec7(%rip), %rsi      # 0x82f3
leaq 0x5ff8(%rip), %rcx      # 0x842b
movl $0x1aa, %edx            # imm = 0x1AA
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O2/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 0x1fd2
movq %r14, %rdi
movq %r15, %rsi
callq 0x2092
movl 0xc(%r14), %r12d
cmpl 0x94(%r14), %r12d
jne 0x250c
movq %rax, -0x40(%rbp)
movl %ebx, -0x2c(%rbp)
leaq (%r12,%r12), %rax
testl %r12d, %r12d
pushq $0x1
popq %r15
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 0x1140
subq %r12, %r15
jbe 0x24db
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 0x2510
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)
andl $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_O2/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 0x1fd2
movq %r14, %rdi
movq %r15, %rsi
callq 0x2092
movl 0x14(%r14), %r12d
cmpl 0x9c(%r14), %r12d
jne 0x2617
movq %rax, -0x40(%rbp)
movl %ebx, -0x2c(%rbp)
leaq (%r12,%r12), %rax
testl %r12d, %r12d
pushq $0x1
popq %r15
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 0x1140
subq %r12, %r15
jbe 0x25e6
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 0x261b
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)
andl $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_O2/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 0x1fd2
movq %r14, %rdi
movq %r15, %rsi
callq 0x2092
movl 0x18(%r14), %r12d
cmpl 0xa0(%r14), %r12d
jne 0x2722
movq %rax, -0x40(%rbp)
movl %ebx, -0x2c(%rbp)
leaq (%r12,%r12), %rax
testl %r12d, %r12d
pushq $0x1
popq %r15
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 0x1140
subq %r12, %r15
jbe 0x26f1
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 0x2726
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)
andl $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_O2/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, -0x30(%rbp)
movq %rdx, %r13
movq %rdi, %r14
movl %esi, -0x34(%rbp)
movl %esi, %r12d
leaq (,%r12,4), %rbx
movq 0xb8(%rdi), %rdi
movq %rbx, %rsi
callq *0xc0(%r14)
xorl %r15d, %r15d
movq %rax, -0x40(%rbp)
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x1100
cmpq %r15, %r12
je 0x27cd
movl (%r13,%r15,4), %ebx
movq %r14, %rdi
movl %ebx, %esi
callq 0x1fd2
movq -0x40(%rbp), %rax
movl %ebx, (%rax,%r15,4)
incq %r15
jmp 0x27ac
movq %r14, %rdi
movq -0x30(%rbp), %rsi
callq 0x2092
movl 0x1c(%r14), %r13d
cmpl 0xa4(%r14), %r13d
jne 0x287c
movq %rax, -0x48(%rbp)
leaq (,%r13,2), %rax
testl %r13d, %r13d
pushq $0x1
popq %rbx
cmovneq %rax, %rbx
shlq $0x5, %r13
movq %rbx, -0x30(%rbp)
shlq $0x5, %rbx
cmpq %rbx, %r13
movq %rbx, %r15
cmovbq %r13, %r15
movq 0xb8(%r14), %rdi
movq %rbx, %rsi
callq *0xc0(%r14)
movq %rax, %r12
movq 0x50(%r14), %rsi
movq %rax, %rdi
movq %r15, %rdx
callq 0x1140
subq %r13, %rbx
jbe 0x284e
movq %r12, %rdi
addq %r13, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x1100
movq 0x50(%r14), %rsi
movq 0xb8(%r14), %rdi
movq %r13, %rdx
callq *0xc8(%r14)
movq %r12, 0x50(%r14)
movq -0x30(%rbp), %rax
movl %eax, 0xa4(%r14)
movl 0x1c(%r14), %r13d
movq -0x48(%rbp), %rax
jmp 0x2880
movq 0x50(%r14), %r12
leal 0x1(%r13), %ecx
movl %ecx, 0x1c(%r14)
movl %r13d, %edx
shlq $0x5, %rdx
andl $0x0, 0x8(%r12,%rdx)
andq $0x0, (%r12,%rdx)
movl -0x34(%rbp), %ecx
movl %ecx, 0xc(%r12,%rdx)
movq -0x40(%rbp), %rcx
movq %rcx, 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_O2/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 0x1fd2
movq %r14, %rdi
movq %r15, %rsi
callq 0x2092
movl 0x20(%r14), %r12d
cmpl 0xa8(%r14), %r12d
jne 0x298e
movq %rax, -0x40(%rbp)
movl %ebx, -0x2c(%rbp)
leaq (%r12,%r12), %rax
testl %r12d, %r12d
pushq $0x1
popq %r15
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 0x1140
subq %r12, %r15
jbe 0x295d
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 0x2992
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)
andl $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_O2/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 0x2d11
movq %rsi, %r14
movq %rdi, %rbx
pushq $0xa
popq %rsi
movq %r14, %rdi
callq 0x10c0
testq %rax, %rax
jne 0x2d30
movl 0xac(%rbx), %r15d
testq %r15, %r15
je 0x2d4f
movq 0x68(%rbx), %r12
cmpq $0x0, -0x8(%r12,%r15,8)
jne 0x2d6e
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2092
movq %rax, -0x8(%r12,%r15,8)
movl 0xac(%rbx), %eax
cmpl 0xb0(%rbx), %eax
jne 0x2cee
leaq (%rax,%rax), %rcx
testl %eax, %eax
pushq $0x1
popq %rdx
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 0x1140
subq %r15, %r12
jbe 0x2cc4
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 0x2cf2
movq 0x68(%rbx), %r14
leal 0x1(%rax), %ecx
movl %ecx, 0xac(%rbx)
movl %eax, %eax
andq $0x0, (%r14,%rax,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5629(%rip), %rdi      # 0x8341
leaq 0x55d4(%rip), %rsi      # 0x82f3
leaq 0x57bf(%rip), %rcx      # 0x84e5
movl $0x220, %edx            # imm = 0x220
callq 0x10f0
leaq 0x57dc(%rip), %rdi      # 0x8513
leaq 0x55b5(%rip), %rsi      # 0x82f3
leaq 0x57a0(%rip), %rcx      # 0x84e5
movl $0x222, %edx            # imm = 0x222
callq 0x10f0
leaq 0x57d5(%rip), %rdi      # 0x852b
leaq 0x5596(%rip), %rsi      # 0x82f3
leaq 0x5781(%rip), %rcx      # 0x84e5
movl $0x223, %edx            # imm = 0x223
callq 0x10f0
leaq 0x57cc(%rip), %rdi      # 0x8541
leaq 0x5577(%rip), %rsi      # 0x82f3
leaq 0x5762(%rip), %rcx      # 0x84e5
movl $0x225, %edx            # imm = 0x225
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O2/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 0x56ba(%rip), %rdx      # 0x8cc2
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x667b
testl %eax, %eax
je 0x36d9
movq 0x30(%r15), %rcx
movl 0x8(%r15), %r8d
leaq 0x5c01(%rip), %rdx      # 0x922b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x667b
testl %eax, %eax
je 0x36d9
movq 0x38(%r15), %rcx
movl 0xc(%r15), %r8d
leaq 0x5678(%rip), %rdx      # 0x8cc4
movq %r14, %rdi
movq %rbx, %rsi
callq 0x667b
testl %eax, %eax
je 0x36d9
movq 0x40(%r15), %rcx
movl 0x14(%r15), %r8d
leaq 0x526f(%rip), %rdx      # 0x88d9
movq %r14, %rdi
movq %rbx, %rsi
callq 0x667b
testl %eax, %eax
je 0x36d9
movq 0x48(%r15), %rcx
movl 0x18(%r15), %r8d
leaq 0x4abe(%rip), %rdx      # 0x8146
movq %r14, %rdi
movq %rbx, %rsi
callq 0x667b
testl %eax, %eax
je 0x36d9
movq 0x50(%r15), %rcx
movl 0x1c(%r15), %r8d
leaq 0x5601(%rip), %rdx      # 0x8ca7
movq %r14, %rdi
movq %rbx, %rsi
callq 0x667b
testl %eax, %eax
je 0x36d9
movq 0x58(%r15), %rcx
movl 0x20(%r15), %r8d
leaq 0x5602(%rip), %rdx      # 0x8cc6
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x667b
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_write_comments
static int
aiger_write_comments (aiger * public, void *state, aiger_put put)
{
  char **p, *str;

  for (p = public->comments; (str = *p); p++)
    {
      if (aiger_put_s (state, put, str) == EOF)
	return 0;

      if (put ('\n', state) == EOF)
	return 0;
    }

  return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq 0x68(%rdi), %r13
pushq $0xa
popq %r15
xorl %r12d, %r12d
movq (%r13), %rdx
testq %rdx, %rdx
je 0x3775
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4ae8
cmpl $-0x1, %eax
je 0x3779
movl %r15d, %edi
movq %r14, %rsi
callq *%rbx
addq $0x8, %r13
cmpl $-0x1, %eax
jne 0x3749
jmp 0x3779
pushq $0x1
popq %r12
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
leal (%rcx,%rcx), %eax
movq %rcx, %rdx
shlq $0x4, %rdx
addq $0x10, %rdx
xorl %esi, %esi
xorl %edi, %edi
leaq 0x10(%rsi), %r8
cmpq %r8, %rdx
je 0x37c5
addl $0x2, %edi
movq 0x28(%rbx), %r9
cmpl (%r9,%rsi,2), %edi
movq %r8, %rsi
je 0x37aa
jmp 0x37f1
movl 0x8(%rbx), %edx
leal (%rdx,%rcx), %r14d
addl %r14d, %r14d
shlq $0x4, %rdx
addq $0x10, %rdx
xorl %ecx, %ecx
leaq 0x10(%rcx), %rsi
cmpq %rsi, %rdx
je 0x37fa
addl $0x2, %eax
movq 0x30(%rbx), %rdi
cmpl (%rdi,%rcx,2), %eax
movq %rsi, %rcx
je 0x37d9
xorl %ecx, %ecx
movl %ecx, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
callq 0x384c
movl 0x10(%rbx), %ecx
imulq $0x6, %rcx, %rdx
addq $0x6, %rdx
xorl %edi, %edi
pushq $0x1
popq %rsi
xorl %ecx, %ecx
leaq 0x6(%rdi), %r8
cmpq %r8, %rdx
je 0x3848
movq 0x60(%rbx), %r9
movl (%r9,%rdi,2), %r10d
cmpl %r14d, %r10d
jbe 0x37f3
addl $0x2, %eax
cmpl %r10d, %eax
jne 0x37f3
movl 0x4(%r9,%rdi,2), %r10d
cmpl %r10d, %eax
jb 0x37f3
cmpl 0x8(%r9,%rdi,2), %r10d
movq %r8, %rdi
jae 0x3814
jmp 0x37f3
movl %esi, %ecx
jmp 0x37f3
// File: /workspace/github_c_makefile_star2_O2/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
shlq $0x5, %rcx
xorl %edx, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
je 0x3878
movq 0x28(%rdi), %rsi
movl (%rsi,%rdx), %esi
testb $0x1, %sil
jne 0x38a0
cmpl %eax, %esi
cmoval %esi, %eax
addq $0x20, %rdx
jmp 0x385b
movl 0x8(%rdi), %ecx
shlq $0x5, %rcx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x389e
movq 0x30(%rdi), %rsi
movl (%rsi,%rdx), %esi
testb $0x1, %sil
jne 0x38bf
cmpl %eax, %esi
cmoval %esi, %eax
addq $0x20, %rdx
jmp 0x3881
popq %rbp
retq
leaq 0x5498(%rip), %rdi      # 0x8d3f
leaq 0x4a45(%rip), %rsi      # 0x82f3
leaq 0x549c(%rip), %rcx      # 0x8d51
movl $0x50b, %edx            # imm = 0x50B
callq 0x10f0
leaq 0x5479(%rip), %rdi      # 0x8d3f
leaq 0x4a26(%rip), %rsi      # 0x82f3
leaq 0x547d(%rip), %rcx      # 0x8d51
movl $0x513, %edx            # imm = 0x513
callq 0x10f0
// File: /workspace/github_c_makefile_star2_O2/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_coi
const unsigned char *
aiger_coi (aiger * public)
{
  IMPORT_private_FROM (public);
  private->size_coi = public->maxvar + 1;
  NEWN (private->coi, private->size_coi);
  memset (private->coi, 1, private->size_coi);
  return private->coi;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %r14d
incl %r14d
movl %r14d, 0x88(%rdi)
movq 0xb8(%rdi), %rdi
movq %r14, %rsi
callq *0xc0(%rbx)
movq %rax, 0x80(%rbx)
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x1100
movq 0x80(%rbx), %rdi
movl 0x88(%rbx), %edx
pushq $0x1
popq %rsi
callq 0x1100
movq 0x80(%rbx), %rax
popq %rbx
popq %r14
popq %rbp
retq