; LLVM IR from cvxgrp/scs :: src/rw.ll (scs_log_data_to_csv)

; 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.SCS_WORK = type { double, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, i32, i32, i32, double, i32, i32 }
%struct.ScsSettings = type { i32, double, i32, double, i32, double, double, double, double, double, i32, i32, i32, i32, ptr, ptr }
%struct.ScsData = type { i32, i32, ptr, ptr, ptr, ptr }
%struct.ScsResiduals = type { i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ScsSolution = type { ptr, ptr, ptr }

@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [872 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

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

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local void @_scs_log_data_to_csv(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.SCS_WORK, ptr %18, i32 0, i32 22
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  store ptr %20, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.SCS_WORK, ptr %21, i32 0, i32 23
  %23 = load ptr, ptr %22, align 8, !tbaa !14
  store ptr %23, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.SCS_WORK, ptr %24, i32 0, i32 24
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  store ptr %26, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.SCS_WORK, ptr %27, i32 0, i32 25
  %29 = load ptr, ptr %28, align 8, !tbaa !16
  store ptr %29, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.ScsSettings, ptr %30, i32 0, i32 15
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = load i32, ptr %9, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 0
  %35 = zext i1 %34 to i64
  %36 = select i1 %34, ptr @.str.10, ptr @.str.11
  %37 = call noalias ptr @fopen(ptr noundef %32, ptr noundef %36)
  store ptr %37, ptr %15, align 8, !tbaa !5
  %38 = load ptr, ptr %15, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %45, label %40

40:                                               ; preds = %5
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ScsSettings, ptr %41, i32 0, i32 15
  %43 = load ptr, ptr %42, align 8, !tbaa !17
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %43)
  store i32 1, ptr %16, align 4
  br label %557

45:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.SCS_WORK, ptr %46, i32 0, i32 16
  %48 = load ptr, ptr %47, align 8, !tbaa !19
  %49 = getelementptr inbounds %struct.ScsData, ptr %48, i32 0, i32 0
  %50 = load i32, ptr %49, align 8, !tbaa !20
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.SCS_WORK, ptr %51, i32 0, i32 16
  %53 = load ptr, ptr %52, align 8, !tbaa !19
  %54 = getelementptr inbounds %struct.ScsData, ptr %53, i32 0, i32 1
  %55 = load i32, ptr %54, align 4, !tbaa !22
  %56 = add nsw i32 %50, %55
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %17, align 4, !tbaa !9
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %63

60:                                               ; preds = %45
  %61 = load ptr, ptr %15, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.13) #4
  br label %63

63:                                               ; preds = %60, %45
  %64 = load ptr, ptr %15, align 8, !tbaa !5
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.14, i64 noundef %66) #4
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ScsResiduals, ptr %69, i32 0, i32 12
  %71 = load double, ptr %70, align 8, !tbaa !23
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str.15, double noundef %71) #4
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ScsResiduals, ptr %74, i32 0, i32 13
  %76 = load double, ptr %75, align 8, !tbaa !25
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.15, double noundef %76) #4
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ScsResiduals, ptr %79, i32 0, i32 9
  %81 = load double, ptr %80, align 8, !tbaa !26
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str.15, double noundef %81) #4
  %83 = load ptr, ptr %15, align 8, !tbaa !5
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.ScsSolution, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !27
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.SCS_WORK, ptr %87, i32 0, i32 16
  %89 = load ptr, ptr %88, align 8, !tbaa !19
  %90 = getelementptr inbounds %struct.ScsData, ptr %89, i32 0, i32 1
  %91 = load i32, ptr %90, align 4, !tbaa !22
  %92 = call double @_scs_norm_inf(ptr noundef %86, i32 noundef %91)
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.15, double noundef %92) #4
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ScsSolution, ptr %95, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !29
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.SCS_WORK, ptr %98, i32 0, i32 16
  %100 = load ptr, ptr %99, align 8, !tbaa !19
  %101 = getelementptr inbounds %struct.ScsData, ptr %100, i32 0, i32 0
  %102 = load i32, ptr %101, align 8, !tbaa !20
  %103 = call double @_scs_norm_inf(ptr noundef %97, i32 noundef %102)
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.15, double noundef %103) #4
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ScsSolution, ptr %106, i32 0, i32 2
  %108 = load ptr, ptr %107, align 8, !tbaa !30
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.SCS_WORK, ptr %109, i32 0, i32 16
  %111 = load ptr, ptr %110, align 8, !tbaa !19
  %112 = getelementptr inbounds %struct.ScsData, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 8, !tbaa !20
  %114 = call double @_scs_norm_inf(ptr noundef %108, i32 noundef %113)
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.15, double noundef %114) #4
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ScsSolution, ptr %117, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !27
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.SCS_WORK, ptr %120, i32 0, i32 16
  %122 = load ptr, ptr %121, align 8, !tbaa !19
  %123 = getelementptr inbounds %struct.ScsData, ptr %122, i32 0, i32 1
  %124 = load i32, ptr %123, align 4, !tbaa !22
  %125 = call double @_scs_norm_2(ptr noundef %119, i32 noundef %124)
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.15, double noundef %125) #4
  %127 = load ptr, ptr %15, align 8, !tbaa !5
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.ScsSolution, ptr %128, i32 0, i32 1
  %130 = load ptr, ptr %129, align 8, !tbaa !29
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.SCS_WORK, ptr %131, i32 0, i32 16
  %133 = load ptr, ptr %132, align 8, !tbaa !19
  %134 = getelementptr inbounds %struct.ScsData, ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 8, !tbaa !20
  %136 = call double @_scs_norm_2(ptr noundef %130, i32 noundef %135)
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.15, double noundef %136) #4
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.ScsSolution, ptr %139, i32 0, i32 2
  %141 = load ptr, ptr %140, align 8, !tbaa !30
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.SCS_WORK, ptr %142, i32 0, i32 16
  %144 = load ptr, ptr %143, align 8, !tbaa !19
  %145 = getelementptr inbounds %struct.ScsData, ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 8, !tbaa !20
  %147 = call double @_scs_norm_2(ptr noundef %141, i32 noundef %146)
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.15, double noundef %147) #4
  %149 = load ptr, ptr %15, align 8, !tbaa !5
  %150 = load ptr, ptr %14, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.ScsSolution, ptr %150, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8, !tbaa !27
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.SCS_WORK, ptr %153, i32 0, i32 16
  %155 = load ptr, ptr %154, align 8, !tbaa !19
  %156 = getelementptr inbounds %struct.ScsData, ptr %155, i32 0, i32 1
  %157 = load i32, ptr %156, align 4, !tbaa !22
  %158 = call double @_scs_norm_inf(ptr noundef %152, i32 noundef %157)
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str.15, double noundef %158) #4
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = load ptr, ptr %14, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.ScsSolution, ptr %161, i32 0, i32 1
  %163 = load ptr, ptr %162, align 8, !tbaa !29
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.SCS_WORK, ptr %164, i32 0, i32 16
  %166 = load ptr, ptr %165, align 8, !tbaa !19
  %167 = getelementptr inbounds %struct.ScsData, ptr %166, i32 0, i32 0
  %168 = load i32, ptr %167, align 8, !tbaa !20
  %169 = call double @_scs_norm_inf(ptr noundef %163, i32 noundef %168)
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str.15, double noundef %169) #4
  %171 = load ptr, ptr %15, align 8, !tbaa !5
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.ScsSolution, ptr %172, i32 0, i32 2
  %174 = load ptr, ptr %173, align 8, !tbaa !30
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.SCS_WORK, ptr %175, i32 0, i32 16
  %177 = load ptr, ptr %176, align 8, !tbaa !19
  %178 = getelementptr inbounds %struct.ScsData, ptr %177, i32 0, i32 0
  %179 = load i32, ptr %178, align 8, !tbaa !20
  %180 = call double @_scs_norm_inf(ptr noundef %174, i32 noundef %179)
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %171, ptr noundef @.str.15, double noundef %180) #4
  %182 = load ptr, ptr %15, align 8, !tbaa !5
  %183 = load ptr, ptr %14, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.ScsSolution, ptr %183, i32 0, i32 0
  %185 = load ptr, ptr %184, align 8, !tbaa !27
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.SCS_WORK, ptr %186, i32 0, i32 16
  %188 = load ptr, ptr %187, align 8, !tbaa !19
  %189 = getelementptr inbounds %struct.ScsData, ptr %188, i32 0, i32 1
  %190 = load i32, ptr %189, align 4, !tbaa !22
  %191 = call double @_scs_norm_2(ptr noundef %185, i32 noundef %190)
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %182, ptr noundef @.str.15, double noundef %191) #4
  %193 = load ptr, ptr %15, align 8, !tbaa !5
  %194 = load ptr, ptr %14, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.ScsSolution, ptr %194, i32 0, i32 1
  %196 = load ptr, ptr %195, align 8, !tbaa !29
  %197 = load ptr, ptr %8, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.SCS_WORK, ptr %197, i32 0, i32 16
  %199 = load ptr, ptr %198, align 8, !tbaa !19
  %200 = getelementptr inbounds %struct.ScsData, ptr %199, i32 0, i32 0
  %201 = load i32, ptr %200, align 8, !tbaa !20
  %202 = call double @_scs_norm_2(ptr noundef %196, i32 noundef %201)
  %203 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str.15, double noundef %202) #4
  %204 = load ptr, ptr %15, align 8, !tbaa !5
  %205 = load ptr, ptr %14, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.ScsSolution, ptr %205, i32 0, i32 2
  %207 = load ptr, ptr %206, align 8, !tbaa !30
  %208 = load ptr, ptr %8, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.SCS_WORK, ptr %208, i32 0, i32 16
  %210 = load ptr, ptr %209, align 8, !tbaa !19
  %211 = getelementptr inbounds %struct.ScsData, ptr %210, i32 0, i32 0
  %212 = load i32, ptr %211, align 8, !tbaa !20
  %213 = call double @_scs_norm_2(ptr noundef %207, i32 noundef %212)
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %204, ptr noundef @.str.15, double noundef %213) #4
  %215 = load ptr, ptr %15, align 8, !tbaa !5
  %216 = load ptr, ptr %11, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.ScsResiduals, ptr %216, i32 0, i32 21
  %218 = load ptr, ptr %217, align 8, !tbaa !31
  %219 = load ptr, ptr %8, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.SCS_WORK, ptr %219, i32 0, i32 16
  %221 = load ptr, ptr %220, align 8, !tbaa !19
  %222 = getelementptr inbounds %struct.ScsData, ptr %221, i32 0, i32 0
  %223 = load i32, ptr %222, align 8, !tbaa !20
  %224 = call double @_scs_norm_inf(ptr noundef %218, i32 noundef %223)
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.15, double noundef %224) #4
  %226 = load ptr, ptr %15, align 8, !tbaa !5
  %227 = load ptr, ptr %11, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.ScsResiduals, ptr %227, i32 0, i32 22
  %229 = load ptr, ptr %228, align 8, !tbaa !32
  %230 = load ptr, ptr %8, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.SCS_WORK, ptr %230, i32 0, i32 16
  %232 = load ptr, ptr %231, align 8, !tbaa !19
  %233 = getelementptr inbounds %struct.ScsData, ptr %232, i32 0, i32 1
  %234 = load i32, ptr %233, align 4, !tbaa !22
  %235 = call double @_scs_norm_inf(ptr noundef %229, i32 noundef %234)
  %236 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %226, ptr noundef @.str.15, double noundef %235) #4
  %237 = load ptr, ptr %15, align 8, !tbaa !5
  %238 = load ptr, ptr %11, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.ScsResiduals, ptr %238, i32 0, i32 21
  %240 = load ptr, ptr %239, align 8, !tbaa !31
  %241 = load ptr, ptr %8, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.SCS_WORK, ptr %241, i32 0, i32 16
  %243 = load ptr, ptr %242, align 8, !tbaa !19
  %244 = getelementptr inbounds %struct.ScsData, ptr %243, i32 0, i32 0
  %245 = load i32, ptr %244, align 8, !tbaa !20
  %246 = call double @_scs_norm_2(ptr noundef %240, i32 noundef %245)
  %247 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %237, ptr noundef @.str.15, double noundef %246) #4
  %248 = load ptr, ptr %15, align 8, !tbaa !5
  %249 = load ptr, ptr %11, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.ScsResiduals, ptr %249, i32 0, i32 22
  %251 = load ptr, ptr %250, align 8, !tbaa !32
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.SCS_WORK, ptr %252, i32 0, i32 16
  %254 = load ptr, ptr %253, align 8, !tbaa !19
  %255 = getelementptr inbounds %struct.ScsData, ptr %254, i32 0, i32 1
  %256 = load i32, ptr %255, align 4, !tbaa !22
  %257 = call double @_scs_norm_2(ptr noundef %251, i32 noundef %256)
  %258 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %248, ptr noundef @.str.15, double noundef %257) #4
  %259 = load ptr, ptr %15, align 8, !tbaa !5
  %260 = load ptr, ptr %11, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.ScsResiduals, ptr %260, i32 0, i32 14
  %262 = load double, ptr %261, align 8, !tbaa !33
  %263 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %259, ptr noundef @.str.15, double noundef %262) #4
  %264 = load ptr, ptr %15, align 8, !tbaa !5
  %265 = load ptr, ptr %11, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.ScsResiduals, ptr %265, i32 0, i32 16
  %267 = load double, ptr %266, align 8, !tbaa !34
  %268 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %264, ptr noundef @.str.15, double noundef %267) #4
  %269 = load ptr, ptr %15, align 8, !tbaa !5
  %270 = load ptr, ptr %11, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.ScsResiduals, ptr %270, i32 0, i32 15
  %272 = load double, ptr %271, align 8, !tbaa !35
  %273 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %269, ptr noundef @.str.15, double noundef %272) #4
  %274 = load ptr, ptr %15, align 8, !tbaa !5
  %275 = load ptr, ptr %11, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.ScsResiduals, ptr %275, i32 0, i32 7
  %277 = load double, ptr %276, align 8, !tbaa !36
  %278 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %274, ptr noundef @.str.15, double noundef %277) #4
  %279 = load ptr, ptr %15, align 8, !tbaa !5
  %280 = load ptr, ptr %11, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.ScsResiduals, ptr %280, i32 0, i32 8
  %282 = load double, ptr %281, align 8, !tbaa !37
  %283 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %279, ptr noundef @.str.15, double noundef %282) #4
  %284 = load ptr, ptr %15, align 8, !tbaa !5
  %285 = load ptr, ptr %11, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.ScsResiduals, ptr %285, i32 0, i32 10
  %287 = load double, ptr %286, align 8, !tbaa !38
  %288 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %284, ptr noundef @.str.15, double noundef %287) #4
  %289 = load ptr, ptr %15, align 8, !tbaa !5
  %290 = load ptr, ptr %11, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.ScsResiduals, ptr %290, i32 0, i32 11
  %292 = load double, ptr %291, align 8, !tbaa !39
  %293 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %289, ptr noundef @.str.15, double noundef %292) #4
  %294 = load ptr, ptr %15, align 8, !tbaa !5
  %295 = load ptr, ptr %12, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.ScsResiduals, ptr %295, i32 0, i32 12
  %297 = load double, ptr %296, align 8, !tbaa !23
  %298 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %294, ptr noundef @.str.15, double noundef %297) #4
  %299 = load ptr, ptr %15, align 8, !tbaa !5
  %300 = load ptr, ptr %12, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.ScsResiduals, ptr %300, i32 0, i32 13
  %302 = load double, ptr %301, align 8, !tbaa !25
  %303 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %299, ptr noundef @.str.15, double noundef %302) #4
  %304 = load ptr, ptr %15, align 8, !tbaa !5
  %305 = load ptr, ptr %12, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.ScsResiduals, ptr %305, i32 0, i32 9
  %307 = load double, ptr %306, align 8, !tbaa !26
  %308 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %304, ptr noundef @.str.15, double noundef %307) #4
  %309 = load ptr, ptr %15, align 8, !tbaa !5
  %310 = load ptr, ptr %12, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.ScsResiduals, ptr %310, i32 0, i32 21
  %312 = load ptr, ptr %311, align 8, !tbaa !31
  %313 = load ptr, ptr %8, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.SCS_WORK, ptr %313, i32 0, i32 16
  %315 = load ptr, ptr %314, align 8, !tbaa !19
  %316 = getelementptr inbounds %struct.ScsData, ptr %315, i32 0, i32 0
  %317 = load i32, ptr %316, align 8, !tbaa !20
  %318 = call double @_scs_norm_inf(ptr noundef %312, i32 noundef %317)
  %319 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %309, ptr noundef @.str.15, double noundef %318) #4
  %320 = load ptr, ptr %15, align 8, !tbaa !5
  %321 = load ptr, ptr %12, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.ScsResiduals, ptr %321, i32 0, i32 22
  %323 = load ptr, ptr %322, align 8, !tbaa !32
  %324 = load ptr, ptr %8, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.SCS_WORK, ptr %324, i32 0, i32 16
  %326 = load ptr, ptr %325, align 8, !tbaa !19
  %327 = getelementptr inbounds %struct.ScsData, ptr %326, i32 0, i32 1
  %328 = load i32, ptr %327, align 4, !tbaa !22
  %329 = call double @_scs_norm_inf(ptr noundef %323, i32 noundef %328)
  %330 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %320, ptr noundef @.str.15, double noundef %329) #4
  %331 = load ptr, ptr %15, align 8, !tbaa !5
  %332 = load ptr, ptr %12, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.ScsResiduals, ptr %332, i32 0, i32 21
  %334 = load ptr, ptr %333, align 8, !tbaa !31
  %335 = load ptr, ptr %8, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.SCS_WORK, ptr %335, i32 0, i32 16
  %337 = load ptr, ptr %336, align 8, !tbaa !19
  %338 = getelementptr inbounds %struct.ScsData, ptr %337, i32 0, i32 0
  %339 = load i32, ptr %338, align 8, !tbaa !20
  %340 = call double @_scs_norm_2(ptr noundef %334, i32 noundef %339)
  %341 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %331, ptr noundef @.str.15, double noundef %340) #4
  %342 = load ptr, ptr %15, align 8, !tbaa !5
  %343 = load ptr, ptr %12, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.ScsResiduals, ptr %343, i32 0, i32 22
  %345 = load ptr, ptr %344, align 8, !tbaa !32
  %346 = load ptr, ptr %8, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.SCS_WORK, ptr %346, i32 0, i32 16
  %348 = load ptr, ptr %347, align 8, !tbaa !19
  %349 = getelementptr inbounds %struct.ScsData, ptr %348, i32 0, i32 1
  %350 = load i32, ptr %349, align 4, !tbaa !22
  %351 = call double @_scs_norm_2(ptr noundef %345, i32 noundef %350)
  %352 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %342, ptr noundef @.str.15, double noundef %351) #4
  %353 = load ptr, ptr %15, align 8, !tbaa !5
  %354 = load ptr, ptr %12, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.ScsResiduals, ptr %354, i32 0, i32 14
  %356 = load double, ptr %355, align 8, !tbaa !33
  %357 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %353, ptr noundef @.str.15, double noundef %356) #4
  %358 = load ptr, ptr %15, align 8, !tbaa !5
  %359 = load ptr, ptr %12, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.ScsResiduals, ptr %359, i32 0, i32 16
  %361 = load double, ptr %360, align 8, !tbaa !34
  %362 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %358, ptr noundef @.str.15, double noundef %361) #4
  %363 = load ptr, ptr %15, align 8, !tbaa !5
  %364 = load ptr, ptr %12, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.ScsResiduals, ptr %364, i32 0, i32 15
  %366 = load double, ptr %365, align 8, !tbaa !35
  %367 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %363, ptr noundef @.str.15, double noundef %366) #4
  %368 = load ptr, ptr %15, align 8, !tbaa !5
  %369 = load ptr, ptr %12, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.ScsResiduals, ptr %369, i32 0, i32 7
  %371 = load double, ptr %370, align 8, !tbaa !36
  %372 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %368, ptr noundef @.str.15, double noundef %371) #4
  %373 = load ptr, ptr %15, align 8, !tbaa !5
  %374 = load ptr, ptr %12, align 8, !tbaa !5
  %375 = getelementptr inbounds %struct.ScsResiduals, ptr %374, i32 0, i32 8
  %376 = load double, ptr %375, align 8, !tbaa !37
  %377 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %373, ptr noundef @.str.15, double noundef %376) #4
  %378 = load ptr, ptr %15, align 8, !tbaa !5
  %379 = load ptr, ptr %12, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.ScsResiduals, ptr %379, i32 0, i32 10
  %381 = load double, ptr %380, align 8, !tbaa !38
  %382 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %378, ptr noundef @.str.15, double noundef %381) #4
  %383 = load ptr, ptr %15, align 8, !tbaa !5
  %384 = load ptr, ptr %12, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.ScsResiduals, ptr %384, i32 0, i32 11
  %386 = load double, ptr %385, align 8, !tbaa !39
  %387 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %383, ptr noundef @.str.15, double noundef %386) #4
  %388 = load ptr, ptr %15, align 8, !tbaa !5
  %389 = load ptr, ptr %11, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.ScsResiduals, ptr %389, i32 0, i32 17
  %391 = load ptr, ptr %390, align 8, !tbaa !40
  %392 = load ptr, ptr %8, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.SCS_WORK, ptr %392, i32 0, i32 16
  %394 = load ptr, ptr %393, align 8, !tbaa !19
  %395 = getelementptr inbounds %struct.ScsData, ptr %394, i32 0, i32 0
  %396 = load i32, ptr %395, align 8, !tbaa !20
  %397 = call double @_scs_norm_inf(ptr noundef %391, i32 noundef %396)
  %398 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %388, ptr noundef @.str.15, double noundef %397) #4
  %399 = load ptr, ptr %15, align 8, !tbaa !5
  %400 = load ptr, ptr %11, align 8, !tbaa !5
  %401 = getelementptr inbounds %struct.ScsResiduals, ptr %400, i32 0, i32 18
  %402 = load ptr, ptr %401, align 8, !tbaa !41
  %403 = load ptr, ptr %8, align 8, !tbaa !5
  %404 = getelementptr inbounds %struct.SCS_WORK, ptr %403, i32 0, i32 16
  %405 = load ptr, ptr %404, align 8, !tbaa !19
  %406 = getelementptr inbounds %struct.ScsData, ptr %405, i32 0, i32 0
  %407 = load i32, ptr %406, align 8, !tbaa !20
  %408 = call double @_scs_norm_inf(ptr noundef %402, i32 noundef %407)
  %409 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %399, ptr noundef @.str.15, double noundef %408) #4
  %410 = load ptr, ptr %15, align 8, !tbaa !5
  %411 = load ptr, ptr %11, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.ScsResiduals, ptr %411, i32 0, i32 19
  %413 = load ptr, ptr %412, align 8, !tbaa !42
  %414 = load ptr, ptr %8, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.SCS_WORK, ptr %414, i32 0, i32 16
  %416 = load ptr, ptr %415, align 8, !tbaa !19
  %417 = getelementptr inbounds %struct.ScsData, ptr %416, i32 0, i32 1
  %418 = load i32, ptr %417, align 4, !tbaa !22
  %419 = call double @_scs_norm_inf(ptr noundef %413, i32 noundef %418)
  %420 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %410, ptr noundef @.str.15, double noundef %419) #4
  %421 = load ptr, ptr %15, align 8, !tbaa !5
  %422 = load ptr, ptr %11, align 8, !tbaa !5
  %423 = getelementptr inbounds %struct.ScsResiduals, ptr %422, i32 0, i32 20
  %424 = load ptr, ptr %423, align 8, !tbaa !43
  %425 = load ptr, ptr %8, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.SCS_WORK, ptr %425, i32 0, i32 16
  %427 = load ptr, ptr %426, align 8, !tbaa !19
  %428 = getelementptr inbounds %struct.ScsData, ptr %427, i32 0, i32 1
  %429 = load i32, ptr %428, align 4, !tbaa !22
  %430 = call double @_scs_norm_inf(ptr noundef %424, i32 noundef %429)
  %431 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %421, ptr noundef @.str.15, double noundef %430) #4
  %432 = load ptr, ptr %15, align 8, !tbaa !5
  %433 = load ptr, ptr %11, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.ScsResiduals, ptr %433, i32 0, i32 1
  %435 = load double, ptr %434, align 8, !tbaa !44
  %436 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %432, ptr noundef @.str.15, double noundef %435) #4
  %437 = load ptr, ptr %15, align 8, !tbaa !5
  %438 = load ptr, ptr %11, align 8, !tbaa !5
  %439 = getelementptr inbounds %struct.ScsResiduals, ptr %438, i32 0, i32 2
  %440 = load double, ptr %439, align 8, !tbaa !45
  %441 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %437, ptr noundef @.str.15, double noundef %440) #4
  %442 = load ptr, ptr %15, align 8, !tbaa !5
  %443 = load ptr, ptr %11, align 8, !tbaa !5
  %444 = getelementptr inbounds %struct.ScsResiduals, ptr %443, i32 0, i32 3
  %445 = load double, ptr %444, align 8, !tbaa !46
  %446 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %442, ptr noundef @.str.15, double noundef %445) #4
  %447 = load ptr, ptr %15, align 8, !tbaa !5
  %448 = load ptr, ptr %11, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.ScsResiduals, ptr %448, i32 0, i32 4
  %450 = load double, ptr %449, align 8, !tbaa !47
  %451 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %447, ptr noundef @.str.15, double noundef %450) #4
  %452 = load ptr, ptr %15, align 8, !tbaa !5
  %453 = load ptr, ptr %11, align 8, !tbaa !5
  %454 = getelementptr inbounds %struct.ScsResiduals, ptr %453, i32 0, i32 5
  %455 = load double, ptr %454, align 8, !tbaa !48
  %456 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %452, ptr noundef @.str.15, double noundef %455) #4
  %457 = load ptr, ptr %15, align 8, !tbaa !5
  %458 = load ptr, ptr %11, align 8, !tbaa !5
  %459 = getelementptr inbounds %struct.ScsResiduals, ptr %458, i32 0, i32 6
  %460 = load double, ptr %459, align 8, !tbaa !49
  %461 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %457, ptr noundef @.str.15, double noundef %460) #4
  %462 = load ptr, ptr %15, align 8, !tbaa !5
  %463 = load ptr, ptr %8, align 8, !tbaa !5
  %464 = getelementptr inbounds %struct.SCS_WORK, ptr %463, i32 0, i32 11
  %465 = load ptr, ptr %464, align 8, !tbaa !50
  %466 = load ptr, ptr %8, align 8, !tbaa !5
  %467 = getelementptr inbounds %struct.SCS_WORK, ptr %466, i32 0, i32 16
  %468 = load ptr, ptr %467, align 8, !tbaa !19
  %469 = getelementptr inbounds %struct.ScsData, ptr %468, i32 0, i32 0
  %470 = load i32, ptr %469, align 8, !tbaa !20
  %471 = call double @_scs_norm_inf(ptr noundef %465, i32 noundef %470)
  %472 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %462, ptr noundef @.str.15, double noundef %471) #4
  %473 = load ptr, ptr %15, align 8, !tbaa !5
  %474 = load ptr, ptr %8, align 8, !tbaa !5
  %475 = getelementptr inbounds %struct.SCS_WORK, ptr %474, i32 0, i32 12
  %476 = load ptr, ptr %475, align 8, !tbaa !51
  %477 = load ptr, ptr %8, align 8, !tbaa !5
  %478 = getelementptr inbounds %struct.SCS_WORK, ptr %477, i32 0, i32 16
  %479 = load ptr, ptr %478, align 8, !tbaa !19
  %480 = getelementptr inbounds %struct.ScsData, ptr %479, i32 0, i32 1
  %481 = load i32, ptr %480, align 4, !tbaa !22
  %482 = call double @_scs_norm_inf(ptr noundef %476, i32 noundef %481)
  %483 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %473, ptr noundef @.str.15, double noundef %482) #4
  %484 = load ptr, ptr %15, align 8, !tbaa !5
  %485 = load ptr, ptr %8, align 8, !tbaa !5
  %486 = getelementptr inbounds %struct.SCS_WORK, ptr %485, i32 0, i32 18
  %487 = load ptr, ptr %486, align 8, !tbaa !52
  %488 = getelementptr inbounds %struct.ScsSettings, ptr %487, i32 0, i32 1
  %489 = load double, ptr %488, align 8, !tbaa !53
  %490 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %484, ptr noundef @.str.15, double noundef %489) #4
  %491 = load ptr, ptr %15, align 8, !tbaa !5
  %492 = load ptr, ptr %8, align 8, !tbaa !5
  %493 = getelementptr inbounds %struct.SCS_WORK, ptr %492, i32 0, i32 2
  %494 = load ptr, ptr %493, align 8, !tbaa !54
  %495 = load ptr, ptr %8, align 8, !tbaa !5
  %496 = getelementptr inbounds %struct.SCS_WORK, ptr %495, i32 0, i32 3
  %497 = load ptr, ptr %496, align 8, !tbaa !55
  %498 = load i32, ptr %17, align 4, !tbaa !9
  %499 = call double @_scs_norm_diff(ptr noundef %494, ptr noundef %497, i32 noundef %498)
  %500 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %491, ptr noundef @.str.15, double noundef %499) #4
  %501 = load ptr, ptr %15, align 8, !tbaa !5
  %502 = load ptr, ptr %8, align 8, !tbaa !5
  %503 = getelementptr inbounds %struct.SCS_WORK, ptr %502, i32 0, i32 4
  %504 = load ptr, ptr %503, align 8, !tbaa !56
  %505 = load ptr, ptr %8, align 8, !tbaa !5
  %506 = getelementptr inbounds %struct.SCS_WORK, ptr %505, i32 0, i32 5
  %507 = load ptr, ptr %506, align 8, !tbaa !57
  %508 = load i32, ptr %17, align 4, !tbaa !9
  %509 = call double @_scs_norm_diff(ptr noundef %504, ptr noundef %507, i32 noundef %508)
  %510 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %501, ptr noundef @.str.15, double noundef %509) #4
  %511 = load ptr, ptr %15, align 8, !tbaa !5
  %512 = load ptr, ptr %8, align 8, !tbaa !5
  %513 = getelementptr inbounds %struct.SCS_WORK, ptr %512, i32 0, i32 2
  %514 = load ptr, ptr %513, align 8, !tbaa !54
  %515 = load ptr, ptr %8, align 8, !tbaa !5
  %516 = getelementptr inbounds %struct.SCS_WORK, ptr %515, i32 0, i32 3
  %517 = load ptr, ptr %516, align 8, !tbaa !55
  %518 = load i32, ptr %17, align 4, !tbaa !9
  %519 = call double @_scs_norm_inf_diff(ptr noundef %514, ptr noundef %517, i32 noundef %518)
  %520 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %511, ptr noundef @.str.15, double noundef %519) #4
  %521 = load ptr, ptr %15, align 8, !tbaa !5
  %522 = load ptr, ptr %8, align 8, !tbaa !5
  %523 = getelementptr inbounds %struct.SCS_WORK, ptr %522, i32 0, i32 4
  %524 = load ptr, ptr %523, align 8, !tbaa !56
  %525 = load ptr, ptr %8, align 8, !tbaa !5
  %526 = getelementptr inbounds %struct.SCS_WORK, ptr %525, i32 0, i32 5
  %527 = load ptr, ptr %526, align 8, !tbaa !57
  %528 = load i32, ptr %17, align 4, !tbaa !9
  %529 = call double @_scs_norm_inf_diff(ptr noundef %524, ptr noundef %527, i32 noundef %528)
  %530 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %521, ptr noundef @.str.15, double noundef %529) #4
  %531 = load ptr, ptr %15, align 8, !tbaa !5
  %532 = load ptr, ptr %8, align 8, !tbaa !5
  %533 = getelementptr inbounds %struct.SCS_WORK, ptr %532, i32 0, i32 30
  %534 = load double, ptr %533, align 8, !tbaa !58
  %535 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %531, ptr noundef @.str.15, double noundef %534) #4
  %536 = load ptr, ptr %15, align 8, !tbaa !5
  %537 = load ptr, ptr %8, align 8, !tbaa !5
  %538 = getelementptr inbounds %struct.SCS_WORK, ptr %537, i32 0, i32 32
  %539 = load i32, ptr %538, align 4, !tbaa !59
  %540 = sext i32 %539 to i64
  %541 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %536, ptr noundef @.str.14, i64 noundef %540) #4
  %542 = load ptr, ptr %15, align 8, !tbaa !5
  %543 = load ptr, ptr %8, align 8, !tbaa !5
  %544 = getelementptr inbounds %struct.SCS_WORK, ptr %543, i32 0, i32 31
  %545 = load i32, ptr %544, align 8, !tbaa !60
  %546 = sext i32 %545 to i64
  %547 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %542, ptr noundef @.str.14, i64 noundef %546) #4
  %548 = load ptr, ptr %15, align 8, !tbaa !5
  %549 = load ptr, ptr %10, align 8, !tbaa !5
  %550 = call double @_scs_tocq(ptr noundef %549)
  %551 = fdiv double %550, 1.000000e+03
  %552 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %548, ptr noundef @.str.15, double noundef %551) #4
  %553 = load ptr, ptr %15, align 8, !tbaa !5
  %554 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %553, ptr noundef @.str.16) #4
  %555 = load ptr, ptr %15, align 8, !tbaa !5
  %556 = call i32 @fclose(ptr noundef %555)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  store i32 0, ptr %16, align 4
  br label %557

557:                                              ; preds = %63, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %558 = load i32, ptr %16, align 4
  switch i32 %558, label %560 [
    i32 0, label %559
    i32 1, label %559
  ]

559:                                              ; preds = %557, %557
  ret void

560:                                              ; preds = %557
  unreachable
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

declare double @_scs_norm_inf(ptr noundef, i32 noundef) #1

declare double @_scs_norm_2(ptr noundef, i32 noundef) #1

declare double @_scs_norm_diff(ptr noundef, ptr noundef, i32 noundef) #1

declare double @_scs_norm_inf_diff(ptr noundef, ptr noundef, i32 noundef) #1

declare double @_scs_tocq(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 176}
!12 = !{!"SCS_WORK", !13, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !13, i64 104, !13, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !13, i64 208, !10, i64 216, !10, i64 220, !10, i64 224, !13, i64 232, !10, i64 240, !10, i64 244}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !6, i64 184}
!15 = !{!12, !6, i64 192}
!16 = !{!12, !6, i64 200}
!17 = !{!18, !6, i64 104}
!18 = !{!"", !10, i64 0, !13, i64 8, !10, i64 16, !13, i64 24, !10, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !6, i64 96, !6, i64 104}
!19 = !{!12, !6, i64 128}
!20 = !{!21, !10, i64 0}
!21 = !{!"", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!22 = !{!21, !10, i64 4}
!23 = !{!24, !13, i64 96}
!24 = !{!"", !10, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176}
!25 = !{!24, !13, i64 104}
!26 = !{!24, !13, i64 72}
!27 = !{!28, !6, i64 0}
!28 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!28, !6, i64 8}
!30 = !{!28, !6, i64 16}
!31 = !{!24, !6, i64 168}
!32 = !{!24, !6, i64 176}
!33 = !{!24, !13, i64 112}
!34 = !{!24, !13, i64 128}
!35 = !{!24, !13, i64 120}
!36 = !{!24, !13, i64 56}
!37 = !{!24, !13, i64 64}
!38 = !{!24, !13, i64 80}
!39 = !{!24, !13, i64 88}
!40 = !{!24, !6, i64 136}
!41 = !{!24, !6, i64 144}
!42 = !{!24, !6, i64 152}
!43 = !{!24, !6, i64 160}
!44 = !{!24, !13, i64 8}
!45 = !{!24, !13, i64 16}
!46 = !{!24, !13, i64 24}
!47 = !{!24, !13, i64 32}
!48 = !{!24, !13, i64 40}
!49 = !{!24, !13, i64 48}
!50 = !{!12, !6, i64 88}
!51 = !{!12, !6, i64 96}
!52 = !{!12, !6, i64 144}
!53 = !{!18, !13, i64 8}
!54 = !{!12, !6, i64 16}
!55 = !{!12, !6, i64 24}
!56 = !{!12, !6, i64 32}
!57 = !{!12, !6, i64 40}
!58 = !{!12, !13, i64 232}
!59 = !{!12, !10, i64 244}
!60 = !{!12, !10, i64 240}


; 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.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [872 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #0

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @_scs_log_data_to_csv(ptr nocapture noundef readnone %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = getelementptr inbounds i8, ptr %2, i64 176
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %2, i64 184
  %9 = load ptr, ptr %8, align 8, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %2, i64 192
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %2, i64 200
  %13 = load ptr, ptr %12, align 8, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %1, i64 104
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %16 = icmp eq i32 %3, 0
  %17 = select i1 %16, ptr @.str.10, ptr @.str.11
  %18 = tail call noalias ptr @fopen(ptr noundef %15, ptr noundef nonnull %17)
  %.not = icmp eq ptr %18, null
  br i1 %.not, label %19, label %22

19:                                               ; preds = %5
  %20 = load ptr, ptr %14, align 8, !tbaa !15
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, ptr noundef %20)
  br label %309

22:                                               ; preds = %5
  %23 = getelementptr inbounds i8, ptr %2, i64 128
  %24 = load ptr, ptr %23, align 8, !tbaa !17
  %25 = load i32, ptr %24, align 8, !tbaa !18
  %26 = getelementptr inbounds i8, ptr %24, i64 4
  %27 = load i32, ptr %26, align 4, !tbaa !20
  %28 = add i32 %25, 1
  %29 = add i32 %28, %27
  br i1 %16, label %30, label %32

30:                                               ; preds = %22
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.13) #3
  br label %32

32:                                               ; preds = %30, %22
  %33 = sext i32 %3 to i64
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.14, i64 noundef %33) #3
  %35 = getelementptr inbounds i8, ptr %7, i64 96
  %36 = load double, ptr %35, align 8, !tbaa !21
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %36) #3
  %38 = getelementptr inbounds i8, ptr %7, i64 104
  %39 = load double, ptr %38, align 8, !tbaa !23
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %39) #3
  %41 = getelementptr inbounds i8, ptr %7, i64 72
  %42 = load double, ptr %41, align 8, !tbaa !24
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %42) #3
  %44 = load ptr, ptr %11, align 8, !tbaa !25
  %45 = load ptr, ptr %23, align 8, !tbaa !17
  %46 = getelementptr inbounds i8, ptr %45, i64 4
  %47 = load i32, ptr %46, align 4, !tbaa !20
  %48 = tail call double @_scs_norm_inf(ptr noundef %44, i32 noundef %47) #3
  %49 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %48) #3
  %50 = getelementptr inbounds i8, ptr %11, i64 8
  %51 = load ptr, ptr %50, align 8, !tbaa !27
  %52 = load ptr, ptr %23, align 8, !tbaa !17
  %53 = load i32, ptr %52, align 8, !tbaa !18
  %54 = tail call double @_scs_norm_inf(ptr noundef %51, i32 noundef %53) #3
  %55 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %54) #3
  %56 = getelementptr inbounds i8, ptr %11, i64 16
  %57 = load ptr, ptr %56, align 8, !tbaa !28
  %58 = load ptr, ptr %23, align 8, !tbaa !17
  %59 = load i32, ptr %58, align 8, !tbaa !18
  %60 = tail call double @_scs_norm_inf(ptr noundef %57, i32 noundef %59) #3
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %60) #3
  %62 = load ptr, ptr %11, align 8, !tbaa !25
  %63 = load ptr, ptr %23, align 8, !tbaa !17
  %64 = getelementptr inbounds i8, ptr %63, i64 4
  %65 = load i32, ptr %64, align 4, !tbaa !20
  %66 = tail call double @_scs_norm_2(ptr noundef %62, i32 noundef %65) #3
  %67 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %66) #3
  %68 = load ptr, ptr %50, align 8, !tbaa !27
  %69 = load ptr, ptr %23, align 8, !tbaa !17
  %70 = load i32, ptr %69, align 8, !tbaa !18
  %71 = tail call double @_scs_norm_2(ptr noundef %68, i32 noundef %70) #3
  %72 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %71) #3
  %73 = load ptr, ptr %56, align 8, !tbaa !28
  %74 = load ptr, ptr %23, align 8, !tbaa !17
  %75 = load i32, ptr %74, align 8, !tbaa !18
  %76 = tail call double @_scs_norm_2(ptr noundef %73, i32 noundef %75) #3
  %77 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %76) #3
  %78 = load ptr, ptr %13, align 8, !tbaa !25
  %79 = load ptr, ptr %23, align 8, !tbaa !17
  %80 = getelementptr inbounds i8, ptr %79, i64 4
  %81 = load i32, ptr %80, align 4, !tbaa !20
  %82 = tail call double @_scs_norm_inf(ptr noundef %78, i32 noundef %81) #3
  %83 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %82) #3
  %84 = getelementptr inbounds i8, ptr %13, i64 8
  %85 = load ptr, ptr %84, align 8, !tbaa !27
  %86 = load ptr, ptr %23, align 8, !tbaa !17
  %87 = load i32, ptr %86, align 8, !tbaa !18
  %88 = tail call double @_scs_norm_inf(ptr noundef %85, i32 noundef %87) #3
  %89 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %88) #3
  %90 = getelementptr inbounds i8, ptr %13, i64 16
  %91 = load ptr, ptr %90, align 8, !tbaa !28
  %92 = load ptr, ptr %23, align 8, !tbaa !17
  %93 = load i32, ptr %92, align 8, !tbaa !18
  %94 = tail call double @_scs_norm_inf(ptr noundef %91, i32 noundef %93) #3
  %95 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %94) #3
  %96 = load ptr, ptr %13, align 8, !tbaa !25
  %97 = load ptr, ptr %23, align 8, !tbaa !17
  %98 = getelementptr inbounds i8, ptr %97, i64 4
  %99 = load i32, ptr %98, align 4, !tbaa !20
  %100 = tail call double @_scs_norm_2(ptr noundef %96, i32 noundef %99) #3
  %101 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %100) #3
  %102 = load ptr, ptr %84, align 8, !tbaa !27
  %103 = load ptr, ptr %23, align 8, !tbaa !17
  %104 = load i32, ptr %103, align 8, !tbaa !18
  %105 = tail call double @_scs_norm_2(ptr noundef %102, i32 noundef %104) #3
  %106 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %105) #3
  %107 = load ptr, ptr %90, align 8, !tbaa !28
  %108 = load ptr, ptr %23, align 8, !tbaa !17
  %109 = load i32, ptr %108, align 8, !tbaa !18
  %110 = tail call double @_scs_norm_2(ptr noundef %107, i32 noundef %109) #3
  %111 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %110) #3
  %112 = getelementptr inbounds i8, ptr %7, i64 168
  %113 = load ptr, ptr %112, align 8, !tbaa !29
  %114 = load ptr, ptr %23, align 8, !tbaa !17
  %115 = load i32, ptr %114, align 8, !tbaa !18
  %116 = tail call double @_scs_norm_inf(ptr noundef %113, i32 noundef %115) #3
  %117 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %116) #3
  %118 = getelementptr inbounds i8, ptr %7, i64 176
  %119 = load ptr, ptr %118, align 8, !tbaa !30
  %120 = load ptr, ptr %23, align 8, !tbaa !17
  %121 = getelementptr inbounds i8, ptr %120, i64 4
  %122 = load i32, ptr %121, align 4, !tbaa !20
  %123 = tail call double @_scs_norm_inf(ptr noundef %119, i32 noundef %122) #3
  %124 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %123) #3
  %125 = load ptr, ptr %112, align 8, !tbaa !29
  %126 = load ptr, ptr %23, align 8, !tbaa !17
  %127 = load i32, ptr %126, align 8, !tbaa !18
  %128 = tail call double @_scs_norm_2(ptr noundef %125, i32 noundef %127) #3
  %129 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %128) #3
  %130 = load ptr, ptr %118, align 8, !tbaa !30
  %131 = load ptr, ptr %23, align 8, !tbaa !17
  %132 = getelementptr inbounds i8, ptr %131, i64 4
  %133 = load i32, ptr %132, align 4, !tbaa !20
  %134 = tail call double @_scs_norm_2(ptr noundef %130, i32 noundef %133) #3
  %135 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %134) #3
  %136 = getelementptr inbounds i8, ptr %7, i64 112
  %137 = load double, ptr %136, align 8, !tbaa !31
  %138 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %137) #3
  %139 = getelementptr inbounds i8, ptr %7, i64 128
  %140 = load double, ptr %139, align 8, !tbaa !32
  %141 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %140) #3
  %142 = getelementptr inbounds i8, ptr %7, i64 120
  %143 = load double, ptr %142, align 8, !tbaa !33
  %144 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %143) #3
  %145 = getelementptr inbounds i8, ptr %7, i64 56
  %146 = load double, ptr %145, align 8, !tbaa !34
  %147 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %146) #3
  %148 = getelementptr inbounds i8, ptr %7, i64 64
  %149 = load double, ptr %148, align 8, !tbaa !35
  %150 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %149) #3
  %151 = getelementptr inbounds i8, ptr %7, i64 80
  %152 = load double, ptr %151, align 8, !tbaa !36
  %153 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %152) #3
  %154 = getelementptr inbounds i8, ptr %7, i64 88
  %155 = load double, ptr %154, align 8, !tbaa !37
  %156 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %155) #3
  %157 = getelementptr inbounds i8, ptr %9, i64 96
  %158 = load double, ptr %157, align 8, !tbaa !21
  %159 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %158) #3
  %160 = getelementptr inbounds i8, ptr %9, i64 104
  %161 = load double, ptr %160, align 8, !tbaa !23
  %162 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %161) #3
  %163 = getelementptr inbounds i8, ptr %9, i64 72
  %164 = load double, ptr %163, align 8, !tbaa !24
  %165 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %164) #3
  %166 = getelementptr inbounds i8, ptr %9, i64 168
  %167 = load ptr, ptr %166, align 8, !tbaa !29
  %168 = load ptr, ptr %23, align 8, !tbaa !17
  %169 = load i32, ptr %168, align 8, !tbaa !18
  %170 = tail call double @_scs_norm_inf(ptr noundef %167, i32 noundef %169) #3
  %171 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %170) #3
  %172 = getelementptr inbounds i8, ptr %9, i64 176
  %173 = load ptr, ptr %172, align 8, !tbaa !30
  %174 = load ptr, ptr %23, align 8, !tbaa !17
  %175 = getelementptr inbounds i8, ptr %174, i64 4
  %176 = load i32, ptr %175, align 4, !tbaa !20
  %177 = tail call double @_scs_norm_inf(ptr noundef %173, i32 noundef %176) #3
  %178 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %177) #3
  %179 = load ptr, ptr %166, align 8, !tbaa !29
  %180 = load ptr, ptr %23, align 8, !tbaa !17
  %181 = load i32, ptr %180, align 8, !tbaa !18
  %182 = tail call double @_scs_norm_2(ptr noundef %179, i32 noundef %181) #3
  %183 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %182) #3
  %184 = load ptr, ptr %172, align 8, !tbaa !30
  %185 = load ptr, ptr %23, align 8, !tbaa !17
  %186 = getelementptr inbounds i8, ptr %185, i64 4
  %187 = load i32, ptr %186, align 4, !tbaa !20
  %188 = tail call double @_scs_norm_2(ptr noundef %184, i32 noundef %187) #3
  %189 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %188) #3
  %190 = getelementptr inbounds i8, ptr %9, i64 112
  %191 = load double, ptr %190, align 8, !tbaa !31
  %192 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %191) #3
  %193 = getelementptr inbounds i8, ptr %9, i64 128
  %194 = load double, ptr %193, align 8, !tbaa !32
  %195 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %194) #3
  %196 = getelementptr inbounds i8, ptr %9, i64 120
  %197 = load double, ptr %196, align 8, !tbaa !33
  %198 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %197) #3
  %199 = getelementptr inbounds i8, ptr %9, i64 56
  %200 = load double, ptr %199, align 8, !tbaa !34
  %201 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %200) #3
  %202 = getelementptr inbounds i8, ptr %9, i64 64
  %203 = load double, ptr %202, align 8, !tbaa !35
  %204 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %203) #3
  %205 = getelementptr inbounds i8, ptr %9, i64 80
  %206 = load double, ptr %205, align 8, !tbaa !36
  %207 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %206) #3
  %208 = getelementptr inbounds i8, ptr %9, i64 88
  %209 = load double, ptr %208, align 8, !tbaa !37
  %210 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %209) #3
  %211 = getelementptr inbounds i8, ptr %7, i64 136
  %212 = load ptr, ptr %211, align 8, !tbaa !38
  %213 = load ptr, ptr %23, align 8, !tbaa !17
  %214 = load i32, ptr %213, align 8, !tbaa !18
  %215 = tail call double @_scs_norm_inf(ptr noundef %212, i32 noundef %214) #3
  %216 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %215) #3
  %217 = getelementptr inbounds i8, ptr %7, i64 144
  %218 = load ptr, ptr %217, align 8, !tbaa !39
  %219 = load ptr, ptr %23, align 8, !tbaa !17
  %220 = load i32, ptr %219, align 8, !tbaa !18
  %221 = tail call double @_scs_norm_inf(ptr noundef %218, i32 noundef %220) #3
  %222 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %221) #3
  %223 = getelementptr inbounds i8, ptr %7, i64 152
  %224 = load ptr, ptr %223, align 8, !tbaa !40
  %225 = load ptr, ptr %23, align 8, !tbaa !17
  %226 = getelementptr inbounds i8, ptr %225, i64 4
  %227 = load i32, ptr %226, align 4, !tbaa !20
  %228 = tail call double @_scs_norm_inf(ptr noundef %224, i32 noundef %227) #3
  %229 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %228) #3
  %230 = getelementptr inbounds i8, ptr %7, i64 160
  %231 = load ptr, ptr %230, align 8, !tbaa !41
  %232 = load ptr, ptr %23, align 8, !tbaa !17
  %233 = getelementptr inbounds i8, ptr %232, i64 4
  %234 = load i32, ptr %233, align 4, !tbaa !20
  %235 = tail call double @_scs_norm_inf(ptr noundef %231, i32 noundef %234) #3
  %236 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %235) #3
  %237 = getelementptr inbounds i8, ptr %7, i64 8
  %238 = load double, ptr %237, align 8, !tbaa !42
  %239 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %238) #3
  %240 = getelementptr inbounds i8, ptr %7, i64 16
  %241 = load double, ptr %240, align 8, !tbaa !43
  %242 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %241) #3
  %243 = getelementptr inbounds i8, ptr %7, i64 24
  %244 = load double, ptr %243, align 8, !tbaa !44
  %245 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %244) #3
  %246 = getelementptr inbounds i8, ptr %7, i64 32
  %247 = load double, ptr %246, align 8, !tbaa !45
  %248 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %247) #3
  %249 = getelementptr inbounds i8, ptr %7, i64 40
  %250 = load double, ptr %249, align 8, !tbaa !46
  %251 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %250) #3
  %252 = getelementptr inbounds i8, ptr %7, i64 48
  %253 = load double, ptr %252, align 8, !tbaa !47
  %254 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %253) #3
  %255 = getelementptr inbounds i8, ptr %2, i64 88
  %256 = load ptr, ptr %255, align 8, !tbaa !48
  %257 = load ptr, ptr %23, align 8, !tbaa !17
  %258 = load i32, ptr %257, align 8, !tbaa !18
  %259 = tail call double @_scs_norm_inf(ptr noundef %256, i32 noundef %258) #3
  %260 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %259) #3
  %261 = getelementptr inbounds i8, ptr %2, i64 96
  %262 = load ptr, ptr %261, align 8, !tbaa !49
  %263 = load ptr, ptr %23, align 8, !tbaa !17
  %264 = getelementptr inbounds i8, ptr %263, i64 4
  %265 = load i32, ptr %264, align 4, !tbaa !20
  %266 = tail call double @_scs_norm_inf(ptr noundef %262, i32 noundef %265) #3
  %267 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %266) #3
  %268 = getelementptr inbounds i8, ptr %2, i64 144
  %269 = load ptr, ptr %268, align 8, !tbaa !50
  %270 = getelementptr inbounds i8, ptr %269, i64 8
  %271 = load double, ptr %270, align 8, !tbaa !51
  %272 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %271) #3
  %273 = getelementptr inbounds i8, ptr %2, i64 16
  %274 = load ptr, ptr %273, align 8, !tbaa !52
  %275 = getelementptr inbounds i8, ptr %2, i64 24
  %276 = load ptr, ptr %275, align 8, !tbaa !53
  %277 = tail call double @_scs_norm_diff(ptr noundef %274, ptr noundef %276, i32 noundef %29) #3
  %278 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %277) #3
  %279 = getelementptr inbounds i8, ptr %2, i64 32
  %280 = load ptr, ptr %279, align 8, !tbaa !54
  %281 = getelementptr inbounds i8, ptr %2, i64 40
  %282 = load ptr, ptr %281, align 8, !tbaa !55
  %283 = tail call double @_scs_norm_diff(ptr noundef %280, ptr noundef %282, i32 noundef %29) #3
  %284 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %283) #3
  %285 = load ptr, ptr %273, align 8, !tbaa !52
  %286 = load ptr, ptr %275, align 8, !tbaa !53
  %287 = tail call double @_scs_norm_inf_diff(ptr noundef %285, ptr noundef %286, i32 noundef %29) #3
  %288 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %287) #3
  %289 = load ptr, ptr %279, align 8, !tbaa !54
  %290 = load ptr, ptr %281, align 8, !tbaa !55
  %291 = tail call double @_scs_norm_inf_diff(ptr noundef %289, ptr noundef %290, i32 noundef %29) #3
  %292 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %291) #3
  %293 = getelementptr inbounds i8, ptr %2, i64 232
  %294 = load double, ptr %293, align 8, !tbaa !56
  %295 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %294) #3
  %296 = getelementptr inbounds i8, ptr %2, i64 244
  %297 = load i32, ptr %296, align 4, !tbaa !57
  %298 = sext i32 %297 to i64
  %299 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.14, i64 noundef %298) #3
  %300 = getelementptr inbounds i8, ptr %2, i64 240
  %301 = load i32, ptr %300, align 8, !tbaa !58
  %302 = sext i32 %301 to i64
  %303 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.14, i64 noundef %302) #3
  %304 = tail call double @_scs_tocq(ptr noundef %4) #3
  %305 = fdiv double %304, 1.000000e+03
  %306 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, double noundef %305) #3
  %307 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.16) #3
  %308 = tail call i32 @fclose(ptr noundef nonnull %18)
  br label %309

309:                                              ; preds = %32, %19
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

declare double @_scs_norm_inf(ptr noundef, i32 noundef) local_unnamed_addr #2

declare double @_scs_norm_2(ptr noundef, i32 noundef) local_unnamed_addr #2

declare double @_scs_norm_diff(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare double @_scs_norm_inf_diff(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare double @_scs_tocq(ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { 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 = { "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 = { 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, !11, i64 176}
!6 = !{!"SCS_WORK", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !7, i64 104, !7, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !7, i64 208, !10, i64 216, !10, i64 220, !10, i64 224, !7, i64 232, !10, i64 240, !10, i64 244}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !11, i64 184}
!13 = !{!6, !11, i64 192}
!14 = !{!6, !11, i64 200}
!15 = !{!16, !11, i64 104}
!16 = !{!"", !10, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !11, i64 96, !11, i64 104}
!17 = !{!6, !11, i64 128}
!18 = !{!19, !10, i64 0}
!19 = !{!"", !10, i64 0, !10, i64 4, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!20 = !{!19, !10, i64 4}
!21 = !{!22, !7, i64 96}
!22 = !{!"", !10, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176}
!23 = !{!22, !7, i64 104}
!24 = !{!22, !7, i64 72}
!25 = !{!26, !11, i64 0}
!26 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16}
!27 = !{!26, !11, i64 8}
!28 = !{!26, !11, i64 16}
!29 = !{!22, !11, i64 168}
!30 = !{!22, !11, i64 176}
!31 = !{!22, !7, i64 112}
!32 = !{!22, !7, i64 128}
!33 = !{!22, !7, i64 120}
!34 = !{!22, !7, i64 56}
!35 = !{!22, !7, i64 64}
!36 = !{!22, !7, i64 80}
!37 = !{!22, !7, i64 88}
!38 = !{!22, !11, i64 136}
!39 = !{!22, !11, i64 144}
!40 = !{!22, !11, i64 152}
!41 = !{!22, !11, i64 160}
!42 = !{!22, !7, i64 8}
!43 = !{!22, !7, i64 16}
!44 = !{!22, !7, i64 24}
!45 = !{!22, !7, i64 32}
!46 = !{!22, !7, i64 40}
!47 = !{!22, !7, i64 48}
!48 = !{!6, !11, i64 88}
!49 = !{!6, !11, i64 96}
!50 = !{!6, !11, i64 144}
!51 = !{!16, !7, i64 8}
!52 = !{!6, !11, i64 16}
!53 = !{!6, !11, i64 24}
!54 = !{!6, !11, i64 32}
!55 = !{!6, !11, i64 40}
!56 = !{!6, !7, i64 232}
!57 = !{!6, !10, i64 244}
!58 = !{!6, !10, i64 240}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass