; LLVM IR from beagleboard/librobotcontrol :: examples/src (rc_test_escs)

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

@opterr = external global i32, align 4
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@running = external hidden global i32, align 4
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1
@stdout = external global ptr, align 8
@.str.16 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store double 0.000000e+00, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store double 0.000000e+00, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store double 1.000000e+00, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 50, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 1, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store double 3.000000e+00, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  store double -1.000000e-01, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 1000, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 2000, ptr %23, align 4, !tbaa !5
  store i32 0, ptr %16, align 4, !tbaa !5
  store i32 0, ptr @opterr, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %163, %2
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = load ptr, ptr %5, align 8, !tbaa !9
  %28 = call i32 @getopt(i32 noundef %26, ptr noundef %27, ptr noundef @.str) #5
  store i32 %28, ptr %6, align 4, !tbaa !5
  %29 = icmp ne i32 %28, -1
  br i1 %29, label %30, label %164

30:                                               ; preds = %25
  %31 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %31, label %161 [
    i32 99, label %32
    i32 102, label %44
    i32 111, label %53
    i32 116, label %60
    i32 119, label %78
    i32 115, label %99
    i32 114, label %117
    i32 100, label %135
    i32 109, label %136
    i32 112, label %145
    i32 104, label %160
  ]

32:                                               ; preds = %30
  %33 = load ptr, ptr @optarg, align 8, !tbaa !9
  %34 = call i32 @atoi(ptr noundef %33) #6
  store i32 %34, ptr %13, align 4, !tbaa !5
  %35 = load i32, ptr %13, align 4, !tbaa !5
  %36 = icmp slt i32 %35, 1
  br i1 %36, label %40, label %37

37:                                               ; preds = %32
  %38 = load i32, ptr %13, align 4, !tbaa !5
  %39 = icmp sgt i32 %38, 8
  br i1 %39, label %40, label %43

40:                                               ; preds = %37, %32
  %41 = load ptr, ptr @stderr, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.1, i32 noundef 1, i32 noundef 8) #5
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

43:                                               ; preds = %37
  br label %163

44:                                               ; preds = %30
  %45 = load ptr, ptr @optarg, align 8, !tbaa !9
  %46 = call i32 @atoi(ptr noundef %45) #6
  store i32 %46, ptr %18, align 4, !tbaa !5
  %47 = load i32, ptr %18, align 4, !tbaa !5
  %48 = icmp slt i32 %47, 1
  br i1 %48, label %49, label %52

49:                                               ; preds = %44
  %50 = load ptr, ptr @stderr, align 8, !tbaa !9
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.2) #5
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

52:                                               ; preds = %44
  br label %163

53:                                               ; preds = %30
  %54 = load i32, ptr %16, align 4, !tbaa !5
  %55 = icmp eq i32 %54, 2
  br i1 %55, label %56, label %59

56:                                               ; preds = %53
  %57 = load ptr, ptr @stderr, align 8, !tbaa !9
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.3) #5
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

59:                                               ; preds = %53
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %163

60:                                               ; preds = %30
  %61 = load i32, ptr %16, align 4, !tbaa !5
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %66

63:                                               ; preds = %60
  %64 = load ptr, ptr @stderr, align 8, !tbaa !9
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.4) #5
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

66:                                               ; preds = %60
  %67 = load ptr, ptr @optarg, align 8, !tbaa !9
  %68 = call double @atof(ptr noundef %67) #6
  store double %68, ptr %11, align 8, !tbaa !11
  %69 = load double, ptr %11, align 8, !tbaa !11
  %70 = fcmp ogt double %69, 1.000000e+00
  br i1 %70, label %74, label %71

71:                                               ; preds = %66
  %72 = load double, ptr %11, align 8, !tbaa !11
  %73 = fcmp olt double %72, -1.000000e-01
  br i1 %73, label %74, label %77

74:                                               ; preds = %71, %66
  %75 = load ptr, ptr @stderr, align 8, !tbaa !9
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.5) #5
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

77:                                               ; preds = %71
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %163

78:                                               ; preds = %30
  %79 = load i32, ptr %16, align 4, !tbaa !5
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %84

81:                                               ; preds = %78
  %82 = load ptr, ptr @stderr, align 8, !tbaa !9
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.4) #5
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

84:                                               ; preds = %78
  %85 = load i32, ptr %10, align 4, !tbaa !5
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %90

87:                                               ; preds = %84
  %88 = load ptr, ptr @stderr, align 8, !tbaa !9
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.3) #5
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

90:                                               ; preds = %84
  %91 = load ptr, ptr @optarg, align 8, !tbaa !9
  %92 = call double @atof(ptr noundef %91) #6
  %93 = fptosi double %92 to i32
  store i32 %93, ptr %12, align 4, !tbaa !5
  %94 = load i32, ptr %12, align 4, !tbaa !5
  %95 = icmp slt i32 %94, 10
  br i1 %95, label %96, label %98

96:                                               ; preds = %90
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

98:                                               ; preds = %90
  store i32 2, ptr %16, align 4, !tbaa !5
  br label %163

99:                                               ; preds = %30
  %100 = load i32, ptr %16, align 4, !tbaa !5
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %105

102:                                              ; preds = %99
  %103 = load ptr, ptr @stderr, align 8, !tbaa !9
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef @.str.4) #5
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

105:                                              ; preds = %99
  %106 = load ptr, ptr @optarg, align 8, !tbaa !9
  %107 = call double @atof(ptr noundef %106) #6
  store double %107, ptr %9, align 8, !tbaa !11
  %108 = load double, ptr %9, align 8, !tbaa !11
  %109 = fcmp ogt double %108, 1.000000e+00
  br i1 %109, label %113, label %110

110:                                              ; preds = %105
  %111 = load double, ptr %9, align 8, !tbaa !11
  %112 = fcmp olt double %111, 0.000000e+00
  br i1 %112, label %113, label %116

113:                                              ; preds = %110, %105
  %114 = load ptr, ptr @stderr, align 8, !tbaa !9
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str.7) #5
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

116:                                              ; preds = %110
  store i32 3, ptr %16, align 4, !tbaa !5
  store double 0.000000e+00, ptr %11, align 8, !tbaa !11
  store double 1.000000e+00, ptr %15, align 8, !tbaa !11
  br label %163

117:                                              ; preds = %30
  %118 = load i32, ptr %16, align 4, !tbaa !5
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %123

120:                                              ; preds = %117
  %121 = load ptr, ptr @stderr, align 8, !tbaa !9
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef @.str.4) #5
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

123:                                              ; preds = %117
  %124 = load ptr, ptr @optarg, align 8, !tbaa !9
  %125 = call i32 @atoi(ptr noundef %124) #6
  store i32 %125, ptr %14, align 4, !tbaa !5
  %126 = load i32, ptr %14, align 4, !tbaa !5
  %127 = icmp slt i32 %126, 1
  br i1 %127, label %131, label %128

128:                                              ; preds = %123
  %129 = load i32, ptr %14, align 4, !tbaa !5
  %130 = icmp sgt i32 %129, 9
  br i1 %130, label %131, label %134

131:                                              ; preds = %128, %123
  %132 = load ptr, ptr @stderr, align 8, !tbaa !9
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str.8, i32 noundef 9) #5
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

134:                                              ; preds = %128
  store i32 4, ptr %16, align 4, !tbaa !5
  br label %163

135:                                              ; preds = %30
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %163

136:                                              ; preds = %30
  %137 = load ptr, ptr @optarg, align 8, !tbaa !9
  %138 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %137, ptr noundef @.str.9, ptr noundef %22, ptr noundef %23) #5
  store i32 %138, ptr %8, align 4, !tbaa !5
  %139 = load i32, ptr %8, align 4, !tbaa !5
  %140 = icmp ne i32 %139, 2
  br i1 %140, label %141, label %144

141:                                              ; preds = %136
  %142 = load ptr, ptr @stderr, align 8, !tbaa !9
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.10) #5
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

144:                                              ; preds = %136
  br label %163

145:                                              ; preds = %30
  %146 = load ptr, ptr @optarg, align 8, !tbaa !9
  %147 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %146, ptr noundef @.str.11, ptr noundef %20, ptr noundef %21) #5
  store i32 %147, ptr %8, align 4, !tbaa !5
  %148 = load i32, ptr %8, align 4, !tbaa !5
  %149 = icmp ne i32 %148, 2
  br i1 %149, label %150, label %153

150:                                              ; preds = %145
  %151 = load ptr, ptr @stderr, align 8, !tbaa !9
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef @.str.10) #5
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

153:                                              ; preds = %145
  %154 = load double, ptr %20, align 8, !tbaa !11
  %155 = fcmp olt double %154, 0.000000e+00
  br i1 %155, label %156, label %159

156:                                              ; preds = %153
  %157 = load ptr, ptr @stderr, align 8, !tbaa !9
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.12) #5
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

159:                                              ; preds = %153
  br label %163

160:                                              ; preds = %30
  call void @__print_usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

161:                                              ; preds = %30
  %162 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

163:                                              ; preds = %159, %144, %135, %134, %116, %98, %77, %59, %52, %43
  br label %25, !llvm.loop !13

164:                                              ; preds = %25
  %165 = load i32, ptr %16, align 4, !tbaa !5
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %167, label %170

167:                                              ; preds = %164
  %168 = load ptr, ptr @stderr, align 8, !tbaa !9
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %168, ptr noundef @.str.14) #5
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

170:                                              ; preds = %164
  %171 = call ptr @signal(i32 noundef 2, ptr noundef @__signal_handler) #5
  store i32 1, ptr @running, align 4, !tbaa !5
  %172 = call i32 @rc_servo_init()
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %175

174:                                              ; preds = %170
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

175:                                              ; preds = %170
  %176 = load i32, ptr %22, align 4, !tbaa !5
  %177 = load i32, ptr %23, align 4, !tbaa !5
  %178 = call i32 @rc_servo_set_esc_range(i32 noundef %176, i32 noundef %177)
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %181

180:                                              ; preds = %175
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

181:                                              ; preds = %175
  %182 = call i32 @rc_servo_power_rail_en(i32 noundef 0)
  %183 = load i32, ptr %16, align 4, !tbaa !5
  %184 = icmp eq i32 %183, 4
  br i1 %184, label %185, label %202

185:                                              ; preds = %181
  %186 = call i32 @rc_dsm_init()
  %187 = icmp eq i32 %186, -1
  br i1 %187, label %188, label %189

188:                                              ; preds = %185
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

189:                                              ; preds = %185
  %190 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %191 = load ptr, ptr @stdout, align 8, !tbaa !9
  %192 = call i32 @fflush(ptr noundef %191)
  br label %193

193:                                              ; preds = %200, %189
  %194 = call i32 @rc_dsm_is_new_data()
  %195 = icmp eq i32 %194, 0
  br i1 %195, label %196, label %201

196:                                              ; preds = %193
  %197 = load i32, ptr @running, align 4, !tbaa !5
  %198 = icmp eq i32 %197, 0
  br i1 %198, label %199, label %200

199:                                              ; preds = %196
  store i32 0, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

200:                                              ; preds = %196
  call void @rc_usleep(i32 noundef 50000)
  br label %193, !llvm.loop !15

201:                                              ; preds = %193
  br label %202

202:                                              ; preds = %201, %181
  %203 = load i32, ptr %19, align 4, !tbaa !5
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %205, label %233

205:                                              ; preds = %202
  %206 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %207

207:                                              ; preds = %228, %205
  %208 = load i32, ptr %7, align 4, !tbaa !5
  %209 = sitofp i32 %208 to double
  %210 = load i32, ptr %18, align 4, !tbaa !5
  %211 = sitofp i32 %210 to double
  %212 = load double, ptr %20, align 8, !tbaa !11
  %213 = fmul double %211, %212
  %214 = fcmp ole double %209, %213
  br i1 %214, label %215, label %231

215:                                              ; preds = %207
  %216 = load i32, ptr @running, align 4, !tbaa !5
  %217 = icmp eq i32 %216, 0
  br i1 %217, label %218, label %219

218:                                              ; preds = %215
  store i32 0, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

219:                                              ; preds = %215
  %220 = load i32, ptr %13, align 4, !tbaa !5
  %221 = load double, ptr %21, align 8, !tbaa !11
  %222 = call i32 @rc_servo_send_esc_pulse_normalized(i32 noundef %220, double noundef %221)
  %223 = icmp eq i32 %222, -1
  br i1 %223, label %224, label %225

224:                                              ; preds = %219
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

225:                                              ; preds = %219
  %226 = load i32, ptr %18, align 4, !tbaa !5
  %227 = sdiv i32 1000000, %226
  call void @rc_usleep(i32 noundef %227)
  br label %228

228:                                              ; preds = %225
  %229 = load i32, ptr %7, align 4, !tbaa !5
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %7, align 4, !tbaa !5
  br label %207, !llvm.loop !16

231:                                              ; preds = %207
  %232 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  br label %233

233:                                              ; preds = %231, %202
  br label %234

234:                                              ; preds = %352, %233
  %235 = load i32, ptr @running, align 4, !tbaa !5
  %236 = icmp ne i32 %235, 0
  br i1 %236, label %237, label %355

237:                                              ; preds = %234
  %238 = load i32, ptr %16, align 4, !tbaa !5
  switch i32 %238, label %349 [
    i32 1, label %239
    i32 2, label %251
    i32 3, label %255
    i32 4, label %286
  ]

239:                                              ; preds = %237
  %240 = load i32, ptr %10, align 4, !tbaa !5
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %246

242:                                              ; preds = %239
  %243 = load i32, ptr %13, align 4, !tbaa !5
  %244 = load double, ptr %11, align 8, !tbaa !11
  %245 = call i32 @rc_servo_send_oneshot_pulse_normalized(i32 noundef %243, double noundef %244)
  br label %250

246:                                              ; preds = %239
  %247 = load i32, ptr %13, align 4, !tbaa !5
  %248 = load double, ptr %11, align 8, !tbaa !11
  %249 = call i32 @rc_servo_send_esc_pulse_normalized(i32 noundef %247, double noundef %248)
  br label %250

250:                                              ; preds = %246, %242
  br label %352

251:                                              ; preds = %237
  %252 = load i32, ptr %13, align 4, !tbaa !5
  %253 = load i32, ptr %12, align 4, !tbaa !5
  %254 = call i32 @rc_servo_send_pulse_us(i32 noundef %252, i32 noundef %253)
  br label %352

255:                                              ; preds = %237
  %256 = load double, ptr %15, align 8, !tbaa !11
  %257 = load double, ptr %9, align 8, !tbaa !11
  %258 = fmul double %256, %257
  %259 = load i32, ptr %18, align 4, !tbaa !5
  %260 = sitofp i32 %259 to double
  %261 = fdiv double %258, %260
  %262 = load double, ptr %11, align 8, !tbaa !11
  %263 = fadd double %262, %261
  store double %263, ptr %11, align 8, !tbaa !11
  %264 = load double, ptr %11, align 8, !tbaa !11
  %265 = load double, ptr %9, align 8, !tbaa !11
  %266 = fcmp ogt double %264, %265
  br i1 %266, label %267, label %269

267:                                              ; preds = %255
  %268 = load double, ptr %9, align 8, !tbaa !11
  store double %268, ptr %11, align 8, !tbaa !11
  store double -1.000000e+00, ptr %15, align 8, !tbaa !11
  br label %274

269:                                              ; preds = %255
  %270 = load double, ptr %11, align 8, !tbaa !11
  %271 = fcmp olt double %270, 0.000000e+00
  br i1 %271, label %272, label %273

272:                                              ; preds = %269
  store double 0.000000e+00, ptr %11, align 8, !tbaa !11
  store double 1.000000e+00, ptr %15, align 8, !tbaa !11
  br label %273

273:                                              ; preds = %272, %269
  br label %274

274:                                              ; preds = %273, %267
  %275 = load i32, ptr %10, align 4, !tbaa !5
  %276 = icmp ne i32 %275, 0
  br i1 %276, label %277, label %281

277:                                              ; preds = %274
  %278 = load i32, ptr %13, align 4, !tbaa !5
  %279 = load double, ptr %11, align 8, !tbaa !11
  %280 = call i32 @rc_servo_send_oneshot_pulse_normalized(i32 noundef %278, double noundef %279)
  br label %285

281:                                              ; preds = %274
  %282 = load i32, ptr %13, align 4, !tbaa !5
  %283 = load double, ptr %11, align 8, !tbaa !11
  %284 = call i32 @rc_servo_send_esc_pulse_normalized(i32 noundef %282, double noundef %283)
  br label %285

285:                                              ; preds = %281, %277
  br label %352

286:                                              ; preds = %237
  %287 = call i64 @rc_dsm_nanos_since_last_packet()
  store i64 %287, ptr %17, align 8, !tbaa !17
  %288 = load i64, ptr %17, align 8, !tbaa !17
  %289 = icmp ugt i64 %288, 200000000
  br i1 %289, label %290, label %304

290:                                              ; preds = %286
  %291 = load i32, ptr %10, align 4, !tbaa !5
  %292 = icmp ne i32 %291, 0
  br i1 %292, label %293, label %296

293:                                              ; preds = %290
  %294 = load i32, ptr %13, align 4, !tbaa !5
  %295 = call i32 @rc_servo_send_oneshot_pulse_normalized(i32 noundef %294, double noundef 0.000000e+00)
  br label %299

296:                                              ; preds = %290
  %297 = load i32, ptr %13, align 4, !tbaa !5
  %298 = call i32 @rc_servo_send_esc_pulse_normalized(i32 noundef %297, double noundef 0.000000e+00)
  br label %299

299:                                              ; preds = %296, %293
  %300 = load i64, ptr %17, align 8, !tbaa !17
  %301 = uitofp i64 %300 to double
  %302 = fdiv double %301, 1.000000e+09
  %303 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef %302)
  br label %346

304:                                              ; preds = %286
  %305 = load i32, ptr %14, align 4, !tbaa !5
  %306 = call double @rc_dsm_ch_normalized(i32 noundef %305)
  store double %306, ptr %11, align 8, !tbaa !11
  %307 = load double, ptr %11, align 8, !tbaa !11
  %308 = fcmp olt double %307, -1.000000e-01
  br i1 %308, label %309, label %310

309:                                              ; preds = %304
  store double -1.000000e-01, ptr %11, align 8, !tbaa !11
  br label %310

310:                                              ; preds = %309, %304
  %311 = load double, ptr %11, align 8, !tbaa !11
  %312 = fcmp ogt double %311, 1.000000e+00
  br i1 %312, label %313, label %314

313:                                              ; preds = %310
  store double 1.000000e+00, ptr %11, align 8, !tbaa !11
  br label %314

314:                                              ; preds = %313, %310
  %315 = load i32, ptr %10, align 4, !tbaa !5
  %316 = icmp ne i32 %315, 0
  br i1 %316, label %317, label %321

317:                                              ; preds = %314
  %318 = load i32, ptr %13, align 4, !tbaa !5
  %319 = load double, ptr %11, align 8, !tbaa !11
  %320 = call i32 @rc_servo_send_oneshot_pulse_normalized(i32 noundef %318, double noundef %319)
  br label %325

321:                                              ; preds = %314
  %322 = load i32, ptr %13, align 4, !tbaa !5
  %323 = load double, ptr %11, align 8, !tbaa !11
  %324 = call i32 @rc_servo_send_esc_pulse_normalized(i32 noundef %322, double noundef %323)
  br label %325

325:                                              ; preds = %321, %317
  %326 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  %327 = call i32 @rc_dsm_resolution()
  %328 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %327)
  %329 = call i32 @rc_dsm_channels()
  %330 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef %329)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %331

331:                                              ; preds = %342, %325
  %332 = load i32, ptr %7, align 4, !tbaa !5
  %333 = call i32 @rc_dsm_channels()
  %334 = icmp slt i32 %332, %333
  br i1 %334, label %335, label %345

335:                                              ; preds = %331
  %336 = load i32, ptr %7, align 4, !tbaa !5
  %337 = add nsw i32 %336, 1
  %338 = load i32, ptr %7, align 4, !tbaa !5
  %339 = add nsw i32 %338, 1
  %340 = call double @rc_dsm_ch_normalized(i32 noundef %339)
  %341 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %337, double noundef %340)
  br label %342

342:                                              ; preds = %335
  %343 = load i32, ptr %7, align 4, !tbaa !5
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr %7, align 4, !tbaa !5
  br label %331, !llvm.loop !19

345:                                              ; preds = %331
  br label %346

346:                                              ; preds = %345, %299
  %347 = load ptr, ptr @stdout, align 8, !tbaa !9
  %348 = call i32 @fflush(ptr noundef %347)
  br label %352

349:                                              ; preds = %237
  %350 = load ptr, ptr @stderr, align 8, !tbaa !9
  %351 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %350, ptr noundef @.str.23) #5
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

352:                                              ; preds = %346, %285, %251, %250
  %353 = load i32, ptr %18, align 4, !tbaa !5
  %354 = sdiv i32 1000000, %353
  call void @rc_usleep(i32 noundef %354)
  br label %234, !llvm.loop !20

355:                                              ; preds = %234
  %356 = load i32, ptr %10, align 4, !tbaa !5
  %357 = icmp ne i32 %356, 0
  br i1 %357, label %358, label %361

358:                                              ; preds = %355
  %359 = load i32, ptr %13, align 4, !tbaa !5
  %360 = call i32 @rc_servo_send_oneshot_pulse_normalized(i32 noundef %359, double noundef -1.000000e-01)
  br label %364

361:                                              ; preds = %355
  %362 = load i32, ptr %13, align 4, !tbaa !5
  %363 = call i32 @rc_servo_send_esc_pulse_normalized(i32 noundef %362, double noundef -1.000000e-01)
  br label %364

364:                                              ; preds = %361, %358
  call void @rc_usleep(i32 noundef 50000)
  call void @rc_servo_cleanup()
  %365 = call i32 @rc_dsm_cleanup()
  %366 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %367

367:                                              ; preds = %364, %349, %224, %218, %199, %188, %180, %174, %167, %161, %160, %156, %150, %141, %131, %120, %113, %102, %96, %87, %81, %74, %63, %56, %49, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %368 = load i32, ptr %3, align 4
  ret i32 %368
}

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

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #3

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

; Function Attrs: nounwind uwtable
declare hidden void @__print_usage() #0

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #3

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

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind
declare ptr @signal(i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @__signal_handler(i32 noundef) #0

declare i32 @rc_servo_init() #4

declare i32 @rc_servo_set_esc_range(i32 noundef, i32 noundef) #4

declare i32 @rc_servo_power_rail_en(i32 noundef) #4

declare i32 @rc_dsm_init() #4

declare i32 @fflush(ptr noundef) #4

declare i32 @rc_dsm_is_new_data() #4

declare void @rc_usleep(i32 noundef) #4

declare i32 @rc_servo_send_esc_pulse_normalized(i32 noundef, double noundef) #4

declare i32 @rc_servo_send_oneshot_pulse_normalized(i32 noundef, double noundef) #4

declare i32 @rc_servo_send_pulse_us(i32 noundef, i32 noundef) #4

declare i64 @rc_dsm_nanos_since_last_packet() #4

declare double @rc_dsm_ch_normalized(i32 noundef) #4

declare i32 @rc_dsm_resolution() #4

declare i32 @rc_dsm_channels() #4

declare void @rc_servo_cleanup() #4

declare i32 @rc_dsm_cleanup() #4

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

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}


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

@opterr = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@running = external hidden local_unnamed_addr global i32, align 4
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.16 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store double 3.000000e+00, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store double -1.000000e-01, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 1000, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store i32 2000, ptr %6, align 4, !tbaa !9
  store i32 0, ptr @opterr, align 4, !tbaa !9
  br label %7

7:                                                ; preds = %.backedge, %2
  %.098 = phi double [ 0.000000e+00, %2 ], [ %.098.be, %.backedge ]
  %.096 = phi i32 [ 0, %2 ], [ %.096.be, %.backedge ]
  %.091 = phi double [ 0.000000e+00, %2 ], [ %.091.be, %.backedge ]
  %.089 = phi i32 [ 0, %2 ], [ %.089.be, %.backedge ]
  %.087 = phi i32 [ 0, %2 ], [ %.087.be, %.backedge ]
  %.085 = phi i32 [ undef, %2 ], [ %.085.be, %.backedge ]
  %.081 = phi i32 [ 0, %2 ], [ %.081.be, %.backedge ]
  %.078 = phi i32 [ 50, %2 ], [ %.078.be, %.backedge ]
  %.0 = phi i32 [ 1, %2 ], [ %.0.be, %.backedge ]
  %8 = call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str) #6
  switch i32 %8, label %97 [
    i32 -1, label %99
    i32 99, label %9
    i32 102, label %16
    i32 111, label %23
    i32 116, label %28
    i32 119, label %40
    i32 115, label %55
    i32 114, label %67
    i32 100, label %.backedge
    i32 109, label %78
    i32 112, label %84
    i32 104, label %96
  ]

.backedge:                                        ; preds = %7, %71, %59, %48, %32, %23, %90, %78, %16, %9
  %.098.be = phi double [ %.098, %90 ], [ %.098, %78 ], [ %.098, %16 ], [ %.098, %9 ], [ %.098, %23 ], [ %.098, %32 ], [ %.098, %48 ], [ %61, %59 ], [ %.098, %71 ], [ %.098, %7 ]
  %.096.be = phi i32 [ %.096, %90 ], [ %.096, %78 ], [ %.096, %16 ], [ %.096, %9 ], [ 1, %23 ], [ %.096, %32 ], [ 0, %48 ], [ %.096, %59 ], [ %.096, %71 ], [ %.096, %7 ]
  %.091.be = phi double [ %.091, %90 ], [ %.091, %78 ], [ %.091, %16 ], [ %.091, %9 ], [ %.091, %23 ], [ %34, %32 ], [ %.091, %48 ], [ 0.000000e+00, %59 ], [ %.091, %71 ], [ %.091, %7 ]
  %.089.be = phi i32 [ %.089, %90 ], [ %.089, %78 ], [ %.089, %16 ], [ %.089, %9 ], [ %.089, %23 ], [ %.089, %32 ], [ %51, %48 ], [ %.089, %59 ], [ %.089, %71 ], [ %.089, %7 ]
  %.087.be = phi i32 [ %.087, %90 ], [ %.087, %78 ], [ %.087, %16 ], [ %11, %9 ], [ %.087, %23 ], [ %.087, %32 ], [ %.087, %48 ], [ %.087, %59 ], [ %.087, %71 ], [ %.087, %7 ]
  %.085.be = phi i32 [ %.085, %90 ], [ %.085, %78 ], [ %.085, %16 ], [ %.085, %9 ], [ %.085, %23 ], [ %.085, %32 ], [ %.085, %48 ], [ %.085, %59 ], [ %73, %71 ], [ %.085, %7 ]
  %.081.be = phi i32 [ %.081, %90 ], [ %.081, %78 ], [ %.081, %16 ], [ %.081, %9 ], [ %.081, %23 ], [ 1, %32 ], [ 2, %48 ], [ 3, %59 ], [ 4, %71 ], [ %.081, %7 ]
  %.078.be = phi i32 [ %.078, %90 ], [ %.078, %78 ], [ %18, %16 ], [ %.078, %9 ], [ %.078, %23 ], [ %.078, %32 ], [ %.078, %48 ], [ %.078, %59 ], [ %.078, %71 ], [ %.078, %7 ]
  %.0.be = phi i32 [ %.0, %90 ], [ %.0, %78 ], [ %.0, %16 ], [ %.0, %9 ], [ %.0, %23 ], [ %.0, %32 ], [ %.0, %48 ], [ %.0, %59 ], [ %.0, %71 ], [ 0, %7 ]
  br label %7, !llvm.loop !11

9:                                                ; preds = %7
  %10 = load ptr, ptr @optarg, align 8, !tbaa !13
  %11 = call i32 @atoi(ptr nocapture noundef %10) #7
  %12 = add i32 %11, -9
  %or.cond = icmp ult i32 %12, -8
  br i1 %or.cond, label %13, label %.backedge

13:                                               ; preds = %9
  %14 = load ptr, ptr @stderr, align 8, !tbaa !13
  %15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.1, i32 noundef 1, i32 noundef 8) #8
  br label %.loopexit128

16:                                               ; preds = %7
  %17 = load ptr, ptr @optarg, align 8, !tbaa !13
  %18 = call i32 @atoi(ptr nocapture noundef %17) #7
  %19 = icmp slt i32 %18, 1
  br i1 %19, label %20, label %.backedge

20:                                               ; preds = %16
  %21 = load ptr, ptr @stderr, align 8, !tbaa !13
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.2) #8
  br label %.loopexit128

23:                                               ; preds = %7
  %24 = icmp eq i32 %.081, 2
  br i1 %24, label %25, label %.backedge

25:                                               ; preds = %23
  %26 = load ptr, ptr @stderr, align 8, !tbaa !13
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.3) #8
  br label %.loopexit128

28:                                               ; preds = %7
  %.not127 = icmp eq i32 %.081, 0
  br i1 %.not127, label %32, label %29

29:                                               ; preds = %28
  %30 = load ptr, ptr @stderr, align 8, !tbaa !13
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.4) #8
  call void @__print_usage()
  br label %.loopexit128

32:                                               ; preds = %28
  %33 = load ptr, ptr @optarg, align 8, !tbaa !13
  %34 = call double @atof(ptr noundef %33) #7
  %35 = fcmp ogt double %34, 1.000000e+00
  %36 = fcmp olt double %34, -1.000000e-01
  %or.cond3 = or i1 %35, %36
  br i1 %or.cond3, label %37, label %.backedge

37:                                               ; preds = %32
  %38 = load ptr, ptr @stderr, align 8, !tbaa !13
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.5) #8
  br label %.loopexit128

40:                                               ; preds = %7
  %.not125 = icmp eq i32 %.081, 0
  br i1 %.not125, label %44, label %41

41:                                               ; preds = %40
  %42 = load ptr, ptr @stderr, align 8, !tbaa !13
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.4) #8
  call void @__print_usage()
  br label %.loopexit128

44:                                               ; preds = %40
  %.not126 = icmp eq i32 %.096, 0
  br i1 %.not126, label %48, label %45

45:                                               ; preds = %44
  %46 = load ptr, ptr @stderr, align 8, !tbaa !13
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.3) #8
  br label %.loopexit128

48:                                               ; preds = %44
  %49 = load ptr, ptr @optarg, align 8, !tbaa !13
  %50 = call double @atof(ptr noundef %49) #7
  %51 = fptosi double %50 to i32
  %52 = icmp slt i32 %51, 10
  br i1 %52, label %53, label %.backedge

53:                                               ; preds = %48
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %.loopexit128

55:                                               ; preds = %7
  %.not124 = icmp eq i32 %.081, 0
  br i1 %.not124, label %59, label %56

56:                                               ; preds = %55
  %57 = load ptr, ptr @stderr, align 8, !tbaa !13
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.4) #8
  call void @__print_usage()
  br label %.loopexit128

59:                                               ; preds = %55
  %60 = load ptr, ptr @optarg, align 8, !tbaa !13
  %61 = call double @atof(ptr noundef %60) #7
  %62 = fcmp ogt double %61, 1.000000e+00
  %63 = fcmp olt double %61, 0.000000e+00
  %or.cond5 = or i1 %62, %63
  br i1 %or.cond5, label %64, label %.backedge

64:                                               ; preds = %59
  %65 = load ptr, ptr @stderr, align 8, !tbaa !13
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str.7) #8
  br label %.loopexit128

67:                                               ; preds = %7
  %.not123 = icmp eq i32 %.081, 0
  br i1 %.not123, label %71, label %68

68:                                               ; preds = %67
  %69 = load ptr, ptr @stderr, align 8, !tbaa !13
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.4) #8
  call void @__print_usage()
  br label %.loopexit128

71:                                               ; preds = %67
  %72 = load ptr, ptr @optarg, align 8, !tbaa !13
  %73 = call i32 @atoi(ptr nocapture noundef %72) #7
  %74 = add i32 %73, -10
  %or.cond7 = icmp ult i32 %74, -9
  br i1 %or.cond7, label %75, label %.backedge

75:                                               ; preds = %71
  %76 = load ptr, ptr @stderr, align 8, !tbaa !13
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.8, i32 noundef 9) #8
  br label %.loopexit128

78:                                               ; preds = %7
  %79 = load ptr, ptr @optarg, align 8, !tbaa !13
  %80 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %79, ptr noundef nonnull @.str.9, ptr noundef nonnull %5, ptr noundef nonnull %6) #6
  %.not122 = icmp eq i32 %80, 2
  br i1 %.not122, label %.backedge, label %81

81:                                               ; preds = %78
  %82 = load ptr, ptr @stderr, align 8, !tbaa !13
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull @.str.10) #8
  br label %.loopexit128

84:                                               ; preds = %7
  %85 = load ptr, ptr @optarg, align 8, !tbaa !13
  %86 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %85, ptr noundef nonnull @.str.11, ptr noundef nonnull %3, ptr noundef nonnull %4) #6
  %.not121 = icmp eq i32 %86, 2
  br i1 %.not121, label %90, label %87

87:                                               ; preds = %84
  %88 = load ptr, ptr @stderr, align 8, !tbaa !13
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef nonnull @.str.10) #8
  br label %.loopexit128

90:                                               ; preds = %84
  %91 = load double, ptr %3, align 8, !tbaa !5
  %92 = fcmp olt double %91, 0.000000e+00
  br i1 %92, label %93, label %.backedge

93:                                               ; preds = %90
  %94 = load ptr, ptr @stderr, align 8, !tbaa !13
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef nonnull @.str.12) #8
  br label %.loopexit128

96:                                               ; preds = %7
  call void @__print_usage()
  br label %.loopexit128

97:                                               ; preds = %7
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  call void @__print_usage()
  br label %.loopexit128

99:                                               ; preds = %7
  %100 = icmp eq i32 %.081, 0
  br i1 %100, label %101, label %104

101:                                              ; preds = %99
  %102 = load ptr, ptr @stderr, align 8, !tbaa !13
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef nonnull @.str.14) #8
  call void @__print_usage()
  br label %.loopexit128

104:                                              ; preds = %99
  %105 = call ptr @signal(i32 noundef 2, ptr noundef nonnull @__signal_handler) #6
  store i32 1, ptr @running, align 4, !tbaa !9
  %106 = call i32 @rc_servo_init() #6
  %.not112 = icmp eq i32 %106, 0
  br i1 %.not112, label %107, label %.loopexit128

107:                                              ; preds = %104
  %108 = load i32, ptr %5, align 4, !tbaa !9
  %109 = load i32, ptr %6, align 4, !tbaa !9
  %110 = call i32 @rc_servo_set_esc_range(i32 noundef %108, i32 noundef %109) #6
  %.not113 = icmp eq i32 %110, 0
  br i1 %.not113, label %111, label %.loopexit128

111:                                              ; preds = %107
  %112 = call i32 @rc_servo_power_rail_en(i32 noundef 0) #6
  %113 = icmp eq i32 %.081, 4
  br i1 %113, label %114, label %.loopexit129

114:                                              ; preds = %111
  %115 = call i32 @rc_dsm_init() #6
  %116 = icmp eq i32 %115, -1
  br i1 %116, label %.loopexit128, label %117

117:                                              ; preds = %114
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %119 = load ptr, ptr @stdout, align 8, !tbaa !13
  %120 = call i32 @fflush(ptr noundef %119)
  %121 = call i32 @rc_dsm_is_new_data() #6
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %.lr.ph, label %.loopexit129

.lr.ph:                                           ; preds = %117, %125
  %123 = load i32, ptr @running, align 4, !tbaa !9
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %.loopexit128, label %125

125:                                              ; preds = %.lr.ph
  call void @rc_usleep(i32 noundef 50000) #6
  %126 = call i32 @rc_dsm_is_new_data() #6
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %.lr.ph, label %.loopexit129, !llvm.loop !15

.loopexit129:                                     ; preds = %125, %117, %111
  %.not114 = icmp eq i32 %.0, 0
  br i1 %.not114, label %148, label %128

128:                                              ; preds = %.loopexit129
  %129 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  %130 = uitofp nneg i32 %.078 to double
  %131 = load double, ptr %3, align 8, !tbaa !5
  %132 = fmul double %131, %130
  %133 = fcmp ult double %132, 0.000000e+00
  br i1 %133, label %._crit_edge, label %.lr.ph285

.lr.ph285:                                        ; preds = %128, %140
  %.0100284 = phi i32 [ %142, %140 ], [ 0, %128 ]
  %134 = load i32, ptr @running, align 4, !tbaa !9
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %.loopexit128, label %136

136:                                              ; preds = %.lr.ph285
  %137 = load double, ptr %4, align 8, !tbaa !5
  %138 = call i32 @rc_servo_send_esc_pulse_normalized(i32 noundef %.087, double noundef %137) #6
  %139 = icmp eq i32 %138, -1
  br i1 %139, label %.loopexit128, label %140

140:                                              ; preds = %136
  %141 = udiv i32 1000000, %.078
  call void @rc_usleep(i32 noundef %141) #6
  %142 = add nuw nsw i32 %.0100284, 1
  %143 = uitofp nneg i32 %142 to double
  %144 = load double, ptr %3, align 8, !tbaa !5
  %145 = fmul double %144, %130
  %146 = fcmp ult double %145, %143
  br i1 %146, label %._crit_edge, label %.lr.ph285, !llvm.loop !16

._crit_edge:                                      ; preds = %140, %128
  %147 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  br label %148

148:                                              ; preds = %._crit_edge, %.loopexit129
  %149 = load i32, ptr @running, align 4, !tbaa !9
  %.not115289 = icmp eq i32 %149, 0
  br i1 %.not115289, label %._crit_edge294, label %.lr.ph293

.lr.ph293:                                        ; preds = %148
  %.not117 = icmp eq i32 %.096, 0
  %150 = uitofp nneg i32 %.078 to double
  br label %151

151:                                              ; preds = %.lr.ph293, %207
  %.2291 = phi double [ 1.000000e+00, %.lr.ph293 ], [ %.4, %207 ]
  %.293290 = phi double [ %.091, %.lr.ph293 ], [ %.7, %207 ]
  switch i32 %.081, label %default.unreachable [
    i32 1, label %152
    i32 2, label %157
    i32 3, label %159
    i32 4, label %172
  ]

152:                                              ; preds = %151
  br i1 %.not117, label %155, label %153

153:                                              ; preds = %152
  %154 = call i32 @rc_servo_send_oneshot_pulse_normalized(i32 noundef %.087, double noundef %.293290) #6
  br label %207

155:                                              ; preds = %152
  %156 = call i32 @rc_servo_send_esc_pulse_normalized(i32 noundef %.087, double noundef %.293290) #6
  br label %207

157:                                              ; preds = %151
  %158 = call i32 @rc_servo_send_pulse_us(i32 noundef %.087, i32 noundef %.089) #6
  br label %207

159:                                              ; preds = %151
  %160 = fmul double %.098, %.2291
  %161 = fdiv double %160, %150
  %162 = fadd double %.293290, %161
  %163 = fcmp ogt double %162, %.098
  br i1 %163, label %167, label %164

164:                                              ; preds = %159
  %165 = fcmp olt double %162, 0.000000e+00
  br i1 %165, label %166, label %167

166:                                              ; preds = %164
  br label %167

167:                                              ; preds = %159, %164, %166
  %.394 = phi double [ 0.000000e+00, %166 ], [ %162, %164 ], [ %.098, %159 ]
  %.3 = phi double [ 1.000000e+00, %166 ], [ %.2291, %164 ], [ -1.000000e+00, %159 ]
  br i1 %.not117, label %170, label %168

168:                                              ; preds = %167
  %169 = call i32 @rc_servo_send_oneshot_pulse_normalized(i32 noundef %.087, double noundef %.394) #6
  br label %207

170:                                              ; preds = %167
  %171 = call i32 @rc_servo_send_esc_pulse_normalized(i32 noundef %.087, double noundef %.394) #6
  br label %207

172:                                              ; preds = %151
  %173 = call i64 @rc_dsm_nanos_since_last_packet() #6
  %174 = icmp ugt i64 %173, 200000000
  br i1 %174, label %175, label %184

175:                                              ; preds = %172
  br i1 %.not117, label %178, label %176

176:                                              ; preds = %175
  %177 = call i32 @rc_servo_send_oneshot_pulse_normalized(i32 noundef %.087, double noundef 0.000000e+00) #6
  br label %180

178:                                              ; preds = %175
  %179 = call i32 @rc_servo_send_esc_pulse_normalized(i32 noundef %.087, double noundef 0.000000e+00) #6
  br label %180

180:                                              ; preds = %178, %176
  %181 = uitofp i64 %173 to double
  %182 = fdiv double %181, 1.000000e+09
  %183 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef %182)
  br label %.loopexit

184:                                              ; preds = %172
  %185 = call double @rc_dsm_ch_normalized(i32 noundef %.085) #6
  %186 = fcmp olt double %185, -1.000000e-01
  %.495 = select i1 %186, double -1.000000e-01, double %185
  %187 = fcmp ogt double %.495, 1.000000e+00
  %.5 = select i1 %187, double 1.000000e+00, double %.495
  br i1 %.not117, label %190, label %188

188:                                              ; preds = %184
  %189 = call i32 @rc_servo_send_oneshot_pulse_normalized(i32 noundef %.087, double noundef %.5) #6
  br label %192

190:                                              ; preds = %184
  %191 = call i32 @rc_servo_send_esc_pulse_normalized(i32 noundef %.087, double noundef %.5) #6
  br label %192

192:                                              ; preds = %190, %188
  %193 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  %194 = call i32 @rc_dsm_resolution() #6
  %195 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %194)
  %196 = call i32 @rc_dsm_channels() #6
  %197 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, i32 noundef %196)
  %198 = call i32 @rc_dsm_channels() #6
  %199 = icmp sgt i32 %198, 0
  br i1 %199, label %.lr.ph288, label %.loopexit

.lr.ph288:                                        ; preds = %192, %.lr.ph288
  %.1101286 = phi i32 [ %200, %.lr.ph288 ], [ 0, %192 ]
  %200 = add nuw nsw i32 %.1101286, 1
  %201 = call double @rc_dsm_ch_normalized(i32 noundef %200) #6
  %202 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, i32 noundef %200, double noundef %201)
  %203 = call i32 @rc_dsm_channels() #6
  %204 = icmp slt i32 %200, %203
  br i1 %204, label %.lr.ph288, label %.loopexit, !llvm.loop !17

.loopexit:                                        ; preds = %.lr.ph288, %192, %180
  %.6 = phi double [ %.293290, %180 ], [ %.5, %192 ], [ %.5, %.lr.ph288 ]
  %205 = load ptr, ptr @stdout, align 8, !tbaa !13
  %206 = call i32 @fflush(ptr noundef %205)
  br label %207

default.unreachable:                              ; preds = %151
  unreachable

207:                                              ; preds = %168, %170, %153, %155, %.loopexit, %157
  %.7 = phi double [ %.6, %.loopexit ], [ %.394, %168 ], [ %.394, %170 ], [ %.293290, %157 ], [ %.293290, %153 ], [ %.293290, %155 ]
  %.4 = phi double [ %.2291, %.loopexit ], [ %.3, %168 ], [ %.3, %170 ], [ %.2291, %157 ], [ %.2291, %153 ], [ %.2291, %155 ]
  %208 = udiv i32 1000000, %.078
  call void @rc_usleep(i32 noundef %208) #6
  %209 = load i32, ptr @running, align 4, !tbaa !9
  %.not115 = icmp eq i32 %209, 0
  br i1 %.not115, label %._crit_edge294, label %151, !llvm.loop !18

._crit_edge294:                                   ; preds = %207, %148
  %.not116 = icmp eq i32 %.096, 0
  br i1 %.not116, label %212, label %210

210:                                              ; preds = %._crit_edge294
  %211 = call i32 @rc_servo_send_oneshot_pulse_normalized(i32 noundef %.087, double noundef -1.000000e-01) #6
  br label %214

212:                                              ; preds = %._crit_edge294
  %213 = call i32 @rc_servo_send_esc_pulse_normalized(i32 noundef %.087, double noundef -1.000000e-01) #6
  br label %214

214:                                              ; preds = %212, %210
  call void @rc_usleep(i32 noundef 50000) #6
  call void @rc_servo_cleanup() #6
  %215 = call i32 @rc_dsm_cleanup() #6
  %216 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24)
  br label %.loopexit128

.loopexit128:                                     ; preds = %.lr.ph, %136, %.lr.ph285, %114, %107, %104, %214, %101, %97, %96, %93, %87, %81, %75, %68, %64, %56, %53, %45, %41, %37, %29, %25, %20, %13
  %.080 = phi i32 [ -1, %97 ], [ 0, %96 ], [ -1, %87 ], [ -1, %93 ], [ -1, %81 ], [ -1, %68 ], [ -1, %75 ], [ -1, %56 ], [ -1, %64 ], [ -1, %41 ], [ -1, %45 ], [ -1, %53 ], [ -1, %29 ], [ -1, %37 ], [ -1, %25 ], [ -1, %20 ], [ -1, %13 ], [ -1, %101 ], [ 0, %214 ], [ -1, %104 ], [ -1, %107 ], [ -1, %114 ], [ -1, %136 ], [ 0, %.lr.ph285 ], [ 0, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret i32 %.080
}

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

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare hidden void @__print_usage() local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #3

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

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

; Function Attrs: nounwind
declare ptr @signal(i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @__signal_handler(i32 noundef) #0

declare i32 @rc_servo_init() local_unnamed_addr #5

declare i32 @rc_servo_set_esc_range(i32 noundef, i32 noundef) local_unnamed_addr #5

declare i32 @rc_servo_power_rail_en(i32 noundef) local_unnamed_addr #5

declare i32 @rc_dsm_init() local_unnamed_addr #5

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

declare i32 @rc_dsm_is_new_data() local_unnamed_addr #5

declare void @rc_usleep(i32 noundef) local_unnamed_addr #5

declare i32 @rc_servo_send_esc_pulse_normalized(i32 noundef, double noundef) local_unnamed_addr #5

declare i32 @rc_servo_send_oneshot_pulse_normalized(i32 noundef, double noundef) local_unnamed_addr #5

declare i32 @rc_servo_send_pulse_us(i32 noundef, i32 noundef) local_unnamed_addr #5

declare i64 @rc_dsm_nanos_since_last_packet() local_unnamed_addr #5

declare double @rc_dsm_ch_normalized(i32 noundef) local_unnamed_addr #5

declare i32 @rc_dsm_resolution() local_unnamed_addr #5

declare i32 @rc_dsm_channels() local_unnamed_addr #5

declare void @rc_servo_cleanup() local_unnamed_addr #5

declare i32 @rc_dsm_cleanup() local_unnamed_addr #5

; Function Attrs: mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { cold 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 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass