; LLVM IR from bondhugula/pluto :: examples/lbm/fpc/d2q9 (fpc_d2q9)

; 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.timeval = type { i64, i64 }

@omega = external dso_local global double, align 8
@circle_R2 = external dso_local global double, align 8
@.str = external hidden unnamed_addr constant [167 x i8], align 1
@grid = external dso_local global [2 x [262 x [1028 x [9 x double]]]], align 16

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.timeval, align 8
  %9 = alloca %struct.timeval, align 8
  %10 = alloca %struct.timeval, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i16, align 2
  %14 = alloca i16, align 2
  %15 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store double 0x4203880000000000, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 -1, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store double 0.000000e+00, ptr %11, align 8, !tbaa !5
  store double 0x3FF1C71C71C71C72, ptr @omega, align 8, !tbaa !5
  store double 0x40861C7AE147AE15, ptr @circle_R2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store double 3.045000e+00, ptr %12, align 8, !tbaa !5
  %16 = load double, ptr @omega, align 8, !tbaa !5
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1024, i32 noundef 256, double noundef 2.621440e+02, i32 noundef 40000, double noundef %16)
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %108, %0
  %19 = load i32, ptr %3, align 4, !tbaa !9
  %20 = icmp slt i32 %19, 262
  br i1 %20, label %21, label %111

21:                                               ; preds = %18
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %104, %21
  %23 = load i32, ptr %4, align 4, !tbaa !9
  %24 = icmp slt i32 %23, 1028
  br i1 %24, label %25, label %107

25:                                               ; preds = %22
  %26 = load double, ptr %12, align 8, !tbaa !5
  %27 = fmul double 0x3FDC71C71C71C71C, %26
  %28 = load i32, ptr %3, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr @grid, i64 0, i64 %29
  %31 = load i32, ptr %4, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [1028 x [9 x double]], ptr %30, i64 0, i64 %32
  %34 = getelementptr inbounds [9 x double], ptr %33, i64 0, i64 0
  store double %27, ptr %34, align 8, !tbaa !5
  %35 = load double, ptr %12, align 8, !tbaa !5
  %36 = fmul double 0x3FDC71C71C71C71C, %35
  %37 = load i32, ptr %3, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr getelementptr inbounds ([2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 1), i64 0, i64 %38
  %40 = load i32, ptr %4, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [1028 x [9 x double]], ptr %39, i64 0, i64 %41
  %43 = getelementptr inbounds [9 x double], ptr %42, i64 0, i64 0
  store double %36, ptr %43, align 8, !tbaa !5
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %70, %25
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = icmp slt i32 %45, 5
  br i1 %46, label %47, label %73

47:                                               ; preds = %44
  %48 = load double, ptr %12, align 8, !tbaa !5
  %49 = fmul double 0x3FBC71C71C71C71C, %48
  %50 = load i32, ptr %3, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr @grid, i64 0, i64 %51
  %53 = load i32, ptr %4, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [1028 x [9 x double]], ptr %52, i64 0, i64 %54
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [9 x double], ptr %55, i64 0, i64 %57
  store double %49, ptr %58, align 8, !tbaa !5
  %59 = load double, ptr %12, align 8, !tbaa !5
  %60 = fmul double 0x3FBC71C71C71C71C, %59
  %61 = load i32, ptr %3, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr getelementptr inbounds ([2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 1), i64 0, i64 %62
  %64 = load i32, ptr %4, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [1028 x [9 x double]], ptr %63, i64 0, i64 %65
  %67 = load i32, ptr %5, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [9 x double], ptr %66, i64 0, i64 %68
  store double %60, ptr %69, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %47
  %71 = load i32, ptr %5, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %5, align 4, !tbaa !9
  br label %44, !llvm.loop !11

73:                                               ; preds = %44
  store i32 5, ptr %5, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %100, %73
  %75 = load i32, ptr %5, align 4, !tbaa !9
  %76 = icmp slt i32 %75, 9
  br i1 %76, label %77, label %103

77:                                               ; preds = %74
  %78 = load double, ptr %12, align 8, !tbaa !5
  %79 = fmul double 0x3F9C71C71C71C71C, %78
  %80 = load i32, ptr %3, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr @grid, i64 0, i64 %81
  %83 = load i32, ptr %4, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [1028 x [9 x double]], ptr %82, i64 0, i64 %84
  %86 = load i32, ptr %5, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [9 x double], ptr %85, i64 0, i64 %87
  store double %79, ptr %88, align 8, !tbaa !5
  %89 = load double, ptr %12, align 8, !tbaa !5
  %90 = fmul double 0x3F9C71C71C71C71C, %89
  %91 = load i32, ptr %3, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr getelementptr inbounds ([2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 1), i64 0, i64 %92
  %94 = load i32, ptr %4, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [1028 x [9 x double]], ptr %93, i64 0, i64 %95
  %97 = load i32, ptr %5, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [9 x double], ptr %96, i64 0, i64 %98
  store double %90, ptr %99, align 8, !tbaa !5
  br label %100

100:                                              ; preds = %77
  %101 = load i32, ptr %5, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %5, align 4, !tbaa !9
  br label %74, !llvm.loop !13

103:                                              ; preds = %74
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %4, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %4, align 4, !tbaa !9
  br label %22, !llvm.loop !14

107:                                              ; preds = %22
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %3, align 4, !tbaa !9
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %3, align 4, !tbaa !9
  br label %18, !llvm.loop !15

111:                                              ; preds = %18
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #3
  store i16 1026, ptr %13, align 2, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #3
  store i16 259, ptr %14, align 2, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 40000, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %372, %111
  %113 = load i32, ptr %2, align 4, !tbaa !9
  %114 = load i32, ptr %15, align 4, !tbaa !9
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %116, label %375

116:                                              ; preds = %112
  store i32 3, ptr %3, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %368, %116
  %118 = load i32, ptr %3, align 4, !tbaa !9
  %119 = load i16, ptr %14, align 2, !tbaa !16
  %120 = sext i16 %119 to i32
  %121 = icmp slt i32 %118, %120
  br i1 %121, label %122, label %371

122:                                              ; preds = %117
  store i32 2, ptr %4, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %364, %122
  %124 = load i32, ptr %4, align 4, !tbaa !9
  %125 = load i16, ptr %13, align 2, !tbaa !16
  %126 = sext i16 %125 to i32
  %127 = icmp slt i32 %124, %126
  br i1 %127, label %128, label %367

128:                                              ; preds = %123
  %129 = load i32, ptr %2, align 4, !tbaa !9
  %130 = srem i32 %129, 2
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %131
  %133 = load i32, ptr %3, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %132, i64 0, i64 %134
  %136 = load i32, ptr %4, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [1028 x [9 x double]], ptr %135, i64 0, i64 %137
  %139 = getelementptr inbounds [9 x double], ptr %138, i64 0, i64 0
  %140 = load double, ptr %139, align 8, !tbaa !5
  %141 = load i32, ptr %2, align 4, !tbaa !9
  %142 = srem i32 %141, 2
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %143
  %145 = load i32, ptr %3, align 4, !tbaa !9
  %146 = sub nsw i32 %145, 1
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %144, i64 0, i64 %147
  %149 = load i32, ptr %4, align 4, !tbaa !9
  %150 = add nsw i32 %149, 0
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [1028 x [9 x double]], ptr %148, i64 0, i64 %151
  %153 = getelementptr inbounds [9 x double], ptr %152, i64 0, i64 3
  %154 = load double, ptr %153, align 8, !tbaa !5
  %155 = load i32, ptr %2, align 4, !tbaa !9
  %156 = srem i32 %155, 2
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %157
  %159 = load i32, ptr %3, align 4, !tbaa !9
  %160 = add nsw i32 %159, 1
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %158, i64 0, i64 %161
  %163 = load i32, ptr %4, align 4, !tbaa !9
  %164 = add nsw i32 %163, 0
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [1028 x [9 x double]], ptr %162, i64 0, i64 %165
  %167 = getelementptr inbounds [9 x double], ptr %166, i64 0, i64 4
  %168 = load double, ptr %167, align 8, !tbaa !5
  %169 = load i32, ptr %2, align 4, !tbaa !9
  %170 = srem i32 %169, 2
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %171
  %173 = load i32, ptr %3, align 4, !tbaa !9
  %174 = add nsw i32 %173, 0
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %172, i64 0, i64 %175
  %177 = load i32, ptr %4, align 4, !tbaa !9
  %178 = sub nsw i32 %177, 1
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [1028 x [9 x double]], ptr %176, i64 0, i64 %179
  %181 = getelementptr inbounds [9 x double], ptr %180, i64 0, i64 1
  %182 = load double, ptr %181, align 8, !tbaa !5
  %183 = load i32, ptr %2, align 4, !tbaa !9
  %184 = srem i32 %183, 2
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %185
  %187 = load i32, ptr %3, align 4, !tbaa !9
  %188 = add nsw i32 %187, 0
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %186, i64 0, i64 %189
  %191 = load i32, ptr %4, align 4, !tbaa !9
  %192 = add nsw i32 %191, 1
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [1028 x [9 x double]], ptr %190, i64 0, i64 %193
  %195 = getelementptr inbounds [9 x double], ptr %194, i64 0, i64 2
  %196 = load double, ptr %195, align 8, !tbaa !5
  %197 = load i32, ptr %2, align 4, !tbaa !9
  %198 = srem i32 %197, 2
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %199
  %201 = load i32, ptr %3, align 4, !tbaa !9
  %202 = sub nsw i32 %201, 1
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %200, i64 0, i64 %203
  %205 = load i32, ptr %4, align 4, !tbaa !9
  %206 = sub nsw i32 %205, 1
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [1028 x [9 x double]], ptr %204, i64 0, i64 %207
  %209 = getelementptr inbounds [9 x double], ptr %208, i64 0, i64 5
  %210 = load double, ptr %209, align 8, !tbaa !5
  %211 = load i32, ptr %2, align 4, !tbaa !9
  %212 = srem i32 %211, 2
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %213
  %215 = load i32, ptr %3, align 4, !tbaa !9
  %216 = sub nsw i32 %215, 1
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %214, i64 0, i64 %217
  %219 = load i32, ptr %4, align 4, !tbaa !9
  %220 = add nsw i32 %219, 1
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [1028 x [9 x double]], ptr %218, i64 0, i64 %221
  %223 = getelementptr inbounds [9 x double], ptr %222, i64 0, i64 6
  %224 = load double, ptr %223, align 8, !tbaa !5
  %225 = load i32, ptr %2, align 4, !tbaa !9
  %226 = srem i32 %225, 2
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %227
  %229 = load i32, ptr %3, align 4, !tbaa !9
  %230 = add nsw i32 %229, 1
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %228, i64 0, i64 %231
  %233 = load i32, ptr %4, align 4, !tbaa !9
  %234 = sub nsw i32 %233, 1
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [1028 x [9 x double]], ptr %232, i64 0, i64 %235
  %237 = getelementptr inbounds [9 x double], ptr %236, i64 0, i64 7
  %238 = load double, ptr %237, align 8, !tbaa !5
  %239 = load i32, ptr %2, align 4, !tbaa !9
  %240 = srem i32 %239, 2
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %241
  %243 = load i32, ptr %3, align 4, !tbaa !9
  %244 = add nsw i32 %243, 1
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %242, i64 0, i64 %245
  %247 = load i32, ptr %4, align 4, !tbaa !9
  %248 = add nsw i32 %247, 1
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [1028 x [9 x double]], ptr %246, i64 0, i64 %249
  %251 = getelementptr inbounds [9 x double], ptr %250, i64 0, i64 8
  %252 = load double, ptr %251, align 8, !tbaa !5
  %253 = load i32, ptr %2, align 4, !tbaa !9
  %254 = add nsw i32 %253, 1
  %255 = srem i32 %254, 2
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %256
  %258 = load i32, ptr %3, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %257, i64 0, i64 %259
  %261 = load i32, ptr %4, align 4, !tbaa !9
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [1028 x [9 x double]], ptr %260, i64 0, i64 %262
  %264 = getelementptr inbounds [9 x double], ptr %263, i64 0, i64 0
  %265 = load i32, ptr %2, align 4, !tbaa !9
  %266 = add nsw i32 %265, 1
  %267 = srem i32 %266, 2
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %268
  %270 = load i32, ptr %3, align 4, !tbaa !9
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %269, i64 0, i64 %271
  %273 = load i32, ptr %4, align 4, !tbaa !9
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [1028 x [9 x double]], ptr %272, i64 0, i64 %274
  %276 = getelementptr inbounds [9 x double], ptr %275, i64 0, i64 3
  %277 = load i32, ptr %2, align 4, !tbaa !9
  %278 = add nsw i32 %277, 1
  %279 = srem i32 %278, 2
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %280
  %282 = load i32, ptr %3, align 4, !tbaa !9
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %281, i64 0, i64 %283
  %285 = load i32, ptr %4, align 4, !tbaa !9
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [1028 x [9 x double]], ptr %284, i64 0, i64 %286
  %288 = getelementptr inbounds [9 x double], ptr %287, i64 0, i64 4
  %289 = load i32, ptr %2, align 4, !tbaa !9
  %290 = add nsw i32 %289, 1
  %291 = srem i32 %290, 2
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %292
  %294 = load i32, ptr %3, align 4, !tbaa !9
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %293, i64 0, i64 %295
  %297 = load i32, ptr %4, align 4, !tbaa !9
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [1028 x [9 x double]], ptr %296, i64 0, i64 %298
  %300 = getelementptr inbounds [9 x double], ptr %299, i64 0, i64 1
  %301 = load i32, ptr %2, align 4, !tbaa !9
  %302 = add nsw i32 %301, 1
  %303 = srem i32 %302, 2
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %304
  %306 = load i32, ptr %3, align 4, !tbaa !9
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %305, i64 0, i64 %307
  %309 = load i32, ptr %4, align 4, !tbaa !9
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [1028 x [9 x double]], ptr %308, i64 0, i64 %310
  %312 = getelementptr inbounds [9 x double], ptr %311, i64 0, i64 2
  %313 = load i32, ptr %2, align 4, !tbaa !9
  %314 = add nsw i32 %313, 1
  %315 = srem i32 %314, 2
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %316
  %318 = load i32, ptr %3, align 4, !tbaa !9
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %317, i64 0, i64 %319
  %321 = load i32, ptr %4, align 4, !tbaa !9
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [1028 x [9 x double]], ptr %320, i64 0, i64 %322
  %324 = getelementptr inbounds [9 x double], ptr %323, i64 0, i64 5
  %325 = load i32, ptr %2, align 4, !tbaa !9
  %326 = add nsw i32 %325, 1
  %327 = srem i32 %326, 2
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %328
  %330 = load i32, ptr %3, align 4, !tbaa !9
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %329, i64 0, i64 %331
  %333 = load i32, ptr %4, align 4, !tbaa !9
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [1028 x [9 x double]], ptr %332, i64 0, i64 %334
  %336 = getelementptr inbounds [9 x double], ptr %335, i64 0, i64 6
  %337 = load i32, ptr %2, align 4, !tbaa !9
  %338 = add nsw i32 %337, 1
  %339 = srem i32 %338, 2
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %340
  %342 = load i32, ptr %3, align 4, !tbaa !9
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %341, i64 0, i64 %343
  %345 = load i32, ptr %4, align 4, !tbaa !9
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds [1028 x [9 x double]], ptr %344, i64 0, i64 %346
  %348 = getelementptr inbounds [9 x double], ptr %347, i64 0, i64 7
  %349 = load i32, ptr %2, align 4, !tbaa !9
  %350 = add nsw i32 %349, 1
  %351 = srem i32 %350, 2
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %352
  %354 = load i32, ptr %3, align 4, !tbaa !9
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr %353, i64 0, i64 %355
  %357 = load i32, ptr %4, align 4, !tbaa !9
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds [1028 x [9 x double]], ptr %356, i64 0, i64 %358
  %360 = getelementptr inbounds [9 x double], ptr %359, i64 0, i64 8
  %361 = load i32, ptr %2, align 4, !tbaa !9
  %362 = load i32, ptr %3, align 4, !tbaa !9
  %363 = load i32, ptr %4, align 4, !tbaa !9
  call void @lbm_kernel(double noundef %140, double noundef %154, double noundef %168, double noundef %182, double noundef %196, double noundef %210, double noundef %224, double noundef %238, double noundef %252, ptr noundef %264, ptr noundef %276, ptr noundef %288, ptr noundef %300, ptr noundef %312, ptr noundef %324, ptr noundef %336, ptr noundef %348, ptr noundef %360, i32 noundef %361, i32 noundef %362, i32 noundef %363)
  br label %364

364:                                              ; preds = %128
  %365 = load i32, ptr %4, align 4, !tbaa !9
  %366 = add nsw i32 %365, 1
  store i32 %366, ptr %4, align 4, !tbaa !9
  br label %123, !llvm.loop !18

367:                                              ; preds = %123
  br label %368

368:                                              ; preds = %367
  %369 = load i32, ptr %3, align 4, !tbaa !9
  %370 = add nsw i32 %369, 1
  store i32 %370, ptr %3, align 4, !tbaa !9
  br label %117, !llvm.loop !19

371:                                              ; preds = %117
  br label %372

372:                                              ; preds = %371
  %373 = load i32, ptr %2, align 4, !tbaa !9
  %374 = add nsw i32 %373, 1
  store i32 %374, ptr %2, align 4, !tbaa !9
  br label %112, !llvm.loop !20

375:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  ret i32 0
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @lbm_kernel(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, i32 noundef, i32 noundef, i32 noundef) #0

; 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 = { "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, !6, i64 0}
!6 = !{!"double", !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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = !{!17, !17, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


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

@omega = external dso_local local_unnamed_addr global double, align 8
@circle_R2 = external dso_local local_unnamed_addr global double, align 8
@.str = external hidden unnamed_addr constant [167 x i8], align 1
@grid = external dso_local global [2 x [262 x [1028 x [9 x double]]]], align 16

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  store double 0x3FF1C71C71C71C72, ptr @omega, align 8, !tbaa !5
  store double 0x40861C7AE147AE15, ptr @circle_R2, align 8, !tbaa !5
  %1 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 1024, i32 noundef 256, double noundef 2.621440e+02, i32 noundef 40000, double noundef 0x3FF1C71C71C71C72)
  br label %.preheader103

.preheader103:                                    ; preds = %0, %12
  %indvars.iv114 = phi i64 [ 0, %0 ], [ %indvars.iv.next115, %12 ]
  br label %.preheader102.preheader

.preheader102.preheader:                          ; preds = %.preheader103, %.preheader102.preheader
  %indvars.iv = phi i64 [ 0, %.preheader103 ], [ %indvars.iv.next, %.preheader102.preheader ]
  %2 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr @grid, i64 0, i64 %indvars.iv114, i64 %indvars.iv
  %3 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr getelementptr inbounds (i8, ptr @grid, i64 19392192), i64 0, i64 %indvars.iv114, i64 %indvars.iv
  store <2 x double> <double 0x3FF5A740DA740DA7, double 0x3FD5A740DA740DA7>, ptr %2, align 8, !tbaa !5
  store <2 x double> <double 0x3FF5A740DA740DA7, double 0x3FD5A740DA740DA7>, ptr %3, align 8, !tbaa !5
  %4 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr @grid, i64 0, i64 %indvars.iv114, i64 %indvars.iv, i64 2
  %5 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr getelementptr inbounds (i8, ptr @grid, i64 19392192), i64 0, i64 %indvars.iv114, i64 %indvars.iv, i64 2
  store <2 x double> <double 0x3FD5A740DA740DA7, double 0x3FD5A740DA740DA7>, ptr %4, align 8, !tbaa !5
  store <2 x double> <double 0x3FD5A740DA740DA7, double 0x3FD5A740DA740DA7>, ptr %5, align 8, !tbaa !5
  %6 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr @grid, i64 0, i64 %indvars.iv114, i64 %indvars.iv, i64 4
  %7 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr getelementptr inbounds (i8, ptr @grid, i64 19392192), i64 0, i64 %indvars.iv114, i64 %indvars.iv, i64 4
  store <2 x double> <double 0x3FD5A740DA740DA7, double 0x3FB5A740DA740DA7>, ptr %6, align 8, !tbaa !5
  store <2 x double> <double 0x3FD5A740DA740DA7, double 0x3FB5A740DA740DA7>, ptr %7, align 8, !tbaa !5
  %8 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr @grid, i64 0, i64 %indvars.iv114, i64 %indvars.iv, i64 6
  %9 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr getelementptr inbounds (i8, ptr @grid, i64 19392192), i64 0, i64 %indvars.iv114, i64 %indvars.iv, i64 6
  store <2 x double> <double 0x3FB5A740DA740DA7, double 0x3FB5A740DA740DA7>, ptr %8, align 8, !tbaa !5
  store <2 x double> <double 0x3FB5A740DA740DA7, double 0x3FB5A740DA740DA7>, ptr %9, align 8, !tbaa !5
  %10 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr @grid, i64 0, i64 %indvars.iv114, i64 %indvars.iv, i64 8
  store double 0x3FB5A740DA740DA7, ptr %10, align 8, !tbaa !5
  %11 = getelementptr inbounds [262 x [1028 x [9 x double]]], ptr getelementptr inbounds (i8, ptr @grid, i64 19392192), i64 0, i64 %indvars.iv114, i64 %indvars.iv, i64 8
  store double 0x3FB5A740DA740DA7, ptr %11, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1028
  br i1 %exitcond.not, label %12, label %.preheader102.preheader, !llvm.loop !9

12:                                               ; preds = %.preheader102.preheader
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %exitcond117.not = icmp eq i64 %indvars.iv.next115, 262
  br i1 %exitcond117.not, label %.preheader100, label %.preheader103, !llvm.loop !11

.preheader100:                                    ; preds = %12, %50
  %.0110 = phi i32 [ %51, %50 ], [ 0, %12 ]
  %13 = and i32 %.0110, 1
  %14 = zext nneg i32 %13 to i64
  %15 = xor i32 %13, 1
  %16 = zext nneg i32 %15 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader100, %49
  %indvars.iv122 = phi i64 [ 3, %.preheader100 ], [ %indvars.iv.next123, %49 ]
  %17 = add nsw i64 %indvars.iv122, -1
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %18 = trunc nuw nsw i64 %indvars.iv122 to i32
  br label %19

19:                                               ; preds = %.preheader, %19
  %indvars.iv118 = phi i64 [ 2, %.preheader ], [ %indvars.iv.next119, %19 ]
  %20 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %14, i64 %indvars.iv122, i64 %indvars.iv118
  %21 = load double, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %14, i64 %17, i64 %indvars.iv118, i64 3
  %23 = load double, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %14, i64 %indvars.iv.next123, i64 %indvars.iv118, i64 4
  %25 = load double, ptr %24, align 8, !tbaa !5
  %26 = add nsw i64 %indvars.iv118, -1
  %27 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %14, i64 %indvars.iv122, i64 %26, i64 1
  %28 = load double, ptr %27, align 8, !tbaa !5
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %29 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %14, i64 %indvars.iv122, i64 %indvars.iv.next119, i64 2
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %14, i64 %17, i64 %26, i64 5
  %32 = load double, ptr %31, align 8, !tbaa !5
  %33 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %14, i64 %17, i64 %indvars.iv.next119, i64 6
  %34 = load double, ptr %33, align 8, !tbaa !5
  %35 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %14, i64 %indvars.iv.next123, i64 %26, i64 7
  %36 = load double, ptr %35, align 8, !tbaa !5
  %37 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %14, i64 %indvars.iv.next123, i64 %indvars.iv.next119, i64 8
  %38 = load double, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds [2 x [262 x [1028 x [9 x double]]]], ptr @grid, i64 0, i64 %16, i64 %indvars.iv122, i64 %indvars.iv118
  %40 = getelementptr inbounds i8, ptr %39, i64 24
  %41 = getelementptr inbounds i8, ptr %39, i64 32
  %42 = getelementptr inbounds i8, ptr %39, i64 8
  %43 = getelementptr inbounds i8, ptr %39, i64 16
  %44 = getelementptr inbounds i8, ptr %39, i64 40
  %45 = getelementptr inbounds i8, ptr %39, i64 48
  %46 = getelementptr inbounds i8, ptr %39, i64 56
  %47 = getelementptr inbounds i8, ptr %39, i64 64
  %48 = trunc nuw nsw i64 %indvars.iv118 to i32
  tail call void @lbm_kernel(double noundef %21, double noundef %23, double noundef %25, double noundef %28, double noundef %30, double noundef %32, double noundef %34, double noundef %36, double noundef %38, ptr noundef nonnull %39, ptr noundef nonnull %40, ptr noundef nonnull %41, ptr noundef nonnull %42, ptr noundef nonnull %43, ptr noundef nonnull %44, ptr noundef nonnull %45, ptr noundef nonnull %46, ptr noundef nonnull %47, i32 noundef %.0110, i32 noundef %18, i32 noundef %48)
  %exitcond121.not = icmp eq i64 %indvars.iv.next119, 1026
  br i1 %exitcond121.not, label %49, label %19, !llvm.loop !12

49:                                               ; preds = %19
  %exitcond125.not = icmp eq i64 %indvars.iv.next123, 259
  br i1 %exitcond125.not, label %50, label %.preheader, !llvm.loop !13

50:                                               ; preds = %49
  %51 = add nuw nsw i32 %.0110, 1
  %exitcond126.not = icmp eq i32 %51, 40000
  br i1 %exitcond126.not, label %52, label %.preheader100, !llvm.loop !14

52:                                               ; preds = %50
  ret i32 0
}

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

; Function Attrs: nounwind uwtable
declare dso_local void @lbm_kernel(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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 = { 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" }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass