main(argc, argv) int argc;
char *argv[];
{
  long long tab[10];
  int nprimes;
  nprimes = plist(str2llu("1234111111"), str2llu("1234111127"), tab);
  if (tab[0] != 1234111117LL || tab[1] != 1234111121LL ||
      tab[2] != 1234111127LL || tab[3] != 0)
    abort();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1040 <str2llu@plt>
mov    %eax,-0x68(%rbp)
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1040 <str2llu@plt>
mov    -0x68(%rbp),%edi
mov    %eax,%esi
lea    -0x60(%rbp),%rdx
mov    $0x0,%al
call   1050 <plist@plt>
mov    %eax,-0x64(%rbp)
cmpq   $0x498f0a8d,-0x60(%rbp)
49
jne    11bd <main+0x7d>
cmpq   $0x498f0a91,-0x58(%rbp)
49
jne    11bd <main+0x7d>
cmpq   $0x498f0a97,-0x50(%rbp)
49
jne    11bd <main+0x7d>
cmpq   $0x0,-0x48(%rbp)
je     11c2 <main+0x82>
call   1030 <abort@plt>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x50,%rsp
lea    0xeb4(%rip),%rdi
xor    %eax,%eax
call   1040 <str2llu@plt>
mov    %eax,%ebx
lea    0xeaf(%rip),%rdi
xor    %eax,%eax
call   1040 <str2llu@plt>
mov    %rsp,%rdx
mov    %ebx,%edi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <plist@plt>
cmpq   $0x498f0a8d,(%rsp)
49
jne    11a0 <main+0x60>
cmpq   $0x498f0a91,0x8(%rsp)
8f 49
jne    11a0 <main+0x60>
cmpq   $0x498f0a97,0x10(%rsp)
8f 49
jne    11a0 <main+0x60>
cmpq   $0x0,0x18(%rsp)
jne    11a0 <main+0x60>
xor    %edi,%edi
call   1060 <exit@plt>
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"1234111111\00"
@.str.1 = [11 x i8] c"1234111127\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [10 x i64]
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @str2llu to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @str2llu to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%10 = getelementptr inbounds [10 x i64], [10 x i64]* %6, i64 0, i64 0
%11 = call i32 (i32, i32, i64*, ...) bitcast (i32 (...)* @plist to i32 (i32, i32, i64*, ...)*)(i32 %8, i32 %9, i64* %10)
store i32 %11, i32* %7
%12 = getelementptr inbounds [10 x i64], [10 x i64]* %6, i64 0, i64 0
%13 = load i64, i64* %12
%14 = icmp ne i64 %13, 1234111117
br i1 %14, label %27, label %15
15: ; preds = %2
%16 = getelementptr inbounds [10 x i64], [10 x i64]* %6, i64 0, i64 1
%17 = load i64, i64* %16
%18 = icmp ne i64 %17, 1234111121
br i1 %18, label %27, label %19
19: ; preds = %15
%20 = getelementptr inbounds [10 x i64], [10 x i64]* %6, i64 0, i64 2
%21 = load i64, i64* %20
%22 = icmp ne i64 %21, 1234111127
br i1 %22, label %27, label %23
23: ; preds = %19
%24 = getelementptr inbounds [10 x i64], [10 x i64]* %6, i64 0, i64 3
%25 = load i64, i64* %24
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23, %19, %15, %2
unreachable
28: ; preds = %23
unreachable
}

LLVM IR (-O2):
@.str = [11 x i8] c"1234111111\00"
@.str.1 = [11 x i8] c"1234111127\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [10 x i64]
%4 = bitcast [10 x i64]* %3 to i8*
%5 = tail call i32 (i8*, ...) bitcast (i32 (...)* @str2llu to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @str2llu to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%7 = getelementptr inbounds [10 x i64], [10 x i64]* %3, i64 0, i64 0
%8 = call i32 (i32, i32, i64*, ...) bitcast (i32 (...)* @plist to i32 (i32, i32, i64*, ...)*)(i32 %5, i32 %6, i64* %7)
%9 = load i64, i64* %7
%10 = icmp ne i64 %9, 1234111117
%11 = getelementptr inbounds [10 x i64], [10 x i64]* %3, i64 0, i64 1
%12 = load i64, i64* %11
%13 = icmp ne i64 %12, 1234111121
%14 = select i1 %10, i1 true, i1 %13
%15 = getelementptr inbounds [10 x i64], [10 x i64]* %3, i64 0, i64 2
%16 = load i64, i64* %15
%17 = icmp ne i64 %16, 1234111127
%18 = select i1 %14, i1 true, i1 %17
%19 = getelementptr inbounds [10 x i64], [10 x i64]* %3, i64 0, i64 3
%20 = load i64, i64* %19
%21 = icmp ne i64 %20, 0
%22 = select i1 %18, i1 true, i1 %21
br i1 %22, label %23, label %24
23: ; preds = %2
unreachable
24: ; preds = %2
unreachable
}