#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 */
char *getenv(char *);
int /*<<< orphan*/ printf(char *, ...);
void adders_io(signed int llvm_cbe_in1, signed int llvm_cbe_in2,
               signed int *llvm_cbe_in_out1) {
  static unsigned long long aesl_llvm_cbe_1_count = 0;
  static unsigned long long aesl_llvm_cbe_2_count = 0;
  static unsigned long long aesl_llvm_cbe_3_count = 0;
  static unsigned long long aesl_llvm_cbe_4_count = 0;
  static unsigned long long aesl_llvm_cbe_5_count = 0;
  static unsigned long long aesl_llvm_cbe_6_count = 0;
  static unsigned long long aesl_llvm_cbe_7_count = 0;
  unsigned int llvm_cbe_tmp__1;
  static unsigned long long aesl_llvm_cbe_8_count = 0;
  unsigned int llvm_cbe_tmp__2;
  static unsigned long long aesl_llvm_cbe_9_count = 0;
  unsigned int llvm_cbe_tmp__3;
  static unsigned long long aesl_llvm_cbe_10_count = 0;
  static unsigned long long aesl_llvm_cbe_11_count = 0;
  static unsigned long long aesl_llvm_cbe_12_count = 0;
  const char *AESL_DEBUG_TRACE = getenv("DEBUG_TRACE");
  if (AESL_DEBUG_TRACE)
    printf("\n\{ BEGIN @adders_io\n");
  if (AESL_DEBUG_TRACE)
    printf("\n  %%1 = load i32* %%in_out1, align 4, !dbg !2 for 0x%I64xth hint "
           "within @adders_io  --> \n",
           ++aesl_llvm_cbe_7_count);
  llvm_cbe_tmp__1 = (unsigned int)*llvm_cbe_in_out1;
  if (AESL_DEBUG_TRACE)
    printf("\n = 0x%X\n", llvm_cbe_tmp__1);
  if (AESL_DEBUG_TRACE)
    printf("\n  %%2 = add i32 %%in2, %%in1, !dbg !2 for 0x%I64xth hint within "
           "@adders_io  --> \n",
           ++aesl_llvm_cbe_8_count);
  llvm_cbe_tmp__2 =
      (unsigned int)((unsigned int)(llvm_cbe_in2 & 4294967295ull)) +
      ((unsigned int)(llvm_cbe_in1 & 4294967295ull));
  if (AESL_DEBUG_TRACE)
    printf("\n = 0x%X\n", ((unsigned int)(llvm_cbe_tmp__2 & 4294967295ull)));
  if (AESL_DEBUG_TRACE)
    printf("\n  %%3 = add i32 %%2, %%1, !dbg !2 for 0x%I64xth hint within "
           "@adders_io  --> \n",
           ++aesl_llvm_cbe_9_count);
  llvm_cbe_tmp__3 =
      (unsigned int)((unsigned int)(llvm_cbe_tmp__2 & 4294967295ull)) +
      ((unsigned int)(llvm_cbe_tmp__1 & 4294967295ull));
  if (AESL_DEBUG_TRACE)
    printf("\n = 0x%X\n", ((unsigned int)(llvm_cbe_tmp__3 & 4294967295ull)));
  if (AESL_DEBUG_TRACE)
    printf("\n  store i32 %%3, i32* %%in_out1, align 4, !dbg !2 for 0x%I64xth "
           "hint within @adders_io  --> \n",
           ++aesl_llvm_cbe_11_count);
  *llvm_cbe_in_out1 = llvm_cbe_tmp__3;
  if (AESL_DEBUG_TRACE)
    printf("\n = 0x%X\n", llvm_cbe_tmp__3);
  if (AESL_DEBUG_TRACE)
    printf("\nEND @adders_io}\n");
  return;
}


x86 assembly (clang, -O0):
<adders_io>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
lea    0xec7(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     115b <adders_io+0x3b>
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpq   $0x0,-0x28(%rbp)
je     1186 <adders_io+0x66>
mov    0x2efb(%rip),%rsi
add    $0x1,%rsi
mov    %rsi,0x2ef0(%rip)
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     11ab <adders_io+0x8b>
mov    -0x14(%rbp),%esi
lea    0xed8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpq   $0x0,-0x28(%rbp)
je     11d6 <adders_io+0xb6>
mov    0x2eb3(%rip),%rsi
add    $0x1,%rsi
mov    %rsi,0x2ea8(%rip)
lea    0xeb7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x8(%rbp),%rax
movabs $0xffffffff,%rcx
and    %rcx,%rax
movslq -0x4(%rbp),%rcx
movabs $0xffffffff,%rdx
and    %rdx,%rcx
add    %ecx,%eax
mov    %eax,-0x18(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     1228 <adders_io+0x108>
mov    -0x18(%rbp),%eax
movabs $0xffffffff,%rcx
and    %rcx,%rax
mov    %eax,%esi
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpq   $0x0,-0x28(%rbp)
je     1253 <adders_io+0x133>
mov    0x2e3e(%rip),%rsi
add    $0x1,%rsi
mov    %rsi,0x2e33(%rip)
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%eax
movabs $0xffffffff,%rcx
and    %rcx,%rax
mov    -0x14(%rbp),%ecx
movabs $0xffffffff,%rdx
and    %rdx,%rcx
add    %ecx,%eax
mov    %eax,-0x1c(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     12a3 <adders_io+0x183>
mov    -0x1c(%rbp),%eax
movabs $0xffffffff,%rcx
and    %rcx,%rax
mov    %eax,%esi
lea    0xde0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpq   $0x0,-0x28(%rbp)
je     12ce <adders_io+0x1ae>
mov    0x2dd3(%rip),%rsi
add    $0x1,%rsi
mov    %rsi,0x2dc8(%rip)
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
cmpq   $0x0,-0x28(%rbp)
je     12f3 <adders_io+0x1d3>
mov    -0x1c(%rbp),%esi
lea    0xd90(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpq   $0x0,-0x28(%rbp)
je     130c <adders_io+0x1ec>
lea    0xe82(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<adders_io>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rdx,%r14
mov    %esi,%ebx
mov    %edi,%r12d
lea    0xeb9(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1237 <adders_io+0x107>
lea    0x1027(%rip),%rdi
call   1040 <puts@plt>
mov    0x2ed8(%rip),%rsi
add    $0x1,%rsi
mov    %rsi,0x2ecd(%rip)
lea    0xe92(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r14),%ebp
lea    0xedc(%rip),%r15
mov    %r15,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2eaa(%rip),%rsi
add    $0x1,%rsi
mov    %rsi,0x2e9f(%rip)
lea    0xec1(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    %r12d,%ebx
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2e83(%rip),%rsi
add    $0x1,%rsi
mov    %rsi,0x2e78(%rip)
lea    0xee5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    %ebp,%ebx
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2e5d(%rip),%rsi
add    $0x1,%rsi
mov    %rsi,0x2e52(%rip)
lea    0xf06(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,(%r14)
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf48(%rip),%rdi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <puts@plt>
add    %r12d,%ebx
add    %ebx,(%r14)
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@adders_io.aesl_llvm_cbe_1_count = internal global i64 0
@adders_io.aesl_llvm_cbe_2_count = internal global i64 0
@adders_io.aesl_llvm_cbe_3_count = internal global i64 0
@adders_io.aesl_llvm_cbe_4_count = internal global i64 0
@adders_io.aesl_llvm_cbe_5_count = internal global i64 0
@adders_io.aesl_llvm_cbe_6_count = internal global i64 0
@adders_io.aesl_llvm_cbe_7_count = internal global i64 0
@adders_io.aesl_llvm_cbe_8_count = internal global i64 0
@adders_io.aesl_llvm_cbe_9_count = internal global i64 0
@adders_io.aesl_llvm_cbe_10_count = internal global i64 0
@adders_io.aesl_llvm_cbe_11_count = internal global i64 0
@adders_io.aesl_llvm_cbe_12_count = internal global i64 0
@.str = [12 x i8] c"DEBUG_TRACE\00"
@.str.1 = [21 x i8] c"\0A{ BEGIN @adders_io\0A\00"
@.str.2 = [91 x i8] c"\0A %%1 = load i32* %%in_out1 for 0x%I64xth hint within @adders_io --> \0A\00"
@.str.3 = [10 x i8] c"\0A = 0x%X\0A\00"
@.str.4 = [83 x i8] c"\0A %%2 = add i32 %%in2, %%in1 for 0x%I64xth hint within @adders_io --> \0A\00"
@.str.5 = [79 x i8] c"\0A %%3 = add i32 %%2, %%1 for 0x%I64xth hint within @adders_io --> \0A\00"
@.str.6 = [95 x i8] c"\0A store i32 %%3, i32* %%in_out1 for 0x%I64xth hint within @adders_io --> \0A\00"
@.str.7 = [18 x i8] c"\0AEND @adders_io}\0A\00"
define void @adders_io(i32 %0, i32 %1, i32* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32* %2, i32** %6
%11 = call i8* @getenv(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
store i8* %11, i8** %10
%12 = load i8*, i8** %10
%13 = icmp ne i8* %12, null
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
br label %16
16: ; preds = %14, %3
%17 = load i8*, i8** %10
%18 = icmp ne i8* %17, null
br i1 %18, label %19, label %23
19: ; preds = %16
%20 = load i64, i64* @adders_io.aesl_llvm_cbe_7_count
%21 = add i64 %20, 1
store i64 %21, i64* @adders_io.aesl_llvm_cbe_7_count
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.2, i64 0, i64 0), i64 %21)
br label %23
23: ; preds = %19, %16
%24 = load i32*, i32** %6
%25 = load i32, i32* %24
store i32 %25, i32* %7
%26 = load i8*, i8** %10
%27 = icmp ne i8* %26, null
br i1 %27, label %28, label %31
28: ; preds = %23
%29 = load i32, i32* %7
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %29)
br label %31
31: ; preds = %28, %23
%32 = load i8*, i8** %10
%33 = icmp ne i8* %32, null
br i1 %33, label %34, label %38
34: ; preds = %31
%35 = load i64, i64* @adders_io.aesl_llvm_cbe_8_count
%36 = add i64 %35, 1
store i64 %36, i64* @adders_io.aesl_llvm_cbe_8_count
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.4, i64 0, i64 0), i64 %36)
br label %38
38: ; preds = %34, %31
%39 = load i32, i32* %5
%40 = sext i32 %39 to i64
%41 = and i64 %40, 4294967295
%42 = trunc i64 %41 to i32
%43 = load i32, i32* %4
%44 = sext i32 %43 to i64
%45 = and i64 %44, 4294967295
%46 = trunc i64 %45 to i32
%47 = add i32 %42, %46
store i32 %47, i32* %8
%48 = load i8*, i8** %10
%49 = icmp ne i8* %48, null
br i1 %49, label %50, label %56
50: ; preds = %38
%51 = load i32, i32* %8
%52 = zext i32 %51 to i64
%53 = and i64 %52, 4294967295
%54 = trunc i64 %53 to i32
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %54)
br label %56
56: ; preds = %50, %38
%57 = load i8*, i8** %10
%58 = icmp ne i8* %57, null
br i1 %58, label %59, label %63
59: ; preds = %56
%60 = load i64, i64* @adders_io.aesl_llvm_cbe_9_count
%61 = add i64 %60, 1
store i64 %61, i64* @adders_io.aesl_llvm_cbe_9_count
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.5, i64 0, i64 0), i64 %61)
br label %63
63: ; preds = %59, %56
%64 = load i32, i32* %8
%65 = zext i32 %64 to i64
%66 = and i64 %65, 4294967295
%67 = trunc i64 %66 to i32
%68 = load i32, i32* %7
%69 = zext i32 %68 to i64
%70 = and i64 %69, 4294967295
%71 = trunc i64 %70 to i32
%72 = add i32 %67, %71
store i32 %72, i32* %9
%73 = load i8*, i8** %10
%74 = icmp ne i8* %73, null
br i1 %74, label %75, label %81
75: ; preds = %63
%76 = load i32, i32* %9
%77 = zext i32 %76 to i64
%78 = and i64 %77, 4294967295
%79 = trunc i64 %78 to i32
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %79)
br label %81
81: ; preds = %75, %63
%82 = load i8*, i8** %10
%83 = icmp ne i8* %82, null
br i1 %83, label %84, label %88
84: ; preds = %81
%85 = load i64, i64* @adders_io.aesl_llvm_cbe_11_count
%86 = add i64 %85, 1
store i64 %86, i64* @adders_io.aesl_llvm_cbe_11_count
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.6, i64 0, i64 0), i64 %86)
br label %88
88: ; preds = %84, %81
%89 = load i32, i32* %9
%90 = load i32*, i32** %6
store i32 %89, i32* %90
%91 = load i8*, i8** %10
%92 = icmp ne i8* %91, null
br i1 %92, label %93, label %96
93: ; preds = %88
%94 = load i32, i32* %9
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %94)
br label %96
96: ; preds = %93, %88
%97 = load i8*, i8** %10
%98 = icmp ne i8* %97, null
br i1 %98, label %99, label %101
99: ; preds = %96
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
br label %101
101: ; preds = %99, %96
ret void
}

LLVM IR (-O2):
@adders_io.aesl_llvm_cbe_7_count = internal unnamed_addr global i64 0
@adders_io.aesl_llvm_cbe_8_count = internal unnamed_addr global i64 0
@adders_io.aesl_llvm_cbe_9_count = internal unnamed_addr global i64 0
@adders_io.aesl_llvm_cbe_11_count = internal unnamed_addr global i64 0
@.str = [12 x i8] c"DEBUG_TRACE\00"
@.str.2 = [91 x i8] c"\0A %%1 = load i32* %%in_out1 for 0x%I64xth hint within @adders_io --> \0A\00"
@.str.3 = [10 x i8] c"\0A = 0x%X\0A\00"
@.str.4 = [83 x i8] c"\0A %%2 = add i32 %%in2, %%in1 for 0x%I64xth hint within @adders_io --> \0A\00"
@.str.5 = [79 x i8] c"\0A %%3 = add i32 %%2, %%1 for 0x%I64xth hint within @adders_io --> \0A\00"
@.str.6 = [95 x i8] c"\0A store i32 %%3, i32* %%in_out1 for 0x%I64xth hint within @adders_io --> \0A\00"
@str = [17 x i8] c"\0AEND @adders_io}\00"
@str.8 = [20 x i8] c"\0A{ BEGIN @adders_io\00"
define void @adders_io(i32 %0, i32 %1, i32* nocapture %2) {
%4 = tail call i8* @getenv(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i8* %4, null
br i1 %5, label %6, label %10
6: ; preds = %3
%7 = load i32, i32* %2
%8 = add i32 %1, %0
%9 = add i32 %8, %7
store i32 %9, i32* %2
br label %32
10: ; preds = %3
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.8, i64 0, i64 0))
%12 = load i64, i64* @adders_io.aesl_llvm_cbe_7_count
%13 = add i64 %12, 1
store i64 %13, i64* @adders_io.aesl_llvm_cbe_7_count
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @.str.2, i64 0, i64 0), i64 %13)
%15 = load i32, i32* %2
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %15)
%17 = load i64, i64* @adders_io.aesl_llvm_cbe_8_count
%18 = add i64 %17, 1
store i64 %18, i64* @adders_io.aesl_llvm_cbe_8_count
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.4, i64 0, i64 0), i64 %18)
%20 = add i32 %1, %0
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %20)
%22 = load i64, i64* @adders_io.aesl_llvm_cbe_9_count
%23 = add i64 %22, 1
store i64 %23, i64* @adders_io.aesl_llvm_cbe_9_count
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str.5, i64 0, i64 0), i64 %23)
%25 = add i32 %15, %20
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %25)
%27 = load i64, i64* @adders_io.aesl_llvm_cbe_11_count
%28 = add i64 %27, 1
store i64 %28, i64* @adders_io.aesl_llvm_cbe_11_count
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @.str.6, i64 0, i64 0), i64 %28)
store i32 %25, i32* %2
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %25)
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
br label %32
32: ; preds = %6, %10
ret void
}