; LLVM IR from trabucayre/openFPGALoader :: src/lattice.ll (ZN7Lattice14displayReadRegEm)

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

%class.Lattice = type { %class.Device.base, %class.SPIInterface, i32, i32 }
%class.Device.base = type <{ ptr, ptr, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i8, i8, i8 }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.SPIInterface = type { ptr, i8, i32, i8, i8, i8, %"class.std::__cxx11::basic_string" }

@.str.651 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.652 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.653 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.654 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.655 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.656 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.657 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.658 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.659 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.660 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.661 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.662 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.663 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.664 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.665 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.666 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.667 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.668 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.669 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.670 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.671 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.672 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.673 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.674 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.675 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.676 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.677 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.678 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.679 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.680 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.681 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.682 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.683 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.684 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.685 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.686 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.687 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.688 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.689 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.690 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.691 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.692 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.693 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.694 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.695 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.696 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.697 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.698 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.699 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.700 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.701 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.702 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.703 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.704 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.705 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.706 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.707 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.708 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.709 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.710 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.711 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.712 = external hidden unnamed_addr constant [30 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

; 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: mustprogress uwtable
define dso_local void @_ZN7Lattice14displayReadRegEm(ptr noundef nonnull align 8 dereferenceable(152) %0, i64 noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %6 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #3
  %7 = call i32 (ptr, ...) @printf(ptr noundef @.str.651)
  %8 = load i64, ptr %4, align 8, !tbaa !9
  %9 = and i64 %8, 1
  %10 = icmp ne i64 %9, 0
  br i1 %10, label %11, label %13

11:                                               ; preds = %2
  %12 = call i32 (ptr, ...) @printf(ptr noundef @.str.652)
  br label %13

13:                                               ; preds = %11, %2
  %14 = load i64, ptr %4, align 8, !tbaa !9
  %15 = lshr i64 %14, 1
  %16 = and i64 %15, 7
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str.653, i64 noundef %16)
  %18 = load i64, ptr %4, align 8, !tbaa !9
  %19 = and i64 %18, 16
  %20 = icmp ne i64 %19, 0
  br i1 %20, label %21, label %23

21:                                               ; preds = %13
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str.654)
  br label %23

23:                                               ; preds = %21, %13
  %24 = load i64, ptr %4, align 8, !tbaa !9
  %25 = and i64 %24, 32
  %26 = icmp ne i64 %25, 0
  br i1 %26, label %27, label %29

27:                                               ; preds = %23
  %28 = call i32 (ptr, ...) @printf(ptr noundef @.str.655)
  br label %29

29:                                               ; preds = %27, %23
  %30 = load i64, ptr %4, align 8, !tbaa !9
  %31 = and i64 %30, 64
  %32 = icmp ne i64 %31, 0
  br i1 %32, label %33, label %35

33:                                               ; preds = %29
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str.656)
  br label %35

35:                                               ; preds = %33, %29
  %36 = load i64, ptr %4, align 8, !tbaa !9
  %37 = and i64 %36, 128
  %38 = icmp ne i64 %37, 0
  br i1 %38, label %39, label %41

39:                                               ; preds = %35
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.657)
  br label %41

41:                                               ; preds = %39, %35
  %42 = load i64, ptr %4, align 8, !tbaa !9
  %43 = and i64 %42, 256
  %44 = icmp ne i64 %43, 0
  br i1 %44, label %45, label %47

45:                                               ; preds = %41
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.658)
  br label %47

47:                                               ; preds = %45, %41
  %48 = load i64, ptr %4, align 8, !tbaa !9
  %49 = and i64 %48, 512
  %50 = icmp ne i64 %49, 0
  br i1 %50, label %51, label %53

51:                                               ; preds = %47
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.659)
  br label %53

53:                                               ; preds = %51, %47
  %54 = load i64, ptr %4, align 8, !tbaa !9
  %55 = and i64 %54, 1024
  %56 = icmp ne i64 %55, 0
  br i1 %56, label %57, label %59

57:                                               ; preds = %53
  %58 = call i32 (ptr, ...) @printf(ptr noundef @.str.660)
  br label %59

59:                                               ; preds = %57, %53
  %60 = load i64, ptr %4, align 8, !tbaa !9
  %61 = and i64 %60, 2048
  %62 = icmp ne i64 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %59
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.661)
  br label %65

65:                                               ; preds = %63, %59
  %66 = load i64, ptr %4, align 8, !tbaa !9
  %67 = and i64 %66, 4096
  %68 = icmp ne i64 %67, 0
  br i1 %68, label %69, label %71

69:                                               ; preds = %65
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.662)
  br label %71

71:                                               ; preds = %69, %65
  %72 = load i64, ptr %4, align 8, !tbaa !9
  %73 = and i64 %72, 8192
  %74 = icmp ne i64 %73, 0
  br i1 %74, label %75, label %77

75:                                               ; preds = %71
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.663)
  br label %77

77:                                               ; preds = %75, %71
  %78 = load i64, ptr %4, align 8, !tbaa !9
  %79 = and i64 %78, 16384
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %81, label %83

81:                                               ; preds = %77
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.664)
  br label %83

83:                                               ; preds = %81, %77
  %84 = load i64, ptr %4, align 8, !tbaa !9
  %85 = and i64 %84, 32768
  %86 = icmp ne i64 %85, 0
  br i1 %86, label %87, label %89

87:                                               ; preds = %83
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.665)
  br label %89

89:                                               ; preds = %87, %83
  %90 = load i64, ptr %4, align 8, !tbaa !9
  %91 = and i64 %90, 65536
  %92 = icmp ne i64 %91, 0
  br i1 %92, label %93, label %95

93:                                               ; preds = %89
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.666)
  br label %95

95:                                               ; preds = %93, %89
  %96 = getelementptr inbounds %class.Lattice, ptr %6, i32 0, i32 2
  %97 = load i32, ptr %96, align 8, !tbaa !11
  %98 = icmp eq i32 %97, 4
  br i1 %98, label %99, label %140

99:                                               ; preds = %95
  %100 = load i64, ptr %4, align 8, !tbaa !9
  %101 = and i64 %100, 131072
  %102 = icmp ne i64 %101, 0
  br i1 %102, label %103, label %105

103:                                              ; preds = %99
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.667)
  br label %105

105:                                              ; preds = %103, %99
  %106 = load i64, ptr %4, align 8, !tbaa !9
  %107 = and i64 %106, 262144
  %108 = icmp ne i64 %107, 0
  br i1 %108, label %109, label %111

109:                                              ; preds = %105
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.668)
  br label %111

111:                                              ; preds = %109, %105
  %112 = load i64, ptr %4, align 8, !tbaa !9
  %113 = and i64 %112, 524288
  %114 = icmp ne i64 %113, 0
  br i1 %114, label %115, label %117

115:                                              ; preds = %111
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.669)
  br label %117

117:                                              ; preds = %115, %111
  %118 = load i64, ptr %4, align 8, !tbaa !9
  %119 = and i64 %118, 2097152
  %120 = icmp ne i64 %119, 0
  br i1 %120, label %121, label %123

121:                                              ; preds = %117
  %122 = call i32 (ptr, ...) @printf(ptr noundef @.str.670)
  br label %123

123:                                              ; preds = %121, %117
  %124 = load i64, ptr %4, align 8, !tbaa !9
  %125 = and i64 %124, 4194304
  %126 = icmp ne i64 %125, 0
  br i1 %126, label %127, label %129

127:                                              ; preds = %123
  %128 = call i32 (ptr, ...) @printf(ptr noundef @.str.671)
  br label %129

129:                                              ; preds = %127, %123
  %130 = load i64, ptr %4, align 8, !tbaa !9
  %131 = and i64 %130, 8388608
  %132 = icmp ne i64 %131, 0
  br i1 %132, label %133, label %135

133:                                              ; preds = %129
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.672)
  br label %135

135:                                              ; preds = %133, %129
  %136 = load i64, ptr %4, align 8, !tbaa !9
  %137 = lshr i64 %136, 24
  %138 = and i64 %137, 15
  %139 = trunc i64 %138 to i8
  store i8 %139, ptr %5, align 1, !tbaa !22
  br label %181

140:                                              ; preds = %95
  %141 = load i64, ptr %4, align 8, !tbaa !9
  %142 = and i64 %141, 131072
  %143 = icmp ne i64 %142, 0
  br i1 %143, label %144, label %146

144:                                              ; preds = %140
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.673)
  br label %146

146:                                              ; preds = %144, %140
  %147 = load i64, ptr %4, align 8, !tbaa !9
  %148 = and i64 %147, 262144
  %149 = icmp ne i64 %148, 0
  br i1 %149, label %150, label %152

150:                                              ; preds = %146
  %151 = call i32 (ptr, ...) @printf(ptr noundef @.str.674)
  br label %152

152:                                              ; preds = %150, %146
  %153 = load i64, ptr %4, align 8, !tbaa !9
  %154 = and i64 %153, 524288
  %155 = icmp ne i64 %154, 0
  br i1 %155, label %156, label %158

156:                                              ; preds = %152
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str.675)
  br label %158

158:                                              ; preds = %156, %152
  %159 = load i64, ptr %4, align 8, !tbaa !9
  %160 = and i64 %159, 1048576
  %161 = icmp ne i64 %160, 0
  br i1 %161, label %162, label %164

162:                                              ; preds = %158
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.670)
  br label %164

164:                                              ; preds = %162, %158
  %165 = load i64, ptr %4, align 8, !tbaa !9
  %166 = and i64 %165, 2097152
  %167 = icmp ne i64 %166, 0
  br i1 %167, label %168, label %170

168:                                              ; preds = %164
  %169 = call i32 (ptr, ...) @printf(ptr noundef @.str.671)
  br label %170

170:                                              ; preds = %168, %164
  %171 = load i64, ptr %4, align 8, !tbaa !9
  %172 = and i64 %171, 4194304
  %173 = icmp ne i64 %172, 0
  br i1 %173, label %174, label %176

174:                                              ; preds = %170
  %175 = call i32 (ptr, ...) @printf(ptr noundef @.str.672)
  br label %176

176:                                              ; preds = %174, %170
  %177 = load i64, ptr %4, align 8, !tbaa !9
  %178 = lshr i64 %177, 23
  %179 = and i64 %178, 7
  %180 = trunc i64 %179 to i8
  store i8 %180, ptr %5, align 1, !tbaa !22
  br label %181

181:                                              ; preds = %176, %135
  %182 = call i32 (ptr, ...) @printf(ptr noundef @.str.676)
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.677)
  %184 = load i8, ptr %5, align 1, !tbaa !22
  %185 = zext i8 %184 to i32
  switch i32 %185, label %208 [
    i32 0, label %186
    i32 1, label %188
    i32 2, label %190
    i32 3, label %192
    i32 4, label %194
    i32 5, label %196
    i32 6, label %198
    i32 7, label %200
    i32 8, label %202
    i32 9, label %204
    i32 10, label %206
  ]

186:                                              ; preds = %181
  %187 = call i32 (ptr, ...) @printf(ptr noundef @.str.678)
  br label %212

188:                                              ; preds = %181
  %189 = call i32 (ptr, ...) @printf(ptr noundef @.str.679)
  br label %212

190:                                              ; preds = %181
  %191 = call i32 (ptr, ...) @printf(ptr noundef @.str.680)
  br label %212

192:                                              ; preds = %181
  %193 = call i32 (ptr, ...) @printf(ptr noundef @.str.681)
  br label %212

194:                                              ; preds = %181
  %195 = call i32 (ptr, ...) @printf(ptr noundef @.str.682)
  br label %212

196:                                              ; preds = %181
  %197 = call i32 (ptr, ...) @printf(ptr noundef @.str.683)
  br label %212

198:                                              ; preds = %181
  %199 = call i32 (ptr, ...) @printf(ptr noundef @.str.684)
  br label %212

200:                                              ; preds = %181
  %201 = call i32 (ptr, ...) @printf(ptr noundef @.str.685)
  br label %212

202:                                              ; preds = %181
  %203 = call i32 (ptr, ...) @printf(ptr noundef @.str.686)
  br label %212

204:                                              ; preds = %181
  %205 = call i32 (ptr, ...) @printf(ptr noundef @.str.687)
  br label %212

206:                                              ; preds = %181
  %207 = call i32 (ptr, ...) @printf(ptr noundef @.str.688)
  br label %212

208:                                              ; preds = %181
  %209 = load i8, ptr %5, align 1, !tbaa !22
  %210 = zext i8 %209 to i32
  %211 = call i32 (ptr, ...) @printf(ptr noundef @.str.689, i32 noundef %210)
  br label %212

212:                                              ; preds = %208, %206, %204, %202, %200, %198, %196, %194, %192, %190, %188, %186
  %213 = getelementptr inbounds %class.Lattice, ptr %6, i32 0, i32 2
  %214 = load i32, ptr %213, align 8, !tbaa !11
  %215 = icmp eq i32 %214, 4
  br i1 %215, label %216, label %245

216:                                              ; preds = %212
  %217 = load i64, ptr %4, align 8, !tbaa !9
  %218 = lshr i64 %217, 28
  %219 = and i64 %218, 1
  %220 = icmp ne i64 %219, 0
  br i1 %220, label %221, label %223

221:                                              ; preds = %216
  %222 = call i32 (ptr, ...) @printf(ptr noundef @.str.690)
  br label %223

223:                                              ; preds = %221, %216
  %224 = load i64, ptr %4, align 8, !tbaa !9
  %225 = lshr i64 %224, 29
  %226 = and i64 %225, 1
  %227 = icmp ne i64 %226, 0
  br i1 %227, label %228, label %230

228:                                              ; preds = %223
  %229 = call i32 (ptr, ...) @printf(ptr noundef @.str.691)
  br label %230

230:                                              ; preds = %228, %223
  %231 = load i64, ptr %4, align 8, !tbaa !9
  %232 = lshr i64 %231, 30
  %233 = and i64 %232, 1
  %234 = icmp ne i64 %233, 0
  br i1 %234, label %235, label %237

235:                                              ; preds = %230
  %236 = call i32 (ptr, ...) @printf(ptr noundef @.str.692)
  br label %237

237:                                              ; preds = %235, %230
  %238 = load i64, ptr %4, align 8, !tbaa !9
  %239 = lshr i64 %238, 31
  %240 = and i64 %239, 1
  %241 = icmp ne i64 %240, 0
  br i1 %241, label %242, label %244

242:                                              ; preds = %237
  %243 = call i32 (ptr, ...) @printf(ptr noundef @.str.693)
  br label %244

244:                                              ; preds = %242, %237
  br label %287

245:                                              ; preds = %212
  %246 = load i64, ptr %4, align 8, !tbaa !9
  %247 = and i64 %246, 67108864
  %248 = icmp ne i64 %247, 0
  br i1 %248, label %249, label %251

249:                                              ; preds = %245
  %250 = call i32 (ptr, ...) @printf(ptr noundef @.str.690)
  br label %251

251:                                              ; preds = %249, %245
  %252 = load i64, ptr %4, align 8, !tbaa !9
  %253 = lshr i64 %252, 27
  %254 = and i64 %253, 1
  %255 = icmp ne i64 %254, 0
  br i1 %255, label %256, label %258

256:                                              ; preds = %251
  %257 = call i32 (ptr, ...) @printf(ptr noundef @.str.694)
  br label %258

258:                                              ; preds = %256, %251
  %259 = load i64, ptr %4, align 8, !tbaa !9
  %260 = lshr i64 %259, 28
  %261 = and i64 %260, 1
  %262 = icmp ne i64 %261, 0
  br i1 %262, label %263, label %265

263:                                              ; preds = %258
  %264 = call i32 (ptr, ...) @printf(ptr noundef @.str.692)
  br label %265

265:                                              ; preds = %263, %258
  %266 = load i64, ptr %4, align 8, !tbaa !9
  %267 = lshr i64 %266, 29
  %268 = and i64 %267, 1
  %269 = icmp ne i64 %268, 0
  br i1 %269, label %270, label %272

270:                                              ; preds = %265
  %271 = call i32 (ptr, ...) @printf(ptr noundef @.str.695)
  br label %272

272:                                              ; preds = %270, %265
  %273 = load i64, ptr %4, align 8, !tbaa !9
  %274 = lshr i64 %273, 30
  %275 = and i64 %274, 1
  %276 = icmp ne i64 %275, 0
  br i1 %276, label %277, label %279

277:                                              ; preds = %272
  %278 = call i32 (ptr, ...) @printf(ptr noundef @.str.696)
  br label %279

279:                                              ; preds = %277, %272
  %280 = load i64, ptr %4, align 8, !tbaa !9
  %281 = lshr i64 %280, 31
  %282 = and i64 %281, 1
  %283 = icmp ne i64 %282, 0
  br i1 %283, label %284, label %286

284:                                              ; preds = %279
  %285 = call i32 (ptr, ...) @printf(ptr noundef @.str.697)
  br label %286

286:                                              ; preds = %284, %279
  br label %287

287:                                              ; preds = %286, %244
  %288 = getelementptr inbounds %class.Lattice, ptr %6, i32 0, i32 2
  %289 = load i32, ptr %288, align 8, !tbaa !11
  %290 = icmp eq i32 %289, 4
  br i1 %290, label %291, label %419

291:                                              ; preds = %287
  %292 = load i64, ptr %4, align 8, !tbaa !9
  %293 = lshr i64 %292, 33
  %294 = and i64 %293, 1
  %295 = icmp ne i64 %294, 0
  br i1 %295, label %296, label %298

296:                                              ; preds = %291
  %297 = call i32 (ptr, ...) @printf(ptr noundef @.str.698)
  br label %298

298:                                              ; preds = %296, %291
  %299 = load i64, ptr %4, align 8, !tbaa !9
  %300 = lshr i64 %299, 34
  %301 = and i64 %300, 15
  %302 = trunc i64 %301 to i8
  store i8 %302, ptr %5, align 1, !tbaa !22
  %303 = call i32 (ptr, ...) @printf(ptr noundef @.str.699)
  %304 = call i32 (ptr, ...) @printf(ptr noundef @.str.677)
  %305 = load i8, ptr %5, align 1, !tbaa !22
  %306 = zext i8 %305 to i32
  switch i32 %306, label %329 [
    i32 0, label %307
    i32 1, label %309
    i32 2, label %311
    i32 3, label %313
    i32 4, label %315
    i32 5, label %317
    i32 6, label %319
    i32 7, label %321
    i32 8, label %323
    i32 9, label %325
    i32 10, label %327
  ]

307:                                              ; preds = %298
  %308 = call i32 (ptr, ...) @printf(ptr noundef @.str.678)
  br label %333

309:                                              ; preds = %298
  %310 = call i32 (ptr, ...) @printf(ptr noundef @.str.679)
  br label %333

311:                                              ; preds = %298
  %312 = call i32 (ptr, ...) @printf(ptr noundef @.str.680)
  br label %333

313:                                              ; preds = %298
  %314 = call i32 (ptr, ...) @printf(ptr noundef @.str.681)
  br label %333

315:                                              ; preds = %298
  %316 = call i32 (ptr, ...) @printf(ptr noundef @.str.682)
  br label %333

317:                                              ; preds = %298
  %318 = call i32 (ptr, ...) @printf(ptr noundef @.str.683)
  br label %333

319:                                              ; preds = %298
  %320 = call i32 (ptr, ...) @printf(ptr noundef @.str.684)
  br label %333

321:                                              ; preds = %298
  %322 = call i32 (ptr, ...) @printf(ptr noundef @.str.685)
  br label %333

323:                                              ; preds = %298
  %324 = call i32 (ptr, ...) @printf(ptr noundef @.str.686)
  br label %333

325:                                              ; preds = %298
  %326 = call i32 (ptr, ...) @printf(ptr noundef @.str.687)
  br label %333

327:                                              ; preds = %298
  %328 = call i32 (ptr, ...) @printf(ptr noundef @.str.688)
  br label %333

329:                                              ; preds = %298
  %330 = load i8, ptr %5, align 1, !tbaa !22
  %331 = zext i8 %330 to i32
  %332 = call i32 (ptr, ...) @printf(ptr noundef @.str.689, i32 noundef %331)
  br label %333

333:                                              ; preds = %329, %327, %325, %323, %321, %319, %317, %315, %313, %311, %309, %307
  %334 = load i64, ptr %4, align 8, !tbaa !9
  %335 = lshr i64 %334, 38
  %336 = and i64 %335, 1
  %337 = icmp ne i64 %336, 0
  br i1 %337, label %338, label %340

338:                                              ; preds = %333
  %339 = call i32 (ptr, ...) @printf(ptr noundef @.str.696)
  br label %340

340:                                              ; preds = %338, %333
  %341 = load i64, ptr %4, align 8, !tbaa !9
  %342 = lshr i64 %341, 39
  %343 = and i64 %342, 1
  %344 = icmp ne i64 %343, 0
  br i1 %344, label %345, label %347

345:                                              ; preds = %340
  %346 = call i32 (ptr, ...) @printf(ptr noundef @.str.700)
  br label %347

347:                                              ; preds = %345, %340
  %348 = load i64, ptr %4, align 8, !tbaa !9
  %349 = lshr i64 %348, 42
  %350 = and i64 %349, 1
  %351 = icmp ne i64 %350, 0
  br i1 %351, label %352, label %354

352:                                              ; preds = %347
  %353 = call i32 (ptr, ...) @printf(ptr noundef @.str.701)
  br label %354

354:                                              ; preds = %352, %347
  %355 = load i64, ptr %4, align 8, !tbaa !9
  %356 = lshr i64 %355, 43
  %357 = and i64 %356, 1
  %358 = icmp ne i64 %357, 0
  br i1 %358, label %359, label %361

359:                                              ; preds = %354
  %360 = call i32 (ptr, ...) @printf(ptr noundef @.str.702)
  br label %361

361:                                              ; preds = %359, %354
  %362 = load i64, ptr %4, align 8, !tbaa !9
  %363 = lshr i64 %362, 44
  %364 = and i64 %363, 1
  %365 = icmp ne i64 %364, 0
  br i1 %365, label %366, label %368

366:                                              ; preds = %361
  %367 = call i32 (ptr, ...) @printf(ptr noundef @.str.703)
  br label %368

368:                                              ; preds = %366, %361
  %369 = load i64, ptr %4, align 8, !tbaa !9
  %370 = lshr i64 %369, 45
  %371 = and i64 %370, 1
  %372 = icmp ne i64 %371, 0
  br i1 %372, label %373, label %375

373:                                              ; preds = %368
  %374 = call i32 (ptr, ...) @printf(ptr noundef @.str.704)
  br label %375

375:                                              ; preds = %373, %368
  %376 = load i64, ptr %4, align 8, !tbaa !9
  %377 = lshr i64 %376, 46
  %378 = and i64 %377, 1
  %379 = icmp ne i64 %378, 0
  br i1 %379, label %380, label %382

380:                                              ; preds = %375
  %381 = call i32 (ptr, ...) @printf(ptr noundef @.str.705)
  br label %382

382:                                              ; preds = %380, %375
  %383 = load i64, ptr %4, align 8, !tbaa !9
  %384 = lshr i64 %383, 47
  %385 = and i64 %384, 1
  %386 = icmp ne i64 %385, 0
  br i1 %386, label %387, label %389

387:                                              ; preds = %382
  %388 = call i32 (ptr, ...) @printf(ptr noundef @.str.706)
  br label %389

389:                                              ; preds = %387, %382
  %390 = load i64, ptr %4, align 8, !tbaa !9
  %391 = lshr i64 %390, 48
  %392 = and i64 %391, 3
  %393 = trunc i64 %392 to i8
  store i8 %393, ptr %5, align 1, !tbaa !22
  %394 = call i32 (ptr, ...) @printf(ptr noundef @.str.707)
  %395 = call i32 (ptr, ...) @printf(ptr noundef @.str.677)
  %396 = load i8, ptr %5, align 1, !tbaa !22
  %397 = zext i8 %396 to i32
  switch i32 %397, label %404 [
    i32 3, label %398
    i32 0, label %398
    i32 1, label %400
    i32 2, label %402
  ]

398:                                              ; preds = %389, %389
  %399 = call i32 (ptr, ...) @printf(ptr noundef @.str.708)
  br label %404

400:                                              ; preds = %389
  %401 = call i32 (ptr, ...) @printf(ptr noundef @.str.709)
  br label %404

402:                                              ; preds = %389
  %403 = call i32 (ptr, ...) @printf(ptr noundef @.str.710)
  br label %404

404:                                              ; preds = %402, %400, %398, %389
  %405 = load i64, ptr %4, align 8, !tbaa !9
  %406 = lshr i64 %405, 50
  %407 = and i64 %406, 1
  %408 = icmp ne i64 %407, 0
  br i1 %408, label %409, label %411

409:                                              ; preds = %404
  %410 = call i32 (ptr, ...) @printf(ptr noundef @.str.711)
  br label %411

411:                                              ; preds = %409, %404
  %412 = load i64, ptr %4, align 8, !tbaa !9
  %413 = lshr i64 %412, 51
  %414 = and i64 %413, 1
  %415 = icmp ne i64 %414, 0
  br i1 %415, label %416, label %418

416:                                              ; preds = %411
  %417 = call i32 (ptr, ...) @printf(ptr noundef @.str.712)
  br label %418

418:                                              ; preds = %416, %411
  br label %419

419:                                              ; preds = %418, %287
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #3
  ret void
}

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !20, i64 144}
!12 = !{!"_ZTS7Lattice", !13, i64 0, !18, i64 88, !20, i64 144, !21, i64 148}
!13 = !{!"_ZTS6Device", !6, i64 8, !14, i64 16, !14, i64 48, !16, i64 80, !17, i64 84, !17, i64 85, !17, i64 86}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !10, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!16 = !{!"_ZTSN6Device9prog_modeE", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTS12SPIInterface", !7, i64 8, !19, i64 12, !17, i64 16, !17, i64 17, !17, i64 18, !14, i64 24}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSN7Lattice16lattice_family_tE", !7, i64 0}
!21 = !{!"_ZTSN7Lattice22lattice_flash_sector_tE", !7, i64 0}
!22 = !{!7, !7, i64 0}


; 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.651 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.652 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.653 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.654 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.655 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.656 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.657 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.658 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.659 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.660 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.661 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.662 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.663 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.664 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.665 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.666 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.667 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.668 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.669 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.670 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.671 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.672 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.673 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.674 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.675 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.676 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.677 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.678 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.679 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.680 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.681 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.682 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.683 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.684 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.685 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.686 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.687 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.688 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.689 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.690 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.691 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.692 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.693 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.694 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.695 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.696 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.697 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.698 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.699 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.700 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.701 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.702 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.703 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.704 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.705 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.706 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.707 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.708 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.709 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.710 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.711 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.712 = external hidden unnamed_addr constant [30 x i8], align 1
@switch.table._ZN7Lattice14displayReadRegEm = private unnamed_addr constant [4 x ptr] [ptr @.str.708, ptr @.str.709, ptr @.str.710, ptr @.str.708], align 8

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

; Function Attrs: mustprogress nofree nounwind uwtable
define dso_local void @_ZN7Lattice14displayReadRegEm(ptr nocapture noundef nonnull readonly align 8 dereferenceable(152) %0, i64 noundef %1) local_unnamed_addr #1 align 2 {
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.651)
  %4 = and i64 %1, 1
  %.not = icmp eq i64 %4, 0
  br i1 %.not, label %7, label %5

5:                                                ; preds = %2
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.652)
  br label %7

7:                                                ; preds = %5, %2
  %8 = lshr i64 %1, 1
  %9 = and i64 %8, 7
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.653, i64 noundef %9)
  %11 = and i64 %1, 16
  %.not57 = icmp eq i64 %11, 0
  br i1 %.not57, label %14, label %12

12:                                               ; preds = %7
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.654)
  br label %14

14:                                               ; preds = %12, %7
  %15 = and i64 %1, 32
  %.not58 = icmp eq i64 %15, 0
  br i1 %.not58, label %18, label %16

16:                                               ; preds = %14
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.655)
  br label %18

18:                                               ; preds = %16, %14
  %19 = and i64 %1, 64
  %.not59 = icmp eq i64 %19, 0
  br i1 %.not59, label %22, label %20

20:                                               ; preds = %18
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.656)
  br label %22

22:                                               ; preds = %20, %18
  %23 = and i64 %1, 128
  %.not60 = icmp eq i64 %23, 0
  br i1 %.not60, label %26, label %24

24:                                               ; preds = %22
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.657)
  br label %26

26:                                               ; preds = %24, %22
  %27 = and i64 %1, 256
  %.not61 = icmp eq i64 %27, 0
  br i1 %.not61, label %30, label %28

28:                                               ; preds = %26
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.658)
  br label %30

30:                                               ; preds = %28, %26
  %31 = and i64 %1, 512
  %.not62 = icmp eq i64 %31, 0
  br i1 %.not62, label %34, label %32

32:                                               ; preds = %30
  %33 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.659)
  br label %34

34:                                               ; preds = %32, %30
  %35 = and i64 %1, 1024
  %.not63 = icmp eq i64 %35, 0
  br i1 %.not63, label %38, label %36

36:                                               ; preds = %34
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.660)
  br label %38

38:                                               ; preds = %36, %34
  %39 = and i64 %1, 2048
  %.not64 = icmp eq i64 %39, 0
  br i1 %.not64, label %42, label %40

40:                                               ; preds = %38
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.661)
  br label %42

42:                                               ; preds = %40, %38
  %43 = and i64 %1, 4096
  %.not65 = icmp eq i64 %43, 0
  br i1 %.not65, label %46, label %44

44:                                               ; preds = %42
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.662)
  br label %46

46:                                               ; preds = %44, %42
  %47 = and i64 %1, 8192
  %.not66 = icmp eq i64 %47, 0
  br i1 %.not66, label %50, label %48

48:                                               ; preds = %46
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.663)
  br label %50

50:                                               ; preds = %48, %46
  %51 = and i64 %1, 16384
  %.not67 = icmp eq i64 %51, 0
  br i1 %.not67, label %54, label %52

52:                                               ; preds = %50
  %53 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.664)
  br label %54

54:                                               ; preds = %52, %50
  %55 = and i64 %1, 32768
  %.not68 = icmp eq i64 %55, 0
  br i1 %.not68, label %58, label %56

56:                                               ; preds = %54
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.665)
  br label %58

58:                                               ; preds = %56, %54
  %59 = and i64 %1, 65536
  %.not69 = icmp eq i64 %59, 0
  br i1 %.not69, label %62, label %60

60:                                               ; preds = %58
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.666)
  br label %62

62:                                               ; preds = %60, %58
  %63 = getelementptr inbounds i8, ptr %0, i64 144
  %64 = load i32, ptr %63, align 8, !tbaa !5
  %65 = icmp eq i32 %64, 4
  %66 = and i64 %1, 131072
  %.not76 = icmp eq i64 %66, 0
  br i1 %65, label %67, label %88

67:                                               ; preds = %62
  br i1 %.not76, label %70, label %68

68:                                               ; preds = %67
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.667)
  br label %70

70:                                               ; preds = %68, %67
  %71 = and i64 %1, 262144
  %.not77 = icmp eq i64 %71, 0
  br i1 %.not77, label %74, label %72

72:                                               ; preds = %70
  %73 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.668)
  br label %74

74:                                               ; preds = %72, %70
  %75 = and i64 %1, 524288
  %.not78 = icmp eq i64 %75, 0
  br i1 %.not78, label %78, label %76

76:                                               ; preds = %74
  %77 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.669)
  br label %78

78:                                               ; preds = %76, %74
  %79 = and i64 %1, 2097152
  %.not79 = icmp eq i64 %79, 0
  br i1 %.not79, label %82, label %80

80:                                               ; preds = %78
  %81 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.670)
  br label %82

82:                                               ; preds = %80, %78
  %83 = and i64 %1, 4194304
  %.not80 = icmp eq i64 %83, 0
  br i1 %.not80, label %86, label %84

84:                                               ; preds = %82
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.671)
  br label %86

86:                                               ; preds = %84, %82
  %87 = and i64 %1, 8388608
  %.not81 = icmp eq i64 %87, 0
  br i1 %.not81, label %110, label %.sink.split107

88:                                               ; preds = %62
  br i1 %.not76, label %91, label %89

89:                                               ; preds = %88
  %90 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.673)
  br label %91

91:                                               ; preds = %89, %88
  %92 = and i64 %1, 262144
  %.not71 = icmp eq i64 %92, 0
  br i1 %.not71, label %95, label %93

93:                                               ; preds = %91
  %94 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.674)
  br label %95

95:                                               ; preds = %93, %91
  %96 = and i64 %1, 524288
  %.not72 = icmp eq i64 %96, 0
  br i1 %.not72, label %99, label %97

97:                                               ; preds = %95
  %98 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.675)
  br label %99

99:                                               ; preds = %97, %95
  %100 = and i64 %1, 1048576
  %.not73 = icmp eq i64 %100, 0
  br i1 %.not73, label %103, label %101

101:                                              ; preds = %99
  %102 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.670)
  br label %103

103:                                              ; preds = %101, %99
  %104 = and i64 %1, 2097152
  %.not74 = icmp eq i64 %104, 0
  br i1 %.not74, label %107, label %105

105:                                              ; preds = %103
  %106 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.671)
  br label %107

107:                                              ; preds = %105, %103
  %108 = and i64 %1, 4194304
  %.not75 = icmp eq i64 %108, 0
  br i1 %.not75, label %110, label %.sink.split107

.sink.split107:                                   ; preds = %107, %86
  %.sink106.ph = phi i32 [ 24, %86 ], [ 23, %107 ]
  %.sink104.ph = phi i32 [ 15, %86 ], [ 7, %107 ]
  %109 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.672)
  br label %110

110:                                              ; preds = %.sink.split107, %107, %86
  %.sink106 = phi i32 [ 24, %86 ], [ 23, %107 ], [ %.sink106.ph, %.sink.split107 ]
  %.sink104 = phi i32 [ 15, %86 ], [ 7, %107 ], [ %.sink104.ph, %.sink.split107 ]
  %111 = trunc i64 %1 to i32
  %112 = lshr i32 %111, %.sink106
  %113 = and i32 %112, %.sink104
  %114 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.676)
  %115 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.677)
  switch i32 %113, label %138 [
    i32 0, label %116
    i32 1, label %118
    i32 2, label %120
    i32 3, label %122
    i32 4, label %124
    i32 5, label %126
    i32 6, label %128
    i32 7, label %130
    i32 8, label %132
    i32 9, label %134
    i32 10, label %136
  ]

116:                                              ; preds = %110
  %117 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.678)
  br label %140

118:                                              ; preds = %110
  %119 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.679)
  br label %140

120:                                              ; preds = %110
  %121 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.680)
  br label %140

122:                                              ; preds = %110
  %123 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.681)
  br label %140

124:                                              ; preds = %110
  %125 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.682)
  br label %140

126:                                              ; preds = %110
  %127 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.683)
  br label %140

128:                                              ; preds = %110
  %129 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.684)
  br label %140

130:                                              ; preds = %110
  %131 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.685)
  br label %140

132:                                              ; preds = %110
  %133 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.686)
  br label %140

134:                                              ; preds = %110
  %135 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.687)
  br label %140

136:                                              ; preds = %110
  %137 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.688)
  br label %140

138:                                              ; preds = %110
  %139 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.689, i32 noundef %113)
  br label %140

140:                                              ; preds = %138, %136, %134, %132, %130, %128, %126, %124, %122, %120, %118, %116
  %141 = load i32, ptr %63, align 8, !tbaa !5
  %142 = icmp eq i32 %141, 4
  br i1 %142, label %143, label %157

143:                                              ; preds = %140
  %144 = and i64 %1, 268435456
  %.not88 = icmp eq i64 %144, 0
  br i1 %.not88, label %147, label %145

145:                                              ; preds = %143
  %146 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.690)
  br label %147

147:                                              ; preds = %145, %143
  %148 = and i64 %1, 536870912
  %.not89 = icmp eq i64 %148, 0
  br i1 %.not89, label %151, label %149

149:                                              ; preds = %147
  %150 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.691)
  br label %151

151:                                              ; preds = %149, %147
  %152 = and i64 %1, 1073741824
  %.not90 = icmp eq i64 %152, 0
  br i1 %.not90, label %155, label %153

153:                                              ; preds = %151
  %154 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.692)
  br label %155

155:                                              ; preds = %153, %151
  %156 = and i64 %1, 2147483648
  %.not91 = icmp eq i64 %156, 0
  br i1 %.not91, label %180, label %.sink.split

157:                                              ; preds = %140
  %158 = and i64 %1, 67108864
  %.not82 = icmp eq i64 %158, 0
  br i1 %.not82, label %161, label %159

159:                                              ; preds = %157
  %160 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.690)
  br label %161

161:                                              ; preds = %159, %157
  %162 = and i64 %1, 134217728
  %.not83 = icmp eq i64 %162, 0
  br i1 %.not83, label %165, label %163

163:                                              ; preds = %161
  %164 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.694)
  br label %165

165:                                              ; preds = %163, %161
  %166 = and i64 %1, 268435456
  %.not84 = icmp eq i64 %166, 0
  br i1 %.not84, label %169, label %167

167:                                              ; preds = %165
  %168 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.692)
  br label %169

169:                                              ; preds = %167, %165
  %170 = and i64 %1, 536870912
  %.not85 = icmp eq i64 %170, 0
  br i1 %.not85, label %173, label %171

171:                                              ; preds = %169
  %172 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.695)
  br label %173

173:                                              ; preds = %171, %169
  %174 = and i64 %1, 1073741824
  %.not86 = icmp eq i64 %174, 0
  br i1 %.not86, label %177, label %175

175:                                              ; preds = %173
  %176 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.696)
  br label %177

177:                                              ; preds = %175, %173
  %178 = and i64 %1, 2147483648
  %.not87 = icmp eq i64 %178, 0
  br i1 %.not87, label %180, label %.sink.split

.sink.split:                                      ; preds = %177, %155
  %.str.697.sink = phi ptr [ @.str.693, %155 ], [ @.str.697, %177 ]
  %179 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.697.sink)
  br label %180

180:                                              ; preds = %.sink.split, %177, %155
  %181 = load i32, ptr %63, align 8, !tbaa !5
  %182 = icmp eq i32 %181, 4
  br i1 %182, label %183, label %261

183:                                              ; preds = %180
  %184 = and i64 %1, 8589934592
  %.not92 = icmp eq i64 %184, 0
  br i1 %.not92, label %187, label %185

185:                                              ; preds = %183
  %186 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.698)
  br label %187

187:                                              ; preds = %185, %183
  %188 = lshr i64 %1, 34
  %189 = trunc nuw nsw i64 %188 to i32
  %190 = and i32 %189, 15
  %191 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.699)
  %192 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.677)
  switch i32 %190, label %215 [
    i32 0, label %193
    i32 1, label %195
    i32 2, label %197
    i32 3, label %199
    i32 4, label %201
    i32 5, label %203
    i32 6, label %205
    i32 7, label %207
    i32 8, label %209
    i32 9, label %211
    i32 10, label %213
  ]

193:                                              ; preds = %187
  %194 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.678)
  br label %217

195:                                              ; preds = %187
  %196 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.679)
  br label %217

197:                                              ; preds = %187
  %198 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.680)
  br label %217

199:                                              ; preds = %187
  %200 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.681)
  br label %217

201:                                              ; preds = %187
  %202 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.682)
  br label %217

203:                                              ; preds = %187
  %204 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.683)
  br label %217

205:                                              ; preds = %187
  %206 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.684)
  br label %217

207:                                              ; preds = %187
  %208 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.685)
  br label %217

209:                                              ; preds = %187
  %210 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.686)
  br label %217

211:                                              ; preds = %187
  %212 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.687)
  br label %217

213:                                              ; preds = %187
  %214 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.688)
  br label %217

215:                                              ; preds = %187
  %216 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.689, i32 noundef %190)
  br label %217

217:                                              ; preds = %215, %213, %211, %209, %207, %205, %203, %201, %199, %197, %195, %193
  %218 = and i64 %1, 274877906944
  %.not93 = icmp eq i64 %218, 0
  br i1 %.not93, label %221, label %219

219:                                              ; preds = %217
  %220 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.696)
  br label %221

221:                                              ; preds = %219, %217
  %222 = and i64 %1, 549755813888
  %.not94 = icmp eq i64 %222, 0
  br i1 %.not94, label %225, label %223

223:                                              ; preds = %221
  %224 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.700)
  br label %225

225:                                              ; preds = %223, %221
  %226 = and i64 %1, 4398046511104
  %.not95 = icmp eq i64 %226, 0
  br i1 %.not95, label %229, label %227

227:                                              ; preds = %225
  %228 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.701)
  br label %229

229:                                              ; preds = %227, %225
  %230 = and i64 %1, 8796093022208
  %.not96 = icmp eq i64 %230, 0
  br i1 %.not96, label %233, label %231

231:                                              ; preds = %229
  %232 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.702)
  br label %233

233:                                              ; preds = %231, %229
  %234 = and i64 %1, 17592186044416
  %.not97 = icmp eq i64 %234, 0
  br i1 %.not97, label %237, label %235

235:                                              ; preds = %233
  %236 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.703)
  br label %237

237:                                              ; preds = %235, %233
  %238 = and i64 %1, 35184372088832
  %.not98 = icmp eq i64 %238, 0
  br i1 %.not98, label %241, label %239

239:                                              ; preds = %237
  %240 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.704)
  br label %241

241:                                              ; preds = %239, %237
  %242 = and i64 %1, 70368744177664
  %.not99 = icmp eq i64 %242, 0
  br i1 %.not99, label %245, label %243

243:                                              ; preds = %241
  %244 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.705)
  br label %245

245:                                              ; preds = %243, %241
  %246 = and i64 %1, 140737488355328
  %.not100 = icmp eq i64 %246, 0
  br i1 %.not100, label %switch.lookup, label %247

247:                                              ; preds = %245
  %248 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.706)
  br label %switch.lookup

switch.lookup:                                    ; preds = %247, %245
  %249 = lshr i64 %1, 48
  %250 = and i64 %249, 3
  %251 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.707)
  %252 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.677)
  %switch.gep = getelementptr inbounds [4 x ptr], ptr @switch.table._ZN7Lattice14displayReadRegEm, i64 0, i64 %250
  %switch.load = load ptr, ptr %switch.gep, align 8
  %253 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %switch.load)
  %254 = and i64 %1, 1125899906842624
  %.not101 = icmp eq i64 %254, 0
  br i1 %.not101, label %257, label %255

255:                                              ; preds = %switch.lookup
  %256 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.711)
  br label %257

257:                                              ; preds = %255, %switch.lookup
  %258 = and i64 %1, 2251799813685248
  %.not102 = icmp eq i64 %258, 0
  br i1 %.not102, label %261, label %259

259:                                              ; preds = %257
  %260 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.712)
  br label %261

261:                                              ; preds = %257, %259, %180
  ret void
}

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

!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, !18, i64 144}
!6 = !{!"_ZTS7Lattice", !7, i64 0, !16, i64 88, !18, i64 144, !19, i64 148}
!7 = !{!"_ZTS6Device", !8, i64 8, !11, i64 16, !11, i64 48, !14, i64 80, !15, i64 84, !15, i64 85, !15, i64 86}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !9, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !8, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!"_ZTSN6Device9prog_modeE", !9, i64 0}
!15 = !{!"bool", !9, i64 0}
!16 = !{!"_ZTS12SPIInterface", !9, i64 8, !17, i64 12, !15, i64 16, !15, i64 17, !15, i64 18, !11, i64 24}
!17 = !{!"int", !9, i64 0}
!18 = !{!"_ZTSN7Lattice16lattice_family_tE", !9, i64 0}
!19 = !{!"_ZTSN7Lattice22lattice_flash_sector_tE", !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass