#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 /*<<< orphan*/ _assert(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ puts(char *);
void test_if(void) {
  int i;
  puts("--- testing if\n");
  i = 0;
  if (i == 0) {
    i = 1;
  } else {
    _assert((0),
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/BSVC/bsvc/refs/heads/master/samples/"
            "m68360/gdb7/test7.c",
            287);
  }
  if (i == 1) {
    i = 2;
  } else {
    _assert((0),
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/BSVC/bsvc/refs/heads/master/samples/"
            "m68360/gdb7/test7.c",
            295);
  }
  if ((i > 1) && (i < 3)) {
    i = 3;
  } else {
    _assert((0),
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/BSVC/bsvc/refs/heads/master/samples/"
            "m68360/gdb7/test7.c",
            303);
  }
  if ((i < 4) || (i == 99)) {
    i = 4;
  } else {
    _assert((0),
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/BSVC/bsvc/refs/heads/master/samples/"
            "m68360/gdb7/test7.c",
            312);
  }
  if ((i < 0) && (i == 4)) {
    _assert((0),
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/BSVC/bsvc/refs/heads/master/samples/"
            "m68360/gdb7/test7.c",
            317);
  } else {
    i = 5;
  }
}


x86 assembly (clang, -O0):
<test_if>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1151 <test_if+0x31>
movl   $0x1,-0x4(%rbp)
jmp    1164 <test_if+0x44>
xor    %edi,%edi
lea    0xeb6(%rip),%rsi
mov    $0x11f,%edx
call   1040 <_assert@plt>
cmpl   $0x1,-0x4(%rbp)
jne    117a <test_if+0x5a>
movl   $0x2,-0x4(%rbp)
jmp    118d <test_if+0x6d>
xor    %edi,%edi
lea    0xe8d(%rip),%rsi
mov    $0x127,%edx
call   1040 <_assert@plt>
cmpl   $0x1,-0x4(%rbp)
jle    11ad <test_if+0x8d>
cmpl   $0x3,-0x4(%rbp)
jge    11ad <test_if+0x8d>
movl   $0x3,-0x4(%rbp)
jmp    11c0 <test_if+0xa0>
xor    %edi,%edi
lea    0xe5a(%rip),%rsi
mov    $0x12f,%edx
call   1040 <_assert@plt>
cmpl   $0x4,-0x4(%rbp)
jl     11d4 <test_if+0xb4>
cmpl   $0x63,-0x4(%rbp)
jne    11e0 <test_if+0xc0>
movl   $0x4,-0x4(%rbp)
jmp    11f3 <test_if+0xd3>
xor    %edi,%edi
lea    0xe27(%rip),%rsi
mov    $0x138,%edx
call   1040 <_assert@plt>
cmpl   $0x0,-0x4(%rbp)
jge    121f <test_if+0xff>
cmpl   $0x4,-0x4(%rbp)
jne    121f <test_if+0xff>
xor    %edi,%edi
lea    0xe00(%rip),%rsi
mov    $0x13d,%edx
call   1040 <_assert@plt>
jmp    1226 <test_if+0x106>
movl   $0x5,-0x4(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_if>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"--- testing if\0A\00"
@.str.1 = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BSVC/bsvc/refs/heads/master/samples/m68360/gdb7/test7.c\00"
define void @test_if() {
%1 = alloca i32
%2 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
%3 = load i32, i32* %1
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %0
store i32 1, i32* %1
br label %8
6: ; preds = %0
%7 = call i32 @_assert(i32 0, i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.1, i64 0, i64 0), i32 287)
br label %8
8: ; preds = %6, %5
%9 = load i32, i32* %1
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %12
11: ; preds = %8
store i32 2, i32* %1
br label %14
12: ; preds = %8
%13 = call i32 @_assert(i32 0, i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.1, i64 0, i64 0), i32 295)
br label %14
14: ; preds = %12, %11
%15 = load i32, i32* %1
%16 = icmp sgt i32 %15, 1
br i1 %16, label %17, label %21
17: ; preds = %14
%18 = load i32, i32* %1
%19 = icmp slt i32 %18, 3
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 3, i32* %1
br label %23
21: ; preds = %17, %14
%22 = call i32 @_assert(i32 0, i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.1, i64 0, i64 0), i32 303)
br label %23
23: ; preds = %21, %20
%24 = load i32, i32* %1
%25 = icmp slt i32 %24, 4
br i1 %25, label %29, label %26
26: ; preds = %23
%27 = load i32, i32* %1
%28 = icmp eq i32 %27, 99
br i1 %28, label %29, label %30
29: ; preds = %26, %23
store i32 4, i32* %1
br label %32
30: ; preds = %26
%31 = call i32 @_assert(i32 0, i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.1, i64 0, i64 0), i32 312)
br label %32
32: ; preds = %30, %29
%33 = load i32, i32* %1
%34 = icmp slt i32 %33, 0
br i1 %34, label %35, label %40
35: ; preds = %32
%36 = load i32, i32* %1
%37 = icmp eq i32 %36, 4
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 @_assert(i32 0, i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.1, i64 0, i64 0), i32 317)
br label %41
40: ; preds = %35, %32
store i32 5, i32* %1
br label %41
41: ; preds = %40, %38
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"--- testing if\0A\00"
define void @test_if() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
ret void
}