; LLVM IR from Nonoum/ECL :: tests/tests.ll (ZN24test_JH_reading_failures11runInternalERSoi)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ECL_JH_RState = type { ptr, ptr, ptr, i8, i8 }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @ECL_JH_RInit(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local zeroext i8 @ECL_JH_Read(ptr noundef, i8 noundef zeroext) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @ECL_JH_RJump(ptr noundef, i32 noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13ntest_for_ecl10ntest_noopEv() #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24test_JH_reading_failures11runInternalERSoi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2) unnamed_addr #4 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca [6 x i8], align 1
  %8 = alloca %struct.ECL_JH_RState, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %9 = load ptr, ptr %4, align 8
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN13ntest_for_ecl10ntest_noopEv()
  call void @llvm.lifetime.start.p0(i64 6, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  %11 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %11, i8 0, i64 6, i1 false)
  %12 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 1
  store i8 -1, ptr %12, align 1, !tbaa !11
  %13 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @ECL_JH_RInit(ptr noundef %8, ptr noundef %13, i32 noundef 1, i32 noundef 0)
  %14 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %15 = load i8, ptr %14, align 1, !tbaa !12
  %16 = icmp ne i8 %15, 0
  %17 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %16)
  %18 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 8)
  %19 = zext i8 %18 to i32
  %20 = icmp eq i32 0, %19
  %21 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %20)
  %22 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %23 = load i8, ptr %22, align 1, !tbaa !12
  %24 = icmp ne i8 %23, 0
  %25 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %24)
  %26 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 1)
  %27 = zext i8 %26 to i32
  %28 = icmp eq i32 0, %27
  %29 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %28)
  %30 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %31 = load i8, ptr %30, align 1, !tbaa !12
  %32 = icmp ne i8 %31, 0
  %33 = xor i1 %32, true
  %34 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %33)
  %35 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 1)
  %36 = zext i8 %35 to i32
  %37 = icmp eq i32 0, %36
  %38 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %37)
  %39 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %40 = load i8, ptr %39, align 1, !tbaa !12
  %41 = icmp ne i8 %40, 0
  %42 = xor i1 %41, true
  %43 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %42)
  %44 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %44, i8 0, i64 6, i1 false)
  %45 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 1
  store i8 -1, ptr %45, align 1, !tbaa !11
  %46 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @ECL_JH_RInit(ptr noundef %8, ptr noundef %46, i32 noundef 1, i32 noundef 0)
  %47 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %48 = load i8, ptr %47, align 1, !tbaa !12
  %49 = icmp ne i8 %48, 0
  %50 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %49)
  %51 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 7)
  %52 = zext i8 %51 to i32
  %53 = icmp eq i32 0, %52
  %54 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %53)
  %55 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %56 = load i8, ptr %55, align 1, !tbaa !12
  %57 = icmp ne i8 %56, 0
  %58 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %57)
  %59 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 1)
  %60 = zext i8 %59 to i32
  %61 = icmp eq i32 0, %60
  %62 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %61)
  %63 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %64 = load i8, ptr %63, align 1, !tbaa !12
  %65 = icmp ne i8 %64, 0
  %66 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %65)
  %67 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 1)
  %68 = zext i8 %67 to i32
  %69 = icmp eq i32 0, %68
  %70 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %69)
  %71 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %72 = load i8, ptr %71, align 1, !tbaa !12
  %73 = icmp ne i8 %72, 0
  %74 = xor i1 %73, true
  %75 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %74)
  %76 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 1)
  %77 = zext i8 %76 to i32
  %78 = icmp eq i32 0, %77
  %79 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %78)
  %80 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %81 = load i8, ptr %80, align 1, !tbaa !12
  %82 = icmp ne i8 %81, 0
  %83 = xor i1 %82, true
  %84 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %83)
  %85 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %85, i8 0, i64 6, i1 false)
  %86 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 2
  store i8 -1, ptr %86, align 1, !tbaa !11
  %87 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @ECL_JH_RInit(ptr noundef %8, ptr noundef %87, i32 noundef 2, i32 noundef 0)
  %88 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %89 = load i8, ptr %88, align 1, !tbaa !12
  %90 = icmp ne i8 %89, 0
  %91 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %90)
  %92 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 8)
  %93 = zext i8 %92 to i32
  %94 = icmp eq i32 0, %93
  %95 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %94)
  %96 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %97 = load i8, ptr %96, align 1, !tbaa !12
  %98 = icmp ne i8 %97, 0
  %99 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %98)
  %100 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 8)
  %101 = zext i8 %100 to i32
  %102 = icmp eq i32 0, %101
  %103 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %102)
  %104 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %105 = load i8, ptr %104, align 1, !tbaa !12
  %106 = icmp ne i8 %105, 0
  %107 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %106)
  %108 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 1)
  %109 = zext i8 %108 to i32
  %110 = icmp eq i32 0, %109
  %111 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %110)
  %112 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %113 = load i8, ptr %112, align 1, !tbaa !12
  %114 = icmp ne i8 %113, 0
  %115 = xor i1 %114, true
  %116 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %115)
  %117 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 1)
  %118 = zext i8 %117 to i32
  %119 = icmp eq i32 0, %118
  %120 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %119)
  %121 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %122 = load i8, ptr %121, align 1, !tbaa !12
  %123 = icmp ne i8 %122, 0
  %124 = xor i1 %123, true
  %125 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %124)
  %126 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %126, i8 0, i64 6, i1 false)
  %127 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 2
  store i8 -1, ptr %127, align 1, !tbaa !11
  %128 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @ECL_JH_RInit(ptr noundef %8, ptr noundef %128, i32 noundef 2, i32 noundef 0)
  %129 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %130 = load i8, ptr %129, align 1, !tbaa !12
  %131 = icmp ne i8 %130, 0
  %132 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %131)
  %133 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 7)
  %134 = zext i8 %133 to i32
  %135 = icmp eq i32 0, %134
  %136 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %135)
  %137 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %138 = load i8, ptr %137, align 1, !tbaa !12
  %139 = icmp ne i8 %138, 0
  %140 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %139)
  %141 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 7)
  %142 = zext i8 %141 to i32
  %143 = icmp eq i32 0, %142
  %144 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %143)
  %145 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %146 = load i8, ptr %145, align 1, !tbaa !12
  %147 = icmp ne i8 %146, 0
  %148 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %147)
  %149 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 2)
  %150 = zext i8 %149 to i32
  %151 = icmp eq i32 0, %150
  %152 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %151)
  %153 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %154 = load i8, ptr %153, align 1, !tbaa !12
  %155 = icmp ne i8 %154, 0
  %156 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %155)
  %157 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 1)
  %158 = zext i8 %157 to i32
  %159 = icmp eq i32 0, %158
  %160 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %159)
  %161 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %162 = load i8, ptr %161, align 1, !tbaa !12
  %163 = icmp ne i8 %162, 0
  %164 = xor i1 %163, true
  %165 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %164)
  %166 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 1)
  %167 = zext i8 %166 to i32
  %168 = icmp eq i32 0, %167
  %169 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %168)
  %170 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %171 = load i8, ptr %170, align 1, !tbaa !12
  %172 = icmp ne i8 %171, 0
  %173 = xor i1 %172, true
  %174 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %173)
  %175 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %175, i8 0, i64 6, i1 false)
  %176 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 2
  store i8 -1, ptr %176, align 1, !tbaa !11
  %177 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @ECL_JH_RInit(ptr noundef %8, ptr noundef %177, i32 noundef 2, i32 noundef 0)
  %178 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %179 = load i8, ptr %178, align 1, !tbaa !12
  %180 = icmp ne i8 %179, 0
  %181 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %180)
  %182 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 7)
  %183 = zext i8 %182 to i32
  %184 = icmp eq i32 0, %183
  %185 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %184)
  %186 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %187 = load i8, ptr %186, align 1, !tbaa !12
  %188 = icmp ne i8 %187, 0
  %189 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %188)
  %190 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 7)
  %191 = zext i8 %190 to i32
  %192 = icmp eq i32 0, %191
  %193 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %192)
  %194 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %195 = load i8, ptr %194, align 1, !tbaa !12
  %196 = icmp ne i8 %195, 0
  %197 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %196)
  %198 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 3)
  %199 = zext i8 %198 to i32
  %200 = icmp eq i32 0, %199
  %201 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %200)
  %202 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %203 = load i8, ptr %202, align 1, !tbaa !12
  %204 = icmp ne i8 %203, 0
  %205 = xor i1 %204, true
  %206 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %205)
  %207 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 3)
  %208 = zext i8 %207 to i32
  %209 = icmp eq i32 0, %208
  %210 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %209)
  %211 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %212 = load i8, ptr %211, align 1, !tbaa !12
  %213 = icmp ne i8 %212, 0
  %214 = xor i1 %213, true
  %215 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %214)
  %216 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %216, i8 0, i64 6, i1 false)
  %217 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 2
  store i8 -1, ptr %217, align 1, !tbaa !11
  %218 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @ECL_JH_RInit(ptr noundef %8, ptr noundef %218, i32 noundef 2, i32 noundef 0)
  %219 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %220 = load i8, ptr %219, align 1, !tbaa !12
  %221 = icmp ne i8 %220, 0
  %222 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %221)
  %223 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 7)
  %224 = zext i8 %223 to i32
  %225 = icmp eq i32 0, %224
  %226 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %225)
  %227 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %228 = load i8, ptr %227, align 1, !tbaa !12
  %229 = icmp ne i8 %228, 0
  %230 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %229)
  %231 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 7)
  %232 = zext i8 %231 to i32
  %233 = icmp eq i32 0, %232
  %234 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %233)
  %235 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %236 = load i8, ptr %235, align 1, !tbaa !12
  %237 = icmp ne i8 %236, 0
  %238 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %237)
  %239 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 8)
  %240 = zext i8 %239 to i32
  %241 = icmp eq i32 0, %240
  %242 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %241)
  %243 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %244 = load i8, ptr %243, align 1, !tbaa !12
  %245 = icmp ne i8 %244, 0
  %246 = xor i1 %245, true
  %247 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %246)
  %248 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 8)
  %249 = zext i8 %248 to i32
  %250 = icmp eq i32 0, %249
  %251 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %250)
  %252 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %253 = load i8, ptr %252, align 1, !tbaa !12
  %254 = icmp ne i8 %253, 0
  %255 = xor i1 %254, true
  %256 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %255)
  %257 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %257, i8 0, i64 6, i1 false)
  %258 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 5
  store i8 -1, ptr %258, align 1, !tbaa !11
  %259 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @ECL_JH_RInit(ptr noundef %8, ptr noundef %259, i32 noundef 5, i32 noundef 0)
  %260 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %261 = load i8, ptr %260, align 1, !tbaa !12
  %262 = icmp ne i8 %261, 0
  %263 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %262)
  %264 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 5)
  %265 = zext i8 %264 to i32
  %266 = icmp eq i32 0, %265
  %267 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %266)
  %268 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %269 = load i8, ptr %268, align 1, !tbaa !12
  %270 = icmp ne i8 %269, 0
  %271 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %270)
  call void @ECL_JH_RJump(ptr noundef %8, i32 noundef 4)
  %272 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %273 = load i8, ptr %272, align 1, !tbaa !12
  %274 = icmp ne i8 %273, 0
  %275 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %274)
  %276 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 2)
  %277 = zext i8 %276 to i32
  %278 = icmp eq i32 0, %277
  %279 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %278)
  %280 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %281 = load i8, ptr %280, align 1, !tbaa !12
  %282 = icmp ne i8 %281, 0
  %283 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %282)
  %284 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 2)
  %285 = zext i8 %284 to i32
  %286 = icmp eq i32 0, %285
  %287 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %286)
  %288 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %289 = load i8, ptr %288, align 1, !tbaa !12
  %290 = icmp ne i8 %289, 0
  %291 = xor i1 %290, true
  %292 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %291)
  %293 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 2)
  %294 = zext i8 %293 to i32
  %295 = icmp eq i32 0, %294
  %296 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %295)
  %297 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %298 = load i8, ptr %297, align 1, !tbaa !12
  %299 = icmp ne i8 %298, 0
  %300 = xor i1 %299, true
  %301 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %300)
  %302 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %302, i8 0, i64 6, i1 false)
  %303 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 5
  store i8 -1, ptr %303, align 1, !tbaa !11
  %304 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @ECL_JH_RInit(ptr noundef %8, ptr noundef %304, i32 noundef 5, i32 noundef 0)
  %305 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %306 = load i8, ptr %305, align 1, !tbaa !12
  %307 = icmp ne i8 %306, 0
  %308 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %307)
  %309 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 5)
  %310 = zext i8 %309 to i32
  %311 = icmp eq i32 0, %310
  %312 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %311)
  %313 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %314 = load i8, ptr %313, align 1, !tbaa !12
  %315 = icmp ne i8 %314, 0
  %316 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %315)
  call void @ECL_JH_RJump(ptr noundef %8, i32 noundef 3)
  %317 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %318 = load i8, ptr %317, align 1, !tbaa !12
  %319 = icmp ne i8 %318, 0
  %320 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %319)
  %321 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 7)
  %322 = zext i8 %321 to i32
  %323 = icmp eq i32 0, %322
  %324 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %323)
  %325 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %326 = load i8, ptr %325, align 1, !tbaa !12
  %327 = icmp ne i8 %326, 0
  %328 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %327)
  %329 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 4)
  %330 = zext i8 %329 to i32
  %331 = icmp eq i32 0, %330
  %332 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %331)
  %333 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %334 = load i8, ptr %333, align 1, !tbaa !12
  %335 = icmp ne i8 %334, 0
  %336 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %335)
  %337 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 1)
  %338 = zext i8 %337 to i32
  %339 = icmp eq i32 0, %338
  %340 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %339)
  %341 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %342 = load i8, ptr %341, align 1, !tbaa !12
  %343 = icmp ne i8 %342, 0
  %344 = xor i1 %343, true
  %345 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %344)
  %346 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 1)
  %347 = zext i8 %346 to i32
  %348 = icmp eq i32 0, %347
  %349 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %348)
  %350 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %351 = load i8, ptr %350, align 1, !tbaa !12
  %352 = icmp ne i8 %351, 0
  %353 = xor i1 %352, true
  %354 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %353)
  %355 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %355, i8 0, i64 6, i1 false)
  %356 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 5
  store i8 -1, ptr %356, align 1, !tbaa !11
  %357 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @ECL_JH_RInit(ptr noundef %8, ptr noundef %357, i32 noundef 5, i32 noundef 0)
  %358 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %359 = load i8, ptr %358, align 1, !tbaa !12
  %360 = icmp ne i8 %359, 0
  %361 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %360)
  call void @ECL_JH_RJump(ptr noundef %8, i32 noundef 4)
  %362 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %363 = load i8, ptr %362, align 1, !tbaa !12
  %364 = icmp ne i8 %363, 0
  %365 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %364)
  call void @ECL_JH_RJump(ptr noundef %8, i32 noundef 1)
  %366 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %367 = load i8, ptr %366, align 1, !tbaa !12
  %368 = icmp ne i8 %367, 0
  %369 = xor i1 %368, true
  %370 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %369)
  %371 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 8)
  %372 = zext i8 %371 to i32
  %373 = icmp eq i32 0, %372
  %374 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %373)
  %375 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %376 = load i8, ptr %375, align 1, !tbaa !12
  %377 = icmp ne i8 %376, 0
  %378 = xor i1 %377, true
  %379 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %378)
  %380 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 8)
  %381 = zext i8 %380 to i32
  %382 = icmp eq i32 0, %381
  %383 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %382)
  %384 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %385 = load i8, ptr %384, align 1, !tbaa !12
  %386 = icmp ne i8 %385, 0
  %387 = xor i1 %386, true
  %388 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %387)
  %389 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %389, i8 0, i64 6, i1 false)
  %390 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 5
  store i8 -1, ptr %390, align 1, !tbaa !11
  %391 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  call void @ECL_JH_RInit(ptr noundef %8, ptr noundef %391, i32 noundef 5, i32 noundef 0)
  %392 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %393 = load i8, ptr %392, align 1, !tbaa !12
  %394 = icmp ne i8 %393, 0
  %395 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %394)
  call void @ECL_JH_RJump(ptr noundef %8, i32 noundef 5)
  %396 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %397 = load i8, ptr %396, align 1, !tbaa !12
  %398 = icmp ne i8 %397, 0
  %399 = xor i1 %398, true
  %400 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %399)
  call void @ECL_JH_RJump(ptr noundef %8, i32 noundef 1)
  %401 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %402 = load i8, ptr %401, align 1, !tbaa !12
  %403 = icmp ne i8 %402, 0
  %404 = xor i1 %403, true
  %405 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %404)
  %406 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 8)
  %407 = zext i8 %406 to i32
  %408 = icmp eq i32 0, %407
  %409 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %408)
  %410 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %411 = load i8, ptr %410, align 1, !tbaa !12
  %412 = icmp ne i8 %411, 0
  %413 = xor i1 %412, true
  %414 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %413)
  %415 = call zeroext i8 @ECL_JH_Read(ptr noundef %8, i8 noundef zeroext 8)
  %416 = zext i8 %415 to i32
  %417 = icmp eq i32 0, %416
  %418 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %417)
  %419 = getelementptr inbounds %struct.ECL_JH_RState, ptr %8, i32 0, i32 4
  %420 = load i8, ptr %419, align 1, !tbaa !12
  %421 = icmp ne i8 %420, 0
  %422 = xor i1 %421, true
  %423 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext %422)
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 6, ptr %7) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !7, i64 25}
!13 = !{!"_ZTS13ECL_JH_RState", !6, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !7, i64 25}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ECL_JH_RState = type { ptr, ptr, ptr, i8, i8 }

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @ECL_JH_RInit(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local zeroext i8 @ECL_JH_Read(ptr noundef, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @ECL_JH_RJump(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13ntest_for_ecl10ntest_noopEv() local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN24test_JH_reading_failures11runInternalERSoi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %1, i32 noundef %2) unnamed_addr #1 align 2 {
  %4 = alloca [6 x i8], align 1
  %5 = alloca %struct.ECL_JH_RState, align 8
  tail call void @_ZN13ntest_for_ecl10ntest_noopEv()
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %4, i8 0, i64 6, i1 false)
  %6 = getelementptr inbounds i8, ptr %4, i64 1
  store i8 -1, ptr %6, align 1, !tbaa !5
  call void @ECL_JH_RInit(ptr noundef nonnull %5, ptr noundef nonnull %4, i32 noundef 1, i32 noundef 0)
  %7 = getelementptr inbounds i8, ptr %5, i64 25
  %8 = load i8, ptr %7, align 1, !tbaa !8
  %9 = icmp ne i8 %8, 0
  %10 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %9)
  %11 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 8)
  %12 = icmp eq i8 %11, 0
  %13 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %12)
  %14 = load i8, ptr %7, align 1, !tbaa !8
  %15 = icmp ne i8 %14, 0
  %16 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %15)
  %17 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 1)
  %18 = icmp eq i8 %17, 0
  %19 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %18)
  %20 = load i8, ptr %7, align 1, !tbaa !8
  %.not = icmp eq i8 %20, 0
  %21 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not)
  %22 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 1)
  %23 = icmp eq i8 %22, 0
  %24 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %23)
  %25 = load i8, ptr %7, align 1, !tbaa !8
  %.not2 = icmp eq i8 %25, 0
  %26 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %4, i8 0, i64 6, i1 false)
  store i8 -1, ptr %6, align 1, !tbaa !5
  call void @ECL_JH_RInit(ptr noundef nonnull %5, ptr noundef nonnull %4, i32 noundef 1, i32 noundef 0)
  %27 = load i8, ptr %7, align 1, !tbaa !8
  %28 = icmp ne i8 %27, 0
  %29 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %28)
  %30 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 7)
  %31 = icmp eq i8 %30, 0
  %32 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %31)
  %33 = load i8, ptr %7, align 1, !tbaa !8
  %34 = icmp ne i8 %33, 0
  %35 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %34)
  %36 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 1)
  %37 = icmp eq i8 %36, 0
  %38 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %37)
  %39 = load i8, ptr %7, align 1, !tbaa !8
  %40 = icmp ne i8 %39, 0
  %41 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %40)
  %42 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 1)
  %43 = icmp eq i8 %42, 0
  %44 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %43)
  %45 = load i8, ptr %7, align 1, !tbaa !8
  %.not3 = icmp eq i8 %45, 0
  %46 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not3)
  %47 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 1)
  %48 = icmp eq i8 %47, 0
  %49 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %48)
  %50 = load i8, ptr %7, align 1, !tbaa !8
  %.not4 = icmp eq i8 %50, 0
  %51 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not4)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %4, i8 0, i64 6, i1 false)
  %52 = getelementptr inbounds i8, ptr %4, i64 2
  store i8 -1, ptr %52, align 1, !tbaa !5
  call void @ECL_JH_RInit(ptr noundef nonnull %5, ptr noundef nonnull %4, i32 noundef 2, i32 noundef 0)
  %53 = load i8, ptr %7, align 1, !tbaa !8
  %54 = icmp ne i8 %53, 0
  %55 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %54)
  %56 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 8)
  %57 = icmp eq i8 %56, 0
  %58 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %57)
  %59 = load i8, ptr %7, align 1, !tbaa !8
  %60 = icmp ne i8 %59, 0
  %61 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %60)
  %62 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 8)
  %63 = icmp eq i8 %62, 0
  %64 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %63)
  %65 = load i8, ptr %7, align 1, !tbaa !8
  %66 = icmp ne i8 %65, 0
  %67 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %66)
  %68 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 1)
  %69 = icmp eq i8 %68, 0
  %70 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %69)
  %71 = load i8, ptr %7, align 1, !tbaa !8
  %.not5 = icmp eq i8 %71, 0
  %72 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not5)
  %73 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 1)
  %74 = icmp eq i8 %73, 0
  %75 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %74)
  %76 = load i8, ptr %7, align 1, !tbaa !8
  %.not6 = icmp eq i8 %76, 0
  %77 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not6)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %4, i8 0, i64 6, i1 false)
  store i8 -1, ptr %52, align 1, !tbaa !5
  call void @ECL_JH_RInit(ptr noundef nonnull %5, ptr noundef nonnull %4, i32 noundef 2, i32 noundef 0)
  %78 = load i8, ptr %7, align 1, !tbaa !8
  %79 = icmp ne i8 %78, 0
  %80 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %79)
  %81 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 7)
  %82 = icmp eq i8 %81, 0
  %83 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %82)
  %84 = load i8, ptr %7, align 1, !tbaa !8
  %85 = icmp ne i8 %84, 0
  %86 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %85)
  %87 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 7)
  %88 = icmp eq i8 %87, 0
  %89 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %88)
  %90 = load i8, ptr %7, align 1, !tbaa !8
  %91 = icmp ne i8 %90, 0
  %92 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %91)
  %93 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 2)
  %94 = icmp eq i8 %93, 0
  %95 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %94)
  %96 = load i8, ptr %7, align 1, !tbaa !8
  %97 = icmp ne i8 %96, 0
  %98 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %97)
  %99 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 1)
  %100 = icmp eq i8 %99, 0
  %101 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %100)
  %102 = load i8, ptr %7, align 1, !tbaa !8
  %.not7 = icmp eq i8 %102, 0
  %103 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not7)
  %104 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 1)
  %105 = icmp eq i8 %104, 0
  %106 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %105)
  %107 = load i8, ptr %7, align 1, !tbaa !8
  %.not8 = icmp eq i8 %107, 0
  %108 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not8)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %4, i8 0, i64 6, i1 false)
  store i8 -1, ptr %52, align 1, !tbaa !5
  call void @ECL_JH_RInit(ptr noundef nonnull %5, ptr noundef nonnull %4, i32 noundef 2, i32 noundef 0)
  %109 = load i8, ptr %7, align 1, !tbaa !8
  %110 = icmp ne i8 %109, 0
  %111 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %110)
  %112 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 7)
  %113 = icmp eq i8 %112, 0
  %114 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %113)
  %115 = load i8, ptr %7, align 1, !tbaa !8
  %116 = icmp ne i8 %115, 0
  %117 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %116)
  %118 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 7)
  %119 = icmp eq i8 %118, 0
  %120 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %119)
  %121 = load i8, ptr %7, align 1, !tbaa !8
  %122 = icmp ne i8 %121, 0
  %123 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %122)
  %124 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 3)
  %125 = icmp eq i8 %124, 0
  %126 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %125)
  %127 = load i8, ptr %7, align 1, !tbaa !8
  %.not9 = icmp eq i8 %127, 0
  %128 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not9)
  %129 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 3)
  %130 = icmp eq i8 %129, 0
  %131 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %130)
  %132 = load i8, ptr %7, align 1, !tbaa !8
  %.not10 = icmp eq i8 %132, 0
  %133 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not10)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %4, i8 0, i64 6, i1 false)
  store i8 -1, ptr %52, align 1, !tbaa !5
  call void @ECL_JH_RInit(ptr noundef nonnull %5, ptr noundef nonnull %4, i32 noundef 2, i32 noundef 0)
  %134 = load i8, ptr %7, align 1, !tbaa !8
  %135 = icmp ne i8 %134, 0
  %136 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %135)
  %137 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 7)
  %138 = icmp eq i8 %137, 0
  %139 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %138)
  %140 = load i8, ptr %7, align 1, !tbaa !8
  %141 = icmp ne i8 %140, 0
  %142 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %141)
  %143 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 7)
  %144 = icmp eq i8 %143, 0
  %145 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %144)
  %146 = load i8, ptr %7, align 1, !tbaa !8
  %147 = icmp ne i8 %146, 0
  %148 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %147)
  %149 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 8)
  %150 = icmp eq i8 %149, 0
  %151 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %150)
  %152 = load i8, ptr %7, align 1, !tbaa !8
  %.not11 = icmp eq i8 %152, 0
  %153 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not11)
  %154 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 8)
  %155 = icmp eq i8 %154, 0
  %156 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %155)
  %157 = load i8, ptr %7, align 1, !tbaa !8
  %.not12 = icmp eq i8 %157, 0
  %158 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not12)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %4, i8 0, i64 5, i1 false)
  %159 = getelementptr inbounds i8, ptr %4, i64 5
  store i8 -1, ptr %159, align 1, !tbaa !5
  call void @ECL_JH_RInit(ptr noundef nonnull %5, ptr noundef nonnull %4, i32 noundef 5, i32 noundef 0)
  %160 = load i8, ptr %7, align 1, !tbaa !8
  %161 = icmp ne i8 %160, 0
  %162 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %161)
  %163 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 5)
  %164 = icmp eq i8 %163, 0
  %165 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %164)
  %166 = load i8, ptr %7, align 1, !tbaa !8
  %167 = icmp ne i8 %166, 0
  %168 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %167)
  call void @ECL_JH_RJump(ptr noundef nonnull %5, i32 noundef 4)
  %169 = load i8, ptr %7, align 1, !tbaa !8
  %170 = icmp ne i8 %169, 0
  %171 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %170)
  %172 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 2)
  %173 = icmp eq i8 %172, 0
  %174 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %173)
  %175 = load i8, ptr %7, align 1, !tbaa !8
  %176 = icmp ne i8 %175, 0
  %177 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %176)
  %178 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 2)
  %179 = icmp eq i8 %178, 0
  %180 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %179)
  %181 = load i8, ptr %7, align 1, !tbaa !8
  %.not13 = icmp eq i8 %181, 0
  %182 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not13)
  %183 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 2)
  %184 = icmp eq i8 %183, 0
  %185 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %184)
  %186 = load i8, ptr %7, align 1, !tbaa !8
  %.not14 = icmp eq i8 %186, 0
  %187 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not14)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %4, i8 0, i64 5, i1 false)
  store i8 -1, ptr %159, align 1, !tbaa !5
  call void @ECL_JH_RInit(ptr noundef nonnull %5, ptr noundef nonnull %4, i32 noundef 5, i32 noundef 0)
  %188 = load i8, ptr %7, align 1, !tbaa !8
  %189 = icmp ne i8 %188, 0
  %190 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %189)
  %191 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 5)
  %192 = icmp eq i8 %191, 0
  %193 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %192)
  %194 = load i8, ptr %7, align 1, !tbaa !8
  %195 = icmp ne i8 %194, 0
  %196 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %195)
  call void @ECL_JH_RJump(ptr noundef nonnull %5, i32 noundef 3)
  %197 = load i8, ptr %7, align 1, !tbaa !8
  %198 = icmp ne i8 %197, 0
  %199 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %198)
  %200 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 7)
  %201 = icmp eq i8 %200, 0
  %202 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %201)
  %203 = load i8, ptr %7, align 1, !tbaa !8
  %204 = icmp ne i8 %203, 0
  %205 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %204)
  %206 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 4)
  %207 = icmp eq i8 %206, 0
  %208 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %207)
  %209 = load i8, ptr %7, align 1, !tbaa !8
  %210 = icmp ne i8 %209, 0
  %211 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %210)
  %212 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 1)
  %213 = icmp eq i8 %212, 0
  %214 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %213)
  %215 = load i8, ptr %7, align 1, !tbaa !8
  %.not15 = icmp eq i8 %215, 0
  %216 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not15)
  %217 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 1)
  %218 = icmp eq i8 %217, 0
  %219 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %218)
  %220 = load i8, ptr %7, align 1, !tbaa !8
  %.not16 = icmp eq i8 %220, 0
  %221 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not16)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %4, i8 0, i64 5, i1 false)
  store i8 -1, ptr %159, align 1, !tbaa !5
  call void @ECL_JH_RInit(ptr noundef nonnull %5, ptr noundef nonnull %4, i32 noundef 5, i32 noundef 0)
  %222 = load i8, ptr %7, align 1, !tbaa !8
  %223 = icmp ne i8 %222, 0
  %224 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %223)
  call void @ECL_JH_RJump(ptr noundef nonnull %5, i32 noundef 4)
  %225 = load i8, ptr %7, align 1, !tbaa !8
  %226 = icmp ne i8 %225, 0
  %227 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %226)
  call void @ECL_JH_RJump(ptr noundef nonnull %5, i32 noundef 1)
  %228 = load i8, ptr %7, align 1, !tbaa !8
  %.not17 = icmp eq i8 %228, 0
  %229 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not17)
  %230 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 8)
  %231 = icmp eq i8 %230, 0
  %232 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %231)
  %233 = load i8, ptr %7, align 1, !tbaa !8
  %.not18 = icmp eq i8 %233, 0
  %234 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not18)
  %235 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 8)
  %236 = icmp eq i8 %235, 0
  %237 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %236)
  %238 = load i8, ptr %7, align 1, !tbaa !8
  %.not19 = icmp eq i8 %238, 0
  %239 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not19)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %4, i8 0, i64 5, i1 false)
  store i8 -1, ptr %159, align 1, !tbaa !5
  call void @ECL_JH_RInit(ptr noundef nonnull %5, ptr noundef nonnull %4, i32 noundef 5, i32 noundef 0)
  %240 = load i8, ptr %7, align 1, !tbaa !8
  %241 = icmp ne i8 %240, 0
  %242 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %241)
  call void @ECL_JH_RJump(ptr noundef nonnull %5, i32 noundef 5)
  %243 = load i8, ptr %7, align 1, !tbaa !8
  %.not20 = icmp eq i8 %243, 0
  %244 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not20)
  call void @ECL_JH_RJump(ptr noundef nonnull %5, i32 noundef 1)
  %245 = load i8, ptr %7, align 1, !tbaa !8
  %.not21 = icmp eq i8 %245, 0
  %246 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not21)
  %247 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 8)
  %248 = icmp eq i8 %247, 0
  %249 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %248)
  %250 = load i8, ptr %7, align 1, !tbaa !8
  %.not22 = icmp eq i8 %250, 0
  %251 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not22)
  %252 = call zeroext i8 @ECL_JH_Read(ptr noundef nonnull %5, i8 noundef zeroext 8)
  %253 = icmp eq i8 %252, 0
  %254 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %253)
  %255 = load i8, ptr %7, align 1, !tbaa !8
  %.not23 = icmp eq i8 %255, 0
  %256 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.not23)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %4) #4
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !6, i64 25}
!9 = !{!"_ZTS13ECL_JH_RState", !10, i64 0, !10, i64 8, !10, i64 16, !6, i64 24, !6, i64 25}
!10 = !{!"any pointer", !6, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass