#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*/ fexpect(char *, int, int, int);
void test_do() {
  int acc = 0;
  int i = 0;
  do {
    acc = acc + i++;
  } while (i <= 100);
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/control.c",
          110, 5050, acc);
  ;
  i = 0;
  do {
    i = 37;
  } while (0);
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/control.c",
          114, 37, i);
  ;
  acc = 0;
  i = 0;
  do {
    if (i++ < 5)
      continue;
    acc += i;
    if (i == 9)
      break;
  } while (i < 10);
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/control.c",
          123, 6 + 7 + 8 + 9, acc);
  ;
  i = 0;
  do {
  } while (i++ < 100);
  i = 0;
  do
    ;
  while (i++ < 100);
  float v = 1;
  i = 70;
  do
    i++;
  while (v -= 0.5);
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/control.c",
          134, 72, i);
  ;
}


x86 assembly (clang, -O0):
<test_do>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x8(%rbp)
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
cmpl   $0x64,-0x8(%rbp)
jle    1126 <test_do+0x16>
mov    -0x4(%rbp),%ecx
lea    0xec3(%rip),%rdi
mov    $0x6e,%esi
mov    $0x13ba,%edx
call   1030 <fexpect@plt>
movl   $0x0,-0x8(%rbp)
movl   $0x25,-0x8(%rbp)
mov    -0x8(%rbp),%ecx
lea    0xe9c(%rip),%rdi
mov    $0x72,%esi
mov    $0x25,%edx
call   1030 <fexpect@plt>
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x5,%eax
jge    11aa <test_do+0x9a>
jmp    11c7 <test_do+0xb7>
mov    -0x8(%rbp),%eax
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
cmpl   $0x9,-0x8(%rbp)
jne    11c2 <test_do+0xb2>
jmp    11d1 <test_do+0xc1>
jmp    11c7 <test_do+0xb7>
cmpl   $0xa,-0x8(%rbp)
jl     1191 <test_do+0x81>
mov    -0x4(%rbp),%ecx
lea    0xe35(%rip),%rdi
mov    $0x7b,%esi
mov    $0x1e,%edx
call   1030 <fexpect@plt>
movl   $0x0,-0x8(%rbp)
jmp    11f6 <test_do+0xe6>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x64,%eax
jl     11f1 <test_do+0xe1>
movl   $0x0,-0x8(%rbp)
jmp    1216 <test_do+0x106>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x64,%eax
jl     1211 <test_do+0x101>
movss  0xdce(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movl   $0x46,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdb0(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    123e <test_do+0x12e>
jp     123e <test_do+0x12e>
mov    -0x8(%rbp),%ecx
lea    0xd8f(%rip),%rdi
mov    $0x86,%esi
mov    $0x48,%edx
call   1030 <fexpect@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_do>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x6e,%esi
mov    $0x13ba,%edx
mov    $0x13ba,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x72,%esi
mov    $0x25,%edx
mov    $0x25,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x7b,%esi
mov    $0x1e,%edx
mov    $0x1e,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x86,%esi
mov    $0x48,%edx
mov    $0x48,%ecx
pop    %rbx
jmp    1030 <fexpect@plt>

LLVM IR (-O0):
@.str = [130 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/control.c\00"
define void @test_do() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
store i32 0, i32* %1
store i32 0, i32* %2
br label %4
4: ; preds = %9, %0
%5 = load i32, i32* %1
%6 = load i32, i32* %2
%7 = add nsw i32 %6, 1
store i32 %7, i32* %2
%8 = add nsw i32 %5, %6
store i32 %8, i32* %1
br label %9
9: ; preds = %4
%10 = load i32, i32* %2
%11 = icmp sle i32 %10, 100
br i1 %11, label %4, label %12
12: ; preds = %9
%13 = load i32, i32* %1
%14 = call i32 @fexpect(i8* getelementptr inbounds ([130 x i8], [130 x i8]* @.str, i64 0, i64 0), i32 110, i32 5050, i32 %13)
store i32 0, i32* %2
br label %15
15: ; preds = %12
store i32 37, i32* %2
br label %16
16: ; preds = %15
%17 = load i32, i32* %2
%18 = call i32 @fexpect(i8* getelementptr inbounds ([130 x i8], [130 x i8]* @.str, i64 0, i64 0), i32 114, i32 37, i32 %17)
store i32 0, i32* %1
store i32 0, i32* %2
br label %19
19: ; preds = %32, %16
%20 = load i32, i32* %2
%21 = add nsw i32 %20, 1
store i32 %21, i32* %2
%22 = icmp slt i32 %20, 5
br i1 %22, label %23, label %24
23: ; preds = %19
br label %32
24: ; preds = %19
%25 = load i32, i32* %2
%26 = load i32, i32* %1
%27 = add nsw i32 %26, %25
store i32 %27, i32* %1
%28 = load i32, i32* %2
%29 = icmp eq i32 %28, 9
br i1 %29, label %30, label %31
30: ; preds = %24
br label %35
31: ; preds = %24
br label %32
32: ; preds = %31, %23
%33 = load i32, i32* %2
%34 = icmp slt i32 %33, 10
br i1 %34, label %19, label %35
35: ; preds = %32, %30
%36 = load i32, i32* %1
%37 = call i32 @fexpect(i8* getelementptr inbounds ([130 x i8], [130 x i8]* @.str, i64 0, i64 0), i32 123, i32 30, i32 %36)
store i32 0, i32* %2
br label %38
38: ; preds = %39, %35
br label %39
39: ; preds = %38
%40 = load i32, i32* %2
%41 = add nsw i32 %40, 1
store i32 %41, i32* %2
%42 = icmp slt i32 %40, 100
br i1 %42, label %38, label %43
43: ; preds = %39
store i32 0, i32* %2
br label %44
44: ; preds = %45, %43
br label %45
45: ; preds = %44
%46 = load i32, i32* %2
%47 = add nsw i32 %46, 1
store i32 %47, i32* %2
%48 = icmp slt i32 %46, 100
br i1 %48, label %44, label %49
49: ; preds = %45
store float 1.000000e+00, float* %3
store i32 70, i32* %2
br label %50
50: ; preds = %53, %49
%51 = load i32, i32* %2
%52 = add nsw i32 %51, 1
store i32 %52, i32* %2
br label %53
53: ; preds = %50
%54 = load float, float* %3
%55 = fpext float %54 to double
%56 = fsub double %55, 5.000000e-01
%57 = fptrunc double %56 to float
store float %57, float* %3
%58 = fcmp une float %57, 0.000000e+00
br i1 %58, label %50, label %59
59: ; preds = %53
%60 = load i32, i32* %2
%61 = call i32 @fexpect(i8* getelementptr inbounds ([130 x i8], [130 x i8]* @.str, i64 0, i64 0), i32 134, i32 72, i32 %60)
ret void
}

LLVM IR (-O2):
@.str = [130 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/control.c\00"
define void @test_do() {
%1 = tail call i32 @fexpect(i8* getelementptr inbounds ([130 x i8], [130 x i8]* @.str, i64 0, i64 0), i32 110, i32 5050, i32 5050)
%2 = tail call i32 @fexpect(i8* getelementptr inbounds ([130 x i8], [130 x i8]* @.str, i64 0, i64 0), i32 114, i32 37, i32 37)
%3 = tail call i32 @fexpect(i8* getelementptr inbounds ([130 x i8], [130 x i8]* @.str, i64 0, i64 0), i32 123, i32 30, i32 30)
%4 = tail call i32 @fexpect(i8* getelementptr inbounds ([130 x i8], [130 x i8]* @.str, i64 0, i64 0), i32 134, i32 72, i32 72)
ret void
}