#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
scalar_t__ Verify(char *, int, char *, char *, ...);
int VerifyFormattingStrings(void) {
  int nerrors = 0;
  nerrors += Verify("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/hypermail-project/"
                    "hypermail/refs/heads/master/src/trio/regression.c",
                    284, "Hello world", "Hello world");
  nerrors += Verify("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/hypermail-project/"
                    "hypermail/refs/heads/master/src/trio/regression.c",
                    287, "Hello world", "%s", "Hello world");
  return nerrors;
}


x86 assembly (clang, -O0):
<VerifyFormattingStrings>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x11c,%esi
lea    0xf6c(%rip),%rcx
mov    %rcx,%rdx
mov    $0x0,%al
call   1030 <Verify@plt>
mov    %rax,%rcx
movslq -0x4(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x4(%rbp)
lea    0xeb0(%rip),%rdi
mov    $0x11f,%esi
lea    0xf42(%rip),%r8
lea    0xf47(%rip),%rcx
mov    %r8,%rdx
mov    $0x0,%al
call   1030 <Verify@plt>
mov    %rax,%rcx
movslq -0x4(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<VerifyFormattingStrings>:
push   %r15
push   %r14
push   %rbx
lea    0xee4(%rip),%r14
lea    0xf7b(%rip),%rbx
mov    %r14,%rdi
mov    $0x11c,%esi
mov    %rbx,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1030 <Verify@plt>
mov    %rax,%r15
lea    0xf68(%rip),%rcx
mov    %r14,%rdi
mov    $0x11f,%esi
mov    %rbx,%rdx
mov    %rbx,%r8
xor    %eax,%eax
call   1030 <Verify@plt>
add    %r15d,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [158 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hypermail-project/hypermail/refs/heads/master/src/trio/regression.c\00"
@.str.1 = [12 x i8] c"Hello world\00"
@.str.2 = [3 x i8] c"%s\00"
define i32 @VerifyFormattingStrings() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 (i8*, i32, i8*, i8*, ...) @Verify(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 284, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%3 = load i32, i32* %1
%4 = sext i32 %3 to i64
%5 = add nsw i64 %4, %2
%6 = trunc i64 %5 to i32
store i32 %6, i32* %1
%7 = call i64 (i8*, i32, i8*, i8*, ...) @Verify(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 287, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* %1
%9 = sext i32 %8 to i64
%10 = add nsw i64 %9, %7
%11 = trunc i64 %10 to i32
store i32 %11, i32* %1
%12 = load i32, i32* %1
ret i32 %12
}

LLVM IR (-O2):
@.str = [158 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hypermail-project/hypermail/refs/heads/master/src/trio/regression.c\00"
@.str.1 = [12 x i8] c"Hello world\00"
@.str.2 = [3 x i8] c"%s\00"
define i32 @VerifyFormattingStrings() {
%1 = tail call i64 (i8*, i32, i8*, i8*, ...) @Verify(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 284, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i64 (i8*, i32, i8*, i8*, ...) @Verify(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 287, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%3 = add i64 %2, %1
%4 = trunc i64 %3 to i32
ret i32 %4
}