llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmpo2sg4e2g.c'
source_filename = "/tmp/tmpo2sg4e2g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ps_bus_event_register_process(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @ps_process_object(ptr noundef %6)
%8 = call i32 @obus_bus_event_register_object(ptr noundef %5, i32 noundef %7)
ret i32 %8
}
declare i32 @obus_bus_event_register_object(ptr noundef, i32 noundef) #1
declare i32 @ps_process_object(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo2sg4e2g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ps_bus_event_register_process(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @ps_process_object(ptr noundef %6)
%8 = call i32 @obus_bus_event_register_object(ptr noundef %5, i32 noundef %7)
ret i32 %8
}
declare i32 @obus_bus_event_register_object(ptr noundef, i32 noundef) #1
declare i32 @ps_process_object(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptyso047v.c'
source_filename = "/tmp/tmptyso047v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptyso047v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5nag4bc5.c'
source_filename = "/tmp/tmp5nag4bc5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5nag4bc5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmia4jdl8.c'
source_filename = "/tmp/tmpmia4jdl8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"P1 \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"P4 \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"P2 \00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"P5 \00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"P3 \00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"P6 \00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ReadPNMImageFileHeader(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [128 x i8], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 0, ptr %14, align 4
%15 = load ptr, ptr %6, align 8
%16 = call i32 @getc(ptr noundef %15)
store i32 %16, ptr %13, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
br label %17
17: ; preds = %81, %4
%18 = load i32, ptr %12, align 4
%19 = icmp slt i32 %18, 3
br i1 %19, label %20, label %84
20: ; preds = %17
br label %21
21: ; preds = %20, %46
br label %22
22: ; preds = %26, %21
%23 = load i32, ptr %13, align 4
%24 = call i64 @isspace(i32 noundef %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %22
%27 = load ptr, ptr %6, align 8
%28 = call i32 @getc(ptr noundef %27)
store i32 %28, ptr %13, align 4
br label %22, !llvm.loop !6
29: ; preds = %22
%30 = load i32, ptr %13, align 4
%31 = icmp ne i32 %30, 35
br i1 %31, label %32, label %33
32: ; preds = %29
br label %47
33: ; preds = %29
br label %34
34: ; preds = %44, %33
%35 = load ptr, ptr %6, align 8
%36 = call i32 @getc(ptr noundef %35)
store i32 %36, ptr %13, align 4
br label %37
37: ; preds = %34
%38 = load i32, ptr %13, align 4
%39 = load i32, ptr @EOF, align 4
%40 = icmp ne i32 %38, %39
br i1 %40, label %41, label %44
41: ; preds = %37
%42 = load i32, ptr %13, align 4
%43 = icmp ne i32 %42, 10
br label %44
44: ; preds = %41, %37
%45 = phi i1 [ false, %37 ], [ %43, %41 ]
br i1 %45, label %34, label %46, !llvm.loop !8
46: ; preds = %44
br label %21
47: ; preds = %32
br label %48
48: ; preds = %69, %47
%49 = load i32, ptr %13, align 4
%50 = load i32, ptr @EOF, align 4
%51 = icmp ne i32 %49, %50
br i1 %51, label %52, label %57
52: ; preds = %48
%53 = load i32, ptr %13, align 4
%54 = call i64 @isspace(i32 noundef %53)
%55 = icmp ne i64 %54, 0
%56 = xor i1 %55, true
br label %57
57: ; preds = %52, %48
%58 = phi i1 [ false, %48 ], [ %56, %52 ]
br i1 %58, label %59, label %72
59: ; preds = %57
%60 = load i32, ptr %11, align 4
%61 = icmp slt i32 %60, 126
br i1 %61, label %62, label %69
62: ; preds = %59
%63 = load i32, ptr %13, align 4
%64 = trunc i32 %63 to i8
%65 = load i32, ptr %11, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %11, align 4
%67 = sext i32 %65 to i64
%68 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 %67
store i8 %64, ptr %68, align 1
br label %69
69: ; preds = %62, %59
%70 = load ptr, ptr %6, align 8
%71 = call i32 @getc(ptr noundef %70)
store i32 %71, ptr %13, align 4
br label %48, !llvm.loop !9
72: ; preds = %57
%73 = load i32, ptr %11, align 4
%74 = icmp slt i32 %73, 127
br i1 %74, label %75, label %80
75: ; preds = %72
%76 = load i32, ptr %11, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %11, align 4
%78 = sext i32 %76 to i64
%79 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 %78
store i8 32, ptr %79, align 1
br label %80
80: ; preds = %75, %72
br label %81
81: ; preds = %80
%82 = load i32, ptr %12, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %12, align 4
br label %17, !llvm.loop !10
84: ; preds = %17
%85 = load i32, ptr %11, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 %86
store i8 0, ptr %87, align 1
%88 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%89 = call i64 @strncmp(ptr noundef %88, ptr noundef @.str, i32 noundef 3)
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %92
91: ; preds = %84
store i32 1, ptr %14, align 4
br label %92
92: ; preds = %91, %84
%93 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%94 = call i64 @strncmp(ptr noundef %93, ptr noundef @.str.1, i32 noundef 3)
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %97
96: ; preds = %92
store i32 2, ptr %14, align 4
br label %97
97: ; preds = %96, %92
%98 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%99 = call i64 @strncmp(ptr noundef %98, ptr noundef @.str.2, i32 noundef 3)
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %102
101: ; preds = %97
store i32 3, ptr %14, align 4
br label %102
102: ; preds = %101, %97
%103 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%104 = call i64 @strncmp(ptr noundef %103, ptr noundef @.str.3, i32 noundef 3)
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %107
106: ; preds = %102
store i32 4, ptr %14, align 4
br label %107
107: ; preds = %106, %102
%108 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%109 = call i64 @strncmp(ptr noundef %108, ptr noundef @.str.4, i32 noundef 3)
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %107
store i32 5, ptr %14, align 4
br label %112
112: ; preds = %111, %107
%113 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%114 = call i64 @strncmp(ptr noundef %113, ptr noundef @.str.5, i32 noundef 3)
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %117
116: ; preds = %112
store i32 6, ptr %14, align 4
br label %117
117: ; preds = %116, %112
%118 = load i32, ptr %14, align 4
%119 = icmp eq i32 %118, 0
br i1 %119, label %120, label %121
120: ; preds = %117
store i32 0, ptr %5, align 4
br label %211
121: ; preds = %117
%122 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%123 = getelementptr inbounds i8, ptr %122, i64 3
%124 = load ptr, ptr %8, align 8
%125 = load ptr, ptr %7, align 8
%126 = call i32 (ptr, ptr, ptr, ...) @sscanf(ptr noundef %123, ptr noundef @.str.6, ptr noundef %124, ptr noundef %125)
%127 = icmp ne i32 %126, 2
br i1 %127, label %128, label %129
128: ; preds = %121
store i32 0, ptr %5, align 4
br label %211
129: ; preds = %121
%130 = load i32, ptr %14, align 4
%131 = icmp ne i32 %130, 1
br i1 %131, label %132, label %207
132: ; preds = %129
%133 = load i32, ptr %14, align 4
%134 = icmp ne i32 %133, 2
br i1 %134, label %135, label %207
135: ; preds = %132
%136 = load ptr, ptr %6, align 8
%137 = call i32 @getc(ptr noundef %136)
store i32 %137, ptr %13, align 4
store i32 0, ptr %11, align 4
br label %138
138: ; preds = %135, %163
br label %139
139: ; preds = %143, %138
%140 = load i32, ptr %13, align 4
%141 = call i64 @isspace(i32 noundef %140)
%142 = icmp ne i64 %141, 0
br i1 %142, label %143, label %146
143: ; preds = %139
%144 = load ptr, ptr %6, align 8
%145 = call i32 @getc(ptr noundef %144)
store i32 %145, ptr %13, align 4
br label %139, !llvm.loop !11
146: ; preds = %139
%147 = load i32, ptr %13, align 4
%148 = icmp ne i32 %147, 35
br i1 %148, label %149, label %150
149: ; preds = %146
br label %164
150: ; preds = %146
br label %151
151: ; preds = %161, %150
%152 = load ptr, ptr %6, align 8
%153 = call i32 @getc(ptr noundef %152)
store i32 %153, ptr %13, align 4
br label %154
154: ; preds = %151
%155 = load i32, ptr %13, align 4
%156 = load i32, ptr @EOF, align 4
%157 = icmp ne i32 %155, %156
br i1 %157, label %158, label %161
158: ; preds = %154
%159 = load i32, ptr %13, align 4
%160 = icmp ne i32 %159, 10
br label %161
161: ; preds = %158, %154
%162 = phi i1 [ false, %154 ], [ %160, %158 ]
br i1 %162, label %151, label %163, !llvm.loop !12
163: ; preds = %161
br label %138
164: ; preds = %149
br label %165
165: ; preds = %186, %164
%166 = load i32, ptr %13, align 4
%167 = load i32, ptr @EOF, align 4
%168 = icmp ne i32 %166, %167
br i1 %168, label %169, label %174
169: ; preds = %165
%170 = load i32, ptr %13, align 4
%171 = call i64 @isspace(i32 noundef %170)
%172 = icmp ne i64 %171, 0
%173 = xor i1 %172, true
br label %174
174: ; preds = %169, %165
%175 = phi i1 [ false, %165 ], [ %173, %169 ]
br i1 %175, label %176, label %189
176: ; preds = %174
%177 = load i32, ptr %11, align 4
%178 = icmp slt i32 %177, 126
br i1 %178, label %179, label %186
179: ; preds = %176
%180 = load i32, ptr %13, align 4
%181 = trunc i32 %180 to i8
%182 = load i32, ptr %11, align 4
%183 = add nsw i32 %182, 1
store i32 %183, ptr %11, align 4
%184 = sext i32 %182 to i64
%185 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 %184
store i8 %181, ptr %185, align 1
br label %186
186: ; preds = %179, %176
%187 = load ptr, ptr %6, align 8
%188 = call i32 @getc(ptr noundef %187)
store i32 %188, ptr %13, align 4
br label %165, !llvm.loop !13
189: ; preds = %174
%190 = load i32, ptr %11, align 4
%191 = icmp slt i32 %190, 127
br i1 %191, label %192, label %197
192: ; preds = %189
%193 = load i32, ptr %11, align 4
%194 = add nsw i32 %193, 1
store i32 %194, ptr %11, align 4
%195 = sext i32 %193 to i64
%196 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 %195
store i8 32, ptr %196, align 1
br label %197
197: ; preds = %192, %189
%198 = load i32, ptr %11, align 4
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 %199
store i8 0, ptr %200, align 1
%201 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%202 = load ptr, ptr %9, align 8
%203 = call i32 (ptr, ptr, ptr, ...) @sscanf(ptr noundef %201, ptr noundef @.str.7, ptr noundef %202)
%204 = icmp ne i32 %203, 1
br i1 %204, label %205, label %206
205: ; preds = %197
store i32 0, ptr %5, align 4
br label %211
206: ; preds = %197
br label %209
207: ; preds = %132, %129
%208 = load ptr, ptr %9, align 8
store i32 1, ptr %208, align 4
br label %209
209: ; preds = %207, %206
%210 = load i32, ptr %14, align 4
store i32 %210, ptr %5, align 4
br label %211
211: ; preds = %209, %205, %128, %120
%212 = load i32, ptr %5, align 4
ret i32 %212
}
declare i32 @getc(ptr noundef) #1
declare i64 @isspace(i32 noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmia4jdl8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"P1 \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"P4 \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"P2 \00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"P5 \00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"P3 \00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"P6 \00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ReadPNMImageFileHeader(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [128 x i8], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 0, ptr %14, align 4
%15 = load ptr, ptr %6, align 8
%16 = call i32 @getc(ptr noundef %15)
store i32 %16, ptr %13, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
%17 = load i32, ptr %12, align 4
%18 = icmp slt i32 %17, 3
br i1 %18, label %.lr.ph2, label %87
.lr.ph2: ; preds = %4
br label %19
19: ; preds = %.lr.ph2, %82
br label %20
20: ; preds = %47, %19
%21 = load i32, ptr %13, align 4
%22 = call i64 @isspace(i32 noundef %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %.lr.ph, label %30
.lr.ph: ; preds = %20
br label %24
24: ; preds = %.lr.ph, %24
%25 = load ptr, ptr %6, align 8
%26 = call i32 @getc(ptr noundef %25)
store i32 %26, ptr %13, align 4
%27 = load i32, ptr %13, align 4
%28 = call i64 @isspace(i32 noundef %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %20
%31 = load i32, ptr %13, align 4
%32 = icmp ne i32 %31, 35
br i1 %32, label %33, label %34
33: ; preds = %30
br label %48
34: ; preds = %30
br label %35
35: ; preds = %45, %34
%36 = load ptr, ptr %6, align 8
%37 = call i32 @getc(ptr noundef %36)
store i32 %37, ptr %13, align 4
br label %38
38: ; preds = %35
%39 = load i32, ptr %13, align 4
%40 = load i32, ptr @EOF, align 4
%41 = icmp ne i32 %39, %40
br i1 %41, label %42, label %45
42: ; preds = %38
%43 = load i32, ptr %13, align 4
%44 = icmp ne i32 %43, 10
br label %45
45: ; preds = %42, %38
%46 = phi i1 [ false, %38 ], [ %44, %42 ]
br i1 %46, label %35, label %47, !llvm.loop !8
47: ; preds = %45
br label %20
48: ; preds = %33
br label %49
49: ; preds = %70, %48
%50 = load i32, ptr %13, align 4
%51 = load i32, ptr @EOF, align 4
%52 = icmp ne i32 %50, %51
br i1 %52, label %53, label %58
53: ; preds = %49
%54 = load i32, ptr %13, align 4
%55 = call i64 @isspace(i32 noundef %54)
%56 = icmp ne i64 %55, 0
%57 = xor i1 %56, true
br label %58
58: ; preds = %53, %49
%59 = phi i1 [ false, %49 ], [ %57, %53 ]
br i1 %59, label %60, label %73
60: ; preds = %58
%61 = load i32, ptr %11, align 4
%62 = icmp slt i32 %61, 126
br i1 %62, label %63, label %70
63: ; preds = %60
%64 = load i32, ptr %13, align 4
%65 = trunc i32 %64 to i8
%66 = load i32, ptr %11, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %11, align 4
%68 = sext i32 %66 to i64
%69 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 %68
store i8 %65, ptr %69, align 1
br label %70
70: ; preds = %63, %60
%71 = load ptr, ptr %6, align 8
%72 = call i32 @getc(ptr noundef %71)
store i32 %72, ptr %13, align 4
br label %49, !llvm.loop !9
73: ; preds = %58
%74 = load i32, ptr %11, align 4
%75 = icmp slt i32 %74, 127
br i1 %75, label %76, label %81
76: ; preds = %73
%77 = load i32, ptr %11, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %11, align 4
%79 = sext i32 %77 to i64
%80 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 %79
store i8 32, ptr %80, align 1
br label %81
81: ; preds = %76, %73
br label %82
82: ; preds = %81
%83 = load i32, ptr %12, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %12, align 4
%85 = load i32, ptr %12, align 4
%86 = icmp slt i32 %85, 3
br i1 %86, label %19, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %82
br label %87
87: ; preds = %._crit_edge3, %4
%88 = load i32, ptr %11, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 %89
store i8 0, ptr %90, align 1
%91 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%92 = call i64 @strncmp(ptr noundef %91, ptr noundef @.str, i32 noundef 3)
%93 = icmp eq i64 %92, 0
br i1 %93, label %94, label %95
94: ; preds = %87
store i32 1, ptr %14, align 4
br label %95
95: ; preds = %94, %87
%96 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%97 = call i64 @strncmp(ptr noundef %96, ptr noundef @.str.1, i32 noundef 3)
%98 = icmp eq i64 %97, 0
br i1 %98, label %99, label %100
99: ; preds = %95
store i32 2, ptr %14, align 4
br label %100
100: ; preds = %99, %95
%101 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%102 = call i64 @strncmp(ptr noundef %101, ptr noundef @.str.2, i32 noundef 3)
%103 = icmp eq i64 %102, 0
br i1 %103, label %104, label %105
104: ; preds = %100
store i32 3, ptr %14, align 4
br label %105
105: ; preds = %104, %100
%106 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%107 = call i64 @strncmp(ptr noundef %106, ptr noundef @.str.3, i32 noundef 3)
%108 = icmp eq i64 %107, 0
br i1 %108, label %109, label %110
109: ; preds = %105
store i32 4, ptr %14, align 4
br label %110
110: ; preds = %109, %105
%111 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%112 = call i64 @strncmp(ptr noundef %111, ptr noundef @.str.4, i32 noundef 3)
%113 = icmp eq i64 %112, 0
br i1 %113, label %114, label %115
114: ; preds = %110
store i32 5, ptr %14, align 4
br label %115
115: ; preds = %114, %110
%116 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%117 = call i64 @strncmp(ptr noundef %116, ptr noundef @.str.5, i32 noundef 3)
%118 = icmp eq i64 %117, 0
br i1 %118, label %119, label %120
119: ; preds = %115
store i32 6, ptr %14, align 4
br label %120
120: ; preds = %119, %115
%121 = load i32, ptr %14, align 4
%122 = icmp eq i32 %121, 0
br i1 %122, label %123, label %124
123: ; preds = %120
store i32 0, ptr %5, align 4
br label %216
124: ; preds = %120
%125 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%126 = getelementptr inbounds i8, ptr %125, i64 3
%127 = load ptr, ptr %8, align 8
%128 = load ptr, ptr %7, align 8
%129 = call i32 (ptr, ptr, ptr, ...) @sscanf(ptr noundef %126, ptr noundef @.str.6, ptr noundef %127, ptr noundef %128)
%130 = icmp ne i32 %129, 2
br i1 %130, label %131, label %132
131: ; preds = %124
store i32 0, ptr %5, align 4
br label %216
132: ; preds = %124
%133 = load i32, ptr %14, align 4
%134 = icmp ne i32 %133, 1
br i1 %134, label %135, label %212
135: ; preds = %132
%136 = load i32, ptr %14, align 4
%137 = icmp ne i32 %136, 2
br i1 %137, label %138, label %212
138: ; preds = %135
%139 = load ptr, ptr %6, align 8
%140 = call i32 @getc(ptr noundef %139)
store i32 %140, ptr %13, align 4
store i32 0, ptr %11, align 4
br label %141
141: ; preds = %168, %138
%142 = load i32, ptr %13, align 4
%143 = call i64 @isspace(i32 noundef %142)
%144 = icmp ne i64 %143, 0
br i1 %144, label %.lr.ph5, label %151
.lr.ph5: ; preds = %141
br label %145
145: ; preds = %.lr.ph5, %145
%146 = load ptr, ptr %6, align 8
%147 = call i32 @getc(ptr noundef %146)
store i32 %147, ptr %13, align 4
%148 = load i32, ptr %13, align 4
%149 = call i64 @isspace(i32 noundef %148)
%150 = icmp ne i64 %149, 0
br i1 %150, label %145, label %._crit_edge6, !llvm.loop !11
._crit_edge6: ; preds = %145
br label %151
151: ; preds = %._crit_edge6, %141
%152 = load i32, ptr %13, align 4
%153 = icmp ne i32 %152, 35
br i1 %153, label %154, label %155
154: ; preds = %151
br label %169
155: ; preds = %151
br label %156
156: ; preds = %166, %155
%157 = load ptr, ptr %6, align 8
%158 = call i32 @getc(ptr noundef %157)
store i32 %158, ptr %13, align 4
br label %159
159: ; preds = %156
%160 = load i32, ptr %13, align 4
%161 = load i32, ptr @EOF, align 4
%162 = icmp ne i32 %160, %161
br i1 %162, label %163, label %166
163: ; preds = %159
%164 = load i32, ptr %13, align 4
%165 = icmp ne i32 %164, 10
br label %166
166: ; preds = %163, %159
%167 = phi i1 [ false, %159 ], [ %165, %163 ]
br i1 %167, label %156, label %168, !llvm.loop !12
168: ; preds = %166
br label %141
169: ; preds = %154
br label %170
170: ; preds = %191, %169
%171 = load i32, ptr %13, align 4
%172 = load i32, ptr @EOF, align 4
%173 = icmp ne i32 %171, %172
br i1 %173, label %174, label %179
174: ; preds = %170
%175 = load i32, ptr %13, align 4
%176 = call i64 @isspace(i32 noundef %175)
%177 = icmp ne i64 %176, 0
%178 = xor i1 %177, true
br label %179
179: ; preds = %174, %170
%180 = phi i1 [ false, %170 ], [ %178, %174 ]
br i1 %180, label %181, label %194
181: ; preds = %179
%182 = load i32, ptr %11, align 4
%183 = icmp slt i32 %182, 126
br i1 %183, label %184, label %191
184: ; preds = %181
%185 = load i32, ptr %13, align 4
%186 = trunc i32 %185 to i8
%187 = load i32, ptr %11, align 4
%188 = add nsw i32 %187, 1
store i32 %188, ptr %11, align 4
%189 = sext i32 %187 to i64
%190 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 %189
store i8 %186, ptr %190, align 1
br label %191
191: ; preds = %184, %181
%192 = load ptr, ptr %6, align 8
%193 = call i32 @getc(ptr noundef %192)
store i32 %193, ptr %13, align 4
br label %170, !llvm.loop !13
194: ; preds = %179
%195 = load i32, ptr %11, align 4
%196 = icmp slt i32 %195, 127
br i1 %196, label %197, label %202
197: ; preds = %194
%198 = load i32, ptr %11, align 4
%199 = add nsw i32 %198, 1
store i32 %199, ptr %11, align 4
%200 = sext i32 %198 to i64
%201 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 %200
store i8 32, ptr %201, align 1
br label %202
202: ; preds = %197, %194
%203 = load i32, ptr %11, align 4
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 %204
store i8 0, ptr %205, align 1
%206 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%207 = load ptr, ptr %9, align 8
%208 = call i32 (ptr, ptr, ptr, ...) @sscanf(ptr noundef %206, ptr noundef @.str.7, ptr noundef %207)
%209 = icmp ne i32 %208, 1
br i1 %209, label %210, label %211
210: ; preds = %202
store i32 0, ptr %5, align 4
br label %216
211: ; preds = %202
br label %214
212: ; preds = %135, %132
%213 = load ptr, ptr %9, align 8
store i32 1, ptr %213, align 4
br label %214
214: ; preds = %212, %211
%215 = load i32, ptr %14, align 4
store i32 %215, ptr %5, align 4
br label %216
216: ; preds = %214, %210, %131, %123
%217 = load i32, ptr %5, align 4
ret i32 %217
}
declare i32 @getc(ptr noundef) #1
declare i64 @isspace(i32 noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmpsasmeymo.c'
source_filename = "/tmp/tmpsasmeymo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@MSG_CTRUNC = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsasmeymo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@MSG_CTRUNC = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv108t9kl.c'
source_filename = "/tmp/tmpv108t9kl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv108t9kl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp273q55nt.c'
source_filename = "/tmp/tmp273q55nt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @fb_CVLFROMS(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
br label %3
3: ; preds = %1
br label %4
4: ; preds = %3
ret i64 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp273q55nt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @fb_CVLFROMS(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
br label %3
3: ; preds = %1
br label %4
4: ; preds = %3
ret i64 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpesxb_mf_.c'
source_filename = "/tmp/tmpesxb_mf_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_ERR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"err %u\00", align 1
@LOG_WARNING = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [11 x i8] c"warn %d %d\00", align 1
@LOG_EMERG = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [9 x i8] c"emerg %d\00", align 1
@LOG_INFO = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [14 x i8] c"test %s %d %p\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"/lib.so\00", align 1
@RTLD_NOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @validCode(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = call i64 @posix_memalign(ptr noundef %5, i32 noundef 8, i32 noundef 8)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = call i32 @free(ptr noundef %10)
br label %12
12: ; preds = %9, %2
%13 = load i32, ptr @LOG_ERR, align 4
%14 = call i32 (i32, ptr, i32, ...) @syslog(i32 noundef %13, ptr noundef @.str, i32 noundef 0)
%15 = load i32, ptr @LOG_WARNING, align 4
%16 = call i32 (i32, ptr, i32, ...) @syslog(i32 noundef %15, ptr noundef @.str.1, i32 noundef 5, i32 noundef 1)
%17 = load i32, ptr @LOG_EMERG, align 4
%18 = load i32, ptr %3, align 4
%19 = call i32 @vsyslog(i32 noundef %17, ptr noundef @.str.2, i32 noundef %18)
%20 = load i32, ptr @LOG_INFO, align 4
%21 = load i32, ptr %4, align 4
%22 = call i32 @vsyslog(i32 noundef %20, ptr noundef @.str.3, i32 noundef %21)
%23 = load i32, ptr @RTLD_NOW, align 4
%24 = call ptr @dlopen(ptr noundef @.str.4, i32 noundef %23)
store ptr %24, ptr %6, align 8
%25 = load ptr, ptr %6, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %30
27: ; preds = %12
%28 = load ptr, ptr %6, align 8
%29 = call i32 @dlclose(ptr noundef %28)
br label %30
30: ; preds = %27, %12
ret void
}
declare i64 @posix_memalign(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @syslog(i32 noundef, ptr noundef, i32 noundef, ...) #1
declare i32 @vsyslog(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @dlclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpesxb_mf_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_ERR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"err %u\00", align 1
@LOG_WARNING = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [11 x i8] c"warn %d %d\00", align 1
@LOG_EMERG = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [9 x i8] c"emerg %d\00", align 1
@LOG_INFO = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [14 x i8] c"test %s %d %p\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"/lib.so\00", align 1
@RTLD_NOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @validCode(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = call i64 @posix_memalign(ptr noundef %5, i32 noundef 8, i32 noundef 8)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = call i32 @free(ptr noundef %10)
br label %12
12: ; preds = %9, %2
%13 = load i32, ptr @LOG_ERR, align 4
%14 = call i32 (i32, ptr, i32, ...) @syslog(i32 noundef %13, ptr noundef @.str, i32 noundef 0)
%15 = load i32, ptr @LOG_WARNING, align 4
%16 = call i32 (i32, ptr, i32, ...) @syslog(i32 noundef %15, ptr noundef @.str.1, i32 noundef 5, i32 noundef 1)
%17 = load i32, ptr @LOG_EMERG, align 4
%18 = load i32, ptr %3, align 4
%19 = call i32 @vsyslog(i32 noundef %17, ptr noundef @.str.2, i32 noundef %18)
%20 = load i32, ptr @LOG_INFO, align 4
%21 = load i32, ptr %4, align 4
%22 = call i32 @vsyslog(i32 noundef %20, ptr noundef @.str.3, i32 noundef %21)
%23 = load i32, ptr @RTLD_NOW, align 4
%24 = call ptr @dlopen(ptr noundef @.str.4, i32 noundef %23)
store ptr %24, ptr %6, align 8
%25 = load ptr, ptr %6, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %30
27: ; preds = %12
%28 = load ptr, ptr %6, align 8
%29 = call i32 @dlclose(ptr noundef %28)
br label %30
30: ; preds = %27, %12
ret void
}
declare i64 @posix_memalign(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @syslog(i32 noundef, ptr noundef, i32 noundef, ...) #1
declare i32 @vsyslog(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @dlclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm23qljn2.c'
source_filename = "/tmp/tmpm23qljn2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mapToRange(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add nsw i32 %3, 32767
%5 = sitofp i32 %4 to double
%6 = fdiv double %5, 6.553400e+02
%7 = fptosi double %6 to i32
ret i32 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm23qljn2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mapToRange(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add nsw i32 %3, 32767
%5 = sitofp i32 %4 to double
%6 = fdiv double %5, 6.553400e+02
%7 = fptosi double %6 to i32
ret i32 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps70yh5sn.c'
source_filename = "/tmp/tmps70yh5sn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"933346\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"\0ABluebridge\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"55583\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"\0AAlyson Books\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"4210\00", align 1
@.str.6 = private unnamed_addr constant [30 x i8] c"\0AFUNimation Productions, Ltd.\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"01\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"\0APyramid Books\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_publisher(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call ptr @strtok(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %4, align 8
br label %7
7: ; preds = %44, %1
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %46
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp sle i32 %13, 3
br i1 %14, label %15, label %43
15: ; preds = %10
%16 = load ptr, ptr %4, align 8
%17 = call i64 @strcmp(ptr noundef %16, ptr noundef @.str.1)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = call i32 @printf(ptr noundef @.str.2)
br label %42
21: ; preds = %15
%22 = load ptr, ptr %4, align 8
%23 = call i64 @strcmp(ptr noundef %22, ptr noundef @.str.3)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @printf(ptr noundef @.str.4)
br label %41
27: ; preds = %21
%28 = load ptr, ptr %4, align 8
%29 = call i64 @strcmp(ptr noundef %28, ptr noundef @.str.5)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 @printf(ptr noundef @.str.6)
br label %40
33: ; preds = %27
%34 = load ptr, ptr %4, align 8
%35 = call i64 @strcmp(ptr noundef %34, ptr noundef @.str.7)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 @printf(ptr noundef @.str.8)
br label %39
39: ; preds = %37, %33
br label %40
40: ; preds = %39, %31
br label %41
41: ; preds = %40, %25
br label %42
42: ; preds = %41, %19
br label %44
43: ; preds = %10
br label %46
44: ; preds = %42
%45 = call ptr @strtok(ptr noundef null, ptr noundef @.str)
store ptr %45, ptr %4, align 8
br label %7, !llvm.loop !6
46: ; preds = %43, %7
ret void
}
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmps70yh5sn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"933346\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"\0ABluebridge\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"55583\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"\0AAlyson Books\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"4210\00", align 1
@.str.6 = private unnamed_addr constant [30 x i8] c"\0AFUNimation Productions, Ltd.\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"01\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"\0APyramid Books\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_publisher(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call ptr @strtok(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %43
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp sle i32 %12, 3
br i1 %13, label %14, label %42
14: ; preds = %9
%15 = load ptr, ptr %4, align 8
%16 = call i64 @strcmp(ptr noundef %15, ptr noundef @.str.1)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @printf(ptr noundef @.str.2)
br label %41
20: ; preds = %14
%21 = load ptr, ptr %4, align 8
%22 = call i64 @strcmp(ptr noundef %21, ptr noundef @.str.3)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 @printf(ptr noundef @.str.4)
br label %40
26: ; preds = %20
%27 = load ptr, ptr %4, align 8
%28 = call i64 @strcmp(ptr noundef %27, ptr noundef @.str.5)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 @printf(ptr noundef @.str.6)
br label %39
32: ; preds = %26
%33 = load ptr, ptr %4, align 8
%34 = call i64 @strcmp(ptr noundef %33, ptr noundef @.str.7)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 @printf(ptr noundef @.str.8)
br label %38
38: ; preds = %36, %32
br label %39
39: ; preds = %38, %30
br label %40
40: ; preds = %39, %24
br label %41
41: ; preds = %40, %18
br label %43
42: ; preds = %9
br label %47
43: ; preds = %41
%44 = call ptr @strtok(ptr noundef null, ptr noundef @.str)
store ptr %44, ptr %4, align 8
%45 = load ptr, ptr %4, align 8
%46 = icmp ne ptr %45, null
br i1 %46, label %9, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %43
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %47
47: ; preds = %.loopexit, %42
ret void
}
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsbkflwbr.c'
source_filename = "/tmp/tmpsbkflwbr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsbkflwbr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf6umlmdn.c'
source_filename = "/tmp/tmpf6umlmdn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c">>> \00", align 1
; Function Attrs: noinline nounwind sspstrong 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 i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
br label %7
7: ; preds = %2, %23
%8 = call i32 @printf(ptr noundef @.str)
br label %9
9: ; preds = %22, %7
%10 = call signext i8 (...) @getchar()
store i8 %10, ptr %6, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 10
br i1 %12, label %13, label %23
13: ; preds = %9
%14 = load i8, ptr %6, align 1
%15 = call i64 @isspace(i8 noundef signext %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @putchar(i8 noundef signext 10)
br label %22
19: ; preds = %13
%20 = load i8, ptr %6, align 1
%21 = call i32 @putchar(i8 noundef signext %20)
br label %22
22: ; preds = %19, %17
br label %9, !llvm.loop !6
23: ; preds = %9
%24 = call i32 @putchar(i8 noundef signext 10)
br label %7
}
declare i32 @printf(ptr noundef) #1
declare signext i8 @getchar(...) #1
declare i64 @isspace(i8 noundef signext) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf6umlmdn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c">>> \00", align 1
; Function Attrs: noinline nounwind sspstrong 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 i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
br label %7
7: ; preds = %25, %2
%8 = call i32 @printf(ptr noundef @.str)
%9 = call signext i8 (...) @getchar()
store i8 %9, ptr %6, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 10
br i1 %11, label %.lr.ph, label %25
.lr.ph: ; preds = %7
br label %12
12: ; preds = %.lr.ph, %21
%13 = load i8, ptr %6, align 1
%14 = call i64 @isspace(i8 noundef signext %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = call i32 @putchar(i8 noundef signext 10)
br label %21
18: ; preds = %12
%19 = load i8, ptr %6, align 1
%20 = call i32 @putchar(i8 noundef signext %19)
br label %21
21: ; preds = %18, %16
%22 = call signext i8 (...) @getchar()
store i8 %22, ptr %6, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 10
br i1 %24, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %25
25: ; preds = %._crit_edge, %7
%26 = call i32 @putchar(i8 noundef signext 10)
br label %7
}
declare i32 @printf(ptr noundef) #1
declare signext i8 @getchar(...) #1
declare i64 @isspace(i8 noundef signext) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8t698moh.c'
source_filename = "/tmp/tmp8t698moh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%03d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pascal_to_pnpnpn(ptr noundef %0, double noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store double %1, ptr %4, align 8
%6 = load double, ptr %4, align 8
%7 = fcmp ogt double %6, 1.000000e+04
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load double, ptr %4, align 8
%10 = call double @llvm.fmuladd.f64(double %9, double 1.000000e-02, double 5.000000e-01)
%11 = fptosi double %10 to i32
store i32 %11, ptr %5, align 4
br label %16
12: ; preds = %2
%13 = load double, ptr %4, align 8
%14 = call double @llvm.fmuladd.f64(double %13, double 1.000000e-01, double 5.000000e-01)
%15 = fptosi double %14 to i32
store i32 %15, ptr %5, align 4
br label %16
16: ; preds = %12, %8
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = srem i32 %18, 1000
%20 = call i32 @sprintf(ptr noundef %17, ptr noundef @.str, i32 noundef %19)
%21 = load ptr, ptr %3, align 8
ret ptr %21
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8t698moh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%03d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pascal_to_pnpnpn(ptr noundef %0, double noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store double %1, ptr %4, align 8
%6 = load double, ptr %4, align 8
%7 = fcmp ogt double %6, 1.000000e+04
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load double, ptr %4, align 8
%10 = call double @llvm.fmuladd.f64(double %9, double 1.000000e-02, double 5.000000e-01)
%11 = fptosi double %10 to i32
store i32 %11, ptr %5, align 4
br label %16
12: ; preds = %2
%13 = load double, ptr %4, align 8
%14 = call double @llvm.fmuladd.f64(double %13, double 1.000000e-01, double 5.000000e-01)
%15 = fptosi double %14 to i32
store i32 %15, ptr %5, align 4
br label %16
16: ; preds = %12, %8
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = srem i32 %18, 1000
%20 = call i32 @sprintf(ptr noundef %17, ptr noundef @.str, i32 noundef %19)
%21 = load ptr, ptr %3, align 8
ret ptr %21
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyp65scuw.c'
source_filename = "/tmp/tmpyp65scuw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @BatchInterpolatedGradY2DZero(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9, i64 noundef %10) #0 {
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca i64, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca i64, align 8
%26 = alloca i64, align 8
%27 = alloca i64, align 8
store ptr %0, ptr %12, align 8
store ptr %1, ptr %13, align 8
store i64 %2, ptr %14, align 8
store i64 %3, ptr %15, align 8
store double %4, ptr %16, align 8
store double %5, ptr %17, align 8
store double %6, ptr %18, align 8
store double %7, ptr %19, align 8
store double %8, ptr %20, align 8
store double %9, ptr %21, align 8
store i64 %10, ptr %22, align 8
store i64 0, ptr %25, align 8
store i64 0, ptr %27, align 8
br label %28
28: ; preds = %70, %11
%29 = load i64, ptr %27, align 8
%30 = sitofp i64 %29 to double
%31 = load double, ptr %19, align 8
%32 = fcmp olt double %30, %31
br i1 %32, label %33, label %73
33: ; preds = %28
store i64 0, ptr %26, align 8
br label %34
34: ; preds = %66, %33
%35 = load i64, ptr %26, align 8
%36 = sitofp i64 %35 to double
%37 = load double, ptr %16, align 8
%38 = fcmp olt double %36, %37
br i1 %38, label %39, label %69
39: ; preds = %34
%40 = load i64, ptr %26, align 8
%41 = sitofp i64 %40 to double
%42 = load double, ptr %17, align 8
%43 = fsub double %41, %42
%44 = load double, ptr %18, align 8
%45 = fdiv double %43, %44
store double %45, ptr %23, align 8
%46 = load i64, ptr %27, align 8
%47 = sitofp i64 %46 to double
%48 = load double, ptr %20, align 8
%49 = fsub double %47, %48
%50 = load double, ptr %21, align 8
%51 = fdiv double %49, %50
store double %51, ptr %24, align 8
%52 = load ptr, ptr %13, align 8
%53 = load i64, ptr %14, align 8
%54 = load i64, ptr %15, align 8
%55 = load double, ptr %23, align 8
%56 = load double, ptr %24, align 8
%57 = load i64, ptr %22, align 8
%58 = call double @InterpolatedGradYZero(ptr noundef %52, i64 noundef %53, i64 noundef %54, double noundef %55, double noundef %56, i64 noundef %57)
%59 = load double, ptr %21, align 8
%60 = fdiv double %58, %59
%61 = fptrunc double %60 to float
%62 = load ptr, ptr %12, align 8
%63 = load i64, ptr %25, align 8
%64 = add nsw i64 %63, 1
store i64 %64, ptr %25, align 8
%65 = getelementptr inbounds float, ptr %62, i64 %63
store float %61, ptr %65, align 4
br label %66
66: ; preds = %39
%67 = load i64, ptr %26, align 8
%68 = add nsw i64 %67, 1
store i64 %68, ptr %26, align 8
br label %34, !llvm.loop !6
69: ; preds = %34
br label %70
70: ; preds = %69
%71 = load i64, ptr %27, align 8
%72 = add nsw i64 %71, 1
store i64 %72, ptr %27, align 8
br label %28, !llvm.loop !8
73: ; preds = %28
ret void
}
declare double @InterpolatedGradYZero(ptr noundef, i64 noundef, i64 noundef, double noundef, double noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyp65scuw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @BatchInterpolatedGradY2DZero(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9, i64 noundef %10) #0 {
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca i64, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca i64, align 8
%26 = alloca i64, align 8
%27 = alloca i64, align 8
store ptr %0, ptr %12, align 8
store ptr %1, ptr %13, align 8
store i64 %2, ptr %14, align 8
store i64 %3, ptr %15, align 8
store double %4, ptr %16, align 8
store double %5, ptr %17, align 8
store double %6, ptr %18, align 8
store double %7, ptr %19, align 8
store double %8, ptr %20, align 8
store double %9, ptr %21, align 8
store i64 %10, ptr %22, align 8
store i64 0, ptr %25, align 8
store i64 0, ptr %27, align 8
%28 = load i64, ptr %27, align 8
%29 = sitofp i64 %28 to double
%30 = load double, ptr %19, align 8
%31 = fcmp olt double %29, %30
br i1 %31, label %.lr.ph2, label %79
.lr.ph2: ; preds = %11
br label %32
32: ; preds = %.lr.ph2, %72
store i64 0, ptr %26, align 8
%33 = load i64, ptr %26, align 8
%34 = sitofp i64 %33 to double
%35 = load double, ptr %16, align 8
%36 = fcmp olt double %34, %35
br i1 %36, label %.lr.ph, label %71
.lr.ph: ; preds = %32
br label %37
37: ; preds = %.lr.ph, %64
%38 = load i64, ptr %26, align 8
%39 = sitofp i64 %38 to double
%40 = load double, ptr %17, align 8
%41 = fsub double %39, %40
%42 = load double, ptr %18, align 8
%43 = fdiv double %41, %42
store double %43, ptr %23, align 8
%44 = load i64, ptr %27, align 8
%45 = sitofp i64 %44 to double
%46 = load double, ptr %20, align 8
%47 = fsub double %45, %46
%48 = load double, ptr %21, align 8
%49 = fdiv double %47, %48
store double %49, ptr %24, align 8
%50 = load ptr, ptr %13, align 8
%51 = load i64, ptr %14, align 8
%52 = load i64, ptr %15, align 8
%53 = load double, ptr %23, align 8
%54 = load double, ptr %24, align 8
%55 = load i64, ptr %22, align 8
%56 = call double @InterpolatedGradYZero(ptr noundef %50, i64 noundef %51, i64 noundef %52, double noundef %53, double noundef %54, i64 noundef %55)
%57 = load double, ptr %21, align 8
%58 = fdiv double %56, %57
%59 = fptrunc double %58 to float
%60 = load ptr, ptr %12, align 8
%61 = load i64, ptr %25, align 8
%62 = add nsw i64 %61, 1
store i64 %62, ptr %25, align 8
%63 = getelementptr inbounds float, ptr %60, i64 %61
store float %59, ptr %63, align 4
br label %64
64: ; preds = %37
%65 = load i64, ptr %26, align 8
%66 = add nsw i64 %65, 1
store i64 %66, ptr %26, align 8
%67 = load i64, ptr %26, align 8
%68 = sitofp i64 %67 to double
%69 = load double, ptr %16, align 8
%70 = fcmp olt double %68, %69
br i1 %70, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %64
br label %71
71: ; preds = %._crit_edge, %32
br label %72
72: ; preds = %71
%73 = load i64, ptr %27, align 8
%74 = add nsw i64 %73, 1
store i64 %74, ptr %27, align 8
%75 = load i64, ptr %27, align 8
%76 = sitofp i64 %75 to double
%77 = load double, ptr %19, align 8
%78 = fcmp olt double %76, %77
br i1 %78, label %32, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %72
br label %79
79: ; preds = %._crit_edge3, %11
ret void
}
declare double @InterpolatedGradYZero(ptr noundef, i64 noundef, i64 noundef, double noundef, double noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmphelzcaun.c'
source_filename = "/tmp/tmphelzcaun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphelzcaun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx6jasf66.c'
source_filename = "/tmp/tmpx6jasf66.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @SPITransfer(i64 noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) #0 {
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
store i64 %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
%14 = load i64, ptr %7, align 8
%15 = add i64 %14, 300
%16 = inttoptr i64 %15 to ptr
%17 = load volatile i64, ptr %16, align 8
%18 = and i64 %17, 3968
store i64 %18, ptr %12, align 8
%19 = load i64, ptr %12, align 8
%20 = icmp eq i64 %19, 896
br i1 %20, label %28, label %21
21: ; preds = %5
%22 = load i64, ptr %12, align 8
%23 = icmp eq i64 %22, 1920
br i1 %23, label %28, label %24
24: ; preds = %21
%25 = load i64, ptr %12, align 8
%26 = icmp eq i64 %25, 3968
br i1 %26, label %28, label %27
27: ; preds = %24
store i64 -1, ptr %6, align 8
br label %58
28: ; preds = %24, %21, %5
%29 = load i64, ptr %12, align 8
%30 = icmp eq i64 %29, 896
br i1 %30, label %31, label %38
31: ; preds = %28
%32 = load i64, ptr %7, align 8
%33 = load ptr, ptr %8, align 8
%34 = load ptr, ptr %9, align 8
%35 = load i64, ptr %10, align 8
%36 = load i64, ptr %11, align 8
%37 = call i64 @SPITransfer8(i64 noundef %32, ptr noundef %33, ptr noundef %34, i64 noundef %35, i64 noundef %36)
store i64 %37, ptr %13, align 8
br label %56
38: ; preds = %28
%39 = load i64, ptr %12, align 8
%40 = icmp eq i64 %39, 1920
br i1 %40, label %41, label %48
41: ; preds = %38
%42 = load i64, ptr %7, align 8
%43 = load ptr, ptr %8, align 8
%44 = load ptr, ptr %9, align 8
%45 = load i64, ptr %10, align 8
%46 = load i64, ptr %11, align 8
%47 = call i64 @SPITransfer16(i64 noundef %42, ptr noundef %43, ptr noundef %44, i64 noundef %45, i64 noundef %46)
store i64 %47, ptr %13, align 8
br label %55
48: ; preds = %38
%49 = load i64, ptr %7, align 8
%50 = load ptr, ptr %8, align 8
%51 = load ptr, ptr %9, align 8
%52 = load i64, ptr %10, align 8
%53 = load i64, ptr %11, align 8
%54 = call i64 @SPITransfer32(i64 noundef %49, ptr noundef %50, ptr noundef %51, i64 noundef %52, i64 noundef %53)
store i64 %54, ptr %13, align 8
br label %55
55: ; preds = %48, %41
br label %56
56: ; preds = %55, %31
%57 = load i64, ptr %13, align 8
store i64 %57, ptr %6, align 8
br label %58
58: ; preds = %56, %27
%59 = load i64, ptr %6, align 8
ret i64 %59
}
declare i64 @SPITransfer8(i64 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) #1
declare i64 @SPITransfer16(i64 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) #1
declare i64 @SPITransfer32(i64 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx6jasf66.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @SPITransfer(i64 noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) #0 {
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
store i64 %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
%14 = load i64, ptr %7, align 8
%15 = add i64 %14, 300
%16 = inttoptr i64 %15 to ptr
%17 = load volatile i64, ptr %16, align 8
%18 = and i64 %17, 3968
store i64 %18, ptr %12, align 8
%19 = load i64, ptr %12, align 8
%20 = icmp eq i64 %19, 896
br i1 %20, label %28, label %21
21: ; preds = %5
%22 = load i64, ptr %12, align 8
%23 = icmp eq i64 %22, 1920
br i1 %23, label %28, label %24
24: ; preds = %21
%25 = load i64, ptr %12, align 8
%26 = icmp eq i64 %25, 3968
br i1 %26, label %28, label %27
27: ; preds = %24
store i64 -1, ptr %6, align 8
br label %58
28: ; preds = %24, %21, %5
%29 = load i64, ptr %12, align 8
%30 = icmp eq i64 %29, 896
br i1 %30, label %31, label %38
31: ; preds = %28
%32 = load i64, ptr %7, align 8
%33 = load ptr, ptr %8, align 8
%34 = load ptr, ptr %9, align 8
%35 = load i64, ptr %10, align 8
%36 = load i64, ptr %11, align 8
%37 = call i64 @SPITransfer8(i64 noundef %32, ptr noundef %33, ptr noundef %34, i64 noundef %35, i64 noundef %36)
store i64 %37, ptr %13, align 8
br label %56
38: ; preds = %28
%39 = load i64, ptr %12, align 8
%40 = icmp eq i64 %39, 1920
br i1 %40, label %41, label %48
41: ; preds = %38
%42 = load i64, ptr %7, align 8
%43 = load ptr, ptr %8, align 8
%44 = load ptr, ptr %9, align 8
%45 = load i64, ptr %10, align 8
%46 = load i64, ptr %11, align 8
%47 = call i64 @SPITransfer16(i64 noundef %42, ptr noundef %43, ptr noundef %44, i64 noundef %45, i64 noundef %46)
store i64 %47, ptr %13, align 8
br label %55
48: ; preds = %38
%49 = load i64, ptr %7, align 8
%50 = load ptr, ptr %8, align 8
%51 = load ptr, ptr %9, align 8
%52 = load i64, ptr %10, align 8
%53 = load i64, ptr %11, align 8
%54 = call i64 @SPITransfer32(i64 noundef %49, ptr noundef %50, ptr noundef %51, i64 noundef %52, i64 noundef %53)
store i64 %54, ptr %13, align 8
br label %55
55: ; preds = %48, %41
br label %56
56: ; preds = %55, %31
%57 = load i64, ptr %13, align 8
store i64 %57, ptr %6, align 8
br label %58
58: ; preds = %56, %27
%59 = load i64, ptr %6, align 8
ret i64 %59
}
declare i64 @SPITransfer8(i64 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) #1
declare i64 @SPITransfer16(i64 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) #1
declare i64 @SPITransfer32(i64 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpum81w6w7.c'
source_filename = "/tmp/tmpum81w6w7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [68 x i8] c"[ERROR] invalid line in colon file (-C), missing colon in line: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fill_mem(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [524 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 524, i1 false)
store i32 0, ptr %10, align 4
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %11, align 8
br label %13
13: ; preds = %112, %3
%14 = load ptr, ptr %11, align 8
%15 = call i32 @feof(ptr noundef %14)
%16 = icmp ne i32 %15, 0
%17 = xor i1 %16, true
br i1 %17, label %18, label %113
18: ; preds = %13
%19 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%20 = load ptr, ptr %11, align 8
%21 = call ptr @fgets(ptr noundef %19, i32 noundef 256, ptr noundef %20)
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %112
23: ; preds = %18
%24 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%25 = load i8, ptr %24, align 16
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %111
28: ; preds = %23
%29 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%30 = call i32 @strlen(ptr noundef %29)
%31 = sub nsw i32 %30, 1
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 10
br i1 %36, label %37, label %43
37: ; preds = %28
%38 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%39 = call i32 @strlen(ptr noundef %38)
%40 = sub nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 %41
store i8 0, ptr %42, align 1
br label %43
43: ; preds = %37, %28
%44 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%45 = load i8, ptr %44, align 16
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %63
48: ; preds = %43
%49 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%50 = call i32 @strlen(ptr noundef %49)
%51 = sub nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 13
br i1 %56, label %57, label %63
57: ; preds = %48
%58 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%59 = call i32 @strlen(ptr noundef %58)
%60 = sub nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 %61
store i8 0, ptr %62, align 1
br label %63
63: ; preds = %57, %48, %43
%64 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%65 = call i32 @strlen(ptr noundef %64)
store i32 %65, ptr %9, align 4
%66 = icmp ugt i32 %65, 0
br i1 %66, label %73, label %67
67: ; preds = %63
%68 = load i32, ptr %10, align 4
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %110
70: ; preds = %67
%71 = load i32, ptr %6, align 4
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %110
73: ; preds = %70, %63
%74 = load i32, ptr %9, align 4
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %83
76: ; preds = %73
%77 = load i32, ptr %6, align 4
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %83
79: ; preds = %76
store i32 1, ptr %10, align 4
store i32 1, ptr %9, align 4
%80 = load i32, ptr %9, align 4
%81 = zext i32 %80 to i64
%82 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 %81
store i8 0, ptr %82, align 1
br label %83
83: ; preds = %79, %76, %73
%84 = load i32, ptr %6, align 4
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %98
86: ; preds = %83
%87 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%88 = call ptr @index(ptr noundef %87, i8 noundef signext 58)
store ptr %88, ptr %8, align 8
%89 = icmp eq ptr %88, null
br i1 %89, label %90, label %95
90: ; preds = %86
%91 = load i32, ptr @stderr, align 4
%92 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%93 = call i32 @fprintf(i32 noundef %91, ptr noundef @.str, ptr noundef %92)
%94 = call i32 @exit(i32 noundef -1) #4
unreachable
95: ; preds = %86
%96 = load ptr, ptr %8, align 8
store i8 0, ptr %96, align 1
br label %97
97: ; preds = %95
br label %98
98: ; preds = %97, %83
%99 = load ptr, ptr %4, align 8
%100 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%101 = load i32, ptr %9, align 4
%102 = call i32 @memcpy(ptr noundef %99, ptr noundef %100, i32 noundef %101)
%103 = load i32, ptr %9, align 4
%104 = load ptr, ptr %4, align 8
%105 = zext i32 %103 to i64
%106 = getelementptr inbounds i8, ptr %104, i64 %105
store ptr %106, ptr %4, align 8
%107 = load ptr, ptr %4, align 8
store i8 0, ptr %107, align 1
%108 = load ptr, ptr %4, align 8
%109 = getelementptr inbounds i8, ptr %108, i32 1
store ptr %109, ptr %4, align 8
br label %110
110: ; preds = %98, %70, %67
br label %111
111: ; preds = %110, %23
br label %112
112: ; preds = %111, %18
br label %13, !llvm.loop !6
113: ; preds = %13
%114 = load ptr, ptr %11, align 8
%115 = call i32 @fclose(ptr noundef %114)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @feof(ptr noundef) #2
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare ptr @index(ptr noundef, i8 noundef signext) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @fclose(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpum81w6w7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [68 x i8] c"[ERROR] invalid line in colon file (-C), missing colon in line: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fill_mem(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [524 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 524, i1 false)
store i32 0, ptr %10, align 4
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %11, align 8
%13 = load ptr, ptr %11, align 8
%14 = call i32 @feof(ptr noundef %13)
%15 = icmp ne i32 %14, 0
%16 = xor i1 %15, true
br i1 %16, label %.lr.ph, label %116
.lr.ph: ; preds = %3
br label %17
17: ; preds = %.lr.ph, %111
%18 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%19 = load ptr, ptr %11, align 8
%20 = call ptr @fgets(ptr noundef %18, i32 noundef 256, ptr noundef %19)
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %111
22: ; preds = %17
%23 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%24 = load i8, ptr %23, align 16
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %110
27: ; preds = %22
%28 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%29 = call i32 @strlen(ptr noundef %28)
%30 = sub nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 10
br i1 %35, label %36, label %42
36: ; preds = %27
%37 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%38 = call i32 @strlen(ptr noundef %37)
%39 = sub nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 %40
store i8 0, ptr %41, align 1
br label %42
42: ; preds = %36, %27
%43 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%44 = load i8, ptr %43, align 16
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %62
47: ; preds = %42
%48 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%49 = call i32 @strlen(ptr noundef %48)
%50 = sub nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 %51
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 13
br i1 %55, label %56, label %62
56: ; preds = %47
%57 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%58 = call i32 @strlen(ptr noundef %57)
%59 = sub nsw i32 %58, 1
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 %60
store i8 0, ptr %61, align 1
br label %62
62: ; preds = %56, %47, %42
%63 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%64 = call i32 @strlen(ptr noundef %63)
store i32 %64, ptr %9, align 4
%65 = icmp ugt i32 %64, 0
br i1 %65, label %72, label %66
66: ; preds = %62
%67 = load i32, ptr %10, align 4
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %109
69: ; preds = %66
%70 = load i32, ptr %6, align 4
%71 = icmp eq i32 %70, 0
br i1 %71, label %72, label %109
72: ; preds = %69, %62
%73 = load i32, ptr %9, align 4
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %82
75: ; preds = %72
%76 = load i32, ptr %6, align 4
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %82
78: ; preds = %75
store i32 1, ptr %10, align 4
store i32 1, ptr %9, align 4
%79 = load i32, ptr %9, align 4
%80 = zext i32 %79 to i64
%81 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 %80
store i8 0, ptr %81, align 1
br label %82
82: ; preds = %78, %75, %72
%83 = load i32, ptr %6, align 4
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %97
85: ; preds = %82
%86 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%87 = call ptr @index(ptr noundef %86, i8 noundef signext 58)
store ptr %87, ptr %8, align 8
%88 = icmp eq ptr %87, null
br i1 %88, label %89, label %94
89: ; preds = %85
%90 = load i32, ptr @stderr, align 4
%91 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%92 = call i32 @fprintf(i32 noundef %90, ptr noundef @.str, ptr noundef %91)
%93 = call i32 @exit(i32 noundef -1) #4
unreachable
94: ; preds = %85
%95 = load ptr, ptr %8, align 8
store i8 0, ptr %95, align 1
br label %96
96: ; preds = %94
br label %97
97: ; preds = %96, %82
%98 = load ptr, ptr %4, align 8
%99 = getelementptr inbounds [524 x i8], ptr %7, i64 0, i64 0
%100 = load i32, ptr %9, align 4
%101 = call i32 @memcpy(ptr noundef %98, ptr noundef %99, i32 noundef %100)
%102 = load i32, ptr %9, align 4
%103 = load ptr, ptr %4, align 8
%104 = zext i32 %102 to i64
%105 = getelementptr inbounds i8, ptr %103, i64 %104
store ptr %105, ptr %4, align 8
%106 = load ptr, ptr %4, align 8
store i8 0, ptr %106, align 1
%107 = load ptr, ptr %4, align 8
%108 = getelementptr inbounds i8, ptr %107, i32 1
store ptr %108, ptr %4, align 8
br label %109
109: ; preds = %97, %69, %66
br label %110
110: ; preds = %109, %22
br label %111
111: ; preds = %110, %17
%112 = load ptr, ptr %11, align 8
%113 = call i32 @feof(ptr noundef %112)
%114 = icmp ne i32 %113, 0
%115 = xor i1 %114, true
br i1 %115, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %111
br label %116
116: ; preds = %._crit_edge, %3
%117 = load ptr, ptr %11, align 8
%118 = call i32 @fclose(ptr noundef %117)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @feof(ptr noundef) #2
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare ptr @index(ptr noundef, i8 noundef signext) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @fclose(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp898zzdag.c'
source_filename = "/tmp/tmp898zzdag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3001 x i8] c"\0AUsage: %s [OPTIONS]\0A\0AShoot a Pentax DSLR and send the picture to standard output.\0A\0A --model=CAMERA_MODEL valid values are: K20d, K10d, GX10, GX20, K-X, K200D, K-7, K-r, K-5, K-2000, K-m, K-30, K100D, K110D, K-01\0A --device=DEVICE valid values for Linux: sg0, sg1, ..., for Windows: C, D, E, ...\0A --timeout=SECONDS timeout for camera connection ( 0 means forever )\0A -w, --warnings warning mode on\0A --nowarnings warning mode off\0A -m, --exposure_mode=MODE valid values are GREEN, P, SV, TV, AV, TAV, M and X\0A --exposure_compensation=VALUE exposure compensation value\0A --drive_mode=DRIVE_MODE valid values are: Single, Continuous-HI, SelfTimer-12, SelfTimer-2, Remote, Remote-3, Continuous-LO\0A -i, --iso=ISO single value (400) or interval (200-800)\0A --color_space=COLOR_SPACE valid values are: sRGB, AdobeRGB\0A --af_mode=AF_MODE valid values are: AF.S, AF.C, AF.A\0A --select_af_point=AF_SELECT_MODE valid values are: Auto-5, Auto-11, Spot, Select\0A --ae_metering=AE_METERING valid values are: Multi, Center, Spot\0A --flash_mode=FLASH_MODE valid values are: Manual, Manual-RedEye, Slow, Slow-RedEye, TrailingCurtain, Auto, Auto-RedEye, Wireless\0A --flash_exposure_compensation=VAL flash exposure compensation value\0A -a, --aperture=APERTURE\0A -t, --shutter_speed=SHUTTER SPEED values can be given in rational form (eg. 1/90)\0A or decimal form (eg. 0.8)\0A -r, --resolution=RESOLUTION resolution in megapixels\0A -q, --quality=QUALITY valid values are 1, 2, 3 and 4\0A --jpeg_image_tone=IMAGE_TONE valid values are: Natural, Bright, Portrait, Landscape, Vibrant, Monochrome, Muted, ReversalFilm\0A --white_balance_mode=WB_MODE valid values are: Auto, Daylight, Shade, Cloudy, Fluorescent_D, Fluorescent_N, Fluorescent_W, Fluorescent_L, Tungsten, Flash, Manual, CTE\0A --white_balance_adjustment=WB_ADJ valid values like: G5B2, G3A5, B5, A3, G5, M4...\0A -f, --auto_focus autofocus\0A --reconnect reconnect between shots\0A -g, --green green button\0A -s, --status print status info\0A --status_hex print status hex info\0A --dust_removal dust removal\0A -F, --frames=NUMBER number of frames\0A -d, --delay=SECONDS delay between the frames (seconds)\0A --file_format=FORMAT valid values: PEF, DNG, JPEG\0A -o, --output_file=FILE send output to FILE instead of stdout\0A --debug turn on debug messages\0A -v, --version display version information and exit\0A -h, --help display this help and exit\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp898zzdag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3001 x i8] c"\0AUsage: %s [OPTIONS]\0A\0AShoot a Pentax DSLR and send the picture to standard output.\0A\0A --model=CAMERA_MODEL valid values are: K20d, K10d, GX10, GX20, K-X, K200D, K-7, K-r, K-5, K-2000, K-m, K-30, K100D, K110D, K-01\0A --device=DEVICE valid values for Linux: sg0, sg1, ..., for Windows: C, D, E, ...\0A --timeout=SECONDS timeout for camera connection ( 0 means forever )\0A -w, --warnings warning mode on\0A --nowarnings warning mode off\0A -m, --exposure_mode=MODE valid values are GREEN, P, SV, TV, AV, TAV, M and X\0A --exposure_compensation=VALUE exposure compensation value\0A --drive_mode=DRIVE_MODE valid values are: Single, Continuous-HI, SelfTimer-12, SelfTimer-2, Remote, Remote-3, Continuous-LO\0A -i, --iso=ISO single value (400) or interval (200-800)\0A --color_space=COLOR_SPACE valid values are: sRGB, AdobeRGB\0A --af_mode=AF_MODE valid values are: AF.S, AF.C, AF.A\0A --select_af_point=AF_SELECT_MODE valid values are: Auto-5, Auto-11, Spot, Select\0A --ae_metering=AE_METERING valid values are: Multi, Center, Spot\0A --flash_mode=FLASH_MODE valid values are: Manual, Manual-RedEye, Slow, Slow-RedEye, TrailingCurtain, Auto, Auto-RedEye, Wireless\0A --flash_exposure_compensation=VAL flash exposure compensation value\0A -a, --aperture=APERTURE\0A -t, --shutter_speed=SHUTTER SPEED values can be given in rational form (eg. 1/90)\0A or decimal form (eg. 0.8)\0A -r, --resolution=RESOLUTION resolution in megapixels\0A -q, --quality=QUALITY valid values are 1, 2, 3 and 4\0A --jpeg_image_tone=IMAGE_TONE valid values are: Natural, Bright, Portrait, Landscape, Vibrant, Monochrome, Muted, ReversalFilm\0A --white_balance_mode=WB_MODE valid values are: Auto, Daylight, Shade, Cloudy, Fluorescent_D, Fluorescent_N, Fluorescent_W, Fluorescent_L, Tungsten, Flash, Manual, CTE\0A --white_balance_adjustment=WB_ADJ valid values like: G5B2, G3A5, B5, A3, G5, M4...\0A -f, --auto_focus autofocus\0A --reconnect reconnect between shots\0A -g, --green green button\0A -s, --status print status info\0A --status_hex print status hex info\0A --dust_removal dust removal\0A -F, --frames=NUMBER number of frames\0A -d, --delay=SECONDS delay between the frames (seconds)\0A --file_format=FORMAT valid values: PEF, DNG, JPEG\0A -o, --output_file=FILE send output to FILE instead of stdout\0A --debug turn on debug messages\0A -v, --version display version information and exit\0A -h, --help display this help and exit\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpigrbnonv.c'
source_filename = "/tmp/tmpigrbnonv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Failure reading from socket\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"Error: Problem reading line (%d)\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getLine(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %10
10: ; preds = %43, %3
%11 = load i32, ptr %5, align 4
%12 = load ptr, ptr %6, align 8
%13 = load i32, ptr %8, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = call i32 @read(i32 noundef %11, ptr noundef %15, i32 noundef 1)
store i32 %16, ptr %9, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %44
19: ; preds = %10
%20 = load i32, ptr %9, align 4
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %26
22: ; preds = %19
%23 = call i32 @perror(ptr noundef @.str)
%24 = load i32, ptr @errno, align 4
%25 = call i32 @printf(ptr noundef @.str.1, i32 noundef %24)
store i32 -1, ptr %4, align 4
br label %51
26: ; preds = %19
%27 = load i32, ptr %9, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %26
store i32 -1, ptr %4, align 4
br label %51
30: ; preds = %26
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, %31
store i32 %33, ptr %8, align 4
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %8, align 4
%36 = sub nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %34, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 10
br i1 %41, label %42, label %43
42: ; preds = %30
br label %44
43: ; preds = %30
br label %10, !llvm.loop !6
44: ; preds = %42, %10
%45 = load ptr, ptr %6, align 8
%46 = load i32, ptr %8, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
store i8 0, ptr %48, align 1
%49 = load ptr, ptr %6, align 8
%50 = call i32 @trimRight(ptr noundef %49)
store i32 0, ptr %4, align 4
br label %51
51: ; preds = %44, %29, %22
%52 = load i32, ptr %4, align 4
ret i32 %52
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @trimRight(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpigrbnonv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Failure reading from socket\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"Error: Problem reading line (%d)\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getLine(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr %8, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = call i32 @read(i32 noundef %10, ptr noundef %14, i32 noundef 1)
store i32 %15, ptr %9, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %27
18: ; preds = %38
%19 = load i32, ptr %5, align 4
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = call i32 @read(i32 noundef %19, ptr noundef %23, i32 noundef 1)
store i32 %24, ptr %9, align 4
%25 = load i32, ptr %7, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %..loopexit_crit_edge, !llvm.loop !6
27: ; preds = %.lr.ph, %18
%28 = load i32, ptr %9, align 4
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %34
30: ; preds = %27
%31 = call i32 @perror(ptr noundef @.str)
%32 = load i32, ptr @errno, align 4
%33 = call i32 @printf(ptr noundef @.str.1, i32 noundef %32)
store i32 -1, ptr %4, align 4
br label %58
34: ; preds = %27
%35 = load i32, ptr %9, align 4
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %34
store i32 -1, ptr %4, align 4
br label %58
38: ; preds = %34
%39 = load i32, ptr %9, align 4
%40 = load i32, ptr %8, align 4
%41 = add nsw i32 %40, %39
store i32 %41, ptr %8, align 4
%42 = load ptr, ptr %6, align 8
%43 = load i32, ptr %8, align 4
%44 = sub nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %42, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 10
br i1 %49, label %50, label %18
50: ; preds = %38
br label %51
..loopexit_crit_edge: ; preds = %18
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %51
51: ; preds = %.loopexit, %50
%52 = load ptr, ptr %6, align 8
%53 = load i32, ptr %8, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
store i8 0, ptr %55, align 1
%56 = load ptr, ptr %6, align 8
%57 = call i32 @trimRight(ptr noundef %56)
store i32 0, ptr %4, align 4
br label %58
58: ; preds = %51, %37, %30
%59 = load i32, ptr %4, align 4
ret i32 %59
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @trimRight(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp80fbxtvs.c'
source_filename = "/tmp/tmp80fbxtvs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"unpriv_system\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @unpriv_system(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = call i32 @system_core(ptr noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef @.str)
ret i32 %10
}
declare i32 @system_core(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp80fbxtvs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"unpriv_system\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @unpriv_system(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = call i32 @system_core(ptr noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef @.str)
ret i32 %10
}
declare i32 @system_core(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp73qzcv3j.c'
source_filename = "/tmp/tmp73qzcv3j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @recvfrom(i32 noundef %0, ptr noalias noundef %1, i64 noundef %2, i32 noundef %3, ptr noalias noundef %4, ptr noalias noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load i32, ptr %7, align 4
%14 = load ptr, ptr %8, align 8
%15 = load i64, ptr %9, align 8
%16 = load i32, ptr %10, align 4
%17 = load ptr, ptr %11, align 8
%18 = load ptr, ptr %12, align 8
%19 = call i32 @socketcall_cp(ptr noundef @recvfrom, i32 noundef %13, ptr noundef %14, i64 noundef %15, i32 noundef %16, ptr noundef %17, ptr noundef %18)
ret i32 %19
}
declare i32 @socketcall_cp(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp73qzcv3j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @recvfrom(i32 noundef %0, ptr noalias noundef %1, i64 noundef %2, i32 noundef %3, ptr noalias noundef %4, ptr noalias noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load i32, ptr %7, align 4
%14 = load ptr, ptr %8, align 8
%15 = load i64, ptr %9, align 8
%16 = load i32, ptr %10, align 4
%17 = load ptr, ptr %11, align 8
%18 = load ptr, ptr %12, align 8
%19 = call i32 @socketcall_cp(ptr noundef @recvfrom, i32 noundef %13, ptr noundef %14, i64 noundef %15, i32 noundef %16, ptr noundef %17, ptr noundef %18)
ret i32 %19
}
declare i32 @socketcall_cp(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphgiv9dud.c'
source_filename = "/tmp/tmphgiv9dud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphgiv9dud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmxsnlmo0.c'
source_filename = "/tmp/tmpmxsnlmo0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sfun(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 1, ptr %2, align 4
br label %14
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %8, 1
%10 = call i32 @sfun(i32 noundef %9)
%11 = load i32, ptr %3, align 4
%12 = call i32 @fun(i32 noundef %11)
%13 = add nsw i32 %10, %12
store i32 %13, ptr %2, align 4
br label %14
14: ; preds = %7, %6
%15 = load i32, ptr %2, align 4
ret i32 %15
}
declare i32 @fun(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmxsnlmo0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sfun(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 1, ptr %2, align 4
br label %14
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %8, 1
%10 = call i32 @sfun(i32 noundef %9)
%11 = load i32, ptr %3, align 4
%12 = call i32 @fun(i32 noundef %11)
%13 = add nsw i32 %10, %12
store i32 %13, ptr %2, align 4
br label %14
14: ; preds = %7, %6
%15 = load i32, ptr %2, align 4
ret i32 %15
}
declare i32 @fun(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcuwi5oeg.c'
source_filename = "/tmp/tmpcuwi5oeg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcuwi5oeg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpck6inysl.c'
source_filename = "/tmp/tmpck6inysl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"input.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"E\0A\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong 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 [10001 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr @stdin, align 4
%12 = call i32 @freopen(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %11)
br label %13
13: ; preds = %59, %2
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %8)
%15 = load i32, ptr %8, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %61
17: ; preds = %13
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
br label %18
18: ; preds = %56, %17
%19 = load i32, ptr %9, align 4
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %59
22: ; preds = %18
%23 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %10)
%24 = load i8, ptr %10, align 1
%25 = sext i8 %24 to i32
switch i32 %25, label %52 [
i32 80, label %26
i32 79, label %32
i32 65, label %39
]
26: ; preds = %22
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %7, align 4
%29 = sext i32 %27 to i64
%30 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %29
%31 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %30)
br label %55
32: ; preds = %22
%33 = load i32, ptr %7, align 4
%34 = icmp sgt i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %32
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %7, align 4
br label %38
38: ; preds = %35, %32
br label %55
39: ; preds = %22
%40 = load i32, ptr %7, align 4
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %49
42: ; preds = %39
%43 = load i32, ptr %7, align 4
%44 = sub nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %47)
br label %51
49: ; preds = %39
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %51
51: ; preds = %49, %42
br label %55
52: ; preds = %22
%53 = load i32, ptr %9, align 4
%54 = add nsw i32 %53, -1
store i32 %54, ptr %9, align 4
br label %55
55: ; preds = %52, %51, %38, %26
br label %56
56: ; preds = %55
%57 = load i32, ptr %9, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %9, align 4
br label %18, !llvm.loop !6
59: ; preds = %18
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %13, !llvm.loop !8
61: ; preds = %13
ret i32 0
}
declare i32 @freopen(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpck6inysl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"input.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"E\0A\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong 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 [10001 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr @stdin, align 4
%12 = call i32 @freopen(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %11)
%13 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %8)
%14 = load i32, ptr %8, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %.lr.ph2, label %65
.lr.ph2: ; preds = %2
br label %16
16: ; preds = %.lr.ph2, %60
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr %8, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %60
.lr.ph: ; preds = %16
br label %20
20: ; preds = %.lr.ph, %54
%21 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %10)
%22 = load i8, ptr %10, align 1
%23 = sext i8 %22 to i32
switch i32 %23, label %50 [
i32 80, label %24
i32 79, label %30
i32 65, label %37
]
24: ; preds = %20
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
%27 = sext i32 %25 to i64
%28 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %27
%29 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %28)
br label %53
30: ; preds = %20
%31 = load i32, ptr %7, align 4
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %30
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, -1
store i32 %35, ptr %7, align 4
br label %36
36: ; preds = %33, %30
br label %53
37: ; preds = %20
%38 = load i32, ptr %7, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %47
40: ; preds = %37
%41 = load i32, ptr %7, align 4
%42 = sub nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %43
%45 = load i32, ptr %44, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %45)
br label %49
47: ; preds = %37
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %49
49: ; preds = %47, %40
br label %53
50: ; preds = %20
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, -1
store i32 %52, ptr %9, align 4
br label %53
53: ; preds = %50, %49, %36, %24
br label %54
54: ; preds = %53
%55 = load i32, ptr %9, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %9, align 4
%57 = load i32, ptr %9, align 4
%58 = load i32, ptr %8, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %60
60: ; preds = %._crit_edge, %16
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%62 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %8)
%63 = load i32, ptr %8, align 4
%64 = icmp ne i32 %63, 0
br i1 %64, label %16, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %60
br label %65
65: ; preds = %._crit_edge3, %2
ret i32 0
}
declare i32 @freopen(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp3wtuglcu.c'
source_filename = "/tmp/tmp3wtuglcu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [70 x i8] c"\0A\09\09------------------\09\09\0A\09\09SUMADOR DE BILLETS\09\09\0A\09\09------------------\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"Entra el numero de billets de 5 euros:\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [40 x i8] c"Entra el numero de billets de 10 euros:\00", align 1
@.str.4 = private unnamed_addr constant [40 x i8] c"Entra el numero de billets de 20 euros:\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"En total tens %d euros\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%8 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%10 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%12 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %4)
%13 = load i32, ptr %2, align 4
%14 = mul nsw i32 5, %13
%15 = load i32, ptr %3, align 4
%16 = mul nsw i32 10, %15
%17 = add nsw i32 %14, %16
%18 = load i32, ptr %4, align 4
%19 = mul nsw i32 20, %18
%20 = add nsw i32 %17, %19
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %21)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3wtuglcu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [70 x i8] c"\0A\09\09------------------\09\09\0A\09\09SUMADOR DE BILLETS\09\09\0A\09\09------------------\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"Entra el numero de billets de 5 euros:\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [40 x i8] c"Entra el numero de billets de 10 euros:\00", align 1
@.str.4 = private unnamed_addr constant [40 x i8] c"Entra el numero de billets de 20 euros:\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"En total tens %d euros\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%8 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%10 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%12 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %4)
%13 = load i32, ptr %2, align 4
%14 = mul nsw i32 5, %13
%15 = load i32, ptr %3, align 4
%16 = mul nsw i32 10, %15
%17 = add nsw i32 %14, %16
%18 = load i32, ptr %4, align 4
%19 = mul nsw i32 20, %18
%20 = add nsw i32 %17, %19
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %21)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2egvguei.c'
source_filename = "/tmp/tmp2egvguei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"\0A%i: %i\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 2, ptr %2, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %22, %0
%5 = load i32, ptr %3, align 4
%6 = icmp ne i32 %5, 10001
br i1 %6, label %7, label %23
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = call i32 @prime(i32 noundef %8)
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %19
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %14, i32 noundef %15)
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %2, align 4
br label %22
19: ; preds = %7
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %2, align 4
br label %22
22: ; preds = %19, %11
br label %4, !llvm.loop !6
23: ; preds = %4
ret i32 0
}
declare i32 @prime(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2egvguei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"\0A%i: %i\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 2, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp ne i32 %4, 10001
br i1 %5, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %21
%7 = load i32, ptr %2, align 4
%8 = call i32 @prime(i32 noundef %7)
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %13, i32 noundef %14)
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %2, align 4
br label %21
18: ; preds = %6
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
br label %21
21: ; preds = %18, %10
%22 = load i32, ptr %3, align 4
%23 = icmp ne i32 %22, 10001
br i1 %23, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %24
24: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @prime(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpybdxadfj.c'
source_filename = "/tmp/tmpybdxadfj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"stdout\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"stderr\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"wt\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @can_open_write(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = getelementptr inbounds i8, ptr %5, i64 0
%7 = load i8, ptr %6, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %1
store i32 0, ptr %2, align 4
br label %28
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call i32 @strcmp(ptr noundef %11, ptr noundef @.str)
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strcmp(ptr noundef %15, ptr noundef @.str.1)
%17 = icmp ne i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %14, %10
store i32 1, ptr %2, align 4
br label %28
19: ; preds = %14
%20 = load ptr, ptr %3, align 8
%21 = call ptr @fopen(ptr noundef %20, ptr noundef @.str.2)
store ptr %21, ptr %4, align 8
%22 = load ptr, ptr %4, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %25, label %24
24: ; preds = %19
store i32 0, ptr %2, align 4
br label %28
25: ; preds = %19
%26 = load ptr, ptr %4, align 8
%27 = call i32 @fclose(ptr noundef %26)
store i32 1, ptr %2, align 4
br label %28
28: ; preds = %25, %24, %18, %9
%29 = load i32, ptr %2, align 4
ret i32 %29
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpybdxadfj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"stdout\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"stderr\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"wt\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @can_open_write(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = getelementptr inbounds i8, ptr %5, i64 0
%7 = load i8, ptr %6, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %1
store i32 0, ptr %2, align 4
br label %28
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call i32 @strcmp(ptr noundef %11, ptr noundef @.str)
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strcmp(ptr noundef %15, ptr noundef @.str.1)
%17 = icmp ne i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %14, %10
store i32 1, ptr %2, align 4
br label %28
19: ; preds = %14
%20 = load ptr, ptr %3, align 8
%21 = call ptr @fopen(ptr noundef %20, ptr noundef @.str.2)
store ptr %21, ptr %4, align 8
%22 = load ptr, ptr %4, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %25, label %24
24: ; preds = %19
store i32 0, ptr %2, align 4
br label %28
25: ; preds = %19
%26 = load ptr, ptr %4, align 8
%27 = call i32 @fclose(ptr noundef %26)
store i32 1, ptr %2, align 4
br label %28
28: ; preds = %25, %24, %18, %9
%29 = load i32, ptr %2, align 4
ret i32 %29
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptx3n5dh7.c'
source_filename = "/tmp/tmptx3n5dh7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_mm_cmpngt_sd(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @_mm_cmpngt_sd(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @_mm_cmpngt_sd(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptx3n5dh7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_mm_cmpngt_sd(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @_mm_cmpngt_sd(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @_mm_cmpngt_sd(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcfevzhm0.c'
source_filename = "/tmp/tmpcfevzhm0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @puts(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %8, %1
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %14
8: ; preds = %3
%9 = load ptr, ptr %2, align 8
%10 = load i8, ptr %9, align 1
%11 = call i32 @putchar(i8 noundef signext %10)
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %2, align 8
br label %3, !llvm.loop !6
14: ; preds = %3
ret void
}
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcfevzhm0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @puts(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i8, ptr %3, align 1
%5 = sext i8 %4 to i32
%6 = icmp ne i32 %5, 0
br i1 %6, label %.lr.ph, label %17
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %7
%8 = load ptr, ptr %2, align 8
%9 = load i8, ptr %8, align 1
%10 = call i32 @putchar(i8 noundef signext %9)
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %2, align 8
%13 = load ptr, ptr %2, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %17
17: ; preds = %._crit_edge, %1
ret void
}
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpzf0ql2q9.c'
source_filename = "/tmp/tmpzf0ql2q9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzf0ql2q9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptl8gqz9c.c'
source_filename = "/tmp/tmptl8gqz9c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"XGetInputFocus called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @XGetInputFocus() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptl8gqz9c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"XGetInputFocus called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @XGetInputFocus() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwumesr_q.c'
source_filename = "/tmp/tmpwumesr_q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @base_10_log(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca double, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call double @topDynArr(ptr noundef %4)
store double %5, ptr %3, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @popDynArr(ptr noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = load double, ptr %3, align 8
%10 = call i32 @log10(double noundef %9)
%11 = call i32 @pushDynArr(ptr noundef %8, i32 noundef %10)
ret void
}
declare double @topDynArr(ptr noundef) #1
declare i32 @popDynArr(ptr noundef) #1
declare i32 @pushDynArr(ptr noundef, i32 noundef) #1
declare i32 @log10(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwumesr_q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @base_10_log(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca double, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call double @topDynArr(ptr noundef %4)
store double %5, ptr %3, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @popDynArr(ptr noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = load double, ptr %3, align 8
%10 = call i32 @log10(double noundef %9)
%11 = call i32 @pushDynArr(ptr noundef %8, i32 noundef %10)
ret void
}
declare double @topDynArr(ptr noundef) #1
declare i32 @popDynArr(ptr noundef) #1
declare i32 @pushDynArr(ptr noundef, i32 noundef) #1
declare i32 @log10(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfx4rc8tx.c'
source_filename = "/tmp/tmpfx4rc8tx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@False = dso_local global i32 0, align 4
@None = dso_local global i32 0, align 4
@Success = dso_local global i64 0, align 8
@XA_WINDOW = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfx4rc8tx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@False = dso_local global i32 0, align 4
@None = dso_local global i32 0, align 4
@Success = dso_local global i64 0, align 8
@XA_WINDOW = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgobq7url.c'
source_filename = "/tmp/tmpgobq7url.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"F\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"A\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"B\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"C\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %6
6: ; preds = %0, %60
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %8, %9
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %20
13: ; preds = %6
%14 = load i32, ptr %3, align 4
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = load i32, ptr %4, align 4
%18 = icmp eq i32 %17, -1
br i1 %18, label %19, label %20
19: ; preds = %16
br label %61
20: ; preds = %16, %13, %6
%21 = load i32, ptr %2, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %26, label %23
23: ; preds = %20
%24 = load i32, ptr %3, align 4
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %23, %20
%27 = call i32 @printf(ptr noundef @.str.1)
br label %60
28: ; preds = %23
%29 = load i32, ptr %5, align 4
%30 = icmp sge i32 %29, 80
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 @printf(ptr noundef @.str.2)
br label %59
33: ; preds = %28
%34 = load i32, ptr %5, align 4
%35 = icmp sge i32 %34, 65
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @printf(ptr noundef @.str.3)
br label %58
38: ; preds = %33
%39 = load i32, ptr %5, align 4
%40 = icmp sge i32 %39, 50
br i1 %40, label %47, label %41
41: ; preds = %38
%42 = load i32, ptr %5, align 4
%43 = icmp sge i32 %42, 30
br i1 %43, label %44, label %49
44: ; preds = %41
%45 = load i32, ptr %4, align 4
%46 = icmp sge i32 %45, 50
br i1 %46, label %47, label %49
47: ; preds = %44, %38
%48 = call i32 @printf(ptr noundef @.str.4)
br label %57
49: ; preds = %44, %41
%50 = load i32, ptr %5, align 4
%51 = icmp sge i32 %50, 30
br i1 %51, label %52, label %54
52: ; preds = %49
%53 = call i32 @printf(ptr noundef @.str.5)
br label %56
54: ; preds = %49
%55 = call i32 @printf(ptr noundef @.str.1)
br label %56
56: ; preds = %54, %52
br label %57
57: ; preds = %56, %47
br label %58
58: ; preds = %57, %36
br label %59
59: ; preds = %58, %31
br label %60
60: ; preds = %59, %26
br label %6
61: ; preds = %19
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgobq7url.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"F\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"A\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"B\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"C\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %6
6: ; preds = %60, %0
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %8, %9
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %20
13: ; preds = %6
%14 = load i32, ptr %3, align 4
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = load i32, ptr %4, align 4
%18 = icmp eq i32 %17, -1
br i1 %18, label %19, label %20
19: ; preds = %16
br label %61
20: ; preds = %16, %13, %6
%21 = load i32, ptr %2, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %26, label %23
23: ; preds = %20
%24 = load i32, ptr %3, align 4
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %23, %20
%27 = call i32 @printf(ptr noundef @.str.1)
br label %60
28: ; preds = %23
%29 = load i32, ptr %5, align 4
%30 = icmp sge i32 %29, 80
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 @printf(ptr noundef @.str.2)
br label %59
33: ; preds = %28
%34 = load i32, ptr %5, align 4
%35 = icmp sge i32 %34, 65
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @printf(ptr noundef @.str.3)
br label %58
38: ; preds = %33
%39 = load i32, ptr %5, align 4
%40 = icmp sge i32 %39, 50
br i1 %40, label %47, label %41
41: ; preds = %38
%42 = load i32, ptr %5, align 4
%43 = icmp sge i32 %42, 30
br i1 %43, label %44, label %49
44: ; preds = %41
%45 = load i32, ptr %4, align 4
%46 = icmp sge i32 %45, 50
br i1 %46, label %47, label %49
47: ; preds = %44, %38
%48 = call i32 @printf(ptr noundef @.str.4)
br label %57
49: ; preds = %44, %41
%50 = load i32, ptr %5, align 4
%51 = icmp sge i32 %50, 30
br i1 %51, label %52, label %54
52: ; preds = %49
%53 = call i32 @printf(ptr noundef @.str.5)
br label %56
54: ; preds = %49
%55 = call i32 @printf(ptr noundef @.str.1)
br label %56
56: ; preds = %54, %52
br label %57
57: ; preds = %56, %47
br label %58
58: ; preds = %57, %36
br label %59
59: ; preds = %58, %31
br label %60
60: ; preds = %59, %26
br label %6
61: ; preds = %19
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_g25skd_.c'
source_filename = "/tmp/tmp_g25skd_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rotateCCW270(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [4 x [4 x i32]], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %34, %1
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 4
br i1 %8, label %9, label %37
9: ; preds = %6
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %30, %9
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 4
br i1 %12, label %13, label %33
13: ; preds = %10
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [4 x i32], ptr %14, i64 %16
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [4 x i32], ptr %17, i64 0, i64 %19
%21 = load i32, ptr %20, align 4
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [4 x [4 x i32]], ptr %3, i64 0, i64 %23
%25 = load i32, ptr %4, align 4
%26 = sub nsw i32 4, %25
%27 = sub nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [4 x i32], ptr %24, i64 0, i64 %28
store i32 %21, ptr %29, align 4
br label %30
30: ; preds = %13
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %5, align 4
br label %10, !llvm.loop !6
33: ; preds = %10
br label %34
34: ; preds = %33
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %4, align 4
br label %6, !llvm.loop !8
37: ; preds = %6
%38 = getelementptr inbounds [4 x [4 x i32]], ptr %3, i64 0, i64 0
%39 = load ptr, ptr %2, align 8
%40 = call i32 @matrix_copy(ptr noundef %38, ptr noundef %39)
ret void
}
declare i32 @matrix_copy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_g25skd_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rotateCCW270(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [4 x [4 x i32]], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 4
br i1 %7, label %.lr.ph2, label %39
.lr.ph2: ; preds = %1
br label %8
8: ; preds = %.lr.ph2, %34
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 4
br i1 %10, label %.lr.ph, label %33
.lr.ph: ; preds = %8
br label %11
11: ; preds = %.lr.ph, %28
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [4 x i32], ptr %12, i64 %14
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [4 x [4 x i32]], ptr %3, i64 0, i64 %21
%23 = load i32, ptr %4, align 4
%24 = sub nsw i32 4, %23
%25 = sub nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [4 x i32], ptr %22, i64 0, i64 %26
store i32 %19, ptr %27, align 4
br label %28
28: ; preds = %11
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
%31 = load i32, ptr %5, align 4
%32 = icmp slt i32 %31, 4
br i1 %32, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %8
br label %34
34: ; preds = %33
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %4, align 4
%37 = load i32, ptr %4, align 4
%38 = icmp slt i32 %37, 4
br i1 %38, label %8, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %34
br label %39
39: ; preds = %._crit_edge3, %1
%40 = getelementptr inbounds [4 x [4 x i32]], ptr %3, i64 0, i64 0
%41 = load ptr, ptr %2, align 8
%42 = call i32 @matrix_copy(ptr noundef %40, ptr noundef %41)
ret void
}
declare i32 @matrix_copy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpm5refzat.c'
source_filename = "/tmp/tmpm5refzat.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"ftruncate(): fd=%d, size=%d\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"\09\09ret = %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"\09Succeeded Phase 1\0A\00", align 1
@.str.3 = private unnamed_addr constant [53 x i8] c"\09Failed Phase 1: returned undefined value! ret = %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"Internal syscalltester error: passed = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ftruncate_test(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i64 %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = load i64, ptr %4, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %8, i64 noundef %9)
%11 = call i32 @fflush(ptr noundef null)
%12 = load i32, ptr %3, align 4
%13 = load i64, ptr %4, align 8
%14 = call i32 @ftruncate(i32 noundef %12, i64 noundef %13)
store i32 %14, ptr %5, align 4
%15 = call i32 @handle_zng(i32 noundef %14)
store i32 %15, ptr %7, align 4
%16 = load i32, ptr @errno, align 4
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %7, align 4
switch i32 %17, label %27 [
i32 -1, label %18
i32 0, label %18
i32 -2, label %23
]
18: ; preds = %2, %2
%19 = load i32, ptr %5, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%22 = call i32 @fflush(ptr noundef null)
br label %31
23: ; preds = %2
%24 = load i32, ptr %5, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %24)
%26 = call i32 @fflush(ptr noundef null)
br label %31
27: ; preds = %2
%28 = load i32, ptr %7, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %28)
%30 = call i32 @fflush(ptr noundef null)
br label %31
31: ; preds = %27, %23, %18
%32 = load i32, ptr %6, align 4
store i32 %32, ptr @errno, align 4
%33 = load i32, ptr %5, align 4
ret i32 %33
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @handle_zng(i32 noundef) #1
declare i32 @ftruncate(i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm5refzat.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"ftruncate(): fd=%d, size=%d\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"\09\09ret = %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"\09Succeeded Phase 1\0A\00", align 1
@.str.3 = private unnamed_addr constant [53 x i8] c"\09Failed Phase 1: returned undefined value! ret = %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"Internal syscalltester error: passed = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ftruncate_test(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i64 %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = load i64, ptr %4, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %8, i64 noundef %9)
%11 = call i32 @fflush(ptr noundef null)
%12 = load i32, ptr %3, align 4
%13 = load i64, ptr %4, align 8
%14 = call i32 @ftruncate(i32 noundef %12, i64 noundef %13)
store i32 %14, ptr %5, align 4
%15 = call i32 @handle_zng(i32 noundef %14)
store i32 %15, ptr %7, align 4
%16 = load i32, ptr @errno, align 4
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %7, align 4
switch i32 %17, label %27 [
i32 -1, label %18
i32 0, label %18
i32 -2, label %23
]
18: ; preds = %2, %2
%19 = load i32, ptr %5, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%22 = call i32 @fflush(ptr noundef null)
br label %31
23: ; preds = %2
%24 = load i32, ptr %5, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %24)
%26 = call i32 @fflush(ptr noundef null)
br label %31
27: ; preds = %2
%28 = load i32, ptr %7, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %28)
%30 = call i32 @fflush(ptr noundef null)
br label %31
31: ; preds = %27, %23, %18
%32 = load i32, ptr %6, align 4
store i32 %32, ptr @errno, align 4
%33 = load i32, ptr %5, align 4
ret i32 %33
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @handle_zng(i32 noundef) #1
declare i32 @ftruncate(i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpft408n8b.c'
source_filename = "/tmp/tmpft408n8b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_SC_PAGESIZE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [9 x i8] c"/dev/mem\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@MAP_PRIVATE = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xh_mmap(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr @_SC_PAGESIZE, align 4
%12 = call i32 @sysconf(i32 noundef %11)
%13 = srem i32 %10, %12
store i32 %13, ptr %6, align 4
%14 = load i32, ptr @O_RDONLY, align 4
%15 = call i32 @open(ptr noundef @.str, i32 noundef %14)
store i32 %15, ptr %8, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %19
18: ; preds = %2
store ptr null, ptr %3, align 8
br label %46
19: ; preds = %2
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = load i64, ptr %5, align 8
%23 = add i64 %21, %22
%24 = trunc i64 %23 to i32
%25 = load i32, ptr @PROT_READ, align 4
%26 = load i32, ptr @MAP_PRIVATE, align 4
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %4, align 4
%29 = load i32, ptr %6, align 4
%30 = sub nsw i32 %28, %29
%31 = call i64 @mmap(i32 noundef 0, i32 noundef %24, i32 noundef %25, i32 noundef %26, i32 noundef %27, i32 noundef %30)
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %7, align 8
%33 = load i32, ptr @errno, align 4
store i32 %33, ptr %9, align 4
%34 = load i32, ptr %8, align 4
%35 = call i32 @close(i32 noundef %34)
%36 = load ptr, ptr %7, align 8
%37 = load ptr, ptr @MAP_FAILED, align 8
%38 = icmp eq ptr %36, %37
br i1 %38, label %39, label %41
39: ; preds = %19
%40 = load i32, ptr %9, align 4
store i32 %40, ptr @errno, align 4
store ptr null, ptr %3, align 8
br label %46
41: ; preds = %19
%42 = load ptr, ptr %7, align 8
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
store ptr %45, ptr %3, align 8
br label %46
46: ; preds = %41, %39, %18
%47 = load ptr, ptr %3, align 8
ret ptr %47
}
declare i32 @sysconf(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i64 @mmap(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpft408n8b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_SC_PAGESIZE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [9 x i8] c"/dev/mem\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@MAP_PRIVATE = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xh_mmap(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr @_SC_PAGESIZE, align 4
%12 = call i32 @sysconf(i32 noundef %11)
%13 = srem i32 %10, %12
store i32 %13, ptr %6, align 4
%14 = load i32, ptr @O_RDONLY, align 4
%15 = call i32 @open(ptr noundef @.str, i32 noundef %14)
store i32 %15, ptr %8, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %19
18: ; preds = %2
store ptr null, ptr %3, align 8
br label %46
19: ; preds = %2
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = load i64, ptr %5, align 8
%23 = add i64 %21, %22
%24 = trunc i64 %23 to i32
%25 = load i32, ptr @PROT_READ, align 4
%26 = load i32, ptr @MAP_PRIVATE, align 4
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %4, align 4
%29 = load i32, ptr %6, align 4
%30 = sub nsw i32 %28, %29
%31 = call i64 @mmap(i32 noundef 0, i32 noundef %24, i32 noundef %25, i32 noundef %26, i32 noundef %27, i32 noundef %30)
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %7, align 8
%33 = load i32, ptr @errno, align 4
store i32 %33, ptr %9, align 4
%34 = load i32, ptr %8, align 4
%35 = call i32 @close(i32 noundef %34)
%36 = load ptr, ptr %7, align 8
%37 = load ptr, ptr @MAP_FAILED, align 8
%38 = icmp eq ptr %36, %37
br i1 %38, label %39, label %41
39: ; preds = %19
%40 = load i32, ptr %9, align 4
store i32 %40, ptr @errno, align 4
store ptr null, ptr %3, align 8
br label %46
41: ; preds = %19
%42 = load ptr, ptr %7, align 8
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
store ptr %45, ptr %3, align 8
br label %46
46: ; preds = %41, %39, %18
%47 = load ptr, ptr %3, align 8
ret ptr %47
}
declare i32 @sysconf(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i64 @mmap(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx57vtstl.c'
source_filename = "/tmp/tmpx57vtstl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DBL_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @DSPEncodeFrame(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [8 x [16 x i32]], align 16
%10 = alloca [8 x [14 x i32]], align 16
%11 = alloca i32, align 4
%12 = alloca [8 x i32], align 16
%13 = alloca [8 x double], align 16
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca double, align 8
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
store i32 0, ptr %11, align 4
store i32 0, ptr %14, align 4
br label %28
28: ; preds = %373, %4
%29 = load i32, ptr %14, align 4
%30 = icmp slt i32 %29, 8
br i1 %30, label %31, label %376
31: ; preds = %28
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds i16, ptr %32, i64 0
%34 = load i16, ptr %33, align 2
%35 = sext i16 %34 to i32
%36 = load i32, ptr %14, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [8 x [16 x i32]], ptr %9, i64 0, i64 %37
%39 = getelementptr inbounds [16 x i32], ptr %38, i64 0, i64 0
store i32 %35, ptr %39, align 16
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds i16, ptr %40, i64 1
%42 = load i16, ptr %41, align 2
%43 = sext i16 %42 to i32
%44 = load i32, ptr %14, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [8 x [16 x i32]], ptr %9, i64 0, i64 %45
%47 = getelementptr inbounds [16 x i32], ptr %46, i64 0, i64 1
store i32 %43, ptr %47, align 4
store i32 0, ptr %18, align 4
store i32 0, ptr %20, align 4
br label %48
48: ; preds = %121, %31
%49 = load i32, ptr %20, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %124
52: ; preds = %48
%53 = load ptr, ptr %5, align 8
%54 = load i32, ptr %20, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i16, ptr %53, i64 %55
%57 = load i16, ptr %56, align 2
%58 = sext i16 %57 to i32
%59 = load ptr, ptr %8, align 8
%60 = load i32, ptr %14, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [2 x i16], ptr %59, i64 %61
%63 = getelementptr inbounds [2 x i16], ptr %62, i64 0, i64 1
%64 = load i16, ptr %63, align 2
%65 = sext i16 %64 to i32
%66 = mul nsw i32 %58, %65
%67 = load ptr, ptr %5, align 8
%68 = load i32, ptr %20, align 4
%69 = add nsw i32 %68, 1
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i16, ptr %67, i64 %70
%72 = load i16, ptr %71, align 2
%73 = sext i16 %72 to i32
%74 = load ptr, ptr %8, align 8
%75 = load i32, ptr %14, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [2 x i16], ptr %74, i64 %76
%78 = getelementptr inbounds [2 x i16], ptr %77, i64 0, i64 0
%79 = load i16, ptr %78, align 2
%80 = sext i16 %79 to i32
%81 = mul nsw i32 %73, %80
%82 = add nsw i32 %66, %81
%83 = sdiv i32 %82, 2048
store i32 %83, ptr %15, align 4
%84 = load i32, ptr %14, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [8 x [16 x i32]], ptr %9, i64 0, i64 %85
%87 = load i32, ptr %20, align 4
%88 = add nsw i32 %87, 2
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [16 x i32], ptr %86, i64 0, i64 %89
store i32 %83, ptr %90, align 4
%91 = load ptr, ptr %5, align 8
%92 = load i32, ptr %20, align 4
%93 = add nsw i32 %92, 2
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i16, ptr %91, i64 %94
%96 = load i16, ptr %95, align 2
%97 = sext i16 %96 to i32
%98 = load i32, ptr %15, align 4
%99 = sub nsw i32 %97, %98
store i32 %99, ptr %16, align 4
%100 = load i32, ptr %16, align 4
%101 = icmp sge i32 %100, 32767
br i1 %101, label %102, label %103
102: ; preds = %52
br label %111
103: ; preds = %52
%104 = load i32, ptr %16, align 4
%105 = icmp sle i32 %104, -32768
br i1 %105, label %106, label %107
106: ; preds = %103
br label %109
107: ; preds = %103
%108 = load i32, ptr %16, align 4
br label %109
109: ; preds = %107, %106
%110 = phi i32 [ -32768, %106 ], [ %108, %107 ]
br label %111
111: ; preds = %109, %102
%112 = phi i32 [ 32767, %102 ], [ %110, %109 ]
store i32 %112, ptr %17, align 4
%113 = load i32, ptr %17, align 4
%114 = call i64 @abs(i32 noundef %113)
%115 = load i32, ptr %18, align 4
%116 = call i64 @abs(i32 noundef %115)
%117 = icmp sgt i64 %114, %116
br i1 %117, label %118, label %120
118: ; preds = %111
%119 = load i32, ptr %17, align 4
store i32 %119, ptr %18, align 4
br label %120
120: ; preds = %118, %111
br label %121
121: ; preds = %120
%122 = load i32, ptr %20, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %20, align 4
br label %48, !llvm.loop !6
124: ; preds = %48
%125 = load i32, ptr %14, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %126
store i32 0, ptr %127, align 4
br label %128
128: ; preds = %145, %124
%129 = load i32, ptr %14, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %130
%132 = load i32, ptr %131, align 4
%133 = icmp sle i32 %132, 12
br i1 %133, label %134, label %142
134: ; preds = %128
%135 = load i32, ptr %18, align 4
%136 = icmp sgt i32 %135, 7
br i1 %136, label %140, label %137
137: ; preds = %134
%138 = load i32, ptr %18, align 4
%139 = icmp slt i32 %138, -8
br label %140
140: ; preds = %137, %134
%141 = phi i1 [ true, %134 ], [ %139, %137 ]
br label %142
142: ; preds = %140, %128
%143 = phi i1 [ false, %128 ], [ %141, %140 ]
br i1 %143, label %144, label %153
144: ; preds = %142
br label %145
145: ; preds = %144
%146 = load i32, ptr %14, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %147
%149 = load i32, ptr %148, align 4
%150 = add nsw i32 %149, 1
store i32 %150, ptr %148, align 4
%151 = load i32, ptr %18, align 4
%152 = sdiv i32 %151, 2
store i32 %152, ptr %18, align 4
br label %128, !llvm.loop !8
153: ; preds = %142
%154 = load i32, ptr %14, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %155
%157 = load i32, ptr %156, align 4
%158 = icmp sle i32 %157, 1
br i1 %158, label %159, label %160
159: ; preds = %153
br label %166
160: ; preds = %153
%161 = load i32, ptr %14, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %162
%164 = load i32, ptr %163, align 4
%165 = sub nsw i32 %164, 2
br label %166
166: ; preds = %160, %159
%167 = phi i32 [ -1, %159 ], [ %165, %160 ]
%168 = load i32, ptr %14, align 4
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %169
store i32 %167, ptr %170, align 4
br label %171
171: ; preds = %370, %166
%172 = load i32, ptr %14, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %173
%175 = load i32, ptr %174, align 4
%176 = add nsw i32 %175, 1
store i32 %176, ptr %174, align 4
%177 = load i32, ptr %14, align 4
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds [8 x double], ptr %13, i64 0, i64 %178
store double 0.000000e+00, ptr %179, align 8
store i32 0, ptr %19, align 4
store i32 0, ptr %21, align 4
br label %180
180: ; preds = %336, %171
%181 = load i32, ptr %21, align 4
%182 = load i32, ptr %6, align 4
%183 = icmp slt i32 %181, %182
br i1 %183, label %184, label %339
184: ; preds = %180
%185 = load i32, ptr %14, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [8 x [16 x i32]], ptr %9, i64 0, i64 %186
%188 = load i32, ptr %21, align 4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds [16 x i32], ptr %187, i64 0, i64 %189
%191 = load i32, ptr %190, align 4
%192 = load ptr, ptr %8, align 8
%193 = load i32, ptr %14, align 4
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds [2 x i16], ptr %192, i64 %194
%196 = getelementptr inbounds [2 x i16], ptr %195, i64 0, i64 1
%197 = load i16, ptr %196, align 2
%198 = sext i16 %197 to i32
%199 = mul nsw i32 %191, %198
%200 = load i32, ptr %14, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds [8 x [16 x i32]], ptr %9, i64 0, i64 %201
%203 = load i32, ptr %21, align 4
%204 = add nsw i32 %203, 1
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds [16 x i32], ptr %202, i64 0, i64 %205
%207 = load i32, ptr %206, align 4
%208 = load ptr, ptr %8, align 8
%209 = load i32, ptr %14, align 4
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds [2 x i16], ptr %208, i64 %210
%212 = getelementptr inbounds [2 x i16], ptr %211, i64 0, i64 0
%213 = load i16, ptr %212, align 2
%214 = sext i16 %213 to i32
%215 = mul nsw i32 %207, %214
%216 = add nsw i32 %199, %215
store i32 %216, ptr %15, align 4
%217 = load ptr, ptr %5, align 8
%218 = load i32, ptr %21, align 4
%219 = add nsw i32 %218, 2
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds i16, ptr %217, i64 %220
%222 = load i16, ptr %221, align 2
%223 = sext i16 %222 to i32
%224 = shl i32 %223, 11
%225 = load i32, ptr %15, align 4
%226 = sub nsw i32 %224, %225
%227 = sdiv i32 %226, 2048
store i32 %227, ptr %16, align 4
%228 = load i32, ptr %16, align 4
%229 = icmp sgt i32 %228, 0
br i1 %229, label %230, label %242
230: ; preds = %184
%231 = load i32, ptr %16, align 4
%232 = sitofp i32 %231 to double
%233 = load i32, ptr %14, align 4
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %234
%236 = load i32, ptr %235, align 4
%237 = shl i32 1, %236
%238 = sitofp i32 %237 to double
%239 = fdiv double %232, %238
%240 = fadd double %239, 0x3FDFFFFFA0000000
%241 = fptosi double %240 to i32
br label %254
242: ; preds = %184
%243 = load i32, ptr %16, align 4
%244 = sitofp i32 %243 to double
%245 = load i32, ptr %14, align 4
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %246
%248 = load i32, ptr %247, align 4
%249 = shl i32 1, %248
%250 = sitofp i32 %249 to double
%251 = fdiv double %244, %250
%252 = fsub double %251, 0x3FDFFFFFA0000000
%253 = fptosi double %252 to i32
br label %254
254: ; preds = %242, %230
%255 = phi i32 [ %241, %230 ], [ %253, %242 ]
store i32 %255, ptr %17, align 4
%256 = load i32, ptr %17, align 4
%257 = icmp slt i32 %256, -8
br i1 %257, label %258, label %266
258: ; preds = %254
%259 = load i32, ptr %19, align 4
%260 = load i32, ptr %17, align 4
%261 = sub nsw i32 -8, %260
store i32 %261, ptr %17, align 4
%262 = icmp slt i32 %259, %261
br i1 %262, label %263, label %265
263: ; preds = %258
%264 = load i32, ptr %17, align 4
store i32 %264, ptr %19, align 4
br label %265
265: ; preds = %263, %258
store i32 -8, ptr %17, align 4
br label %278
266: ; preds = %254
%267 = load i32, ptr %17, align 4
%268 = icmp sgt i32 %267, 7
br i1 %268, label %269, label %277
269: ; preds = %266
%270 = load i32, ptr %19, align 4
%271 = load i32, ptr %17, align 4
%272 = sub nsw i32 %271, 7
store i32 %272, ptr %17, align 4
%273 = icmp slt i32 %270, %272
br i1 %273, label %274, label %276
274: ; preds = %269
%275 = load i32, ptr %17, align 4
store i32 %275, ptr %19, align 4
br label %276
276: ; preds = %274, %269
store i32 7, ptr %17, align 4
br label %277
277: ; preds = %276, %266
br label %278
278: ; preds = %277, %265
%279 = load i32, ptr %17, align 4
%280 = load i32, ptr %14, align 4
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds [8 x [14 x i32]], ptr %10, i64 0, i64 %281
%283 = load i32, ptr %21, align 4
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds [14 x i32], ptr %282, i64 0, i64 %284
store i32 %279, ptr %285, align 4
%286 = load i32, ptr %15, align 4
%287 = load i32, ptr %17, align 4
%288 = load i32, ptr %14, align 4
%289 = sext i32 %288 to i64
%290 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %289
%291 = load i32, ptr %290, align 4
%292 = shl i32 1, %291
%293 = mul nsw i32 %287, %292
%294 = shl i32 %293, 11
%295 = add nsw i32 %286, %294
%296 = add nsw i32 %295, 1024
%297 = ashr i32 %296, 11
store i32 %297, ptr %15, align 4
%298 = load i32, ptr %15, align 4
%299 = icmp sge i32 %298, 32767
br i1 %299, label %300, label %301
300: ; preds = %278
br label %309
301: ; preds = %278
%302 = load i32, ptr %15, align 4
%303 = icmp sle i32 %302, -32768
br i1 %303, label %304, label %305
304: ; preds = %301
br label %307
305: ; preds = %301
%306 = load i32, ptr %15, align 4
br label %307
307: ; preds = %305, %304
%308 = phi i32 [ -32768, %304 ], [ %306, %305 ]
br label %309
309: ; preds = %307, %300
%310 = phi i32 [ 32767, %300 ], [ %308, %307 ]
store i32 %310, ptr %16, align 4
%311 = load i32, ptr %14, align 4
%312 = sext i32 %311 to i64
%313 = getelementptr inbounds [8 x [16 x i32]], ptr %9, i64 0, i64 %312
%314 = load i32, ptr %21, align 4
%315 = add nsw i32 %314, 2
%316 = sext i32 %315 to i64
%317 = getelementptr inbounds [16 x i32], ptr %313, i64 0, i64 %316
store i32 %310, ptr %317, align 4
%318 = load ptr, ptr %5, align 8
%319 = load i32, ptr %21, align 4
%320 = add nsw i32 %319, 2
%321 = sext i32 %320 to i64
%322 = getelementptr inbounds i16, ptr %318, i64 %321
%323 = load i16, ptr %322, align 2
%324 = sext i16 %323 to i32
%325 = load i32, ptr %16, align 4
%326 = sub nsw i32 %324, %325
store i32 %326, ptr %17, align 4
%327 = load i32, ptr %17, align 4
%328 = sitofp i32 %327 to double
%329 = load i32, ptr %17, align 4
%330 = sitofp i32 %329 to double
%331 = load i32, ptr %14, align 4
%332 = sext i32 %331 to i64
%333 = getelementptr inbounds [8 x double], ptr %13, i64 0, i64 %332
%334 = load double, ptr %333, align 8
%335 = call double @llvm.fmuladd.f64(double %328, double %330, double %334)
store double %335, ptr %333, align 8
br label %336
336: ; preds = %309
%337 = load i32, ptr %21, align 4
%338 = add nsw i32 %337, 1
store i32 %338, ptr %21, align 4
br label %180, !llvm.loop !9
339: ; preds = %180
%340 = load i32, ptr %19, align 4
%341 = add nsw i32 %340, 8
store i32 %341, ptr %22, align 4
br label %342
342: ; preds = %357, %339
%343 = load i32, ptr %22, align 4
%344 = icmp sgt i32 %343, 256
br i1 %344, label %345, label %360
345: ; preds = %342
%346 = load i32, ptr %14, align 4
%347 = sext i32 %346 to i64
%348 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %347
%349 = load i32, ptr %348, align 4
%350 = add nsw i32 %349, 1
store i32 %350, ptr %348, align 4
%351 = icmp sge i32 %350, 12
br i1 %351, label %352, label %356
352: ; preds = %345
%353 = load i32, ptr %14, align 4
%354 = sext i32 %353 to i64
%355 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %354
store i32 11, ptr %355, align 4
br label %356
356: ; preds = %352, %345
br label %357
357: ; preds = %356
%358 = load i32, ptr %22, align 4
%359 = ashr i32 %358, 1
store i32 %359, ptr %22, align 4
br label %342, !llvm.loop !10
360: ; preds = %342
br label %361
361: ; preds = %360
%362 = load i32, ptr %14, align 4
%363 = sext i32 %362 to i64
%364 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %363
%365 = load i32, ptr %364, align 4
%366 = icmp slt i32 %365, 12
br i1 %366, label %367, label %370
367: ; preds = %361
%368 = load i32, ptr %19, align 4
%369 = icmp sgt i32 %368, 1
br label %370
370: ; preds = %367, %361
%371 = phi i1 [ false, %361 ], [ %369, %367 ]
br i1 %371, label %171, label %372, !llvm.loop !11
372: ; preds = %370
br label %373
373: ; preds = %372
%374 = load i32, ptr %14, align 4
%375 = add nsw i32 %374, 1
store i32 %375, ptr %14, align 4
br label %28, !llvm.loop !12
376: ; preds = %28
%377 = load double, ptr @DBL_MAX, align 8
store double %377, ptr %23, align 8
store i32 0, ptr %24, align 4
br label %378
378: ; preds = %395, %376
%379 = load i32, ptr %24, align 4
%380 = icmp slt i32 %379, 8
br i1 %380, label %381, label %398
381: ; preds = %378
%382 = load i32, ptr %24, align 4
%383 = sext i32 %382 to i64
%384 = getelementptr inbounds [8 x double], ptr %13, i64 0, i64 %383
%385 = load double, ptr %384, align 8
%386 = load double, ptr %23, align 8
%387 = fcmp olt double %385, %386
br i1 %387, label %388, label %394
388: ; preds = %381
%389 = load i32, ptr %24, align 4
%390 = sext i32 %389 to i64
%391 = getelementptr inbounds [8 x double], ptr %13, i64 0, i64 %390
%392 = load double, ptr %391, align 8
store double %392, ptr %23, align 8
%393 = load i32, ptr %24, align 4
store i32 %393, ptr %11, align 4
br label %394
394: ; preds = %388, %381
br label %395
395: ; preds = %394
%396 = load i32, ptr %24, align 4
%397 = add nsw i32 %396, 1
store i32 %397, ptr %24, align 4
br label %378, !llvm.loop !13
398: ; preds = %378
store i32 0, ptr %25, align 4
br label %399
399: ; preds = %418, %398
%400 = load i32, ptr %25, align 4
%401 = load i32, ptr %6, align 4
%402 = icmp slt i32 %400, %401
br i1 %402, label %403, label %421
403: ; preds = %399
%404 = load i32, ptr %11, align 4
%405 = sext i32 %404 to i64
%406 = getelementptr inbounds [8 x [16 x i32]], ptr %9, i64 0, i64 %405
%407 = load i32, ptr %25, align 4
%408 = add nsw i32 %407, 2
%409 = sext i32 %408 to i64
%410 = getelementptr inbounds [16 x i32], ptr %406, i64 0, i64 %409
%411 = load i32, ptr %410, align 4
%412 = trunc i32 %411 to i16
%413 = load ptr, ptr %5, align 8
%414 = load i32, ptr %25, align 4
%415 = add nsw i32 %414, 2
%416 = sext i32 %415 to i64
%417 = getelementptr inbounds i16, ptr %413, i64 %416
store i16 %412, ptr %417, align 2
br label %418
418: ; preds = %403
%419 = load i32, ptr %25, align 4
%420 = add nsw i32 %419, 1
store i32 %420, ptr %25, align 4
br label %399, !llvm.loop !14
421: ; preds = %399
%422 = load i32, ptr %11, align 4
%423 = shl i32 %422, 4
%424 = load i32, ptr %11, align 4
%425 = sext i32 %424 to i64
%426 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %425
%427 = load i32, ptr %426, align 4
%428 = and i32 %427, 15
%429 = or i32 %423, %428
%430 = trunc i32 %429 to i8
%431 = load ptr, ptr %7, align 8
%432 = getelementptr inbounds i8, ptr %431, i64 0
store i8 %430, ptr %432, align 1
%433 = load i32, ptr %6, align 4
store i32 %433, ptr %26, align 4
br label %434
434: ; preds = %444, %421
%435 = load i32, ptr %26, align 4
%436 = icmp slt i32 %435, 14
br i1 %436, label %437, label %447
437: ; preds = %434
%438 = load i32, ptr %11, align 4
%439 = sext i32 %438 to i64
%440 = getelementptr inbounds [8 x [14 x i32]], ptr %10, i64 0, i64 %439
%441 = load i32, ptr %26, align 4
%442 = sext i32 %441 to i64
%443 = getelementptr inbounds [14 x i32], ptr %440, i64 0, i64 %442
store i32 0, ptr %443, align 4
br label %444
444: ; preds = %437
%445 = load i32, ptr %26, align 4
%446 = add nsw i32 %445, 1
store i32 %446, ptr %26, align 4
br label %434, !llvm.loop !15
447: ; preds = %434
store i32 0, ptr %27, align 4
br label %448
448: ; preds = %478, %447
%449 = load i32, ptr %27, align 4
%450 = icmp slt i32 %449, 7
br i1 %450, label %451, label %481
451: ; preds = %448
%452 = load i32, ptr %11, align 4
%453 = sext i32 %452 to i64
%454 = getelementptr inbounds [8 x [14 x i32]], ptr %10, i64 0, i64 %453
%455 = load i32, ptr %27, align 4
%456 = mul nsw i32 %455, 2
%457 = sext i32 %456 to i64
%458 = getelementptr inbounds [14 x i32], ptr %454, i64 0, i64 %457
%459 = load i32, ptr %458, align 4
%460 = shl i32 %459, 4
%461 = load i32, ptr %11, align 4
%462 = sext i32 %461 to i64
%463 = getelementptr inbounds [8 x [14 x i32]], ptr %10, i64 0, i64 %462
%464 = load i32, ptr %27, align 4
%465 = mul nsw i32 %464, 2
%466 = add nsw i32 %465, 1
%467 = sext i32 %466 to i64
%468 = getelementptr inbounds [14 x i32], ptr %463, i64 0, i64 %467
%469 = load i32, ptr %468, align 4
%470 = and i32 %469, 15
%471 = or i32 %460, %470
%472 = trunc i32 %471 to i8
%473 = load ptr, ptr %7, align 8
%474 = load i32, ptr %27, align 4
%475 = add nsw i32 %474, 1
%476 = sext i32 %475 to i64
%477 = getelementptr inbounds i8, ptr %473, i64 %476
store i8 %472, ptr %477, align 1
br label %478
478: ; preds = %451
%479 = load i32, ptr %27, align 4
%480 = add nsw i32 %479, 1
store i32 %480, ptr %27, align 4
br label %448, !llvm.loop !16
481: ; preds = %448
ret void
}
declare i64 @abs(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx57vtstl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DBL_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @DSPEncodeFrame(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [8 x [16 x i32]], align 16
%10 = alloca [8 x [14 x i32]], align 16
%11 = alloca i32, align 4
%12 = alloca [8 x i32], align 16
%13 = alloca [8 x double], align 16
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca double, align 8
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
store i32 0, ptr %11, align 4
store i32 0, ptr %14, align 4
%28 = load i32, ptr %14, align 4
%29 = icmp slt i32 %28, 8
br i1 %29, label %.lr.ph8, label %382
.lr.ph8: ; preds = %4
br label %30
30: ; preds = %.lr.ph8, %377
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds i16, ptr %31, i64 0
%33 = load i16, ptr %32, align 2
%34 = sext i16 %33 to i32
%35 = load i32, ptr %14, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [8 x [16 x i32]], ptr %9, i64 0, i64 %36
%38 = getelementptr inbounds [16 x i32], ptr %37, i64 0, i64 0
store i32 %34, ptr %38, align 16
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds i16, ptr %39, i64 1
%41 = load i16, ptr %40, align 2
%42 = sext i16 %41 to i32
%43 = load i32, ptr %14, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [8 x [16 x i32]], ptr %9, i64 0, i64 %44
%46 = getelementptr inbounds [16 x i32], ptr %45, i64 0, i64 1
store i32 %42, ptr %46, align 4
store i32 0, ptr %18, align 4
store i32 0, ptr %20, align 4
%47 = load i32, ptr %20, align 4
%48 = load i32, ptr %6, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %.lr.ph, label %125
.lr.ph: ; preds = %30
br label %50
50: ; preds = %.lr.ph, %119
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %20, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i16, ptr %51, i64 %53
%55 = load i16, ptr %54, align 2
%56 = sext i16 %55 to i32
%57 = load ptr, ptr %8, align 8
%58 = load i32, ptr %14, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [2 x i16], ptr %57, i64 %59
%61 = getelementptr inbounds [2 x i16], ptr %60, i64 0, i64 1
%62 = load i16, ptr %61, align 2
%63 = sext i16 %62 to i32
%64 = mul nsw i32 %56, %63
%65 = load ptr, ptr %5, align 8
%66 = load i32, ptr %20, align 4
%67 = add nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i16, ptr %65, i64 %68
%70 = load i16, ptr %69, align 2
%71 = sext i16 %70 to i32
%72 = load ptr, ptr %8, align 8
%73 = load i32, ptr %14, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [2 x i16], ptr %72, i64 %74
%76 = getelementptr inbounds [2 x i16], ptr %75, i64 0, i64 0
%77 = load i16, ptr %76, align 2
%78 = sext i16 %77 to i32
%79 = mul nsw i32 %71, %78
%80 = add nsw i32 %64, %79
%81 = sdiv i32 %80, 2048
store i32 %81, ptr %15, align 4
%82 = load i32, ptr %14, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [8 x [16 x i32]], ptr %9, i64 0, i64 %83
%85 = load i32, ptr %20, align 4
%86 = add nsw i32 %85, 2
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [16 x i32], ptr %84, i64 0, i64 %87
store i32 %81, ptr %88, align 4
%89 = load ptr, ptr %5, align 8
%90 = load i32, ptr %20, align 4
%91 = add nsw i32 %90, 2
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i16, ptr %89, i64 %92
%94 = load i16, ptr %93, align 2
%95 = sext i16 %94 to i32
%96 = load i32, ptr %15, align 4
%97 = sub nsw i32 %95, %96
store i32 %97, ptr %16, align 4
%98 = load i32, ptr %16, align 4
%99 = icmp sge i32 %98, 32767
br i1 %99, label %100, label %101
100: ; preds = %50
br label %109
101: ; preds = %50
%102 = load i32, ptr %16, align 4
%103 = icmp sle i32 %102, -32768
br i1 %103, label %104, label %105
104: ; preds = %101
br label %107
105: ; preds = %101
%106 = load i32, ptr %16, align 4
br label %107
107: ; preds = %105, %104
%108 = phi i32 [ -32768, %104 ], [ %106, %105 ]
br label %109
109: ; preds = %107, %100
%110 = phi i32 [ 32767, %100 ], [ %108, %107 ]
store i32 %110, ptr %17, align 4
%111 = load i32, ptr %17, align 4
%112 = call i64 @abs(i32 noundef %111)
%113 = load i32, ptr %18, align 4
%114 = call i64 @abs(i32 noundef %113)
%115 = icmp sgt i64 %112, %114
br i1 %115, label %116, label %118
116: ; preds = %109
%117 = load i32, ptr %17, align 4
store i32 %117, ptr %18, align 4
br label %118
118: ; preds = %116, %109
br label %119
119: ; preds = %118
%120 = load i32, ptr %20, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %20, align 4
%122 = load i32, ptr %20, align 4
%123 = load i32, ptr %6, align 4
%124 = icmp slt i32 %122, %123
br i1 %124, label %50, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %119
br label %125
125: ; preds = %._crit_edge, %30
%126 = load i32, ptr %14, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %127
store i32 0, ptr %128, align 4
br label %129
129: ; preds = %146, %125
%130 = load i32, ptr %14, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %131
%133 = load i32, ptr %132, align 4
%134 = icmp sle i32 %133, 12
br i1 %134, label %135, label %143
135: ; preds = %129
%136 = load i32, ptr %18, align 4
%137 = icmp sgt i32 %136, 7
br i1 %137, label %141, label %138
138: ; preds = %135
%139 = load i32, ptr %18, align 4
%140 = icmp slt i32 %139, -8
br label %141
141: ; preds = %138, %135
%142 = phi i1 [ true, %135 ], [ %140, %138 ]
br label %143
143: ; preds = %141, %129
%144 = phi i1 [ false, %129 ], [ %142, %141 ]
br i1 %144, label %145, label %154
145: ; preds = %143
br label %146
146: ; preds = %145
%147 = load i32, ptr %14, align 4
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %148
%150 = load i32, ptr %149, align 4
%151 = add nsw i32 %150, 1
store i32 %151, ptr %149, align 4
%152 = load i32, ptr %18, align 4
%153 = sdiv i32 %152, 2
store i32 %153, ptr %18, align 4
br label %129, !llvm.loop !8
154: ; preds = %143
%155 = load i32, ptr %14, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %156
%158 = load i32, ptr %157, align 4
%159 = icmp sle i32 %158, 1
br i1 %159, label %160, label %161
160: ; preds = %154
br label %167
161: ; preds = %154
%162 = load i32, ptr %14, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %163
%165 = load i32, ptr %164, align 4
%166 = sub nsw i32 %165, 2
br label %167
167: ; preds = %161, %160
%168 = phi i32 [ -1, %160 ], [ %166, %161 ]
%169 = load i32, ptr %14, align 4
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %170
store i32 %168, ptr %171, align 4
br label %172
172: ; preds = %374, %167
%173 = load i32, ptr %14, align 4
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %174
%176 = load i32, ptr %175, align 4
%177 = add nsw i32 %176, 1
store i32 %177, ptr %175, align 4
%178 = load i32, ptr %14, align 4
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds [8 x double], ptr %13, i64 0, i64 %179
store double 0.000000e+00, ptr %180, align 8
store i32 0, ptr %19, align 4
store i32 0, ptr %21, align 4
%181 = load i32, ptr %21, align 4
%182 = load i32, ptr %6, align 4
%183 = icmp slt i32 %181, %182
br i1 %183, label %.lr.ph2, label %342
.lr.ph2: ; preds = %172
br label %184
184: ; preds = %.lr.ph2, %336
%185 = load i32, ptr %14, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [8 x [16 x i32]], ptr %9, i64 0, i64 %186
%188 = load i32, ptr %21, align 4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds [16 x i32], ptr %187, i64 0, i64 %189
%191 = load i32, ptr %190, align 4
%192 = load ptr, ptr %8, align 8
%193 = load i32, ptr %14, align 4
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds [2 x i16], ptr %192, i64 %194
%196 = getelementptr inbounds [2 x i16], ptr %195, i64 0, i64 1
%197 = load i16, ptr %196, align 2
%198 = sext i16 %197 to i32
%199 = mul nsw i32 %191, %198
%200 = load i32, ptr %14, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds [8 x [16 x i32]], ptr %9, i64 0, i64 %201
%203 = load i32, ptr %21, align 4
%204 = add nsw i32 %203, 1
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds [16 x i32], ptr %202, i64 0, i64 %205
%207 = load i32, ptr %206, align 4
%208 = load ptr, ptr %8, align 8
%209 = load i32, ptr %14, align 4
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds [2 x i16], ptr %208, i64 %210
%212 = getelementptr inbounds [2 x i16], ptr %211, i64 0, i64 0
%213 = load i16, ptr %212, align 2
%214 = sext i16 %213 to i32
%215 = mul nsw i32 %207, %214
%216 = add nsw i32 %199, %215
store i32 %216, ptr %15, align 4
%217 = load ptr, ptr %5, align 8
%218 = load i32, ptr %21, align 4
%219 = add nsw i32 %218, 2
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds i16, ptr %217, i64 %220
%222 = load i16, ptr %221, align 2
%223 = sext i16 %222 to i32
%224 = shl i32 %223, 11
%225 = load i32, ptr %15, align 4
%226 = sub nsw i32 %224, %225
%227 = sdiv i32 %226, 2048
store i32 %227, ptr %16, align 4
%228 = load i32, ptr %16, align 4
%229 = icmp sgt i32 %228, 0
br i1 %229, label %230, label %242
230: ; preds = %184
%231 = load i32, ptr %16, align 4
%232 = sitofp i32 %231 to double
%233 = load i32, ptr %14, align 4
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %234
%236 = load i32, ptr %235, align 4
%237 = shl i32 1, %236
%238 = sitofp i32 %237 to double
%239 = fdiv double %232, %238
%240 = fadd double %239, 0x3FDFFFFFA0000000
%241 = fptosi double %240 to i32
br label %254
242: ; preds = %184
%243 = load i32, ptr %16, align 4
%244 = sitofp i32 %243 to double
%245 = load i32, ptr %14, align 4
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %246
%248 = load i32, ptr %247, align 4
%249 = shl i32 1, %248
%250 = sitofp i32 %249 to double
%251 = fdiv double %244, %250
%252 = fsub double %251, 0x3FDFFFFFA0000000
%253 = fptosi double %252 to i32
br label %254
254: ; preds = %242, %230
%255 = phi i32 [ %241, %230 ], [ %253, %242 ]
store i32 %255, ptr %17, align 4
%256 = load i32, ptr %17, align 4
%257 = icmp slt i32 %256, -8
br i1 %257, label %258, label %266
258: ; preds = %254
%259 = load i32, ptr %19, align 4
%260 = load i32, ptr %17, align 4
%261 = sub nsw i32 -8, %260
store i32 %261, ptr %17, align 4
%262 = icmp slt i32 %259, %261
br i1 %262, label %263, label %265
263: ; preds = %258
%264 = load i32, ptr %17, align 4
store i32 %264, ptr %19, align 4
br label %265
265: ; preds = %263, %258
store i32 -8, ptr %17, align 4
br label %278
266: ; preds = %254
%267 = load i32, ptr %17, align 4
%268 = icmp sgt i32 %267, 7
br i1 %268, label %269, label %277
269: ; preds = %266
%270 = load i32, ptr %19, align 4
%271 = load i32, ptr %17, align 4
%272 = sub nsw i32 %271, 7
store i32 %272, ptr %17, align 4
%273 = icmp slt i32 %270, %272
br i1 %273, label %274, label %276
274: ; preds = %269
%275 = load i32, ptr %17, align 4
store i32 %275, ptr %19, align 4
br label %276
276: ; preds = %274, %269
store i32 7, ptr %17, align 4
br label %277
277: ; preds = %276, %266
br label %278
278: ; preds = %277, %265
%279 = load i32, ptr %17, align 4
%280 = load i32, ptr %14, align 4
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds [8 x [14 x i32]], ptr %10, i64 0, i64 %281
%283 = load i32, ptr %21, align 4
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds [14 x i32], ptr %282, i64 0, i64 %284
store i32 %279, ptr %285, align 4
%286 = load i32, ptr %15, align 4
%287 = load i32, ptr %17, align 4
%288 = load i32, ptr %14, align 4
%289 = sext i32 %288 to i64
%290 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %289
%291 = load i32, ptr %290, align 4
%292 = shl i32 1, %291
%293 = mul nsw i32 %287, %292
%294 = shl i32 %293, 11
%295 = add nsw i32 %286, %294
%296 = add nsw i32 %295, 1024
%297 = ashr i32 %296, 11
store i32 %297, ptr %15, align 4
%298 = load i32, ptr %15, align 4
%299 = icmp sge i32 %298, 32767
br i1 %299, label %300, label %301
300: ; preds = %278
br label %309
301: ; preds = %278
%302 = load i32, ptr %15, align 4
%303 = icmp sle i32 %302, -32768
br i1 %303, label %304, label %305
304: ; preds = %301
br label %307
305: ; preds = %301
%306 = load i32, ptr %15, align 4
br label %307
307: ; preds = %305, %304
%308 = phi i32 [ -32768, %304 ], [ %306, %305 ]
br label %309
309: ; preds = %307, %300
%310 = phi i32 [ 32767, %300 ], [ %308, %307 ]
store i32 %310, ptr %16, align 4
%311 = load i32, ptr %14, align 4
%312 = sext i32 %311 to i64
%313 = getelementptr inbounds [8 x [16 x i32]], ptr %9, i64 0, i64 %312
%314 = load i32, ptr %21, align 4
%315 = add nsw i32 %314, 2
%316 = sext i32 %315 to i64
%317 = getelementptr inbounds [16 x i32], ptr %313, i64 0, i64 %316
store i32 %310, ptr %317, align 4
%318 = load ptr, ptr %5, align 8
%319 = load i32, ptr %21, align 4
%320 = add nsw i32 %319, 2
%321 = sext i32 %320 to i64
%322 = getelementptr inbounds i16, ptr %318, i64 %321
%323 = load i16, ptr %322, align 2
%324 = sext i16 %323 to i32
%325 = load i32, ptr %16, align 4
%326 = sub nsw i32 %324, %325
store i32 %326, ptr %17, align 4
%327 = load i32, ptr %17, align 4
%328 = sitofp i32 %327 to double
%329 = load i32, ptr %17, align 4
%330 = sitofp i32 %329 to double
%331 = load i32, ptr %14, align 4
%332 = sext i32 %331 to i64
%333 = getelementptr inbounds [8 x double], ptr %13, i64 0, i64 %332
%334 = load double, ptr %333, align 8
%335 = call double @llvm.fmuladd.f64(double %328, double %330, double %334)
store double %335, ptr %333, align 8
br label %336
336: ; preds = %309
%337 = load i32, ptr %21, align 4
%338 = add nsw i32 %337, 1
store i32 %338, ptr %21, align 4
%339 = load i32, ptr %21, align 4
%340 = load i32, ptr %6, align 4
%341 = icmp slt i32 %339, %340
br i1 %341, label %184, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %336
br label %342
342: ; preds = %._crit_edge3, %172
%343 = load i32, ptr %19, align 4
%344 = add nsw i32 %343, 8
store i32 %344, ptr %22, align 4
%345 = load i32, ptr %22, align 4
%346 = icmp sgt i32 %345, 256
br i1 %346, label %.lr.ph5, label %364
.lr.ph5: ; preds = %342
br label %347
347: ; preds = %.lr.ph5, %359
%348 = load i32, ptr %14, align 4
%349 = sext i32 %348 to i64
%350 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %349
%351 = load i32, ptr %350, align 4
%352 = add nsw i32 %351, 1
store i32 %352, ptr %350, align 4
%353 = icmp sge i32 %352, 12
br i1 %353, label %354, label %358
354: ; preds = %347
%355 = load i32, ptr %14, align 4
%356 = sext i32 %355 to i64
%357 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %356
store i32 11, ptr %357, align 4
br label %358
358: ; preds = %354, %347
br label %359
359: ; preds = %358
%360 = load i32, ptr %22, align 4
%361 = ashr i32 %360, 1
store i32 %361, ptr %22, align 4
%362 = load i32, ptr %22, align 4
%363 = icmp sgt i32 %362, 256
br i1 %363, label %347, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %359
br label %364
364: ; preds = %._crit_edge6, %342
br label %365
365: ; preds = %364
%366 = load i32, ptr %14, align 4
%367 = sext i32 %366 to i64
%368 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %367
%369 = load i32, ptr %368, align 4
%370 = icmp slt i32 %369, 12
br i1 %370, label %371, label %374
371: ; preds = %365
%372 = load i32, ptr %19, align 4
%373 = icmp sgt i32 %372, 1
br label %374
374: ; preds = %371, %365
%375 = phi i1 [ false, %365 ], [ %373, %371 ]
br i1 %375, label %172, label %376, !llvm.loop !11
376: ; preds = %374
br label %377
377: ; preds = %376
%378 = load i32, ptr %14, align 4
%379 = add nsw i32 %378, 1
store i32 %379, ptr %14, align 4
%380 = load i32, ptr %14, align 4
%381 = icmp slt i32 %380, 8
br i1 %381, label %30, label %._crit_edge9, !llvm.loop !12
._crit_edge9: ; preds = %377
br label %382
382: ; preds = %._crit_edge9, %4
%383 = load double, ptr @DBL_MAX, align 8
store double %383, ptr %23, align 8
store i32 0, ptr %24, align 4
%384 = load i32, ptr %24, align 4
%385 = icmp slt i32 %384, 8
br i1 %385, label %.lr.ph11, label %405
.lr.ph11: ; preds = %382
br label %386
386: ; preds = %.lr.ph11, %400
%387 = load i32, ptr %24, align 4
%388 = sext i32 %387 to i64
%389 = getelementptr inbounds [8 x double], ptr %13, i64 0, i64 %388
%390 = load double, ptr %389, align 8
%391 = load double, ptr %23, align 8
%392 = fcmp olt double %390, %391
br i1 %392, label %393, label %399
393: ; preds = %386
%394 = load i32, ptr %24, align 4
%395 = sext i32 %394 to i64
%396 = getelementptr inbounds [8 x double], ptr %13, i64 0, i64 %395
%397 = load double, ptr %396, align 8
store double %397, ptr %23, align 8
%398 = load i32, ptr %24, align 4
store i32 %398, ptr %11, align 4
br label %399
399: ; preds = %393, %386
br label %400
400: ; preds = %399
%401 = load i32, ptr %24, align 4
%402 = add nsw i32 %401, 1
store i32 %402, ptr %24, align 4
%403 = load i32, ptr %24, align 4
%404 = icmp slt i32 %403, 8
br i1 %404, label %386, label %._crit_edge12, !llvm.loop !13
._crit_edge12: ; preds = %400
br label %405
405: ; preds = %._crit_edge12, %382
store i32 0, ptr %25, align 4
%406 = load i32, ptr %25, align 4
%407 = load i32, ptr %6, align 4
%408 = icmp slt i32 %406, %407
br i1 %408, label %.lr.ph14, label %430
.lr.ph14: ; preds = %405
br label %409
409: ; preds = %.lr.ph14, %424
%410 = load i32, ptr %11, align 4
%411 = sext i32 %410 to i64
%412 = getelementptr inbounds [8 x [16 x i32]], ptr %9, i64 0, i64 %411
%413 = load i32, ptr %25, align 4
%414 = add nsw i32 %413, 2
%415 = sext i32 %414 to i64
%416 = getelementptr inbounds [16 x i32], ptr %412, i64 0, i64 %415
%417 = load i32, ptr %416, align 4
%418 = trunc i32 %417 to i16
%419 = load ptr, ptr %5, align 8
%420 = load i32, ptr %25, align 4
%421 = add nsw i32 %420, 2
%422 = sext i32 %421 to i64
%423 = getelementptr inbounds i16, ptr %419, i64 %422
store i16 %418, ptr %423, align 2
br label %424
424: ; preds = %409
%425 = load i32, ptr %25, align 4
%426 = add nsw i32 %425, 1
store i32 %426, ptr %25, align 4
%427 = load i32, ptr %25, align 4
%428 = load i32, ptr %6, align 4
%429 = icmp slt i32 %427, %428
br i1 %429, label %409, label %._crit_edge15, !llvm.loop !14
._crit_edge15: ; preds = %424
br label %430
430: ; preds = %._crit_edge15, %405
%431 = load i32, ptr %11, align 4
%432 = shl i32 %431, 4
%433 = load i32, ptr %11, align 4
%434 = sext i32 %433 to i64
%435 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %434
%436 = load i32, ptr %435, align 4
%437 = and i32 %436, 15
%438 = or i32 %432, %437
%439 = trunc i32 %438 to i8
%440 = load ptr, ptr %7, align 8
%441 = getelementptr inbounds i8, ptr %440, i64 0
store i8 %439, ptr %441, align 1
%442 = load i32, ptr %6, align 4
store i32 %442, ptr %26, align 4
%443 = load i32, ptr %26, align 4
%444 = icmp slt i32 %443, 14
br i1 %444, label %.lr.ph17, label %457
.lr.ph17: ; preds = %430
br label %445
445: ; preds = %.lr.ph17, %452
%446 = load i32, ptr %11, align 4
%447 = sext i32 %446 to i64
%448 = getelementptr inbounds [8 x [14 x i32]], ptr %10, i64 0, i64 %447
%449 = load i32, ptr %26, align 4
%450 = sext i32 %449 to i64
%451 = getelementptr inbounds [14 x i32], ptr %448, i64 0, i64 %450
store i32 0, ptr %451, align 4
br label %452
452: ; preds = %445
%453 = load i32, ptr %26, align 4
%454 = add nsw i32 %453, 1
store i32 %454, ptr %26, align 4
%455 = load i32, ptr %26, align 4
%456 = icmp slt i32 %455, 14
br i1 %456, label %445, label %._crit_edge18, !llvm.loop !15
._crit_edge18: ; preds = %452
br label %457
457: ; preds = %._crit_edge18, %430
store i32 0, ptr %27, align 4
%458 = load i32, ptr %27, align 4
%459 = icmp slt i32 %458, 7
br i1 %459, label %.lr.ph20, label %492
.lr.ph20: ; preds = %457
br label %460
460: ; preds = %.lr.ph20, %487
%461 = load i32, ptr %11, align 4
%462 = sext i32 %461 to i64
%463 = getelementptr inbounds [8 x [14 x i32]], ptr %10, i64 0, i64 %462
%464 = load i32, ptr %27, align 4
%465 = mul nsw i32 %464, 2
%466 = sext i32 %465 to i64
%467 = getelementptr inbounds [14 x i32], ptr %463, i64 0, i64 %466
%468 = load i32, ptr %467, align 4
%469 = shl i32 %468, 4
%470 = load i32, ptr %11, align 4
%471 = sext i32 %470 to i64
%472 = getelementptr inbounds [8 x [14 x i32]], ptr %10, i64 0, i64 %471
%473 = load i32, ptr %27, align 4
%474 = mul nsw i32 %473, 2
%475 = add nsw i32 %474, 1
%476 = sext i32 %475 to i64
%477 = getelementptr inbounds [14 x i32], ptr %472, i64 0, i64 %476
%478 = load i32, ptr %477, align 4
%479 = and i32 %478, 15
%480 = or i32 %469, %479
%481 = trunc i32 %480 to i8
%482 = load ptr, ptr %7, align 8
%483 = load i32, ptr %27, align 4
%484 = add nsw i32 %483, 1
%485 = sext i32 %484 to i64
%486 = getelementptr inbounds i8, ptr %482, i64 %485
store i8 %481, ptr %486, align 1
br label %487
487: ; preds = %460
%488 = load i32, ptr %27, align 4
%489 = add nsw i32 %488, 1
store i32 %489, ptr %27, align 4
%490 = load i32, ptr %27, align 4
%491 = icmp slt i32 %490, 7
br i1 %491, label %460, label %._crit_edge21, !llvm.loop !16
._crit_edge21: ; preds = %487
br label %492
492: ; preds = %._crit_edge21, %457
ret void
}
declare i64 @abs(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
|
; ModuleID = '/tmp/tmp2hk6ztf2.c'
source_filename = "/tmp/tmp2hk6ztf2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2hk6ztf2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzo65rfx_.c'
source_filename = "/tmp/tmpzo65rfx_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [9 x i8] c"/towrite\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [8 x i8] c"/toread\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [8 x i8] c"f2: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"st_size: %d\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"ftruncate(10): %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"errno: %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"ftruncate(4): %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [19 x i8] c"ftruncate(-1): %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c"truncate(2): %d\0A\00", align 1
@.str.10 = private unnamed_addr constant [27 x i8] c"truncate(readonly, 2): %d\0A\00", align 1
@.str.11 = private unnamed_addr constant [28 x i8] c"ftruncate(readonly, 4): %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.stat, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = load i32, ptr @O_WRONLY, align 4
%6 = call i32 @open(ptr noundef @.str, i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr @O_RDONLY, align 4
%8 = call i32 @open(ptr noundef @.str.1, i32 noundef %7)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
%11 = load i32, ptr %3, align 4
%12 = call i32 @fstat(i32 noundef %11, ptr noundef %2)
%13 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%14 = load i32, ptr %13, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %14)
%16 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4)
store i32 0, ptr @errno, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%18 = load i32, ptr %3, align 4
%19 = call i32 @ftruncate(i32 noundef %18, i32 noundef 10)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %19)
%21 = load i32, ptr @errno, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %21)
%23 = load i32, ptr %3, align 4
%24 = call i32 @fstat(i32 noundef %23, ptr noundef %2)
%25 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%26 = load i32, ptr %25, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %26)
%28 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4)
store i32 0, ptr @errno, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%30 = load i32, ptr %3, align 4
%31 = call i32 @ftruncate(i32 noundef %30, i32 noundef 4)
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %31)
%33 = load i32, ptr @errno, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %33)
%35 = load i32, ptr %3, align 4
%36 = call i32 @fstat(i32 noundef %35, ptr noundef %2)
%37 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%38 = load i32, ptr %37, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %38)
%40 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4)
store i32 0, ptr @errno, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%42 = load i32, ptr %3, align 4
%43 = call i32 @ftruncate(i32 noundef %42, i32 noundef -1)
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %43)
%45 = load i32, ptr @errno, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %45)
%47 = load i32, ptr %3, align 4
%48 = call i32 @fstat(i32 noundef %47, ptr noundef %2)
%49 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%50 = load i32, ptr %49, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %50)
%52 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4)
store i32 0, ptr @errno, align 4
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%54 = call i32 @truncate(ptr noundef @.str, i32 noundef 2)
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %54)
%56 = load i32, ptr @errno, align 4
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %56)
%58 = call i32 @stat(ptr noundef @.str, ptr noundef %2)
%59 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%60 = load i32, ptr %59, align 4
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %60)
%62 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4)
store i32 0, ptr @errno, align 4
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%64 = call i32 @truncate(ptr noundef @.str.1, i32 noundef 2)
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %64)
%66 = load i32, ptr @errno, align 4
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %66)
%68 = call i32 @stat(ptr noundef @.str.1, ptr noundef %2)
%69 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%70 = load i32, ptr %69, align 4
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %70)
%72 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4)
store i32 0, ptr @errno, align 4
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%74 = load i32, ptr %4, align 4
%75 = call i32 @ftruncate(i32 noundef %74, i32 noundef 4)
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %75)
%77 = load i32, ptr @errno, align 4
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %77)
%79 = load i32, ptr %4, align 4
%80 = call i32 @fstat(i32 noundef %79, ptr noundef %2)
%81 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%82 = load i32, ptr %81, align 4
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %82)
%84 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4)
store i32 0, ptr @errno, align 4
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ftruncate(i32 noundef, i32 noundef) #1
declare i32 @truncate(ptr noundef, i32 noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzo65rfx_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [9 x i8] c"/towrite\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [8 x i8] c"/toread\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [8 x i8] c"f2: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"st_size: %d\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"ftruncate(10): %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"errno: %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"ftruncate(4): %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [19 x i8] c"ftruncate(-1): %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c"truncate(2): %d\0A\00", align 1
@.str.10 = private unnamed_addr constant [27 x i8] c"truncate(readonly, 2): %d\0A\00", align 1
@.str.11 = private unnamed_addr constant [28 x i8] c"ftruncate(readonly, 4): %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.stat, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = load i32, ptr @O_WRONLY, align 4
%6 = call i32 @open(ptr noundef @.str, i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr @O_RDONLY, align 4
%8 = call i32 @open(ptr noundef @.str.1, i32 noundef %7)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
%11 = load i32, ptr %3, align 4
%12 = call i32 @fstat(i32 noundef %11, ptr noundef %2)
%13 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%14 = load i32, ptr %13, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %14)
%16 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4)
store i32 0, ptr @errno, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%18 = load i32, ptr %3, align 4
%19 = call i32 @ftruncate(i32 noundef %18, i32 noundef 10)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %19)
%21 = load i32, ptr @errno, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %21)
%23 = load i32, ptr %3, align 4
%24 = call i32 @fstat(i32 noundef %23, ptr noundef %2)
%25 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%26 = load i32, ptr %25, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %26)
%28 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4)
store i32 0, ptr @errno, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%30 = load i32, ptr %3, align 4
%31 = call i32 @ftruncate(i32 noundef %30, i32 noundef 4)
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %31)
%33 = load i32, ptr @errno, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %33)
%35 = load i32, ptr %3, align 4
%36 = call i32 @fstat(i32 noundef %35, ptr noundef %2)
%37 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%38 = load i32, ptr %37, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %38)
%40 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4)
store i32 0, ptr @errno, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%42 = load i32, ptr %3, align 4
%43 = call i32 @ftruncate(i32 noundef %42, i32 noundef -1)
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %43)
%45 = load i32, ptr @errno, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %45)
%47 = load i32, ptr %3, align 4
%48 = call i32 @fstat(i32 noundef %47, ptr noundef %2)
%49 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%50 = load i32, ptr %49, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %50)
%52 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4)
store i32 0, ptr @errno, align 4
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%54 = call i32 @truncate(ptr noundef @.str, i32 noundef 2)
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %54)
%56 = load i32, ptr @errno, align 4
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %56)
%58 = call i32 @stat(ptr noundef @.str, ptr noundef %2)
%59 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%60 = load i32, ptr %59, align 4
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %60)
%62 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4)
store i32 0, ptr @errno, align 4
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%64 = call i32 @truncate(ptr noundef @.str.1, i32 noundef 2)
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %64)
%66 = load i32, ptr @errno, align 4
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %66)
%68 = call i32 @stat(ptr noundef @.str.1, ptr noundef %2)
%69 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%70 = load i32, ptr %69, align 4
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %70)
%72 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4)
store i32 0, ptr @errno, align 4
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%74 = load i32, ptr %4, align 4
%75 = call i32 @ftruncate(i32 noundef %74, i32 noundef 4)
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %75)
%77 = load i32, ptr @errno, align 4
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %77)
%79 = load i32, ptr %4, align 4
%80 = call i32 @fstat(i32 noundef %79, ptr noundef %2)
%81 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%82 = load i32, ptr %81, align 4
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %82)
%84 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4)
store i32 0, ptr @errno, align 4
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ftruncate(i32 noundef, i32 noundef) #1
declare i32 @truncate(ptr noundef, i32 noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp81fmy9zd.c'
source_filename = "/tmp/tmp81fmy9zd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"a=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"b=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 3, ptr %2, align 4
store i32 2, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = load i32, ptr %3, align 4
%7 = call i32 @printf(ptr noundef @.str.1, i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp81fmy9zd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"a=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"b=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 3, ptr %2, align 4
store i32 2, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = load i32, ptr %3, align 4
%7 = call i32 @printf(ptr noundef @.str.1, i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb99plt1w.c'
source_filename = "/tmp/tmpb99plt1w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Informe um valor inteiro: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Numero par!\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"Numero impar!\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"Erro!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i64 @par(i32 noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @printf(ptr noundef @.str.2)
br label %19
10: ; preds = %0
%11 = load i32, ptr %2, align 4
%12 = call i64 @impar(i32 noundef %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @printf(ptr noundef @.str.3)
br label %18
16: ; preds = %10
%17 = call i32 @printf(ptr noundef @.str.4)
br label %18
18: ; preds = %16, %14
br label %19
19: ; preds = %18, %8
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @par(i32 noundef) #1
declare i64 @impar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb99plt1w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Informe um valor inteiro: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Numero par!\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"Numero impar!\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"Erro!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i64 @par(i32 noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @printf(ptr noundef @.str.2)
br label %19
10: ; preds = %0
%11 = load i32, ptr %2, align 4
%12 = call i64 @impar(i32 noundef %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @printf(ptr noundef @.str.3)
br label %18
16: ; preds = %10
%17 = call i32 @printf(ptr noundef @.str.4)
br label %18
18: ; preds = %16, %14
br label %19
19: ; preds = %18, %8
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @par(i32 noundef) #1
declare i64 @impar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqmvo_60c.c'
source_filename = "/tmp/tmpqmvo_60c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c" %s\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"aguia\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"pomba\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"homem\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"vaca\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"pulga\0A\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"lagarta\0A\00", align 1
@.str.7 = private unnamed_addr constant [13 x i8] c"sanguessuga\0A\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c"minhoca\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%3 = alloca [20 x i8], align 16
%4 = alloca [20 x i8], align 16
store i32 0, ptr %1, align 4
%5 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%7 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %7)
%9 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 0
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %9)
%11 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%12 = load i8, ptr %11, align 16
%13 = sext i8 %12 to i32
switch i32 %13, label %60 [
i32 118, label %14
i32 105, label %37
]
14: ; preds = %0
%15 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%16 = load i8, ptr %15, align 16
%17 = sext i8 %16 to i32
switch i32 %17, label %36 [
i32 97, label %18
i32 109, label %27
]
18: ; preds = %14
%19 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 0
%20 = load i8, ptr %19, align 16
%21 = sext i8 %20 to i32
switch i32 %21, label %26 [
i32 99, label %22
i32 111, label %24
]
22: ; preds = %18
%23 = call i32 @printf(ptr noundef @.str.1)
br label %26
24: ; preds = %18
%25 = call i32 @printf(ptr noundef @.str.2)
br label %26
26: ; preds = %18, %24, %22
br label %36
27: ; preds = %14
%28 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 0
%29 = load i8, ptr %28, align 16
%30 = sext i8 %29 to i32
switch i32 %30, label %35 [
i32 111, label %31
i32 104, label %33
]
31: ; preds = %27
%32 = call i32 @printf(ptr noundef @.str.3)
br label %35
33: ; preds = %27
%34 = call i32 @printf(ptr noundef @.str.4)
br label %35
35: ; preds = %27, %33, %31
br label %36
36: ; preds = %14, %35, %26
br label %60
37: ; preds = %0
%38 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%39 = load i8, ptr %38, align 16
%40 = sext i8 %39 to i32
switch i32 %40, label %59 [
i32 105, label %41
i32 97, label %50
]
41: ; preds = %37
%42 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 2
%43 = load i8, ptr %42, align 2
%44 = sext i8 %43 to i32
switch i32 %44, label %49 [
i32 109, label %45
i32 114, label %47
]
45: ; preds = %41
%46 = call i32 @printf(ptr noundef @.str.5)
br label %49
47: ; preds = %41
%48 = call i32 @printf(ptr noundef @.str.6)
br label %49
49: ; preds = %41, %47, %45
br label %59
50: ; preds = %37
%51 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 0
%52 = load i8, ptr %51, align 16
%53 = sext i8 %52 to i32
switch i32 %53, label %58 [
i32 104, label %54
i32 111, label %56
]
54: ; preds = %50
%55 = call i32 @printf(ptr noundef @.str.7)
br label %58
56: ; preds = %50
%57 = call i32 @printf(ptr noundef @.str.8)
br label %58
58: ; preds = %50, %56, %54
br label %59
59: ; preds = %37, %58, %49
br label %60
60: ; preds = %0, %59, %36
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqmvo_60c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c" %s\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"aguia\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"pomba\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"homem\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"vaca\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"pulga\0A\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"lagarta\0A\00", align 1
@.str.7 = private unnamed_addr constant [13 x i8] c"sanguessuga\0A\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c"minhoca\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%3 = alloca [20 x i8], align 16
%4 = alloca [20 x i8], align 16
store i32 0, ptr %1, align 4
%5 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%7 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %7)
%9 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 0
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %9)
%11 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%12 = load i8, ptr %11, align 16
%13 = sext i8 %12 to i32
switch i32 %13, label %60 [
i32 118, label %14
i32 105, label %37
]
14: ; preds = %0
%15 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%16 = load i8, ptr %15, align 16
%17 = sext i8 %16 to i32
switch i32 %17, label %36 [
i32 97, label %18
i32 109, label %27
]
18: ; preds = %14
%19 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 0
%20 = load i8, ptr %19, align 16
%21 = sext i8 %20 to i32
switch i32 %21, label %26 [
i32 99, label %22
i32 111, label %24
]
22: ; preds = %18
%23 = call i32 @printf(ptr noundef @.str.1)
br label %26
24: ; preds = %18
%25 = call i32 @printf(ptr noundef @.str.2)
br label %26
26: ; preds = %24, %22, %18
br label %36
27: ; preds = %14
%28 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 0
%29 = load i8, ptr %28, align 16
%30 = sext i8 %29 to i32
switch i32 %30, label %35 [
i32 111, label %31
i32 104, label %33
]
31: ; preds = %27
%32 = call i32 @printf(ptr noundef @.str.3)
br label %35
33: ; preds = %27
%34 = call i32 @printf(ptr noundef @.str.4)
br label %35
35: ; preds = %33, %31, %27
br label %36
36: ; preds = %35, %26, %14
br label %60
37: ; preds = %0
%38 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%39 = load i8, ptr %38, align 16
%40 = sext i8 %39 to i32
switch i32 %40, label %59 [
i32 105, label %41
i32 97, label %50
]
41: ; preds = %37
%42 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 2
%43 = load i8, ptr %42, align 2
%44 = sext i8 %43 to i32
switch i32 %44, label %49 [
i32 109, label %45
i32 114, label %47
]
45: ; preds = %41
%46 = call i32 @printf(ptr noundef @.str.5)
br label %49
47: ; preds = %41
%48 = call i32 @printf(ptr noundef @.str.6)
br label %49
49: ; preds = %47, %45, %41
br label %59
50: ; preds = %37
%51 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 0
%52 = load i8, ptr %51, align 16
%53 = sext i8 %52 to i32
switch i32 %53, label %58 [
i32 104, label %54
i32 111, label %56
]
54: ; preds = %50
%55 = call i32 @printf(ptr noundef @.str.7)
br label %58
56: ; preds = %50
%57 = call i32 @printf(ptr noundef @.str.8)
br label %58
58: ; preds = %56, %54, %50
br label %59
59: ; preds = %58, %49, %37
br label %60
60: ; preds = %59, %36, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpck8q7rud.c'
source_filename = "/tmp/tmpck8q7rud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpck8q7rud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt52y4d51.c'
source_filename = "/tmp/tmpt52y4d51.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
store i32 1, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
store i32 0, ptr %4, align 4
%5 = call i32 (...) @abort() #2
unreachable
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt52y4d51.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
store i32 1, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
store i32 0, ptr %4, align 4
%5 = call i32 (...) @abort() #2
unreachable
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplw08y30b.c'
source_filename = "/tmp/tmplw08y30b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"6: Soda\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fraseseis(i8 noundef signext %0, i8 noundef signext %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i8 %0, ptr %3, align 1
store i8 %1, ptr %4, align 1
%5 = call i32 (...) @limpamlc()
%6 = load i8, ptr %3, align 1
%7 = call i32 @sprintf(i8 noundef signext %6, ptr noundef @.str)
%8 = load i8, ptr %3, align 1
%9 = call i32 @LCD_Out(i32 noundef 1, i32 noundef 5, i8 noundef signext %8)
%10 = load i8, ptr %4, align 1
%11 = call i32 @mostrapenter(i8 noundef signext %10)
ret void
}
declare i32 @limpamlc(...) #1
declare i32 @sprintf(i8 noundef signext, ptr noundef) #1
declare i32 @LCD_Out(i32 noundef, i32 noundef, i8 noundef signext) #1
declare i32 @mostrapenter(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplw08y30b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"6: Soda\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fraseseis(i8 noundef signext %0, i8 noundef signext %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i8 %0, ptr %3, align 1
store i8 %1, ptr %4, align 1
%5 = call i32 (...) @limpamlc()
%6 = load i8, ptr %3, align 1
%7 = call i32 @sprintf(i8 noundef signext %6, ptr noundef @.str)
%8 = load i8, ptr %3, align 1
%9 = call i32 @LCD_Out(i32 noundef 1, i32 noundef 5, i8 noundef signext %8)
%10 = load i8, ptr %4, align 1
%11 = call i32 @mostrapenter(i8 noundef signext %10)
ret void
}
declare i32 @limpamlc(...) #1
declare i32 @sprintf(i8 noundef signext, ptr noundef) #1
declare i32 @LCD_Out(i32 noundef, i32 noundef, i8 noundef signext) #1
declare i32 @mostrapenter(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptt18r9de.c'
source_filename = "/tmp/tmptt18r9de.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong 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 ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i64 @malloc(i32 noundef 2)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
store i8 10, ptr %10, align 1
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 1
store i8 0, ptr %12, align 1
br label %13
13: ; preds = %2, %13
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr @stdout, align 4
%16 = call i32 @fputs(ptr noundef %14, i32 noundef %15)
br label %13
}
declare i64 @malloc(i32 noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptt18r9de.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong 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 ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i64 @malloc(i32 noundef 2)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
store i8 10, ptr %10, align 1
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 1
store i8 0, ptr %12, align 1
br label %13
13: ; preds = %13, %2
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr @stdout, align 4
%16 = call i32 @fputs(ptr noundef %14, i32 noundef %15)
br label %13
}
declare i64 @malloc(i32 noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc_e8qr32.c'
source_filename = "/tmp/tmpc_e8qr32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @calc()
ret i32 0
}
declare i32 @calc(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc_e8qr32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @calc()
ret i32 0
}
declare i32 @calc(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp6kvzfpd.c'
source_filename = "/tmp/tmpp6kvzfpd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdscr = dso_local global ptr null, align 8
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_xcenter(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca float, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%13 = load ptr, ptr %5, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %17
15: ; preds = %4
%16 = load ptr, ptr @stdscr, align 8
store ptr %16, ptr %5, align 8
br label %17
17: ; preds = %15, %4
%18 = load ptr, ptr %5, align 8
%19 = call i32 @getmaxx(ptr noundef %18)
store i32 %19, ptr %11, align 4
%20 = load ptr, ptr %7, align 8
%21 = call i32 @strlen(ptr noundef %20)
store i32 %21, ptr %9, align 4
%22 = load i32, ptr %11, align 4
%23 = load i32, ptr %9, align 4
%24 = sub nsw i32 %22, %23
%25 = sdiv i32 %24, 2
%26 = sitofp i32 %25 to float
store float %26, ptr %12, align 4
%27 = load float, ptr %12, align 4
%28 = fptosi float %27 to i32
store i32 %28, ptr %10, align 4
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %8, align 4
%31 = call i32 @wattron(ptr noundef %29, i32 noundef %30)
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %10, align 4
%35 = load ptr, ptr %7, align 8
%36 = call i32 @mvwprintw(ptr noundef %32, i32 noundef %33, i32 noundef %34, ptr noundef @.str, ptr noundef %35)
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %8, align 4
%39 = call i32 @wattroff(ptr noundef %37, i32 noundef %38)
%40 = call i32 @move(i32 noundef 0, i32 noundef 0)
%41 = load ptr, ptr %5, align 8
%42 = call i32 @wrefresh(ptr noundef %41)
ret void
}
declare i32 @getmaxx(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @wattron(ptr noundef, i32 noundef) #1
declare i32 @mvwprintw(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @wattroff(ptr noundef, i32 noundef) #1
declare i32 @move(i32 noundef, i32 noundef) #1
declare i32 @wrefresh(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp6kvzfpd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdscr = dso_local global ptr null, align 8
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_xcenter(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca float, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%13 = load ptr, ptr %5, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %17
15: ; preds = %4
%16 = load ptr, ptr @stdscr, align 8
store ptr %16, ptr %5, align 8
br label %17
17: ; preds = %15, %4
%18 = load ptr, ptr %5, align 8
%19 = call i32 @getmaxx(ptr noundef %18)
store i32 %19, ptr %11, align 4
%20 = load ptr, ptr %7, align 8
%21 = call i32 @strlen(ptr noundef %20)
store i32 %21, ptr %9, align 4
%22 = load i32, ptr %11, align 4
%23 = load i32, ptr %9, align 4
%24 = sub nsw i32 %22, %23
%25 = sdiv i32 %24, 2
%26 = sitofp i32 %25 to float
store float %26, ptr %12, align 4
%27 = load float, ptr %12, align 4
%28 = fptosi float %27 to i32
store i32 %28, ptr %10, align 4
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %8, align 4
%31 = call i32 @wattron(ptr noundef %29, i32 noundef %30)
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %10, align 4
%35 = load ptr, ptr %7, align 8
%36 = call i32 @mvwprintw(ptr noundef %32, i32 noundef %33, i32 noundef %34, ptr noundef @.str, ptr noundef %35)
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %8, align 4
%39 = call i32 @wattroff(ptr noundef %37, i32 noundef %38)
%40 = call i32 @move(i32 noundef 0, i32 noundef 0)
%41 = load ptr, ptr %5, align 8
%42 = call i32 @wrefresh(ptr noundef %41)
ret void
}
declare i32 @getmaxx(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @wattron(ptr noundef, i32 noundef) #1
declare i32 @mvwprintw(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @wattroff(ptr noundef, i32 noundef) #1
declare i32 @move(i32 noundef, i32 noundef) #1
declare i32 @wrefresh(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp93f63ora.c'
source_filename = "/tmp/tmp93f63ora.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"tmp\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"error : %m\0A\00", align 1
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = load i32, ptr @O_RDWR, align 4
%5 = call i32 @open(ptr noundef @.str, i32 noundef %4, i32 noundef 438)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = call i32 @exit(i32 noundef -1) #3
unreachable
11: ; preds = %0
%12 = load i32, ptr %3, align 4
%13 = call i32 @ftruncate(i32 noundef %12, i32 noundef 4)
%14 = load i32, ptr @PROT_READ, align 4
%15 = load i32, ptr @PROT_WRITE, align 4
%16 = or i32 %14, %15
%17 = load i32, ptr @MAP_SHARED, align 4
%18 = load i32, ptr %3, align 4
%19 = call ptr @mmap(i32 noundef 0, i32 noundef 4, i32 noundef %16, i32 noundef %17, i32 noundef %18, i32 noundef 0)
store ptr %19, ptr %2, align 8
br label %20
20: ; preds = %11, %20
%21 = call i32 @sleep(i32 noundef 1)
%22 = load ptr, ptr %2, align 8
%23 = load i32, ptr %22, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
br label %20
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @ftruncate(i32 noundef, i32 noundef) #1
declare ptr @mmap(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp93f63ora.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"tmp\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"error : %m\0A\00", align 1
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = load i32, ptr @O_RDWR, align 4
%5 = call i32 @open(ptr noundef @.str, i32 noundef %4, i32 noundef 438)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = call i32 @exit(i32 noundef -1) #3
unreachable
11: ; preds = %0
%12 = load i32, ptr %3, align 4
%13 = call i32 @ftruncate(i32 noundef %12, i32 noundef 4)
%14 = load i32, ptr @PROT_READ, align 4
%15 = load i32, ptr @PROT_WRITE, align 4
%16 = or i32 %14, %15
%17 = load i32, ptr @MAP_SHARED, align 4
%18 = load i32, ptr %3, align 4
%19 = call ptr @mmap(i32 noundef 0, i32 noundef 4, i32 noundef %16, i32 noundef %17, i32 noundef %18, i32 noundef 0)
store ptr %19, ptr %2, align 8
br label %20
20: ; preds = %20, %11
%21 = call i32 @sleep(i32 noundef 1)
%22 = load ptr, ptr %2, align 8
%23 = load i32, ptr %22, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
br label %20
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @ftruncate(i32 noundef, i32 noundef) #1
declare ptr @mmap(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpetdz95su.c'
source_filename = "/tmp/tmpetdz95su.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ft_putstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @ft_strlen(ptr noundef %7)
%9 = call i32 @write(i32 noundef 1, ptr noundef %6, i32 noundef %8)
br label %10
10: ; preds = %5, %1
ret void
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @ft_strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpetdz95su.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ft_putstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @ft_strlen(ptr noundef %7)
%9 = call i32 @write(i32 noundef 1, ptr noundef %6, i32 noundef %8)
br label %10
10: ; preds = %5, %1
ret void
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @ft_strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpilggxk6y.c'
source_filename = "/tmp/tmpilggxk6y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpilggxk6y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpetnsokng.c'
source_filename = "/tmp/tmpetnsokng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sigintr_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @exit(i32 noundef 1) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpetnsokng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sigintr_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @exit(i32 noundef 1) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpun8pq0jg.c'
source_filename = "/tmp/tmpun8pq0jg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @string_contains_char(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %27, %2
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %6, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %30
15: ; preds = %7
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = load i8, ptr %5, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %21, %23
br i1 %24, label %25, label %26
25: ; preds = %15
store i32 1, ptr %3, align 4
br label %31
26: ; preds = %15
br label %27
27: ; preds = %26
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
br label %7, !llvm.loop !6
30: ; preds = %7
store i32 0, ptr %3, align 4
br label %31
31: ; preds = %30, %25
%32 = load i32, ptr %3, align 4
ret i32 %32
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpun8pq0jg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @string_contains_char(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %6, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %7, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph, label %36
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %26
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = load i8, ptr %5, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %20, %22
br i1 %23, label %24, label %25
24: ; preds = %14
store i32 1, ptr %3, align 4
br label %37
25: ; preds = %14
br label %26
26: ; preds = %25
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %34, 0
br i1 %35, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %36
36: ; preds = %._crit_edge, %2
store i32 0, ptr %3, align 4
br label %37
37: ; preds = %36, %24
%38 = load i32, ptr %3, align 4
ret i32 %38
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp5myw4x4z.c'
source_filename = "/tmp/tmp5myw4x4z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bubble_sort(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%15 = load ptr, ptr %5, align 8
store ptr %15, ptr %9, align 8
%16 = load i64, ptr %6, align 8
%17 = sub i64 %16, 1
%18 = trunc i64 %17 to i32
store i32 %18, ptr %13, align 4
br label %19
19: ; preds = %51, %4
%20 = load i32, ptr %13, align 4
%21 = icmp sgt i32 %20, 0
br i1 %21, label %22, label %53
22: ; preds = %19
store i32 0, ptr %14, align 4
store i32 0, ptr %12, align 4
br label %23
23: ; preds = %48, %22
%24 = load i32, ptr %12, align 4
%25 = load i32, ptr %13, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %51
27: ; preds = %23
%28 = load ptr, ptr %9, align 8
%29 = load i32, ptr %12, align 4
%30 = sext i32 %29 to i64
%31 = load i64, ptr %7, align 8
%32 = mul i64 %30, %31
%33 = getelementptr inbounds i8, ptr %28, i64 %32
store ptr %33, ptr %10, align 8
%34 = load ptr, ptr %10, align 8
%35 = load i64, ptr %7, align 8
%36 = getelementptr inbounds i8, ptr %34, i64 %35
store ptr %36, ptr %11, align 8
%37 = load ptr, ptr %10, align 8
%38 = load ptr, ptr %11, align 8
%39 = call i64 @compare_int(ptr noundef %37, ptr noundef %38)
%40 = icmp sgt i64 %39, 0
br i1 %40, label %41, label %47
41: ; preds = %27
%42 = load ptr, ptr %10, align 8
%43 = load ptr, ptr %11, align 8
%44 = load i64, ptr %7, align 8
%45 = call i32 @swap(ptr noundef %42, ptr noundef %43, i64 noundef %44)
%46 = load i32, ptr %12, align 4
store i32 %46, ptr %14, align 4
br label %47
47: ; preds = %41, %27
br label %48
48: ; preds = %47
%49 = load i32, ptr %12, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %12, align 4
br label %23, !llvm.loop !6
51: ; preds = %23
%52 = load i32, ptr %14, align 4
store i32 %52, ptr %13, align 4
br label %19, !llvm.loop !8
53: ; preds = %19
ret void
}
declare i64 @compare_int(ptr noundef, ptr noundef) #1
declare i32 @swap(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5myw4x4z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bubble_sort(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%15 = load ptr, ptr %5, align 8
store ptr %15, ptr %9, align 8
%16 = load i64, ptr %6, align 8
%17 = sub i64 %16, 1
%18 = trunc i64 %17 to i32
store i32 %18, ptr %13, align 4
%19 = load i32, ptr %13, align 4
%20 = icmp sgt i32 %19, 0
br i1 %20, label %.lr.ph2, label %56
.lr.ph2: ; preds = %4
br label %21
21: ; preds = %.lr.ph2, %52
store i32 0, ptr %14, align 4
store i32 0, ptr %12, align 4
%22 = load i32, ptr %12, align 4
%23 = load i32, ptr %13, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %.lr.ph, label %52
.lr.ph: ; preds = %21
br label %25
25: ; preds = %.lr.ph, %46
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr %12, align 4
%28 = sext i32 %27 to i64
%29 = load i64, ptr %7, align 8
%30 = mul i64 %28, %29
%31 = getelementptr inbounds i8, ptr %26, i64 %30
store ptr %31, ptr %10, align 8
%32 = load ptr, ptr %10, align 8
%33 = load i64, ptr %7, align 8
%34 = getelementptr inbounds i8, ptr %32, i64 %33
store ptr %34, ptr %11, align 8
%35 = load ptr, ptr %10, align 8
%36 = load ptr, ptr %11, align 8
%37 = call i64 @compare_int(ptr noundef %35, ptr noundef %36)
%38 = icmp sgt i64 %37, 0
br i1 %38, label %39, label %45
39: ; preds = %25
%40 = load ptr, ptr %10, align 8
%41 = load ptr, ptr %11, align 8
%42 = load i64, ptr %7, align 8
%43 = call i32 @swap(ptr noundef %40, ptr noundef %41, i64 noundef %42)
%44 = load i32, ptr %12, align 4
store i32 %44, ptr %14, align 4
br label %45
45: ; preds = %39, %25
br label %46
46: ; preds = %45
%47 = load i32, ptr %12, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %12, align 4
%49 = load i32, ptr %12, align 4
%50 = load i32, ptr %13, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %46
br label %52
52: ; preds = %._crit_edge, %21
%53 = load i32, ptr %14, align 4
store i32 %53, ptr %13, align 4
%54 = load i32, ptr %13, align 4
%55 = icmp sgt i32 %54, 0
br i1 %55, label %21, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %52
br label %56
56: ; preds = %._crit_edge3, %4
ret void
}
declare i64 @compare_int(ptr noundef, ptr noundef) #1
declare i32 @swap(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpzoaeyhbd.c'
source_filename = "/tmp/tmpzoaeyhbd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @gauss(float noundef %0, float noundef %1, float noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store float %0, ptr %4, align 4
store float %1, ptr %5, align 4
store float %2, ptr %6, align 4
%7 = load float, ptr %4, align 4
%8 = load float, ptr %5, align 4
%9 = fsub float %8, 1.000000e+00
%10 = fdiv float %9, 2.000000e+00
%11 = fsub float %7, %10
%12 = load float, ptr %6, align 4
%13 = load float, ptr %5, align 4
%14 = fsub float %13, 1.000000e+00
%15 = fmul float %12, %14
%16 = fdiv float %15, 2.000000e+00
%17 = fdiv float %11, %16
%18 = call float @powf(float noundef %17, float noundef 2.000000e+00) #2
%19 = fmul float -5.000000e-01, %18
%20 = call float @expf(float noundef %19) #2
ret float %20
}
; Function Attrs: nounwind
declare float @expf(float noundef) #1
; Function Attrs: nounwind
declare float @powf(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzoaeyhbd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @gauss(float noundef %0, float noundef %1, float noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store float %0, ptr %4, align 4
store float %1, ptr %5, align 4
store float %2, ptr %6, align 4
%7 = load float, ptr %4, align 4
%8 = load float, ptr %5, align 4
%9 = fsub float %8, 1.000000e+00
%10 = fdiv float %9, 2.000000e+00
%11 = fsub float %7, %10
%12 = load float, ptr %6, align 4
%13 = load float, ptr %5, align 4
%14 = fsub float %13, 1.000000e+00
%15 = fmul float %12, %14
%16 = fdiv float %15, 2.000000e+00
%17 = fdiv float %11, %16
%18 = call float @powf(float noundef %17, float noundef 2.000000e+00) #2
%19 = fmul float -5.000000e-01, %18
%20 = call float @expf(float noundef %19) #2
ret float %20
}
; Function Attrs: nounwind
declare float @expf(float noundef) #1
; Function Attrs: nounwind
declare float @powf(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgsape0zz.c'
source_filename = "/tmp/tmpgsape0zz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong 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 ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr (...) @pbc_new()
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
%12 = call i32 @test_des(ptr noundef %8, ptr noundef %11)
%13 = load ptr, ptr %6, align 8
%14 = call i32 @pbc_delete(ptr noundef %13)
ret i32 0
}
declare ptr @pbc_new(...) #1
declare i32 @test_des(ptr noundef, ptr noundef) #1
declare i32 @pbc_delete(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgsape0zz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong 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 ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr (...) @pbc_new()
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
%12 = call i32 @test_des(ptr noundef %8, ptr noundef %11)
%13 = load ptr, ptr %6, align 8
%14 = call i32 @pbc_delete(ptr noundef %13)
ret i32 0
}
declare ptr @pbc_new(...) #1
declare i32 @test_des(ptr noundef, ptr noundef) #1
declare i32 @pbc_delete(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp813_mxm5.c'
source_filename = "/tmp/tmp813_mxm5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @add_slash_to(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 2
%7 = call ptr @str_malloc(i64 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strcpy(ptr noundef %8, ptr noundef %9)
%11 = load ptr, ptr %3, align 8
%12 = call i32 @strcat(ptr noundef %11, ptr noundef @.str)
%13 = load ptr, ptr %3, align 8
ret ptr %13
}
declare ptr @str_malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp813_mxm5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @add_slash_to(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 2
%7 = call ptr @str_malloc(i64 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strcpy(ptr noundef %8, ptr noundef %9)
%11 = load ptr, ptr %3, align 8
%12 = call i32 @strcat(ptr noundef %11, ptr noundef @.str)
%13 = load ptr, ptr %3, align 8
ret ptr %13
}
declare ptr @str_malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4tbpmtrh.c'
source_filename = "/tmp/tmp4tbpmtrh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pollfd = type { i32, i32, i32 }
@POLLIN = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"short read\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @serial_recv(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.pollfd, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = getelementptr inbounds %struct.pollfd, ptr %3, i32 0, i32 0
%6 = load i32, ptr %2, align 4
store i32 %6, ptr %5, align 4
%7 = getelementptr inbounds %struct.pollfd, ptr %3, i32 0, i32 1
store i32 0, ptr %7, align 4
%8 = getelementptr inbounds %struct.pollfd, ptr %3, i32 0, i32 2
%9 = load i32, ptr @POLLIN, align 4
store i32 %9, ptr %8, align 4
%10 = call i32 @poll(ptr noundef %3, i32 noundef 1, i32 noundef 10000)
store i32 0, ptr %4, align 4
%11 = load i32, ptr %2, align 4
%12 = call i32 @read(i32 noundef %11, ptr noundef %4, i32 noundef 4)
%13 = icmp ne i32 %12, 4
br i1 %13, label %14, label %17
14: ; preds = %1
%15 = call i32 @printf(ptr noundef @.str)
%16 = call i32 @exit(i32 noundef 2) #3
unreachable
17: ; preds = %1
%18 = load i32, ptr %4, align 4
ret i32 %18
}
declare i32 @poll(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4tbpmtrh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pollfd = type { i32, i32, i32 }
@POLLIN = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"short read\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @serial_recv(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.pollfd, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = getelementptr inbounds %struct.pollfd, ptr %3, i32 0, i32 0
%6 = load i32, ptr %2, align 4
store i32 %6, ptr %5, align 4
%7 = getelementptr inbounds %struct.pollfd, ptr %3, i32 0, i32 1
store i32 0, ptr %7, align 4
%8 = getelementptr inbounds %struct.pollfd, ptr %3, i32 0, i32 2
%9 = load i32, ptr @POLLIN, align 4
store i32 %9, ptr %8, align 4
%10 = call i32 @poll(ptr noundef %3, i32 noundef 1, i32 noundef 10000)
store i32 0, ptr %4, align 4
%11 = load i32, ptr %2, align 4
%12 = call i32 @read(i32 noundef %11, ptr noundef %4, i32 noundef 4)
%13 = icmp ne i32 %12, 4
br i1 %13, label %14, label %17
14: ; preds = %1
%15 = call i32 @printf(ptr noundef @.str)
%16 = call i32 @exit(i32 noundef 2) #3
unreachable
17: ; preds = %1
%18 = load i32, ptr %4, align 4
ret i32 %18
}
declare i32 @poll(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq7lwdp7_.c'
source_filename = "/tmp/tmpq7lwdp7_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @SKP_Silk_LPC_inverse_pred_gain_Q13(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca [2 x [16 x i32]], align 16
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = and i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [2 x [16 x i32]], ptr %14, i64 0, i64 %20
%22 = getelementptr inbounds [16 x i32], ptr %21, i64 0, i64 0
store ptr %22, ptr %17, align 8
store i32 0, ptr %8, align 4
br label %23
23: ; preds = %39, %3
%24 = load i32, ptr %8, align 4
%25 = load i32, ptr %7, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %42
27: ; preds = %23
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i16, ptr %28, i64 %30
%32 = load i16, ptr %31, align 2
%33 = sext i16 %32 to i32
%34 = shl i32 %33, 3
%35 = load ptr, ptr %17, align 8
%36 = load i32, ptr %8, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
store i32 %34, ptr %38, align 4
br label %39
39: ; preds = %27
%40 = load i32, ptr %8, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %8, align 4
br label %23, !llvm.loop !6
42: ; preds = %23
%43 = load ptr, ptr %5, align 8
store i32 1073741824, ptr %43, align 4
%44 = load i32, ptr %7, align 4
%45 = sub nsw i32 %44, 1
store i32 %45, ptr %8, align 4
br label %46
46: ; preds = %148, %42
%47 = load i32, ptr %8, align 4
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %151
49: ; preds = %46
%50 = load ptr, ptr %17, align 8
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
%54 = load i32, ptr %53, align 4
%55 = icmp sgt i32 %54, 65520
br i1 %55, label %63, label %56
56: ; preds = %49
%57 = load ptr, ptr %17, align 8
%58 = load i32, ptr %8, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %57, i64 %59
%61 = load i32, ptr %60, align 4
%62 = icmp slt i32 %61, -65520
br i1 %62, label %63, label %64
63: ; preds = %56, %49
store i32 1, ptr %4, align 4
br label %186
64: ; preds = %56
%65 = load ptr, ptr %17, align 8
%66 = load i32, ptr %8, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i32, ptr %65, i64 %67
%69 = load i32, ptr %68, align 4
%70 = shl i32 %69, 15
%71 = sub nsw i32 0, %70
store i32 %71, ptr %11, align 4
%72 = load i32, ptr %11, align 4
%73 = sext i32 %72 to i64
%74 = load i32, ptr %11, align 4
%75 = sext i32 %74 to i64
%76 = mul nsw i64 %73, %75
%77 = ashr i64 %76, 32
%78 = trunc i64 %77 to i32
%79 = sub nsw i32 1073741823, %78
store i32 %79, ptr %12, align 4
%80 = load i32, ptr %12, align 4
%81 = call i32 @SKP_INVERSE32_varQ(i32 noundef %80, i32 noundef 46)
store i32 %81, ptr %13, align 4
%82 = load ptr, ptr %5, align 8
%83 = load i32, ptr %82, align 4
%84 = sext i32 %83 to i64
%85 = load i32, ptr %12, align 4
%86 = sext i32 %85 to i64
%87 = mul nsw i64 %84, %86
%88 = ashr i64 %87, 32
%89 = trunc i64 %88 to i32
%90 = shl i32 %89, 2
%91 = load ptr, ptr %5, align 8
store i32 %90, ptr %91, align 4
%92 = load ptr, ptr %17, align 8
store ptr %92, ptr %16, align 8
%93 = load i32, ptr %8, align 4
%94 = and i32 %93, 1
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [2 x [16 x i32]], ptr %14, i64 0, i64 %95
%97 = getelementptr inbounds [16 x i32], ptr %96, i64 0, i64 0
store ptr %97, ptr %17, align 8
%98 = load i32, ptr %13, align 4
%99 = call i32 @SKP_Silk_CLZ32(i32 noundef %98)
%100 = sub nsw i32 %99, 1
store i32 %100, ptr %10, align 4
%101 = load i32, ptr %13, align 4
%102 = load i32, ptr %10, align 4
%103 = shl i32 %101, %102
store i32 %103, ptr %13, align 4
store i32 0, ptr %9, align 4
br label %104
104: ; preds = %144, %64
%105 = load i32, ptr %9, align 4
%106 = load i32, ptr %8, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %108, label %147
108: ; preds = %104
%109 = load ptr, ptr %16, align 8
%110 = load i32, ptr %9, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i32, ptr %109, i64 %111
%113 = load i32, ptr %112, align 4
%114 = load ptr, ptr %16, align 8
%115 = load i32, ptr %8, align 4
%116 = load i32, ptr %9, align 4
%117 = sub nsw i32 %115, %116
%118 = sub nsw i32 %117, 1
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i32, ptr %114, i64 %119
%121 = load i32, ptr %120, align 4
%122 = sext i32 %121 to i64
%123 = load i32, ptr %11, align 4
%124 = sext i32 %123 to i64
%125 = mul nsw i64 %122, %124
%126 = ashr i64 %125, 32
%127 = trunc i64 %126 to i32
%128 = shl i32 %127, 1
%129 = sub nsw i32 %113, %128
store i32 %129, ptr %15, align 4
%130 = load i32, ptr %15, align 4
%131 = sext i32 %130 to i64
%132 = load i32, ptr %13, align 4
%133 = sext i32 %132 to i64
%134 = mul nsw i64 %131, %133
%135 = ashr i64 %134, 32
%136 = trunc i64 %135 to i32
%137 = load i32, ptr %10, align 4
%138 = sub nsw i32 16, %137
%139 = shl i32 %136, %138
%140 = load ptr, ptr %17, align 8
%141 = load i32, ptr %9, align 4
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds i32, ptr %140, i64 %142
store i32 %139, ptr %143, align 4
br label %144
144: ; preds = %108
%145 = load i32, ptr %9, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %9, align 4
br label %104, !llvm.loop !8
147: ; preds = %104
br label %148
148: ; preds = %147
%149 = load i32, ptr %8, align 4
%150 = add nsw i32 %149, -1
store i32 %150, ptr %8, align 4
br label %46, !llvm.loop !9
151: ; preds = %46
%152 = load ptr, ptr %17, align 8
%153 = getelementptr inbounds i32, ptr %152, i64 0
%154 = load i32, ptr %153, align 4
%155 = icmp sgt i32 %154, 65520
br i1 %155, label %161, label %156
156: ; preds = %151
%157 = load ptr, ptr %17, align 8
%158 = getelementptr inbounds i32, ptr %157, i64 0
%159 = load i32, ptr %158, align 4
%160 = icmp slt i32 %159, -65520
br i1 %160, label %161, label %162
161: ; preds = %156, %151
store i32 1, ptr %4, align 4
br label %186
162: ; preds = %156
%163 = load ptr, ptr %17, align 8
%164 = getelementptr inbounds i32, ptr %163, i64 0
%165 = load i32, ptr %164, align 4
%166 = shl i32 %165, 15
%167 = sub nsw i32 0, %166
store i32 %167, ptr %11, align 4
%168 = load i32, ptr %11, align 4
%169 = sext i32 %168 to i64
%170 = load i32, ptr %11, align 4
%171 = sext i32 %170 to i64
%172 = mul nsw i64 %169, %171
%173 = ashr i64 %172, 32
%174 = trunc i64 %173 to i32
%175 = sub nsw i32 1073741823, %174
store i32 %175, ptr %12, align 4
%176 = load ptr, ptr %5, align 8
%177 = load i32, ptr %176, align 4
%178 = sext i32 %177 to i64
%179 = load i32, ptr %12, align 4
%180 = sext i32 %179 to i64
%181 = mul nsw i64 %178, %180
%182 = ashr i64 %181, 32
%183 = trunc i64 %182 to i32
%184 = shl i32 %183, 2
%185 = load ptr, ptr %5, align 8
store i32 %184, ptr %185, align 4
store i32 0, ptr %4, align 4
br label %186
186: ; preds = %162, %161, %63
%187 = load i32, ptr %4, align 4
ret i32 %187
}
declare i32 @SKP_INVERSE32_varQ(i32 noundef, i32 noundef) #1
declare i32 @SKP_Silk_CLZ32(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq7lwdp7_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @SKP_Silk_LPC_inverse_pred_gain_Q13(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca [2 x [16 x i32]], align 16
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = and i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [2 x [16 x i32]], ptr %14, i64 0, i64 %20
%22 = getelementptr inbounds [16 x i32], ptr %21, i64 0, i64 0
store ptr %22, ptr %17, align 8
store i32 0, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %.lr.ph, label %44
.lr.ph: ; preds = %3
br label %26
26: ; preds = %.lr.ph, %38
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i16, ptr %27, i64 %29
%31 = load i16, ptr %30, align 2
%32 = sext i16 %31 to i32
%33 = shl i32 %32, 3
%34 = load ptr, ptr %17, align 8
%35 = load i32, ptr %8, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
store i32 %33, ptr %37, align 4
br label %38
38: ; preds = %26
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %8, align 4
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr %7, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %3
%45 = load ptr, ptr %5, align 8
store i32 1073741824, ptr %45, align 4
%46 = load i32, ptr %7, align 4
%47 = sub nsw i32 %46, 1
store i32 %47, ptr %8, align 4
%48 = load i32, ptr %8, align 4
%49 = icmp sgt i32 %48, 0
br i1 %49, label %.lr.ph5, label %156
.lr.ph5: ; preds = %44
br label %50
50: ; preds = %.lr.ph5, %151
%51 = load ptr, ptr %17, align 8
%52 = load i32, ptr %8, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %51, i64 %53
%55 = load i32, ptr %54, align 4
%56 = icmp sgt i32 %55, 65520
br i1 %56, label %64, label %57
57: ; preds = %50
%58 = load ptr, ptr %17, align 8
%59 = load i32, ptr %8, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %58, i64 %60
%62 = load i32, ptr %61, align 4
%63 = icmp slt i32 %62, -65520
br i1 %63, label %64, label %65
64: ; preds = %57, %50
store i32 1, ptr %4, align 4
br label %191
65: ; preds = %57
%66 = load ptr, ptr %17, align 8
%67 = load i32, ptr %8, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %66, i64 %68
%70 = load i32, ptr %69, align 4
%71 = shl i32 %70, 15
%72 = sub nsw i32 0, %71
store i32 %72, ptr %11, align 4
%73 = load i32, ptr %11, align 4
%74 = sext i32 %73 to i64
%75 = load i32, ptr %11, align 4
%76 = sext i32 %75 to i64
%77 = mul nsw i64 %74, %76
%78 = ashr i64 %77, 32
%79 = trunc i64 %78 to i32
%80 = sub nsw i32 1073741823, %79
store i32 %80, ptr %12, align 4
%81 = load i32, ptr %12, align 4
%82 = call i32 @SKP_INVERSE32_varQ(i32 noundef %81, i32 noundef 46)
store i32 %82, ptr %13, align 4
%83 = load ptr, ptr %5, align 8
%84 = load i32, ptr %83, align 4
%85 = sext i32 %84 to i64
%86 = load i32, ptr %12, align 4
%87 = sext i32 %86 to i64
%88 = mul nsw i64 %85, %87
%89 = ashr i64 %88, 32
%90 = trunc i64 %89 to i32
%91 = shl i32 %90, 2
%92 = load ptr, ptr %5, align 8
store i32 %91, ptr %92, align 4
%93 = load ptr, ptr %17, align 8
store ptr %93, ptr %16, align 8
%94 = load i32, ptr %8, align 4
%95 = and i32 %94, 1
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [2 x [16 x i32]], ptr %14, i64 0, i64 %96
%98 = getelementptr inbounds [16 x i32], ptr %97, i64 0, i64 0
store ptr %98, ptr %17, align 8
%99 = load i32, ptr %13, align 4
%100 = call i32 @SKP_Silk_CLZ32(i32 noundef %99)
%101 = sub nsw i32 %100, 1
store i32 %101, ptr %10, align 4
%102 = load i32, ptr %13, align 4
%103 = load i32, ptr %10, align 4
%104 = shl i32 %102, %103
store i32 %104, ptr %13, align 4
store i32 0, ptr %9, align 4
%105 = load i32, ptr %9, align 4
%106 = load i32, ptr %8, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %.lr.ph2, label %150
.lr.ph2: ; preds = %65
br label %108
108: ; preds = %.lr.ph2, %144
%109 = load ptr, ptr %16, align 8
%110 = load i32, ptr %9, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i32, ptr %109, i64 %111
%113 = load i32, ptr %112, align 4
%114 = load ptr, ptr %16, align 8
%115 = load i32, ptr %8, align 4
%116 = load i32, ptr %9, align 4
%117 = sub nsw i32 %115, %116
%118 = sub nsw i32 %117, 1
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i32, ptr %114, i64 %119
%121 = load i32, ptr %120, align 4
%122 = sext i32 %121 to i64
%123 = load i32, ptr %11, align 4
%124 = sext i32 %123 to i64
%125 = mul nsw i64 %122, %124
%126 = ashr i64 %125, 32
%127 = trunc i64 %126 to i32
%128 = shl i32 %127, 1
%129 = sub nsw i32 %113, %128
store i32 %129, ptr %15, align 4
%130 = load i32, ptr %15, align 4
%131 = sext i32 %130 to i64
%132 = load i32, ptr %13, align 4
%133 = sext i32 %132 to i64
%134 = mul nsw i64 %131, %133
%135 = ashr i64 %134, 32
%136 = trunc i64 %135 to i32
%137 = load i32, ptr %10, align 4
%138 = sub nsw i32 16, %137
%139 = shl i32 %136, %138
%140 = load ptr, ptr %17, align 8
%141 = load i32, ptr %9, align 4
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds i32, ptr %140, i64 %142
store i32 %139, ptr %143, align 4
br label %144
144: ; preds = %108
%145 = load i32, ptr %9, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %9, align 4
%147 = load i32, ptr %9, align 4
%148 = load i32, ptr %8, align 4
%149 = icmp slt i32 %147, %148
br i1 %149, label %108, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %144
br label %150
150: ; preds = %._crit_edge3, %65
br label %151
151: ; preds = %150
%152 = load i32, ptr %8, align 4
%153 = add nsw i32 %152, -1
store i32 %153, ptr %8, align 4
%154 = load i32, ptr %8, align 4
%155 = icmp sgt i32 %154, 0
br i1 %155, label %50, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %151
br label %156
156: ; preds = %._crit_edge6, %44
%157 = load ptr, ptr %17, align 8
%158 = getelementptr inbounds i32, ptr %157, i64 0
%159 = load i32, ptr %158, align 4
%160 = icmp sgt i32 %159, 65520
br i1 %160, label %166, label %161
161: ; preds = %156
%162 = load ptr, ptr %17, align 8
%163 = getelementptr inbounds i32, ptr %162, i64 0
%164 = load i32, ptr %163, align 4
%165 = icmp slt i32 %164, -65520
br i1 %165, label %166, label %167
166: ; preds = %161, %156
store i32 1, ptr %4, align 4
br label %191
167: ; preds = %161
%168 = load ptr, ptr %17, align 8
%169 = getelementptr inbounds i32, ptr %168, i64 0
%170 = load i32, ptr %169, align 4
%171 = shl i32 %170, 15
%172 = sub nsw i32 0, %171
store i32 %172, ptr %11, align 4
%173 = load i32, ptr %11, align 4
%174 = sext i32 %173 to i64
%175 = load i32, ptr %11, align 4
%176 = sext i32 %175 to i64
%177 = mul nsw i64 %174, %176
%178 = ashr i64 %177, 32
%179 = trunc i64 %178 to i32
%180 = sub nsw i32 1073741823, %179
store i32 %180, ptr %12, align 4
%181 = load ptr, ptr %5, align 8
%182 = load i32, ptr %181, align 4
%183 = sext i32 %182 to i64
%184 = load i32, ptr %12, align 4
%185 = sext i32 %184 to i64
%186 = mul nsw i64 %183, %185
%187 = ashr i64 %186, 32
%188 = trunc i64 %187 to i32
%189 = shl i32 %188, 2
%190 = load ptr, ptr %5, align 8
store i32 %189, ptr %190, align 4
store i32 0, ptr %4, align 4
br label %191
191: ; preds = %167, %166, %64
%192 = load i32, ptr %4, align 4
ret i32 %192
}
declare i32 @SKP_INVERSE32_varQ(i32 noundef, i32 noundef) #1
declare i32 @SKP_Silk_CLZ32(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpbb73hpt5.c'
source_filename = "/tmp/tmpbb73hpt5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AES_BLOCK_SIZE = dso_local global i32 0, align 4
@AES_ENCRYPT = dso_local global i32 0, align 4
@AES_DECRYPT = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"Encrypt+decrypt doesn't match\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [10 x i8] c"Plaintext\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Checktext\00", align 1
@.str.3 = private unnamed_addr constant [39 x i8] c"Chained encrypt+decrypt doesn't match\0A\00", align 1
@.str.4 = private unnamed_addr constant [47 x i8] c"Chained encrypt+chained decrypt doesn't match\0A\00", align 1
@.str.5 = private unnamed_addr constant [39 x i8] c"More than 51%% matches after garbling\0A\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"Garble extends backwards!\0A\00", align 1
@.str.7 = private unnamed_addr constant [52 x i8] c"More than 1%% matches after bidirectional garbling\0A\00", align 1
@.str.8 = private unnamed_addr constant [56 x i8] c"More than 1%% matches after bidirectional garbling (2)\0A\00", align 1
@.str.9 = private unnamed_addr constant [56 x i8] c"More than 1%% matches after bidirectional garbling (3)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong 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 [16 x i8], align 16
%7 = alloca [16 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [10240 x i8], align 16
%11 = alloca [10240 x i8], align 16
%12 = alloca [10240 x i8], align 16
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%19 = load i32, ptr @AES_BLOCK_SIZE, align 4
%20 = mul nsw i32 %19, 4
%21 = zext i32 %20 to i64
%22 = call ptr @llvm.stacksave()
store ptr %22, ptr %13, align 8
%23 = alloca i8, i64 %21, align 16
store i64 %21, ptr %14, align 8
%24 = load i32, ptr @AES_BLOCK_SIZE, align 4
%25 = mul nsw i32 %24, 4
%26 = zext i32 %25 to i64
%27 = alloca i8, i64 %26, align 16
store i64 %26, ptr %15, align 8
store i32 0, ptr %16, align 4
%28 = call i32 @assert(i32 noundef 1)
%29 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%30 = call i32 @RAND_pseudo_bytes(ptr noundef %29, i32 noundef 16)
%31 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%32 = call i32 @RAND_pseudo_bytes(ptr noundef %31, i32 noundef 10240)
%33 = trunc i64 %21 to i32
%34 = call i32 @RAND_pseudo_bytes(ptr noundef %23, i32 noundef %33)
%35 = trunc i64 %26 to i32
%36 = call i32 @memcpy(ptr noundef %27, ptr noundef %23, i32 noundef %35)
%37 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%38 = call i32 @AES_set_encrypt_key(ptr noundef %37, i32 noundef 128, ptr noundef %8)
%39 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%40 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%41 = load i32, ptr @AES_ENCRYPT, align 4
%42 = call i32 @AES_ige_encrypt(ptr noundef %39, ptr noundef %40, i32 noundef 128, ptr noundef %8, ptr noundef %23, i32 noundef %41)
%43 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%44 = call i32 @AES_set_decrypt_key(ptr noundef %43, i32 noundef 128, ptr noundef %8)
%45 = trunc i64 %21 to i32
%46 = call i32 @memcpy(ptr noundef %23, ptr noundef %27, i32 noundef %45)
%47 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%48 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%49 = load i32, ptr @AES_DECRYPT, align 4
%50 = call i32 @AES_ige_encrypt(ptr noundef %47, ptr noundef %48, i32 noundef 128, ptr noundef %8, ptr noundef %23, i32 noundef %49)
%51 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%52 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%53 = call i64 @memcmp(ptr noundef %51, ptr noundef %52, i32 noundef 128)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %65
55: ; preds = %2
%56 = call i32 @printf(ptr noundef @.str)
%57 = load i32, ptr @stdout, align 4
%58 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%59 = call i32 @hexdump(i32 noundef %57, ptr noundef @.str.1, ptr noundef %58, i32 noundef 128)
%60 = load i32, ptr @stdout, align 4
%61 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%62 = call i32 @hexdump(i32 noundef %60, ptr noundef @.str.2, ptr noundef %61, i32 noundef 128)
%63 = load i32, ptr %16, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %16, align 4
br label %65
65: ; preds = %55, %2
%66 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%67 = call i32 @AES_set_encrypt_key(ptr noundef %66, i32 noundef 128, ptr noundef %8)
%68 = trunc i64 %21 to i32
%69 = call i32 @memcpy(ptr noundef %23, ptr noundef %27, i32 noundef %68)
%70 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%71 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%72 = load i32, ptr @AES_ENCRYPT, align 4
%73 = call i32 @AES_ige_encrypt(ptr noundef %70, ptr noundef %71, i32 noundef 64, ptr noundef %8, ptr noundef %23, i32 noundef %72)
%74 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%75 = getelementptr inbounds i8, ptr %74, i64 64
%76 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%77 = getelementptr inbounds i8, ptr %76, i64 64
%78 = load i32, ptr @AES_ENCRYPT, align 4
%79 = call i32 @AES_ige_encrypt(ptr noundef %75, ptr noundef %77, i32 noundef 64, ptr noundef %8, ptr noundef %23, i32 noundef %78)
%80 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%81 = call i32 @AES_set_decrypt_key(ptr noundef %80, i32 noundef 128, ptr noundef %8)
%82 = trunc i64 %21 to i32
%83 = call i32 @memcpy(ptr noundef %23, ptr noundef %27, i32 noundef %82)
%84 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%85 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%86 = load i32, ptr @AES_DECRYPT, align 4
%87 = call i32 @AES_ige_encrypt(ptr noundef %84, ptr noundef %85, i32 noundef 128, ptr noundef %8, ptr noundef %23, i32 noundef %86)
%88 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%89 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%90 = call i64 @memcmp(ptr noundef %88, ptr noundef %89, i32 noundef 128)
%91 = icmp ne i64 %90, 0
br i1 %91, label %92, label %102
92: ; preds = %65
%93 = call i32 @printf(ptr noundef @.str.3)
%94 = load i32, ptr @stdout, align 4
%95 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%96 = call i32 @hexdump(i32 noundef %94, ptr noundef @.str.1, ptr noundef %95, i32 noundef 128)
%97 = load i32, ptr @stdout, align 4
%98 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%99 = call i32 @hexdump(i32 noundef %97, ptr noundef @.str.2, ptr noundef %98, i32 noundef 128)
%100 = load i32, ptr %16, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %16, align 4
br label %102
102: ; preds = %92, %65
%103 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%104 = call i32 @AES_set_encrypt_key(ptr noundef %103, i32 noundef 128, ptr noundef %8)
%105 = trunc i64 %21 to i32
%106 = call i32 @memcpy(ptr noundef %23, ptr noundef %27, i32 noundef %105)
%107 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%108 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%109 = load i32, ptr @AES_ENCRYPT, align 4
%110 = call i32 @AES_ige_encrypt(ptr noundef %107, ptr noundef %108, i32 noundef 64, ptr noundef %8, ptr noundef %23, i32 noundef %109)
%111 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%112 = getelementptr inbounds i8, ptr %111, i64 64
%113 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%114 = getelementptr inbounds i8, ptr %113, i64 64
%115 = load i32, ptr @AES_ENCRYPT, align 4
%116 = call i32 @AES_ige_encrypt(ptr noundef %112, ptr noundef %114, i32 noundef 64, ptr noundef %8, ptr noundef %23, i32 noundef %115)
%117 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%118 = call i32 @AES_set_decrypt_key(ptr noundef %117, i32 noundef 128, ptr noundef %8)
%119 = trunc i64 %21 to i32
%120 = call i32 @memcpy(ptr noundef %23, ptr noundef %27, i32 noundef %119)
%121 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%122 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%123 = load i32, ptr @AES_DECRYPT, align 4
%124 = call i32 @AES_ige_encrypt(ptr noundef %121, ptr noundef %122, i32 noundef 64, ptr noundef %8, ptr noundef %23, i32 noundef %123)
%125 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%126 = getelementptr inbounds i8, ptr %125, i64 64
%127 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%128 = getelementptr inbounds i8, ptr %127, i64 64
%129 = load i32, ptr @AES_DECRYPT, align 4
%130 = call i32 @AES_ige_encrypt(ptr noundef %126, ptr noundef %128, i32 noundef 64, ptr noundef %8, ptr noundef %23, i32 noundef %129)
%131 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%132 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%133 = call i64 @memcmp(ptr noundef %131, ptr noundef %132, i32 noundef 128)
%134 = icmp ne i64 %133, 0
br i1 %134, label %135, label %145
135: ; preds = %102
%136 = call i32 @printf(ptr noundef @.str.4)
%137 = load i32, ptr @stdout, align 4
%138 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%139 = call i32 @hexdump(i32 noundef %137, ptr noundef @.str.1, ptr noundef %138, i32 noundef 128)
%140 = load i32, ptr @stdout, align 4
%141 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%142 = call i32 @hexdump(i32 noundef %140, ptr noundef @.str.2, ptr noundef %141, i32 noundef 128)
%143 = load i32, ptr %16, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %16, align 4
br label %145
145: ; preds = %135, %102
%146 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%147 = call i32 @AES_set_encrypt_key(ptr noundef %146, i32 noundef 128, ptr noundef %8)
%148 = trunc i64 %21 to i32
%149 = call i32 @memcpy(ptr noundef %23, ptr noundef %27, i32 noundef %148)
%150 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%151 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%152 = load i32, ptr @AES_ENCRYPT, align 4
%153 = call i32 @AES_ige_encrypt(ptr noundef %150, ptr noundef %151, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %152)
%154 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 5120
%155 = load i8, ptr %154, align 16
%156 = add i8 %155, 1
store i8 %156, ptr %154, align 16
%157 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%158 = call i32 @AES_set_decrypt_key(ptr noundef %157, i32 noundef 128, ptr noundef %8)
%159 = trunc i64 %21 to i32
%160 = call i32 @memcpy(ptr noundef %23, ptr noundef %27, i32 noundef %159)
%161 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%162 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%163 = load i32, ptr @AES_DECRYPT, align 4
%164 = call i32 @AES_ige_encrypt(ptr noundef %161, ptr noundef %162, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %163)
store i32 0, ptr %18, align 4
store i32 0, ptr %17, align 4
br label %165
165: ; preds = %185, %145
%166 = load i32, ptr %17, align 4
%167 = zext i32 %166 to i64
%168 = icmp ult i64 %167, 10240
br i1 %168, label %169, label %188
169: ; preds = %165
%170 = load i32, ptr %17, align 4
%171 = zext i32 %170 to i64
%172 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 %171
%173 = load i8, ptr %172, align 1
%174 = zext i8 %173 to i32
%175 = load i32, ptr %17, align 4
%176 = zext i32 %175 to i64
%177 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 %176
%178 = load i8, ptr %177, align 1
%179 = zext i8 %178 to i32
%180 = icmp eq i32 %174, %179
br i1 %180, label %181, label %184
181: ; preds = %169
%182 = load i32, ptr %18, align 4
%183 = add i32 %182, 1
store i32 %183, ptr %18, align 4
br label %184
184: ; preds = %181, %169
br label %185
185: ; preds = %184
%186 = load i32, ptr %17, align 4
%187 = add i32 %186, 1
store i32 %187, ptr %17, align 4
br label %165, !llvm.loop !6
188: ; preds = %165
%189 = load i32, ptr %18, align 4
%190 = zext i32 %189 to i64
%191 = icmp ugt i64 %190, 5222
br i1 %191, label %192, label %196
192: ; preds = %188
%193 = call i32 @printf(ptr noundef @.str.5)
%194 = load i32, ptr %16, align 4
%195 = add nsw i32 %194, 1
store i32 %195, ptr %16, align 4
br label %196
196: ; preds = %192, %188
%197 = load i32, ptr %18, align 4
%198 = zext i32 %197 to i64
%199 = icmp ult i64 %198, 5120
br i1 %199, label %200, label %204
200: ; preds = %196
%201 = call i32 @printf(ptr noundef @.str.6)
%202 = load i32, ptr %16, align 4
%203 = add nsw i32 %202, 1
store i32 %203, ptr %16, align 4
br label %204
204: ; preds = %200, %196
%205 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%206 = call i32 @RAND_pseudo_bytes(ptr noundef %205, i32 noundef 16)
%207 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%208 = call i32 @AES_set_encrypt_key(ptr noundef %207, i32 noundef 128, ptr noundef %8)
%209 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%210 = call i32 @AES_set_encrypt_key(ptr noundef %209, i32 noundef 128, ptr noundef %9)
%211 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%212 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%213 = load i32, ptr @AES_ENCRYPT, align 4
%214 = call i32 @AES_bi_ige_encrypt(ptr noundef %211, ptr noundef %212, i32 noundef 128, ptr noundef %8, ptr noundef %9, ptr noundef %23, i32 noundef %213)
%215 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%216 = call i32 @AES_set_decrypt_key(ptr noundef %215, i32 noundef 128, ptr noundef %8)
%217 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%218 = call i32 @AES_set_decrypt_key(ptr noundef %217, i32 noundef 128, ptr noundef %9)
%219 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%220 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%221 = load i32, ptr @AES_DECRYPT, align 4
%222 = call i32 @AES_bi_ige_encrypt(ptr noundef %219, ptr noundef %220, i32 noundef 128, ptr noundef %8, ptr noundef %9, ptr noundef %23, i32 noundef %221)
%223 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%224 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%225 = call i64 @memcmp(ptr noundef %223, ptr noundef %224, i32 noundef 128)
%226 = icmp ne i64 %225, 0
br i1 %226, label %227, label %237
227: ; preds = %204
%228 = call i32 @printf(ptr noundef @.str)
%229 = load i32, ptr @stdout, align 4
%230 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%231 = call i32 @hexdump(i32 noundef %229, ptr noundef @.str.1, ptr noundef %230, i32 noundef 128)
%232 = load i32, ptr @stdout, align 4
%233 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%234 = call i32 @hexdump(i32 noundef %232, ptr noundef @.str.2, ptr noundef %233, i32 noundef 128)
%235 = load i32, ptr %16, align 4
%236 = add nsw i32 %235, 1
store i32 %236, ptr %16, align 4
br label %237
237: ; preds = %227, %204
%238 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%239 = call i32 @AES_set_encrypt_key(ptr noundef %238, i32 noundef 128, ptr noundef %8)
%240 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%241 = call i32 @AES_set_encrypt_key(ptr noundef %240, i32 noundef 128, ptr noundef %9)
%242 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%243 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%244 = load i32, ptr @AES_ENCRYPT, align 4
%245 = call i32 @AES_ige_encrypt(ptr noundef %242, ptr noundef %243, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %244)
%246 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 5120
%247 = load i8, ptr %246, align 16
%248 = add i8 %247, 1
store i8 %248, ptr %246, align 16
%249 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%250 = call i32 @AES_set_decrypt_key(ptr noundef %249, i32 noundef 128, ptr noundef %8)
%251 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%252 = call i32 @AES_set_decrypt_key(ptr noundef %251, i32 noundef 128, ptr noundef %9)
%253 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%254 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%255 = load i32, ptr @AES_DECRYPT, align 4
%256 = call i32 @AES_ige_encrypt(ptr noundef %253, ptr noundef %254, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %255)
store i32 0, ptr %18, align 4
store i32 0, ptr %17, align 4
br label %257
257: ; preds = %277, %237
%258 = load i32, ptr %17, align 4
%259 = zext i32 %258 to i64
%260 = icmp ult i64 %259, 10240
br i1 %260, label %261, label %280
261: ; preds = %257
%262 = load i32, ptr %17, align 4
%263 = zext i32 %262 to i64
%264 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 %263
%265 = load i8, ptr %264, align 1
%266 = zext i8 %265 to i32
%267 = load i32, ptr %17, align 4
%268 = zext i32 %267 to i64
%269 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 %268
%270 = load i8, ptr %269, align 1
%271 = zext i8 %270 to i32
%272 = icmp eq i32 %266, %271
br i1 %272, label %273, label %276
273: ; preds = %261
%274 = load i32, ptr %18, align 4
%275 = add i32 %274, 1
store i32 %275, ptr %18, align 4
br label %276
276: ; preds = %273, %261
br label %277
277: ; preds = %276
%278 = load i32, ptr %17, align 4
%279 = add i32 %278, 1
store i32 %279, ptr %17, align 4
br label %257, !llvm.loop !8
280: ; preds = %257
%281 = load i32, ptr %18, align 4
%282 = zext i32 %281 to i64
%283 = icmp ugt i64 %282, 102
br i1 %283, label %284, label %288
284: ; preds = %280
%285 = call i32 @printf(ptr noundef @.str.7)
%286 = load i32, ptr %16, align 4
%287 = add nsw i32 %286, 1
store i32 %287, ptr %16, align 4
br label %288
288: ; preds = %284, %280
%289 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%290 = call i32 @AES_set_encrypt_key(ptr noundef %289, i32 noundef 128, ptr noundef %8)
%291 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%292 = call i32 @AES_set_encrypt_key(ptr noundef %291, i32 noundef 128, ptr noundef %9)
%293 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%294 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%295 = load i32, ptr @AES_ENCRYPT, align 4
%296 = call i32 @AES_ige_encrypt(ptr noundef %293, ptr noundef %294, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %295)
%297 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 10239
%298 = load i8, ptr %297, align 1
%299 = add i8 %298, 1
store i8 %299, ptr %297, align 1
%300 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%301 = call i32 @AES_set_decrypt_key(ptr noundef %300, i32 noundef 128, ptr noundef %8)
%302 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%303 = call i32 @AES_set_decrypt_key(ptr noundef %302, i32 noundef 128, ptr noundef %9)
%304 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%305 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%306 = load i32, ptr @AES_DECRYPT, align 4
%307 = call i32 @AES_ige_encrypt(ptr noundef %304, ptr noundef %305, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %306)
store i32 0, ptr %18, align 4
store i32 0, ptr %17, align 4
br label %308
308: ; preds = %328, %288
%309 = load i32, ptr %17, align 4
%310 = zext i32 %309 to i64
%311 = icmp ult i64 %310, 10240
br i1 %311, label %312, label %331
312: ; preds = %308
%313 = load i32, ptr %17, align 4
%314 = zext i32 %313 to i64
%315 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 %314
%316 = load i8, ptr %315, align 1
%317 = zext i8 %316 to i32
%318 = load i32, ptr %17, align 4
%319 = zext i32 %318 to i64
%320 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 %319
%321 = load i8, ptr %320, align 1
%322 = zext i8 %321 to i32
%323 = icmp eq i32 %317, %322
br i1 %323, label %324, label %327
324: ; preds = %312
%325 = load i32, ptr %18, align 4
%326 = add i32 %325, 1
store i32 %326, ptr %18, align 4
br label %327
327: ; preds = %324, %312
br label %328
328: ; preds = %327
%329 = load i32, ptr %17, align 4
%330 = add i32 %329, 1
store i32 %330, ptr %17, align 4
br label %308, !llvm.loop !9
331: ; preds = %308
%332 = load i32, ptr %18, align 4
%333 = zext i32 %332 to i64
%334 = icmp ugt i64 %333, 102
br i1 %334, label %335, label %339
335: ; preds = %331
%336 = call i32 @printf(ptr noundef @.str.8)
%337 = load i32, ptr %16, align 4
%338 = add nsw i32 %337, 1
store i32 %338, ptr %16, align 4
br label %339
339: ; preds = %335, %331
%340 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%341 = call i32 @AES_set_encrypt_key(ptr noundef %340, i32 noundef 128, ptr noundef %8)
%342 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%343 = call i32 @AES_set_encrypt_key(ptr noundef %342, i32 noundef 128, ptr noundef %9)
%344 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%345 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%346 = load i32, ptr @AES_ENCRYPT, align 4
%347 = call i32 @AES_ige_encrypt(ptr noundef %344, ptr noundef %345, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %346)
%348 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%349 = load i8, ptr %348, align 16
%350 = add i8 %349, 1
store i8 %350, ptr %348, align 16
%351 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%352 = call i32 @AES_set_decrypt_key(ptr noundef %351, i32 noundef 128, ptr noundef %8)
%353 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%354 = call i32 @AES_set_decrypt_key(ptr noundef %353, i32 noundef 128, ptr noundef %9)
%355 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%356 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%357 = load i32, ptr @AES_DECRYPT, align 4
%358 = call i32 @AES_ige_encrypt(ptr noundef %355, ptr noundef %356, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %357)
store i32 0, ptr %18, align 4
store i32 0, ptr %17, align 4
br label %359
359: ; preds = %379, %339
%360 = load i32, ptr %17, align 4
%361 = zext i32 %360 to i64
%362 = icmp ult i64 %361, 10240
br i1 %362, label %363, label %382
363: ; preds = %359
%364 = load i32, ptr %17, align 4
%365 = zext i32 %364 to i64
%366 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 %365
%367 = load i8, ptr %366, align 1
%368 = zext i8 %367 to i32
%369 = load i32, ptr %17, align 4
%370 = zext i32 %369 to i64
%371 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 %370
%372 = load i8, ptr %371, align 1
%373 = zext i8 %372 to i32
%374 = icmp eq i32 %368, %373
br i1 %374, label %375, label %378
375: ; preds = %363
%376 = load i32, ptr %18, align 4
%377 = add i32 %376, 1
store i32 %377, ptr %18, align 4
br label %378
378: ; preds = %375, %363
br label %379
379: ; preds = %378
%380 = load i32, ptr %17, align 4
%381 = add i32 %380, 1
store i32 %381, ptr %17, align 4
br label %359, !llvm.loop !10
382: ; preds = %359
%383 = load i32, ptr %18, align 4
%384 = zext i32 %383 to i64
%385 = icmp ugt i64 %384, 102
br i1 %385, label %386, label %390
386: ; preds = %382
%387 = call i32 @printf(ptr noundef @.str.9)
%388 = load i32, ptr %16, align 4
%389 = add nsw i32 %388, 1
store i32 %389, ptr %16, align 4
br label %390
390: ; preds = %386, %382
%391 = call i64 (...) @run_test_vectors()
%392 = load i32, ptr %16, align 4
%393 = sext i32 %392 to i64
%394 = add nsw i64 %393, %391
%395 = trunc i64 %394 to i32
store i32 %395, ptr %16, align 4
%396 = load i32, ptr %16, align 4
store i32 %396, ptr %3, align 4
%397 = load ptr, ptr %13, align 8
call void @llvm.stackrestore(ptr %397)
%398 = load i32, ptr %3, align 4
ret i32 %398
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @assert(i32 noundef) #2
declare i32 @RAND_pseudo_bytes(ptr noundef, i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @AES_set_encrypt_key(ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @AES_ige_encrypt(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @AES_set_decrypt_key(ptr noundef, i32 noundef, ptr noundef) #2
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
declare i32 @hexdump(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @AES_bi_ige_encrypt(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @run_test_vectors(...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 }
attributes #2 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbb73hpt5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AES_BLOCK_SIZE = dso_local global i32 0, align 4
@AES_ENCRYPT = dso_local global i32 0, align 4
@AES_DECRYPT = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"Encrypt+decrypt doesn't match\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [10 x i8] c"Plaintext\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Checktext\00", align 1
@.str.3 = private unnamed_addr constant [39 x i8] c"Chained encrypt+decrypt doesn't match\0A\00", align 1
@.str.4 = private unnamed_addr constant [47 x i8] c"Chained encrypt+chained decrypt doesn't match\0A\00", align 1
@.str.5 = private unnamed_addr constant [39 x i8] c"More than 51%% matches after garbling\0A\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"Garble extends backwards!\0A\00", align 1
@.str.7 = private unnamed_addr constant [52 x i8] c"More than 1%% matches after bidirectional garbling\0A\00", align 1
@.str.8 = private unnamed_addr constant [56 x i8] c"More than 1%% matches after bidirectional garbling (2)\0A\00", align 1
@.str.9 = private unnamed_addr constant [56 x i8] c"More than 1%% matches after bidirectional garbling (3)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong 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 [16 x i8], align 16
%7 = alloca [16 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [10240 x i8], align 16
%11 = alloca [10240 x i8], align 16
%12 = alloca [10240 x i8], align 16
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%19 = load i32, ptr @AES_BLOCK_SIZE, align 4
%20 = mul nsw i32 %19, 4
%21 = zext i32 %20 to i64
%22 = call ptr @llvm.stacksave()
store ptr %22, ptr %13, align 8
%23 = alloca i8, i64 %21, align 16
store i64 %21, ptr %14, align 8
%24 = load i32, ptr @AES_BLOCK_SIZE, align 4
%25 = mul nsw i32 %24, 4
%26 = zext i32 %25 to i64
%27 = alloca i8, i64 %26, align 16
store i64 %26, ptr %15, align 8
store i32 0, ptr %16, align 4
%28 = call i32 @assert(i32 noundef 1)
%29 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%30 = call i32 @RAND_pseudo_bytes(ptr noundef %29, i32 noundef 16)
%31 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%32 = call i32 @RAND_pseudo_bytes(ptr noundef %31, i32 noundef 10240)
%33 = trunc i64 %21 to i32
%34 = call i32 @RAND_pseudo_bytes(ptr noundef %23, i32 noundef %33)
%35 = trunc i64 %26 to i32
%36 = call i32 @memcpy(ptr noundef %27, ptr noundef %23, i32 noundef %35)
%37 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%38 = call i32 @AES_set_encrypt_key(ptr noundef %37, i32 noundef 128, ptr noundef %8)
%39 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%40 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%41 = load i32, ptr @AES_ENCRYPT, align 4
%42 = call i32 @AES_ige_encrypt(ptr noundef %39, ptr noundef %40, i32 noundef 128, ptr noundef %8, ptr noundef %23, i32 noundef %41)
%43 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%44 = call i32 @AES_set_decrypt_key(ptr noundef %43, i32 noundef 128, ptr noundef %8)
%45 = trunc i64 %21 to i32
%46 = call i32 @memcpy(ptr noundef %23, ptr noundef %27, i32 noundef %45)
%47 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%48 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%49 = load i32, ptr @AES_DECRYPT, align 4
%50 = call i32 @AES_ige_encrypt(ptr noundef %47, ptr noundef %48, i32 noundef 128, ptr noundef %8, ptr noundef %23, i32 noundef %49)
%51 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%52 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%53 = call i64 @memcmp(ptr noundef %51, ptr noundef %52, i32 noundef 128)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %65
55: ; preds = %2
%56 = call i32 @printf(ptr noundef @.str)
%57 = load i32, ptr @stdout, align 4
%58 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%59 = call i32 @hexdump(i32 noundef %57, ptr noundef @.str.1, ptr noundef %58, i32 noundef 128)
%60 = load i32, ptr @stdout, align 4
%61 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%62 = call i32 @hexdump(i32 noundef %60, ptr noundef @.str.2, ptr noundef %61, i32 noundef 128)
%63 = load i32, ptr %16, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %16, align 4
br label %65
65: ; preds = %55, %2
%66 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%67 = call i32 @AES_set_encrypt_key(ptr noundef %66, i32 noundef 128, ptr noundef %8)
%68 = trunc i64 %21 to i32
%69 = call i32 @memcpy(ptr noundef %23, ptr noundef %27, i32 noundef %68)
%70 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%71 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%72 = load i32, ptr @AES_ENCRYPT, align 4
%73 = call i32 @AES_ige_encrypt(ptr noundef %70, ptr noundef %71, i32 noundef 64, ptr noundef %8, ptr noundef %23, i32 noundef %72)
%74 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%75 = getelementptr inbounds i8, ptr %74, i64 64
%76 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%77 = getelementptr inbounds i8, ptr %76, i64 64
%78 = load i32, ptr @AES_ENCRYPT, align 4
%79 = call i32 @AES_ige_encrypt(ptr noundef %75, ptr noundef %77, i32 noundef 64, ptr noundef %8, ptr noundef %23, i32 noundef %78)
%80 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%81 = call i32 @AES_set_decrypt_key(ptr noundef %80, i32 noundef 128, ptr noundef %8)
%82 = trunc i64 %21 to i32
%83 = call i32 @memcpy(ptr noundef %23, ptr noundef %27, i32 noundef %82)
%84 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%85 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%86 = load i32, ptr @AES_DECRYPT, align 4
%87 = call i32 @AES_ige_encrypt(ptr noundef %84, ptr noundef %85, i32 noundef 128, ptr noundef %8, ptr noundef %23, i32 noundef %86)
%88 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%89 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%90 = call i64 @memcmp(ptr noundef %88, ptr noundef %89, i32 noundef 128)
%91 = icmp ne i64 %90, 0
br i1 %91, label %92, label %102
92: ; preds = %65
%93 = call i32 @printf(ptr noundef @.str.3)
%94 = load i32, ptr @stdout, align 4
%95 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%96 = call i32 @hexdump(i32 noundef %94, ptr noundef @.str.1, ptr noundef %95, i32 noundef 128)
%97 = load i32, ptr @stdout, align 4
%98 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%99 = call i32 @hexdump(i32 noundef %97, ptr noundef @.str.2, ptr noundef %98, i32 noundef 128)
%100 = load i32, ptr %16, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %16, align 4
br label %102
102: ; preds = %92, %65
%103 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%104 = call i32 @AES_set_encrypt_key(ptr noundef %103, i32 noundef 128, ptr noundef %8)
%105 = trunc i64 %21 to i32
%106 = call i32 @memcpy(ptr noundef %23, ptr noundef %27, i32 noundef %105)
%107 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%108 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%109 = load i32, ptr @AES_ENCRYPT, align 4
%110 = call i32 @AES_ige_encrypt(ptr noundef %107, ptr noundef %108, i32 noundef 64, ptr noundef %8, ptr noundef %23, i32 noundef %109)
%111 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%112 = getelementptr inbounds i8, ptr %111, i64 64
%113 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%114 = getelementptr inbounds i8, ptr %113, i64 64
%115 = load i32, ptr @AES_ENCRYPT, align 4
%116 = call i32 @AES_ige_encrypt(ptr noundef %112, ptr noundef %114, i32 noundef 64, ptr noundef %8, ptr noundef %23, i32 noundef %115)
%117 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%118 = call i32 @AES_set_decrypt_key(ptr noundef %117, i32 noundef 128, ptr noundef %8)
%119 = trunc i64 %21 to i32
%120 = call i32 @memcpy(ptr noundef %23, ptr noundef %27, i32 noundef %119)
%121 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%122 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%123 = load i32, ptr @AES_DECRYPT, align 4
%124 = call i32 @AES_ige_encrypt(ptr noundef %121, ptr noundef %122, i32 noundef 64, ptr noundef %8, ptr noundef %23, i32 noundef %123)
%125 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%126 = getelementptr inbounds i8, ptr %125, i64 64
%127 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%128 = getelementptr inbounds i8, ptr %127, i64 64
%129 = load i32, ptr @AES_DECRYPT, align 4
%130 = call i32 @AES_ige_encrypt(ptr noundef %126, ptr noundef %128, i32 noundef 64, ptr noundef %8, ptr noundef %23, i32 noundef %129)
%131 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%132 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%133 = call i64 @memcmp(ptr noundef %131, ptr noundef %132, i32 noundef 128)
%134 = icmp ne i64 %133, 0
br i1 %134, label %135, label %145
135: ; preds = %102
%136 = call i32 @printf(ptr noundef @.str.4)
%137 = load i32, ptr @stdout, align 4
%138 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%139 = call i32 @hexdump(i32 noundef %137, ptr noundef @.str.1, ptr noundef %138, i32 noundef 128)
%140 = load i32, ptr @stdout, align 4
%141 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%142 = call i32 @hexdump(i32 noundef %140, ptr noundef @.str.2, ptr noundef %141, i32 noundef 128)
%143 = load i32, ptr %16, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %16, align 4
br label %145
145: ; preds = %135, %102
%146 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%147 = call i32 @AES_set_encrypt_key(ptr noundef %146, i32 noundef 128, ptr noundef %8)
%148 = trunc i64 %21 to i32
%149 = call i32 @memcpy(ptr noundef %23, ptr noundef %27, i32 noundef %148)
%150 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%151 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%152 = load i32, ptr @AES_ENCRYPT, align 4
%153 = call i32 @AES_ige_encrypt(ptr noundef %150, ptr noundef %151, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %152)
%154 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 5120
%155 = load i8, ptr %154, align 16
%156 = add i8 %155, 1
store i8 %156, ptr %154, align 16
%157 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%158 = call i32 @AES_set_decrypt_key(ptr noundef %157, i32 noundef 128, ptr noundef %8)
%159 = trunc i64 %21 to i32
%160 = call i32 @memcpy(ptr noundef %23, ptr noundef %27, i32 noundef %159)
%161 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%162 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%163 = load i32, ptr @AES_DECRYPT, align 4
%164 = call i32 @AES_ige_encrypt(ptr noundef %161, ptr noundef %162, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %163)
store i32 0, ptr %18, align 4
store i32 0, ptr %17, align 4
%165 = load i32, ptr %17, align 4
%166 = zext i32 %165 to i64
%167 = icmp ult i64 %166, 10240
br i1 %167, label %.lr.ph, label %190
.lr.ph: ; preds = %145
br label %168
168: ; preds = %.lr.ph, %184
%169 = load i32, ptr %17, align 4
%170 = zext i32 %169 to i64
%171 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 %170
%172 = load i8, ptr %171, align 1
%173 = zext i8 %172 to i32
%174 = load i32, ptr %17, align 4
%175 = zext i32 %174 to i64
%176 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 %175
%177 = load i8, ptr %176, align 1
%178 = zext i8 %177 to i32
%179 = icmp eq i32 %173, %178
br i1 %179, label %180, label %183
180: ; preds = %168
%181 = load i32, ptr %18, align 4
%182 = add i32 %181, 1
store i32 %182, ptr %18, align 4
br label %183
183: ; preds = %180, %168
br label %184
184: ; preds = %183
%185 = load i32, ptr %17, align 4
%186 = add i32 %185, 1
store i32 %186, ptr %17, align 4
%187 = load i32, ptr %17, align 4
%188 = zext i32 %187 to i64
%189 = icmp ult i64 %188, 10240
br i1 %189, label %168, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %184
br label %190
190: ; preds = %._crit_edge, %145
%191 = load i32, ptr %18, align 4
%192 = zext i32 %191 to i64
%193 = icmp ugt i64 %192, 5222
br i1 %193, label %194, label %198
194: ; preds = %190
%195 = call i32 @printf(ptr noundef @.str.5)
%196 = load i32, ptr %16, align 4
%197 = add nsw i32 %196, 1
store i32 %197, ptr %16, align 4
br label %198
198: ; preds = %194, %190
%199 = load i32, ptr %18, align 4
%200 = zext i32 %199 to i64
%201 = icmp ult i64 %200, 5120
br i1 %201, label %202, label %206
202: ; preds = %198
%203 = call i32 @printf(ptr noundef @.str.6)
%204 = load i32, ptr %16, align 4
%205 = add nsw i32 %204, 1
store i32 %205, ptr %16, align 4
br label %206
206: ; preds = %202, %198
%207 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%208 = call i32 @RAND_pseudo_bytes(ptr noundef %207, i32 noundef 16)
%209 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%210 = call i32 @AES_set_encrypt_key(ptr noundef %209, i32 noundef 128, ptr noundef %8)
%211 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%212 = call i32 @AES_set_encrypt_key(ptr noundef %211, i32 noundef 128, ptr noundef %9)
%213 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%214 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%215 = load i32, ptr @AES_ENCRYPT, align 4
%216 = call i32 @AES_bi_ige_encrypt(ptr noundef %213, ptr noundef %214, i32 noundef 128, ptr noundef %8, ptr noundef %9, ptr noundef %23, i32 noundef %215)
%217 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%218 = call i32 @AES_set_decrypt_key(ptr noundef %217, i32 noundef 128, ptr noundef %8)
%219 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%220 = call i32 @AES_set_decrypt_key(ptr noundef %219, i32 noundef 128, ptr noundef %9)
%221 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%222 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%223 = load i32, ptr @AES_DECRYPT, align 4
%224 = call i32 @AES_bi_ige_encrypt(ptr noundef %221, ptr noundef %222, i32 noundef 128, ptr noundef %8, ptr noundef %9, ptr noundef %23, i32 noundef %223)
%225 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%226 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%227 = call i64 @memcmp(ptr noundef %225, ptr noundef %226, i32 noundef 128)
%228 = icmp ne i64 %227, 0
br i1 %228, label %229, label %239
229: ; preds = %206
%230 = call i32 @printf(ptr noundef @.str)
%231 = load i32, ptr @stdout, align 4
%232 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%233 = call i32 @hexdump(i32 noundef %231, ptr noundef @.str.1, ptr noundef %232, i32 noundef 128)
%234 = load i32, ptr @stdout, align 4
%235 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%236 = call i32 @hexdump(i32 noundef %234, ptr noundef @.str.2, ptr noundef %235, i32 noundef 128)
%237 = load i32, ptr %16, align 4
%238 = add nsw i32 %237, 1
store i32 %238, ptr %16, align 4
br label %239
239: ; preds = %229, %206
%240 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%241 = call i32 @AES_set_encrypt_key(ptr noundef %240, i32 noundef 128, ptr noundef %8)
%242 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%243 = call i32 @AES_set_encrypt_key(ptr noundef %242, i32 noundef 128, ptr noundef %9)
%244 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%245 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%246 = load i32, ptr @AES_ENCRYPT, align 4
%247 = call i32 @AES_ige_encrypt(ptr noundef %244, ptr noundef %245, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %246)
%248 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 5120
%249 = load i8, ptr %248, align 16
%250 = add i8 %249, 1
store i8 %250, ptr %248, align 16
%251 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%252 = call i32 @AES_set_decrypt_key(ptr noundef %251, i32 noundef 128, ptr noundef %8)
%253 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%254 = call i32 @AES_set_decrypt_key(ptr noundef %253, i32 noundef 128, ptr noundef %9)
%255 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%256 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%257 = load i32, ptr @AES_DECRYPT, align 4
%258 = call i32 @AES_ige_encrypt(ptr noundef %255, ptr noundef %256, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %257)
store i32 0, ptr %18, align 4
store i32 0, ptr %17, align 4
%259 = load i32, ptr %17, align 4
%260 = zext i32 %259 to i64
%261 = icmp ult i64 %260, 10240
br i1 %261, label %.lr.ph2, label %284
.lr.ph2: ; preds = %239
br label %262
262: ; preds = %.lr.ph2, %278
%263 = load i32, ptr %17, align 4
%264 = zext i32 %263 to i64
%265 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 %264
%266 = load i8, ptr %265, align 1
%267 = zext i8 %266 to i32
%268 = load i32, ptr %17, align 4
%269 = zext i32 %268 to i64
%270 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 %269
%271 = load i8, ptr %270, align 1
%272 = zext i8 %271 to i32
%273 = icmp eq i32 %267, %272
br i1 %273, label %274, label %277
274: ; preds = %262
%275 = load i32, ptr %18, align 4
%276 = add i32 %275, 1
store i32 %276, ptr %18, align 4
br label %277
277: ; preds = %274, %262
br label %278
278: ; preds = %277
%279 = load i32, ptr %17, align 4
%280 = add i32 %279, 1
store i32 %280, ptr %17, align 4
%281 = load i32, ptr %17, align 4
%282 = zext i32 %281 to i64
%283 = icmp ult i64 %282, 10240
br i1 %283, label %262, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %278
br label %284
284: ; preds = %._crit_edge3, %239
%285 = load i32, ptr %18, align 4
%286 = zext i32 %285 to i64
%287 = icmp ugt i64 %286, 102
br i1 %287, label %288, label %292
288: ; preds = %284
%289 = call i32 @printf(ptr noundef @.str.7)
%290 = load i32, ptr %16, align 4
%291 = add nsw i32 %290, 1
store i32 %291, ptr %16, align 4
br label %292
292: ; preds = %288, %284
%293 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%294 = call i32 @AES_set_encrypt_key(ptr noundef %293, i32 noundef 128, ptr noundef %8)
%295 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%296 = call i32 @AES_set_encrypt_key(ptr noundef %295, i32 noundef 128, ptr noundef %9)
%297 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%298 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%299 = load i32, ptr @AES_ENCRYPT, align 4
%300 = call i32 @AES_ige_encrypt(ptr noundef %297, ptr noundef %298, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %299)
%301 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 10239
%302 = load i8, ptr %301, align 1
%303 = add i8 %302, 1
store i8 %303, ptr %301, align 1
%304 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%305 = call i32 @AES_set_decrypt_key(ptr noundef %304, i32 noundef 128, ptr noundef %8)
%306 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%307 = call i32 @AES_set_decrypt_key(ptr noundef %306, i32 noundef 128, ptr noundef %9)
%308 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%309 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%310 = load i32, ptr @AES_DECRYPT, align 4
%311 = call i32 @AES_ige_encrypt(ptr noundef %308, ptr noundef %309, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %310)
store i32 0, ptr %18, align 4
store i32 0, ptr %17, align 4
%312 = load i32, ptr %17, align 4
%313 = zext i32 %312 to i64
%314 = icmp ult i64 %313, 10240
br i1 %314, label %.lr.ph5, label %337
.lr.ph5: ; preds = %292
br label %315
315: ; preds = %.lr.ph5, %331
%316 = load i32, ptr %17, align 4
%317 = zext i32 %316 to i64
%318 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 %317
%319 = load i8, ptr %318, align 1
%320 = zext i8 %319 to i32
%321 = load i32, ptr %17, align 4
%322 = zext i32 %321 to i64
%323 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 %322
%324 = load i8, ptr %323, align 1
%325 = zext i8 %324 to i32
%326 = icmp eq i32 %320, %325
br i1 %326, label %327, label %330
327: ; preds = %315
%328 = load i32, ptr %18, align 4
%329 = add i32 %328, 1
store i32 %329, ptr %18, align 4
br label %330
330: ; preds = %327, %315
br label %331
331: ; preds = %330
%332 = load i32, ptr %17, align 4
%333 = add i32 %332, 1
store i32 %333, ptr %17, align 4
%334 = load i32, ptr %17, align 4
%335 = zext i32 %334 to i64
%336 = icmp ult i64 %335, 10240
br i1 %336, label %315, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %331
br label %337
337: ; preds = %._crit_edge6, %292
%338 = load i32, ptr %18, align 4
%339 = zext i32 %338 to i64
%340 = icmp ugt i64 %339, 102
br i1 %340, label %341, label %345
341: ; preds = %337
%342 = call i32 @printf(ptr noundef @.str.8)
%343 = load i32, ptr %16, align 4
%344 = add nsw i32 %343, 1
store i32 %344, ptr %16, align 4
br label %345
345: ; preds = %341, %337
%346 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%347 = call i32 @AES_set_encrypt_key(ptr noundef %346, i32 noundef 128, ptr noundef %8)
%348 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%349 = call i32 @AES_set_encrypt_key(ptr noundef %348, i32 noundef 128, ptr noundef %9)
%350 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 0
%351 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%352 = load i32, ptr @AES_ENCRYPT, align 4
%353 = call i32 @AES_ige_encrypt(ptr noundef %350, ptr noundef %351, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %352)
%354 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%355 = load i8, ptr %354, align 16
%356 = add i8 %355, 1
store i8 %356, ptr %354, align 16
%357 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%358 = call i32 @AES_set_decrypt_key(ptr noundef %357, i32 noundef 128, ptr noundef %8)
%359 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%360 = call i32 @AES_set_decrypt_key(ptr noundef %359, i32 noundef 128, ptr noundef %9)
%361 = getelementptr inbounds [10240 x i8], ptr %11, i64 0, i64 0
%362 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 0
%363 = load i32, ptr @AES_DECRYPT, align 4
%364 = call i32 @AES_ige_encrypt(ptr noundef %361, ptr noundef %362, i32 noundef 10240, ptr noundef %8, ptr noundef %23, i32 noundef %363)
store i32 0, ptr %18, align 4
store i32 0, ptr %17, align 4
%365 = load i32, ptr %17, align 4
%366 = zext i32 %365 to i64
%367 = icmp ult i64 %366, 10240
br i1 %367, label %.lr.ph8, label %390
.lr.ph8: ; preds = %345
br label %368
368: ; preds = %.lr.ph8, %384
%369 = load i32, ptr %17, align 4
%370 = zext i32 %369 to i64
%371 = getelementptr inbounds [10240 x i8], ptr %12, i64 0, i64 %370
%372 = load i8, ptr %371, align 1
%373 = zext i8 %372 to i32
%374 = load i32, ptr %17, align 4
%375 = zext i32 %374 to i64
%376 = getelementptr inbounds [10240 x i8], ptr %10, i64 0, i64 %375
%377 = load i8, ptr %376, align 1
%378 = zext i8 %377 to i32
%379 = icmp eq i32 %373, %378
br i1 %379, label %380, label %383
380: ; preds = %368
%381 = load i32, ptr %18, align 4
%382 = add i32 %381, 1
store i32 %382, ptr %18, align 4
br label %383
383: ; preds = %380, %368
br label %384
384: ; preds = %383
%385 = load i32, ptr %17, align 4
%386 = add i32 %385, 1
store i32 %386, ptr %17, align 4
%387 = load i32, ptr %17, align 4
%388 = zext i32 %387 to i64
%389 = icmp ult i64 %388, 10240
br i1 %389, label %368, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %384
br label %390
390: ; preds = %._crit_edge9, %345
%391 = load i32, ptr %18, align 4
%392 = zext i32 %391 to i64
%393 = icmp ugt i64 %392, 102
br i1 %393, label %394, label %398
394: ; preds = %390
%395 = call i32 @printf(ptr noundef @.str.9)
%396 = load i32, ptr %16, align 4
%397 = add nsw i32 %396, 1
store i32 %397, ptr %16, align 4
br label %398
398: ; preds = %394, %390
%399 = call i64 (...) @run_test_vectors()
%400 = load i32, ptr %16, align 4
%401 = sext i32 %400 to i64
%402 = add nsw i64 %401, %399
%403 = trunc i64 %402 to i32
store i32 %403, ptr %16, align 4
%404 = load i32, ptr %16, align 4
store i32 %404, ptr %3, align 4
%405 = load ptr, ptr %13, align 8
call void @llvm.stackrestore(ptr %405)
%406 = load i32, ptr %3, align 4
ret i32 %406
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @assert(i32 noundef) #2
declare i32 @RAND_pseudo_bytes(ptr noundef, i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @AES_set_encrypt_key(ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @AES_ige_encrypt(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @AES_set_decrypt_key(ptr noundef, i32 noundef, ptr noundef) #2
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
declare i32 @hexdump(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @AES_bi_ige_encrypt(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @run_test_vectors(...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 }
attributes #2 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpnchgp82m.c'
source_filename = "/tmp/tmpnchgp82m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [4 x i8] c"\01\02\05\03", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [4 x i8], align 1
%2 = alloca ptr, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.main.a, i64 4, i1 false)
%3 = getelementptr inbounds [4 x i8], ptr %1, i64 0, i64 0
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
call void %4()
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnchgp82m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [4 x i8] c"\01\02\05\03", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [4 x i8], align 1
%2 = alloca ptr, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.main.a, i64 4, i1 false)
%3 = getelementptr inbounds [4 x i8], ptr %1, i64 0, i64 0
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
call void %4()
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw2wph60i.c'
source_filename = "/tmp/tmpw2wph60i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bar() #0 {
%1 = alloca i32, align 4
store i32 1, ptr %1, align 4
%2 = call i32 @foo(ptr noundef %1)
%3 = load i32, ptr %1, align 4
%4 = add nsw i32 %2, %3
ret i32 %4
}
declare i32 @foo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw2wph60i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bar() #0 {
%1 = alloca i32, align 4
store i32 1, ptr %1, align 4
%2 = call i32 @foo(ptr noundef %1)
%3 = load i32, ptr %1, align 4
%4 = add nsw i32 %2, %3
ret i32 %4
}
declare i32 @foo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp86ujliwp.c'
source_filename = "/tmp/tmp86ujliwp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test4(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i64 noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i64, align 8
%12 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i64 %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp ne i32 %13, 1
br i1 %14, label %30, label %15
15: ; preds = %6
%16 = load i32, ptr %8, align 4
%17 = icmp ne i32 %16, 2
br i1 %17, label %30, label %18
18: ; preds = %15
%19 = load i32, ptr %9, align 4
%20 = icmp ne i32 %19, 3
br i1 %20, label %30, label %21
21: ; preds = %18
%22 = load i32, ptr %10, align 4
%23 = icmp ne i32 %22, 4
br i1 %23, label %30, label %24
24: ; preds = %21
%25 = load i64, ptr %11, align 8
%26 = icmp ne i64 %25, 81985529216486895
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = load i32, ptr %12, align 4
%29 = icmp ne i32 %28, 85
br i1 %29, label %30, label %32
30: ; preds = %27, %24, %21, %18, %15, %6
%31 = call i32 (...) @abort() #2
unreachable
32: ; preds = %27
ret void
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp86ujliwp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test4(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i64 noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i64, align 8
%12 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i64 %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp ne i32 %13, 1
br i1 %14, label %30, label %15
15: ; preds = %6
%16 = load i32, ptr %8, align 4
%17 = icmp ne i32 %16, 2
br i1 %17, label %30, label %18
18: ; preds = %15
%19 = load i32, ptr %9, align 4
%20 = icmp ne i32 %19, 3
br i1 %20, label %30, label %21
21: ; preds = %18
%22 = load i32, ptr %10, align 4
%23 = icmp ne i32 %22, 4
br i1 %23, label %30, label %24
24: ; preds = %21
%25 = load i64, ptr %11, align 8
%26 = icmp ne i64 %25, 81985529216486895
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = load i32, ptr %12, align 4
%29 = icmp ne i32 %28, 85
br i1 %29, label %30, label %32
30: ; preds = %27, %24, %21, %18, %15, %6
%31 = call i32 (...) @abort() #2
unreachable
32: ; preds = %27
ret void
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgx56v7cy.c'
source_filename = "/tmp/tmpgx56v7cy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINVAL = dso_local global i64 0, align 8
@ERANGE = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getPosFromCommand(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds i8, ptr %4, i64 4
%6 = call i32 @strtol(ptr noundef %5, ptr noundef null, i32 noundef 10)
store i32 %6, ptr %3, align 4
%7 = load i64, ptr @errno, align 8
%8 = load i64, ptr @EINVAL, align 8
%9 = icmp eq i64 %7, %8
br i1 %9, label %14, label %10
10: ; preds = %1
%11 = load i64, ptr @errno, align 8
%12 = load i64, ptr @ERANGE, align 8
%13 = icmp eq i64 %11, %12
br i1 %13, label %14, label %15
14: ; preds = %10, %1
store i32 -1, ptr %3, align 4
br label %15
15: ; preds = %14, %10
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgx56v7cy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINVAL = dso_local global i64 0, align 8
@ERANGE = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getPosFromCommand(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds i8, ptr %4, i64 4
%6 = call i32 @strtol(ptr noundef %5, ptr noundef null, i32 noundef 10)
store i32 %6, ptr %3, align 4
%7 = load i64, ptr @errno, align 8
%8 = load i64, ptr @EINVAL, align 8
%9 = icmp eq i64 %7, %8
br i1 %9, label %14, label %10
10: ; preds = %1
%11 = load i64, ptr @errno, align 8
%12 = load i64, ptr @ERANGE, align 8
%13 = icmp eq i64 %11, %12
br i1 %13, label %14, label %15
14: ; preds = %10, %1
store i32 -1, ptr %3, align 4
br label %15
15: ; preds = %14, %10
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxbsij2w3.c'
source_filename = "/tmp/tmpxbsij2w3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @insert(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = call i32 @time(i32 noundef 0)
%8 = call i32 @srand(i32 noundef %7)
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %43, %2
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %11, align 4
%13 = icmp slt i32 %10, %12
br i1 %13, label %14, label %46
14: ; preds = %9
%15 = call i32 (...) @rand()
%16 = srem i32 %15, 128
%17 = trunc i32 %16 to i8
store i8 %17, ptr %6, align 1
%18 = load i8, ptr %6, align 1
%19 = sext i8 %18 to i32
%20 = icmp sge i32 %19, 65
br i1 %20, label %21, label %25
21: ; preds = %14
%22 = load i8, ptr %6, align 1
%23 = sext i8 %22 to i32
%24 = icmp sle i32 %23, 90
br i1 %24, label %33, label %25
25: ; preds = %21, %14
%26 = load i8, ptr %6, align 1
%27 = sext i8 %26 to i32
%28 = icmp sge i32 %27, 97
br i1 %28, label %29, label %39
29: ; preds = %25
%30 = load i8, ptr %6, align 1
%31 = sext i8 %30 to i32
%32 = icmp sle i32 %31, 122
br i1 %32, label %33, label %39
33: ; preds = %29, %21
%34 = load i8, ptr %6, align 1
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %5, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
store i8 %34, ptr %38, align 1
br label %42
39: ; preds = %29, %25
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, -1
store i32 %41, ptr %5, align 4
br label %42
42: ; preds = %39, %33
br label %43
43: ; preds = %42
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %5, align 4
br label %9, !llvm.loop !6
46: ; preds = %9
ret void
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxbsij2w3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @insert(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = call i32 @time(i32 noundef 0)
%8 = call i32 @srand(i32 noundef %7)
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %10, align 4
%12 = icmp slt i32 %9, %11
br i1 %12, label %.lr.ph, label %49
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %42
%14 = call i32 (...) @rand()
%15 = srem i32 %14, 128
%16 = trunc i32 %15 to i8
store i8 %16, ptr %6, align 1
%17 = load i8, ptr %6, align 1
%18 = sext i8 %17 to i32
%19 = icmp sge i32 %18, 65
br i1 %19, label %20, label %24
20: ; preds = %13
%21 = load i8, ptr %6, align 1
%22 = sext i8 %21 to i32
%23 = icmp sle i32 %22, 90
br i1 %23, label %32, label %24
24: ; preds = %20, %13
%25 = load i8, ptr %6, align 1
%26 = sext i8 %25 to i32
%27 = icmp sge i32 %26, 97
br i1 %27, label %28, label %38
28: ; preds = %24
%29 = load i8, ptr %6, align 1
%30 = sext i8 %29 to i32
%31 = icmp sle i32 %30, 122
br i1 %31, label %32, label %38
32: ; preds = %28, %20
%33 = load i8, ptr %6, align 1
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
store i8 %33, ptr %37, align 1
br label %41
38: ; preds = %28, %24
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %39, -1
store i32 %40, ptr %5, align 4
br label %41
41: ; preds = %38, %32
br label %42
42: ; preds = %41
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %5, align 4
%45 = load i32, ptr %5, align 4
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %46, align 4
%48 = icmp slt i32 %45, %47
br i1 %48, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %49
49: ; preds = %._crit_edge, %2
ret void
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfbtjj5us.c'
source_filename = "/tmp/tmpfbtjj5us.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @thread_syn_wait(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @pthread_mutex_lock(ptr noundef %7)
br label %9
9: ; preds = %14, %3
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %10, align 4
%12 = icmp ne i32 %11, 0
%13 = xor i1 %12, true
br i1 %13, label %14, label %18
14: ; preds = %9
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %4, align 8
%17 = call i32 @pthread_cond_wait(ptr noundef %15, ptr noundef %16)
br label %9, !llvm.loop !6
18: ; preds = %9
%19 = load ptr, ptr %4, align 8
%20 = call i32 @pthread_mutex_unlock(ptr noundef %19)
ret i32 0
}
declare i32 @pthread_mutex_lock(ptr noundef) #1
declare i32 @pthread_cond_wait(ptr noundef, ptr noundef) #1
declare i32 @pthread_mutex_unlock(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfbtjj5us.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @thread_syn_wait(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @pthread_mutex_lock(ptr noundef %7)
%9 = load ptr, ptr %6, align 8
%10 = load i32, ptr %9, align 4
%11 = icmp ne i32 %10, 0
%12 = xor i1 %11, true
br i1 %12, label %.lr.ph, label %21
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %13
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %4, align 8
%16 = call i32 @pthread_cond_wait(ptr noundef %14, ptr noundef %15)
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %17, align 4
%19 = icmp ne i32 %18, 0
%20 = xor i1 %19, true
br i1 %20, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %21
21: ; preds = %._crit_edge, %3
%22 = load ptr, ptr %4, align 8
%23 = call i32 @pthread_mutex_unlock(ptr noundef %22)
ret i32 0
}
declare i32 @pthread_mutex_lock(ptr noundef) #1
declare i32 @pthread_cond_wait(ptr noundef, ptr noundef) #1
declare i32 @pthread_mutex_unlock(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmkjaehxw.c'
source_filename = "/tmp/tmpmkjaehxw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { i32, i32 }
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @string_replace_regex(ptr noundef %0, ptr noundef %1, ptr noundef %2, i8 noundef signext %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i8, align 1
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca [100 x %struct.TYPE_4__], align 16
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store i8 %3, ptr %11, align 1
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
%25 = load ptr, ptr %8, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %30
27: ; preds = %6
%28 = load ptr, ptr %9, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %31, label %30
30: ; preds = %27, %6
store ptr null, ptr %7, align 8
br label %226
31: ; preds = %27
%32 = load ptr, ptr %8, align 8
%33 = call i32 @strlen(ptr noundef %32)
%34 = add nsw i32 %33, 1
store i32 %34, ptr %17, align 4
%35 = load i32, ptr %17, align 4
%36 = call ptr @malloc(i32 noundef %35)
store ptr %36, ptr %14, align 8
%37 = load ptr, ptr %14, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %40, label %39
39: ; preds = %31
store ptr null, ptr %7, align 8
br label %226
40: ; preds = %31
%41 = load ptr, ptr %14, align 8
%42 = load i32, ptr %17, align 4
%43 = load ptr, ptr %8, align 8
%44 = call i32 @snprintf(ptr noundef %41, i32 noundef %42, ptr noundef @.str, ptr noundef %43)
store i32 0, ptr %19, align 4
br label %45
45: ; preds = %218, %40
%46 = load ptr, ptr %14, align 8
%47 = icmp ne ptr %46, null
br i1 %47, label %48, label %56
48: ; preds = %45
%49 = load ptr, ptr %14, align 8
%50 = load i32, ptr %19, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %49, i64 %51
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp ne i32 %54, 0
br label %56
56: ; preds = %48, %45
%57 = phi i1 [ false, %45 ], [ %55, %48 ]
br i1 %57, label %58, label %224
58: ; preds = %56
store i32 0, ptr %20, align 4
br label %59
59: ; preds = %67, %58
%60 = load i32, ptr %20, align 4
%61 = icmp slt i32 %60, 100
br i1 %61, label %62, label %70
62: ; preds = %59
%63 = load i32, ptr %20, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 %64
%66 = getelementptr inbounds %struct.TYPE_4__, ptr %65, i32 0, i32 0
store i32 -1, ptr %66, align 8
br label %67
67: ; preds = %62
%68 = load i32, ptr %20, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %20, align 4
br label %59, !llvm.loop !6
70: ; preds = %59
%71 = load ptr, ptr %9, align 8
%72 = load ptr, ptr %14, align 8
%73 = load i32, ptr %19, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %72, i64 %74
%76 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%77 = call i32 @regexec(ptr noundef %71, ptr noundef %75, i32 noundef 100, ptr noundef %76, i32 noundef 0)
store i32 %77, ptr %21, align 4
%78 = load i32, ptr %21, align 4
%79 = icmp ne i32 %78, 0
br i1 %79, label %90, label %80
80: ; preds = %70
%81 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%82 = getelementptr inbounds %struct.TYPE_4__, ptr %81, i32 0, i32 0
%83 = load i32, ptr %82, align 16
%84 = icmp slt i32 %83, 0
br i1 %84, label %90, label %85
85: ; preds = %80
%86 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%87 = getelementptr inbounds %struct.TYPE_4__, ptr %86, i32 0, i32 1
%88 = load i32, ptr %87, align 4
%89 = icmp sle i32 %88, 0
br i1 %89, label %90, label %91
90: ; preds = %85, %80, %70
br label %224
91: ; preds = %85
store i32 0, ptr %23, align 4
store i32 0, ptr %20, align 4
br label %92
92: ; preds = %119, %91
%93 = load i32, ptr %20, align 4
%94 = icmp slt i32 %93, 100
br i1 %94, label %95, label %122
95: ; preds = %92
%96 = load i32, ptr %20, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 %97
%99 = getelementptr inbounds %struct.TYPE_4__, ptr %98, i32 0, i32 0
%100 = load i32, ptr %99, align 8
%101 = icmp sge i32 %100, 0
br i1 %101, label %102, label %118
102: ; preds = %95
%103 = load i32, ptr %20, align 4
store i32 %103, ptr %23, align 4
%104 = load i32, ptr %19, align 4
%105 = load i32, ptr %20, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 %106
%108 = getelementptr inbounds %struct.TYPE_4__, ptr %107, i32 0, i32 0
%109 = load i32, ptr %108, align 8
%110 = add nsw i32 %109, %104
store i32 %110, ptr %108, align 8
%111 = load i32, ptr %19, align 4
%112 = load i32, ptr %20, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 %113
%115 = getelementptr inbounds %struct.TYPE_4__, ptr %114, i32 0, i32 1
%116 = load i32, ptr %115, align 4
%117 = add nsw i32 %116, %111
store i32 %117, ptr %115, align 4
br label %118
118: ; preds = %102, %95
br label %119
119: ; preds = %118
%120 = load i32, ptr %20, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %20, align 4
br label %92, !llvm.loop !8
122: ; preds = %92
%123 = load ptr, ptr %14, align 8
%124 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%125 = getelementptr inbounds %struct.TYPE_4__, ptr %124, i32 0, i32 1
%126 = load i32, ptr %125, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i8, ptr %123, i64 %127
%129 = load i8, ptr %128, align 1
%130 = icmp ne i8 %129, 0
%131 = xor i1 %130, true
%132 = zext i1 %131 to i32
store i32 %132, ptr %22, align 4
%133 = load ptr, ptr %14, align 8
%134 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%135 = load i32, ptr %23, align 4
%136 = load ptr, ptr %10, align 8
%137 = load i8, ptr %11, align 1
%138 = load ptr, ptr %12, align 8
%139 = load ptr, ptr %13, align 8
%140 = call ptr @string_replace_regex_get_replace(ptr noundef %133, ptr noundef %134, i32 noundef %135, ptr noundef %136, i8 noundef signext %137, ptr noundef %138, ptr noundef %139)
store ptr %140, ptr %16, align 8
%141 = load ptr, ptr %16, align 8
%142 = icmp ne ptr %141, null
br i1 %142, label %143, label %146
143: ; preds = %122
%144 = load ptr, ptr %16, align 8
%145 = call i32 @strlen(ptr noundef %144)
br label %147
146: ; preds = %122
br label %147
147: ; preds = %146, %143
%148 = phi i32 [ %145, %143 ], [ 0, %146 ]
store i32 %148, ptr %18, align 4
%149 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%150 = getelementptr inbounds %struct.TYPE_4__, ptr %149, i32 0, i32 0
%151 = load i32, ptr %150, align 16
%152 = load i32, ptr %18, align 4
%153 = add nsw i32 %151, %152
%154 = load ptr, ptr %14, align 8
%155 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%156 = getelementptr inbounds %struct.TYPE_4__, ptr %155, i32 0, i32 1
%157 = load i32, ptr %156, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds i8, ptr %154, i64 %158
%160 = call i32 @strlen(ptr noundef %159)
%161 = add nsw i32 %153, %160
%162 = add nsw i32 %161, 1
store i32 %162, ptr %17, align 4
%163 = load i32, ptr %17, align 4
%164 = call ptr @malloc(i32 noundef %163)
store ptr %164, ptr %15, align 8
%165 = load ptr, ptr %15, align 8
%166 = icmp ne ptr %165, null
br i1 %166, label %170, label %167
167: ; preds = %147
%168 = load ptr, ptr %14, align 8
%169 = call i32 @free(ptr noundef %168)
store ptr null, ptr %7, align 8
br label %226
170: ; preds = %147
%171 = load ptr, ptr %15, align 8
%172 = getelementptr inbounds i8, ptr %171, i64 0
store i8 0, ptr %172, align 1
%173 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%174 = getelementptr inbounds %struct.TYPE_4__, ptr %173, i32 0, i32 0
%175 = load i32, ptr %174, align 16
%176 = icmp sgt i32 %175, 0
br i1 %176, label %177, label %190
177: ; preds = %170
%178 = load ptr, ptr %15, align 8
%179 = load ptr, ptr %14, align 8
%180 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%181 = getelementptr inbounds %struct.TYPE_4__, ptr %180, i32 0, i32 0
%182 = load i32, ptr %181, align 16
%183 = call i32 @memcpy(ptr noundef %178, ptr noundef %179, i32 noundef %182)
%184 = load ptr, ptr %15, align 8
%185 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%186 = getelementptr inbounds %struct.TYPE_4__, ptr %185, i32 0, i32 0
%187 = load i32, ptr %186, align 16
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds i8, ptr %184, i64 %188
store i8 0, ptr %189, align 1
br label %190
190: ; preds = %177, %170
%191 = load ptr, ptr %16, align 8
%192 = icmp ne ptr %191, null
br i1 %192, label %193, label %197
193: ; preds = %190
%194 = load ptr, ptr %15, align 8
%195 = load ptr, ptr %16, align 8
%196 = call i32 @strcat(ptr noundef %194, ptr noundef %195)
br label %197
197: ; preds = %193, %190
%198 = load ptr, ptr %15, align 8
%199 = load ptr, ptr %14, align 8
%200 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%201 = getelementptr inbounds %struct.TYPE_4__, ptr %200, i32 0, i32 1
%202 = load i32, ptr %201, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds i8, ptr %199, i64 %203
%205 = call i32 @strcat(ptr noundef %198, ptr noundef %204)
%206 = load ptr, ptr %14, align 8
%207 = call i32 @free(ptr noundef %206)
%208 = load ptr, ptr %15, align 8
store ptr %208, ptr %14, align 8
%209 = load ptr, ptr %16, align 8
%210 = icmp ne ptr %209, null
br i1 %210, label %211, label %214
211: ; preds = %197
%212 = load ptr, ptr %16, align 8
%213 = call i32 @free(ptr noundef %212)
br label %214
214: ; preds = %211, %197
%215 = load i32, ptr %22, align 4
%216 = icmp ne i32 %215, 0
br i1 %216, label %217, label %218
217: ; preds = %214
br label %224
218: ; preds = %214
%219 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%220 = getelementptr inbounds %struct.TYPE_4__, ptr %219, i32 0, i32 0
%221 = load i32, ptr %220, align 16
%222 = load i32, ptr %18, align 4
%223 = add nsw i32 %221, %222
store i32 %223, ptr %19, align 4
br label %45, !llvm.loop !9
224: ; preds = %217, %90, %56
%225 = load ptr, ptr %14, align 8
store ptr %225, ptr %7, align 8
br label %226
226: ; preds = %224, %167, %39, %30
%227 = load ptr, ptr %7, align 8
ret ptr %227
}
declare i32 @strlen(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @regexec(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @string_replace_regex_get_replace(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i8 noundef signext, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmkjaehxw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { i32, i32 }
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @string_replace_regex(ptr noundef %0, ptr noundef %1, ptr noundef %2, i8 noundef signext %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i8, align 1
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca [100 x %struct.TYPE_4__], align 16
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store i8 %3, ptr %11, align 1
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
%25 = load ptr, ptr %8, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %30
27: ; preds = %6
%28 = load ptr, ptr %9, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %31, label %30
30: ; preds = %27, %6
store ptr null, ptr %7, align 8
br label %228
31: ; preds = %27
%32 = load ptr, ptr %8, align 8
%33 = call i32 @strlen(ptr noundef %32)
%34 = add nsw i32 %33, 1
store i32 %34, ptr %17, align 4
%35 = load i32, ptr %17, align 4
%36 = call ptr @malloc(i32 noundef %35)
store ptr %36, ptr %14, align 8
%37 = load ptr, ptr %14, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %40, label %39
39: ; preds = %31
store ptr null, ptr %7, align 8
br label %228
40: ; preds = %31
%41 = load ptr, ptr %14, align 8
%42 = load i32, ptr %17, align 4
%43 = load ptr, ptr %8, align 8
%44 = call i32 @snprintf(ptr noundef %41, i32 noundef %42, ptr noundef @.str, ptr noundef %43)
store i32 0, ptr %19, align 4
br label %45
45: ; preds = %220, %40
%46 = load ptr, ptr %14, align 8
%47 = icmp ne ptr %46, null
br i1 %47, label %48, label %56
48: ; preds = %45
%49 = load ptr, ptr %14, align 8
%50 = load i32, ptr %19, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %49, i64 %51
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp ne i32 %54, 0
br label %56
56: ; preds = %48, %45
%57 = phi i1 [ false, %45 ], [ %55, %48 ]
br i1 %57, label %58, label %.loopexit
58: ; preds = %56
store i32 0, ptr %20, align 4
%59 = load i32, ptr %20, align 4
%60 = icmp slt i32 %59, 100
br i1 %60, label %.lr.ph, label %71
.lr.ph: ; preds = %58
br label %61
61: ; preds = %.lr.ph, %66
%62 = load i32, ptr %20, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 %63
%65 = getelementptr inbounds %struct.TYPE_4__, ptr %64, i32 0, i32 0
store i32 -1, ptr %65, align 8
br label %66
66: ; preds = %61
%67 = load i32, ptr %20, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %20, align 4
%69 = load i32, ptr %20, align 4
%70 = icmp slt i32 %69, 100
br i1 %70, label %61, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %66
br label %71
71: ; preds = %._crit_edge, %58
%72 = load ptr, ptr %9, align 8
%73 = load ptr, ptr %14, align 8
%74 = load i32, ptr %19, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %73, i64 %75
%77 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%78 = call i32 @regexec(ptr noundef %72, ptr noundef %76, i32 noundef 100, ptr noundef %77, i32 noundef 0)
store i32 %78, ptr %21, align 4
%79 = load i32, ptr %21, align 4
%80 = icmp ne i32 %79, 0
br i1 %80, label %91, label %81
81: ; preds = %71
%82 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%83 = getelementptr inbounds %struct.TYPE_4__, ptr %82, i32 0, i32 0
%84 = load i32, ptr %83, align 16
%85 = icmp slt i32 %84, 0
br i1 %85, label %91, label %86
86: ; preds = %81
%87 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%88 = getelementptr inbounds %struct.TYPE_4__, ptr %87, i32 0, i32 1
%89 = load i32, ptr %88, align 4
%90 = icmp sle i32 %89, 0
br i1 %90, label %91, label %92
91: ; preds = %86, %81, %71
br label %226
92: ; preds = %86
store i32 0, ptr %23, align 4
store i32 0, ptr %20, align 4
%93 = load i32, ptr %20, align 4
%94 = icmp slt i32 %93, 100
br i1 %94, label %.lr.ph2, label %124
.lr.ph2: ; preds = %92
br label %95
95: ; preds = %.lr.ph2, %119
%96 = load i32, ptr %20, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 %97
%99 = getelementptr inbounds %struct.TYPE_4__, ptr %98, i32 0, i32 0
%100 = load i32, ptr %99, align 8
%101 = icmp sge i32 %100, 0
br i1 %101, label %102, label %118
102: ; preds = %95
%103 = load i32, ptr %20, align 4
store i32 %103, ptr %23, align 4
%104 = load i32, ptr %19, align 4
%105 = load i32, ptr %20, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 %106
%108 = getelementptr inbounds %struct.TYPE_4__, ptr %107, i32 0, i32 0
%109 = load i32, ptr %108, align 8
%110 = add nsw i32 %109, %104
store i32 %110, ptr %108, align 8
%111 = load i32, ptr %19, align 4
%112 = load i32, ptr %20, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 %113
%115 = getelementptr inbounds %struct.TYPE_4__, ptr %114, i32 0, i32 1
%116 = load i32, ptr %115, align 4
%117 = add nsw i32 %116, %111
store i32 %117, ptr %115, align 4
br label %118
118: ; preds = %102, %95
br label %119
119: ; preds = %118
%120 = load i32, ptr %20, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %20, align 4
%122 = load i32, ptr %20, align 4
%123 = icmp slt i32 %122, 100
br i1 %123, label %95, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %119
br label %124
124: ; preds = %._crit_edge3, %92
%125 = load ptr, ptr %14, align 8
%126 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%127 = getelementptr inbounds %struct.TYPE_4__, ptr %126, i32 0, i32 1
%128 = load i32, ptr %127, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i8, ptr %125, i64 %129
%131 = load i8, ptr %130, align 1
%132 = icmp ne i8 %131, 0
%133 = xor i1 %132, true
%134 = zext i1 %133 to i32
store i32 %134, ptr %22, align 4
%135 = load ptr, ptr %14, align 8
%136 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%137 = load i32, ptr %23, align 4
%138 = load ptr, ptr %10, align 8
%139 = load i8, ptr %11, align 1
%140 = load ptr, ptr %12, align 8
%141 = load ptr, ptr %13, align 8
%142 = call ptr @string_replace_regex_get_replace(ptr noundef %135, ptr noundef %136, i32 noundef %137, ptr noundef %138, i8 noundef signext %139, ptr noundef %140, ptr noundef %141)
store ptr %142, ptr %16, align 8
%143 = load ptr, ptr %16, align 8
%144 = icmp ne ptr %143, null
br i1 %144, label %145, label %148
145: ; preds = %124
%146 = load ptr, ptr %16, align 8
%147 = call i32 @strlen(ptr noundef %146)
br label %149
148: ; preds = %124
br label %149
149: ; preds = %148, %145
%150 = phi i32 [ %147, %145 ], [ 0, %148 ]
store i32 %150, ptr %18, align 4
%151 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%152 = getelementptr inbounds %struct.TYPE_4__, ptr %151, i32 0, i32 0
%153 = load i32, ptr %152, align 16
%154 = load i32, ptr %18, align 4
%155 = add nsw i32 %153, %154
%156 = load ptr, ptr %14, align 8
%157 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%158 = getelementptr inbounds %struct.TYPE_4__, ptr %157, i32 0, i32 1
%159 = load i32, ptr %158, align 4
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds i8, ptr %156, i64 %160
%162 = call i32 @strlen(ptr noundef %161)
%163 = add nsw i32 %155, %162
%164 = add nsw i32 %163, 1
store i32 %164, ptr %17, align 4
%165 = load i32, ptr %17, align 4
%166 = call ptr @malloc(i32 noundef %165)
store ptr %166, ptr %15, align 8
%167 = load ptr, ptr %15, align 8
%168 = icmp ne ptr %167, null
br i1 %168, label %172, label %169
169: ; preds = %149
%170 = load ptr, ptr %14, align 8
%171 = call i32 @free(ptr noundef %170)
store ptr null, ptr %7, align 8
br label %228
172: ; preds = %149
%173 = load ptr, ptr %15, align 8
%174 = getelementptr inbounds i8, ptr %173, i64 0
store i8 0, ptr %174, align 1
%175 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%176 = getelementptr inbounds %struct.TYPE_4__, ptr %175, i32 0, i32 0
%177 = load i32, ptr %176, align 16
%178 = icmp sgt i32 %177, 0
br i1 %178, label %179, label %192
179: ; preds = %172
%180 = load ptr, ptr %15, align 8
%181 = load ptr, ptr %14, align 8
%182 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%183 = getelementptr inbounds %struct.TYPE_4__, ptr %182, i32 0, i32 0
%184 = load i32, ptr %183, align 16
%185 = call i32 @memcpy(ptr noundef %180, ptr noundef %181, i32 noundef %184)
%186 = load ptr, ptr %15, align 8
%187 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%188 = getelementptr inbounds %struct.TYPE_4__, ptr %187, i32 0, i32 0
%189 = load i32, ptr %188, align 16
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds i8, ptr %186, i64 %190
store i8 0, ptr %191, align 1
br label %192
192: ; preds = %179, %172
%193 = load ptr, ptr %16, align 8
%194 = icmp ne ptr %193, null
br i1 %194, label %195, label %199
195: ; preds = %192
%196 = load ptr, ptr %15, align 8
%197 = load ptr, ptr %16, align 8
%198 = call i32 @strcat(ptr noundef %196, ptr noundef %197)
br label %199
199: ; preds = %195, %192
%200 = load ptr, ptr %15, align 8
%201 = load ptr, ptr %14, align 8
%202 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%203 = getelementptr inbounds %struct.TYPE_4__, ptr %202, i32 0, i32 1
%204 = load i32, ptr %203, align 4
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds i8, ptr %201, i64 %205
%207 = call i32 @strcat(ptr noundef %200, ptr noundef %206)
%208 = load ptr, ptr %14, align 8
%209 = call i32 @free(ptr noundef %208)
%210 = load ptr, ptr %15, align 8
store ptr %210, ptr %14, align 8
%211 = load ptr, ptr %16, align 8
%212 = icmp ne ptr %211, null
br i1 %212, label %213, label %216
213: ; preds = %199
%214 = load ptr, ptr %16, align 8
%215 = call i32 @free(ptr noundef %214)
br label %216
216: ; preds = %213, %199
%217 = load i32, ptr %22, align 4
%218 = icmp ne i32 %217, 0
br i1 %218, label %219, label %220
219: ; preds = %216
br label %226
220: ; preds = %216
%221 = getelementptr inbounds [100 x %struct.TYPE_4__], ptr %24, i64 0, i64 0
%222 = getelementptr inbounds %struct.TYPE_4__, ptr %221, i32 0, i32 0
%223 = load i32, ptr %222, align 16
%224 = load i32, ptr %18, align 4
%225 = add nsw i32 %223, %224
store i32 %225, ptr %19, align 4
br label %45, !llvm.loop !9
.loopexit: ; preds = %56
br label %226
226: ; preds = %.loopexit, %219, %91
%227 = load ptr, ptr %14, align 8
store ptr %227, ptr %7, align 8
br label %228
228: ; preds = %226, %169, %39, %30
%229 = load ptr, ptr %7, align 8
ret ptr %229
}
declare i32 @strlen(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @regexec(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @string_replace_regex_get_replace(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i8 noundef signext, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp_ftvf16h.c'
source_filename = "/tmp/tmp_ftvf16h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hash(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds i8, ptr %5, i64 0
%7 = load i8, ptr %6, align 1
%8 = call i32 @calculateCharacterValue(i8 noundef signext %7)
store i32 %8, ptr %3, align 4
store i32 1, ptr %4, align 4
br label %9
9: ; preds = %21, %1
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 3
br i1 %11, label %12, label %24
12: ; preds = %9
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = call i32 @calculateCharacterValue(i8 noundef signext %17)
%19 = load i32, ptr %3, align 4
%20 = mul nsw i32 %19, %18
store i32 %20, ptr %3, align 4
br label %21
21: ; preds = %12
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
br label %9, !llvm.loop !6
24: ; preds = %9
%25 = load i32, ptr %3, align 4
%26 = srem i32 %25, 256
ret i32 %26
}
declare i32 @calculateCharacterValue(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ftvf16h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hash(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds i8, ptr %5, i64 0
%7 = load i8, ptr %6, align 1
%8 = call i32 @calculateCharacterValue(i8 noundef signext %7)
store i32 %8, ptr %3, align 4
store i32 1, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 3
br i1 %10, label %.lr.ph, label %25
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %20
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = call i32 @calculateCharacterValue(i8 noundef signext %16)
%18 = load i32, ptr %3, align 4
%19 = mul nsw i32 %18, %17
store i32 %19, ptr %3, align 4
br label %20
20: ; preds = %11
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %23, 3
br i1 %24, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %1
%26 = load i32, ptr %3, align 4
%27 = srem i32 %26, 256
ret i32 %27
}
declare i32 @calculateCharacterValue(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpspch1jwe.c'
source_filename = "/tmp/tmpspch1jwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @intr_wrap_401(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = call i32 @__jiqnnt(x86_fp80 noundef %3)
ret i32 %4
}
declare i32 @__jiqnnt(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpspch1jwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @intr_wrap_401(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = call i32 @__jiqnnt(x86_fp80 noundef %3)
ret i32 %4
}
declare i32 @__jiqnnt(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmhrpc8m3.c'
source_filename = "/tmp/tmpmhrpc8m3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_3__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @posix_spawnattr_getschedparam(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_3__, ptr %6, i32 0, i32 0
%8 = call i32 @memcpy(ptr noundef %5, ptr noundef %7, i32 noundef 4)
ret i32 0
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmhrpc8m3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_3__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @posix_spawnattr_getschedparam(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_3__, ptr %6, i32 0, i32 0
%8 = call i32 @memcpy(ptr noundef %5, ptr noundef %7, i32 noundef 4)
ret i32 0
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3o855byk.c'
source_filename = "/tmp/tmp3o855byk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Hello world\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"From application, %d & %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 42, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @StaticTestFunction(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 (...) @TestFunction()
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @StaticTestFunction(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @TestFunction(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3o855byk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Hello world\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"From application, %d & %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 42, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @StaticTestFunction(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 (...) @TestFunction()
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @StaticTestFunction(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @TestFunction(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc5fhqrax.c'
source_filename = "/tmp/tmpc5fhqrax.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc5fhqrax.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpntlv4ehl.c'
source_filename = "/tmp/tmpntlv4ehl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @vtkstrdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call ptr @malloc(i64 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strcpy(ptr noundef %8, ptr noundef %9)
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare ptr @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpntlv4ehl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @vtkstrdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call ptr @malloc(i64 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strcpy(ptr noundef %8, ptr noundef %9)
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare ptr @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3yhi98g9.c'
source_filename = "/tmp/tmp3yhi98g9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3yhi98g9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpufo7_lhf.c'
source_filename = "/tmp/tmpufo7_lhf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpufo7_lhf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7oq7itr2.c'
source_filename = "/tmp/tmp7oq7itr2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"\0AError: Couldn't fwrite to file\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fwrite_safe(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = call i64 @fwrite(ptr noundef %9, i64 noundef %10, i64 noundef %11, ptr noundef %12)
%14 = load i64, ptr %7, align 8
%15 = icmp ne i64 %13, %14
br i1 %15, label %16, label %20
16: ; preds = %4
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str)
%19 = call i32 @exit(i32 noundef -1) #3
unreachable
20: ; preds = %4
ret void
}
declare i64 @fwrite(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7oq7itr2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"\0AError: Couldn't fwrite to file\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fwrite_safe(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = call i64 @fwrite(ptr noundef %9, i64 noundef %10, i64 noundef %11, ptr noundef %12)
%14 = load i64, ptr %7, align 8
%15 = icmp ne i64 %13, %14
br i1 %15, label %16, label %20
16: ; preds = %4
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str)
%19 = call i32 @exit(i32 noundef -1) #3
unreachable
20: ; preds = %4
ret void
}
declare i64 @fwrite(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgcaasmj7.c'
source_filename = "/tmp/tmpgcaasmj7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @testAnd()
%3 = call i32 (...) @testAdc()
%4 = call i32 (...) @testAsl()
%5 = call i32 (...) @testBranches()
%6 = call i32 (...) @testBit()
%7 = call i32 (...) @testBrk()
%8 = call i32 (...) @testClear()
%9 = call i32 (...) @testCompare()
%10 = call i32 (...) @testDec()
%11 = call i32 (...) @testEor()
%12 = call i32 (...) @testInc()
%13 = call i32 (...) @testJmp()
%14 = call i32 (...) @testLoads()
%15 = call i32 (...) @testLsr()
%16 = call i32 (...) @testOra()
%17 = call i32 (...) @testStack()
%18 = call i32 (...) @testRotate()
%19 = call i32 (...) @testReturn()
%20 = call i32 (...) @testSbc()
%21 = call i32 (...) @testSet()
%22 = call i32 (...) @testSta()
%23 = call i32 (...) @testStores()
%24 = call i32 (...) @testTransfer()
ret i32 0
}
declare i32 @testAnd(...) #1
declare i32 @testAdc(...) #1
declare i32 @testAsl(...) #1
declare i32 @testBranches(...) #1
declare i32 @testBit(...) #1
declare i32 @testBrk(...) #1
declare i32 @testClear(...) #1
declare i32 @testCompare(...) #1
declare i32 @testDec(...) #1
declare i32 @testEor(...) #1
declare i32 @testInc(...) #1
declare i32 @testJmp(...) #1
declare i32 @testLoads(...) #1
declare i32 @testLsr(...) #1
declare i32 @testOra(...) #1
declare i32 @testStack(...) #1
declare i32 @testRotate(...) #1
declare i32 @testReturn(...) #1
declare i32 @testSbc(...) #1
declare i32 @testSet(...) #1
declare i32 @testSta(...) #1
declare i32 @testStores(...) #1
declare i32 @testTransfer(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgcaasmj7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @testAnd()
%3 = call i32 (...) @testAdc()
%4 = call i32 (...) @testAsl()
%5 = call i32 (...) @testBranches()
%6 = call i32 (...) @testBit()
%7 = call i32 (...) @testBrk()
%8 = call i32 (...) @testClear()
%9 = call i32 (...) @testCompare()
%10 = call i32 (...) @testDec()
%11 = call i32 (...) @testEor()
%12 = call i32 (...) @testInc()
%13 = call i32 (...) @testJmp()
%14 = call i32 (...) @testLoads()
%15 = call i32 (...) @testLsr()
%16 = call i32 (...) @testOra()
%17 = call i32 (...) @testStack()
%18 = call i32 (...) @testRotate()
%19 = call i32 (...) @testReturn()
%20 = call i32 (...) @testSbc()
%21 = call i32 (...) @testSet()
%22 = call i32 (...) @testSta()
%23 = call i32 (...) @testStores()
%24 = call i32 (...) @testTransfer()
ret i32 0
}
declare i32 @testAnd(...) #1
declare i32 @testAdc(...) #1
declare i32 @testAsl(...) #1
declare i32 @testBranches(...) #1
declare i32 @testBit(...) #1
declare i32 @testBrk(...) #1
declare i32 @testClear(...) #1
declare i32 @testCompare(...) #1
declare i32 @testDec(...) #1
declare i32 @testEor(...) #1
declare i32 @testInc(...) #1
declare i32 @testJmp(...) #1
declare i32 @testLoads(...) #1
declare i32 @testLsr(...) #1
declare i32 @testOra(...) #1
declare i32 @testStack(...) #1
declare i32 @testRotate(...) #1
declare i32 @testReturn(...) #1
declare i32 @testSbc(...) #1
declare i32 @testSet(...) #1
declare i32 @testSta(...) #1
declare i32 @testStores(...) #1
declare i32 @testTransfer(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzdxf4b4w.c'
source_filename = "/tmp/tmpzdxf4b4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @put_sta(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = call i32 @put_asm(i32 noundef %7, ptr noundef %8, i32 noundef 141)
%10 = load i32, ptr %4, align 4
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = and i32 %12, 255
%14 = call i32 @put_asm(i32 noundef %10, ptr noundef %11, i32 noundef %13)
%15 = load i32, ptr %4, align 4
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, align 4
%18 = ashr i32 %17, 8
%19 = call i32 @put_asm(i32 noundef %15, ptr noundef %16, i32 noundef %18)
ret void
}
declare i32 @put_asm(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzdxf4b4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @put_sta(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = call i32 @put_asm(i32 noundef %7, ptr noundef %8, i32 noundef 141)
%10 = load i32, ptr %4, align 4
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = and i32 %12, 255
%14 = call i32 @put_asm(i32 noundef %10, ptr noundef %11, i32 noundef %13)
%15 = load i32, ptr %4, align 4
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, align 4
%18 = ashr i32 %17, 8
%19 = call i32 @put_asm(i32 noundef %15, ptr noundef %16, i32 noundef %18)
ret void
}
declare i32 @put_asm(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe3ke36ei.c'
source_filename = "/tmp/tmpe3ke36ei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [35 x i8] c"\0AError in reading or end of file.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @xfgets(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call ptr @fgets(ptr noundef %7, i32 noundef %8, ptr noundef %9)
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %3
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str)
br label %15
15: ; preds = %12, %3
ret void
}
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe3ke36ei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [35 x i8] c"\0AError in reading or end of file.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @xfgets(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call ptr @fgets(ptr noundef %7, i32 noundef %8, ptr noundef %9)
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %3
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str)
br label %15
15: ; preds = %12, %3
ret void
}
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5w_rvece.c'
source_filename = "/tmp/tmp5w_rvece.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5w_rvece.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2x3rcl9l.c'
source_filename = "/tmp/tmp2x3rcl9l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dtw_search_full(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca double, align 8
%19 = alloca i32, align 4
%20 = alloca double, align 8
%21 = alloca ptr, align 8
%22 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
store i32 %7, ptr %16, align 4
store double 0.000000e+00, ptr %18, align 8
store i32 -1, ptr %19, align 4
store double 0.000000e+00, ptr %20, align 8
%23 = load ptr, ptr %10, align 8
store ptr %23, ptr %21, align 8
%24 = load i32, ptr %13, align 4
store i32 %24, ptr %22, align 4
%25 = load ptr, ptr %21, align 8
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr %12, align 4
%28 = load i32, ptr %12, align 4
%29 = load ptr, ptr %14, align 8
%30 = load i32, ptr %16, align 4
%31 = call double @compute_dtw_full(ptr noundef %25, ptr noundef %26, i32 noundef %27, i32 noundef %28, ptr noundef %29, i32 noundef %30)
store double %31, ptr %18, align 8
store i32 0, ptr %19, align 4
%32 = load i32, ptr %22, align 4
%33 = load ptr, ptr %21, align 8
%34 = sext i32 %32 to i64
%35 = getelementptr inbounds float, ptr %33, i64 %34
store ptr %35, ptr %21, align 8
store i32 1, ptr %17, align 4
br label %36
36: ; preds = %59, %8
%37 = load i32, ptr %17, align 4
%38 = load i32, ptr %11, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %62
40: ; preds = %36
%41 = load ptr, ptr %21, align 8
%42 = load ptr, ptr %9, align 8
%43 = load i32, ptr %12, align 4
%44 = load i32, ptr %12, align 4
%45 = load ptr, ptr %14, align 8
%46 = load i32, ptr %16, align 4
%47 = call double @compute_dtw_full(ptr noundef %41, ptr noundef %42, i32 noundef %43, i32 noundef %44, ptr noundef %45, i32 noundef %46)
store double %47, ptr %20, align 8
%48 = load double, ptr %20, align 8
%49 = load double, ptr %18, align 8
%50 = fcmp olt double %48, %49
br i1 %50, label %51, label %54
51: ; preds = %40
%52 = load double, ptr %20, align 8
store double %52, ptr %18, align 8
%53 = load i32, ptr %17, align 4
store i32 %53, ptr %19, align 4
br label %54
54: ; preds = %51, %40
%55 = load i32, ptr %22, align 4
%56 = load ptr, ptr %21, align 8
%57 = sext i32 %55 to i64
%58 = getelementptr inbounds float, ptr %56, i64 %57
store ptr %58, ptr %21, align 8
br label %59
59: ; preds = %54
%60 = load i32, ptr %17, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %17, align 4
br label %36, !llvm.loop !6
62: ; preds = %36
%63 = load double, ptr %18, align 8
%64 = load ptr, ptr %15, align 8
store double %63, ptr %64, align 8
%65 = load i32, ptr %19, align 4
ret i32 %65
}
declare double @compute_dtw_full(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2x3rcl9l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dtw_search_full(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca double, align 8
%19 = alloca i32, align 4
%20 = alloca double, align 8
%21 = alloca ptr, align 8
%22 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
store i32 %7, ptr %16, align 4
store double 0.000000e+00, ptr %18, align 8
store i32 -1, ptr %19, align 4
store double 0.000000e+00, ptr %20, align 8
%23 = load ptr, ptr %10, align 8
store ptr %23, ptr %21, align 8
%24 = load i32, ptr %13, align 4
store i32 %24, ptr %22, align 4
%25 = load ptr, ptr %21, align 8
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr %12, align 4
%28 = load i32, ptr %12, align 4
%29 = load ptr, ptr %14, align 8
%30 = load i32, ptr %16, align 4
%31 = call double @compute_dtw_full(ptr noundef %25, ptr noundef %26, i32 noundef %27, i32 noundef %28, ptr noundef %29, i32 noundef %30)
store double %31, ptr %18, align 8
store i32 0, ptr %19, align 4
%32 = load i32, ptr %22, align 4
%33 = load ptr, ptr %21, align 8
%34 = sext i32 %32 to i64
%35 = getelementptr inbounds float, ptr %33, i64 %34
store ptr %35, ptr %21, align 8
store i32 1, ptr %17, align 4
%36 = load i32, ptr %17, align 4
%37 = load i32, ptr %11, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %.lr.ph, label %64
.lr.ph: ; preds = %8
br label %39
39: ; preds = %.lr.ph, %58
%40 = load ptr, ptr %21, align 8
%41 = load ptr, ptr %9, align 8
%42 = load i32, ptr %12, align 4
%43 = load i32, ptr %12, align 4
%44 = load ptr, ptr %14, align 8
%45 = load i32, ptr %16, align 4
%46 = call double @compute_dtw_full(ptr noundef %40, ptr noundef %41, i32 noundef %42, i32 noundef %43, ptr noundef %44, i32 noundef %45)
store double %46, ptr %20, align 8
%47 = load double, ptr %20, align 8
%48 = load double, ptr %18, align 8
%49 = fcmp olt double %47, %48
br i1 %49, label %50, label %53
50: ; preds = %39
%51 = load double, ptr %20, align 8
store double %51, ptr %18, align 8
%52 = load i32, ptr %17, align 4
store i32 %52, ptr %19, align 4
br label %53
53: ; preds = %50, %39
%54 = load i32, ptr %22, align 4
%55 = load ptr, ptr %21, align 8
%56 = sext i32 %54 to i64
%57 = getelementptr inbounds float, ptr %55, i64 %56
store ptr %57, ptr %21, align 8
br label %58
58: ; preds = %53
%59 = load i32, ptr %17, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %17, align 4
%61 = load i32, ptr %17, align 4
%62 = load i32, ptr %11, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %39, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %58
br label %64
64: ; preds = %._crit_edge, %8
%65 = load double, ptr %18, align 8
%66 = load ptr, ptr %15, align 8
store double %65, ptr %66, align 8
%67 = load i32, ptr %19, align 4
ret i32 %67
}
declare double @compute_dtw_full(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpte_28gys.c'
source_filename = "/tmp/tmpte_28gys.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RTLD_LAZY = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [29 x i8] c"Could not load dll '%s': %s\0A\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @zompLoadLib(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr @RTLD_LAZY, align 4
%6 = call ptr @dlopen(ptr noundef %4, i32 noundef %5)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %15
9: ; preds = %1
%10 = load ptr, ptr %2, align 8
%11 = call ptr (...) @dlerror()
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %10, ptr noundef %11)
%13 = load i32, ptr @stdout, align 4
%14 = call i32 @fflush(i32 noundef %13)
br label %15
15: ; preds = %9, %1
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @dlerror(...) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpte_28gys.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RTLD_LAZY = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [29 x i8] c"Could not load dll '%s': %s\0A\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @zompLoadLib(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr @RTLD_LAZY, align 4
%6 = call ptr @dlopen(ptr noundef %4, i32 noundef %5)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %15
9: ; preds = %1
%10 = load ptr, ptr %2, align 8
%11 = call ptr (...) @dlerror()
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %10, ptr noundef %11)
%13 = load i32, ptr @stdout, align 4
%14 = call i32 @fflush(i32 noundef %13)
br label %15
15: ; preds = %9, %1
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @dlerror(...) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg_4_3hqf.c'
source_filename = "/tmp/tmpg_4_3hqf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg_4_3hqf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpke9cvsdt.c'
source_filename = "/tmp/tmpke9cvsdt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @syscon_store_quaddobl_polynomial(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [3 x i32], align 4
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%15 = load i32, ptr %5, align 4
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %10, align 8
%18 = alloca i32, i64 %16, align 16
store i64 %16, ptr %11, align 8
%19 = load i32, ptr %5, align 4
%20 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 0
store i32 %19, ptr %20, align 4
%21 = load i32, ptr %6, align 4
%22 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 1
store i32 %21, ptr %22, align 4
%23 = load i32, ptr %7, align 4
%24 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 2
store i32 %23, ptr %24, align 4
store i32 0, ptr %12, align 4
br label %25
25: ; preds = %39, %4
%26 = load i32, ptr %12, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %42
29: ; preds = %25
%30 = load ptr, ptr %8, align 8
%31 = load i32, ptr %12, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = load i32, ptr %12, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %18, i64 %37
store i32 %35, ptr %38, align 4
br label %39
39: ; preds = %29
%40 = load i32, ptr %12, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %12, align 4
br label %25, !llvm.loop !6
42: ; preds = %25
%43 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 0
%44 = load ptr, ptr %14, align 8
%45 = call i32 @_ada_use_c2phc(i32 noundef 388, ptr noundef %43, ptr noundef %18, ptr noundef %44)
store i32 %45, ptr %13, align 4
%46 = load i32, ptr %13, align 4
%47 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %47)
ret i32 %46
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @_ada_use_c2phc(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 }
attributes #2 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpke9cvsdt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @syscon_store_quaddobl_polynomial(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [3 x i32], align 4
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%15 = load i32, ptr %5, align 4
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %10, align 8
%18 = alloca i32, i64 %16, align 16
store i64 %16, ptr %11, align 8
%19 = load i32, ptr %5, align 4
%20 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 0
store i32 %19, ptr %20, align 4
%21 = load i32, ptr %6, align 4
%22 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 1
store i32 %21, ptr %22, align 4
%23 = load i32, ptr %7, align 4
%24 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 2
store i32 %23, ptr %24, align 4
store i32 0, ptr %12, align 4
%25 = load i32, ptr %12, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %44
.lr.ph: ; preds = %4
br label %28
28: ; preds = %.lr.ph, %38
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %12, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = load i32, ptr %12, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %18, i64 %36
store i32 %34, ptr %37, align 4
br label %38
38: ; preds = %28
%39 = load i32, ptr %12, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %12, align 4
%41 = load i32, ptr %12, align 4
%42 = load i32, ptr %5, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %4
%45 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 0
%46 = load ptr, ptr %14, align 8
%47 = call i32 @_ada_use_c2phc(i32 noundef 388, ptr noundef %45, ptr noundef %18, ptr noundef %46)
store i32 %47, ptr %13, align 4
%48 = load i32, ptr %13, align 4
%49 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %49)
ret i32 %48
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @_ada_use_c2phc(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 }
attributes #2 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpa1zvig7f.c'
source_filename = "/tmp/tmpa1zvig7f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @stat_is_dir(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i64 @stat(ptr noundef %5, ptr noundef %4)
%7 = icmp sgt i64 0, %6
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 -1, ptr %2, align 4
br label %13
9: ; preds = %1
%10 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%11 = load i32, ptr %10, align 4
%12 = call i32 @S_ISDIR(i32 noundef %11)
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %9, %8
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i32 @S_ISDIR(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa1zvig7f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @stat_is_dir(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i64 @stat(ptr noundef %5, ptr noundef %4)
%7 = icmp sgt i64 0, %6
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 -1, ptr %2, align 4
br label %13
9: ; preds = %1
%10 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%11 = load i32, ptr %10, align 4
%12 = call i32 @S_ISDIR(i32 noundef %11)
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %9, %8
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i32 @S_ISDIR(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeav8323n.c'
source_filename = "/tmp/tmpeav8323n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeav8323n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb8k8kny0.c'
source_filename = "/tmp/tmpb8k8kny0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.in6_addr = type { i32 }
@.str = private unnamed_addr constant [5 x i8] c"eth0\00", align 1
@main.own_addr = internal global %struct.in6_addr zeroinitializer, align 4
@main.addr = internal global %struct.in6_addr zeroinitializer, align 4
@INET6_ADDRSTRLEN = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"48\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"64\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"1\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"1024\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"i:n:m:s:f:\00", align 1
@optarg = dso_local global ptr null, align 8
@AF_INET6 = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [11 x i8] c"PREFIX_NET\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"MASK_NET\00", align 1
@.str.8 = private unnamed_addr constant [14 x i8] c"PREFIX_SUBNET\00", align 1
@.str.9 = private unnamed_addr constant [7 x i8] c"SUFFIX\00", align 1
@.str.10 = private unnamed_addr constant [7 x i8] c"METRIC\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"NETNAME\00", align 1
@.str.12 = private unnamed_addr constant [24 x i8] c"/etc/tinc/%s/tinc-slaac\00", align 1
@.str.13 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.14 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.15 = private unnamed_addr constant [6 x i8] c"execl\00", align 1
; Function Attrs: noinline nounwind sspstrong 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 ptr, align 8
%7 = alloca [4096 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
%22 = load i32, ptr @INET6_ADDRSTRLEN, align 4
%23 = zext i32 %22 to i64
%24 = call ptr @llvm.stacksave()
store ptr %24, ptr %8, align 8
%25 = alloca i8, i64 %23, align 16
store i64 %23, ptr %9, align 8
%26 = load i32, ptr @INET6_ADDRSTRLEN, align 4
%27 = zext i32 %26 to i64
%28 = alloca i8, i64 %27, align 16
store i64 %27, ptr %10, align 8
store ptr @.str.1, ptr %11, align 8
store ptr @.str.2, ptr %12, align 8
store ptr @.str.3, ptr %13, align 8
store ptr @.str.4, ptr %14, align 8
store ptr null, ptr %15, align 8
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 0
%31 = load ptr, ptr %30, align 8
%32 = call ptr @strrchr(ptr noundef %31, i8 noundef signext 47)
store ptr %32, ptr %18, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %34, label %37
34: ; preds = %2
%35 = load ptr, ptr %18, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %18, align 8
br label %41
37: ; preds = %2
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 0
%40 = load ptr, ptr %39, align 8
store ptr %40, ptr %18, align 8
br label %41
41: ; preds = %37, %34
br label %42
42: ; preds = %64, %41
%43 = load i32, ptr %4, align 4
%44 = load ptr, ptr %5, align 8
%45 = call i32 @getopt(i32 noundef %43, ptr noundef %44, ptr noundef @.str.5)
store i32 %45, ptr %19, align 4
%46 = icmp sgt i32 %45, 0
br i1 %46, label %47, label %65
47: ; preds = %42
%48 = load i32, ptr %19, align 4
switch i32 %48, label %61 [
i32 105, label %49
i32 110, label %51
i32 109, label %53
i32 115, label %55
i32 119, label %57
i32 102, label %59
]
49: ; preds = %47
%50 = load ptr, ptr @optarg, align 8
store ptr %50, ptr %6, align 8
br label %64
51: ; preds = %47
%52 = load ptr, ptr @optarg, align 8
store ptr %52, ptr %11, align 8
br label %64
53: ; preds = %47
%54 = load ptr, ptr @optarg, align 8
store ptr %54, ptr %12, align 8
br label %64
55: ; preds = %47
%56 = load ptr, ptr @optarg, align 8
store ptr %56, ptr %13, align 8
br label %64
57: ; preds = %47
%58 = load ptr, ptr @optarg, align 8
store ptr %58, ptr %14, align 8
br label %64
59: ; preds = %47
%60 = load ptr, ptr @optarg, align 8
store ptr %60, ptr %15, align 8
br label %64
61: ; preds = %47
%62 = load ptr, ptr %18, align 8
%63 = call i32 @usage(ptr noundef %62)
store i32 0, ptr %3, align 4
store i32 1, ptr %20, align 4
br label %115
64: ; preds = %59, %57, %55, %53, %51, %49
br label %42, !llvm.loop !6
65: ; preds = %42
%66 = load ptr, ptr %6, align 8
%67 = call i32 @wait_for_iface(ptr noundef %66, ptr noundef @main.own_addr, i32 noundef 0)
store i32 %67, ptr %16, align 4
%68 = icmp ne i32 %67, 1
br i1 %68, label %69, label %70
69: ; preds = %65
store i32 1, ptr %3, align 4
store i32 1, ptr %20, align 4
br label %115
70: ; preds = %65
%71 = load ptr, ptr %12, align 8
%72 = call i32 @atoi(ptr noundef %71)
store i32 %72, ptr %17, align 4
%73 = load i32, ptr %17, align 4
%74 = call i32 @mask_addr(ptr noundef @main.own_addr, i32 noundef %73)
%75 = load i32, ptr @AF_INET6, align 4
%76 = trunc i64 %27 to i32
%77 = call i32 @inet_ntop(i32 noundef %75, ptr noundef @main.own_addr, ptr noundef %28, i32 noundef %76)
%78 = load ptr, ptr %11, align 8
%79 = call i32 @atoi(ptr noundef %78)
store i32 %79, ptr %17, align 4
%80 = load i32, ptr @AF_INET6, align 4
%81 = trunc i64 %23 to i32
%82 = call i32 @inet_ntop(i32 noundef %80, ptr noundef @main.own_addr, ptr noundef %25, i32 noundef %81)
%83 = load i32, ptr %17, align 4
%84 = call i32 @mask_addr(ptr noundef @main.addr, i32 noundef %83)
%85 = call i32 @setenv(ptr noundef @.str.6, ptr noundef %25, i32 noundef 1)
%86 = load ptr, ptr %11, align 8
%87 = call i32 @setenv(ptr noundef @.str.7, ptr noundef %86, i32 noundef 1)
%88 = call i32 @setenv(ptr noundef @.str.8, ptr noundef %28, i32 noundef 1)
%89 = load ptr, ptr %13, align 8
%90 = call i32 @setenv(ptr noundef @.str.9, ptr noundef %89, i32 noundef 1)
%91 = load ptr, ptr %14, align 8
%92 = call i32 @setenv(ptr noundef @.str.10, ptr noundef %91, i32 noundef 1)
%93 = load ptr, ptr %15, align 8
%94 = icmp eq ptr %93, null
br i1 %94, label %95, label %106
95: ; preds = %70
%96 = call ptr @getenv(ptr noundef @.str.11)
store ptr %96, ptr %21, align 8
%97 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%98 = load ptr, ptr %21, align 8
%99 = icmp ne ptr %98, null
br i1 %99, label %100, label %102
100: ; preds = %95
%101 = load ptr, ptr %21, align 8
br label %103
102: ; preds = %95
br label %103
103: ; preds = %102, %100
%104 = phi ptr [ %101, %100 ], [ @.str.13, %102 ]
%105 = call i32 @snprintf(ptr noundef %97, i32 noundef 4096, ptr noundef @.str.12, ptr noundef %104)
br label %110
106: ; preds = %70
%107 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%108 = load ptr, ptr %15, align 8
%109 = call i32 @snprintf(ptr noundef %107, i32 noundef 4096, ptr noundef @.str.14, ptr noundef %108)
br label %110
110: ; preds = %106, %103
%111 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%112 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%113 = call i32 @execl(ptr noundef %111, ptr noundef %112, ptr noundef null)
%114 = call i32 @perror(ptr noundef @.str.15)
store i32 0, ptr %3, align 4
store i32 1, ptr %20, align 4
br label %115
115: ; preds = %110, %69, %61
%116 = load ptr, ptr %8, align 8
call void @llvm.stackrestore(ptr %116)
%117 = load i32, ptr %3, align 4
ret i32 %117
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #2
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @usage(ptr noundef) #2
declare i32 @wait_for_iface(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @atoi(ptr noundef) #2
declare i32 @mask_addr(ptr noundef, i32 noundef) #2
declare i32 @inet_ntop(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @setenv(ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @getenv(ptr noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @execl(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 }
attributes #2 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb8k8kny0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.in6_addr = type { i32 }
@.str = private unnamed_addr constant [5 x i8] c"eth0\00", align 1
@main.own_addr = internal global %struct.in6_addr zeroinitializer, align 4
@main.addr = internal global %struct.in6_addr zeroinitializer, align 4
@INET6_ADDRSTRLEN = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"48\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"64\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"1\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"1024\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"i:n:m:s:f:\00", align 1
@optarg = dso_local global ptr null, align 8
@AF_INET6 = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [11 x i8] c"PREFIX_NET\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"MASK_NET\00", align 1
@.str.8 = private unnamed_addr constant [14 x i8] c"PREFIX_SUBNET\00", align 1
@.str.9 = private unnamed_addr constant [7 x i8] c"SUFFIX\00", align 1
@.str.10 = private unnamed_addr constant [7 x i8] c"METRIC\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"NETNAME\00", align 1
@.str.12 = private unnamed_addr constant [24 x i8] c"/etc/tinc/%s/tinc-slaac\00", align 1
@.str.13 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.14 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.15 = private unnamed_addr constant [6 x i8] c"execl\00", align 1
; Function Attrs: noinline nounwind sspstrong 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 ptr, align 8
%7 = alloca [4096 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
%22 = load i32, ptr @INET6_ADDRSTRLEN, align 4
%23 = zext i32 %22 to i64
%24 = call ptr @llvm.stacksave()
store ptr %24, ptr %8, align 8
%25 = alloca i8, i64 %23, align 16
store i64 %23, ptr %9, align 8
%26 = load i32, ptr @INET6_ADDRSTRLEN, align 4
%27 = zext i32 %26 to i64
%28 = alloca i8, i64 %27, align 16
store i64 %27, ptr %10, align 8
store ptr @.str.1, ptr %11, align 8
store ptr @.str.2, ptr %12, align 8
store ptr @.str.3, ptr %13, align 8
store ptr @.str.4, ptr %14, align 8
store ptr null, ptr %15, align 8
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 0
%31 = load ptr, ptr %30, align 8
%32 = call ptr @strrchr(ptr noundef %31, i8 noundef signext 47)
store ptr %32, ptr %18, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %34, label %37
34: ; preds = %2
%35 = load ptr, ptr %18, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %18, align 8
br label %41
37: ; preds = %2
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 0
%40 = load ptr, ptr %39, align 8
store ptr %40, ptr %18, align 8
br label %41
41: ; preds = %37, %34
%42 = load i32, ptr %4, align 4
%43 = load ptr, ptr %5, align 8
%44 = call i32 @getopt(i32 noundef %42, ptr noundef %43, ptr noundef @.str.5)
store i32 %44, ptr %19, align 4
%45 = icmp sgt i32 %44, 0
br i1 %45, label %.lr.ph, label %68
.lr.ph: ; preds = %41
br label %46
46: ; preds = %.lr.ph, %63
%47 = load i32, ptr %19, align 4
switch i32 %47, label %60 [
i32 105, label %48
i32 110, label %50
i32 109, label %52
i32 115, label %54
i32 119, label %56
i32 102, label %58
]
48: ; preds = %46
%49 = load ptr, ptr @optarg, align 8
store ptr %49, ptr %6, align 8
br label %63
50: ; preds = %46
%51 = load ptr, ptr @optarg, align 8
store ptr %51, ptr %11, align 8
br label %63
52: ; preds = %46
%53 = load ptr, ptr @optarg, align 8
store ptr %53, ptr %12, align 8
br label %63
54: ; preds = %46
%55 = load ptr, ptr @optarg, align 8
store ptr %55, ptr %13, align 8
br label %63
56: ; preds = %46
%57 = load ptr, ptr @optarg, align 8
store ptr %57, ptr %14, align 8
br label %63
58: ; preds = %46
%59 = load ptr, ptr @optarg, align 8
store ptr %59, ptr %15, align 8
br label %63
60: ; preds = %46
%61 = load ptr, ptr %18, align 8
%62 = call i32 @usage(ptr noundef %61)
store i32 0, ptr %3, align 4
store i32 1, ptr %20, align 4
br label %118
63: ; preds = %58, %56, %54, %52, %50, %48
%64 = load i32, ptr %4, align 4
%65 = load ptr, ptr %5, align 8
%66 = call i32 @getopt(i32 noundef %64, ptr noundef %65, ptr noundef @.str.5)
store i32 %66, ptr %19, align 4
%67 = icmp sgt i32 %66, 0
br i1 %67, label %46, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %63
br label %68
68: ; preds = %._crit_edge, %41
%69 = load ptr, ptr %6, align 8
%70 = call i32 @wait_for_iface(ptr noundef %69, ptr noundef @main.own_addr, i32 noundef 0)
store i32 %70, ptr %16, align 4
%71 = icmp ne i32 %70, 1
br i1 %71, label %72, label %73
72: ; preds = %68
store i32 1, ptr %3, align 4
store i32 1, ptr %20, align 4
br label %118
73: ; preds = %68
%74 = load ptr, ptr %12, align 8
%75 = call i32 @atoi(ptr noundef %74)
store i32 %75, ptr %17, align 4
%76 = load i32, ptr %17, align 4
%77 = call i32 @mask_addr(ptr noundef @main.own_addr, i32 noundef %76)
%78 = load i32, ptr @AF_INET6, align 4
%79 = trunc i64 %27 to i32
%80 = call i32 @inet_ntop(i32 noundef %78, ptr noundef @main.own_addr, ptr noundef %28, i32 noundef %79)
%81 = load ptr, ptr %11, align 8
%82 = call i32 @atoi(ptr noundef %81)
store i32 %82, ptr %17, align 4
%83 = load i32, ptr @AF_INET6, align 4
%84 = trunc i64 %23 to i32
%85 = call i32 @inet_ntop(i32 noundef %83, ptr noundef @main.own_addr, ptr noundef %25, i32 noundef %84)
%86 = load i32, ptr %17, align 4
%87 = call i32 @mask_addr(ptr noundef @main.addr, i32 noundef %86)
%88 = call i32 @setenv(ptr noundef @.str.6, ptr noundef %25, i32 noundef 1)
%89 = load ptr, ptr %11, align 8
%90 = call i32 @setenv(ptr noundef @.str.7, ptr noundef %89, i32 noundef 1)
%91 = call i32 @setenv(ptr noundef @.str.8, ptr noundef %28, i32 noundef 1)
%92 = load ptr, ptr %13, align 8
%93 = call i32 @setenv(ptr noundef @.str.9, ptr noundef %92, i32 noundef 1)
%94 = load ptr, ptr %14, align 8
%95 = call i32 @setenv(ptr noundef @.str.10, ptr noundef %94, i32 noundef 1)
%96 = load ptr, ptr %15, align 8
%97 = icmp eq ptr %96, null
br i1 %97, label %98, label %109
98: ; preds = %73
%99 = call ptr @getenv(ptr noundef @.str.11)
store ptr %99, ptr %21, align 8
%100 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%101 = load ptr, ptr %21, align 8
%102 = icmp ne ptr %101, null
br i1 %102, label %103, label %105
103: ; preds = %98
%104 = load ptr, ptr %21, align 8
br label %106
105: ; preds = %98
br label %106
106: ; preds = %105, %103
%107 = phi ptr [ %104, %103 ], [ @.str.13, %105 ]
%108 = call i32 @snprintf(ptr noundef %100, i32 noundef 4096, ptr noundef @.str.12, ptr noundef %107)
br label %113
109: ; preds = %73
%110 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%111 = load ptr, ptr %15, align 8
%112 = call i32 @snprintf(ptr noundef %110, i32 noundef 4096, ptr noundef @.str.14, ptr noundef %111)
br label %113
113: ; preds = %109, %106
%114 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%115 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%116 = call i32 @execl(ptr noundef %114, ptr noundef %115, ptr noundef null)
%117 = call i32 @perror(ptr noundef @.str.15)
store i32 0, ptr %3, align 4
store i32 1, ptr %20, align 4
br label %118
118: ; preds = %113, %72, %60
%119 = load ptr, ptr %8, align 8
call void @llvm.stackrestore(ptr %119)
%120 = load i32, ptr %3, align 4
ret i32 %120
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #2
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @usage(ptr noundef) #2
declare i32 @wait_for_iface(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @atoi(ptr noundef) #2
declare i32 @mask_addr(ptr noundef, i32 noundef) #2
declare i32 @inet_ntop(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @setenv(ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @getenv(ptr noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @execl(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 }
attributes #2 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmplz86yg8h.c'
source_filename = "/tmp/tmplz86yg8h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"%Y/%m/%d %H:%M:%S\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [4 x i8] c" < \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @irc_putline(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [20 x i8], align 16
%7 = alloca [511 x i8], align 16
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %2
store i64 0, ptr %3, align 8
br label %74
15: ; preds = %2
%16 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 0
%17 = load ptr, ptr %5, align 8
%18 = call i32 @strncpy(ptr noundef %16, ptr noundef %17, i32 noundef 511)
store i64 0, ptr %8, align 8
br label %19
19: ; preds = %34, %15
%20 = load i64, ptr %8, align 8
%21 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 0
%22 = call i64 @strlen(ptr noundef %21)
%23 = icmp ult i64 %20, %22
br i1 %23, label %24, label %37
24: ; preds = %19
%25 = load i64, ptr %8, align 8
%26 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = call ptr @strchr(ptr noundef @.str, i8 noundef signext %27)
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %33
30: ; preds = %24
%31 = load i64, ptr %8, align 8
%32 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 %31
store i8 0, ptr %32, align 1
br label %37
33: ; preds = %24
br label %34
34: ; preds = %33
%35 = load i64, ptr %8, align 8
%36 = add i64 %35, 1
store i64 %36, ptr %8, align 8
br label %19, !llvm.loop !6
37: ; preds = %30, %19
%38 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 0
%39 = call i64 @strlen(ptr noundef %38)
%40 = icmp ult i64 %39, 510
br i1 %40, label %41, label %44
41: ; preds = %37
%42 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 0
%43 = call i64 @strlen(ptr noundef %42)
store i64 %43, ptr %9, align 8
br label %45
44: ; preds = %37
store i64 510, ptr %9, align 8
br label %45
45: ; preds = %44, %41
%46 = load i32, ptr %4, align 4
%47 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 0
%48 = load i64, ptr %9, align 8
%49 = call i64 @write(i32 noundef %46, ptr noundef %47, i64 noundef %48)
store i64 %49, ptr %10, align 8
%50 = load i32, ptr %4, align 4
%51 = call i64 @strlen(ptr noundef @.str)
%52 = call i64 @write(i32 noundef %50, ptr noundef @.str, i64 noundef %51)
%53 = load i64, ptr %10, align 8
%54 = add i64 %53, %52
store i64 %54, ptr %10, align 8
%55 = load ptr, ptr %5, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 0
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %72
60: ; preds = %45
%61 = call i32 @time(ptr noundef null)
store i32 %61, ptr %11, align 4
%62 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%63 = call i32 @localtime(ptr noundef %11)
%64 = call i32 @strftime(ptr noundef %62, i32 noundef 20, ptr noundef @.str.1, i32 noundef %63)
%65 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%66 = load i32, ptr @stdout, align 4
%67 = call i32 @fputs(ptr noundef %65, i32 noundef %66)
%68 = load i32, ptr @stdout, align 4
%69 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %68)
%70 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 0
%71 = call i32 @puts(ptr noundef %70)
br label %72
72: ; preds = %60, %45
%73 = load i64, ptr %10, align 8
store i64 %73, ptr %3, align 8
br label %74
74: ; preds = %72, %14
%75 = load i64, ptr %3, align 8
ret i64 %75
}
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @strftime(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @localtime(ptr noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplz86yg8h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"%Y/%m/%d %H:%M:%S\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [4 x i8] c" < \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @irc_putline(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [20 x i8], align 16
%7 = alloca [511 x i8], align 16
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %2
store i64 0, ptr %3, align 8
br label %76
15: ; preds = %2
%16 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 0
%17 = load ptr, ptr %5, align 8
%18 = call i32 @strncpy(ptr noundef %16, ptr noundef %17, i32 noundef 511)
store i64 0, ptr %8, align 8
%19 = load i64, ptr %8, align 8
%20 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 0
%21 = call i64 @strlen(ptr noundef %20)
%22 = icmp ult i64 %19, %21
br i1 %22, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %15
br label %23
23: ; preds = %.lr.ph, %33
%24 = load i64, ptr %8, align 8
%25 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 %24
%26 = load i8, ptr %25, align 1
%27 = call ptr @strchr(ptr noundef @.str, i8 noundef signext %26)
%28 = icmp ne ptr %27, null
br i1 %28, label %29, label %32
29: ; preds = %23
%30 = load i64, ptr %8, align 8
%31 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 %30
store i8 0, ptr %31, align 1
br label %39
32: ; preds = %23
br label %33
33: ; preds = %32
%34 = load i64, ptr %8, align 8
%35 = add i64 %34, 1
store i64 %35, ptr %8, align 8
%36 = load i64, ptr %8, align 8
%37 = call i64 @strlen(ptr noundef %20)
%38 = icmp ult i64 %36, %37
br i1 %38, label %23, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %33
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %15
br label %39
39: ; preds = %.loopexit, %29
%40 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 0
%41 = call i64 @strlen(ptr noundef %40)
%42 = icmp ult i64 %41, 510
br i1 %42, label %43, label %46
43: ; preds = %39
%44 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 0
%45 = call i64 @strlen(ptr noundef %44)
store i64 %45, ptr %9, align 8
br label %47
46: ; preds = %39
store i64 510, ptr %9, align 8
br label %47
47: ; preds = %46, %43
%48 = load i32, ptr %4, align 4
%49 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 0
%50 = load i64, ptr %9, align 8
%51 = call i64 @write(i32 noundef %48, ptr noundef %49, i64 noundef %50)
store i64 %51, ptr %10, align 8
%52 = load i32, ptr %4, align 4
%53 = call i64 @strlen(ptr noundef @.str)
%54 = call i64 @write(i32 noundef %52, ptr noundef @.str, i64 noundef %53)
%55 = load i64, ptr %10, align 8
%56 = add i64 %55, %54
store i64 %56, ptr %10, align 8
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 0
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %74
62: ; preds = %47
%63 = call i32 @time(ptr noundef null)
store i32 %63, ptr %11, align 4
%64 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%65 = call i32 @localtime(ptr noundef %11)
%66 = call i32 @strftime(ptr noundef %64, i32 noundef 20, ptr noundef @.str.1, i32 noundef %65)
%67 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%68 = load i32, ptr @stdout, align 4
%69 = call i32 @fputs(ptr noundef %67, i32 noundef %68)
%70 = load i32, ptr @stdout, align 4
%71 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %70)
%72 = getelementptr inbounds [511 x i8], ptr %7, i64 0, i64 0
%73 = call i32 @puts(ptr noundef %72)
br label %74
74: ; preds = %62, %47
%75 = load i64, ptr %10, align 8
store i64 %75, ptr %3, align 8
br label %76
76: ; preds = %74, %14
%77 = load i64, ptr %3, align 8
ret i64 %77
}
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @strftime(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @localtime(ptr noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9mwwv35r.c'
source_filename = "/tmp/tmp9mwwv35r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strncmp(ptr noundef %0, ptr noundef %1, i16 noundef zeroext %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i16, align 2
%8 = alloca i16, align 2
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i16 %2, ptr %7, align 2
store i16 0, ptr %8, align 2
br label %9
9: ; preds = %65, %3
%10 = load ptr, ptr %5, align 8
%11 = load i16, ptr %8, align 2
%12 = zext i16 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %32
17: ; preds = %9
%18 = load ptr, ptr %6, align 8
%19 = load i16, ptr %8, align 2
%20 = zext i16 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %32
25: ; preds = %17
%26 = load i16, ptr %8, align 2
%27 = add i16 %26, 1
store i16 %27, ptr %8, align 2
%28 = zext i16 %26 to i32
%29 = load i16, ptr %7, align 2
%30 = zext i16 %29 to i32
%31 = icmp slt i32 %28, %30
br label %32
32: ; preds = %25, %17, %9
%33 = phi i1 [ false, %17 ], [ false, %9 ], [ %31, %25 ]
br i1 %33, label %34, label %66
34: ; preds = %32
%35 = load ptr, ptr %5, align 8
%36 = load i16, ptr %8, align 2
%37 = zext i16 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = load ptr, ptr %6, align 8
%42 = load i16, ptr %8, align 2
%43 = zext i16 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp sgt i32 %40, %46
br i1 %47, label %48, label %49
48: ; preds = %34
store i32 1, ptr %4, align 4
br label %67
49: ; preds = %34
%50 = load ptr, ptr %5, align 8
%51 = load i16, ptr %8, align 2
%52 = zext i16 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = load ptr, ptr %6, align 8
%57 = load i16, ptr %8, align 2
%58 = zext i16 %57 to i64
%59 = getelementptr inbounds i8, ptr %56, i64 %58
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = icmp slt i32 %55, %61
br i1 %62, label %63, label %64
63: ; preds = %49
store i32 -1, ptr %4, align 4
br label %67
64: ; preds = %49
br label %65
65: ; preds = %64
br label %9, !llvm.loop !6
66: ; preds = %32
store i32 0, ptr %4, align 4
br label %67
67: ; preds = %66, %63, %48
%68 = load i32, ptr %4, align 4
ret i32 %68
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9mwwv35r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strncmp(ptr noundef %0, ptr noundef %1, i16 noundef zeroext %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i16, align 2
%8 = alloca i16, align 2
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i16 %2, ptr %7, align 2
store i16 0, ptr %8, align 2
br label %9
9: ; preds = %65, %3
%10 = load ptr, ptr %5, align 8
%11 = load i16, ptr %8, align 2
%12 = zext i16 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %32
17: ; preds = %9
%18 = load ptr, ptr %6, align 8
%19 = load i16, ptr %8, align 2
%20 = zext i16 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %32
25: ; preds = %17
%26 = load i16, ptr %8, align 2
%27 = add i16 %26, 1
store i16 %27, ptr %8, align 2
%28 = zext i16 %26 to i32
%29 = load i16, ptr %7, align 2
%30 = zext i16 %29 to i32
%31 = icmp slt i32 %28, %30
br label %32
32: ; preds = %25, %17, %9
%33 = phi i1 [ false, %17 ], [ false, %9 ], [ %31, %25 ]
br i1 %33, label %34, label %66
34: ; preds = %32
%35 = load ptr, ptr %5, align 8
%36 = load i16, ptr %8, align 2
%37 = zext i16 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = load ptr, ptr %6, align 8
%42 = load i16, ptr %8, align 2
%43 = zext i16 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp sgt i32 %40, %46
br i1 %47, label %48, label %49
48: ; preds = %34
store i32 1, ptr %4, align 4
br label %67
49: ; preds = %34
%50 = load ptr, ptr %5, align 8
%51 = load i16, ptr %8, align 2
%52 = zext i16 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = load ptr, ptr %6, align 8
%57 = load i16, ptr %8, align 2
%58 = zext i16 %57 to i64
%59 = getelementptr inbounds i8, ptr %56, i64 %58
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = icmp slt i32 %55, %61
br i1 %62, label %63, label %64
63: ; preds = %49
store i32 -1, ptr %4, align 4
br label %67
64: ; preds = %49
br label %65
65: ; preds = %64
br label %9, !llvm.loop !6
66: ; preds = %32
store i32 0, ptr %4, align 4
br label %67
67: ; preds = %66, %63, %48
%68 = load i32, ptr %4, align 4
ret i32 %68
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbt0_18ub.c'
source_filename = "/tmp/tmpbt0_18ub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Enter a line: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"Reading sector 30 from floppy\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [80 x i8], align 16
%2 = alloca [512 x i8], align 16
%3 = call i32 @syscall_printString(ptr noundef @.str)
%4 = getelementptr inbounds [80 x i8], ptr %1, i64 0, i64 0
%5 = call i32 @syscall_readString(ptr noundef %4)
%6 = call i32 @syscall_printString(ptr noundef @.str.1)
%7 = getelementptr inbounds [80 x i8], ptr %1, i64 0, i64 0
%8 = call i32 @syscall_printString(ptr noundef %7)
%9 = call i32 @syscall_printString(ptr noundef @.str.1)
%10 = call i32 @syscall_printString(ptr noundef @.str.2)
%11 = getelementptr inbounds [512 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @syscall_readSector(ptr noundef %11, i32 noundef 30)
%13 = getelementptr inbounds [512 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @syscall_printString(ptr noundef %13)
%15 = call i32 (...) @finished()
ret void
}
declare i32 @syscall_printString(ptr noundef) #1
declare i32 @syscall_readString(ptr noundef) #1
declare i32 @syscall_readSector(ptr noundef, i32 noundef) #1
declare i32 @finished(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbt0_18ub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Enter a line: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"Reading sector 30 from floppy\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [80 x i8], align 16
%2 = alloca [512 x i8], align 16
%3 = call i32 @syscall_printString(ptr noundef @.str)
%4 = getelementptr inbounds [80 x i8], ptr %1, i64 0, i64 0
%5 = call i32 @syscall_readString(ptr noundef %4)
%6 = call i32 @syscall_printString(ptr noundef @.str.1)
%7 = getelementptr inbounds [80 x i8], ptr %1, i64 0, i64 0
%8 = call i32 @syscall_printString(ptr noundef %7)
%9 = call i32 @syscall_printString(ptr noundef @.str.1)
%10 = call i32 @syscall_printString(ptr noundef @.str.2)
%11 = getelementptr inbounds [512 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @syscall_readSector(ptr noundef %11, i32 noundef 30)
%13 = getelementptr inbounds [512 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @syscall_printString(ptr noundef %13)
%15 = call i32 (...) @finished()
ret void
}
declare i32 @syscall_printString(ptr noundef) #1
declare i32 @syscall_readString(ptr noundef) #1
declare i32 @syscall_readSector(ptr noundef, i32 noundef) #1
declare i32 @finished(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv304kqn9.c'
source_filename = "/tmp/tmpv304kqn9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%d%d%d\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"%d %d %d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %6, align 4
br label %11
11: ; preds = %63, %0
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp sgt i32 %13, %14
br i1 %15, label %16, label %20
16: ; preds = %11
%17 = load i32, ptr %3, align 4
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %2, align 4
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %5, align 4
store i32 %19, ptr %2, align 4
br label %20
20: ; preds = %16, %11
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %28
24: ; preds = %20
%25 = load i32, ptr %4, align 4
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %2, align 4
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %5, align 4
store i32 %27, ptr %2, align 4
br label %28
28: ; preds = %24, %20
%29 = load i32, ptr %3, align 4
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %29, %30
%32 = load i32, ptr %2, align 4
%33 = icmp sle i32 %31, %32
br i1 %33, label %34, label %35
34: ; preds = %28
br label %66
35: ; preds = %28
%36 = load i32, ptr %3, align 4
%37 = load i32, ptr %3, align 4
%38 = mul nsw i32 %36, %37
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %4, align 4
%41 = mul nsw i32 %39, %40
%42 = add nsw i32 %38, %41
%43 = load i32, ptr %2, align 4
%44 = load i32, ptr %2, align 4
%45 = mul nsw i32 %43, %44
%46 = sub nsw i32 %42, %45
store i32 %46, ptr %10, align 4
%47 = load i32, ptr %10, align 4
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %35
%50 = load i32, ptr %8, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %8, align 4
br label %62
52: ; preds = %35
%53 = load i32, ptr %10, align 4
%54 = icmp slt i32 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %7, align 4
br label %61
58: ; preds = %52
%59 = load i32, ptr %9, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %9, align 4
br label %61
61: ; preds = %58, %55
br label %62
62: ; preds = %61, %49
br label %63
63: ; preds = %62
%64 = load i32, ptr %6, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %6, align 4
br label %11
66: ; preds = %34
%67 = load i32, ptr %6, align 4
%68 = load i32, ptr %9, align 4
%69 = load i32, ptr %8, align 4
%70 = load i32, ptr %7, align 4
%71 = call i32 @printf(ptr noundef @.str.1, i32 noundef %67, i32 noundef %68, i32 noundef %69, i32 noundef %70)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv304kqn9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%d%d%d\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"%d %d %d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %6, align 4
br label %11
11: ; preds = %63, %0
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp sgt i32 %13, %14
br i1 %15, label %16, label %20
16: ; preds = %11
%17 = load i32, ptr %3, align 4
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %2, align 4
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %5, align 4
store i32 %19, ptr %2, align 4
br label %20
20: ; preds = %16, %11
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %28
24: ; preds = %20
%25 = load i32, ptr %4, align 4
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %2, align 4
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %5, align 4
store i32 %27, ptr %2, align 4
br label %28
28: ; preds = %24, %20
%29 = load i32, ptr %3, align 4
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %29, %30
%32 = load i32, ptr %2, align 4
%33 = icmp sle i32 %31, %32
br i1 %33, label %34, label %35
34: ; preds = %28
br label %66
35: ; preds = %28
%36 = load i32, ptr %3, align 4
%37 = load i32, ptr %3, align 4
%38 = mul nsw i32 %36, %37
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %4, align 4
%41 = mul nsw i32 %39, %40
%42 = add nsw i32 %38, %41
%43 = load i32, ptr %2, align 4
%44 = load i32, ptr %2, align 4
%45 = mul nsw i32 %43, %44
%46 = sub nsw i32 %42, %45
store i32 %46, ptr %10, align 4
%47 = load i32, ptr %10, align 4
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %35
%50 = load i32, ptr %8, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %8, align 4
br label %62
52: ; preds = %35
%53 = load i32, ptr %10, align 4
%54 = icmp slt i32 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %7, align 4
br label %61
58: ; preds = %52
%59 = load i32, ptr %9, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %9, align 4
br label %61
61: ; preds = %58, %55
br label %62
62: ; preds = %61, %49
br label %63
63: ; preds = %62
%64 = load i32, ptr %6, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %6, align 4
br label %11
66: ; preds = %34
%67 = load i32, ptr %6, align 4
%68 = load i32, ptr %9, align 4
%69 = load i32, ptr %8, align 4
%70 = load i32, ptr %7, align 4
%71 = call i32 @printf(ptr noundef @.str.1, i32 noundef %67, i32 noundef %68, i32 noundef %69, i32 noundef %70)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplr__7ap_.c'
source_filename = "/tmp/tmplr__7ap_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @ldexp(double noundef %0, i64 noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca i64, align 8
store double %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call double @pow(i32 noundef 2, i64 noundef %6)
%8 = fmul double %5, %7
ret double %8
}
declare double @pow(i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplr__7ap_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @ldexp(double noundef %0, i64 noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca i64, align 8
store double %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call double @pow(i32 noundef 2, i64 noundef %6)
%8 = fmul double %5, %7
ret double %8
}
declare double @pow(i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpombka56u.c'
source_filename = "/tmp/tmpombka56u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@TIOCSPGRP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tcsetpgrp(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr @TIOCSPGRP, align 4
%7 = call i32 @ioctl(i32 noundef %5, i32 noundef %6, ptr noundef %4)
ret i32 %7
}
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpombka56u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@TIOCSPGRP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tcsetpgrp(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr @TIOCSPGRP, align 4
%7 = call i32 @ioctl(i32 noundef %5, i32 noundef %6, ptr noundef %4)
ret i32 %7
}
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5519j892.c'
source_filename = "/tmp/tmp5519j892.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"ls\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"hurr\0A\00", align 1
@errno = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [11 x i8] c"Error : %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @execlp(ptr noundef @.str, ptr noundef @.str, ptr noundef null)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%4 = call i32 @execlp(ptr noundef @.str, ptr noundef @.str, ptr noundef null)
%5 = load i64, ptr @errno, align 8
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %0
%8 = load i64, ptr @errno, align 8
%9 = call ptr @strerror(i64 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %9)
br label %11
11: ; preds = %7, %0
%12 = load i32, ptr %1, align 4
ret i32 %12
}
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @strerror(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5519j892.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"ls\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"hurr\0A\00", align 1
@errno = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [11 x i8] c"Error : %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @execlp(ptr noundef @.str, ptr noundef @.str, ptr noundef null)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%4 = call i32 @execlp(ptr noundef @.str, ptr noundef @.str, ptr noundef null)
%5 = load i64, ptr @errno, align 8
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %0
%8 = load i64, ptr @errno, align 8
%9 = call ptr @strerror(i64 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %9)
br label %11
11: ; preds = %7, %0
%12 = load i32, ptr %1, align 4
ret i32 %12
}
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @strerror(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv1l3j919.c'
source_filename = "/tmp/tmpv1l3j919.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"match %6d :<%s> len=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Display_Completion(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %5, align 4
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %7, ptr noundef %8, i32 noundef %9)
ret i32 1
}
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv1l3j919.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"match %6d :<%s> len=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Display_Completion(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %5, align 4
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %7, ptr noundef %8, i32 noundef %9)
ret i32 1
}
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp91z61xus.c'
source_filename = "/tmp/tmp91z61xus.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @hdr_median_equivalent_value(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call i64 @lowest_equivalent_value(ptr noundef %5, i64 noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = load i64, ptr %4, align 8
%10 = call i32 @hdr_size_of_equivalent_value_range(ptr noundef %8, i64 noundef %9)
%11 = ashr i32 %10, 1
%12 = sext i32 %11 to i64
%13 = add nsw i64 %7, %12
ret i64 %13
}
declare i64 @lowest_equivalent_value(ptr noundef, i64 noundef) #1
declare i32 @hdr_size_of_equivalent_value_range(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp91z61xus.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @hdr_median_equivalent_value(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call i64 @lowest_equivalent_value(ptr noundef %5, i64 noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = load i64, ptr %4, align 8
%10 = call i32 @hdr_size_of_equivalent_value_range(ptr noundef %8, i64 noundef %9)
%11 = ashr i32 %10, 1
%12 = sext i32 %11 to i64
%13 = add nsw i64 %7, %12
ret i64 %13
}
declare i64 @lowest_equivalent_value(ptr noundef, i64 noundef) #1
declare i32 @hdr_size_of_equivalent_value_range(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp733rsalh.c'
source_filename = "/tmp/tmp733rsalh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"%s <plain text>\0A\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c"Unable to allocate memory for input_string\0A\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"Unable to allocate memory for sign_string\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"Sign Error.\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [19 x i8] c"input_string = %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"signed string = \00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"%x%x\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.8 = private unnamed_addr constant [26 x i8] c"is_valid_signature? = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong 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 ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %21
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %18)
%20 = call i32 @exit(i32 noundef -1) #3
unreachable
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @strlen(ptr noundef %24)
%26 = add nsw i32 %25, 1
%27 = call i64 @calloc(i32 noundef %26, i32 noundef 1)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %7, align 8
%29 = load ptr, ptr %7, align 8
%30 = icmp eq ptr %29, null
br i1 %30, label %31, label %35
31: ; preds = %21
%32 = load i32, ptr @stderr, align 4
%33 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %32, ptr noundef @.str.1)
%34 = call i32 @exit(i32 noundef -1) #3
unreachable
35: ; preds = %21
%36 = load ptr, ptr %7, align 8
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 1
%39 = load ptr, ptr %38, align 8
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds ptr, ptr %40, i64 1
%42 = load ptr, ptr %41, align 8
%43 = call i32 @strlen(ptr noundef %42)
%44 = call i32 @strncpy(ptr noundef %36, ptr noundef %39, i32 noundef %43)
%45 = call ptr @DSA_generate_parameters(i32 noundef 1024, ptr noundef null, i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null)
store ptr %45, ptr %6, align 8
%46 = load ptr, ptr %6, align 8
%47 = call i32 @DSA_generate_key(ptr noundef %46)
%48 = load ptr, ptr %6, align 8
%49 = call i32 @DSA_size(ptr noundef %48)
%50 = call i64 @calloc(i32 noundef %49, i32 noundef 1)
%51 = inttoptr i64 %50 to ptr
store ptr %51, ptr %8, align 8
%52 = load ptr, ptr %8, align 8
%53 = icmp eq ptr %52, null
br i1 %53, label %54, label %58
54: ; preds = %35
%55 = load i32, ptr @stderr, align 4
%56 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %55, ptr noundef @.str.2)
%57 = call i32 @exit(i32 noundef -1) #3
unreachable
58: ; preds = %35
%59 = load ptr, ptr %7, align 8
%60 = load ptr, ptr %7, align 8
%61 = call i32 @strlen(ptr noundef %60)
%62 = load ptr, ptr %8, align 8
%63 = load ptr, ptr %6, align 8
%64 = call i64 @DSA_sign(i32 noundef 0, ptr noundef %59, i32 noundef %61, ptr noundef %62, ptr noundef %9, ptr noundef %63)
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %70
66: ; preds = %58
%67 = load i32, ptr @stderr, align 4
%68 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %67, ptr noundef @.str.3)
%69 = call i32 @exit(i32 noundef -1) #3
unreachable
70: ; preds = %58
%71 = load ptr, ptr %7, align 8
%72 = load ptr, ptr %7, align 8
%73 = call i32 @strlen(ptr noundef %72)
%74 = load ptr, ptr %8, align 8
%75 = load i32, ptr %9, align 4
%76 = load ptr, ptr %6, align 8
%77 = call i32 @DSA_verify(i32 noundef 0, ptr noundef %71, i32 noundef %73, ptr noundef %74, i32 noundef %75, ptr noundef %76)
store i32 %77, ptr %11, align 4
%78 = load i32, ptr @stdout, align 4
%79 = load ptr, ptr %6, align 8
%80 = call i32 @DSAparams_print_fp(i32 noundef %78, ptr noundef %79)
%81 = load ptr, ptr %7, align 8
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %81)
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %10, align 4
br label %84
84: ; preds = %105, %70
%85 = load i32, ptr %10, align 4
%86 = load i32, ptr %9, align 4
%87 = icmp ult i32 %85, %86
br i1 %87, label %88, label %108
88: ; preds = %84
%89 = load ptr, ptr %8, align 8
%90 = load i32, ptr %10, align 4
%91 = zext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %89, i64 %91
%93 = load i8, ptr %92, align 1
%94 = zext i8 %93 to i32
%95 = ashr i32 %94, 4
%96 = and i32 %95, 15
%97 = load ptr, ptr %8, align 8
%98 = load i32, ptr %10, align 4
%99 = zext i32 %98 to i64
%100 = getelementptr inbounds i8, ptr %97, i64 %99
%101 = load i8, ptr %100, align 1
%102 = zext i8 %101 to i32
%103 = and i32 %102, 15
%104 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %96, i32 noundef %103)
br label %105
105: ; preds = %88
%106 = load i32, ptr %10, align 4
%107 = add i32 %106, 1
store i32 %107, ptr %10, align 4
br label %84, !llvm.loop !6
108: ; preds = %84
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%110 = load i32, ptr %11, align 4
%111 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %110)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @DSA_generate_parameters(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @DSA_generate_key(ptr noundef) #1
declare i32 @DSA_size(ptr noundef) #1
declare i64 @DSA_sign(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @DSA_verify(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @DSAparams_print_fp(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp733rsalh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"%s <plain text>\0A\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c"Unable to allocate memory for input_string\0A\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"Unable to allocate memory for sign_string\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"Sign Error.\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [19 x i8] c"input_string = %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"signed string = \00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"%x%x\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.8 = private unnamed_addr constant [26 x i8] c"is_valid_signature? = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong 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 ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %21
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %18)
%20 = call i32 @exit(i32 noundef -1) #3
unreachable
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @strlen(ptr noundef %24)
%26 = add nsw i32 %25, 1
%27 = call i64 @calloc(i32 noundef %26, i32 noundef 1)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %7, align 8
%29 = load ptr, ptr %7, align 8
%30 = icmp eq ptr %29, null
br i1 %30, label %31, label %35
31: ; preds = %21
%32 = load i32, ptr @stderr, align 4
%33 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %32, ptr noundef @.str.1)
%34 = call i32 @exit(i32 noundef -1) #3
unreachable
35: ; preds = %21
%36 = load ptr, ptr %7, align 8
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 1
%39 = load ptr, ptr %38, align 8
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds ptr, ptr %40, i64 1
%42 = load ptr, ptr %41, align 8
%43 = call i32 @strlen(ptr noundef %42)
%44 = call i32 @strncpy(ptr noundef %36, ptr noundef %39, i32 noundef %43)
%45 = call ptr @DSA_generate_parameters(i32 noundef 1024, ptr noundef null, i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null)
store ptr %45, ptr %6, align 8
%46 = load ptr, ptr %6, align 8
%47 = call i32 @DSA_generate_key(ptr noundef %46)
%48 = load ptr, ptr %6, align 8
%49 = call i32 @DSA_size(ptr noundef %48)
%50 = call i64 @calloc(i32 noundef %49, i32 noundef 1)
%51 = inttoptr i64 %50 to ptr
store ptr %51, ptr %8, align 8
%52 = load ptr, ptr %8, align 8
%53 = icmp eq ptr %52, null
br i1 %53, label %54, label %58
54: ; preds = %35
%55 = load i32, ptr @stderr, align 4
%56 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %55, ptr noundef @.str.2)
%57 = call i32 @exit(i32 noundef -1) #3
unreachable
58: ; preds = %35
%59 = load ptr, ptr %7, align 8
%60 = load ptr, ptr %7, align 8
%61 = call i32 @strlen(ptr noundef %60)
%62 = load ptr, ptr %8, align 8
%63 = load ptr, ptr %6, align 8
%64 = call i64 @DSA_sign(i32 noundef 0, ptr noundef %59, i32 noundef %61, ptr noundef %62, ptr noundef %9, ptr noundef %63)
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %70
66: ; preds = %58
%67 = load i32, ptr @stderr, align 4
%68 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %67, ptr noundef @.str.3)
%69 = call i32 @exit(i32 noundef -1) #3
unreachable
70: ; preds = %58
%71 = load ptr, ptr %7, align 8
%72 = load ptr, ptr %7, align 8
%73 = call i32 @strlen(ptr noundef %72)
%74 = load ptr, ptr %8, align 8
%75 = load i32, ptr %9, align 4
%76 = load ptr, ptr %6, align 8
%77 = call i32 @DSA_verify(i32 noundef 0, ptr noundef %71, i32 noundef %73, ptr noundef %74, i32 noundef %75, ptr noundef %76)
store i32 %77, ptr %11, align 4
%78 = load i32, ptr @stdout, align 4
%79 = load ptr, ptr %6, align 8
%80 = call i32 @DSAparams_print_fp(i32 noundef %78, ptr noundef %79)
%81 = load ptr, ptr %7, align 8
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %81)
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %10, align 4
%84 = load i32, ptr %10, align 4
%85 = load i32, ptr %9, align 4
%86 = icmp ult i32 %84, %85
br i1 %86, label %.lr.ph, label %110
.lr.ph: ; preds = %70
br label %87
87: ; preds = %.lr.ph, %104
%88 = load ptr, ptr %8, align 8
%89 = load i32, ptr %10, align 4
%90 = zext i32 %89 to i64
%91 = getelementptr inbounds i8, ptr %88, i64 %90
%92 = load i8, ptr %91, align 1
%93 = zext i8 %92 to i32
%94 = ashr i32 %93, 4
%95 = and i32 %94, 15
%96 = load ptr, ptr %8, align 8
%97 = load i32, ptr %10, align 4
%98 = zext i32 %97 to i64
%99 = getelementptr inbounds i8, ptr %96, i64 %98
%100 = load i8, ptr %99, align 1
%101 = zext i8 %100 to i32
%102 = and i32 %101, 15
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %95, i32 noundef %102)
br label %104
104: ; preds = %87
%105 = load i32, ptr %10, align 4
%106 = add i32 %105, 1
store i32 %106, ptr %10, align 4
%107 = load i32, ptr %10, align 4
%108 = load i32, ptr %9, align 4
%109 = icmp ult i32 %107, %108
br i1 %109, label %87, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %104
br label %110
110: ; preds = %._crit_edge, %70
%111 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%112 = load i32, ptr %11, align 4
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %112)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @DSA_generate_parameters(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @DSA_generate_key(ptr noundef) #1
declare i32 @DSA_size(ptr noundef) #1
declare i64 @DSA_sign(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @DSA_verify(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @DSAparams_print_fp(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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 = { noreturn "frame-pointer"="all" "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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfpa0wlqs.c'
source_filename = "/tmp/tmpfpa0wlqs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"hello(%d)\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c" world(%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @omp_get_thread_num()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
%5 = load i32, ptr %1, align 4
%6 = call i32 @printf(ptr noundef @.str.1, i32 noundef %5)
ret i32 0
}
declare i32 @omp_get_thread_num(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfpa0wlqs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"hello(%d)\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c" world(%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @omp_get_thread_num()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
%5 = load i32, ptr %1, align 4
%6 = call i32 @printf(ptr noundef @.str.1, i32 noundef %5)
ret i32 0
}
declare i32 @omp_get_thread_num(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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, !4}
!llvm.ident = !{!5}
!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 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.