int cached_iconv_convert(struct cached_iconv *ci, int from_char, int *to_char) {
  ((void)((0) ? 0
              : (internal_error(
                     "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                     "outputs/2022-01-22/02-19-57/repos/Bytewerk/uClinux-ipcam/"
                     "refs/heads/master/gdb/charset.c",
                     510, _("%s: Assertion `%s' failed."), __func__, "0"),
                 0)));
}


x86 assembly (clang, -O0):
<cached_iconv_convert>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
lea    0xf57(%rip),%rdi
mov    $0x0,%al
call   1040 <_@plt>
mov    %eax,%edx
lea    0xeb6(%rip),%rdi
mov    $0x1fe,%esi
lea    0xf56(%rip),%rcx
lea    0xf64(%rip),%r8
mov    $0x0,%al
call   1030 <internal_error@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cached_iconv_convert>:
push   %rax
lea    0xf69(%rip),%rdi
xor    %eax,%eax
call   1040 <_@plt>
lea    0xeca(%rip),%rdi
lea    0xf6f(%rip),%rcx
lea    0xf7d(%rip),%r8
mov    $0x1fe,%esi
mov    %eax,%edx
xor    %eax,%eax
pop    %r9
jmp    1030 <internal_error@plt>

LLVM IR (-O0):
%struct.cached_iconv = type opaque
@.str = [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Bytewerk/uClinux-ipcam/refs/heads/master/gdb/charset.c\00"
@.str.1 = [27 x i8] c"%s: Assertion `%s' failed.\00"
@__func__.cached_iconv_convert = [21 x i8] c"cached_iconv_convert\00"
@.str.2 = [2 x i8] c"0\00"
define i32 @cached_iconv_convert(%struct.cached_iconv* %0, i32 %1, i32* %2) {
%4 = alloca i32
%5 = alloca %struct.cached_iconv*
%6 = alloca i32
%7 = alloca i32*
store %struct.cached_iconv* %0, %struct.cached_iconv** %5
store i32 %1, i32* %6
store i32* %2, i32** %7
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @_ to i32 (i8*, ...)*)(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i8*, i32, i32, i8*, i8*, ...) bitcast (i32 (...)* @internal_error to i32 (i8*, i32, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str, i64 0, i64 0), i32 510, i32 %8, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @__func__.cached_iconv_convert, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%10 = load i32, i32* %4
ret i32 %10
}

LLVM IR (-O2):
%struct.cached_iconv = type opaque
@.str = [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Bytewerk/uClinux-ipcam/refs/heads/master/gdb/charset.c\00"
@.str.1 = [27 x i8] c"%s: Assertion `%s' failed.\00"
@__func__.cached_iconv_convert = [21 x i8] c"cached_iconv_convert\00"
@.str.2 = [2 x i8] c"0\00"
define i32 @cached_iconv_convert(%struct.cached_iconv* nocapture readnone %0, i32 %1, i32* nocapture readnone %2) {
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @_ to i32 (i8*, ...)*)(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 (i8*, i32, i32, i8*, i8*, ...) bitcast (i32 (...)* @internal_error to i32 (i8*, i32, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str, i64 0, i64 0), i32 510, i32 %4, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @__func__.cached_iconv_convert, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret i32 undef
}