yyAbort(Code, FileName, Line) int Code;
char *FileName;
int Line;
{
  switch (Code) {
  case 1:
    printf("Undefined value in \"%s.g\", line %d\n", FileName, Line);
    exit(1);
  case 2:
    printf("No rule applicable in \"%s.g\", line %d\n", FileName, Line);
    exit(1);
  case 3:
    printf("Selected grammar rule failed in \"%s.g\", line %d\n", FileName,
           Line);
    exit(1);
  case 4:
    printf("Selected CHOICE rule failed in \"%s.g\", line %d\n", FileName,
           Line);
    exit(1);
  default:
    printf("Error %d (?) in \"%s.g\", line %d\n", Code, FileName, Line);
    exit(1);
  }
}


x86 assembly (clang, -O0):
<yyAbort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x3,%eax
ja     11d7 <yyAbort+0xb7>
mov    -0x20(%rbp),%rax
lea    0xeae(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<yyAbort>:
push   %rax
mov    %edx,%ecx
mov    %rsi,%rdx
mov    %edi,%esi
lea    -0x1(%rsi),%eax
cmp    $0x3,%eax
ja     1149 <yyAbort+0x29>
lea    0xec9(%rip),%rsi
movslq (%rsi,%rax,4),%rax
add    %rsi,%rax
jmp    *%rax
lea    0xec9(%rip),%rdi
jmp    117a <yyAbort+0x5a>
lea    0xf6c(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>
lea    0xecc(%rip),%rdi
jmp    117a <yyAbort+0x5a>
lea    0xeea(%rip),%rdi
jmp    117a <yyAbort+0x5a>
lea    0xf12(%rip),%rdi
mov    %rdx,%rsi
mov    %ecx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"Undefined value in \22%s.g\22, line %d\0A\00"
@.str.1 = [39 x i8] c"No rule applicable in \22%s.g\22, line %d\0A\00"
@.str.2 = [49 x i8] c"Selected grammar rule failed in \22%s.g\22, line %d\0A\00"
@.str.3 = [48 x i8] c"Selected CHOICE rule failed in \22%s.g\22, line %d\0A\00"
@.str.4 = [33 x i8] c"Error %d (?) in \22%s.g\22, line %d\0A\00"
define i32 @yyAbort(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
switch i32 %7, label %24 [
i32 1, label %8
i32 2, label %12
i32 3, label %16
i32 4, label %20
]
8: ; preds = %3
%9 = load i8*, i8** %5
%10 = load i32, i32* %6
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* %9, i32 %10)
unreachable
12: ; preds = %3
%13 = load i8*, i8** %5
%14 = load i32, i32* %6
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i8* %13, i32 %14)
unreachable
16: ; preds = %3
%17 = load i8*, i8** %5
%18 = load i32, i32* %6
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0), i8* %17, i32 %18)
unreachable
20: ; preds = %3
%21 = load i8*, i8** %5
%22 = load i32, i32* %6
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), i8* %21, i32 %22)
unreachable
24: ; preds = %3
%25 = load i32, i32* %4
%26 = load i8*, i8** %5
%27 = load i32, i32* %6
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %25, i8* %26, i32 %27)
unreachable
}

LLVM IR (-O2):
@.str = [36 x i8] c"Undefined value in \22%s.g\22, line %d\0A\00"
@.str.1 = [39 x i8] c"No rule applicable in \22%s.g\22, line %d\0A\00"
@.str.2 = [49 x i8] c"Selected grammar rule failed in \22%s.g\22, line %d\0A\00"
@.str.3 = [48 x i8] c"Selected CHOICE rule failed in \22%s.g\22, line %d\0A\00"
@.str.4 = [33 x i8] c"Error %d (?) in \22%s.g\22, line %d\0A\00"
define i32 @yyAbort(i32 %0, i8* %1, i32 %2) {
switch i32 %0, label %12 [
i32 1, label %4
i32 2, label %6
i32 3, label %8
i32 4, label %10
]
4: ; preds = %3
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* %1, i32 %2)
tail call void @exit(i32 1)
unreachable
6: ; preds = %3
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i8* %1, i32 %2)
tail call void @exit(i32 1)
unreachable
8: ; preds = %3
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0), i8* %1, i32 %2)
tail call void @exit(i32 1)
unreachable
10: ; preds = %3
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), i8* %1, i32 %2)
tail call void @exit(i32 1)
unreachable
12: ; preds = %3
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %0, i8* %1, i32 %2)
tail call void @exit(i32 1)
unreachable
}