; LLVM IR from bkaradzic/bgfx :: 3rdparty/fcpp (cpp1)

; 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.Global = type { i32, i32, ptr, ptr, i32, i32, i32, ptr, i32, i32, i32, i32, [513 x i8], ptr, i8, i8, i8, i8, i8, [32 x i8], ptr, [20 x ptr], ptr, [20 x ptr], [20 x i8], i32, [5 x ptr], [5 x ptr], i8, ptr, [1025 x i8], ptr, [31 x ptr], i32, ptr, [64 x ptr], i32, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, i8, ptr, i64, i8, i8, i8, i8, i8, i8, ptr, [20 x ptr], i32, i8, i8, i8, ptr }

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@stdin = external global ptr, align 8
@stdout = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @fppPreProcess(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %9 = call noalias ptr @malloc(i64 noundef 3176) #7
  store ptr %9, ptr %7, align 8, !tbaa !5
  %10 = load ptr, ptr %7, align 8, !tbaa !5
  %11 = icmp ne ptr %10, null
  br i1 %11, label %13, label %12

12:                                               ; preds = %1
  store i32 1, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %208

13:                                               ; preds = %1
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 3176, i1 false)
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.Global, ptr %15, i32 0, i32 7
  store ptr null, ptr %16, align 8, !tbaa !11
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.Global, ptr %17, i32 0, i32 0
  store i32 0, ptr %18, align 8, !tbaa !14
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.Global, ptr %19, i32 0, i32 1
  store i32 0, ptr %20, align 4, !tbaa !15
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.Global, ptr %21, i32 0, i32 6
  store i32 0, ptr %22, align 8, !tbaa !16
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.Global, ptr %23, i32 0, i32 8
  store i32 0, ptr %24, align 8, !tbaa !17
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.Global, ptr %25, i32 0, i32 9
  store i32 1, ptr %26, align 4, !tbaa !18
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.Global, ptr %27, i32 0, i32 10
  store i32 0, ptr %28, align 8, !tbaa !19
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.Global, ptr %29, i32 0, i32 11
  store i32 0, ptr %30, align 4, !tbaa !20
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.Global, ptr %31, i32 0, i32 13
  store ptr null, ptr %32, align 8, !tbaa !21
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.Global, ptr %33, i32 0, i32 14
  store i8 0, ptr %34, align 8, !tbaa !22
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.Global, ptr %35, i32 0, i32 15
  store i8 0, ptr %36, align 1, !tbaa !23
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.Global, ptr %37, i32 0, i32 16
  store i8 0, ptr %38, align 2, !tbaa !24
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.Global, ptr %39, i32 0, i32 17
  store i8 0, ptr %40, align 1, !tbaa !25
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.Global, ptr %41, i32 0, i32 18
  store i8 0, ptr %42, align 4, !tbaa !26
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.Global, ptr %43, i32 0, i32 19
  %45 = getelementptr inbounds [32 x i8], ptr %44, i64 0, i64 0
  store i8 1, ptr %45, align 1, !tbaa !27
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.Global, ptr %46, i32 0, i32 19
  %48 = getelementptr inbounds [32 x i8], ptr %47, i64 0, i64 0
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.Global, ptr %49, i32 0, i32 20
  store ptr %48, ptr %50, align 8, !tbaa !28
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.Global, ptr %51, i32 0, i32 21
  %53 = getelementptr inbounds [20 x ptr], ptr %52, i64 0, i64 0
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.Global, ptr %54, i32 0, i32 22
  store ptr %53, ptr %55, align 8, !tbaa !29
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.Global, ptr %56, i32 0, i32 26
  %58 = getelementptr inbounds [5 x ptr], ptr %57, i64 0, i64 0
  store ptr @.str, ptr %58, align 8, !tbaa !5
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.Global, ptr %59, i32 0, i32 26
  %61 = getelementptr inbounds [5 x ptr], ptr %60, i64 0, i64 1
  store ptr @.str.1, ptr %61, align 8, !tbaa !5
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.Global, ptr %62, i32 0, i32 26
  %64 = getelementptr inbounds [5 x ptr], ptr %63, i64 0, i64 2
  store ptr null, ptr %64, align 8, !tbaa !5
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.Global, ptr %65, i32 0, i32 27
  %67 = getelementptr inbounds [5 x ptr], ptr %66, i64 0, i64 0
  store ptr @.str.2, ptr %67, align 8, !tbaa !5
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.Global, ptr %68, i32 0, i32 27
  %70 = getelementptr inbounds [5 x ptr], ptr %69, i64 0, i64 1
  store ptr @.str.3, ptr %70, align 8, !tbaa !5
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.Global, ptr %71, i32 0, i32 27
  %73 = getelementptr inbounds [5 x ptr], ptr %72, i64 0, i64 2
  store ptr @.str.4, ptr %73, align 8, !tbaa !5
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.Global, ptr %74, i32 0, i32 27
  %76 = getelementptr inbounds [5 x ptr], ptr %75, i64 0, i64 3
  store ptr @.str.5, ptr %76, align 8, !tbaa !5
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.Global, ptr %77, i32 0, i32 27
  %79 = getelementptr inbounds [5 x ptr], ptr %78, i64 0, i64 4
  store ptr null, ptr %79, align 8, !tbaa !5
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.Global, ptr %80, i32 0, i32 4
  store i32 0, ptr %81, align 8, !tbaa !30
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.Global, ptr %82, i32 0, i32 28
  store i8 1, ptr %83, align 8, !tbaa !31
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.Global, ptr %84, i32 0, i32 29
  store ptr null, ptr %85, align 8, !tbaa !32
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.Global, ptr %86, i32 0, i32 31
  store ptr null, ptr %87, align 8, !tbaa !33
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.Global, ptr %88, i32 0, i32 33
  store i32 0, ptr %89, align 8, !tbaa !34
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.Global, ptr %90, i32 0, i32 34
  store ptr null, ptr %91, align 8, !tbaa !35
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.Global, ptr %92, i32 0, i32 36
  store i32 0, ptr %93, align 8, !tbaa !36
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.Global, ptr %94, i32 0, i32 37
  store ptr null, ptr %95, align 8, !tbaa !37
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.Global, ptr %96, i32 0, i32 38
  store ptr null, ptr %97, align 8, !tbaa !38
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Global, ptr %98, i32 0, i32 41
  store ptr null, ptr %99, align 8, !tbaa !39
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.Global, ptr %100, i32 0, i32 42
  store ptr null, ptr %101, align 8, !tbaa !40
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.Global, ptr %102, i32 0, i32 39
  store ptr null, ptr %103, align 8, !tbaa !41
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.Global, ptr %104, i32 0, i32 40
  store ptr null, ptr %105, align 8, !tbaa !42
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.Global, ptr %106, i32 0, i32 43
  store i8 1, ptr %107, align 8, !tbaa !43
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.Global, ptr %108, i32 0, i32 44
  store i8 0, ptr %109, align 1, !tbaa !44
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.Global, ptr %110, i32 0, i32 45
  store i8 1, ptr %111, align 2, !tbaa !45
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.Global, ptr %112, i32 0, i32 55
  store i8 1, ptr %113, align 2, !tbaa !46
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.Global, ptr %114, i32 0, i32 46
  store i8 1, ptr %115, align 1, !tbaa !47
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.Global, ptr %116, i32 0, i32 47
  store i8 0, ptr %117, align 4, !tbaa !48
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.Global, ptr %118, i32 0, i32 49
  store i8 0, ptr %119, align 2, !tbaa !49
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.Global, ptr %120, i32 0, i32 53
  store i8 0, ptr %121, align 8, !tbaa !50
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.Global, ptr %122, i32 0, i32 54
  store i8 0, ptr %123, align 1, !tbaa !51
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.Global, ptr %124, i32 0, i32 56
  store i8 1, ptr %125, align 1, !tbaa !52
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.Global, ptr %126, i32 0, i32 25
  store i32 0, ptr %127, align 4, !tbaa !53
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.Global, ptr %128, i32 0, i32 50
  store i8 0, ptr %129, align 1, !tbaa !54
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.Global, ptr %130, i32 0, i32 58
  store i8 0, ptr %131, align 1, !tbaa !55
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.Global, ptr %132, i32 0, i32 12
  %134 = getelementptr inbounds [513 x i8], ptr %133, i64 0, i64 0
  store i8 0, ptr %134, align 8, !tbaa !27
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.Global, ptr %135, i32 0, i32 59
  store ptr null, ptr %136, align 8, !tbaa !56
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.Global, ptr %137, i32 0, i32 64
  store i8 1, ptr %138, align 2, !tbaa !57
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.Global, ptr %139, i32 0, i32 35
  %141 = getelementptr inbounds [64 x ptr], ptr %140, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %141, i8 0, i64 512, i1 false)
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = call i32 @fpp_initdefines(ptr noundef %142)
  store i32 %143, ptr %5, align 4, !tbaa !58
  %144 = load i32, ptr %5, align 4, !tbaa !58
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %148

146:                                              ; preds = %13
  %147 = load i32, ptr %5, align 4, !tbaa !58
  store i32 %147, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %208

148:                                              ; preds = %13
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = call i32 @fpp_dooptions(ptr noundef %149, ptr noundef %150)
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = load ptr, ptr @stdin, align 8, !tbaa !5
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.Global, ptr %154, i32 0, i32 12
  %156 = getelementptr inbounds [513 x i8], ptr %155, i64 0, i64 0
  %157 = call i32 @fpp_addfile(ptr noundef %152, ptr noundef %153, ptr noundef %156)
  store i32 %157, ptr %5, align 4, !tbaa !58
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.Global, ptr %158, i32 0, i32 56
  %160 = load i8, ptr %159, align 1, !tbaa !52
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.Global, ptr %161, i32 0, i32 57
  store i8 %160, ptr %162, align 4, !tbaa !59
  %163 = load i32, ptr %5, align 4, !tbaa !58
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %168, label %165

165:                                              ; preds = %148
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = call i32 @fpp_cppmain(ptr noundef %166)
  store i32 %167, ptr %5, align 4, !tbaa !58
  br label %168

168:                                              ; preds = %165, %148
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.Global, ptr %169, i32 0, i32 20
  %171 = load ptr, ptr %170, align 8, !tbaa !28
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.Global, ptr %172, i32 0, i32 19
  %174 = getelementptr inbounds [32 x i8], ptr %173, i64 0, i64 0
  %175 = ptrtoint ptr %171 to i64
  %176 = ptrtoint ptr %174 to i64
  %177 = sub i64 %175, %176
  store i64 %177, ptr %4, align 8, !tbaa !9
  %178 = icmp ne i64 %177, 0
  br i1 %178, label %179, label %182

179:                                              ; preds = %168
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = load i64, ptr %4, align 8, !tbaa !9
  call void (ptr, i32, ...) @fpp_cerror(ptr noundef %180, i32 noundef 28, i64 noundef %181)
  br label %182

182:                                              ; preds = %179, %168
  %183 = load ptr, ptr @stdout, align 8, !tbaa !5
  %184 = call i32 @fflush(ptr noundef %183)
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  call void @fpp_delalldefines(ptr noundef %185)
  store i32 0, ptr %6, align 4, !tbaa !58
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.Global, ptr %186, i32 0, i32 6
  %188 = load i32, ptr %187, align 8, !tbaa !16
  %189 = icmp sgt i32 %188, 0
  br i1 %189, label %190, label %196

190:                                              ; preds = %182
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.Global, ptr %191, i32 0, i32 16
  %193 = load i8, ptr %192, align 2, !tbaa !24
  %194 = icmp ne i8 %193, 0
  br i1 %194, label %196, label %195

195:                                              ; preds = %190
  store i32 1, ptr %6, align 4, !tbaa !58
  br label %196

196:                                              ; preds = %195, %190, %182
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.Global, ptr %197, i32 0, i32 2
  %199 = load ptr, ptr %198, align 8, !tbaa !60
  call void @free(ptr noundef %199) #6
  %200 = load ptr, ptr %7, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.Global, ptr %200, i32 0, i32 3
  %202 = load ptr, ptr %201, align 8, !tbaa !61
  call void @free(ptr noundef %202) #6
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.Global, ptr %203, i32 0, i32 51
  %205 = load ptr, ptr %204, align 8, !tbaa !62
  call void @free(ptr noundef %205) #6
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %206) #6
  %207 = load i32, ptr %6, align 4, !tbaa !58
  store i32 %207, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %208

208:                                              ; preds = %196, %146, %12
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %209 = load i32, ptr %2, align 4
  ret i32 %209
}

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

declare i32 @fpp_initdefines(ptr noundef) #4

declare i32 @fpp_dooptions(ptr noundef, ptr noundef) #4

declare i32 @fpp_addfile(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @fpp_cppmain(ptr noundef) #0

declare void @fpp_cerror(ptr noundef, i32 noundef, ...) #4

declare i32 @fflush(ptr noundef) #4

declare void @fpp_delalldefines(ptr noundef) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "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 "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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 40}
!12 = !{!"Global", !13, i64 0, !13, i64 4, !6, i64 8, !6, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !6, i64 40, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !7, i64 64, !6, i64 584, !7, i64 592, !7, i64 593, !7, i64 594, !7, i64 595, !7, i64 596, !7, i64 597, !6, i64 632, !7, i64 640, !6, i64 800, !7, i64 808, !7, i64 968, !13, i64 988, !7, i64 992, !7, i64 1032, !7, i64 1072, !6, i64 1080, !7, i64 1088, !6, i64 2120, !7, i64 2128, !13, i64 2376, !6, i64 2384, !7, i64 2392, !13, i64 2904, !6, i64 2912, !6, i64 2920, !6, i64 2928, !6, i64 2936, !6, i64 2944, !6, i64 2952, !7, i64 2960, !7, i64 2961, !7, i64 2962, !7, i64 2963, !7, i64 2964, !7, i64 2965, !7, i64 2966, !7, i64 2967, !6, i64 2968, !10, i64 2976, !7, i64 2984, !7, i64 2985, !7, i64 2986, !7, i64 2987, !7, i64 2988, !7, i64 2989, !6, i64 2992, !7, i64 3000, !13, i64 3160, !7, i64 3164, !7, i64 3165, !7, i64 3166, !6, i64 3168}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 0}
!15 = !{!12, !13, i64 4}
!16 = !{!12, !13, i64 32}
!17 = !{!12, !13, i64 48}
!18 = !{!12, !13, i64 52}
!19 = !{!12, !13, i64 56}
!20 = !{!12, !13, i64 60}
!21 = !{!12, !6, i64 584}
!22 = !{!12, !7, i64 592}
!23 = !{!12, !7, i64 593}
!24 = !{!12, !7, i64 594}
!25 = !{!12, !7, i64 595}
!26 = !{!12, !7, i64 596}
!27 = !{!7, !7, i64 0}
!28 = !{!12, !6, i64 632}
!29 = !{!12, !6, i64 800}
!30 = !{!12, !13, i64 24}
!31 = !{!12, !7, i64 1072}
!32 = !{!12, !6, i64 1080}
!33 = !{!12, !6, i64 2120}
!34 = !{!12, !13, i64 2376}
!35 = !{!12, !6, i64 2384}
!36 = !{!12, !13, i64 2904}
!37 = !{!12, !6, i64 2912}
!38 = !{!12, !6, i64 2920}
!39 = !{!12, !6, i64 2944}
!40 = !{!12, !6, i64 2952}
!41 = !{!12, !6, i64 2928}
!42 = !{!12, !6, i64 2936}
!43 = !{!12, !7, i64 2960}
!44 = !{!12, !7, i64 2961}
!45 = !{!12, !7, i64 2962}
!46 = !{!12, !7, i64 2986}
!47 = !{!12, !7, i64 2963}
!48 = !{!12, !7, i64 2964}
!49 = !{!12, !7, i64 2966}
!50 = !{!12, !7, i64 2984}
!51 = !{!12, !7, i64 2985}
!52 = !{!12, !7, i64 2987}
!53 = !{!12, !13, i64 988}
!54 = !{!12, !7, i64 2967}
!55 = !{!12, !7, i64 2989}
!56 = !{!12, !6, i64 2992}
!57 = !{!12, !7, i64 3166}
!58 = !{!13, !13, i64 0}
!59 = !{!12, !7, i64 2988}
!60 = !{!12, !6, i64 8}
!61 = !{!12, !6, i64 16}
!62 = !{!12, !6, i64 2968}


; 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"

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @fppPreProcess(ptr noundef %0) local_unnamed_addr #0 {
  %calloc = tail call dereferenceable_or_null(3176) ptr @calloc(i64 1, i64 3176)
  %.not = icmp eq ptr %calloc, null
  br i1 %.not, label %53, label %2

2:                                                ; preds = %1
  %3 = getelementptr inbounds i8, ptr %calloc, i64 32
  %4 = getelementptr inbounds i8, ptr %calloc, i64 52
  store i32 1, ptr %4, align 4, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %calloc, i64 594
  %6 = getelementptr inbounds i8, ptr %calloc, i64 597
  store i8 1, ptr %6, align 1, !tbaa !12
  %7 = getelementptr inbounds i8, ptr %calloc, i64 632
  store ptr %6, ptr %7, align 8, !tbaa !13
  %8 = getelementptr inbounds i8, ptr %calloc, i64 640
  %9 = getelementptr inbounds i8, ptr %calloc, i64 800
  store ptr %8, ptr %9, align 8, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %calloc, i64 992
  store ptr @.str, ptr %10, align 8, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %calloc, i64 1000
  store ptr @.str.1, ptr %11, align 8, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %calloc, i64 1032
  store ptr @.str.2, ptr %12, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %calloc, i64 1040
  store ptr @.str.3, ptr %13, align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %calloc, i64 1048
  store ptr @.str.4, ptr %14, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %calloc, i64 1056
  store ptr @.str.5, ptr %15, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %calloc, i64 1072
  store i8 1, ptr %16, align 8, !tbaa !16
  %17 = getelementptr inbounds i8, ptr %calloc, i64 2960
  store i8 1, ptr %17, align 8, !tbaa !17
  %18 = getelementptr inbounds i8, ptr %calloc, i64 2962
  store i8 1, ptr %18, align 2, !tbaa !18
  %19 = getelementptr inbounds i8, ptr %calloc, i64 2986
  store i8 1, ptr %19, align 2, !tbaa !19
  %20 = getelementptr inbounds i8, ptr %calloc, i64 2963
  store i8 1, ptr %20, align 1, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %calloc, i64 2987
  store i8 1, ptr %21, align 1, !tbaa !21
  %22 = getelementptr inbounds i8, ptr %calloc, i64 3166
  store i8 1, ptr %22, align 2, !tbaa !22
  %23 = tail call i32 @fpp_initdefines(ptr noundef nonnull %calloc) #5
  %.not86 = icmp eq i32 %23, 0
  br i1 %.not86, label %24, label %53

24:                                               ; preds = %2
  %25 = getelementptr inbounds i8, ptr %calloc, i64 64
  %26 = tail call i32 @fpp_dooptions(ptr noundef nonnull %calloc, ptr noundef %0) #5
  %27 = load ptr, ptr @stdin, align 8, !tbaa !15
  %28 = tail call i32 @fpp_addfile(ptr noundef nonnull %calloc, ptr noundef %27, ptr noundef nonnull %25) #5
  %29 = load i8, ptr %21, align 1, !tbaa !21
  %30 = getelementptr inbounds i8, ptr %calloc, i64 2988
  store i8 %29, ptr %30, align 4, !tbaa !23
  %.not87 = icmp eq i32 %28, 0
  br i1 %.not87, label %31, label %33

31:                                               ; preds = %24
  %32 = tail call i32 @fpp_cppmain(ptr noundef nonnull %calloc)
  br label %33

33:                                               ; preds = %31, %24
  %34 = load ptr, ptr %7, align 8, !tbaa !13
  %.not88 = icmp eq ptr %34, %6
  br i1 %.not88, label %39, label %35

35:                                               ; preds = %33
  %36 = ptrtoint ptr %6 to i64
  %37 = ptrtoint ptr %34 to i64
  %38 = sub i64 %37, %36
  tail call void (ptr, i32, ...) @fpp_cerror(ptr noundef nonnull %calloc, i32 noundef 28, i64 noundef %38) #5
  br label %39

39:                                               ; preds = %35, %33
  %40 = load ptr, ptr @stdout, align 8, !tbaa !15
  %41 = tail call i32 @fflush(ptr noundef %40)
  tail call void @fpp_delalldefines(ptr noundef nonnull %calloc) #5
  %42 = load i32, ptr %3, align 8, !tbaa !24
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %44, label %46

44:                                               ; preds = %39
  %45 = load i8, ptr %5, align 2, !tbaa !25
  %.not89 = icmp eq i8 %45, 0
  %spec.select = zext i1 %.not89 to i32
  br label %46

46:                                               ; preds = %44, %39
  %.082 = phi i32 [ 0, %39 ], [ %spec.select, %44 ]
  %47 = getelementptr inbounds i8, ptr %calloc, i64 8
  %48 = load ptr, ptr %47, align 8, !tbaa !26
  tail call void @free(ptr noundef %48) #5
  %49 = getelementptr inbounds i8, ptr %calloc, i64 16
  %50 = load ptr, ptr %49, align 8, !tbaa !27
  tail call void @free(ptr noundef %50) #5
  %51 = getelementptr inbounds i8, ptr %calloc, i64 2968
  %52 = load ptr, ptr %51, align 8, !tbaa !28
  tail call void @free(ptr noundef %52) #5
  tail call void @free(ptr noundef nonnull %calloc) #5
  br label %53

53:                                               ; preds = %2, %1, %46
  %.0 = phi i32 [ %.082, %46 ], [ 1, %1 ], [ %23, %2 ]
  ret i32 %.0
}

declare i32 @fpp_initdefines(ptr noundef) local_unnamed_addr #1

declare i32 @fpp_dooptions(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @fpp_addfile(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @fpp_cppmain(ptr noundef) local_unnamed_addr #0

declare void @fpp_cerror(ptr noundef, i32 noundef, ...) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #2

declare void @fpp_delalldefines(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #4

attributes #0 = { 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 #1 = { "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 = { nofree nounwind "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 #3 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
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, !7, i64 52}
!6 = !{!"Global", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !10, i64 40, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !8, i64 64, !10, i64 584, !8, i64 592, !8, i64 593, !8, i64 594, !8, i64 595, !8, i64 596, !8, i64 597, !10, i64 632, !8, i64 640, !10, i64 800, !8, i64 808, !8, i64 968, !7, i64 988, !8, i64 992, !8, i64 1032, !8, i64 1072, !10, i64 1080, !8, i64 1088, !10, i64 2120, !8, i64 2128, !7, i64 2376, !10, i64 2384, !8, i64 2392, !7, i64 2904, !10, i64 2912, !10, i64 2920, !10, i64 2928, !10, i64 2936, !10, i64 2944, !10, i64 2952, !8, i64 2960, !8, i64 2961, !8, i64 2962, !8, i64 2963, !8, i64 2964, !8, i64 2965, !8, i64 2966, !8, i64 2967, !10, i64 2968, !11, i64 2976, !8, i64 2984, !8, i64 2985, !8, i64 2986, !8, i64 2987, !8, i64 2988, !8, i64 2989, !10, i64 2992, !8, i64 3000, !7, i64 3160, !8, i64 3164, !8, i64 3165, !8, i64 3166, !10, i64 3168}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!6, !10, i64 632}
!14 = !{!6, !10, i64 800}
!15 = !{!10, !10, i64 0}
!16 = !{!6, !8, i64 1072}
!17 = !{!6, !8, i64 2960}
!18 = !{!6, !8, i64 2962}
!19 = !{!6, !8, i64 2986}
!20 = !{!6, !8, i64 2963}
!21 = !{!6, !8, i64 2987}
!22 = !{!6, !8, i64 3166}
!23 = !{!6, !8, i64 2988}
!24 = !{!6, !7, i64 32}
!25 = !{!6, !8, i64 594}
!26 = !{!6, !10, i64 8}
!27 = !{!6, !10, i64 16}
!28 = !{!6, !10, i64 2968}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass