// File: /workspace/github_c_makefile_star2_O2/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 0x40df(%rip), %rdi      # 0xaa2f
callq 0x1070
leaq 0x7914(%rip), %r13      # 0xe270
movq (%r13), %rdi
leaq 0x3ab1(%rip), %rbx      # 0xa418
movl $0x13d, %edx            # imm = 0x13D
movq %rbx, %rsi
callq 0x14e8
leaq 0x7a3d(%rip), %r14      # 0xe3b8
leaq 0x783e(%rip), %r15      # 0xe1c0
pushq $0x1
popq %r12
movq (%r13), %rdi
callq 0x1290
movq %rax, %rbp
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x13d, %ecx            # imm = 0x13D
callq 0x1b23
testl %eax, %eax
je 0x69ca
movq (%rbp), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x69ca
addq $0x8, %rdi
movl %r12d, %esi
callq 0x1130
testl %eax, %eax
je 0x7178
movq %rbp, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x149, %r8d            # imm = 0x149
callq 0x1bb7
testl %eax, %eax
je 0x6a01
movq (%rbp), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x6a01
movq %rbp, %rdi
movq %r15, %rsi
callq 0x1867
testl %eax, %eax
jne 0x6a40
movq %rbp, %rdi
movq %r14, %rsi
leaq 0x7732(%rip), %rdx      # 0xe140
movq %rbx, %rcx
movl $0x14d, %r8d            # imm = 0x14D
callq 0x1bb7
testl %eax, %eax
je 0x6a68
movq (%rbp), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x6a68
movq %rbp, %rdi
leaq 0x7709(%rip), %rsi      # 0xe140
callq 0x1867
testl %eax, %eax
je 0x6a68
movq 0x8(%rbp), %rdi
movl %r12d, %esi
callq 0x1f02
movq (%rbp), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
cmpl $0x0, 0x7949(%rip)      # 0xe3b8
je 0x6986
movq (%rbp), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x6aa8
addq $0xd0, %rdi
movl %r12d, %esi
callq 0x1130
testl %eax, %eax
jne 0x6aa8
movq (%rbp), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x6986
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x6ae0
movq (%r13), %rdi
callq 0x18d5
testl %eax, %eax
je 0x6b02
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x6ae0
jmp 0x6abe
pushq $0xa
popq %rdi
callq 0x1050
movq (%r13), %rdi
leaq 0x3903(%rip), %rbx      # 0xa418
movl $0x154, %edx            # imm = 0x154
movq %rbx, %rsi
callq 0x14e8
leaq 0x7893(%rip), %r14      # 0xe3bc
leaq 0x7630(%rip), %r15      # 0xe160
pushq $0x1
popq %rbp
movq (%r13), %rdi
callq 0x1290
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x154, %ecx            # imm = 0x154
callq 0x1b23
testl %eax, %eax
je 0x6b72
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x6b72
addq $0x8, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
je 0x6bd3
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x159, %r8d            # imm = 0x159
callq 0x1bb7
testl %eax, %eax
je 0x6c04
movq (%r12), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x6c04
movq %r12, %rdi
movq %r15, %rsi
callq 0x1867
testl %eax, %eax
je 0x6c04
movq 0x8(%r12), %rdi
movl %ebp, %esi
callq 0x1f02
movq (%r12), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
jmp 0x6c04
movq (%r12), %rax
movl $0x1, 0x1b8(%rax)
movl 0x7679(%rip), %esi      # 0xe260
movl %esi, %eax
incl %eax
movl %eax, 0x766f(%rip)      # 0xe260
xorl %eax, %eax
leaq 0x3c17(%rip), %rdi      # 0xa811
callq 0x1080
callq 0x92d7
cmpl $0x0, 0x77b1(%rip)      # 0xe3bc
je 0x6b33
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x6c43
addq $0xd0, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
jne 0x6c43
movq (%r12), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x6b33
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x6c7b
movq (%r13), %rdi
callq 0x18d5
testl %eax, %eax
je 0x6c9d
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x6c7b
jmp 0x6c59
pushq $0xa
popq %rdi
callq 0x1050
movq (%r13), %rdi
leaq 0x3768(%rip), %rbx      # 0xa418
movl $0x160, %edx            # imm = 0x160
movq %rbx, %rsi
callq 0x14e8
leaq 0x76fc(%rip), %r14      # 0xe3c0
leaq 0x7475(%rip), %r15      # 0xe140
pushq $0x1
popq %rbp
movq (%r13), %rdi
callq 0x1290
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x160, %ecx            # imm = 0x160
callq 0x1b23
testl %eax, %eax
je 0x6d0d
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x6d0d
addq $0x8, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
je 0x6d6e
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x165, %r8d            # imm = 0x165
callq 0x1bb7
testl %eax, %eax
je 0x6d9f
movq (%r12), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x6d9f
movq %r12, %rdi
movq %r15, %rsi
callq 0x1867
testl %eax, %eax
je 0x6d9f
movq 0x8(%r12), %rdi
movl %ebp, %esi
callq 0x1f02
movq (%r12), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
jmp 0x6d9f
movq (%r12), %rax
movl $0x1, 0x1b8(%rax)
movl 0x74de(%rip), %esi      # 0xe260
movl %esi, %eax
incl %eax
movl %eax, 0x74d4(%rip)      # 0xe260
xorl %eax, %eax
leaq 0x3a8d(%rip), %rdi      # 0xa822
callq 0x1080
callq 0x94a8
cmpl $0x0, 0x761a(%rip)      # 0xe3c0
je 0x6cce
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x6dde
addq $0xd0, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
jne 0x6dde
movq (%r12), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x6cce
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x6e16
movq (%r13), %rdi
callq 0x18d5
testl %eax, %eax
je 0x6e38
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x6e16
jmp 0x6df4
pushq $0xa
popq %rdi
callq 0x1050
movq (%r13), %rdi
leaq 0x35cd(%rip), %rbx      # 0xa418
movl $0x16c, %edx            # imm = 0x16C
movq %rbx, %rsi
callq 0x14e8
leaq 0x7565(%rip), %r14      # 0xe3c4
leaq 0x725a(%rip), %r15      # 0xe0c0
pushq $0x1
popq %rbp
movq (%r13), %rdi
callq 0x1290
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x16c, %ecx            # imm = 0x16C
callq 0x1b23
testl %eax, %eax
je 0x6ea8
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x6ea8
addq $0x8, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
je 0x6f09
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x171, %r8d            # imm = 0x171
callq 0x1bb7
testl %eax, %eax
je 0x6f35
movq (%r12), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x6f35
movq %r12, %rdi
movq %r15, %rsi
callq 0x1867
testl %eax, %eax
je 0x6f35
movq 0x8(%r12), %rdi
movl %ebp, %esi
callq 0x1f02
movq (%r12), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
jmp 0x6f35
movq (%r12), %rax
movl $0x1, 0x1b8(%rax)
movl 0x7343(%rip), %esi      # 0xe260
movl %esi, %eax
incl %eax
movl %eax, 0x7339(%rip)      # 0xe260
xorl %eax, %eax
leaq 0x3910(%rip), %rdi      # 0xa840
callq 0x1080
cmpl $0x0, 0x7488(%rip)      # 0xe3c4
je 0x6e69
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x6f74
addq $0xd0, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
jne 0x6f74
movq (%r12), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x6e69
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x6fac
movq (%r13), %rdi
callq 0x18d5
testl %eax, %eax
je 0x6fce
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x6fac
jmp 0x6f8a
pushq $0xa
popq %rdi
callq 0x1050
movq (%r13), %rdi
leaq 0x3437(%rip), %rbx      # 0xa418
movl $0x178, %edx            # imm = 0x178
movq %rbx, %rsi
callq 0x14e8
leaq 0x73d3(%rip), %r14      # 0xe3c8
leaq 0x7144(%rip), %r15      # 0xe140
pushq $0x1
popq %rbp
movq (%r13), %rdi
callq 0x1290
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x178, %ecx            # imm = 0x178
callq 0x1b23
testl %eax, %eax
je 0x703e
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x703e
addq $0x8, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
je 0x709f
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x17d, %r8d            # imm = 0x17D
callq 0x1bb7
testl %eax, %eax
je 0x70d0
movq (%r12), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x70d0
movq %r12, %rdi
movq %r15, %rsi
callq 0x1867
testl %eax, %eax
je 0x70d0
movq 0x8(%r12), %rdi
movl %ebp, %esi
callq 0x1f02
movq (%r12), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
jmp 0x70d0
movq (%r12), %rax
movl $0x1, 0x1b8(%rax)
movl 0x71ad(%rip), %esi      # 0xe260
movl %esi, %eax
incl %eax
movl %eax, 0x71a3(%rip)      # 0xe260
xorl %eax, %eax
leaq 0x378f(%rip), %rdi      # 0xa855
callq 0x1080
callq 0x9621
cmpl $0x0, 0x72f1(%rip)      # 0xe3c8
je 0x6fff
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x710f
addq $0xd0, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
jne 0x710f
movq (%r12), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x6fff
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x7147
movq (%r13), %rdi
callq 0x18d5
testl %eax, %eax
je 0x7169
movq (%r13), %rdi
callq 0x1290
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x7147
jmp 0x7125
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rbp), %rax
movl $0x1, 0x1b8(%rax)
movl 0x70d4(%rip), %esi      # 0xe260
movl %esi, %eax
incl %eax
movl %eax, 0x70ca(%rip)      # 0xe260
leaq 0x3654(%rip), %rdi      # 0xa7f1
xorl %eax, %eax
callq 0x1080
jmp 0x71a4