#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 */
int EXIT_SUCCESS;
scalar_t__ expect(char *, char *, int /*<<< orphan*/, char *,
                  int /*<<< orphan*/);
int /*<<< orphan*/ test_create_tempdir();
int /*<<< orphan*/ test_create_tempdir_and_delete();
int main(void) {
  do {
    if (expect("0",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/"
               "heads/master/htrace-c/src/test/temp_dir-unit.c"
               " at line "
               "80",
               0, "%d", test_create_tempdir()))
      return 1;
  } while (0);
  ;
  ;
  do {
    if (expect("0",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/"
               "heads/master/htrace-c/src/test/temp_dir-unit.c"
               " at line "
               "81",
               0, "%d", test_create_tempdir()))
      return 1;
  } while (0);
  ;
  ;
  do {
    if (expect("0",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/"
               "heads/master/htrace-c/src/test/temp_dir-unit.c"
               " at line "
               "82",
               0, "%d", test_create_tempdir()))
      return 1;
  } while (0);
  ;
  ;
  do {
    if (expect("0",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/"
               "heads/master/htrace-c/src/test/temp_dir-unit.c"
               " at line "
               "83",
               0, "%d", test_create_tempdir_and_delete()))
      return 1;
  } while (0);
  ;
  ;
  do {
    if (expect("0",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/"
               "heads/master/htrace-c/src/test/temp_dir-unit.c"
               " at line "
               "84",
               0, "%d", test_create_tempdir_and_delete()))
      return 1;
  } while (0);
  ;
  ;
  do {
    if (expect("0",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/"
               "heads/master/htrace-c/src/test/temp_dir-unit.c"
               " at line "
               "85",
               0, "%d", test_create_tempdir_and_delete()))
      return 1;
  } while (0);
  ;
  ;
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <test_create_tempdir@plt>
mov    %eax,%r8d
lea    0xf5f(%rip),%rdi
lea    0xea9(%rip),%rsi
xor    %edx,%edx
lea    0xf51(%rip),%rcx
call   1030 <expect@plt>
cmp    $0x0,%rax
je     117b <main+0x4b>
movl   $0x1,-0x4(%rbp)
jmp    12ea <main+0x1ba>
jmp    1180 <main+0x50>
jmp    1185 <main+0x55>
mov    $0x0,%al
call   1040 <test_create_tempdir@plt>
mov    %eax,%r8d
lea    0xf19(%rip),%rdi
lea    0xf17(%rip),%rsi
xor    %edx,%edx
lea    0xf0b(%rip),%rcx
call   1030 <expect@plt>
cmp    $0x0,%rax
je     11c1 <main+0x91>
movl   $0x1,-0x4(%rbp)
jmp    12ea <main+0x1ba>
jmp    11c6 <main+0x96>
jmp    11cb <main+0x9b>
mov    $0x0,%al
call   1040 <test_create_tempdir@plt>
mov    %eax,%r8d
lea    0xed3(%rip),%rdi
lea    0xf82(%rip),%rsi
xor    %edx,%edx
lea    0xec5(%rip),%rcx
call   1030 <expect@plt>
cmp    $0x0,%rax
je     1207 <main+0xd7>
movl   $0x1,-0x4(%rbp)
jmp    12ea <main+0x1ba>
jmp    120c <main+0xdc>
jmp    1211 <main+0xe1>
mov    $0x0,%al
call   1050 <test_create_tempdir_and_delete@plt>
mov    %eax,%r8d
lea    0xe8d(%rip),%rdi
lea    0xfed(%rip),%rsi
xor    %edx,%edx
lea    0xe7f(%rip),%rcx
call   1030 <expect@plt>
cmp    $0x0,%rax
je     124d <main+0x11d>
movl   $0x1,-0x4(%rbp)
jmp    12ea <main+0x1ba>
jmp    1252 <main+0x122>
jmp    1257 <main+0x127>
mov    $0x0,%al
call   1050 <test_create_tempdir_and_delete@plt>
mov    %eax,%r8d
lea    0xe47(%rip),%rdi
lea    0x1058(%rip),%rsi
xor    %edx,%edx
lea    0xe39(%rip),%rcx
call   1030 <expect@plt>
cmp    $0x0,%rax
je     1293 <main+0x163>
movl   $0x1,-0x4(%rbp)
jmp    12ea <main+0x1ba>
jmp    1298 <main+0x168>
jmp    129d <main+0x16d>
mov    $0x0,%al
call   1050 <test_create_tempdir_and_delete@plt>
mov    %eax,%r8d
lea    0xe01(%rip),%rdi
lea    0x10c3(%rip),%rsi
xor    %edx,%edx
lea    0xdf3(%rip),%rcx
call   1030 <expect@plt>
cmp    $0x0,%rax
je     12d9 <main+0x1a9>
movl   $0x1,-0x4(%rbp)
jmp    12ea <main+0x1ba>
jmp    12de <main+0x1ae>
mov    0x2cfb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1040 <test_create_tempdir@plt>
lea    0xf70(%rip),%rdi
lea    0xeba(%rip),%rsi
lea    0xf64(%rip),%rcx
xor    %edx,%edx
mov    %eax,%r8d
call   1030 <expect@plt>
mov    $0x1,%ebx
test   %rax,%rax
jne    1252 <main+0x122>
xor    %eax,%eax
call   1040 <test_create_tempdir@plt>
lea    0xf3c(%rip),%rdi
lea    0xf3a(%rip),%rsi
lea    0xf30(%rip),%rcx
xor    %edx,%edx
mov    %eax,%r8d
call   1030 <expect@plt>
test   %rax,%rax
jne    1252 <main+0x122>
xor    %eax,%eax
call   1040 <test_create_tempdir@plt>
lea    0xf0d(%rip),%rdi
lea    0xfbc(%rip),%rsi
lea    0xf01(%rip),%rcx
xor    %edx,%edx
mov    %eax,%r8d
call   1030 <expect@plt>
test   %rax,%rax
jne    1252 <main+0x122>
xor    %eax,%eax
call   1050 <test_create_tempdir_and_delete@plt>
lea    0xede(%rip),%rdi
lea    0x103e(%rip),%rsi
lea    0xed2(%rip),%rcx
xor    %edx,%edx
mov    %eax,%r8d
call   1030 <expect@plt>
test   %rax,%rax
jne    1252 <main+0x122>
xor    %eax,%eax
call   1050 <test_create_tempdir_and_delete@plt>
lea    0xeb3(%rip),%rdi
lea    0x10c4(%rip),%rsi
lea    0xea7(%rip),%rcx
xor    %edx,%edx
mov    %eax,%r8d
call   1030 <expect@plt>
test   %rax,%rax
jne    1252 <main+0x122>
xor    %eax,%eax
call   1050 <test_create_tempdir_and_delete@plt>
lea    0xe88(%rip),%rdi
lea    0x114a(%rip),%rsi
lea    0xe7c(%rip),%rcx
xor    %edx,%edx
mov    %eax,%r8d
call   1030 <expect@plt>
mov    $0x1,%ebx
test   %rax,%rax
jne    1252 <main+0x122>
mov    0x2d90(%rip),%rax
mov    (%rax),%ebx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"0\00"
@.str.1 = [177 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/temp_dir-unit.c at line 80\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [177 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/temp_dir-unit.c at line 81\00"
@.str.4 = [177 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/temp_dir-unit.c at line 82\00"
@.str.5 = [177 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/temp_dir-unit.c at line 83\00"
@.str.6 = [177 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/temp_dir-unit.c at line 84\00"
@.str.7 = [177 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/temp_dir-unit.c at line 85\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %0
%3 = call i32 (...) @test_create_tempdir()
%4 = call i64 @expect(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.1, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %2
store i32 1, i32* %1
br label %45
7: ; preds = %2
br label %8
8: ; preds = %7
br label %9
9: ; preds = %8
%10 = call i32 (...) @test_create_tempdir()
%11 = call i64 @expect(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.3, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %9
store i32 1, i32* %1
br label %45
14: ; preds = %9
br label %15
15: ; preds = %14
br label %16
16: ; preds = %15
%17 = call i32 (...) @test_create_tempdir()
%18 = call i64 @expect(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.4, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %16
store i32 1, i32* %1
br label %45
21: ; preds = %16
br label %22
22: ; preds = %21
br label %23
23: ; preds = %22
%24 = call i32 (...) @test_create_tempdir_and_delete()
%25 = call i64 @expect(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.5, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 1, i32* %1
br label %45
28: ; preds = %23
br label %29
29: ; preds = %28
br label %30
30: ; preds = %29
%31 = call i32 (...) @test_create_tempdir_and_delete()
%32 = call i64 @expect(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.6, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %30
store i32 1, i32* %1
br label %45
35: ; preds = %30
br label %36
36: ; preds = %35
br label %37
37: ; preds = %36
%38 = call i32 (...) @test_create_tempdir_and_delete()
%39 = call i64 @expect(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.7, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 1, i32* %1
br label %45
42: ; preds = %37
br label %43
43: ; preds = %42
%44 = load i32, i32* @EXIT_SUCCESS
store i32 %44, i32* %1
br label %45
45: ; preds = %43, %41, %34, %27, %20, %13, %6
%46 = load i32, i32* %1
ret i32 %46
}

LLVM IR (-O2):
@.str = [2 x i8] c"0\00"
@.str.1 = [177 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/temp_dir-unit.c at line 80\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [177 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/temp_dir-unit.c at line 81\00"
@.str.4 = [177 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/temp_dir-unit.c at line 82\00"
@.str.5 = [177 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/temp_dir-unit.c at line 83\00"
@.str.6 = [177 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/temp_dir-unit.c at line 84\00"
@.str.7 = [177 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-htrace/refs/heads/master/htrace-c/src/test/temp_dir-unit.c at line 85\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i32 (...) @test_create_tempdir()
%2 = tail call i64 @expect(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.1, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %1)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %26
4: ; preds = %0
%5 = tail call i32 (...) @test_create_tempdir()
%6 = tail call i64 @expect(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.3, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %26
8: ; preds = %4
%9 = tail call i32 (...) @test_create_tempdir()
%10 = tail call i64 @expect(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.4, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %26
12: ; preds = %8
%13 = tail call i32 (...) @test_create_tempdir_and_delete()
%14 = tail call i64 @expect(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.5, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %13)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %26
16: ; preds = %12
%17 = tail call i32 (...) @test_create_tempdir_and_delete()
%18 = tail call i64 @expect(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.6, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %17)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %16
%21 = tail call i32 (...) @test_create_tempdir_and_delete()
%22 = tail call i64 @expect(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([177 x i8], [177 x i8]* @.str.7, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %21)
%23 = icmp eq i64 %22, 0
%24 = load i32, i32* @EXIT_SUCCESS
%25 = select i1 %23, i32 %24, i32 1
br label %26
26: ; preds = %20, %16, %12, %8, %4, %0
%27 = phi i32 [ 1, %0 ], [ 1, %4 ], [ 1, %8 ], [ 1, %12 ], [ 1, %16 ], [ %25, %20 ]
ret i32 %27
}