// File: /workspace/github_c_makefile_star2_O0/System-Glitch[P]ESGILinter-C/src/test.c
// Function: test_rule_no_multi_declaration
static void test_rule_no_multi_declaration() {

	printf("------------------------------%s\n", FORMAT_RESET);
	printf("%sTESTING RULE: no-multi-declaration%s\n", COLOR_GREEN_BOLD, FORMAT_RESET);

	arraylist_t *file = arraylist_init(ARRAYLIST_DEFAULT_CAPACITY);
	arraylist_add(file, strduplicate("int glob = 89;"));
	arraylist_add(file, strduplicate("int a = 89, b = 42;"));
	arraylist_add(file, strduplicate("char c = 'a', b = 'd', k;"));
	arraylist_add(file, strduplicate("int func() {"));
	arraylist_add(file, strduplicate("\tshort var = 4;"));
	arraylist_add(file, strduplicate("\tshort var2 = 5, var3 = 6;"));
	arraylist_add(file, strduplicate("}"));

	arraylist_add(file, strduplicate("void params(int param1, char param2) {"));
	arraylist_add(file, strduplicate("}"));

	scope_t *scope = parse_root_scope(file);

	if(scope != NULL) {
		printf("Return: %d\n", check_no_multi_declaration(scope, file, file));
		scope_free(scope);
	} else {
		printf("%sScope %sNULL\n%s", COLOR_YELLOW, COLOR_RED, FORMAT_RESET);
	}

	arraylist_free(file, 1);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
leaq 0xd692(%rip), %rdi      # 0x13031
leaq 0xd67f(%rip), %rsi      # 0x13025
movb $0x0, %al
callq 0x20b0
leaq 0xe826(%rip), %rdi      # 0x141da
leaq 0xd6c0(%rip), %rsi      # 0x1307b
leaq 0xd663(%rip), %rdx      # 0x13025
movb $0x0, %al
callq 0x20b0
movl $0xa, %edi
callq 0x8580
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0xdcab(%rip), %rdi      # 0x13691
callq 0xa550
movq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0x8730
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq 0xe7fc(%rip), %rdi      # 0x14202
callq 0xa550
movq -0x50(%rbp), %rdi
movq %rax, %rsi
callq 0x8730
movq -0x8(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq 0xe7f0(%rip), %rdi      # 0x14216
callq 0xa550
movq -0x48(%rbp), %rdi
movq %rax, %rsi
callq 0x8730
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq 0xe7ea(%rip), %rdi      # 0x14230
callq 0xa550
movq -0x40(%rbp), %rdi
movq %rax, %rsi
callq 0x8730
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq 0xe7d7(%rip), %rdi      # 0x1423d
callq 0xa550
movq -0x38(%rbp), %rdi
movq %rax, %rsi
callq 0x8730
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0xe7c7(%rip), %rdi      # 0x1424d
callq 0xa550
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x8730
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq 0xea03(%rip), %rdi      # 0x144a9
callq 0xa550
movq -0x28(%rbp), %rdi
movq %rax, %rsi
callq 0x8730
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
leaq 0xe7a2(%rip), %rdi      # 0x14268
callq 0xa550
movq -0x20(%rbp), %rdi
movq %rax, %rsi
callq 0x8730
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
leaq 0xe9c3(%rip), %rdi      # 0x144a9
callq 0xa550
movq -0x18(%rbp), %rdi
movq %rax, %rsi
callq 0x8730
movq -0x8(%rbp), %rdi
callq 0x77a0
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x5b37
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rsi
movq -0x8(%rbp), %rdx
callq 0xcb80
movl %eax, %esi
leaq 0xde72(%rip), %rdi      # 0x13997
movb $0x0, %al
callq 0x20b0
movq -0x10(%rbp), %rdi
callq 0x7fa0
jmp 0x5b5a
leaq 0xde65(%rip), %rdi      # 0x139a3
leaq 0xd4da(%rip), %rsi      # 0x1301f
leaq 0xd4cd(%rip), %rdx      # 0x13019
leaq 0xd4d2(%rip), %rcx      # 0x13025
movb $0x0, %al
callq 0x20b0
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x8a00
addq $0x60, %rsp
popq %rbp
retq
nop