#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__ VerifyScanningOneInteger(char *, int, char *, char *, int);
int VerifyScanningIntegers(void) {
  int nerrors = 0;
  nerrors += VerifyScanningOneInteger(
      "/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",
      1143, "42", "%i", 42);
  nerrors += VerifyScanningOneInteger(
      "/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",
      1145, "42", "%d", 42);
  nerrors += VerifyScanningOneInteger(
      "/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",
      1147, "-42", "%d", -42);
  nerrors += VerifyScanningOneInteger(
      "/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",
      1149, "2147483647", "%d", 2147483647);
  nerrors += VerifyScanningOneInteger(
      "/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",
      1151, "42", "%u", 42);
  nerrors += VerifyScanningOneInteger(
      "/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",
      1153, "2a", "%x", 42);
  nerrors += VerifyScanningOneInteger(
      "/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",
      1155, "52", "%o", 42);
  nerrors += VerifyScanningOneInteger(
      "/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",
      1157, "101010", "%..2i", 42);
  nerrors += VerifyScanningOneInteger(
      "/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",
      1159, "0x2a", "%#x", 42);
  nerrors += VerifyScanningOneInteger(
      "/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",
      1161, "052", "%#o", 42);
  return nerrors;
}


x86 assembly (clang, -O0):
<VerifyScanningIntegers>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x477,%esi
lea    0xf73(%rip),%rdx
lea    0xf65(%rip),%rcx
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rcx
movslq -0x4(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x4(%rbp)
lea    0xea8(%rip),%rdi
mov    $0x479,%esi
lea    0xf41(%rip),%rdx
lea    0xf36(%rip),%rcx
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rcx
movslq -0x4(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x4(%rbp)
lea    0xe76(%rip),%rdi
mov    $0x47b,%esi
lea    0xf0e(%rip),%rdx
lea    0xf04(%rip),%rcx
mov    $0xffffffd6,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rcx
movslq -0x4(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x4(%rbp)
lea    0xe44(%rip),%rdi
mov    $0x47d,%esi
lea    0xee0(%rip),%rdx
lea    0xed2(%rip),%rcx
mov    $0x7fffffff,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rcx
movslq -0x4(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x4(%rbp)
lea    0xe12(%rip),%rdi
mov    $0x47f,%esi
lea    0xeab(%rip),%rdx
lea    0xeb2(%rip),%rcx
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rcx
movslq -0x4(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x4(%rbp)
lea    0xde0(%rip),%rdi
mov    $0x481,%esi
lea    0xe9f(%rip),%rdx
lea    0xe83(%rip),%rcx
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rcx
movslq -0x4(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x4(%rbp)
lea    0xdae(%rip),%rdi
mov    $0x483,%esi
lea    0xe75(%rip),%rdx
lea    0xe54(%rip),%rcx
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rcx
movslq -0x4(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x4(%rbp)
lea    0xd7c(%rip),%rdi
mov    $0x485,%esi
lea    0xe2c(%rip),%rdx
lea    0xe2c(%rip),%rcx
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rcx
movslq -0x4(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x4(%rbp)
lea    0xd4a(%rip),%rdi
mov    $0x487,%esi
lea    0xe07(%rip),%rdx
lea    0xe05(%rip),%rcx
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rcx
movslq -0x4(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x4(%rbp)
lea    0xd18(%rip),%rdi
mov    $0x489,%esi
lea    0xdde(%rip),%rdx
lea    0xddb(%rip),%rcx
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@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):
<VerifyScanningIntegers>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xede(%rip),%r12
lea    0xf7c(%rip),%r14
lea    0xf6e(%rip),%rcx
mov    %r12,%rdi
mov    $0x477,%esi
mov    %r14,%rdx
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%r13
lea    0xf51(%rip),%r15
mov    %r12,%rdi
mov    $0x479,%esi
mov    %r14,%rdx
mov    %r15,%rcx
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rbp
add    %r13d,%ebp
lea    0xf2e(%rip),%rdx
mov    %r12,%rdi
mov    $0x47b,%esi
mov    %r15,%rcx
mov    $0xffffffd6,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0xf10(%rip),%rdx
mov    %r12,%rdi
mov    $0x47d,%esi
mov    %r15,%rcx
mov    $0x7fffffff,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0xef9(%rip),%rcx
mov    %r12,%rdi
mov    $0x47f,%esi
mov    %r14,%rdx
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0xeef(%rip),%rdx
lea    0xed3(%rip),%rcx
mov    %r12,%rdi
mov    $0x481,%esi
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0xed1(%rip),%rdx
lea    0xeb0(%rip),%rcx
mov    %r12,%rdi
mov    $0x483,%esi
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0xe94(%rip),%rdx
lea    0xe94(%rip),%rcx
mov    %r12,%rdi
mov    $0x485,%esi
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0xe7b(%rip),%rdx
lea    0xe79(%rip),%rcx
mov    %r12,%rdi
mov    $0x487,%esi
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0xe5e(%rip),%rdx
lea    0xe5b(%rip),%rcx
mov    %r12,%rdi
mov    $0x489,%esi
mov    $0x2a,%r8d
call   1030 <VerifyScanningOneInteger@plt>
add    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
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 = [3 x i8] c"42\00"
@.str.2 = [3 x i8] c"%i\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [4 x i8] c"-42\00"
@.str.5 = [11 x i8] c"2147483647\00"
@.str.6 = [3 x i8] c"%u\00"
@.str.7 = [3 x i8] c"2a\00"
@.str.8 = [3 x i8] c"%x\00"
@.str.9 = [3 x i8] c"52\00"
@.str.10 = [3 x i8] c"%o\00"
@.str.11 = [7 x i8] c"101010\00"
@.str.12 = [6 x i8] c"%..2i\00"
@.str.13 = [5 x i8] c"0x2a\00"
@.str.14 = [4 x i8] c"%#x\00"
@.str.15 = [4 x i8] c"052\00"
@.str.16 = [4 x i8] c"%#o\00"
define i32 @VerifyScanningIntegers() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1143, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 42)
%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 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1145, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 42)
%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 = call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1147, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 -42)
%13 = load i32, i32* %1
%14 = sext i32 %13 to i64
%15 = add nsw i64 %14, %12
%16 = trunc i64 %15 to i32
store i32 %16, i32* %1
%17 = call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1149, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 2147483647)
%18 = load i32, i32* %1
%19 = sext i32 %18 to i64
%20 = add nsw i64 %19, %17
%21 = trunc i64 %20 to i32
store i32 %21, i32* %1
%22 = call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1151, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 42)
%23 = load i32, i32* %1
%24 = sext i32 %23 to i64
%25 = add nsw i64 %24, %22
%26 = trunc i64 %25 to i32
store i32 %26, i32* %1
%27 = call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1153, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 42)
%28 = load i32, i32* %1
%29 = sext i32 %28 to i64
%30 = add nsw i64 %29, %27
%31 = trunc i64 %30 to i32
store i32 %31, i32* %1
%32 = call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1155, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 42)
%33 = load i32, i32* %1
%34 = sext i32 %33 to i64
%35 = add nsw i64 %34, %32
%36 = trunc i64 %35 to i32
store i32 %36, i32* %1
%37 = call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1157, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 42)
%38 = load i32, i32* %1
%39 = sext i32 %38 to i64
%40 = add nsw i64 %39, %37
%41 = trunc i64 %40 to i32
store i32 %41, i32* %1
%42 = call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1159, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i32 42)
%43 = load i32, i32* %1
%44 = sext i32 %43 to i64
%45 = add nsw i64 %44, %42
%46 = trunc i64 %45 to i32
store i32 %46, i32* %1
%47 = call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1161, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 42)
%48 = load i32, i32* %1
%49 = sext i32 %48 to i64
%50 = add nsw i64 %49, %47
%51 = trunc i64 %50 to i32
store i32 %51, i32* %1
%52 = load i32, i32* %1
ret i32 %52
}

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 = [3 x i8] c"42\00"
@.str.2 = [3 x i8] c"%i\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [4 x i8] c"-42\00"
@.str.5 = [11 x i8] c"2147483647\00"
@.str.6 = [3 x i8] c"%u\00"
@.str.7 = [3 x i8] c"2a\00"
@.str.8 = [3 x i8] c"%x\00"
@.str.9 = [3 x i8] c"52\00"
@.str.10 = [3 x i8] c"%o\00"
@.str.11 = [7 x i8] c"101010\00"
@.str.12 = [6 x i8] c"%..2i\00"
@.str.13 = [5 x i8] c"0x2a\00"
@.str.14 = [4 x i8] c"%#x\00"
@.str.15 = [4 x i8] c"052\00"
@.str.16 = [4 x i8] c"%#o\00"
define i32 @VerifyScanningIntegers() {
%1 = tail call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1143, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 42)
%2 = tail call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1145, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 42)
%3 = add i64 %2, %1
%4 = tail call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1147, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 -42)
%5 = add i64 %3, %4
%6 = tail call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1149, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 2147483647)
%7 = add i64 %5, %6
%8 = tail call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1151, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 42)
%9 = add i64 %7, %8
%10 = tail call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1153, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 42)
%11 = add i64 %9, %10
%12 = tail call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1155, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 42)
%13 = add i64 %11, %12
%14 = tail call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1157, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 42)
%15 = add i64 %13, %14
%16 = tail call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1159, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i32 42)
%17 = add i64 %15, %16
%18 = tail call i64 @VerifyScanningOneInteger(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 1161, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 42)
%19 = add i64 %17, %18
%20 = trunc i64 %19 to i32
ret i32 %20
}