// File: /workspace/github_c_makefile_star2_O1/meaning-matters[P]Except/Test.c
// Function: TestSignal
static void TestSignal(void)
{
    printf("\nSIGNAL TESTS ------------------------------------------\n\n");

    try
    {
        char*   p = "segment";
        printf("-->%2d: Violates segmentation?\n", testNum++);
        
        while (1)
        {
            *p++ = ' ';
        }
        
        //*((long *)main) = 0;  /* might not be portable */
    }
    catch (SegmentationFault, e)
    {
        printf("%s\n", e->getMessage());
    }
    catch (RuntimeException, e)
    {
        printf("%s\n", e->getMessage());
    }
    finally;
    printf("\n");

    try
    {
        printf("-->%2d: Aborts?\n", testNum++);
        t5();
    }
    catch (AbnormalTermination, e)
    {
        printf("%s\n", e->getMessage());
    }
    finally;
    printf("\n");

    try
    {
        printf("-->%2d: Illegal instruction?\n", testNum++);
        t6();
    }
    catch (RuntimeException, e)
    {
        printf("%s\n", e->getMessage());
    }
    finally;
    printf("\n");

    try
    {
        printf("-->%2d: Arithmetic?\n", testNum++);
        t7();
    }
    catch (Throwable, e)
    {
        printf("%s\n", e->getMessage());
    }
    finally;
    printf("\n");
    
    try
    {
        printf("-->%2d: RuntimeException (in finally)?\n", testNum++);
        t8();
    }
    catch (RuntimeException, e)
    {
        printf("%s\n", e->getMessage());
    }
    finally;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x3cc6(%rip), %rdi      # 0xaaaf
callq 0x1070
leaq 0x647b(%rip), %r13      # 0xd270
movq (%r13), %rdi
leaq 0x3698(%rip), %rbx      # 0xa498
movl $0x13d, %edx            # imm = 0x13D
movq %rbx, %rsi
callq 0x151a
leaq 0x65a4(%rip), %r14      # 0xd3b8
leaq 0x63a5(%rip), %r15      # 0xd1c0
movl $0x1, %r12d
movq (%r13), %rdi
callq 0x12d2
movq %rax, %rbp
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x13d, %ecx            # imm = 0x13D
callq 0x1b4a
testl %eax, %eax
je 0x6e65
movq (%rbp), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x6e65
addq $0x8, %rdi
movl %r12d, %esi
callq 0x1130
testl %eax, %eax
je 0x7623
movq %rbp, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x149, %r8d            # imm = 0x149
callq 0x1bde
testl %eax, %eax
je 0x6e9c
movq (%rbp), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x6e9c
movq %rbp, %rdi
movq %r15, %rsi
callq 0x18a9
testl %eax, %eax
jne 0x6edb
movq %rbp, %rdi
movq %r14, %rsi
leaq 0x6297(%rip), %rdx      # 0xd140
movq %rbx, %rcx
movl $0x14d, %r8d            # imm = 0x14D
callq 0x1bde
testl %eax, %eax
je 0x6f03
movq (%rbp), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x6f03
movq %rbp, %rdi
leaq 0x626e(%rip), %rsi      # 0xd140
callq 0x18a9
testl %eax, %eax
je 0x6f03
movq 0x8(%rbp), %rdi
movl %r12d, %esi
callq 0x1f2b
movq (%rbp), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
cmpl $0x0, 0x64ae(%rip)      # 0xd3b8
je 0x6e21
movq (%rbp), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x6f43
addq $0xd0, %rdi
movl %r12d, %esi
callq 0x1130
testl %eax, %eax
jne 0x6f43
movq (%rbp), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x6e21
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x6f7b
movq (%r13), %rdi
callq 0x18f4
testl %eax, %eax
je 0x6f9d
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x6f7b
jmp 0x6f59
movl $0xa, %edi
callq 0x1050
movq (%r13), %rdi
leaq 0x34e6(%rip), %rbx      # 0xa498
movl $0x154, %edx            # imm = 0x154
movq %rbx, %rsi
callq 0x151a
leaq 0x63f6(%rip), %r14      # 0xd3bc
leaq 0x6193(%rip), %r15      # 0xd160
movl $0x1, %ebp
movq (%r13), %rdi
callq 0x12d2
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x154, %ecx            # imm = 0x154
callq 0x1b4a
testl %eax, %eax
je 0x7011
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x7011
addq $0x8, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
je 0x7072
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x159, %r8d            # imm = 0x159
callq 0x1bde
testl %eax, %eax
je 0x70a3
movq (%r12), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x70a3
movq %r12, %rdi
movq %r15, %rsi
callq 0x18a9
testl %eax, %eax
je 0x70a3
movq 0x8(%r12), %rdi
movl %ebp, %esi
callq 0x1f2b
movq (%r12), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
jmp 0x70a3
movq (%r12), %rax
movl $0x1, 0x1b8(%rax)
movl 0x61da(%rip), %esi      # 0xd260
movl %esi, %eax
incl %eax
movl %eax, 0x61d0(%rip)      # 0xd260
xorl %eax, %eax
leaq 0x37f8(%rip), %rdi      # 0xa891
callq 0x1080
callq 0x97c3
cmpl $0x0, 0x6312(%rip)      # 0xd3bc
je 0x6fd2
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x70e2
addq $0xd0, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
jne 0x70e2
movq (%r12), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x6fd2
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x711a
movq (%r13), %rdi
callq 0x18f4
testl %eax, %eax
je 0x713c
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x711a
jmp 0x70f8
movl $0xa, %edi
callq 0x1050
movq (%r13), %rdi
leaq 0x3347(%rip), %rbx      # 0xa498
movl $0x160, %edx            # imm = 0x160
movq %rbx, %rsi
callq 0x151a
leaq 0x625b(%rip), %r14      # 0xd3c0
leaq 0x5fd4(%rip), %r15      # 0xd140
movl $0x1, %ebp
movq (%r13), %rdi
callq 0x12d2
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x160, %ecx            # imm = 0x160
callq 0x1b4a
testl %eax, %eax
je 0x71b0
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x71b0
addq $0x8, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
je 0x7211
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x165, %r8d            # imm = 0x165
callq 0x1bde
testl %eax, %eax
je 0x7242
movq (%r12), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x7242
movq %r12, %rdi
movq %r15, %rsi
callq 0x18a9
testl %eax, %eax
je 0x7242
movq 0x8(%r12), %rdi
movl %ebp, %esi
callq 0x1f2b
movq (%r12), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
jmp 0x7242
movq (%r12), %rax
movl $0x1, 0x1b8(%rax)
movl 0x603b(%rip), %esi      # 0xd260
movl %esi, %eax
incl %eax
movl %eax, 0x6031(%rip)      # 0xd260
xorl %eax, %eax
leaq 0x366a(%rip), %rdi      # 0xa8a2
callq 0x1080
callq 0x9998
cmpl $0x0, 0x6177(%rip)      # 0xd3c0
je 0x7171
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x7281
addq $0xd0, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
jne 0x7281
movq (%r12), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x7171
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x72b9
movq (%r13), %rdi
callq 0x18f4
testl %eax, %eax
je 0x72db
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x72b9
jmp 0x7297
movl $0xa, %edi
callq 0x1050
movq (%r13), %rdi
leaq 0x31a8(%rip), %rbx      # 0xa498
movl $0x16c, %edx            # imm = 0x16C
movq %rbx, %rsi
callq 0x151a
leaq 0x60c0(%rip), %r14      # 0xd3c4
leaq 0x5db5(%rip), %r15      # 0xd0c0
movl $0x1, %ebp
movq (%r13), %rdi
callq 0x12d2
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x16c, %ecx            # imm = 0x16C
callq 0x1b4a
testl %eax, %eax
je 0x734f
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x734f
addq $0x8, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
je 0x73b0
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x171, %r8d            # imm = 0x171
callq 0x1bde
testl %eax, %eax
je 0x73dc
movq (%r12), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x73dc
movq %r12, %rdi
movq %r15, %rsi
callq 0x18a9
testl %eax, %eax
je 0x73dc
movq 0x8(%r12), %rdi
movl %ebp, %esi
callq 0x1f2b
movq (%r12), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
jmp 0x73dc
movq (%r12), %rax
movl $0x1, 0x1b8(%rax)
movl 0x5e9c(%rip), %esi      # 0xd260
movl %esi, %eax
incl %eax
movl %eax, 0x5e92(%rip)      # 0xd260
xorl %eax, %eax
leaq 0x34e9(%rip), %rdi      # 0xa8c0
callq 0x1080
cmpl $0x0, 0x5fe1(%rip)      # 0xd3c4
je 0x7310
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x741b
addq $0xd0, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
jne 0x741b
movq (%r12), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x7310
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x7453
movq (%r13), %rdi
callq 0x18f4
testl %eax, %eax
je 0x7475
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x7453
jmp 0x7431
movl $0xa, %edi
callq 0x1050
movq (%r13), %rdi
leaq 0x300e(%rip), %rbx      # 0xa498
movl $0x178, %edx            # imm = 0x178
movq %rbx, %rsi
callq 0x151a
leaq 0x5f2a(%rip), %r14      # 0xd3c8
leaq 0x5c9b(%rip), %r15      # 0xd140
movl $0x1, %ebp
movq (%r13), %rdi
callq 0x12d2
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x178, %ecx            # imm = 0x178
callq 0x1b4a
testl %eax, %eax
je 0x74e9
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x74e9
addq $0x8, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
je 0x754a
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x17d, %r8d            # imm = 0x17D
callq 0x1bde
testl %eax, %eax
je 0x757b
movq (%r12), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x757b
movq %r12, %rdi
movq %r15, %rsi
callq 0x18a9
testl %eax, %eax
je 0x757b
movq 0x8(%r12), %rdi
movl %ebp, %esi
callq 0x1f2b
movq (%r12), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
jmp 0x757b
movq (%r12), %rax
movl $0x1, 0x1b8(%rax)
movl 0x5d02(%rip), %esi      # 0xd260
movl %esi, %eax
incl %eax
movl %eax, 0x5cf8(%rip)      # 0xd260
xorl %eax, %eax
leaq 0x3364(%rip), %rdi      # 0xa8d5
callq 0x1080
callq 0x9b13
cmpl $0x0, 0x5e46(%rip)      # 0xd3c8
je 0x74aa
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x75ba
addq $0xd0, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
jne 0x75ba
movq (%r12), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x74aa
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x75f2
movq (%r13), %rdi
callq 0x18f4
testl %eax, %eax
je 0x7614
movq (%r13), %rdi
callq 0x12d2
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x75f2
jmp 0x75d0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rbp), %rax
movl $0x1, 0x1b8(%rax)
movl 0x5c29(%rip), %esi      # 0xd260
movl %esi, %eax
incl %eax
movl %eax, 0x5c1f(%rip)      # 0xd260
leaq 0x3229(%rip), %rdi      # 0xa871
xorl %eax, %eax
callq 0x1080
jmp 0x764f