int main(void) {
  int i;
  char s[512], c;
  puts(":echo "
       "--a94e2gfwdd--");
  ;
  scanf("%c %d %s", &c, &i, s);
  if (!(c == 'G')) {
    do {
      char message[1024];
      snprintf(message, sizeof(message), "$failure @%s() (%s:%u)", __func__,
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/redcap97/cyanurus/refs/heads/"
               "master/src/test-user/stdio_scanf.c",
               29);
      puts("\n"
           "--a94e2gfwdd--");
      puts(message);
      puts("$shudown");
      while (1)
        ;
    } while (0);
    ;
  };
  if (!(i == 123)) {
    do {
      char message[1024];
      snprintf(message, sizeof(message), "$failure @%s() (%s:%u)", __func__,
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/redcap97/cyanurus/refs/heads/"
               "master/src/test-user/stdio_scanf.c",
               30);
      puts("\n"
           "--a94e2gfwdd--");
      puts(message);
      puts("$shudown");
      while (1)
        ;
    } while (0);
    ;
  };
  if (!(!strcmp(s, "null"))) {
    do {
      char message[1024];
      snprintf(message, sizeof(message), "$failure @%s() (%s:%u)", __func__,
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/redcap97/cyanurus/refs/heads/"
               "master/src/test-user/stdio_scanf.c",
               31);
      puts("\n"
           "--a94e2gfwdd--");
      puts(message);
      puts("$shudown");
      while (1)
        ;
    } while (0);
    ;
  };
  puts("\n"
       "--a94e2gfwdd--");
  puts("$check");
  puts("$shudown");
  while (1)
    ;
  ;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    -0x210(%rbp),%rcx
lea    0xea7(%rip),%rdi
lea    -0x211(%rbp),%rsi
lea    -0x8(%rbp),%rdx
mov    $0x0,%al
call   1060 <scanf@plt>
movsbl -0x211(%rbp),%eax
cmp    $0x47,%eax
je     11f2 <main+0xb2>
jmp    1195 <main+0x55>
lea    -0x620(%rbp),%rdi
mov    $0x400,%esi
lea    0xe76(%rip),%rdx
lea    0xe86(%rip),%rcx
lea    0xe84(%rip),%r8
mov    $0x1d,%r9d
mov    $0x0,%al
call   1040 <snprintf@plt>
lea    0xf0a(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    -0x620(%rbp),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xefe(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
jmp    11ed <main+0xad>
cmpl   $0x7b,-0x8(%rbp)
je     125e <main+0x11e>
jmp    1201 <main+0xc1>
lea    -0xa20(%rbp),%rdi
mov    $0x400,%esi
lea    0xe0a(%rip),%rdx
lea    0xe1a(%rip),%rcx
lea    0xe18(%rip),%r8
mov    $0x1e,%r9d
mov    $0x0,%al
call   1040 <snprintf@plt>
lea    0xe9e(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    -0xa20(%rbp),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
jmp    1259 <main+0x119>
lea    -0x210(%rbp),%rdi
lea    0xe81(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
je     12dc <main+0x19c>
jmp    127f <main+0x13f>
lea    -0xe20(%rbp),%rdi
mov    $0x400,%esi
lea    0xd8c(%rip),%rdx
lea    0xd9c(%rip),%rcx
lea    0xd9a(%rip),%r8
mov    $0x1f,%r9d
mov    $0x0,%al
call   1040 <snprintf@plt>
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    -0xe20(%rbp),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
jmp    12d7 <main+0x197>
lea    0xdf1(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
jmp    1306 <main+0x1c6>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x610,%rsp
lea    0xec1(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xec8(%rip),%rdi
lea    0xb(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x10(%rsp),%rcx
xor    %eax,%eax
call   1050 <scanf@plt>
cmpb   $0x47,0xb(%rsp)
jne    11f2 <main+0xc2>
cmpl   $0x7b,0xc(%rsp)
jne    1252 <main+0x122>
mov    $0x6c6c756e,%eax
xor    0x10(%rsp),%eax
movzbl 0x14(%rsp),%ecx
or     %eax,%ecx
je     12b2 <main+0x182>
lea    0xe88(%rip),%rdx
lea    0xe98(%rip),%rcx
lea    0xe96(%rip),%r8
lea    0x210(%rsp),%rbx
mov    $0x400,%esi
mov    %rbx,%rdi
mov    $0x1f,%r9d
xor    %eax,%eax
call   1040 <snprintf@plt>
lea    0xf0c(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf04(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
nopw   0x0(%rax,%rax,1)
jmp    11f0 <main+0xc0>
lea    0xe25(%rip),%rdx
lea    0xe35(%rip),%rcx
lea    0xe33(%rip),%r8
lea    0x210(%rsp),%rbx
mov    $0x400,%esi
mov    %rbx,%rdi
mov    $0x1d,%r9d
xor    %eax,%eax
call   1040 <snprintf@plt>
lea    0xea9(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xea1(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
nopw   0x0(%rax,%rax,1)
jmp    1250 <main+0x120>
lea    0xdc5(%rip),%rdx
lea    0xdd5(%rip),%rcx
lea    0xdd3(%rip),%r8
lea    0x210(%rsp),%rbx
mov    $0x400,%esi
mov    %rbx,%rdi
mov    $0x1e,%r9d
xor    %eax,%eax
call   1040 <snprintf@plt>
lea    0xe49(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xe41(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
nopw   0x0(%rax,%rax,1)
jmp    12b0 <main+0x180>
lea    0xe1b(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xe2b(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xe0f(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
nopl   0x0(%rax)
jmp    12e0 <main+0x1b0>

LLVM IR (-O0):
@.str = [21 x i8] c":echo --a94e2gfwdd--\00"
@.str.1 = [9 x i8] c"%c %d %s\00"
@.str.2 = [23 x i8] c"$failure @%s() (%s:%u)\00"
@__func__.main = [5 x i8] c"main\00"
@.str.3 = [154 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/redcap97/cyanurus/refs/heads/master/src/test-user/stdio_scanf.c\00"
@.str.4 = [16 x i8] c"\0A--a94e2gfwdd--\00"
@.str.5 = [9 x i8] c"$shudown\00"
@.str.6 = [5 x i8] c"null\00"
@.str.7 = [7 x i8] c"$check\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [512 x i8]
%4 = alloca i8
%5 = alloca [1024 x i8]
%6 = alloca [1024 x i8]
%7 = alloca [1024 x i8]
store i32 0, i32* %1
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%9 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %4, i32* %2, i8* %9)
%11 = load i8, i8* %4
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 71
br i1 %13, label %24, label %14
14: ; preds = %0
br label %15
15: ; preds = %14
%16 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%17 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %16, i64 1024, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.3, i64 0, i64 0), i32 29)
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%19 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%20 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* %19)
%21 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %22
22: ; preds = %15, %22
br label %22
23: ; No predecessors!
br label %24
24: ; preds = %23, %0
%25 = load i32, i32* %2
%26 = icmp eq i32 %25, 123
br i1 %26, label %37, label %27
27: ; preds = %24
br label %28
28: ; preds = %27
%29 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%30 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %29, i64 1024, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.3, i64 0, i64 0), i32 30)
%31 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%32 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%33 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* %32)
%34 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %35
35: ; preds = %28, %35
br label %35
36: ; No predecessors!
br label %37
37: ; preds = %36, %24
%38 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%39 = call i32 @strcmp(i8* %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %51
41: ; preds = %37
br label %42
42: ; preds = %41
%43 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%44 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %43, i64 1024, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.3, i64 0, i64 0), i32 31)
%45 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%46 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%47 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* %46)
%48 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %49
49: ; preds = %42, %49
br label %49
50: ; No predecessors!
br label %51
51: ; preds = %50, %37
%52 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%53 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%54 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %55
55: ; preds = %51, %55
br label %55
}

LLVM IR (-O2):
@.str = [21 x i8] c":echo --a94e2gfwdd--\00"
@.str.1 = [9 x i8] c"%c %d %s\00"
@.str.2 = [23 x i8] c"$failure @%s() (%s:%u)\00"
@__func__.main = [5 x i8] c"main\00"
@.str.3 = [154 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/redcap97/cyanurus/refs/heads/master/src/test-user/stdio_scanf.c\00"
@.str.4 = [16 x i8] c"\0A--a94e2gfwdd--\00"
@.str.5 = [9 x i8] c"$shudown\00"
@.str.6 = [5 x i8] c"null\00"
@.str.7 = [7 x i8] c"$check\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [512 x i8]
%3 = alloca i8
%4 = alloca [1024 x i8]
%5 = alloca [1024 x i8]
%6 = alloca [1024 x i8]
%7 = bitcast i32* %1 to i8*
%8 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%9 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %3, i32* %1, i8* %8)
%11 = load i8, i8* %3
%12 = icmp eq i8 %11, 71
br i1 %12, label %20, label %13
13: ; preds = %0
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%15 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %14, i64 1024, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.3, i64 0, i64 0), i32 29)
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%17 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* %14)
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %19
19: ; preds = %19, %13
br label %19
20: ; preds = %0
%21 = load i32, i32* %1
%22 = icmp eq i32 %21, 123
br i1 %22, label %30, label %23
23: ; preds = %20
%24 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%25 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %24, i64 1024, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.3, i64 0, i64 0), i32 30)
%26 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%27 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* %24)
%28 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %29
29: ; preds = %29, %23
br label %29
30: ; preds = %20
%31 = call i32 @bcmp(i8* dereferenceable(5) %8, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i64 5)
%32 = icmp eq i32 %31, 0
br i1 %32, label %40, label %33
33: ; preds = %30
%34 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%35 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %34, i64 1024, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.3, i64 0, i64 0), i32 31)
%36 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%37 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* %34)
%38 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %39
39: ; preds = %39, %33
br label %39
40: ; preds = %30
%41 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%42 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%43 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %44
44: ; preds = %44, %40
br label %44
}