// File: /workspace/github_c_makefile_star2_O3/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 0x3ed9(%rip), %rdi      # 0xaa2f
callq 0x1070
leaq 0x770e(%rip), %r13      # 0xe270
movq (%r13), %rdi
leaq 0x38ab(%rip), %rbx      # 0xa418
movl $0x13d, %edx            # imm = 0x13D
movq %rbx, %rsi
callq 0x157c
leaq 0x7837(%rip), %r14      # 0xe3b8
leaq 0x7638(%rip), %r15      # 0xe1c0
movl $0x1, %r12d
movq (%r13), %rdi
callq 0x1334
movq %rax, %rbp
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x13d, %ecx            # imm = 0x13D
callq 0x1bb0
testl %eax, %eax
je 0x6bd2
movq (%rbp), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x6bd2
addq $0x8, %rdi
movl %r12d, %esi
callq 0x1130
testl %eax, %eax
je 0x7390
movq %rbp, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x149, %r8d            # imm = 0x149
callq 0x1c49
testl %eax, %eax
je 0x6c09
movq (%rbp), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x6c09
movq %rbp, %rdi
movq %r15, %rsi
callq 0x1904
testl %eax, %eax
jne 0x6c48
movq %rbp, %rdi
movq %r14, %rsi
leaq 0x752a(%rip), %rdx      # 0xe140
movq %rbx, %rcx
movl $0x14d, %r8d            # imm = 0x14D
callq 0x1c49
testl %eax, %eax
je 0x6c70
movq (%rbp), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x6c70
movq %rbp, %rdi
leaq 0x7501(%rip), %rsi      # 0xe140
callq 0x1904
testl %eax, %eax
je 0x6c70
movq 0x8(%rbp), %rdi
movl %r12d, %esi
callq 0x1f9d
movq (%rbp), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
cmpl $0x0, 0x7741(%rip)      # 0xe3b8
je 0x6b8e
movq (%rbp), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x6cb0
addq $0xd0, %rdi
movl %r12d, %esi
callq 0x1130
testl %eax, %eax
jne 0x6cb0
movq (%rbp), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x6b8e
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x6ce8
movq (%r13), %rdi
callq 0x195a
testl %eax, %eax
je 0x6d0a
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x6ce8
jmp 0x6cc6
movl $0xa, %edi
callq 0x1050
movq (%r13), %rdi
leaq 0x36f9(%rip), %rbx      # 0xa418
movl $0x154, %edx            # imm = 0x154
movq %rbx, %rsi
callq 0x157c
leaq 0x7689(%rip), %r14      # 0xe3bc
leaq 0x7426(%rip), %r15      # 0xe160
movl $0x1, %ebp
movq (%r13), %rdi
callq 0x1334
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x154, %ecx            # imm = 0x154
callq 0x1bb0
testl %eax, %eax
je 0x6d7e
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x6d7e
addq $0x8, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
je 0x6ddf
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x159, %r8d            # imm = 0x159
callq 0x1c49
testl %eax, %eax
je 0x6e10
movq (%r12), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x6e10
movq %r12, %rdi
movq %r15, %rsi
callq 0x1904
testl %eax, %eax
je 0x6e10
movq 0x8(%r12), %rdi
movl %ebp, %esi
callq 0x1f9d
movq (%r12), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
jmp 0x6e10
movq (%r12), %rax
movl $0x1, 0x1b8(%rax)
movl 0x746d(%rip), %esi      # 0xe260
movl %esi, %eax
incl %eax
movl %eax, 0x7463(%rip)      # 0xe260
xorl %eax, %eax
leaq 0x3a0b(%rip), %rdi      # 0xa811
callq 0x1080
callq 0x9530
cmpl $0x0, 0x75a5(%rip)      # 0xe3bc
je 0x6d3f
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x6e4f
addq $0xd0, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
jne 0x6e4f
movq (%r12), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x6d3f
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x6e87
movq (%r13), %rdi
callq 0x195a
testl %eax, %eax
je 0x6ea9
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x6e87
jmp 0x6e65
movl $0xa, %edi
callq 0x1050
movq (%r13), %rdi
leaq 0x355a(%rip), %rbx      # 0xa418
movl $0x160, %edx            # imm = 0x160
movq %rbx, %rsi
callq 0x157c
leaq 0x74ee(%rip), %r14      # 0xe3c0
leaq 0x7267(%rip), %r15      # 0xe140
movl $0x1, %ebp
movq (%r13), %rdi
callq 0x1334
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x160, %ecx            # imm = 0x160
callq 0x1bb0
testl %eax, %eax
je 0x6f1d
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x6f1d
addq $0x8, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
je 0x6f7e
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x165, %r8d            # imm = 0x165
callq 0x1c49
testl %eax, %eax
je 0x6faf
movq (%r12), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x6faf
movq %r12, %rdi
movq %r15, %rsi
callq 0x1904
testl %eax, %eax
je 0x6faf
movq 0x8(%r12), %rdi
movl %ebp, %esi
callq 0x1f9d
movq (%r12), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
jmp 0x6faf
movq (%r12), %rax
movl $0x1, 0x1b8(%rax)
movl 0x72ce(%rip), %esi      # 0xe260
movl %esi, %eax
incl %eax
movl %eax, 0x72c4(%rip)      # 0xe260
xorl %eax, %eax
leaq 0x387d(%rip), %rdi      # 0xa822
callq 0x1080
callq 0x9705
cmpl $0x0, 0x740a(%rip)      # 0xe3c0
je 0x6ede
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x6fee
addq $0xd0, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
jne 0x6fee
movq (%r12), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x6ede
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x7026
movq (%r13), %rdi
callq 0x195a
testl %eax, %eax
je 0x7048
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x7026
jmp 0x7004
movl $0xa, %edi
callq 0x1050
movq (%r13), %rdi
leaq 0x33bb(%rip), %rbx      # 0xa418
movl $0x16c, %edx            # imm = 0x16C
movq %rbx, %rsi
callq 0x157c
leaq 0x7353(%rip), %r14      # 0xe3c4
leaq 0x7048(%rip), %r15      # 0xe0c0
movl $0x1, %ebp
movq (%r13), %rdi
callq 0x1334
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x16c, %ecx            # imm = 0x16C
callq 0x1bb0
testl %eax, %eax
je 0x70bc
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x70bc
addq $0x8, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
je 0x711d
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x171, %r8d            # imm = 0x171
callq 0x1c49
testl %eax, %eax
je 0x7149
movq (%r12), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x7149
movq %r12, %rdi
movq %r15, %rsi
callq 0x1904
testl %eax, %eax
je 0x7149
movq 0x8(%r12), %rdi
movl %ebp, %esi
callq 0x1f9d
movq (%r12), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
jmp 0x7149
movq (%r12), %rax
movl $0x1, 0x1b8(%rax)
movl 0x712f(%rip), %esi      # 0xe260
movl %esi, %eax
incl %eax
movl %eax, 0x7125(%rip)      # 0xe260
xorl %eax, %eax
leaq 0x36fc(%rip), %rdi      # 0xa840
callq 0x1080
cmpl $0x0, 0x7274(%rip)      # 0xe3c4
je 0x707d
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x7188
addq $0xd0, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
jne 0x7188
movq (%r12), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x707d
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x71c0
movq (%r13), %rdi
callq 0x195a
testl %eax, %eax
je 0x71e2
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x71c0
jmp 0x719e
movl $0xa, %edi
callq 0x1050
movq (%r13), %rdi
leaq 0x3221(%rip), %rbx      # 0xa418
movl $0x178, %edx            # imm = 0x178
movq %rbx, %rsi
callq 0x157c
leaq 0x71bd(%rip), %r14      # 0xe3c8
leaq 0x6f2e(%rip), %r15      # 0xe140
movl $0x1, %ebp
movq (%r13), %rdi
callq 0x1334
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x178, %ecx            # imm = 0x178
callq 0x1bb0
testl %eax, %eax
je 0x7256
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
je 0x7256
addq $0x8, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
je 0x72b7
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl $0x17d, %r8d            # imm = 0x17D
callq 0x1c49
testl %eax, %eax
je 0x72e8
movq (%r12), %rax
cmpl $0x0, 0x1b4(%rax)
je 0x72e8
movq %r12, %rdi
movq %r15, %rsi
callq 0x1904
testl %eax, %eax
je 0x72e8
movq 0x8(%r12), %rdi
movl %ebp, %esi
callq 0x1f9d
movq (%r12), %rcx
movl $0x2, 0x1b8(%rcx)
callq *0x1e0(%rax)
movq %rax, %rdi
callq 0x1070
jmp 0x72e8
movq (%r12), %rax
movl $0x1, 0x1b8(%rax)
movl 0x6f95(%rip), %esi      # 0xe260
movl %esi, %eax
incl %eax
movl %eax, 0x6f8b(%rip)      # 0xe260
xorl %eax, %eax
leaq 0x3577(%rip), %rdi      # 0xa855
callq 0x1080
callq 0x9880
cmpl $0x0, 0x70d9(%rip)      # 0xe3c8
je 0x7217
movq (%r12), %rdi
cmpl $0x0, 0x1b4(%rdi)
jne 0x7327
addq $0xd0, %rdi
movl %ebp, %esi
callq 0x1130
testl %eax, %eax
jne 0x7327
movq (%r12), %rax
movl $0x1, 0x1b4(%rax)
jmp 0x7217
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
movl $0x3, 0x1b8(%rax)
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
cmpl $0x0, 0x1b4(%rax)
jg 0x735f
movq (%r13), %rdi
callq 0x195a
testl %eax, %eax
je 0x7381
movq (%r13), %rdi
callq 0x1334
movq (%rax), %rax
movl 0x1b4(%rax), %ecx
movl %ecx, %edx
decl %edx
movl %edx, 0x1b4(%rax)
testl %ecx, %ecx
jg 0x735f
jmp 0x733d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rbp), %rax
movl $0x1, 0x1b8(%rax)
movl 0x6ebc(%rip), %esi      # 0xe260
movl %esi, %eax
incl %eax
movl %eax, 0x6eb2(%rip)      # 0xe260
leaq 0x343c(%rip), %rdi      # 0xa7f1
xorl %eax, %eax
callq 0x1080
jmp 0x73bc