llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpw_fb7e77.c'
source_filename = "/tmp/tmpw_fb7e77.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 @east_occluded_fill_test(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @east_occluded_fill(i32 noundef 0, i32 noundef -256)
%4 = call i32 @assert_int_equal(i32 noundef %3, i32 noundef 0)
ret void
}
declare i32 @assert_int_equal(i32 noundef, i32 noundef) #1
declare i32 @east_occluded_fill(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/tmpw_fb7e77.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 @east_occluded_fill_test(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @east_occluded_fill(i32 noundef 0, i32 noundef -256)
%4 = call i32 @assert_int_equal(i32 noundef %3, i32 noundef 0)
ret void
}
declare i32 @assert_int_equal(i32 noundef, i32 noundef) #1
declare i32 @east_occluded_fill(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/tmpm988fr71.c'
source_filename = "/tmp/tmpm988fr71.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"%d%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 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
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%10 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%11 = load i32, ptr %3, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %6, align 8
%14 = alloca i32, i64 %12, align 16
store i64 %12, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %15
15: ; preds = %25, %0
%16 = load i32, ptr %8, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %28
19: ; preds = %15
%20 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4)
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %14, i64 %23
store i32 %21, ptr %24, align 4
br label %25
25: ; preds = %19
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
br label %15, !llvm.loop !6
28: ; preds = %15
store i32 0, ptr %9, align 4
br label %29
29: ; preds = %44, %28
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %47
33: ; preds = %29
%34 = load i32, ptr %9, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %14, i64 %35
%37 = load i32, ptr %36, align 4
%38 = load i32, ptr %2, align 4
%39 = icmp sle i32 %37, %38
br i1 %39, label %40, label %43
40: ; preds = %33
%41 = load i32, ptr %5, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %5, align 4
br label %43
43: ; preds = %40, %33
br label %44
44: ; preds = %43
%45 = load i32, ptr %9, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %9, align 4
br label %29, !llvm.loop !8
47: ; preds = %29
%48 = load i32, ptr %5, align 4
%49 = call i32 @printf(ptr noundef @.str.2, i32 noundef %48)
store i32 0, ptr %1, align 4
%50 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %50)
%51 = load i32, ptr %1, align 4
ret i32 %51
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #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 willreturn }
!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/tmpm988fr71.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"%d%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 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
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%10 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%11 = load i32, ptr %3, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %6, align 8
%14 = alloca i32, i64 %12, align 16
store i64 %12, ptr %7, align 8
store i32 0, ptr %8, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %30
.lr.ph: ; preds = %0
br label %18
18: ; preds = %.lr.ph, %24
%19 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4)
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %14, i64 %22
store i32 %20, ptr %23, align 4
br label %24
24: ; preds = %18
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %8, align 4
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %3, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %0
store i32 0, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %3, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph2, label %51
.lr.ph2: ; preds = %30
br label %34
34: ; preds = %.lr.ph2, %45
%35 = load i32, ptr %9, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %14, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load i32, ptr %2, align 4
%40 = icmp sle i32 %38, %39
br i1 %40, label %41, label %44
41: ; preds = %34
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %5, align 4
br label %44
44: ; preds = %41, %34
br label %45
45: ; preds = %44
%46 = load i32, ptr %9, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %9, align 4
%48 = load i32, ptr %9, align 4
%49 = load i32, ptr %3, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %45
br label %51
51: ; preds = %._crit_edge3, %30
%52 = load i32, ptr %5, align 4
%53 = call i32 @printf(ptr noundef @.str.2, i32 noundef %52)
store i32 0, ptr %1, align 4
%54 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %54)
%55 = load i32, ptr %1, align 4
ret i32 %55
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #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 willreturn }
!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/tmpunq5ucfk.c'
source_filename = "/tmp/tmpunq5ucfk.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/tmpunq5ucfk.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/tmp9npmhrsp.c'
source_filename = "/tmp/tmp9npmhrsp.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.input = private unnamed_addr constant [12 x i8] c"hello world\00", align 1
@.str = private unnamed_addr constant [18 x i8] c"base64(gzip(%s))\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"from %d to %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Base64: %s\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 ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [12 x i8], align 1
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.input, i64 12, i1 false)
store i32 0, ptr %7, align 4
%9 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %9)
%11 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%12 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%13 = call i32 @strlen(ptr noundef %12)
%14 = call i32 @Compress(ptr noundef %11, i32 noundef %13, ptr noundef %5, ptr noundef %7)
%15 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%16 = call i32 @strlen(ptr noundef %15)
%17 = load i32, ptr %7, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16, i32 noundef %17)
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %7, align 4
%21 = call ptr @base64(ptr noundef %19, i32 noundef %20)
store ptr %21, ptr %8, align 8
%22 = load ptr, ptr %8, align 8
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %22)
%24 = load ptr, ptr %8, align 8
%25 = call i32 @free(ptr noundef %24)
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
declare i32 @printf(ptr noundef, ...) #2
declare i32 @Compress(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare ptr @base64(ptr noundef, i32 noundef) #2
declare i32 @free(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: readwrite) }
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/tmp9npmhrsp.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.input = private unnamed_addr constant [12 x i8] c"hello world\00", align 1
@.str = private unnamed_addr constant [18 x i8] c"base64(gzip(%s))\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"from %d to %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Base64: %s\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 ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [12 x i8], align 1
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.input, i64 12, i1 false)
store i32 0, ptr %7, align 4
%9 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %9)
%11 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%12 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%13 = call i32 @strlen(ptr noundef %12)
%14 = call i32 @Compress(ptr noundef %11, i32 noundef %13, ptr noundef %5, ptr noundef %7)
%15 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%16 = call i32 @strlen(ptr noundef %15)
%17 = load i32, ptr %7, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16, i32 noundef %17)
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %7, align 4
%21 = call ptr @base64(ptr noundef %19, i32 noundef %20)
store ptr %21, ptr %8, align 8
%22 = load ptr, ptr %8, align 8
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %22)
%24 = load ptr, ptr %8, align 8
%25 = call i32 @free(ptr noundef %24)
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
declare i32 @printf(ptr noundef, ...) #2
declare i32 @Compress(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare ptr @base64(ptr noundef, i32 noundef) #2
declare i32 @free(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: readwrite) }
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/tmpm6g76dcg.c'
source_filename = "/tmp/tmpm6g76dcg.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/tmpm6g76dcg.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/tmp2hdglrlz.c'
source_filename = "/tmp/tmp2hdglrlz.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 [14 x i8] c"heaheaaheheaa\00", align 1
@.str = private unnamed_addr constant [3 x i8] c"aa\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\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 [14 x i8], align 1
%7 = 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
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.a, i64 14, i1 false)
store ptr @.str, ptr %7, align 8
%8 = getelementptr inbounds [14 x i8], ptr %6, i64 0, i64 0
%9 = load ptr, ptr %7, align 8
%10 = call i32 @del_substr(ptr noundef %8, ptr noundef %9)
%11 = getelementptr inbounds [14 x i8], ptr %6, i64 0, i64 0
%12 = call i32 @printf(ptr noundef @.str.1, ptr noundef %11)
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
declare i32 @del_substr(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, 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: readwrite) }
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/tmp2hdglrlz.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 [14 x i8] c"heaheaaheheaa\00", align 1
@.str = private unnamed_addr constant [3 x i8] c"aa\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\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 [14 x i8], align 1
%7 = 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
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.a, i64 14, i1 false)
store ptr @.str, ptr %7, align 8
%8 = getelementptr inbounds [14 x i8], ptr %6, i64 0, i64 0
%9 = load ptr, ptr %7, align 8
%10 = call i32 @del_substr(ptr noundef %8, ptr noundef %9)
%11 = getelementptr inbounds [14 x i8], ptr %6, i64 0, i64 0
%12 = call i32 @printf(ptr noundef @.str.1, ptr noundef %11)
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
declare i32 @del_substr(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, 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: readwrite) }
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/tmpklilk6g9.c'
source_filename = "/tmp/tmpklilk6g9.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/tmpklilk6g9.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/tmpfdkm8por.c'
source_filename = "/tmp/tmpfdkm8por.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"%s\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"2.5.04.3236\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
ret i32 0
}
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/tmpfdkm8por.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"%s\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"2.5.04.3236\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
ret i32 0
}
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/tmpxrt590_a.c'
source_filename = "/tmp/tmpxrt590_a.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 { i64, i64 }
@.str = private unnamed_addr constant [26 x i8] c"Enter the source string: \00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"Enter the regular expression: \00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"rm_so = [%d], rm_eo = [%d]\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [47 x i8] c"No match:\0A\09source string = [%s]\0A\09regex = [%s]\0A\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 ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 1, ptr %4, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @llvm.stacksave()
store ptr %8, ptr %5, align 8
%9 = alloca %struct.TYPE_3__, i64 %7, align 16
store i64 %7, ptr %6, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = load ptr, ptr %2, align 8
%12 = call ptr @d_s(ptr noundef %11)
store ptr %12, ptr %2, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%14 = load ptr, ptr %3, align 8
%15 = call ptr @d_s(ptr noundef %14)
store ptr %15, ptr %3, align 8
%16 = load ptr, ptr %2, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i64, ptr %4, align 8
%19 = call i64 @rematch(ptr noundef %16, ptr noundef %17, i64 noundef %18, ptr noundef %9)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %31
21: ; preds = %0
%22 = getelementptr inbounds %struct.TYPE_3__, ptr %9, i64 0
%23 = getelementptr inbounds %struct.TYPE_3__, ptr %22, i32 0, i32 1
%24 = load i64, ptr %23, align 8
%25 = trunc i64 %24 to i32
%26 = getelementptr inbounds %struct.TYPE_3__, ptr %9, i64 0
%27 = getelementptr inbounds %struct.TYPE_3__, ptr %26, i32 0, i32 0
%28 = load i64, ptr %27, align 16
%29 = trunc i64 %28 to i32
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %25, i32 noundef %29)
br label %36
31: ; preds = %0
%32 = load i32, ptr @stderr, align 4
%33 = load ptr, ptr %2, align 8
%34 = load ptr, ptr %3, align 8
%35 = call i32 @fprintf(i32 noundef %32, ptr noundef @.str.3, ptr noundef %33, ptr noundef %34)
br label %36
36: ; preds = %31, %21
store i32 0, ptr %1, align 4
%37 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %37)
%38 = load i32, ptr %1, align 4
ret i32 %38
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @printf(ptr noundef, ...) #2
declare ptr @d_s(ptr noundef) #2
declare i64 @rematch(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2
declare i32 @fprintf(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxrt590_a.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 { i64, i64 }
@.str = private unnamed_addr constant [26 x i8] c"Enter the source string: \00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"Enter the regular expression: \00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"rm_so = [%d], rm_eo = [%d]\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [47 x i8] c"No match:\0A\09source string = [%s]\0A\09regex = [%s]\0A\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 ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 1, ptr %4, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @llvm.stacksave()
store ptr %8, ptr %5, align 8
%9 = alloca %struct.TYPE_3__, i64 %7, align 16
store i64 %7, ptr %6, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = load ptr, ptr %2, align 8
%12 = call ptr @d_s(ptr noundef %11)
store ptr %12, ptr %2, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%14 = load ptr, ptr %3, align 8
%15 = call ptr @d_s(ptr noundef %14)
store ptr %15, ptr %3, align 8
%16 = load ptr, ptr %2, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i64, ptr %4, align 8
%19 = call i64 @rematch(ptr noundef %16, ptr noundef %17, i64 noundef %18, ptr noundef %9)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %31
21: ; preds = %0
%22 = getelementptr inbounds %struct.TYPE_3__, ptr %9, i64 0
%23 = getelementptr inbounds %struct.TYPE_3__, ptr %22, i32 0, i32 1
%24 = load i64, ptr %23, align 8
%25 = trunc i64 %24 to i32
%26 = getelementptr inbounds %struct.TYPE_3__, ptr %9, i64 0
%27 = getelementptr inbounds %struct.TYPE_3__, ptr %26, i32 0, i32 0
%28 = load i64, ptr %27, align 16
%29 = trunc i64 %28 to i32
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %25, i32 noundef %29)
br label %36
31: ; preds = %0
%32 = load i32, ptr @stderr, align 4
%33 = load ptr, ptr %2, align 8
%34 = load ptr, ptr %3, align 8
%35 = call i32 @fprintf(i32 noundef %32, ptr noundef @.str.3, ptr noundef %33, ptr noundef %34)
br label %36
36: ; preds = %31, %21
store i32 0, ptr %1, align 4
%37 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %37)
%38 = load i32, ptr %1, align 4
ret i32 %38
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @printf(ptr noundef, ...) #2
declare ptr @d_s(ptr noundef) #2
declare i64 @rematch(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2
declare i32 @fprintf(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"}
|
; ModuleID = '/tmp/tmp7u9qumyb.c'
source_filename = "/tmp/tmp7u9qumyb.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 @dAUX2bp0a(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @exp(double noundef %3) #2
ret double %4
}
; Function Attrs: nounwind
declare double @exp(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 = { 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/tmp7u9qumyb.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 @dAUX2bp0a(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @exp(double noundef %3) #2
ret double %4
}
; Function Attrs: nounwind
declare double @exp(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 = { 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/tmp1ndlv5hx.c'
source_filename = "/tmp/tmp1ndlv5hx.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" %.6f (early abandoned)\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c" %.6f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @lorentzian(ptr noundef %0, ptr noundef %1, i32 noundef %2, double noundef %3, double noundef %4) #0 {
%6 = alloca double, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store double %3, ptr %10, align 8
store double %4, ptr %11, align 8
store double 0.000000e+00, ptr %12, align 8
br label %13
13: ; preds = %42, %5
%14 = load i32, ptr %9, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %9, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %43
17: ; preds = %13
%18 = load ptr, ptr %7, align 8
%19 = load double, ptr %18, align 8
%20 = load ptr, ptr %8, align 8
%21 = load double, ptr %20, align 8
%22 = fsub double %19, %21
%23 = call i64 @fabs(double noundef %22)
%24 = add nsw i64 1, %23
%25 = call i64 @log(i64 noundef %24)
%26 = sitofp i64 %25 to double
%27 = load double, ptr %12, align 8
%28 = fadd double %27, %26
store double %28, ptr %12, align 8
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds double, ptr %29, i32 1
store ptr %30, ptr %7, align 8
%31 = load ptr, ptr %8, align 8
%32 = getelementptr inbounds double, ptr %31, i32 1
store ptr %32, ptr %8, align 8
%33 = load double, ptr %12, align 8
%34 = load double, ptr %10, align 8
%35 = load double, ptr %11, align 8
%36 = call i64 @FLT_GT(double noundef %33, double noundef %34, double noundef %35)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %17
%39 = load double, ptr %12, align 8
%40 = call i32 @debug(ptr noundef @.str, double noundef %39)
%41 = load double, ptr %12, align 8
store double %41, ptr %6, align 8
br label %47
42: ; preds = %17
br label %13, !llvm.loop !6
43: ; preds = %13
%44 = load double, ptr %12, align 8
%45 = call i32 @debug(ptr noundef @.str.1, double noundef %44)
%46 = load double, ptr %12, align 8
store double %46, ptr %6, align 8
br label %47
47: ; preds = %43, %38
%48 = load double, ptr %6, align 8
ret double %48
}
declare i64 @log(i64 noundef) #1
declare i64 @fabs(double noundef) #1
declare i64 @FLT_GT(double noundef, double noundef, double noundef) #1
declare i32 @debug(ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1ndlv5hx.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" %.6f (early abandoned)\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c" %.6f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @lorentzian(ptr noundef %0, ptr noundef %1, i32 noundef %2, double noundef %3, double noundef %4) #0 {
%6 = alloca double, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store double %3, ptr %10, align 8
store double %4, ptr %11, align 8
store double 0.000000e+00, ptr %12, align 8
%13 = load i32, ptr %9, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %9, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %.lr.ph, label %45
.lr.ph: ; preds = %5
br label %20
16: ; preds = %20
%17 = load i32, ptr %9, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %9, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %._crit_edge, !llvm.loop !6
20: ; preds = %.lr.ph, %16
%21 = load ptr, ptr %7, align 8
%22 = load double, ptr %21, align 8
%23 = load ptr, ptr %8, align 8
%24 = load double, ptr %23, align 8
%25 = fsub double %22, %24
%26 = call i64 @fabs(double noundef %25)
%27 = add nsw i64 1, %26
%28 = call i64 @log(i64 noundef %27)
%29 = sitofp i64 %28 to double
%30 = load double, ptr %12, align 8
%31 = fadd double %30, %29
store double %31, ptr %12, align 8
%32 = load ptr, ptr %7, align 8
%33 = getelementptr inbounds double, ptr %32, i32 1
store ptr %33, ptr %7, align 8
%34 = load ptr, ptr %8, align 8
%35 = getelementptr inbounds double, ptr %34, i32 1
store ptr %35, ptr %8, align 8
%36 = load double, ptr %12, align 8
%37 = load double, ptr %10, align 8
%38 = load double, ptr %11, align 8
%39 = call i64 @FLT_GT(double noundef %36, double noundef %37, double noundef %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %16
41: ; preds = %20
%42 = load double, ptr %12, align 8
%43 = call i32 @debug(ptr noundef @.str, double noundef %42)
%44 = load double, ptr %12, align 8
store double %44, ptr %6, align 8
br label %49
._crit_edge: ; preds = %16
br label %45
45: ; preds = %._crit_edge, %5
%46 = load double, ptr %12, align 8
%47 = call i32 @debug(ptr noundef @.str.1, double noundef %46)
%48 = load double, ptr %12, align 8
store double %48, ptr %6, align 8
br label %49
49: ; preds = %45, %41
%50 = load double, ptr %6, align 8
ret double %50
}
declare i64 @log(i64 noundef) #1
declare i64 @fabs(double noundef) #1
declare i64 @FLT_GT(double noundef, double noundef, double noundef) #1
declare i32 @debug(ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpa0fq6qqn.c'
source_filename = "/tmp/tmpa0fq6qqn.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"
@ShowGraphWindow.warned = internal global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"No GUI in this build!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ShowGraphWindow() #0 {
%1 = load i32, ptr @ShowGraphWindow.warned, align 4
%2 = icmp ne i32 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr @ShowGraphWindow.warned, align 4
br label %5
5: ; preds = %3, %0
ret void
}
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/tmpa0fq6qqn.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"
@ShowGraphWindow.warned = internal global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"No GUI in this build!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ShowGraphWindow() #0 {
%1 = load i32, ptr @ShowGraphWindow.warned, align 4
%2 = icmp ne i32 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr @ShowGraphWindow.warned, align 4
br label %5
5: ; preds = %3, %0
ret void
}
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/tmpos1dyot9.c'
source_filename = "/tmp/tmpos1dyot9.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 [24 x i8] c"Unable to open PIN file\00", align 1
@.str.1 = private unnamed_addr constant [4 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
store i32 0, ptr %1, align 4
%2 = call i64 @gpio_open(i32 noundef 157, i32 noundef 0)
%3 = icmp slt i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @puts(ptr noundef @.str)
ret i32 -1
6: ; preds = %0
br label %7
7: ; preds = %6, %7
%8 = call i32 @gpio_read(i32 noundef 157)
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef %8)
br label %7
}
declare i64 @gpio_open(i32 noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @gpio_read(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/tmpos1dyot9.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 [24 x i8] c"Unable to open PIN file\00", align 1
@.str.1 = private unnamed_addr constant [4 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
store i32 0, ptr %1, align 4
%2 = call i64 @gpio_open(i32 noundef 157, i32 noundef 0)
%3 = icmp slt i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @puts(ptr noundef @.str)
ret i32 -1
6: ; preds = %0
br label %7
7: ; preds = %7, %6
%8 = call i32 @gpio_read(i32 noundef 157)
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef %8)
br label %7
}
declare i64 @gpio_open(i32 noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @gpio_read(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/tmp3qkf5lhs.c'
source_filename = "/tmp/tmp3qkf5lhs.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 [21 x i8] c"\0AEnter an integer > \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"0\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"That's all, have a nice day!\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
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = srem i32 %6, 10
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %2, align 4
store i32 %8, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %13
13: ; preds = %11, %0
br label %14
14: ; preds = %27, %13
%15 = load i32, ptr %2, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %34
17: ; preds = %14
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %17
%21 = load i32, ptr %2, align 4
%22 = sdiv i32 %21, 10
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load i32, ptr %3, align 4
%26 = mul nsw i32 %25, -1
store i32 %26, ptr %3, align 4
br label %27
27: ; preds = %24, %20, %17
%28 = load i32, ptr %3, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %28)
%30 = load i32, ptr %2, align 4
%31 = sdiv i32 %30, 10
store i32 %31, ptr %2, align 4
%32 = load i32, ptr %2, align 4
%33 = srem i32 %32, 10
store i32 %33, ptr %3, align 4
br label %14, !llvm.loop !6
34: ; preds = %14
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3qkf5lhs.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 [21 x i8] c"\0AEnter an integer > \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"0\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"That's all, have a nice day!\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
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = srem i32 %6, 10
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %2, align 4
store i32 %8, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %13
13: ; preds = %11, %0
%14 = load i32, ptr %2, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %.lr.ph, label %35
.lr.ph: ; preds = %13
br label %16
16: ; preds = %.lr.ph, %26
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %26
19: ; preds = %16
%20 = load i32, ptr %2, align 4
%21 = sdiv i32 %20, 10
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = load i32, ptr %3, align 4
%25 = mul nsw i32 %24, -1
store i32 %25, ptr %3, align 4
br label %26
26: ; preds = %23, %19, %16
%27 = load i32, ptr %3, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %27)
%29 = load i32, ptr %2, align 4
%30 = sdiv i32 %29, 10
store i32 %30, ptr %2, align 4
%31 = load i32, ptr %2, align 4
%32 = srem i32 %31, 10
store i32 %32, ptr %3, align 4
%33 = load i32, ptr %2, align 4
%34 = icmp ne i32 %33, 0
br i1 %34, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %35
35: ; preds = %._crit_edge, %13
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp6hz6ammk.c'
source_filename = "/tmp/tmp6hz6ammk.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 @priv_vm_madv_protect_setup(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
ret i32 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/tmp6hz6ammk.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 @priv_vm_madv_protect_setup(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
ret i32 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/tmph8z64b1v.c'
source_filename = "/tmp/tmph8z64b1v.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 @sid_to_key2(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [7 x i8], align 1
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = ashr i32 %6, 24
%8 = and i32 %7, 255
%9 = trunc i32 %8 to i8
%10 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 0
store i8 %9, ptr %10, align 1
%11 = load i32, ptr %3, align 4
%12 = and i32 %11, 255
%13 = trunc i32 %12 to i8
%14 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 1
store i8 %13, ptr %14, align 1
%15 = load i32, ptr %3, align 4
%16 = ashr i32 %15, 8
%17 = and i32 %16, 255
%18 = trunc i32 %17 to i8
%19 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 2
store i8 %18, ptr %19, align 1
%20 = load i32, ptr %3, align 4
%21 = ashr i32 %20, 16
%22 = and i32 %21, 255
%23 = trunc i32 %22 to i8
%24 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 3
store i8 %23, ptr %24, align 1
%25 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 0
%26 = load i8, ptr %25, align 1
%27 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 4
store i8 %26, ptr %27, align 1
%28 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 1
%29 = load i8, ptr %28, align 1
%30 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 5
store i8 %29, ptr %30, align 1
%31 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 2
%32 = load i8, ptr %31, align 1
%33 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 6
store i8 %32, ptr %33, align 1
%34 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 0
%35 = load ptr, ptr %4, align 8
%36 = call i32 @str_to_key(ptr noundef %34, ptr noundef %35)
ret void
}
declare i32 @str_to_key(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/tmph8z64b1v.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 @sid_to_key2(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [7 x i8], align 1
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = ashr i32 %6, 24
%8 = and i32 %7, 255
%9 = trunc i32 %8 to i8
%10 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 0
store i8 %9, ptr %10, align 1
%11 = load i32, ptr %3, align 4
%12 = and i32 %11, 255
%13 = trunc i32 %12 to i8
%14 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 1
store i8 %13, ptr %14, align 1
%15 = load i32, ptr %3, align 4
%16 = ashr i32 %15, 8
%17 = and i32 %16, 255
%18 = trunc i32 %17 to i8
%19 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 2
store i8 %18, ptr %19, align 1
%20 = load i32, ptr %3, align 4
%21 = ashr i32 %20, 16
%22 = and i32 %21, 255
%23 = trunc i32 %22 to i8
%24 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 3
store i8 %23, ptr %24, align 1
%25 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 0
%26 = load i8, ptr %25, align 1
%27 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 4
store i8 %26, ptr %27, align 1
%28 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 1
%29 = load i8, ptr %28, align 1
%30 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 5
store i8 %29, ptr %30, align 1
%31 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 2
%32 = load i8, ptr %31, align 1
%33 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 6
store i8 %32, ptr %33, align 1
%34 = getelementptr inbounds [7 x i8], ptr %5, i64 0, i64 0
%35 = load ptr, ptr %4, align 8
%36 = call i32 @str_to_key(ptr noundef %34, ptr noundef %35)
ret void
}
declare i32 @str_to_key(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/tmpg6_t8506.c'
source_filename = "/tmp/tmpg6_t8506.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 [17 x i8] c"\0AChild Process:\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Enter the command: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"\0AEnter 0 to exit or 1 to continue: \00", align 1
@.str.4 = private unnamed_addr constant [3 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 i32, align 4
%3 = alloca i32, align 4
%4 = alloca [20 x i8], align 16
store i32 0, ptr %1, align 4
%5 = call i32 (...) @fork()
store i32 %5, ptr %2, align 4
br label %6
6: ; preds = %21, %0
%7 = load i32, ptr %2, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 @printf(ptr noundef @.str.1)
%12 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 0
%13 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %12)
%14 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 0
%15 = call i32 @system(ptr noundef %14)
%16 = call i32 @printf(ptr noundef @.str.3)
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %3)
br label %20
18: ; preds = %6
%19 = call i32 (...) @wait()
br label %20
20: ; preds = %18, %9
br label %21
21: ; preds = %20
%22 = load i32, ptr %3, align 4
%23 = icmp eq i32 %22, 1
br i1 %23, label %6, label %24, !llvm.loop !6
24: ; preds = %21
ret i32 0
}
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @system(ptr noundef) #1
declare i32 @wait(...) #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/tmpg6_t8506.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 [17 x i8] c"\0AChild Process:\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Enter the command: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"\0AEnter 0 to exit or 1 to continue: \00", align 1
@.str.4 = private unnamed_addr constant [3 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 i32, align 4
%3 = alloca i32, align 4
%4 = alloca [20 x i8], align 16
store i32 0, ptr %1, align 4
%5 = call i32 (...) @fork()
store i32 %5, ptr %2, align 4
br label %6
6: ; preds = %21, %0
%7 = load i32, ptr %2, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 @printf(ptr noundef @.str.1)
%12 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 0
%13 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %12)
%14 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 0
%15 = call i32 @system(ptr noundef %14)
%16 = call i32 @printf(ptr noundef @.str.3)
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %3)
br label %20
18: ; preds = %6
%19 = call i32 (...) @wait()
br label %20
20: ; preds = %18, %9
br label %21
21: ; preds = %20
%22 = load i32, ptr %3, align 4
%23 = icmp eq i32 %22, 1
br i1 %23, label %6, label %24, !llvm.loop !6
24: ; preds = %21
ret i32 0
}
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @system(ptr noundef) #1
declare i32 @wait(...) #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/tmp27p1s721.c'
source_filename = "/tmp/tmp27p1s721.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/tmp27p1s721.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/tmpnnc1cw0a.c'
source_filename = "/tmp/tmpnnc1cw0a.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"No.\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"Yes.\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
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %3, align 4
store i32 2, ptr %4, align 4
br label %6
6: ; preds = %18, %0
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %21
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %4, align 4
%13 = srem i32 %11, %12
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %10
br label %21
17: ; preds = %10
br label %18
18: ; preds = %17
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %4, align 4
br label %6, !llvm.loop !6
21: ; preds = %16, %6
%22 = load i32, ptr %3, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @printf(ptr noundef @.str.1)
br label %28
26: ; preds = %21
%27 = call i32 @printf(ptr noundef @.str.2)
br label %28
28: ; preds = %26, %24
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnnc1cw0a.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"No.\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"Yes.\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
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %3, align 4
store i32 2, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %17
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %4, align 4
%12 = srem i32 %10, %11
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %9
br label %23
16: ; preds = %9
br label %17
17: ; preds = %16
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %2, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %9, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %17
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %23
23: ; preds = %.loopexit, %15
%24 = load i32, ptr %3, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(ptr noundef @.str.1)
br label %30
28: ; preds = %23
%29 = call i32 @printf(ptr noundef @.str.2)
br label %30
30: ; preds = %28, %26
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxgqz5lnk.c'
source_filename = "/tmp/tmpxgqz5lnk.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.target_theta.coeff = private unnamed_addr constant [21 x float] [float 0x3F06DFA5A0000000, float 0xBFAC4CC120000000, float 0x3FB0E26460000000, float 0x3F8087FF40000000, float 0xBF7A8295A0000000, float 0xBF6A9ED800000000, float 0x3F4A3CA3E0000000, float 0xBF647497E0000000, float 0x3F69A2FD20000000, float 0xBF0D0022A0000000, float 0x3F027BEDA0000000, float 0xBF1CCAB2E0000000, float 0x3F247DD7C0000000, float 0x3F2F5AE2A0000000, float 0xBF36A8BB20000000, float 0xBF01B09820000000, float 0x3F30FADA40000000, float 0xBF33E931C0000000, float 0xBF1F5773A0000000, float 0x3F262230C0000000, float 0.000000e+00], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @target_theta(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 i32, align 4
%8 = alloca float, align 4
%9 = alloca [10 x float], align 16
%10 = alloca [10 x float], align 16
%11 = alloca [10 x float], align 16
%12 = alloca [21 x float], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca float, align 4
%19 = alloca float, align 4
%20 = alloca float, align 4
%21 = alloca float, align 4
%22 = alloca float, align 4
%23 = alloca float, align 4
%24 = alloca float, align 4
%25 = alloca float, align 4
%26 = alloca float, align 4
%27 = alloca float, align 4
%28 = alloca float, align 4
%29 = alloca float, align 4
%30 = alloca float, align 4
%31 = alloca float, align 4
%32 = alloca float, align 4
%33 = alloca float, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 20, ptr %7, align 4
store float 0x3FAFBD0F60000000, ptr %8, align 4
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 40, i1 false)
%34 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 0
store float -1.500000e+01, ptr %34, align 16
%35 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 1
store float -1.500000e+01, ptr %35, align 4
%36 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 2
store float -1.800000e+01, ptr %36, align 8
%37 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 3
store float 0xC032035400000000, ptr %37, align 4
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 40, i1 false)
%38 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 0
store float 1.500000e+01, ptr %38, align 16
%39 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 1
store float 1.500000e+01, ptr %39, align 4
%40 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 2
store float 1.800000e+01, ptr %40, align 8
%41 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 3
store float 0x4031FCEDA0000000, ptr %41, align 4
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.target_theta.coeff, i64 84, i1 false)
store i32 0, ptr %13, align 4
%42 = load i32, ptr %13, align 4
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %80
44: ; preds = %3
store i32 1, ptr %13, align 4
store i32 0, ptr %14, align 4
br label %45
45: ; preds = %76, %44
%46 = load i32, ptr %14, align 4
%47 = load i32, ptr %6, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %79
49: ; preds = %45
%50 = load i32, ptr %14, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x float], ptr %9, i64 0, i64 %51
%53 = load float, ptr %52, align 4
%54 = load i32, ptr %14, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 %55
%57 = load float, ptr %56, align 4
%58 = fcmp oeq float %53, %57
br i1 %58, label %59, label %60
59: ; preds = %49
br label %76
60: ; preds = %49
%61 = load i32, ptr %14, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 %62
%64 = load float, ptr %63, align 4
%65 = load i32, ptr %14, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [10 x float], ptr %9, i64 0, i64 %66
%68 = load float, ptr %67, align 4
%69 = fsub float %64, %68
%70 = fpext float %69 to double
%71 = fdiv double 2.000000e+00, %70
%72 = fptrunc double %71 to float
%73 = load i32, ptr %14, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 %74
store float %72, ptr %75, align 4
br label %76
76: ; preds = %60, %59
%77 = load i32, ptr %14, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %14, align 4
br label %45, !llvm.loop !6
79: ; preds = %45
br label %80
80: ; preds = %79, %3
%81 = load ptr, ptr %4, align 8
%82 = getelementptr inbounds float, ptr %81, i64 0
%83 = load float, ptr %82, align 4
%84 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 0
%85 = load float, ptr %84, align 16
%86 = fsub float %83, %85
%87 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 0
%88 = load float, ptr %87, align 16
%89 = fmul float %86, %88
%90 = fpext float %89 to double
%91 = fadd double 1.000000e+00, %90
%92 = fptrunc double %91 to float
store float %92, ptr %15, align 4
%93 = load ptr, ptr %5, align 8
%94 = getelementptr inbounds float, ptr %93, i64 0
%95 = load float, ptr %94, align 4
%96 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 0
%97 = load float, ptr %96, align 16
%98 = fmul float %95, %97
store float %98, ptr %16, align 4
%99 = load ptr, ptr %4, align 8
%100 = getelementptr inbounds float, ptr %99, i64 1
%101 = load float, ptr %100, align 4
%102 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 1
%103 = load float, ptr %102, align 4
%104 = fsub float %101, %103
%105 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 1
%106 = load float, ptr %105, align 4
%107 = fmul float %104, %106
%108 = fpext float %107 to double
%109 = fadd double 1.000000e+00, %108
%110 = fptrunc double %109 to float
store float %110, ptr %17, align 4
%111 = load ptr, ptr %5, align 8
%112 = getelementptr inbounds float, ptr %111, i64 1
%113 = load float, ptr %112, align 4
%114 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 1
%115 = load float, ptr %114, align 4
%116 = fmul float %113, %115
store float %116, ptr %18, align 4
%117 = load ptr, ptr %4, align 8
%118 = getelementptr inbounds float, ptr %117, i64 2
%119 = load float, ptr %118, align 4
%120 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 2
%121 = load float, ptr %120, align 8
%122 = fsub float %119, %121
%123 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 2
%124 = load float, ptr %123, align 8
%125 = fmul float %122, %124
%126 = fpext float %125 to double
%127 = fadd double 1.000000e+00, %126
%128 = fptrunc double %127 to float
store float %128, ptr %19, align 4
%129 = load ptr, ptr %5, align 8
%130 = getelementptr inbounds float, ptr %129, i64 2
%131 = load float, ptr %130, align 4
%132 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 2
%133 = load float, ptr %132, align 8
%134 = fmul float %131, %133
store float %134, ptr %20, align 4
%135 = load ptr, ptr %4, align 8
%136 = getelementptr inbounds float, ptr %135, i64 3
%137 = load float, ptr %136, align 4
%138 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 3
%139 = load float, ptr %138, align 4
%140 = fsub float %137, %139
%141 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 3
%142 = load float, ptr %141, align 4
%143 = fmul float %140, %142
%144 = fpext float %143 to double
%145 = fadd double 1.000000e+00, %144
%146 = fptrunc double %145 to float
store float %146, ptr %21, align 4
%147 = load ptr, ptr %5, align 8
%148 = getelementptr inbounds float, ptr %147, i64 3
%149 = load float, ptr %148, align 4
%150 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 3
%151 = load float, ptr %150, align 4
%152 = fmul float %149, %151
store float %152, ptr %22, align 4
%153 = load float, ptr %15, align 4
store float %153, ptr %23, align 4
%154 = load float, ptr %23, align 4
%155 = load float, ptr %15, align 4
%156 = fmul float %154, %155
store float %156, ptr %24, align 4
%157 = load float, ptr %17, align 4
store float %157, ptr %25, align 4
%158 = load float, ptr %25, align 4
%159 = load float, ptr %17, align 4
%160 = fmul float %158, %159
store float %160, ptr %26, align 4
%161 = load float, ptr %19, align 4
store float %161, ptr %27, align 4
%162 = load float, ptr %27, align 4
%163 = load float, ptr %19, align 4
%164 = fmul float %162, %163
store float %164, ptr %28, align 4
%165 = load float, ptr %21, align 4
store float %165, ptr %29, align 4
%166 = load float, ptr %29, align 4
%167 = load float, ptr %21, align 4
%168 = fmul float %166, %167
store float %168, ptr %30, align 4
%169 = load float, ptr %8, align 4
%170 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 0
%171 = load float, ptr %170, align 16
%172 = fadd float %169, %171
%173 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 1
%174 = load float, ptr %173, align 4
%175 = load float, ptr %25, align 4
%176 = call float @llvm.fmuladd.f32(float %174, float %175, float %172)
%177 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 2
%178 = load float, ptr %177, align 8
%179 = load float, ptr %29, align 4
%180 = call float @llvm.fmuladd.f32(float %178, float %179, float %176)
%181 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 3
%182 = load float, ptr %181, align 4
%183 = load float, ptr %23, align 4
%184 = fmul float %182, %183
%185 = load float, ptr %27, align 4
%186 = call float @llvm.fmuladd.f32(float %184, float %185, float %180)
%187 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 4
%188 = load float, ptr %187, align 16
%189 = load float, ptr %28, align 4
%190 = call float @llvm.fmuladd.f32(float %188, float %189, float %186)
%191 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 5
%192 = load float, ptr %191, align 4
%193 = load float, ptr %25, align 4
%194 = fmul float %192, %193
%195 = load float, ptr %29, align 4
%196 = call float @llvm.fmuladd.f32(float %194, float %195, float %190)
%197 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 6
%198 = load float, ptr %197, align 8
%199 = load float, ptr %26, align 4
%200 = call float @llvm.fmuladd.f32(float %198, float %199, float %196)
%201 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 7
%202 = load float, ptr %201, align 4
%203 = load float, ptr %24, align 4
%204 = call float @llvm.fmuladd.f32(float %202, float %203, float %200)
store float %204, ptr %31, align 4
%205 = load float, ptr %31, align 4
%206 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 8
%207 = load float, ptr %206, align 16
%208 = load float, ptr %30, align 4
%209 = call float @llvm.fmuladd.f32(float %207, float %208, float %205)
%210 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 9
%211 = load float, ptr %210, align 4
%212 = load float, ptr %27, align 4
%213 = call float @llvm.fmuladd.f32(float %211, float %212, float %209)
%214 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 10
%215 = load float, ptr %214, align 8
%216 = load float, ptr %23, align 4
%217 = call float @llvm.fmuladd.f32(float %215, float %216, float %213)
%218 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 11
%219 = load float, ptr %218, align 4
%220 = load float, ptr %23, align 4
%221 = fmul float %219, %220
%222 = load float, ptr %25, align 4
%223 = fmul float %221, %222
%224 = load float, ptr %27, align 4
%225 = call float @llvm.fmuladd.f32(float %223, float %224, float %217)
%226 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 12
%227 = load float, ptr %226, align 16
%228 = load float, ptr %25, align 4
%229 = fmul float %227, %228
%230 = load float, ptr %28, align 4
%231 = call float @llvm.fmuladd.f32(float %229, float %230, float %225)
%232 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 13
%233 = load float, ptr %232, align 4
%234 = load float, ptr %25, align 4
%235 = fmul float %233, %234
%236 = load float, ptr %28, align 4
%237 = fmul float %235, %236
%238 = load float, ptr %29, align 4
%239 = call float @llvm.fmuladd.f32(float %237, float %238, float %231)
%240 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 14
%241 = load float, ptr %240, align 8
%242 = load float, ptr %28, align 4
%243 = fmul float %241, %242
%244 = load float, ptr %30, align 4
%245 = call float @llvm.fmuladd.f32(float %243, float %244, float %239)
%246 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 15
%247 = load float, ptr %246, align 4
%248 = load float, ptr %24, align 4
%249 = fmul float %247, %248
%250 = load float, ptr %29, align 4
%251 = call float @llvm.fmuladd.f32(float %249, float %250, float %245)
%252 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 16
%253 = load float, ptr %252, align 16
%254 = load float, ptr %23, align 4
%255 = fmul float %253, %254
%256 = load float, ptr %27, align 4
%257 = fmul float %255, %256
%258 = load float, ptr %29, align 4
%259 = call float @llvm.fmuladd.f32(float %257, float %258, float %251)
store float %259, ptr %31, align 4
%260 = load float, ptr %31, align 4
%261 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 17
%262 = load float, ptr %261, align 4
%263 = load float, ptr %28, align 4
%264 = fmul float %262, %263
%265 = load float, ptr %29, align 4
%266 = call float @llvm.fmuladd.f32(float %264, float %265, float %260)
%267 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 18
%268 = load float, ptr %267, align 8
%269 = load float, ptr %24, align 4
%270 = fmul float %268, %269
%271 = load float, ptr %26, align 4
%272 = call float @llvm.fmuladd.f32(float %270, float %271, float %266)
%273 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 19
%274 = load float, ptr %273, align 4
%275 = load float, ptr %24, align 4
%276 = fmul float %274, %275
%277 = load float, ptr %25, align 4
%278 = fmul float %276, %277
%279 = load float, ptr %29, align 4
%280 = call float @llvm.fmuladd.f32(float %278, float %279, float %272)
store float %280, ptr %31, align 4
%281 = load float, ptr %16, align 4
%282 = fadd float 0.000000e+00, %281
%283 = load float, ptr %18, align 4
%284 = fadd float %282, %283
%285 = load float, ptr %20, align 4
%286 = fadd float %284, %285
%287 = load float, ptr %22, align 4
%288 = fadd float %286, %287
store float %288, ptr %32, align 4
%289 = load float, ptr %32, align 4
%290 = fcmp oeq float %289, 0.000000e+00
br i1 %290, label %291, label %292
291: ; preds = %80
br label %501
292: ; preds = %80
%293 = load float, ptr %16, align 4
%294 = load float, ptr %16, align 4
%295 = fmul float %293, %294
%296 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 3
%297 = load float, ptr %296, align 4
%298 = load float, ptr %27, align 4
%299 = call float @llvm.fmuladd.f32(float %297, float %298, float 0.000000e+00)
%300 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 7
%301 = load float, ptr %300, align 4
%302 = fmul float 2.000000e+00, %301
%303 = load float, ptr %23, align 4
%304 = call float @llvm.fmuladd.f32(float %302, float %303, float %299)
%305 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 10
%306 = load float, ptr %305, align 8
%307 = fadd float %304, %306
%308 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 11
%309 = load float, ptr %308, align 4
%310 = load float, ptr %25, align 4
%311 = fmul float %309, %310
%312 = load float, ptr %27, align 4
%313 = call float @llvm.fmuladd.f32(float %311, float %312, float %307)
%314 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 15
%315 = load float, ptr %314, align 4
%316 = fmul float 2.000000e+00, %315
%317 = load float, ptr %23, align 4
%318 = fmul float %316, %317
%319 = load float, ptr %29, align 4
%320 = call float @llvm.fmuladd.f32(float %318, float %319, float %313)
%321 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 16
%322 = load float, ptr %321, align 16
%323 = load float, ptr %27, align 4
%324 = fmul float %322, %323
%325 = load float, ptr %29, align 4
%326 = call float @llvm.fmuladd.f32(float %324, float %325, float %320)
%327 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 18
%328 = load float, ptr %327, align 8
%329 = fmul float 2.000000e+00, %328
%330 = load float, ptr %23, align 4
%331 = fmul float %329, %330
%332 = load float, ptr %26, align 4
%333 = call float @llvm.fmuladd.f32(float %331, float %332, float %326)
%334 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 19
%335 = load float, ptr %334, align 4
%336 = fmul float 2.000000e+00, %335
%337 = load float, ptr %23, align 4
%338 = fmul float %336, %337
%339 = load float, ptr %25, align 4
%340 = fmul float %338, %339
%341 = load float, ptr %29, align 4
%342 = call float @llvm.fmuladd.f32(float %340, float %341, float %333)
%343 = call float @pow(float noundef %342, i32 noundef 2)
%344 = load float, ptr %18, align 4
%345 = load float, ptr %18, align 4
%346 = fmul float %344, %345
%347 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 1
%348 = load float, ptr %347, align 4
%349 = fadd float 0.000000e+00, %348
%350 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 5
%351 = load float, ptr %350, align 4
%352 = load float, ptr %29, align 4
%353 = call float @llvm.fmuladd.f32(float %351, float %352, float %349)
%354 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 6
%355 = load float, ptr %354, align 8
%356 = fmul float 2.000000e+00, %355
%357 = load float, ptr %25, align 4
%358 = call float @llvm.fmuladd.f32(float %356, float %357, float %353)
%359 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 11
%360 = load float, ptr %359, align 4
%361 = load float, ptr %23, align 4
%362 = fmul float %360, %361
%363 = load float, ptr %27, align 4
%364 = call float @llvm.fmuladd.f32(float %362, float %363, float %358)
%365 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 12
%366 = load float, ptr %365, align 16
%367 = load float, ptr %28, align 4
%368 = call float @llvm.fmuladd.f32(float %366, float %367, float %364)
%369 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 13
%370 = load float, ptr %369, align 4
%371 = load float, ptr %28, align 4
%372 = fmul float %370, %371
%373 = load float, ptr %29, align 4
%374 = call float @llvm.fmuladd.f32(float %372, float %373, float %368)
%375 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 18
%376 = load float, ptr %375, align 8
%377 = fmul float 2.000000e+00, %376
%378 = load float, ptr %25, align 4
%379 = fmul float %377, %378
%380 = load float, ptr %24, align 4
%381 = call float @llvm.fmuladd.f32(float %379, float %380, float %374)
%382 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 19
%383 = load float, ptr %382, align 4
%384 = load float, ptr %24, align 4
%385 = fmul float %383, %384
%386 = load float, ptr %29, align 4
%387 = call float @llvm.fmuladd.f32(float %385, float %386, float %381)
%388 = call float @pow(float noundef %387, i32 noundef 2)
%389 = fmul float %346, %388
%390 = call float @llvm.fmuladd.f32(float %295, float %343, float %389)
%391 = load float, ptr %20, align 4
%392 = load float, ptr %20, align 4
%393 = fmul float %391, %392
%394 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 3
%395 = load float, ptr %394, align 4
%396 = load float, ptr %23, align 4
%397 = call float @llvm.fmuladd.f32(float %395, float %396, float 0.000000e+00)
%398 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 4
%399 = load float, ptr %398, align 16
%400 = fmul float 2.000000e+00, %399
%401 = load float, ptr %27, align 4
%402 = call float @llvm.fmuladd.f32(float %400, float %401, float %397)
%403 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 9
%404 = load float, ptr %403, align 4
%405 = fadd float %402, %404
%406 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 11
%407 = load float, ptr %406, align 4
%408 = load float, ptr %23, align 4
%409 = fmul float %407, %408
%410 = load float, ptr %25, align 4
%411 = call float @llvm.fmuladd.f32(float %409, float %410, float %405)
%412 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 12
%413 = load float, ptr %412, align 16
%414 = fmul float 2.000000e+00, %413
%415 = load float, ptr %27, align 4
%416 = fmul float %414, %415
%417 = load float, ptr %25, align 4
%418 = call float @llvm.fmuladd.f32(float %416, float %417, float %411)
%419 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 13
%420 = load float, ptr %419, align 4
%421 = fmul float 2.000000e+00, %420
%422 = load float, ptr %27, align 4
%423 = fmul float %421, %422
%424 = load float, ptr %25, align 4
%425 = fmul float %423, %424
%426 = load float, ptr %29, align 4
%427 = call float @llvm.fmuladd.f32(float %425, float %426, float %418)
%428 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 14
%429 = load float, ptr %428, align 8
%430 = fmul float 2.000000e+00, %429
%431 = load float, ptr %27, align 4
%432 = fmul float %430, %431
%433 = load float, ptr %30, align 4
%434 = call float @llvm.fmuladd.f32(float %432, float %433, float %427)
%435 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 16
%436 = load float, ptr %435, align 16
%437 = load float, ptr %23, align 4
%438 = fmul float %436, %437
%439 = load float, ptr %29, align 4
%440 = call float @llvm.fmuladd.f32(float %438, float %439, float %434)
%441 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 17
%442 = load float, ptr %441, align 4
%443 = fmul float 2.000000e+00, %442
%444 = load float, ptr %27, align 4
%445 = fmul float %443, %444
%446 = load float, ptr %29, align 4
%447 = call float @llvm.fmuladd.f32(float %445, float %446, float %440)
%448 = call float @pow(float noundef %447, i32 noundef 2)
%449 = call float @llvm.fmuladd.f32(float %393, float %448, float %390)
%450 = load float, ptr %22, align 4
%451 = load float, ptr %22, align 4
%452 = fmul float %450, %451
%453 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 2
%454 = load float, ptr %453, align 8
%455 = fadd float 0.000000e+00, %454
%456 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 5
%457 = load float, ptr %456, align 4
%458 = load float, ptr %25, align 4
%459 = call float @llvm.fmuladd.f32(float %457, float %458, float %455)
%460 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 8
%461 = load float, ptr %460, align 16
%462 = fmul float 2.000000e+00, %461
%463 = load float, ptr %29, align 4
%464 = call float @llvm.fmuladd.f32(float %462, float %463, float %459)
%465 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 13
%466 = load float, ptr %465, align 4
%467 = load float, ptr %25, align 4
%468 = fmul float %466, %467
%469 = load float, ptr %28, align 4
%470 = call float @llvm.fmuladd.f32(float %468, float %469, float %464)
%471 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 14
%472 = load float, ptr %471, align 8
%473 = fmul float 2.000000e+00, %472
%474 = load float, ptr %29, align 4
%475 = fmul float %473, %474
%476 = load float, ptr %28, align 4
%477 = call float @llvm.fmuladd.f32(float %475, float %476, float %470)
%478 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 15
%479 = load float, ptr %478, align 4
%480 = load float, ptr %24, align 4
%481 = call float @llvm.fmuladd.f32(float %479, float %480, float %477)
%482 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 16
%483 = load float, ptr %482, align 16
%484 = load float, ptr %23, align 4
%485 = fmul float %483, %484
%486 = load float, ptr %27, align 4
%487 = call float @llvm.fmuladd.f32(float %485, float %486, float %481)
%488 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 17
%489 = load float, ptr %488, align 4
%490 = load float, ptr %28, align 4
%491 = call float @llvm.fmuladd.f32(float %489, float %490, float %487)
%492 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 19
%493 = load float, ptr %492, align 4
%494 = load float, ptr %24, align 4
%495 = fmul float %493, %494
%496 = load float, ptr %25, align 4
%497 = call float @llvm.fmuladd.f32(float %495, float %496, float %491)
%498 = call float @pow(float noundef %497, i32 noundef 2)
%499 = call float @llvm.fmuladd.f32(float %452, float %498, float %449)
%500 = call float @sqrt(float noundef %499)
br label %501
501: ; preds = %292, %291
%502 = phi float [ 0.000000e+00, %291 ], [ %500, %292 ]
store float %502, ptr %33, align 4
%503 = load float, ptr %33, align 4
%504 = load ptr, ptr %5, align 8
%505 = getelementptr inbounds float, ptr %504, i64 0
store float %503, ptr %505, align 4
%506 = load float, ptr %31, align 4
ret float %506
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; 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) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3
declare float @sqrt(float noundef) #4
declare float @pow(float noundef, i32 noundef) #4
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "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/tmpxgqz5lnk.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.target_theta.coeff = private unnamed_addr constant [21 x float] [float 0x3F06DFA5A0000000, float 0xBFAC4CC120000000, float 0x3FB0E26460000000, float 0x3F8087FF40000000, float 0xBF7A8295A0000000, float 0xBF6A9ED800000000, float 0x3F4A3CA3E0000000, float 0xBF647497E0000000, float 0x3F69A2FD20000000, float 0xBF0D0022A0000000, float 0x3F027BEDA0000000, float 0xBF1CCAB2E0000000, float 0x3F247DD7C0000000, float 0x3F2F5AE2A0000000, float 0xBF36A8BB20000000, float 0xBF01B09820000000, float 0x3F30FADA40000000, float 0xBF33E931C0000000, float 0xBF1F5773A0000000, float 0x3F262230C0000000, float 0.000000e+00], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @target_theta(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 i32, align 4
%8 = alloca float, align 4
%9 = alloca [10 x float], align 16
%10 = alloca [10 x float], align 16
%11 = alloca [10 x float], align 16
%12 = alloca [21 x float], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca float, align 4
%19 = alloca float, align 4
%20 = alloca float, align 4
%21 = alloca float, align 4
%22 = alloca float, align 4
%23 = alloca float, align 4
%24 = alloca float, align 4
%25 = alloca float, align 4
%26 = alloca float, align 4
%27 = alloca float, align 4
%28 = alloca float, align 4
%29 = alloca float, align 4
%30 = alloca float, align 4
%31 = alloca float, align 4
%32 = alloca float, align 4
%33 = alloca float, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 20, ptr %7, align 4
store float 0x3FAFBD0F60000000, ptr %8, align 4
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 40, i1 false)
%34 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 0
store float -1.500000e+01, ptr %34, align 16
%35 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 1
store float -1.500000e+01, ptr %35, align 4
%36 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 2
store float -1.800000e+01, ptr %36, align 8
%37 = getelementptr inbounds [10 x float], ptr %9, i32 0, i32 3
store float 0xC032035400000000, ptr %37, align 4
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 40, i1 false)
%38 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 0
store float 1.500000e+01, ptr %38, align 16
%39 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 1
store float 1.500000e+01, ptr %39, align 4
%40 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 2
store float 1.800000e+01, ptr %40, align 8
%41 = getelementptr inbounds [10 x float], ptr %10, i32 0, i32 3
store float 0x4031FCEDA0000000, ptr %41, align 4
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.target_theta.coeff, i64 84, i1 false)
store i32 0, ptr %13, align 4
%42 = load i32, ptr %13, align 4
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %82
44: ; preds = %3
store i32 1, ptr %13, align 4
store i32 0, ptr %14, align 4
%45 = load i32, ptr %14, align 4
%46 = load i32, ptr %6, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %.lr.ph, label %81
.lr.ph: ; preds = %44
br label %48
48: ; preds = %.lr.ph, %75
%49 = load i32, ptr %14, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [10 x float], ptr %9, i64 0, i64 %50
%52 = load float, ptr %51, align 4
%53 = load i32, ptr %14, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 %54
%56 = load float, ptr %55, align 4
%57 = fcmp oeq float %52, %56
br i1 %57, label %58, label %59
58: ; preds = %48
br label %75
59: ; preds = %48
%60 = load i32, ptr %14, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 %61
%63 = load float, ptr %62, align 4
%64 = load i32, ptr %14, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [10 x float], ptr %9, i64 0, i64 %65
%67 = load float, ptr %66, align 4
%68 = fsub float %63, %67
%69 = fpext float %68 to double
%70 = fdiv double 2.000000e+00, %69
%71 = fptrunc double %70 to float
%72 = load i32, ptr %14, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 %73
store float %71, ptr %74, align 4
br label %75
75: ; preds = %59, %58
%76 = load i32, ptr %14, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %14, align 4
%78 = load i32, ptr %14, align 4
%79 = load i32, ptr %6, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %48, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %75
br label %81
81: ; preds = %._crit_edge, %44
br label %82
82: ; preds = %81, %3
%83 = load ptr, ptr %4, align 8
%84 = getelementptr inbounds float, ptr %83, i64 0
%85 = load float, ptr %84, align 4
%86 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 0
%87 = load float, ptr %86, align 16
%88 = fsub float %85, %87
%89 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 0
%90 = load float, ptr %89, align 16
%91 = fmul float %88, %90
%92 = fpext float %91 to double
%93 = fadd double 1.000000e+00, %92
%94 = fptrunc double %93 to float
store float %94, ptr %15, align 4
%95 = load ptr, ptr %5, align 8
%96 = getelementptr inbounds float, ptr %95, i64 0
%97 = load float, ptr %96, align 4
%98 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 0
%99 = load float, ptr %98, align 16
%100 = fmul float %97, %99
store float %100, ptr %16, align 4
%101 = load ptr, ptr %4, align 8
%102 = getelementptr inbounds float, ptr %101, i64 1
%103 = load float, ptr %102, align 4
%104 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 1
%105 = load float, ptr %104, align 4
%106 = fsub float %103, %105
%107 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 1
%108 = load float, ptr %107, align 4
%109 = fmul float %106, %108
%110 = fpext float %109 to double
%111 = fadd double 1.000000e+00, %110
%112 = fptrunc double %111 to float
store float %112, ptr %17, align 4
%113 = load ptr, ptr %5, align 8
%114 = getelementptr inbounds float, ptr %113, i64 1
%115 = load float, ptr %114, align 4
%116 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 1
%117 = load float, ptr %116, align 4
%118 = fmul float %115, %117
store float %118, ptr %18, align 4
%119 = load ptr, ptr %4, align 8
%120 = getelementptr inbounds float, ptr %119, i64 2
%121 = load float, ptr %120, align 4
%122 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 2
%123 = load float, ptr %122, align 8
%124 = fsub float %121, %123
%125 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 2
%126 = load float, ptr %125, align 8
%127 = fmul float %124, %126
%128 = fpext float %127 to double
%129 = fadd double 1.000000e+00, %128
%130 = fptrunc double %129 to float
store float %130, ptr %19, align 4
%131 = load ptr, ptr %5, align 8
%132 = getelementptr inbounds float, ptr %131, i64 2
%133 = load float, ptr %132, align 4
%134 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 2
%135 = load float, ptr %134, align 8
%136 = fmul float %133, %135
store float %136, ptr %20, align 4
%137 = load ptr, ptr %4, align 8
%138 = getelementptr inbounds float, ptr %137, i64 3
%139 = load float, ptr %138, align 4
%140 = getelementptr inbounds [10 x float], ptr %10, i64 0, i64 3
%141 = load float, ptr %140, align 4
%142 = fsub float %139, %141
%143 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 3
%144 = load float, ptr %143, align 4
%145 = fmul float %142, %144
%146 = fpext float %145 to double
%147 = fadd double 1.000000e+00, %146
%148 = fptrunc double %147 to float
store float %148, ptr %21, align 4
%149 = load ptr, ptr %5, align 8
%150 = getelementptr inbounds float, ptr %149, i64 3
%151 = load float, ptr %150, align 4
%152 = getelementptr inbounds [10 x float], ptr %11, i64 0, i64 3
%153 = load float, ptr %152, align 4
%154 = fmul float %151, %153
store float %154, ptr %22, align 4
%155 = load float, ptr %15, align 4
store float %155, ptr %23, align 4
%156 = load float, ptr %23, align 4
%157 = load float, ptr %15, align 4
%158 = fmul float %156, %157
store float %158, ptr %24, align 4
%159 = load float, ptr %17, align 4
store float %159, ptr %25, align 4
%160 = load float, ptr %25, align 4
%161 = load float, ptr %17, align 4
%162 = fmul float %160, %161
store float %162, ptr %26, align 4
%163 = load float, ptr %19, align 4
store float %163, ptr %27, align 4
%164 = load float, ptr %27, align 4
%165 = load float, ptr %19, align 4
%166 = fmul float %164, %165
store float %166, ptr %28, align 4
%167 = load float, ptr %21, align 4
store float %167, ptr %29, align 4
%168 = load float, ptr %29, align 4
%169 = load float, ptr %21, align 4
%170 = fmul float %168, %169
store float %170, ptr %30, align 4
%171 = load float, ptr %8, align 4
%172 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 0
%173 = load float, ptr %172, align 16
%174 = fadd float %171, %173
%175 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 1
%176 = load float, ptr %175, align 4
%177 = load float, ptr %25, align 4
%178 = call float @llvm.fmuladd.f32(float %176, float %177, float %174)
%179 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 2
%180 = load float, ptr %179, align 8
%181 = load float, ptr %29, align 4
%182 = call float @llvm.fmuladd.f32(float %180, float %181, float %178)
%183 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 3
%184 = load float, ptr %183, align 4
%185 = load float, ptr %23, align 4
%186 = fmul float %184, %185
%187 = load float, ptr %27, align 4
%188 = call float @llvm.fmuladd.f32(float %186, float %187, float %182)
%189 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 4
%190 = load float, ptr %189, align 16
%191 = load float, ptr %28, align 4
%192 = call float @llvm.fmuladd.f32(float %190, float %191, float %188)
%193 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 5
%194 = load float, ptr %193, align 4
%195 = load float, ptr %25, align 4
%196 = fmul float %194, %195
%197 = load float, ptr %29, align 4
%198 = call float @llvm.fmuladd.f32(float %196, float %197, float %192)
%199 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 6
%200 = load float, ptr %199, align 8
%201 = load float, ptr %26, align 4
%202 = call float @llvm.fmuladd.f32(float %200, float %201, float %198)
%203 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 7
%204 = load float, ptr %203, align 4
%205 = load float, ptr %24, align 4
%206 = call float @llvm.fmuladd.f32(float %204, float %205, float %202)
store float %206, ptr %31, align 4
%207 = load float, ptr %31, align 4
%208 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 8
%209 = load float, ptr %208, align 16
%210 = load float, ptr %30, align 4
%211 = call float @llvm.fmuladd.f32(float %209, float %210, float %207)
%212 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 9
%213 = load float, ptr %212, align 4
%214 = load float, ptr %27, align 4
%215 = call float @llvm.fmuladd.f32(float %213, float %214, float %211)
%216 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 10
%217 = load float, ptr %216, align 8
%218 = load float, ptr %23, align 4
%219 = call float @llvm.fmuladd.f32(float %217, float %218, float %215)
%220 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 11
%221 = load float, ptr %220, align 4
%222 = load float, ptr %23, align 4
%223 = fmul float %221, %222
%224 = load float, ptr %25, align 4
%225 = fmul float %223, %224
%226 = load float, ptr %27, align 4
%227 = call float @llvm.fmuladd.f32(float %225, float %226, float %219)
%228 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 12
%229 = load float, ptr %228, align 16
%230 = load float, ptr %25, align 4
%231 = fmul float %229, %230
%232 = load float, ptr %28, align 4
%233 = call float @llvm.fmuladd.f32(float %231, float %232, float %227)
%234 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 13
%235 = load float, ptr %234, align 4
%236 = load float, ptr %25, align 4
%237 = fmul float %235, %236
%238 = load float, ptr %28, align 4
%239 = fmul float %237, %238
%240 = load float, ptr %29, align 4
%241 = call float @llvm.fmuladd.f32(float %239, float %240, float %233)
%242 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 14
%243 = load float, ptr %242, align 8
%244 = load float, ptr %28, align 4
%245 = fmul float %243, %244
%246 = load float, ptr %30, align 4
%247 = call float @llvm.fmuladd.f32(float %245, float %246, float %241)
%248 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 15
%249 = load float, ptr %248, align 4
%250 = load float, ptr %24, align 4
%251 = fmul float %249, %250
%252 = load float, ptr %29, align 4
%253 = call float @llvm.fmuladd.f32(float %251, float %252, float %247)
%254 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 16
%255 = load float, ptr %254, align 16
%256 = load float, ptr %23, align 4
%257 = fmul float %255, %256
%258 = load float, ptr %27, align 4
%259 = fmul float %257, %258
%260 = load float, ptr %29, align 4
%261 = call float @llvm.fmuladd.f32(float %259, float %260, float %253)
store float %261, ptr %31, align 4
%262 = load float, ptr %31, align 4
%263 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 17
%264 = load float, ptr %263, align 4
%265 = load float, ptr %28, align 4
%266 = fmul float %264, %265
%267 = load float, ptr %29, align 4
%268 = call float @llvm.fmuladd.f32(float %266, float %267, float %262)
%269 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 18
%270 = load float, ptr %269, align 8
%271 = load float, ptr %24, align 4
%272 = fmul float %270, %271
%273 = load float, ptr %26, align 4
%274 = call float @llvm.fmuladd.f32(float %272, float %273, float %268)
%275 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 19
%276 = load float, ptr %275, align 4
%277 = load float, ptr %24, align 4
%278 = fmul float %276, %277
%279 = load float, ptr %25, align 4
%280 = fmul float %278, %279
%281 = load float, ptr %29, align 4
%282 = call float @llvm.fmuladd.f32(float %280, float %281, float %274)
store float %282, ptr %31, align 4
%283 = load float, ptr %16, align 4
%284 = fadd float 0.000000e+00, %283
%285 = load float, ptr %18, align 4
%286 = fadd float %284, %285
%287 = load float, ptr %20, align 4
%288 = fadd float %286, %287
%289 = load float, ptr %22, align 4
%290 = fadd float %288, %289
store float %290, ptr %32, align 4
%291 = load float, ptr %32, align 4
%292 = fcmp oeq float %291, 0.000000e+00
br i1 %292, label %293, label %294
293: ; preds = %82
br label %503
294: ; preds = %82
%295 = load float, ptr %16, align 4
%296 = load float, ptr %16, align 4
%297 = fmul float %295, %296
%298 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 3
%299 = load float, ptr %298, align 4
%300 = load float, ptr %27, align 4
%301 = call float @llvm.fmuladd.f32(float %299, float %300, float 0.000000e+00)
%302 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 7
%303 = load float, ptr %302, align 4
%304 = fmul float 2.000000e+00, %303
%305 = load float, ptr %23, align 4
%306 = call float @llvm.fmuladd.f32(float %304, float %305, float %301)
%307 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 10
%308 = load float, ptr %307, align 8
%309 = fadd float %306, %308
%310 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 11
%311 = load float, ptr %310, align 4
%312 = load float, ptr %25, align 4
%313 = fmul float %311, %312
%314 = load float, ptr %27, align 4
%315 = call float @llvm.fmuladd.f32(float %313, float %314, float %309)
%316 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 15
%317 = load float, ptr %316, align 4
%318 = fmul float 2.000000e+00, %317
%319 = load float, ptr %23, align 4
%320 = fmul float %318, %319
%321 = load float, ptr %29, align 4
%322 = call float @llvm.fmuladd.f32(float %320, float %321, float %315)
%323 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 16
%324 = load float, ptr %323, align 16
%325 = load float, ptr %27, align 4
%326 = fmul float %324, %325
%327 = load float, ptr %29, align 4
%328 = call float @llvm.fmuladd.f32(float %326, float %327, float %322)
%329 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 18
%330 = load float, ptr %329, align 8
%331 = fmul float 2.000000e+00, %330
%332 = load float, ptr %23, align 4
%333 = fmul float %331, %332
%334 = load float, ptr %26, align 4
%335 = call float @llvm.fmuladd.f32(float %333, float %334, float %328)
%336 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 19
%337 = load float, ptr %336, align 4
%338 = fmul float 2.000000e+00, %337
%339 = load float, ptr %23, align 4
%340 = fmul float %338, %339
%341 = load float, ptr %25, align 4
%342 = fmul float %340, %341
%343 = load float, ptr %29, align 4
%344 = call float @llvm.fmuladd.f32(float %342, float %343, float %335)
%345 = call float @pow(float noundef %344, i32 noundef 2)
%346 = load float, ptr %18, align 4
%347 = load float, ptr %18, align 4
%348 = fmul float %346, %347
%349 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 1
%350 = load float, ptr %349, align 4
%351 = fadd float 0.000000e+00, %350
%352 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 5
%353 = load float, ptr %352, align 4
%354 = load float, ptr %29, align 4
%355 = call float @llvm.fmuladd.f32(float %353, float %354, float %351)
%356 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 6
%357 = load float, ptr %356, align 8
%358 = fmul float 2.000000e+00, %357
%359 = load float, ptr %25, align 4
%360 = call float @llvm.fmuladd.f32(float %358, float %359, float %355)
%361 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 11
%362 = load float, ptr %361, align 4
%363 = load float, ptr %23, align 4
%364 = fmul float %362, %363
%365 = load float, ptr %27, align 4
%366 = call float @llvm.fmuladd.f32(float %364, float %365, float %360)
%367 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 12
%368 = load float, ptr %367, align 16
%369 = load float, ptr %28, align 4
%370 = call float @llvm.fmuladd.f32(float %368, float %369, float %366)
%371 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 13
%372 = load float, ptr %371, align 4
%373 = load float, ptr %28, align 4
%374 = fmul float %372, %373
%375 = load float, ptr %29, align 4
%376 = call float @llvm.fmuladd.f32(float %374, float %375, float %370)
%377 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 18
%378 = load float, ptr %377, align 8
%379 = fmul float 2.000000e+00, %378
%380 = load float, ptr %25, align 4
%381 = fmul float %379, %380
%382 = load float, ptr %24, align 4
%383 = call float @llvm.fmuladd.f32(float %381, float %382, float %376)
%384 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 19
%385 = load float, ptr %384, align 4
%386 = load float, ptr %24, align 4
%387 = fmul float %385, %386
%388 = load float, ptr %29, align 4
%389 = call float @llvm.fmuladd.f32(float %387, float %388, float %383)
%390 = call float @pow(float noundef %389, i32 noundef 2)
%391 = fmul float %348, %390
%392 = call float @llvm.fmuladd.f32(float %297, float %345, float %391)
%393 = load float, ptr %20, align 4
%394 = load float, ptr %20, align 4
%395 = fmul float %393, %394
%396 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 3
%397 = load float, ptr %396, align 4
%398 = load float, ptr %23, align 4
%399 = call float @llvm.fmuladd.f32(float %397, float %398, float 0.000000e+00)
%400 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 4
%401 = load float, ptr %400, align 16
%402 = fmul float 2.000000e+00, %401
%403 = load float, ptr %27, align 4
%404 = call float @llvm.fmuladd.f32(float %402, float %403, float %399)
%405 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 9
%406 = load float, ptr %405, align 4
%407 = fadd float %404, %406
%408 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 11
%409 = load float, ptr %408, align 4
%410 = load float, ptr %23, align 4
%411 = fmul float %409, %410
%412 = load float, ptr %25, align 4
%413 = call float @llvm.fmuladd.f32(float %411, float %412, float %407)
%414 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 12
%415 = load float, ptr %414, align 16
%416 = fmul float 2.000000e+00, %415
%417 = load float, ptr %27, align 4
%418 = fmul float %416, %417
%419 = load float, ptr %25, align 4
%420 = call float @llvm.fmuladd.f32(float %418, float %419, float %413)
%421 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 13
%422 = load float, ptr %421, align 4
%423 = fmul float 2.000000e+00, %422
%424 = load float, ptr %27, align 4
%425 = fmul float %423, %424
%426 = load float, ptr %25, align 4
%427 = fmul float %425, %426
%428 = load float, ptr %29, align 4
%429 = call float @llvm.fmuladd.f32(float %427, float %428, float %420)
%430 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 14
%431 = load float, ptr %430, align 8
%432 = fmul float 2.000000e+00, %431
%433 = load float, ptr %27, align 4
%434 = fmul float %432, %433
%435 = load float, ptr %30, align 4
%436 = call float @llvm.fmuladd.f32(float %434, float %435, float %429)
%437 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 16
%438 = load float, ptr %437, align 16
%439 = load float, ptr %23, align 4
%440 = fmul float %438, %439
%441 = load float, ptr %29, align 4
%442 = call float @llvm.fmuladd.f32(float %440, float %441, float %436)
%443 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 17
%444 = load float, ptr %443, align 4
%445 = fmul float 2.000000e+00, %444
%446 = load float, ptr %27, align 4
%447 = fmul float %445, %446
%448 = load float, ptr %29, align 4
%449 = call float @llvm.fmuladd.f32(float %447, float %448, float %442)
%450 = call float @pow(float noundef %449, i32 noundef 2)
%451 = call float @llvm.fmuladd.f32(float %395, float %450, float %392)
%452 = load float, ptr %22, align 4
%453 = load float, ptr %22, align 4
%454 = fmul float %452, %453
%455 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 2
%456 = load float, ptr %455, align 8
%457 = fadd float 0.000000e+00, %456
%458 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 5
%459 = load float, ptr %458, align 4
%460 = load float, ptr %25, align 4
%461 = call float @llvm.fmuladd.f32(float %459, float %460, float %457)
%462 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 8
%463 = load float, ptr %462, align 16
%464 = fmul float 2.000000e+00, %463
%465 = load float, ptr %29, align 4
%466 = call float @llvm.fmuladd.f32(float %464, float %465, float %461)
%467 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 13
%468 = load float, ptr %467, align 4
%469 = load float, ptr %25, align 4
%470 = fmul float %468, %469
%471 = load float, ptr %28, align 4
%472 = call float @llvm.fmuladd.f32(float %470, float %471, float %466)
%473 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 14
%474 = load float, ptr %473, align 8
%475 = fmul float 2.000000e+00, %474
%476 = load float, ptr %29, align 4
%477 = fmul float %475, %476
%478 = load float, ptr %28, align 4
%479 = call float @llvm.fmuladd.f32(float %477, float %478, float %472)
%480 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 15
%481 = load float, ptr %480, align 4
%482 = load float, ptr %24, align 4
%483 = call float @llvm.fmuladd.f32(float %481, float %482, float %479)
%484 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 16
%485 = load float, ptr %484, align 16
%486 = load float, ptr %23, align 4
%487 = fmul float %485, %486
%488 = load float, ptr %27, align 4
%489 = call float @llvm.fmuladd.f32(float %487, float %488, float %483)
%490 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 17
%491 = load float, ptr %490, align 4
%492 = load float, ptr %28, align 4
%493 = call float @llvm.fmuladd.f32(float %491, float %492, float %489)
%494 = getelementptr inbounds [21 x float], ptr %12, i64 0, i64 19
%495 = load float, ptr %494, align 4
%496 = load float, ptr %24, align 4
%497 = fmul float %495, %496
%498 = load float, ptr %25, align 4
%499 = call float @llvm.fmuladd.f32(float %497, float %498, float %493)
%500 = call float @pow(float noundef %499, i32 noundef 2)
%501 = call float @llvm.fmuladd.f32(float %454, float %500, float %451)
%502 = call float @sqrt(float noundef %501)
br label %503
503: ; preds = %294, %293
%504 = phi float [ 0.000000e+00, %293 ], [ %502, %294 ]
store float %504, ptr %33, align 4
%505 = load float, ptr %33, align 4
%506 = load ptr, ptr %5, align 8
%507 = getelementptr inbounds float, ptr %506, i64 0
store float %505, ptr %507, align 4
%508 = load float, ptr %31, align 4
ret float %508
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; 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) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3
declare float @sqrt(float noundef) #4
declare float @pow(float noundef, i32 noundef) #4
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "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/tmpbkccohu5.c'
source_filename = "/tmp/tmpbkccohu5.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/tmpbkccohu5.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/tmpg2yrmdhr.c'
source_filename = "/tmp/tmpg2yrmdhr.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, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 -1, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp eq ptr %9, %10
br i1 %11, label %12, label %13
12: ; preds = %3
store i32 0, ptr %4, align 4
br label %66
13: ; preds = %3
%14 = load ptr, ptr %5, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %64
16: ; preds = %13
%17 = load ptr, ptr %6, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %64
19: ; preds = %16
br label %20
20: ; preds = %40, %19
%21 = load i64, ptr %7, align 8
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %31
23: ; preds = %20
%24 = load ptr, ptr %5, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = load ptr, ptr %6, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %26, %29
br label %31
31: ; preds = %23, %20
%32 = phi i1 [ false, %20 ], [ %30, %23 ]
br i1 %32, label %33, label %47
33: ; preds = %31
%34 = load ptr, ptr %5, align 8
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %33
store i32 0, ptr %8, align 4
br label %47
39: ; preds = %33
br label %40
40: ; preds = %39
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %5, align 8
%43 = load ptr, ptr %6, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %6, align 8
%45 = load i64, ptr %7, align 8
%46 = add i64 %45, -1
store i64 %46, ptr %7, align 8
br label %20, !llvm.loop !6
47: ; preds = %38, %31
%48 = load i64, ptr %7, align 8
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %47
store i32 0, ptr %8, align 4
br label %63
51: ; preds = %47
%52 = load i32, ptr %8, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %62
54: ; preds = %51
%55 = load ptr, ptr %5, align 8
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = load ptr, ptr %6, align 8
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = sub nsw i32 %57, %60
store i32 %61, ptr %8, align 4
br label %62
62: ; preds = %54, %51
br label %63
63: ; preds = %62, %50
br label %64
64: ; preds = %63, %16, %13
%65 = load i32, ptr %8, align 4
store i32 %65, ptr %4, align 4
br label %66
66: ; preds = %64, %12
%67 = load i32, ptr %4, align 4
ret i32 %67
}
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/tmpg2yrmdhr.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, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 -1, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp eq ptr %9, %10
br i1 %11, label %12, label %13
12: ; preds = %3
store i32 0, ptr %4, align 4
br label %66
13: ; preds = %3
%14 = load ptr, ptr %5, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %64
16: ; preds = %13
%17 = load ptr, ptr %6, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %64
19: ; preds = %16
br label %20
20: ; preds = %40, %19
%21 = load i64, ptr %7, align 8
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %31
23: ; preds = %20
%24 = load ptr, ptr %5, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = load ptr, ptr %6, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %26, %29
br label %31
31: ; preds = %23, %20
%32 = phi i1 [ false, %20 ], [ %30, %23 ]
br i1 %32, label %33, label %.loopexit
33: ; preds = %31
%34 = load ptr, ptr %5, align 8
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %33
store i32 0, ptr %8, align 4
br label %47
39: ; preds = %33
br label %40
40: ; preds = %39
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %5, align 8
%43 = load ptr, ptr %6, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %6, align 8
%45 = load i64, ptr %7, align 8
%46 = add i64 %45, -1
store i64 %46, ptr %7, align 8
br label %20, !llvm.loop !6
.loopexit: ; preds = %31
br label %47
47: ; preds = %.loopexit, %38
%48 = load i64, ptr %7, align 8
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %47
store i32 0, ptr %8, align 4
br label %63
51: ; preds = %47
%52 = load i32, ptr %8, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %62
54: ; preds = %51
%55 = load ptr, ptr %5, align 8
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = load ptr, ptr %6, align 8
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = sub nsw i32 %57, %60
store i32 %61, ptr %8, align 4
br label %62
62: ; preds = %54, %51
br label %63
63: ; preds = %62, %50
br label %64
64: ; preds = %63, %16, %13
%65 = load i32, ptr %8, align 4
store i32 %65, ptr %4, align 4
br label %66
66: ; preds = %64, %12
%67 = load i32, ptr %4, align 4
ret i32 %67
}
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/tmpohckxjjf.c'
source_filename = "/tmp/tmpohckxjjf.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"Vikiv\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"VikiV\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Starting palindrome test 0.\0A\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 ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
store ptr @.str.1, ptr %3, align 8
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = load ptr, ptr %2, align 8
%6 = call i64 @is_palindrome(ptr noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 (...) @log_fail()
store i32 -1, ptr %1, align 4
br label %21
10: ; preds = %0
%11 = call i32 (...) @log_pass()
br label %12
12: ; preds = %10
%13 = load ptr, ptr %3, align 8
%14 = call i64 @is_palindrome(ptr noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = call i32 (...) @log_pass()
br label %20
18: ; preds = %12
%19 = call i32 (...) @log_fail()
store i32 -1, ptr %1, align 4
br label %21
20: ; preds = %16
store i32 0, ptr %1, align 4
br label %21
21: ; preds = %20, %18, %8
%22 = load i32, ptr %1, align 4
ret i32 %22
}
declare i32 @printf(ptr noundef) #1
declare i64 @is_palindrome(ptr noundef) #1
declare i32 @log_fail(...) #1
declare i32 @log_pass(...) #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/tmpohckxjjf.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"Vikiv\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"VikiV\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Starting palindrome test 0.\0A\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 ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
store ptr @.str.1, ptr %3, align 8
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = load ptr, ptr %2, align 8
%6 = call i64 @is_palindrome(ptr noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 (...) @log_fail()
store i32 -1, ptr %1, align 4
br label %21
10: ; preds = %0
%11 = call i32 (...) @log_pass()
br label %12
12: ; preds = %10
%13 = load ptr, ptr %3, align 8
%14 = call i64 @is_palindrome(ptr noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = call i32 (...) @log_pass()
br label %20
18: ; preds = %12
%19 = call i32 (...) @log_fail()
store i32 -1, ptr %1, align 4
br label %21
20: ; preds = %16
store i32 0, ptr %1, align 4
br label %21
21: ; preds = %20, %18, %8
%22 = load i32, ptr %1, align 4
ret i32 %22
}
declare i32 @printf(ptr noundef) #1
declare i64 @is_palindrome(ptr noundef) #1
declare i32 @log_fail(...) #1
declare i32 @log_pass(...) #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_ddx2f14.c'
source_filename = "/tmp/tmp_ddx2f14.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 @SiderealTime(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = load double, ptr %2, align 8
%7 = fdiv double %6, 3.871000e+07
%8 = fsub double 3.879330e-04, %7
%9 = call double @llvm.fmuladd.f64(double %5, double %8, double 0x416925FD18A447BF)
%10 = fmul double %4, %9
store double %10, ptr %3, align 8
%11 = load double, ptr %3, align 8
%12 = fadd double 0x4071875EB15E3164, %11
%13 = fmul double %12, 0x3F91DF46A2529D39
%14 = call double @modpi2(double noundef %13)
ret double %14
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare double @modpi2(double 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/tmp_ddx2f14.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 @SiderealTime(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = load double, ptr %2, align 8
%7 = fdiv double %6, 3.871000e+07
%8 = fsub double 3.879330e-04, %7
%9 = call double @llvm.fmuladd.f64(double %5, double %8, double 0x416925FD18A447BF)
%10 = fmul double %4, %9
store double %10, ptr %3, align 8
%11 = load double, ptr %3, align 8
%12 = fadd double 0x4071875EB15E3164, %11
%13 = fmul double %12, 0x3F91DF46A2529D39
%14 = call double @modpi2(double noundef %13)
ret double %14
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare double @modpi2(double 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/tmpi5oq2d7h.c'
source_filename = "/tmp/tmpi5oq2d7h.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/tmpi5oq2d7h.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/tmp_ohnjx0k.c'
source_filename = "/tmp/tmp_ohnjx0k.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/tmp_ohnjx0k.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/tmp7exlfilc.c'
source_filename = "/tmp/tmp7exlfilc.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 @show() #0 {
%1 = alloca [8 x i8], align 1
%2 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @print(ptr noundef %2)
ret void
}
declare i32 @print(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/tmp7exlfilc.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 @show() #0 {
%1 = alloca [8 x i8], align 1
%2 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @print(ptr noundef %2)
ret void
}
declare i32 @print(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/tmpxz4lk2z4.c'
source_filename = "/tmp/tmpxz4lk2z4.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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @bank_queuing()
ret i32 0
}
declare i32 @bank_queuing(...) #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/tmpxz4lk2z4.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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @bank_queuing()
ret i32 0
}
declare i32 @bank_queuing(...) #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/tmpvrpy8qy0.c'
source_filename = "/tmp/tmpvrpy8qy0.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/tmpvrpy8qy0.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/tmprkqtxssg.c'
source_filename = "/tmp/tmprkqtxssg.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/tmprkqtxssg.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/tmps0a1io09.c'
source_filename = "/tmp/tmps0a1io09.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 [22 x i8] c"Error, no input file\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Error opening file %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"Starting file %s\00", align 1
@.str.4 = private unnamed_addr constant [80 x i8] c"\0AFile too large to run on this test, Max 512MB for 32bit OS, 2GB for 64bit OS.\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c" ... Fail\0A\00", align 1
@.str.6 = private unnamed_addr constant [34 x i8] c"\0AFailed to allocate input memory\0A\00", align 1
@.str.7 = private unnamed_addr constant [35 x i8] c"\0AFailed to allocate output memory\0A\00", align 1
@.str.8 = private unnamed_addr constant [41 x i8] c"\0AFailed to allocate decompressed memory\0A\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"0x%02x,\00", align 1
@.str.12 = private unnamed_addr constant [29 x i8] c" ... Fail with exit code %d\0A\00", align 1
@.str.13 = private unnamed_addr constant [11 x i8] c" ... Pass\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 i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = 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 i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store ptr null, ptr %10, align 8
store ptr null, ptr %15, align 8
store ptr null, ptr %16, align 8
store ptr null, ptr %17, align 8
%18 = load i32, ptr %4, align 4
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %22
22: ; preds = %20, %2
store i32 1, ptr %6, align 4
br label %23
23: ; preds = %171, %22
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %174
27: ; preds = %23
store ptr null, ptr %10, align 8
store ptr null, ptr %15, align 8
store ptr null, ptr %16, align 8
store ptr null, ptr %17, align 8
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = call ptr @fopen(ptr noundef %32, ptr noundef @.str.1)
store ptr %33, ptr %10, align 8
%34 = load ptr, ptr %10, align 8
%35 = icmp eq ptr %34, null
br i1 %35, label %36, label %43
36: ; preds = %27
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %6, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %41)
store i32 1, ptr %3, align 4
br label %176
43: ; preds = %27
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds ptr, ptr %44, i64 %46
%48 = load ptr, ptr %47, align 8
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %48)
br label %50
50: ; preds = %43
%51 = call i32 @fflush(i32 noundef 0)
%52 = load ptr, ptr %10, align 8
%53 = call i64 @get_filesize(ptr noundef %52)
store i64 %53, ptr %12, align 8
%54 = load i64, ptr %12, align 8
%55 = icmp sgt i64 %54, 536870912
br i1 %55, label %56, label %61
56: ; preds = %50
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%59 = load ptr, ptr %10, align 8
%60 = call i32 @fclose(ptr noundef %59)
br label %171
61: ; preds = %50
%62 = load i64, ptr %12, align 8
%63 = call i64 @compressBound(i64 noundef %62)
store i64 %63, ptr %11, align 8
%64 = load i64, ptr %12, align 8
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %71
66: ; preds = %61
%67 = load i64, ptr %12, align 8
%68 = call ptr @malloc(i64 noundef %67)
store ptr %68, ptr %15, align 8
%69 = load i64, ptr %12, align 8
%70 = call ptr @malloc(i64 noundef %69)
store ptr %70, ptr %17, align 8
br label %71
71: ; preds = %66, %61
%72 = load i64, ptr %11, align 8
%73 = call ptr @malloc(i64 noundef %72)
store ptr %73, ptr %16, align 8
%74 = load ptr, ptr %15, align 8
%75 = icmp eq ptr %74, null
br i1 %75, label %76, label %82
76: ; preds = %71
%77 = load i64, ptr %12, align 8
%78 = icmp ne i64 %77, 0
br i1 %78, label %79, label %82
79: ; preds = %76
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%81 = call i32 @exit(i32 noundef 0) #3
unreachable
82: ; preds = %76, %71
%83 = load ptr, ptr %16, align 8
%84 = icmp eq ptr %83, null
br i1 %84, label %85, label %88
85: ; preds = %82
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%87 = call i32 @exit(i32 noundef 0) #3
unreachable
88: ; preds = %82
%89 = load ptr, ptr %17, align 8
%90 = icmp eq ptr %89, null
br i1 %90, label %91, label %97
91: ; preds = %88
%92 = load i64, ptr %12, align 8
%93 = icmp ne i64 %92, 0
br i1 %93, label %94, label %97
94: ; preds = %91
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%96 = call i32 @exit(i32 noundef 0) #3
unreachable
97: ; preds = %91, %88
%98 = load ptr, ptr %15, align 8
%99 = load i64, ptr %12, align 8
%100 = load ptr, ptr %10, align 8
%101 = call i64 @fread(ptr noundef %98, i32 noundef 1, i64 noundef %99, ptr noundef %100)
store i64 %101, ptr %13, align 8
%102 = load i64, ptr %13, align 8
store i64 %102, ptr %14, align 8
%103 = load ptr, ptr %16, align 8
%104 = load ptr, ptr %15, align 8
%105 = load i64, ptr %13, align 8
%106 = load ptr, ptr %17, align 8
%107 = load i64, ptr %14, align 8
%108 = call i32 @test(ptr noundef %103, ptr noundef %11, ptr noundef %104, i64 noundef %105, ptr noundef %106, i64 noundef %107)
store i32 %108, ptr %8, align 4
%109 = load i32, ptr %8, align 4
%110 = icmp ne i32 %109, 0
br i1 %110, label %111, label %137
111: ; preds = %97
store i32 0, ptr %7, align 4
br label %112
112: ; preds = %132, %111
%113 = load i32, ptr %7, align 4
%114 = sext i32 %113 to i64
%115 = load i64, ptr %11, align 8
%116 = icmp slt i64 %114, %115
br i1 %116, label %117, label %135
117: ; preds = %112
%118 = load i32, ptr %7, align 4
%119 = and i32 %118, 31
%120 = icmp eq i32 %119, 0
br i1 %120, label %121, label %123
121: ; preds = %117
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %125
123: ; preds = %117
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %125
125: ; preds = %123, %121
%126 = load ptr, ptr %16, align 8
%127 = load i32, ptr %7, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i32, ptr %126, i64 %128
%130 = load i32, ptr %129, align 4
%131 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %130)
br label %132
132: ; preds = %125
%133 = load i32, ptr %7, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %7, align 4
br label %112, !llvm.loop !6
135: ; preds = %112
%136 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %137
137: ; preds = %135, %97
%138 = call i32 @fflush(i32 noundef 0)
%139 = load ptr, ptr %10, align 8
%140 = call i32 @fclose(ptr noundef %139)
%141 = load ptr, ptr %16, align 8
%142 = icmp ne ptr %141, null
br i1 %142, label %143, label %146
143: ; preds = %137
%144 = load ptr, ptr %16, align 8
%145 = call i32 @free(ptr noundef %144)
br label %146
146: ; preds = %143, %137
%147 = load ptr, ptr %15, align 8
%148 = icmp ne ptr %147, null
br i1 %148, label %149, label %152
149: ; preds = %146
%150 = load ptr, ptr %15, align 8
%151 = call i32 @free(ptr noundef %150)
br label %152
152: ; preds = %149, %146
%153 = load ptr, ptr %17, align 8
%154 = icmp ne ptr %153, null
br i1 %154, label %155, label %158
155: ; preds = %152
%156 = load ptr, ptr %17, align 8
%157 = call i32 @free(ptr noundef %156)
br label %158
158: ; preds = %155, %152
%159 = load i32, ptr %8, align 4
%160 = icmp ne i32 %159, 0
br i1 %160, label %161, label %165
161: ; preds = %158
%162 = load i32, ptr %8, align 4
%163 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %162)
%164 = load i32, ptr %8, align 4
store i32 %164, ptr %3, align 4
br label %176
165: ; preds = %158
%166 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %167
167: ; preds = %165
%168 = load i32, ptr %8, align 4
%169 = load i32, ptr %9, align 4
%170 = or i32 %169, %168
store i32 %170, ptr %9, align 4
br label %171
171: ; preds = %167, %56
%172 = load i32, ptr %6, align 4
%173 = add nsw i32 %172, 1
store i32 %173, ptr %6, align 4
br label %23, !llvm.loop !8
174: ; preds = %23
%175 = load i32, ptr %9, align 4
store i32 %175, ptr %3, align 4
br label %176
176: ; preds = %174, %161, %36
%177 = load i32, ptr %3, align 4
ret i32 %177
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i64 @get_filesize(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i64 @compressBound(i64 noundef) #1
declare ptr @malloc(i64 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @test(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1
declare i32 @free(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps0a1io09.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 [22 x i8] c"Error, no input file\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Error opening file %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"Starting file %s\00", align 1
@.str.4 = private unnamed_addr constant [80 x i8] c"\0AFile too large to run on this test, Max 512MB for 32bit OS, 2GB for 64bit OS.\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c" ... Fail\0A\00", align 1
@.str.6 = private unnamed_addr constant [34 x i8] c"\0AFailed to allocate input memory\0A\00", align 1
@.str.7 = private unnamed_addr constant [35 x i8] c"\0AFailed to allocate output memory\0A\00", align 1
@.str.8 = private unnamed_addr constant [41 x i8] c"\0AFailed to allocate decompressed memory\0A\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"0x%02x,\00", align 1
@.str.12 = private unnamed_addr constant [29 x i8] c" ... Fail with exit code %d\0A\00", align 1
@.str.13 = private unnamed_addr constant [11 x i8] c" ... Pass\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 i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = 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 i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store ptr null, ptr %10, align 8
store ptr null, ptr %15, align 8
store ptr null, ptr %16, align 8
store ptr null, ptr %17, align 8
%18 = load i32, ptr %4, align 4
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %22
22: ; preds = %20, %2
store i32 1, ptr %6, align 4
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %.lr.ph2, label %179
.lr.ph2: ; preds = %22
br label %26
26: ; preds = %.lr.ph2, %173
store ptr null, ptr %10, align 8
store ptr null, ptr %15, align 8
store ptr null, ptr %16, align 8
store ptr null, ptr %17, align 8
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = call ptr @fopen(ptr noundef %31, ptr noundef @.str.1)
store ptr %32, ptr %10, align 8
%33 = load ptr, ptr %10, align 8
%34 = icmp eq ptr %33, null
br i1 %34, label %35, label %42
35: ; preds = %26
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %40)
store i32 1, ptr %3, align 4
br label %181
42: ; preds = %26
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %6, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds ptr, ptr %43, i64 %45
%47 = load ptr, ptr %46, align 8
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %47)
br label %49
49: ; preds = %42
%50 = call i32 @fflush(i32 noundef 0)
%51 = load ptr, ptr %10, align 8
%52 = call i64 @get_filesize(ptr noundef %51)
store i64 %52, ptr %12, align 8
%53 = load i64, ptr %12, align 8
%54 = icmp sgt i64 %53, 536870912
br i1 %54, label %55, label %60
55: ; preds = %49
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%58 = load ptr, ptr %10, align 8
%59 = call i32 @fclose(ptr noundef %58)
br label %173
60: ; preds = %49
%61 = load i64, ptr %12, align 8
%62 = call i64 @compressBound(i64 noundef %61)
store i64 %62, ptr %11, align 8
%63 = load i64, ptr %12, align 8
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %70
65: ; preds = %60
%66 = load i64, ptr %12, align 8
%67 = call ptr @malloc(i64 noundef %66)
store ptr %67, ptr %15, align 8
%68 = load i64, ptr %12, align 8
%69 = call ptr @malloc(i64 noundef %68)
store ptr %69, ptr %17, align 8
br label %70
70: ; preds = %65, %60
%71 = load i64, ptr %11, align 8
%72 = call ptr @malloc(i64 noundef %71)
store ptr %72, ptr %16, align 8
%73 = load ptr, ptr %15, align 8
%74 = icmp eq ptr %73, null
br i1 %74, label %75, label %81
75: ; preds = %70
%76 = load i64, ptr %12, align 8
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %75
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%80 = call i32 @exit(i32 noundef 0) #3
unreachable
81: ; preds = %75, %70
%82 = load ptr, ptr %16, align 8
%83 = icmp eq ptr %82, null
br i1 %83, label %84, label %87
84: ; preds = %81
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%86 = call i32 @exit(i32 noundef 0) #3
unreachable
87: ; preds = %81
%88 = load ptr, ptr %17, align 8
%89 = icmp eq ptr %88, null
br i1 %89, label %90, label %96
90: ; preds = %87
%91 = load i64, ptr %12, align 8
%92 = icmp ne i64 %91, 0
br i1 %92, label %93, label %96
93: ; preds = %90
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%95 = call i32 @exit(i32 noundef 0) #3
unreachable
96: ; preds = %90, %87
%97 = load ptr, ptr %15, align 8
%98 = load i64, ptr %12, align 8
%99 = load ptr, ptr %10, align 8
%100 = call i64 @fread(ptr noundef %97, i32 noundef 1, i64 noundef %98, ptr noundef %99)
store i64 %100, ptr %13, align 8
%101 = load i64, ptr %13, align 8
store i64 %101, ptr %14, align 8
%102 = load ptr, ptr %16, align 8
%103 = load ptr, ptr %15, align 8
%104 = load i64, ptr %13, align 8
%105 = load ptr, ptr %17, align 8
%106 = load i64, ptr %14, align 8
%107 = call i32 @test(ptr noundef %102, ptr noundef %11, ptr noundef %103, i64 noundef %104, ptr noundef %105, i64 noundef %106)
store i32 %107, ptr %8, align 4
%108 = load i32, ptr %8, align 4
%109 = icmp ne i32 %108, 0
br i1 %109, label %110, label %139
110: ; preds = %96
store i32 0, ptr %7, align 4
%111 = load i32, ptr %7, align 4
%112 = sext i32 %111 to i64
%113 = load i64, ptr %11, align 8
%114 = icmp slt i64 %112, %113
br i1 %114, label %.lr.ph, label %137
.lr.ph: ; preds = %110
br label %115
115: ; preds = %.lr.ph, %130
%116 = load i32, ptr %7, align 4
%117 = and i32 %116, 31
%118 = icmp eq i32 %117, 0
br i1 %118, label %119, label %121
119: ; preds = %115
%120 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %123
121: ; preds = %115
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %123
123: ; preds = %121, %119
%124 = load ptr, ptr %16, align 8
%125 = load i32, ptr %7, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i32, ptr %124, i64 %126
%128 = load i32, ptr %127, align 4
%129 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %128)
br label %130
130: ; preds = %123
%131 = load i32, ptr %7, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %7, align 4
%133 = load i32, ptr %7, align 4
%134 = sext i32 %133 to i64
%135 = load i64, ptr %11, align 8
%136 = icmp slt i64 %134, %135
br i1 %136, label %115, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %130
br label %137
137: ; preds = %._crit_edge, %110
%138 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %139
139: ; preds = %137, %96
%140 = call i32 @fflush(i32 noundef 0)
%141 = load ptr, ptr %10, align 8
%142 = call i32 @fclose(ptr noundef %141)
%143 = load ptr, ptr %16, align 8
%144 = icmp ne ptr %143, null
br i1 %144, label %145, label %148
145: ; preds = %139
%146 = load ptr, ptr %16, align 8
%147 = call i32 @free(ptr noundef %146)
br label %148
148: ; preds = %145, %139
%149 = load ptr, ptr %15, align 8
%150 = icmp ne ptr %149, null
br i1 %150, label %151, label %154
151: ; preds = %148
%152 = load ptr, ptr %15, align 8
%153 = call i32 @free(ptr noundef %152)
br label %154
154: ; preds = %151, %148
%155 = load ptr, ptr %17, align 8
%156 = icmp ne ptr %155, null
br i1 %156, label %157, label %160
157: ; preds = %154
%158 = load ptr, ptr %17, align 8
%159 = call i32 @free(ptr noundef %158)
br label %160
160: ; preds = %157, %154
%161 = load i32, ptr %8, align 4
%162 = icmp ne i32 %161, 0
br i1 %162, label %163, label %167
163: ; preds = %160
%164 = load i32, ptr %8, align 4
%165 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %164)
%166 = load i32, ptr %8, align 4
store i32 %166, ptr %3, align 4
br label %181
167: ; preds = %160
%168 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %169
169: ; preds = %167
%170 = load i32, ptr %8, align 4
%171 = load i32, ptr %9, align 4
%172 = or i32 %171, %170
store i32 %172, ptr %9, align 4
br label %173
173: ; preds = %169, %55
%174 = load i32, ptr %6, align 4
%175 = add nsw i32 %174, 1
store i32 %175, ptr %6, align 4
%176 = load i32, ptr %6, align 4
%177 = load i32, ptr %4, align 4
%178 = icmp slt i32 %176, %177
br i1 %178, label %26, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %173
br label %179
179: ; preds = %._crit_edge3, %22
%180 = load i32, ptr %9, align 4
store i32 %180, ptr %3, align 4
br label %181
181: ; preds = %179, %163, %35
%182 = load i32, ptr %3, align 4
ret i32 %182
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i64 @get_filesize(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i64 @compressBound(i64 noundef) #1
declare ptr @malloc(i64 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @test(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1
declare i32 @free(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpl8g0vfgc.c'
source_filename = "/tmp/tmpl8g0vfgc.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">%s\0A>%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"tHiS iS a rEALy mEsSy sTRING\00", align 1
@__const.main.str = private unnamed_addr constant [34 x i8] c"tHiS iS aNoTeR rEALy mEsSy sTRING\00", align 16
; 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 [34 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr @totitle(ptr noundef @.str.1)
%8 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %7)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.str, i64 34, i1 false)
%9 = getelementptr inbounds [34 x i8], ptr %6, i64 0, i64 0
%10 = getelementptr inbounds [34 x i8], ptr %6, i64 0, i64 0
%11 = call ptr @totitle(ptr noundef %10)
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %9, ptr noundef %11)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @totitle(ptr noundef) #1
; 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) #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 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/tmpl8g0vfgc.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">%s\0A>%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"tHiS iS a rEALy mEsSy sTRING\00", align 1
@__const.main.str = private unnamed_addr constant [34 x i8] c"tHiS iS aNoTeR rEALy mEsSy sTRING\00", align 16
; 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 [34 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr @totitle(ptr noundef @.str.1)
%8 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %7)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.str, i64 34, i1 false)
%9 = getelementptr inbounds [34 x i8], ptr %6, i64 0, i64 0
%10 = getelementptr inbounds [34 x i8], ptr %6, i64 0, i64 0
%11 = call ptr @totitle(ptr noundef %10)
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %9, ptr noundef %11)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @totitle(ptr noundef) #1
; 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) #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 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/tmp66d1u9by.c'
source_filename = "/tmp/tmp66d1u9by.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 [162 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/stdlib/isqrt.c\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"Integer square root of 11 should be 3\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_sqrt_11() #0 {
%1 = call i32 @isqrt(i32 noundef 11)
%2 = icmp eq i32 %1, 3
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 60, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isqrt(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/tmp66d1u9by.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 [162 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/stdlib/isqrt.c\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"Integer square root of 11 should be 3\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_sqrt_11() #0 {
%1 = call i32 @isqrt(i32 noundef 11)
%2 = icmp eq i32 %1, 3
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 60, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isqrt(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/tmpfe9pm1wp.c'
source_filename = "/tmp/tmpfe9pm1wp.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/tmpfe9pm1wp.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/tmpwyp507qd.c'
source_filename = "/tmp/tmpwyp507qd.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"malloc: _db_proper_path\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"scanning\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"case_sensitive\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @_db_proper_path(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @strdup(ptr noundef %5)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = call i32 @err_log(i32 noundef 0, i32 noundef 4, ptr noundef @.str)
br label %11
11: ; preds = %9, %1
%12 = call i64 @conf_get_int(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 1)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %28
14: ; preds = %11
%15 = load ptr, ptr %3, align 8
store ptr %15, ptr %4, align 8
br label %16
16: ; preds = %20, %14
%17 = load ptr, ptr %4, align 8
%18 = load i8, ptr %17, align 1
%19 = icmp ne i8 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = load i8, ptr %21, align 1
%23 = call signext i8 @toupper(i8 noundef signext %22)
%24 = load ptr, ptr %4, align 8
store i8 %23, ptr %24, align 1
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %4, align 8
br label %16, !llvm.loop !6
27: ; preds = %16
br label %28
28: ; preds = %27, %11
%29 = load ptr, ptr %3, align 8
ret ptr %29
}
declare ptr @strdup(ptr noundef) #1
declare i32 @err_log(i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @conf_get_int(ptr noundef, ptr noundef, i32 noundef) #1
declare signext i8 @toupper(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/tmpwyp507qd.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"malloc: _db_proper_path\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"scanning\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"case_sensitive\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @_db_proper_path(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @strdup(ptr noundef %5)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = call i32 @err_log(i32 noundef 0, i32 noundef 4, ptr noundef @.str)
br label %11
11: ; preds = %9, %1
%12 = call i64 @conf_get_int(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 1)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %30
14: ; preds = %11
%15 = load ptr, ptr %3, align 8
store ptr %15, ptr %4, align 8
%16 = load ptr, ptr %4, align 8
%17 = load i8, ptr %16, align 1
%18 = icmp ne i8 %17, 0
br i1 %18, label %.lr.ph, label %29
.lr.ph: ; preds = %14
br label %19
19: ; preds = %.lr.ph, %19
%20 = load ptr, ptr %4, align 8
%21 = load i8, ptr %20, align 1
%22 = call signext i8 @toupper(i8 noundef signext %21)
%23 = load ptr, ptr %4, align 8
store i8 %22, ptr %23, align 1
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %4, align 8
%26 = load ptr, ptr %4, align 8
%27 = load i8, ptr %26, align 1
%28 = icmp ne i8 %27, 0
br i1 %28, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %29
29: ; preds = %._crit_edge, %14
br label %30
30: ; preds = %29, %11
%31 = load ptr, ptr %3, align 8
ret ptr %31
}
declare ptr @strdup(ptr noundef) #1
declare i32 @err_log(i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @conf_get_int(ptr noundef, ptr noundef, i32 noundef) #1
declare signext i8 @toupper(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/tmpb60jzk9_.c'
source_filename = "/tmp/tmpb60jzk9_.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/tmpb60jzk9_.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/tmpycslsttj.c'
source_filename = "/tmp/tmpycslsttj.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 [12 x i8] c"hello world\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"test\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 @strlen(ptr noundef @.str)
%3 = call i32 @print_hex(i32 noundef %2)
%4 = call i32 @strlen(ptr noundef @.str.1)
%5 = call i32 @print_hex(i32 noundef %4)
%6 = call i32 @strlen(ptr noundef @.str.2)
%7 = call i32 @print_hex(i32 noundef %6)
ret i32 0
}
declare i32 @print_hex(i32 noundef) #1
declare i32 @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/tmpycslsttj.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 [12 x i8] c"hello world\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"test\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 @strlen(ptr noundef @.str)
%3 = call i32 @print_hex(i32 noundef %2)
%4 = call i32 @strlen(ptr noundef @.str.1)
%5 = call i32 @print_hex(i32 noundef %4)
%6 = call i32 @strlen(ptr noundef @.str.2)
%7 = call i32 @print_hex(i32 noundef %6)
ret i32 0
}
declare i32 @print_hex(i32 noundef) #1
declare i32 @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/tmp8ra2t1ay.c'
source_filename = "/tmp/tmp8ra2t1ay.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 [60 x i8] c"==========================================================\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"Usage:\0A\00", align 1
@.str.2 = private unnamed_addr constant [44 x i8] c"\09-a <ip addr>:\09only sniff packet with addr\0A\00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c"\09-p <port>:\09only sniff packet with port\0A\00", align 1
@.str.4 = private unnamed_addr constant [48 x i8] c"\09-c <count>:\09exit after sniffing count packets\0A\00", align 1
@.str.5 = private unnamed_addr constant [35 x i8] c"\09-O <file>:\09save output into file\0A\00", align 1
@.str.6 = private unnamed_addr constant [30 x i8] c"\09-g:\09get share mem head info\0A\00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"\09-h:\09show this message\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str)
ret void
}
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/tmp8ra2t1ay.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 [60 x i8] c"==========================================================\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"Usage:\0A\00", align 1
@.str.2 = private unnamed_addr constant [44 x i8] c"\09-a <ip addr>:\09only sniff packet with addr\0A\00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c"\09-p <port>:\09only sniff packet with port\0A\00", align 1
@.str.4 = private unnamed_addr constant [48 x i8] c"\09-c <count>:\09exit after sniffing count packets\0A\00", align 1
@.str.5 = private unnamed_addr constant [35 x i8] c"\09-O <file>:\09save output into file\0A\00", align 1
@.str.6 = private unnamed_addr constant [30 x i8] c"\09-g:\09get share mem head info\0A\00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"\09-h:\09show this message\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str)
ret void
}
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/tmphsbxoafq.c'
source_filename = "/tmp/tmphsbxoafq.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 @lib_page_out(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @syscall2(i32 noundef 508, i32 noundef %3)
ret i32 %4
}
declare i32 @syscall2(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/tmphsbxoafq.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 @lib_page_out(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @syscall2(i32 noundef 508, i32 noundef %3)
ret i32 %4
}
declare i32 @syscall2(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/tmp03uy_bee.c'
source_filename = "/tmp/tmp03uy_bee.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 @quicksort(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
%7 = alloca i32, align 4
%8 = 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
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %17
11: ; preds = %3
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %14, %11, %3
br label %35
18: ; preds = %14
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %35
22: ; preds = %18
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %6, align 4
%26 = call i32 @partition(ptr noundef %23, i32 noundef %24, i32 noundef %25)
store i32 %26, ptr %8, align 4
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %5, align 4
%29 = load i32, ptr %8, align 4
%30 = sub nsw i32 %29, 1
call void @quicksort(ptr noundef %27, i32 noundef %28, i32 noundef %30)
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
%34 = load i32, ptr %6, align 4
call void @quicksort(ptr noundef %31, i32 noundef %33, i32 noundef %34)
br label %35
35: ; preds = %17, %22, %18
ret void
}
declare i32 @partition(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp03uy_bee.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 @quicksort(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
%7 = alloca i32, align 4
%8 = 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
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %17
11: ; preds = %3
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %14, %11, %3
br label %35
18: ; preds = %14
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %35
22: ; preds = %18
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %6, align 4
%26 = call i32 @partition(ptr noundef %23, i32 noundef %24, i32 noundef %25)
store i32 %26, ptr %8, align 4
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %5, align 4
%29 = load i32, ptr %8, align 4
%30 = sub nsw i32 %29, 1
call void @quicksort(ptr noundef %27, i32 noundef %28, i32 noundef %30)
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
%34 = load i32, ptr %6, align 4
call void @quicksort(ptr noundef %31, i32 noundef %33, i32 noundef %34)
br label %35
35: ; preds = %22, %18, %17
ret void
}
declare i32 @partition(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"}
|
; ModuleID = '/tmp/tmp4aon576g.c'
source_filename = "/tmp/tmp4aon576g.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/tmp4aon576g.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/tmpzrmwt7mv.c'
source_filename = "/tmp/tmpzrmwt7mv.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 @hanoi(i32 noundef 20, i32 noundef 1, i32 noundef 3, i32 noundef 2)
ret i32 0
}
declare i32 @hanoi(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/tmpzrmwt7mv.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 @hanoi(i32 noundef 20, i32 noundef 1, i32 noundef 3, i32 noundef 2)
ret i32 0
}
declare i32 @hanoi(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/tmp256kpigc.c'
source_filename = "/tmp/tmp256kpigc.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/tmp256kpigc.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/tmpum7nc7cw.c'
source_filename = "/tmp/tmpum7nc7cw.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.arr = private unnamed_addr constant [13 x i32] [i32 10, i32 30, i32 60, i32 100, i32 1, i32 2, i32 7, i32 9, i32 80, i32 40, i32 55, i32 22, i32 99], align 16
@.str = private unnamed_addr constant [27 x i8] c"The rank %d element is %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 [13 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = 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
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.arr, i64 52, i1 false)
store i32 13, ptr %7, align 4
store i32 1, ptr %8, align 4
br label %10
10: ; preds = %26, %2
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp sle i32 %11, %12
br i1 %13, label %14, label %29
14: ; preds = %10
%15 = getelementptr inbounds [13 x i32], ptr %6, i64 0, i64 0
%16 = load i32, ptr %7, align 4
%17 = sub nsw i32 %16, 1
%18 = load i32, ptr %8, align 4
%19 = call i32 @selection(ptr noundef %15, i32 noundef 0, i32 noundef %17, i32 noundef %18)
store i32 %19, ptr %9, align 4
%20 = load i32, ptr %8, align 4
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [13 x i32], ptr %6, i64 0, i64 %22
%24 = load i32, ptr %23, align 4
%25 = call i32 @printf(ptr noundef @.str, i32 noundef %20, i32 noundef %24)
br label %26
26: ; preds = %14
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %8, align 4
br label %10, !llvm.loop !6
29: ; preds = %10
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
declare i32 @selection(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 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 nounwind willreturn memory(argmem: readwrite) }
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/tmpum7nc7cw.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.arr = private unnamed_addr constant [13 x i32] [i32 10, i32 30, i32 60, i32 100, i32 1, i32 2, i32 7, i32 9, i32 80, i32 40, i32 55, i32 22, i32 99], align 16
@.str = private unnamed_addr constant [27 x i8] c"The rank %d element is %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 [13 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = 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
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.arr, i64 52, i1 false)
store i32 13, ptr %7, align 4
store i32 1, ptr %8, align 4
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %.lr.ph, label %31
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %25
%14 = getelementptr inbounds [13 x i32], ptr %6, i64 0, i64 0
%15 = load i32, ptr %7, align 4
%16 = sub nsw i32 %15, 1
%17 = load i32, ptr %8, align 4
%18 = call i32 @selection(ptr noundef %14, i32 noundef 0, i32 noundef %16, i32 noundef %17)
store i32 %18, ptr %9, align 4
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %9, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [13 x i32], ptr %6, i64 0, i64 %21
%23 = load i32, ptr %22, align 4
%24 = call i32 @printf(ptr noundef @.str, i32 noundef %19, i32 noundef %23)
br label %25
25: ; preds = %13
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %7, align 4
%30 = icmp sle i32 %28, %29
br i1 %30, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %2
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
declare i32 @selection(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 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 nounwind willreturn memory(argmem: readwrite) }
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/tmpd_vpdzs_.c'
source_filename = "/tmp/tmpd_vpdzs_.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/tmpd_vpdzs_.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/tmpkhpsv15e.c'
source_filename = "/tmp/tmpkhpsv15e.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.array = private unnamed_addr constant [14 x i32] [i32 5, i32 2, i32 1, i32 20, i32 70, i32 -20, i32 30, i32 22, i32 6, i32 7, i32 8, i32 11, i32 0, i32 0], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [14 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.array, i64 56, i1 false)
store i32 14, ptr %3, align 4
%4 = getelementptr inbounds [14 x i32], ptr %2, i64 0, i64 0
%5 = load i32, ptr %3, align 4
%6 = call i32 @print_array(ptr noundef %4, i32 noundef %5)
%7 = getelementptr inbounds [14 x i32], ptr %2, i64 0, i64 0
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %8, 1
%10 = call i32 @quicksort(ptr noundef %7, i32 noundef 0, i32 noundef %9)
%11 = getelementptr inbounds [14 x i32], ptr %2, i64 0, i64 0
%12 = load i32, ptr %3, align 4
%13 = call i32 @print_array(ptr noundef %11, i32 noundef %12)
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
declare i32 @print_array(ptr noundef, i32 noundef) #2
declare i32 @quicksort(ptr noundef, i32 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 nounwind willreturn memory(argmem: readwrite) }
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/tmpkhpsv15e.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.array = private unnamed_addr constant [14 x i32] [i32 5, i32 2, i32 1, i32 20, i32 70, i32 -20, i32 30, i32 22, i32 6, i32 7, i32 8, i32 11, i32 0, i32 0], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [14 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.array, i64 56, i1 false)
store i32 14, ptr %3, align 4
%4 = getelementptr inbounds [14 x i32], ptr %2, i64 0, i64 0
%5 = load i32, ptr %3, align 4
%6 = call i32 @print_array(ptr noundef %4, i32 noundef %5)
%7 = getelementptr inbounds [14 x i32], ptr %2, i64 0, i64 0
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %8, 1
%10 = call i32 @quicksort(ptr noundef %7, i32 noundef 0, i32 noundef %9)
%11 = getelementptr inbounds [14 x i32], ptr %2, i64 0, i64 0
%12 = load i32, ptr %3, align 4
%13 = call i32 @print_array(ptr noundef %11, i32 noundef %12)
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
declare i32 @print_array(ptr noundef, i32 noundef) #2
declare i32 @quicksort(ptr noundef, i32 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 nounwind willreturn memory(argmem: readwrite) }
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/tmpv4m31w15.c'
source_filename = "/tmp/tmpv4m31w15.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"
@mandelbrot.sym = internal constant [17 x i8] c" .:-;!/>)|&IH%*#\00", align 16
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mandelbrot(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = sub nsw i32 0, %11
%13 = sdiv i32 %12, 2
%14 = sitofp i32 %13 to float
store float %14, ptr %9, align 4
br label %15
15: ; preds = %73, %2
%16 = load float, ptr %9, align 4
%17 = load i32, ptr %4, align 4
%18 = sdiv i32 %17, 2
%19 = sitofp i32 %18 to float
%20 = fcmp ole float %16, %19
br i1 %20, label %21, label %76
21: ; preds = %15
%22 = call i32 @puts(ptr noundef @.str)
store float 0.000000e+00, ptr %8, align 4
br label %23
23: ; preds = %69, %21
%24 = load float, ptr %8, align 4
%25 = load i32, ptr %3, align 4
%26 = sitofp i32 %25 to float
%27 = fcmp olt float %24, %26
br i1 %27, label %28, label %72
28: ; preds = %23
store float 0.000000e+00, ptr %7, align 4
store i32 0, ptr %10, align 4
store float 0.000000e+00, ptr %6, align 4
store float 0.000000e+00, ptr %5, align 4
br label %29
29: ; preds = %60, %28
%30 = load float, ptr %7, align 4
%31 = load float, ptr %7, align 4
%32 = load float, ptr %5, align 4
%33 = load float, ptr %5, align 4
%34 = fmul float %32, %33
%35 = fneg float %34
%36 = call float @llvm.fmuladd.f32(float %30, float %31, float %35)
%37 = fsub float %36, 2.000000e+00
%38 = load float, ptr %8, align 4
%39 = fdiv float %38, 2.500000e+01
%40 = fadd float %37, %39
store float %40, ptr %6, align 4
%41 = load float, ptr %7, align 4
%42 = fmul float 2.000000e+00, %41
%43 = load float, ptr %5, align 4
%44 = load float, ptr %9, align 4
%45 = fdiv float %44, 1.000000e+01
%46 = call float @llvm.fmuladd.f32(float %42, float %43, float %45)
store float %46, ptr %5, align 4
%47 = load float, ptr %6, align 4
store float %47, ptr %7, align 4
br label %48
48: ; preds = %29
%49 = load float, ptr %6, align 4
%50 = load float, ptr %6, align 4
%51 = load float, ptr %5, align 4
%52 = load float, ptr %5, align 4
%53 = fmul float %51, %52
%54 = call float @llvm.fmuladd.f32(float %49, float %50, float %53)
%55 = fcmp olt float %54, 1.100000e+01
br i1 %55, label %56, label %60
56: ; preds = %48
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
%59 = icmp slt i32 %57, 111
br label %60
60: ; preds = %56, %48
%61 = phi i1 [ false, %48 ], [ %59, %56 ]
br i1 %61, label %29, label %62, !llvm.loop !6
62: ; preds = %60
%63 = load i32, ptr %10, align 4
%64 = and i32 %63, 15
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [17 x i8], ptr @mandelbrot.sym, i64 0, i64 %65
%67 = load i8, ptr %66, align 1
%68 = call i32 @putchar(i8 noundef signext %67)
br label %69
69: ; preds = %62
%70 = load float, ptr %8, align 4
%71 = fadd float %70, 1.000000e+00
store float %71, ptr %8, align 4
br label %23, !llvm.loop !8
72: ; preds = %23
br label %73
73: ; preds = %72
%74 = load float, ptr %9, align 4
%75 = fadd float %74, 1.000000e+00
store float %75, ptr %9, align 4
br label %15, !llvm.loop !9
76: ; preds = %15
%77 = call i32 @puts(ptr noundef @.str)
ret void
}
declare i32 @puts(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
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" }
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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv4m31w15.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"
@mandelbrot.sym = internal constant [17 x i8] c" .:-;!/>)|&IH%*#\00", align 16
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mandelbrot(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = sub nsw i32 0, %11
%13 = sdiv i32 %12, 2
%14 = sitofp i32 %13 to float
store float %14, ptr %9, align 4
%15 = load float, ptr %9, align 4
%16 = load i32, ptr %4, align 4
%17 = sdiv i32 %16, 2
%18 = sitofp i32 %17 to float
%19 = fcmp ole float %15, %18
br i1 %19, label %.lr.ph2, label %83
.lr.ph2: ; preds = %2
br label %20
20: ; preds = %.lr.ph2, %75
%21 = call i32 @puts(ptr noundef @.str)
store float 0.000000e+00, ptr %8, align 4
%22 = load float, ptr %8, align 4
%23 = load i32, ptr %3, align 4
%24 = sitofp i32 %23 to float
%25 = fcmp olt float %22, %24
br i1 %25, label %.lr.ph, label %74
.lr.ph: ; preds = %20
br label %26
26: ; preds = %.lr.ph, %67
store float 0.000000e+00, ptr %7, align 4
store i32 0, ptr %10, align 4
store float 0.000000e+00, ptr %6, align 4
store float 0.000000e+00, ptr %5, align 4
br label %27
27: ; preds = %58, %26
%28 = load float, ptr %7, align 4
%29 = load float, ptr %7, align 4
%30 = load float, ptr %5, align 4
%31 = load float, ptr %5, align 4
%32 = fmul float %30, %31
%33 = fneg float %32
%34 = call float @llvm.fmuladd.f32(float %28, float %29, float %33)
%35 = fsub float %34, 2.000000e+00
%36 = load float, ptr %8, align 4
%37 = fdiv float %36, 2.500000e+01
%38 = fadd float %35, %37
store float %38, ptr %6, align 4
%39 = load float, ptr %7, align 4
%40 = fmul float 2.000000e+00, %39
%41 = load float, ptr %5, align 4
%42 = load float, ptr %9, align 4
%43 = fdiv float %42, 1.000000e+01
%44 = call float @llvm.fmuladd.f32(float %40, float %41, float %43)
store float %44, ptr %5, align 4
%45 = load float, ptr %6, align 4
store float %45, ptr %7, align 4
br label %46
46: ; preds = %27
%47 = load float, ptr %6, align 4
%48 = load float, ptr %6, align 4
%49 = load float, ptr %5, align 4
%50 = load float, ptr %5, align 4
%51 = fmul float %49, %50
%52 = call float @llvm.fmuladd.f32(float %47, float %48, float %51)
%53 = fcmp olt float %52, 1.100000e+01
br i1 %53, label %54, label %58
54: ; preds = %46
%55 = load i32, ptr %10, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %10, align 4
%57 = icmp slt i32 %55, 111
br label %58
58: ; preds = %54, %46
%59 = phi i1 [ false, %46 ], [ %57, %54 ]
br i1 %59, label %27, label %60, !llvm.loop !6
60: ; preds = %58
%61 = load i32, ptr %10, align 4
%62 = and i32 %61, 15
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [17 x i8], ptr @mandelbrot.sym, i64 0, i64 %63
%65 = load i8, ptr %64, align 1
%66 = call i32 @putchar(i8 noundef signext %65)
br label %67
67: ; preds = %60
%68 = load float, ptr %8, align 4
%69 = fadd float %68, 1.000000e+00
store float %69, ptr %8, align 4
%70 = load float, ptr %8, align 4
%71 = load i32, ptr %3, align 4
%72 = sitofp i32 %71 to float
%73 = fcmp olt float %70, %72
br i1 %73, label %26, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %67
br label %74
74: ; preds = %._crit_edge, %20
br label %75
75: ; preds = %74
%76 = load float, ptr %9, align 4
%77 = fadd float %76, 1.000000e+00
store float %77, ptr %9, align 4
%78 = load float, ptr %9, align 4
%79 = load i32, ptr %4, align 4
%80 = sdiv i32 %79, 2
%81 = sitofp i32 %80 to float
%82 = fcmp ole float %78, %81
br i1 %82, label %20, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %75
br label %83
83: ; preds = %._crit_edge3, %2
%84 = call i32 @puts(ptr noundef @.str)
ret void
}
declare i32 @puts(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
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" }
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}
|
; ModuleID = '/tmp/tmpbjw2aulb.c'
source_filename = "/tmp/tmpbjw2aulb.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/tmpbjw2aulb.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/tmp42ev810m.c'
source_filename = "/tmp/tmp42ev810m.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.sockaddr_in = type { i32, i32, i32 }
%struct.hostent = type { i32, ptr }
@__const.main.flagz = private unnamed_addr constant [6 x i8] c"______", align 1
@.str = private unnamed_addr constant [15 x i8] c"h:p:l:u:LUGNHS\00", align 1
@optarg = dso_local global ptr null, align 8
@optind = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [42 x i8] c"Missing some of the required parameters!\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"^\00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [18 x i8] c"Error on socket: \00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"Gethostname error!\0A\00", align 1
@.str.6 = private unnamed_addr constant [19 x i8] c"Error on connect: \00", align 1
@.str.7 = private unnamed_addr constant [17 x i8] c"Error on write: \00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"Error on read: \00", align 1
@.str.9 = private unnamed_addr constant [6 x i8] c"Chyba\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.11 = private unnamed_addr constant [17 x i8] c"Error on close: \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 i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [100 x ptr], align 16
%10 = alloca i32, align 4
%11 = alloca [100 x ptr], align 16
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca [6 x i8], align 1
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca %struct.sockaddr_in, align 4
%21 = alloca ptr, align 8
%22 = alloca i32, align 4
%23 = alloca ptr, align 8
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca [10000 x i8], align 16
%28 = alloca [10 x i8], align 1
%29 = 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
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %17, ptr align 1 @__const.main.flagz, i64 6, i1 false)
store i32 0, ptr %22, align 4
br label %30
30: ; preds = %148, %2
%31 = load i32, ptr %4, align 4
%32 = load ptr, ptr %5, align 8
%33 = call i32 @getopt(i32 noundef %31, ptr noundef %32, ptr noundef @.str)
store i32 %33, ptr %6, align 4
%34 = icmp ne i32 %33, -1
br i1 %34, label %35, label %149
35: ; preds = %30
%36 = load i32, ptr %6, align 4
switch i32 %36, label %144 [
i32 112, label %37
i32 104, label %40
i32 108, label %42
i32 117, label %75
i32 76, label %108
i32 85, label %114
i32 71, label %120
i32 78, label %126
i32 72, label %132
i32 83, label %138
]
37: ; preds = %35
%38 = load ptr, ptr @optarg, align 8
%39 = call i32 @atoi(ptr noundef %38)
store i32 %39, ptr %7, align 4
store i32 1, ptr %15, align 4
br label %148
40: ; preds = %35
%41 = load ptr, ptr @optarg, align 8
store ptr %41, ptr %8, align 8
store i32 1, ptr %16, align 4
br label %148
42: ; preds = %35
%43 = load i32, ptr @optind, align 4
%44 = sub nsw i32 %43, 1
store i32 %44, ptr @optind, align 4
store i32 0, ptr %10, align 4
br label %45
45: ; preds = %71, %42
%46 = load i32, ptr @optind, align 4
%47 = load i32, ptr %4, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %58
49: ; preds = %45
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr @optind, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %50, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp ne i32 %56, 45
br label %58
58: ; preds = %49, %45
%59 = phi i1 [ false, %45 ], [ %57, %49 ]
br i1 %59, label %60, label %74
60: ; preds = %58
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr @optind, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds ptr, ptr %61, i64 %63
%65 = load ptr, ptr %64, align 8
%66 = load i32, ptr %10, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [100 x ptr], ptr %9, i64 0, i64 %67
store ptr %65, ptr %68, align 8
%69 = load i32, ptr %10, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %10, align 4
br label %71
71: ; preds = %60
%72 = load i32, ptr @optind, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr @optind, align 4
br label %45, !llvm.loop !6
74: ; preds = %58
store i32 1, ptr %13, align 4
store i32 0, ptr %14, align 4
br label %148
75: ; preds = %35
%76 = load i32, ptr @optind, align 4
%77 = sub nsw i32 %76, 1
store i32 %77, ptr @optind, align 4
store i32 0, ptr %12, align 4
br label %78
78: ; preds = %104, %75
%79 = load i32, ptr @optind, align 4
%80 = load i32, ptr %4, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %91
82: ; preds = %78
%83 = load ptr, ptr %5, align 8
%84 = load i32, ptr @optind, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds ptr, ptr %83, i64 %85
%87 = load ptr, ptr %86, align 8
%88 = load i8, ptr %87, align 1
%89 = sext i8 %88 to i32
%90 = icmp ne i32 %89, 45
br label %91
91: ; preds = %82, %78
%92 = phi i1 [ false, %78 ], [ %90, %82 ]
br i1 %92, label %93, label %107
93: ; preds = %91
%94 = load ptr, ptr %5, align 8
%95 = load i32, ptr @optind, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds ptr, ptr %94, i64 %96
%98 = load ptr, ptr %97, align 8
%99 = load i32, ptr %12, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [100 x ptr], ptr %11, i64 0, i64 %100
store ptr %98, ptr %101, align 8
%102 = load i32, ptr %12, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %12, align 4
br label %104
104: ; preds = %93
%105 = load i32, ptr @optind, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr @optind, align 4
br label %78, !llvm.loop !8
107: ; preds = %91
store i32 1, ptr %14, align 4
store i32 0, ptr %13, align 4
br label %148
108: ; preds = %35
%109 = load i32, ptr %22, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 %110
store i8 76, ptr %111, align 1
%112 = load i32, ptr %22, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %22, align 4
br label %148
114: ; preds = %35
%115 = load i32, ptr %22, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 %116
store i8 85, ptr %117, align 1
%118 = load i32, ptr %22, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %22, align 4
br label %148
120: ; preds = %35
%121 = load i32, ptr %22, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 %122
store i8 71, ptr %123, align 1
%124 = load i32, ptr %22, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %22, align 4
br label %148
126: ; preds = %35
%127 = load i32, ptr %22, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 %128
store i8 78, ptr %129, align 1
%130 = load i32, ptr %22, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr %22, align 4
br label %148
132: ; preds = %35
%133 = load i32, ptr %22, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 %134
store i8 72, ptr %135, align 1
%136 = load i32, ptr %22, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr %22, align 4
br label %148
138: ; preds = %35
%139 = load i32, ptr %22, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 %140
store i8 83, ptr %141, align 1
%142 = load i32, ptr %22, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %22, align 4
br label %148
144: ; preds = %35
%145 = call i32 (...) @print_usage()
%146 = load i32, ptr @EXIT_FAILURE, align 4
%147 = call i32 @exit(i32 noundef %146) #4
unreachable
148: ; preds = %138, %132, %126, %120, %114, %108, %107, %74, %40, %37
br label %30, !llvm.loop !9
149: ; preds = %30
%150 = load i32, ptr %15, align 4
%151 = icmp eq i32 %150, 0
br i1 %151, label %161, label %152
152: ; preds = %149
%153 = load i32, ptr %16, align 4
%154 = icmp eq i32 %153, 0
br i1 %154, label %161, label %155
155: ; preds = %152
%156 = load i32, ptr %13, align 4
%157 = icmp eq i32 %156, 0
br i1 %157, label %158, label %165
158: ; preds = %155
%159 = load i32, ptr %14, align 4
%160 = icmp eq i32 %159, 0
br i1 %160, label %161, label %165
161: ; preds = %158, %152, %149
%162 = load i32, ptr @stderr, align 4
%163 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %162, ptr noundef @.str.1)
%164 = call i32 @exit(i32 noundef 1) #4
unreachable
165: ; preds = %158, %155
%166 = call ptr @malloc(i32 noundef 1000)
store ptr %166, ptr %23, align 8
store i32 0, ptr %24, align 4
br label %167
167: ; preds = %179, %165
%168 = load i32, ptr %24, align 4
%169 = icmp slt i32 %168, 6
br i1 %169, label %170, label %182
170: ; preds = %167
%171 = load i32, ptr %24, align 4
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 %172
%174 = load i8, ptr %173, align 1
%175 = load ptr, ptr %23, align 8
%176 = load i32, ptr %24, align 4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds i8, ptr %175, i64 %177
store i8 %174, ptr %178, align 1
br label %179
179: ; preds = %170
%180 = load i32, ptr %24, align 4
%181 = add nsw i32 %180, 1
store i32 %181, ptr %24, align 4
br label %167, !llvm.loop !10
182: ; preds = %167
%183 = load i32, ptr %13, align 4
%184 = icmp ne i32 %183, 0
br i1 %184, label %185, label %207
185: ; preds = %182
%186 = load ptr, ptr %23, align 8
%187 = getelementptr inbounds i8, ptr %186, i64 6
store i8 108, ptr %187, align 1
store i32 0, ptr %25, align 4
br label %188
188: ; preds = %201, %185
%189 = load i32, ptr %25, align 4
%190 = load i32, ptr %10, align 4
%191 = icmp slt i32 %189, %190
br i1 %191, label %192, label %204
192: ; preds = %188
%193 = load ptr, ptr %23, align 8
%194 = load i32, ptr %25, align 4
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds [100 x ptr], ptr %9, i64 0, i64 %195
%197 = load ptr, ptr %196, align 8
%198 = call i32 @strcat(ptr noundef %193, ptr noundef %197)
%199 = load ptr, ptr %23, align 8
%200 = call i32 @strcat(ptr noundef %199, ptr noundef @.str.2)
br label %201
201: ; preds = %192
%202 = load i32, ptr %25, align 4
%203 = add nsw i32 %202, 1
store i32 %203, ptr %25, align 4
br label %188, !llvm.loop !11
204: ; preds = %188
%205 = load ptr, ptr %23, align 8
%206 = call i32 @strcat(ptr noundef %205, ptr noundef @.str.3)
br label %207
207: ; preds = %204, %182
%208 = load i32, ptr %14, align 4
%209 = icmp ne i32 %208, 0
br i1 %209, label %210, label %232
210: ; preds = %207
%211 = load ptr, ptr %23, align 8
%212 = getelementptr inbounds i8, ptr %211, i64 6
store i8 117, ptr %212, align 1
store i32 0, ptr %26, align 4
br label %213
213: ; preds = %226, %210
%214 = load i32, ptr %26, align 4
%215 = load i32, ptr %12, align 4
%216 = icmp slt i32 %214, %215
br i1 %216, label %217, label %229
217: ; preds = %213
%218 = load ptr, ptr %23, align 8
%219 = load i32, ptr %26, align 4
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds [100 x ptr], ptr %11, i64 0, i64 %220
%222 = load ptr, ptr %221, align 8
%223 = call i32 @strcat(ptr noundef %218, ptr noundef %222)
%224 = load ptr, ptr %23, align 8
%225 = call i32 @strcat(ptr noundef %224, ptr noundef @.str.2)
br label %226
226: ; preds = %217
%227 = load i32, ptr %26, align 4
%228 = add nsw i32 %227, 1
store i32 %228, ptr %26, align 4
br label %213, !llvm.loop !12
229: ; preds = %213
%230 = load ptr, ptr %23, align 8
%231 = call i32 @strcat(ptr noundef %230, ptr noundef @.str.3)
br label %232
232: ; preds = %229, %207
%233 = load i32, ptr @PF_INET, align 4
%234 = load i32, ptr @SOCK_STREAM, align 4
%235 = call i32 @socket(i32 noundef %233, i32 noundef %234, i32 noundef 0)
store i32 %235, ptr %18, align 4
%236 = icmp slt i32 %235, 0
br i1 %236, label %237, label %239
237: ; preds = %232
%238 = call i32 @perror(ptr noundef @.str.4)
store i32 -1, ptr %3, align 4
br label %326
239: ; preds = %232
%240 = load i32, ptr @PF_INET, align 4
%241 = getelementptr inbounds %struct.sockaddr_in, ptr %20, i32 0, i32 2
store i32 %240, ptr %241, align 4
%242 = load i32, ptr %7, align 4
%243 = call i32 @htons(i32 noundef %242)
%244 = getelementptr inbounds %struct.sockaddr_in, ptr %20, i32 0, i32 1
store i32 %243, ptr %244, align 4
%245 = load ptr, ptr %8, align 8
%246 = call ptr @gethostbyname(ptr noundef %245)
store ptr %246, ptr %21, align 8
%247 = icmp eq ptr %246, null
br i1 %247, label %248, label %251
248: ; preds = %239
%249 = load i32, ptr @stderr, align 4
%250 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %249, ptr noundef @.str.5)
store i32 -1, ptr %3, align 4
br label %326
251: ; preds = %239
%252 = getelementptr inbounds %struct.sockaddr_in, ptr %20, i32 0, i32 0
%253 = load ptr, ptr %21, align 8
%254 = getelementptr inbounds %struct.hostent, ptr %253, i32 0, i32 1
%255 = load ptr, ptr %254, align 8
%256 = getelementptr inbounds i32, ptr %255, i64 0
%257 = load i32, ptr %256, align 4
%258 = load ptr, ptr %21, align 8
%259 = getelementptr inbounds %struct.hostent, ptr %258, i32 0, i32 0
%260 = load i32, ptr %259, align 8
%261 = call i32 @memcpy(ptr noundef %252, i32 noundef %257, i32 noundef %260)
%262 = load i32, ptr %18, align 4
%263 = call i64 @connect(i32 noundef %262, ptr noundef %20, i32 noundef 12)
%264 = icmp slt i64 %263, 0
br i1 %264, label %265, label %267
265: ; preds = %251
%266 = call i32 @perror(ptr noundef @.str.6)
store i32 -1, ptr %3, align 4
br label %326
267: ; preds = %251
%268 = load i32, ptr %18, align 4
%269 = load ptr, ptr %23, align 8
%270 = load ptr, ptr %23, align 8
%271 = call i64 @strlen(ptr noundef %270)
%272 = add nsw i64 %271, 1
%273 = call i64 @write(i32 noundef %268, ptr noundef %269, i64 noundef %272)
%274 = icmp slt i64 %273, 0
br i1 %274, label %275, label %277
275: ; preds = %267
%276 = call i32 @perror(ptr noundef @.str.7)
store i32 -1, ptr %3, align 4
br label %326
277: ; preds = %267
%278 = load ptr, ptr %23, align 8
%279 = call i32 @free(ptr noundef %278)
%280 = getelementptr inbounds [10000 x i8], ptr %27, i64 0, i64 0
%281 = call i32 @bzero(ptr noundef %280, i32 noundef 10000)
%282 = getelementptr inbounds [10 x i8], ptr %28, i64 0, i64 0
%283 = call i32 @bzero(ptr noundef %282, i32 noundef 10)
br label %284
284: ; preds = %277, %318
%285 = load i32, ptr %18, align 4
%286 = getelementptr inbounds [10000 x i8], ptr %27, i64 0, i64 0
%287 = call i32 @read(i32 noundef %285, ptr noundef %286, i32 noundef 9999)
store i32 %287, ptr %29, align 4
%288 = icmp eq i32 %287, -1
br i1 %288, label %289, label %292
289: ; preds = %284
%290 = call i32 @perror(ptr noundef @.str.8)
%291 = call i32 @exit(i32 noundef 1) #4
unreachable
292: ; preds = %284
%293 = load i32, ptr %29, align 4
%294 = icmp eq i32 %293, 0
br i1 %294, label %295, label %296
295: ; preds = %292
br label %319
296: ; preds = %292
%297 = load i32, ptr %29, align 4
%298 = sext i32 %297 to i64
%299 = getelementptr inbounds [10000 x i8], ptr %27, i64 0, i64 %298
store i8 0, ptr %299, align 1
%300 = getelementptr inbounds [10 x i8], ptr %28, i64 0, i64 0
%301 = getelementptr inbounds [10000 x i8], ptr %27, i64 0, i64 0
%302 = call i32 @strncpy(ptr noundef %300, ptr noundef %301, i32 noundef 5)
%303 = getelementptr inbounds [10000 x i8], ptr %27, i64 0, i64 0
%304 = call i64 @strlen(ptr noundef %303)
%305 = icmp ne i64 %304, 0
br i1 %305, label %306, label %318
306: ; preds = %296
%307 = getelementptr inbounds [10 x i8], ptr %28, i64 0, i64 0
%308 = call i64 @strcmp(ptr noundef %307, ptr noundef @.str.9)
%309 = icmp eq i64 %308, 0
br i1 %309, label %310, label %314
310: ; preds = %306
%311 = load i32, ptr @stderr, align 4
%312 = getelementptr inbounds [10000 x i8], ptr %27, i64 0, i64 0
%313 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %311, ptr noundef @.str.10, ptr noundef %312)
br label %317
314: ; preds = %306
%315 = getelementptr inbounds [10000 x i8], ptr %27, i64 0, i64 0
%316 = call i32 @printf(ptr noundef @.str.10, ptr noundef %315)
br label %317
317: ; preds = %314, %310
br label %318
318: ; preds = %317, %296
br label %284
319: ; preds = %295
%320 = load i32, ptr %18, align 4
%321 = call i64 @close(i32 noundef %320)
%322 = icmp slt i64 %321, 0
br i1 %322, label %323, label %325
323: ; preds = %319
%324 = call i32 @perror(ptr noundef @.str.11)
store i32 -1, ptr %3, align 4
br label %326
325: ; preds = %319
store i32 0, ptr %3, align 4
br label %326
326: ; preds = %325, %323, %275, %265, %248, %237
%327 = load i32, ptr %3, align 4
ret i32 %327
}
; 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
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @atoi(ptr noundef) #2
declare i32 @print_usage(...) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #2
declare ptr @malloc(i32 noundef) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
declare i32 @htons(i32 noundef) #2
declare ptr @gethostbyname(ptr noundef) #2
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #2
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #2
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #2
declare i64 @strlen(ptr noundef) #2
declare i32 @free(ptr noundef) #2
declare i32 @bzero(ptr noundef, i32 noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare i64 @close(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 nounwind willreturn memory(argmem: readwrite) }
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp42ev810m.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.sockaddr_in = type { i32, i32, i32 }
%struct.hostent = type { i32, ptr }
@__const.main.flagz = private unnamed_addr constant [6 x i8] c"______", align 1
@.str = private unnamed_addr constant [15 x i8] c"h:p:l:u:LUGNHS\00", align 1
@optarg = dso_local global ptr null, align 8
@optind = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [42 x i8] c"Missing some of the required parameters!\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"^\00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [18 x i8] c"Error on socket: \00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"Gethostname error!\0A\00", align 1
@.str.6 = private unnamed_addr constant [19 x i8] c"Error on connect: \00", align 1
@.str.7 = private unnamed_addr constant [17 x i8] c"Error on write: \00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"Error on read: \00", align 1
@.str.9 = private unnamed_addr constant [6 x i8] c"Chyba\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.11 = private unnamed_addr constant [17 x i8] c"Error on close: \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 i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [100 x ptr], align 16
%10 = alloca i32, align 4
%11 = alloca [100 x ptr], align 16
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca [6 x i8], align 1
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca %struct.sockaddr_in, align 4
%21 = alloca ptr, align 8
%22 = alloca i32, align 4
%23 = alloca ptr, align 8
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca [10000 x i8], align 16
%28 = alloca [10 x i8], align 1
%29 = 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
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %17, ptr align 1 @__const.main.flagz, i64 6, i1 false)
store i32 0, ptr %22, align 4
%30 = load i32, ptr %4, align 4
%31 = load ptr, ptr %5, align 8
%32 = call i32 @getopt(i32 noundef %30, ptr noundef %31, ptr noundef @.str)
store i32 %32, ptr %6, align 4
%33 = icmp ne i32 %32, -1
br i1 %33, label %.lr.ph, label %152
.lr.ph: ; preds = %2
br label %34
34: ; preds = %.lr.ph, %147
%35 = load i32, ptr %6, align 4
switch i32 %35, label %143 [
i32 112, label %36
i32 104, label %39
i32 108, label %41
i32 117, label %74
i32 76, label %107
i32 85, label %113
i32 71, label %119
i32 78, label %125
i32 72, label %131
i32 83, label %137
]
36: ; preds = %34
%37 = load ptr, ptr @optarg, align 8
%38 = call i32 @atoi(ptr noundef %37)
store i32 %38, ptr %7, align 4
store i32 1, ptr %15, align 4
br label %147
39: ; preds = %34
%40 = load ptr, ptr @optarg, align 8
store ptr %40, ptr %8, align 8
store i32 1, ptr %16, align 4
br label %147
41: ; preds = %34
%42 = load i32, ptr @optind, align 4
%43 = sub nsw i32 %42, 1
store i32 %43, ptr @optind, align 4
store i32 0, ptr %10, align 4
br label %44
44: ; preds = %70, %41
%45 = load i32, ptr @optind, align 4
%46 = load i32, ptr %4, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %57
48: ; preds = %44
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr @optind, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds ptr, ptr %49, i64 %51
%53 = load ptr, ptr %52, align 8
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = icmp ne i32 %55, 45
br label %57
57: ; preds = %48, %44
%58 = phi i1 [ false, %44 ], [ %56, %48 ]
br i1 %58, label %59, label %73
59: ; preds = %57
%60 = load ptr, ptr %5, align 8
%61 = load i32, ptr @optind, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds ptr, ptr %60, i64 %62
%64 = load ptr, ptr %63, align 8
%65 = load i32, ptr %10, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [100 x ptr], ptr %9, i64 0, i64 %66
store ptr %64, ptr %67, align 8
%68 = load i32, ptr %10, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %10, align 4
br label %70
70: ; preds = %59
%71 = load i32, ptr @optind, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr @optind, align 4
br label %44, !llvm.loop !6
73: ; preds = %57
store i32 1, ptr %13, align 4
store i32 0, ptr %14, align 4
br label %147
74: ; preds = %34
%75 = load i32, ptr @optind, align 4
%76 = sub nsw i32 %75, 1
store i32 %76, ptr @optind, align 4
store i32 0, ptr %12, align 4
br label %77
77: ; preds = %103, %74
%78 = load i32, ptr @optind, align 4
%79 = load i32, ptr %4, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %90
81: ; preds = %77
%82 = load ptr, ptr %5, align 8
%83 = load i32, ptr @optind, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds ptr, ptr %82, i64 %84
%86 = load ptr, ptr %85, align 8
%87 = load i8, ptr %86, align 1
%88 = sext i8 %87 to i32
%89 = icmp ne i32 %88, 45
br label %90
90: ; preds = %81, %77
%91 = phi i1 [ false, %77 ], [ %89, %81 ]
br i1 %91, label %92, label %106
92: ; preds = %90
%93 = load ptr, ptr %5, align 8
%94 = load i32, ptr @optind, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds ptr, ptr %93, i64 %95
%97 = load ptr, ptr %96, align 8
%98 = load i32, ptr %12, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [100 x ptr], ptr %11, i64 0, i64 %99
store ptr %97, ptr %100, align 8
%101 = load i32, ptr %12, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %12, align 4
br label %103
103: ; preds = %92
%104 = load i32, ptr @optind, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr @optind, align 4
br label %77, !llvm.loop !8
106: ; preds = %90
store i32 1, ptr %14, align 4
store i32 0, ptr %13, align 4
br label %147
107: ; preds = %34
%108 = load i32, ptr %22, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 %109
store i8 76, ptr %110, align 1
%111 = load i32, ptr %22, align 4
%112 = add nsw i32 %111, 1
store i32 %112, ptr %22, align 4
br label %147
113: ; preds = %34
%114 = load i32, ptr %22, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 %115
store i8 85, ptr %116, align 1
%117 = load i32, ptr %22, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %22, align 4
br label %147
119: ; preds = %34
%120 = load i32, ptr %22, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 %121
store i8 71, ptr %122, align 1
%123 = load i32, ptr %22, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %22, align 4
br label %147
125: ; preds = %34
%126 = load i32, ptr %22, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 %127
store i8 78, ptr %128, align 1
%129 = load i32, ptr %22, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %22, align 4
br label %147
131: ; preds = %34
%132 = load i32, ptr %22, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 %133
store i8 72, ptr %134, align 1
%135 = load i32, ptr %22, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %22, align 4
br label %147
137: ; preds = %34
%138 = load i32, ptr %22, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 %139
store i8 83, ptr %140, align 1
%141 = load i32, ptr %22, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %22, align 4
br label %147
143: ; preds = %34
%144 = call i32 (...) @print_usage()
%145 = load i32, ptr @EXIT_FAILURE, align 4
%146 = call i32 @exit(i32 noundef %145) #4
unreachable
147: ; preds = %137, %131, %125, %119, %113, %107, %106, %73, %39, %36
%148 = load i32, ptr %4, align 4
%149 = load ptr, ptr %5, align 8
%150 = call i32 @getopt(i32 noundef %148, ptr noundef %149, ptr noundef @.str)
store i32 %150, ptr %6, align 4
%151 = icmp ne i32 %150, -1
br i1 %151, label %34, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %147
br label %152
152: ; preds = %._crit_edge, %2
%153 = load i32, ptr %15, align 4
%154 = icmp eq i32 %153, 0
br i1 %154, label %164, label %155
155: ; preds = %152
%156 = load i32, ptr %16, align 4
%157 = icmp eq i32 %156, 0
br i1 %157, label %164, label %158
158: ; preds = %155
%159 = load i32, ptr %13, align 4
%160 = icmp eq i32 %159, 0
br i1 %160, label %161, label %168
161: ; preds = %158
%162 = load i32, ptr %14, align 4
%163 = icmp eq i32 %162, 0
br i1 %163, label %164, label %168
164: ; preds = %161, %155, %152
%165 = load i32, ptr @stderr, align 4
%166 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %165, ptr noundef @.str.1)
%167 = call i32 @exit(i32 noundef 1) #4
unreachable
168: ; preds = %161, %158
%169 = call ptr @malloc(i32 noundef 1000)
store ptr %169, ptr %23, align 8
store i32 0, ptr %24, align 4
%170 = load i32, ptr %24, align 4
%171 = icmp slt i32 %170, 6
br i1 %171, label %.lr.ph2, label %186
.lr.ph2: ; preds = %168
br label %172
172: ; preds = %.lr.ph2, %181
%173 = load i32, ptr %24, align 4
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 %174
%176 = load i8, ptr %175, align 1
%177 = load ptr, ptr %23, align 8
%178 = load i32, ptr %24, align 4
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds i8, ptr %177, i64 %179
store i8 %176, ptr %180, align 1
br label %181
181: ; preds = %172
%182 = load i32, ptr %24, align 4
%183 = add nsw i32 %182, 1
store i32 %183, ptr %24, align 4
%184 = load i32, ptr %24, align 4
%185 = icmp slt i32 %184, 6
br i1 %185, label %172, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %181
br label %186
186: ; preds = %._crit_edge3, %168
%187 = load i32, ptr %13, align 4
%188 = icmp ne i32 %187, 0
br i1 %188, label %189, label %213
189: ; preds = %186
%190 = load ptr, ptr %23, align 8
%191 = getelementptr inbounds i8, ptr %190, i64 6
store i8 108, ptr %191, align 1
store i32 0, ptr %25, align 4
%192 = load i32, ptr %25, align 4
%193 = load i32, ptr %10, align 4
%194 = icmp slt i32 %192, %193
br i1 %194, label %.lr.ph5, label %210
.lr.ph5: ; preds = %189
br label %195
195: ; preds = %.lr.ph5, %204
%196 = load ptr, ptr %23, align 8
%197 = load i32, ptr %25, align 4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds [100 x ptr], ptr %9, i64 0, i64 %198
%200 = load ptr, ptr %199, align 8
%201 = call i32 @strcat(ptr noundef %196, ptr noundef %200)
%202 = load ptr, ptr %23, align 8
%203 = call i32 @strcat(ptr noundef %202, ptr noundef @.str.2)
br label %204
204: ; preds = %195
%205 = load i32, ptr %25, align 4
%206 = add nsw i32 %205, 1
store i32 %206, ptr %25, align 4
%207 = load i32, ptr %25, align 4
%208 = load i32, ptr %10, align 4
%209 = icmp slt i32 %207, %208
br i1 %209, label %195, label %._crit_edge6, !llvm.loop !11
._crit_edge6: ; preds = %204
br label %210
210: ; preds = %._crit_edge6, %189
%211 = load ptr, ptr %23, align 8
%212 = call i32 @strcat(ptr noundef %211, ptr noundef @.str.3)
br label %213
213: ; preds = %210, %186
%214 = load i32, ptr %14, align 4
%215 = icmp ne i32 %214, 0
br i1 %215, label %216, label %240
216: ; preds = %213
%217 = load ptr, ptr %23, align 8
%218 = getelementptr inbounds i8, ptr %217, i64 6
store i8 117, ptr %218, align 1
store i32 0, ptr %26, align 4
%219 = load i32, ptr %26, align 4
%220 = load i32, ptr %12, align 4
%221 = icmp slt i32 %219, %220
br i1 %221, label %.lr.ph8, label %237
.lr.ph8: ; preds = %216
br label %222
222: ; preds = %.lr.ph8, %231
%223 = load ptr, ptr %23, align 8
%224 = load i32, ptr %26, align 4
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds [100 x ptr], ptr %11, i64 0, i64 %225
%227 = load ptr, ptr %226, align 8
%228 = call i32 @strcat(ptr noundef %223, ptr noundef %227)
%229 = load ptr, ptr %23, align 8
%230 = call i32 @strcat(ptr noundef %229, ptr noundef @.str.2)
br label %231
231: ; preds = %222
%232 = load i32, ptr %26, align 4
%233 = add nsw i32 %232, 1
store i32 %233, ptr %26, align 4
%234 = load i32, ptr %26, align 4
%235 = load i32, ptr %12, align 4
%236 = icmp slt i32 %234, %235
br i1 %236, label %222, label %._crit_edge9, !llvm.loop !12
._crit_edge9: ; preds = %231
br label %237
237: ; preds = %._crit_edge9, %216
%238 = load ptr, ptr %23, align 8
%239 = call i32 @strcat(ptr noundef %238, ptr noundef @.str.3)
br label %240
240: ; preds = %237, %213
%241 = load i32, ptr @PF_INET, align 4
%242 = load i32, ptr @SOCK_STREAM, align 4
%243 = call i32 @socket(i32 noundef %241, i32 noundef %242, i32 noundef 0)
store i32 %243, ptr %18, align 4
%244 = icmp slt i32 %243, 0
br i1 %244, label %245, label %247
245: ; preds = %240
%246 = call i32 @perror(ptr noundef @.str.4)
store i32 -1, ptr %3, align 4
br label %336
247: ; preds = %240
%248 = load i32, ptr @PF_INET, align 4
%249 = getelementptr inbounds %struct.sockaddr_in, ptr %20, i32 0, i32 2
store i32 %248, ptr %249, align 4
%250 = load i32, ptr %7, align 4
%251 = call i32 @htons(i32 noundef %250)
%252 = getelementptr inbounds %struct.sockaddr_in, ptr %20, i32 0, i32 1
store i32 %251, ptr %252, align 4
%253 = load ptr, ptr %8, align 8
%254 = call ptr @gethostbyname(ptr noundef %253)
store ptr %254, ptr %21, align 8
%255 = icmp eq ptr %254, null
br i1 %255, label %256, label %259
256: ; preds = %247
%257 = load i32, ptr @stderr, align 4
%258 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %257, ptr noundef @.str.5)
store i32 -1, ptr %3, align 4
br label %336
259: ; preds = %247
%260 = getelementptr inbounds %struct.sockaddr_in, ptr %20, i32 0, i32 0
%261 = load ptr, ptr %21, align 8
%262 = getelementptr inbounds %struct.hostent, ptr %261, i32 0, i32 1
%263 = load ptr, ptr %262, align 8
%264 = getelementptr inbounds i32, ptr %263, i64 0
%265 = load i32, ptr %264, align 4
%266 = load ptr, ptr %21, align 8
%267 = getelementptr inbounds %struct.hostent, ptr %266, i32 0, i32 0
%268 = load i32, ptr %267, align 8
%269 = call i32 @memcpy(ptr noundef %260, i32 noundef %265, i32 noundef %268)
%270 = load i32, ptr %18, align 4
%271 = call i64 @connect(i32 noundef %270, ptr noundef %20, i32 noundef 12)
%272 = icmp slt i64 %271, 0
br i1 %272, label %273, label %275
273: ; preds = %259
%274 = call i32 @perror(ptr noundef @.str.6)
store i32 -1, ptr %3, align 4
br label %336
275: ; preds = %259
%276 = load i32, ptr %18, align 4
%277 = load ptr, ptr %23, align 8
%278 = load ptr, ptr %23, align 8
%279 = call i64 @strlen(ptr noundef %278)
%280 = add nsw i64 %279, 1
%281 = call i64 @write(i32 noundef %276, ptr noundef %277, i64 noundef %280)
%282 = icmp slt i64 %281, 0
br i1 %282, label %283, label %285
283: ; preds = %275
%284 = call i32 @perror(ptr noundef @.str.7)
store i32 -1, ptr %3, align 4
br label %336
285: ; preds = %275
%286 = load ptr, ptr %23, align 8
%287 = call i32 @free(ptr noundef %286)
%288 = getelementptr inbounds [10000 x i8], ptr %27, i64 0, i64 0
%289 = call i32 @bzero(ptr noundef %288, i32 noundef 10000)
%290 = getelementptr inbounds [10 x i8], ptr %28, i64 0, i64 0
%291 = call i32 @bzero(ptr noundef %290, i32 noundef 10)
%292 = load i32, ptr %18, align 4
%293 = getelementptr inbounds [10000 x i8], ptr %27, i64 0, i64 0
%294 = call i32 @read(i32 noundef %292, ptr noundef %293, i32 noundef 9999)
store i32 %294, ptr %29, align 4
%295 = icmp eq i32 %294, -1
br i1 %295, label %296, label %.lr.ph11
.lr.ph11: ; preds = %285
br label %299
._crit_edge12: ; preds = %325
br label %296
296: ; preds = %._crit_edge12, %285
%297 = call i32 @perror(ptr noundef @.str.8)
%298 = call i32 @exit(i32 noundef 1) #4
unreachable
299: ; preds = %.lr.ph11, %325
%300 = load i32, ptr %29, align 4
%301 = icmp eq i32 %300, 0
br i1 %301, label %302, label %303
302: ; preds = %299
br label %329
303: ; preds = %299
%304 = load i32, ptr %29, align 4
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds [10000 x i8], ptr %27, i64 0, i64 %305
store i8 0, ptr %306, align 1
%307 = getelementptr inbounds [10 x i8], ptr %28, i64 0, i64 0
%308 = getelementptr inbounds [10000 x i8], ptr %27, i64 0, i64 0
%309 = call i32 @strncpy(ptr noundef %307, ptr noundef %308, i32 noundef 5)
%310 = getelementptr inbounds [10000 x i8], ptr %27, i64 0, i64 0
%311 = call i64 @strlen(ptr noundef %310)
%312 = icmp ne i64 %311, 0
br i1 %312, label %313, label %325
313: ; preds = %303
%314 = getelementptr inbounds [10 x i8], ptr %28, i64 0, i64 0
%315 = call i64 @strcmp(ptr noundef %314, ptr noundef @.str.9)
%316 = icmp eq i64 %315, 0
br i1 %316, label %317, label %321
317: ; preds = %313
%318 = load i32, ptr @stderr, align 4
%319 = getelementptr inbounds [10000 x i8], ptr %27, i64 0, i64 0
%320 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %318, ptr noundef @.str.10, ptr noundef %319)
br label %324
321: ; preds = %313
%322 = getelementptr inbounds [10000 x i8], ptr %27, i64 0, i64 0
%323 = call i32 @printf(ptr noundef @.str.10, ptr noundef %322)
br label %324
324: ; preds = %321, %317
br label %325
325: ; preds = %324, %303
%326 = load i32, ptr %18, align 4
%327 = call i32 @read(i32 noundef %326, ptr noundef %293, i32 noundef 9999)
store i32 %327, ptr %29, align 4
%328 = icmp eq i32 %327, -1
br i1 %328, label %._crit_edge12, label %299
329: ; preds = %302
%330 = load i32, ptr %18, align 4
%331 = call i64 @close(i32 noundef %330)
%332 = icmp slt i64 %331, 0
br i1 %332, label %333, label %335
333: ; preds = %329
%334 = call i32 @perror(ptr noundef @.str.11)
store i32 -1, ptr %3, align 4
br label %336
335: ; preds = %329
store i32 0, ptr %3, align 4
br label %336
336: ; preds = %335, %333, %283, %273, %256, %245
%337 = load i32, ptr %3, align 4
ret i32 %337
}
; 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
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @atoi(ptr noundef) #2
declare i32 @print_usage(...) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #2
declare ptr @malloc(i32 noundef) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
declare i32 @htons(i32 noundef) #2
declare ptr @gethostbyname(ptr noundef) #2
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #2
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #2
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #2
declare i64 @strlen(ptr noundef) #2
declare i32 @free(ptr noundef) #2
declare i32 @bzero(ptr noundef, i32 noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare i64 @close(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 nounwind willreturn memory(argmem: readwrite) }
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmp48pcq_ct.c'
source_filename = "/tmp/tmp48pcq_ct.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 @uninitvar_perror() #0 {
%1 = alloca ptr, align 8
%2 = load ptr, ptr %1, align 8
%3 = call i32 @perror(ptr noundef %2)
ret void
}
declare i32 @perror(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/tmp48pcq_ct.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 @uninitvar_perror() #0 {
%1 = alloca ptr, align 8
%2 = load ptr, ptr %1, align 8
%3 = call i32 @perror(ptr noundef %2)
ret void
}
declare i32 @perror(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/tmpu3vj6mg8.c'
source_filename = "/tmp/tmpu3vj6mg8.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 [47 x i8] c"M200_f(const char *s) is not yet implemented!\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @M200_f(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (ptr, ...) @debug(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @debug(ptr noundef @.str.1, ptr noundef %4)
ret i32 1
}
declare i32 @debug(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/tmpu3vj6mg8.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 [47 x i8] c"M200_f(const char *s) is not yet implemented!\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @M200_f(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (ptr, ...) @debug(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @debug(ptr noundef @.str.1, ptr noundef %4)
ret i32 1
}
declare i32 @debug(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/tmpj6c6fq82.c'
source_filename = "/tmp/tmpj6c6fq82.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"%f%f\00", align 1
@.str.1 = private unnamed_addr constant [56 x i8] c"The area of (%.4f,%.4f), (%.4f,0) and (0,%.4f) is %.4f.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%6 = load float, ptr %2, align 4
%7 = call double @abs(float noundef %6)
%8 = fmul double 5.000000e-01, %7
%9 = load float, ptr %3, align 4
%10 = call double @abs(float noundef %9)
%11 = fmul double %8, %10
%12 = fptrunc double %11 to float
store float %12, ptr %4, align 4
%13 = load float, ptr %2, align 4
%14 = load float, ptr %3, align 4
%15 = load float, ptr %2, align 4
%16 = load float, ptr %3, align 4
%17 = load float, ptr %4, align 4
%18 = call i32 @printf(ptr noundef @.str.1, float noundef %13, float noundef %14, float noundef %15, float noundef %16, float noundef %17)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare double @abs(float noundef) #1
declare i32 @printf(ptr noundef, float noundef, float noundef, float noundef, 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 = { "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/tmpj6c6fq82.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"%f%f\00", align 1
@.str.1 = private unnamed_addr constant [56 x i8] c"The area of (%.4f,%.4f), (%.4f,0) and (0,%.4f) is %.4f.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%6 = load float, ptr %2, align 4
%7 = call double @abs(float noundef %6)
%8 = fmul double 5.000000e-01, %7
%9 = load float, ptr %3, align 4
%10 = call double @abs(float noundef %9)
%11 = fmul double %8, %10
%12 = fptrunc double %11 to float
store float %12, ptr %4, align 4
%13 = load float, ptr %2, align 4
%14 = load float, ptr %3, align 4
%15 = load float, ptr %2, align 4
%16 = load float, ptr %3, align 4
%17 = load float, ptr %4, align 4
%18 = call i32 @printf(ptr noundef @.str.1, float noundef %13, float noundef %14, float noundef %15, float noundef %16, float noundef %17)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare double @abs(float noundef) #1
declare i32 @printf(ptr noundef, float noundef, float noundef, float noundef, 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 = { "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/tmpst_5hj34.c'
source_filename = "/tmp/tmpst_5hj34.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.termios = type { ptr }
@VMIN = dso_local global i64 0, align 8
@VTIME = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_blocking(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.termios, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef 8)
%7 = load i32, ptr %3, align 4
%8 = call i64 @tcgetattr(i32 noundef %7, ptr noundef %5)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %2
br label %24
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 0
%14 = zext i1 %13 to i64
%15 = select i1 %13, i32 1, i32 0
%16 = getelementptr inbounds %struct.termios, ptr %5, i32 0, i32 0
%17 = load ptr, ptr %16, align 8
%18 = load i64, ptr @VMIN, align 8
%19 = getelementptr inbounds i32, ptr %17, i64 %18
store i32 %15, ptr %19, align 4
%20 = getelementptr inbounds %struct.termios, ptr %5, i32 0, i32 0
%21 = load ptr, ptr %20, align 8
%22 = load i64, ptr @VTIME, align 8
%23 = getelementptr inbounds i32, ptr %21, i64 %22
store i32 5, ptr %23, align 4
br label %24
24: ; preds = %11, %10
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @tcgetattr(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/tmpst_5hj34.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.termios = type { ptr }
@VMIN = dso_local global i64 0, align 8
@VTIME = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_blocking(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.termios, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef 8)
%7 = load i32, ptr %3, align 4
%8 = call i64 @tcgetattr(i32 noundef %7, ptr noundef %5)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %2
br label %24
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 0
%14 = zext i1 %13 to i64
%15 = select i1 %13, i32 1, i32 0
%16 = getelementptr inbounds %struct.termios, ptr %5, i32 0, i32 0
%17 = load ptr, ptr %16, align 8
%18 = load i64, ptr @VMIN, align 8
%19 = getelementptr inbounds i32, ptr %17, i64 %18
store i32 %15, ptr %19, align 4
%20 = getelementptr inbounds %struct.termios, ptr %5, i32 0, i32 0
%21 = load ptr, ptr %20, align 8
%22 = load i64, ptr @VTIME, align 8
%23 = getelementptr inbounds i32, ptr %21, i64 %22
store i32 5, ptr %23, align 4
br label %24
24: ; preds = %11, %10
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @tcgetattr(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/tmpzodsznk9.c'
source_filename = "/tmp/tmpzodsznk9.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 @long2buff(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
store ptr %6, ptr %5, align 8
%7 = load i32, ptr %3, align 4
%8 = ashr i32 %7, 56
%9 = and i32 %8, 255
%10 = trunc i32 %9 to i8
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %5, align 8
store i8 %10, ptr %11, align 1
%13 = load i32, ptr %3, align 4
%14 = ashr i32 %13, 48
%15 = and i32 %14, 255
%16 = trunc i32 %15 to i8
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %5, align 8
store i8 %16, ptr %17, align 1
%19 = load i32, ptr %3, align 4
%20 = ashr i32 %19, 40
%21 = and i32 %20, 255
%22 = trunc i32 %21 to i8
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %5, align 8
store i8 %22, ptr %23, align 1
%25 = load i32, ptr %3, align 4
%26 = ashr i32 %25, 32
%27 = and i32 %26, 255
%28 = trunc i32 %27 to i8
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %5, align 8
store i8 %28, ptr %29, align 1
%31 = load i32, ptr %3, align 4
%32 = ashr i32 %31, 24
%33 = and i32 %32, 255
%34 = trunc i32 %33 to i8
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %5, align 8
store i8 %34, ptr %35, align 1
%37 = load i32, ptr %3, align 4
%38 = ashr i32 %37, 16
%39 = and i32 %38, 255
%40 = trunc i32 %39 to i8
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %5, align 8
store i8 %40, ptr %41, align 1
%43 = load i32, ptr %3, align 4
%44 = ashr i32 %43, 8
%45 = and i32 %44, 255
%46 = trunc i32 %45 to i8
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds i8, ptr %47, i32 1
store ptr %48, ptr %5, align 8
store i8 %46, ptr %47, align 1
%49 = load i32, ptr %3, align 4
%50 = and i32 %49, 255
%51 = trunc i32 %50 to i8
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds i8, ptr %52, i32 1
store ptr %53, ptr %5, align 8
store i8 %51, ptr %52, align 1
ret void
}
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/tmpzodsznk9.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 @long2buff(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
store ptr %6, ptr %5, align 8
%7 = load i32, ptr %3, align 4
%8 = ashr i32 %7, 56
%9 = and i32 %8, 255
%10 = trunc i32 %9 to i8
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %5, align 8
store i8 %10, ptr %11, align 1
%13 = load i32, ptr %3, align 4
%14 = ashr i32 %13, 48
%15 = and i32 %14, 255
%16 = trunc i32 %15 to i8
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %5, align 8
store i8 %16, ptr %17, align 1
%19 = load i32, ptr %3, align 4
%20 = ashr i32 %19, 40
%21 = and i32 %20, 255
%22 = trunc i32 %21 to i8
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %5, align 8
store i8 %22, ptr %23, align 1
%25 = load i32, ptr %3, align 4
%26 = ashr i32 %25, 32
%27 = and i32 %26, 255
%28 = trunc i32 %27 to i8
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %5, align 8
store i8 %28, ptr %29, align 1
%31 = load i32, ptr %3, align 4
%32 = ashr i32 %31, 24
%33 = and i32 %32, 255
%34 = trunc i32 %33 to i8
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %5, align 8
store i8 %34, ptr %35, align 1
%37 = load i32, ptr %3, align 4
%38 = ashr i32 %37, 16
%39 = and i32 %38, 255
%40 = trunc i32 %39 to i8
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %5, align 8
store i8 %40, ptr %41, align 1
%43 = load i32, ptr %3, align 4
%44 = ashr i32 %43, 8
%45 = and i32 %44, 255
%46 = trunc i32 %45 to i8
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds i8, ptr %47, i32 1
store ptr %48, ptr %5, align 8
store i8 %46, ptr %47, align 1
%49 = load i32, ptr %3, align 4
%50 = and i32 %49, 255
%51 = trunc i32 %50 to i8
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds i8, ptr %52, i32 1
store ptr %53, ptr %5, align 8
store i8 %51, ptr %52, align 1
ret void
}
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/tmpw50o93h_.c'
source_filename = "/tmp/tmpw50o93h_.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 [11 x i8] c" *\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c" * \0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c" * \0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c" * * \0A\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c" * * \0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c" * \0A\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 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str.3)
%6 = call i32 @printf(ptr noundef @.str.4)
%7 = call i32 @printf(ptr noundef @.str.5)
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/tmpw50o93h_.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 [11 x i8] c" *\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c" * \0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c" * \0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c" * * \0A\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c" * * \0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c" * \0A\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 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str.3)
%6 = call i32 @printf(ptr noundef @.str.4)
%7 = call i32 @printf(ptr noundef @.str.5)
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/tmp3blj1mja.c'
source_filename = "/tmp/tmp3blj1mja.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 [19 x i8] c"The price of gas: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Wow! %.2f for gas?\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load float, ptr %2, align 4
%6 = fpext float %5 to double
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %6)
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/tmp3blj1mja.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 [19 x i8] c"The price of gas: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Wow! %.2f for gas?\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load float, ptr %2, align 4
%6 = fpext float %5 to double
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %6)
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/tmpab51t4rb.c'
source_filename = "/tmp/tmpab51t4rb.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/tmpab51t4rb.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/tmphunloa1q.c'
source_filename = "/tmp/tmphunloa1q.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/tmphunloa1q.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/tmpj7aa2ofc.c'
source_filename = "/tmp/tmpj7aa2ofc.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"
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@stderr = 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/tmpj7aa2ofc.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"
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@stderr = 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/tmpmds4nku_.c'
source_filename = "/tmp/tmpmds4nku_.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.timeval = type { i32, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local { i32, i64 } @addTime(i32 %0, i64 %1, i32 noundef %2) #0 {
%4 = alloca %struct.timeval, align 8
%5 = alloca %struct.timeval, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = getelementptr inbounds { i32, i64 }, ptr %5, i32 0, i32 0
store i32 %0, ptr %8, align 8
%9 = getelementptr inbounds { i32, i64 }, ptr %5, i32 0, i32 1
store i64 %1, ptr %9, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = sdiv i32 %10, 1000
store i32 %11, ptr %7, align 4
%12 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 1
%13 = load i64, ptr %12, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = add nsw i64 %13, %15
%17 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
store i64 %16, ptr %17, align 8
%18 = load i32, ptr %6, align 4
%19 = srem i32 %18, 1000
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = mul nsw i32 %20, 1000
%22 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 0
%23 = load i32, ptr %22, align 8
%24 = add nsw i32 %21, %23
%25 = icmp sgt i32 %24, 999999
br i1 %25, label %26, label %34
26: ; preds = %3
%27 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
%28 = load i64, ptr %27, align 8
%29 = add nsw i64 %28, 1
store i64 %29, ptr %27, align 8
%30 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 0
%31 = load i32, ptr %30, align 8
%32 = sub nsw i32 %31, 1000000
%33 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
store i32 %32, ptr %33, align 8
br label %38
34: ; preds = %3
%35 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 0
%36 = load i32, ptr %35, align 8
%37 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
store i32 %36, ptr %37, align 8
br label %38
38: ; preds = %34, %26
%39 = load i32, ptr %6, align 4
%40 = mul nsw i32 %39, 1000
%41 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
%42 = load i32, ptr %41, align 8
%43 = add nsw i32 %42, %40
store i32 %43, ptr %41, align 8
%44 = load { i32, i64 }, ptr %4, align 8
ret { i32, i64 } %44
}
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/tmpmds4nku_.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.timeval = type { i32, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local { i32, i64 } @addTime(i32 %0, i64 %1, i32 noundef %2) #0 {
%4 = alloca %struct.timeval, align 8
%5 = alloca %struct.timeval, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = getelementptr inbounds { i32, i64 }, ptr %5, i32 0, i32 0
store i32 %0, ptr %8, align 8
%9 = getelementptr inbounds { i32, i64 }, ptr %5, i32 0, i32 1
store i64 %1, ptr %9, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = sdiv i32 %10, 1000
store i32 %11, ptr %7, align 4
%12 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 1
%13 = load i64, ptr %12, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = add nsw i64 %13, %15
%17 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
store i64 %16, ptr %17, align 8
%18 = load i32, ptr %6, align 4
%19 = srem i32 %18, 1000
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = mul nsw i32 %20, 1000
%22 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 0
%23 = load i32, ptr %22, align 8
%24 = add nsw i32 %21, %23
%25 = icmp sgt i32 %24, 999999
br i1 %25, label %26, label %34
26: ; preds = %3
%27 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
%28 = load i64, ptr %27, align 8
%29 = add nsw i64 %28, 1
store i64 %29, ptr %27, align 8
%30 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 0
%31 = load i32, ptr %30, align 8
%32 = sub nsw i32 %31, 1000000
%33 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
store i32 %32, ptr %33, align 8
br label %38
34: ; preds = %3
%35 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 0
%36 = load i32, ptr %35, align 8
%37 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
store i32 %36, ptr %37, align 8
br label %38
38: ; preds = %34, %26
%39 = load i32, ptr %6, align 4
%40 = mul nsw i32 %39, 1000
%41 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
%42 = load i32, ptr %41, align 8
%43 = add nsw i32 %42, %40
store i32 %43, ptr %41, align 8
%44 = load { i32, i64 }, ptr %4, align 8
ret { i32, i64 } %44
}
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/tmp86w_p76w.c'
source_filename = "/tmp/tmp86w_p76w.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 @or1k_timer_disable() #0 {
%1 = call i32 @or1k_mfspr(i32 noundef 17)
%2 = and i32 -3, %1
%3 = call i32 @or1k_mtspr(i32 noundef 17, i32 noundef %2)
ret void
}
declare i32 @or1k_mtspr(i32 noundef, i32 noundef) #1
declare i32 @or1k_mfspr(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/tmp86w_p76w.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 @or1k_timer_disable() #0 {
%1 = call i32 @or1k_mfspr(i32 noundef 17)
%2 = and i32 -3, %1
%3 = call i32 @or1k_mtspr(i32 noundef 17, i32 noundef %2)
ret void
}
declare i32 @or1k_mtspr(i32 noundef, i32 noundef) #1
declare i32 @or1k_mfspr(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/tmpoxn1gq9j.c'
source_filename = "/tmp/tmpoxn1gq9j.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 @address_of_local() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr %1, ptr %2, align 8
store ptr %2, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %5, align 8
%7 = call i32 @inc(ptr noundef %6)
%8 = load i32, ptr %1, align 4
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, 1
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 noundef %11)
ret void
}
declare i32 @inc(ptr noundef) #1
declare i32 @assert(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/tmpoxn1gq9j.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 @address_of_local() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr %1, ptr %2, align 8
store ptr %2, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %5, align 8
%7 = call i32 @inc(ptr noundef %6)
%8 = load i32, ptr %1, align 4
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, 1
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 noundef %11)
ret void
}
declare i32 @inc(ptr noundef) #1
declare i32 @assert(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/tmpexqlxdlj.c'
source_filename = "/tmp/tmpexqlxdlj.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 [19 x i8] c"Zadej pruvodic r: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Spatne zadani\0A\07\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Zadej uhel fi ve stupnich: \00", align 1
@M_PI = dso_local global double 0.000000e+00, align 8
@.str.4 = private unnamed_addr constant [39 x i8] c"Tento bod ma souradnice x=%lf a y=%lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%9 = icmp ne i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %1, align 4
br label %29
12: ; preds = %0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%14 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%15 = icmp ne i32 %14, 1
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %1, align 4
br label %29
18: ; preds = %12
%19 = load double, ptr %3, align 8
%20 = load double, ptr @M_PI, align 8
%21 = fdiv double %20, 1.800000e+02
%22 = fmul double %19, %21
store double %22, ptr %4, align 8
%23 = load double, ptr %2, align 8
%24 = load double, ptr %4, align 8
%25 = call i32 @polToKartez(double noundef %23, double noundef %24, ptr noundef %5, ptr noundef %6)
%26 = load double, ptr %5, align 8
%27 = load double, ptr %6, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %26, double noundef %27)
store i32 0, ptr %1, align 4
br label %29
29: ; preds = %18, %16, %10
%30 = load i32, ptr %1, align 4
ret i32 %30
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @polToKartez(double noundef, double 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/tmpexqlxdlj.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 [19 x i8] c"Zadej pruvodic r: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Spatne zadani\0A\07\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Zadej uhel fi ve stupnich: \00", align 1
@M_PI = dso_local global double 0.000000e+00, align 8
@.str.4 = private unnamed_addr constant [39 x i8] c"Tento bod ma souradnice x=%lf a y=%lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%9 = icmp ne i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %1, align 4
br label %29
12: ; preds = %0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%14 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%15 = icmp ne i32 %14, 1
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %1, align 4
br label %29
18: ; preds = %12
%19 = load double, ptr %3, align 8
%20 = load double, ptr @M_PI, align 8
%21 = fdiv double %20, 1.800000e+02
%22 = fmul double %19, %21
store double %22, ptr %4, align 8
%23 = load double, ptr %2, align 8
%24 = load double, ptr %4, align 8
%25 = call i32 @polToKartez(double noundef %23, double noundef %24, ptr noundef %5, ptr noundef %6)
%26 = load double, ptr %5, align 8
%27 = load double, ptr %6, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %26, double noundef %27)
store i32 0, ptr %1, align 4
br label %29
29: ; preds = %18, %16, %10
%30 = load i32, ptr %1, align 4
ret i32 %30
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @polToKartez(double noundef, double 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/tmpoh32fax6.c'
source_filename = "/tmp/tmpoh32fax6.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 [32 x i8] c"\0ATemperature Conversion Table\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"%3.0f\09%6.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store float 3.000000e+02, ptr %2, align 4
br label %7
7: ; preds = %16, %0
%8 = load float, ptr %2, align 4
%9 = fcmp oge float %8, 0.000000e+00
br i1 %9, label %10, label %19
10: ; preds = %7
%11 = load float, ptr %2, align 4
%12 = fpext float %11 to double
%13 = load float, ptr %2, align 4
%14 = call double @fahr2celsius(float noundef %13)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %12, double noundef %14)
br label %16
16: ; preds = %10
%17 = load float, ptr %2, align 4
%18 = fsub float %17, 2.000000e+01
store float %18, ptr %2, align 4
br label %7, !llvm.loop !6
19: ; preds = %7
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare double @fahr2celsius(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 = { "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/tmpoh32fax6.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 [32 x i8] c"\0ATemperature Conversion Table\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"%3.0f\09%6.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store float 3.000000e+02, ptr %2, align 4
%7 = load float, ptr %2, align 4
%8 = fcmp oge float %7, 0.000000e+00
br i1 %8, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %15
%10 = load float, ptr %2, align 4
%11 = fpext float %10 to double
%12 = load float, ptr %2, align 4
%13 = call double @fahr2celsius(float noundef %12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %11, double noundef %13)
br label %15
15: ; preds = %9
%16 = load float, ptr %2, align 4
%17 = fsub float %16, 2.000000e+01
store float %17, ptr %2, align 4
%18 = load float, ptr %2, align 4
%19 = fcmp oge float %18, 0.000000e+00
br i1 %19, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare double @fahr2celsius(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 = { "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/tmps30l7725.c'
source_filename = "/tmp/tmps30l7725.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"list\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"show\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"lst\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"help\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"add\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"delete\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"identify\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"pids\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"exec\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"monitor\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [47 x i8] c"Command \22%s\22 is unknown, try \22ip netns help\22.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_netns(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 1
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @netns_list(i32 noundef 0, ptr noundef null)
store i32 %9, ptr %3, align 4
br label %110
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = load ptr, ptr %11, align 8
%13 = call i64 @matches(ptr noundef %12, ptr noundef @.str)
%14 = icmp eq i64 %13, 0
br i1 %14, label %25, label %15
15: ; preds = %10
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %16, align 8
%18 = call i64 @matches(ptr noundef %17, ptr noundef @.str.1)
%19 = icmp eq i64 %18, 0
br i1 %19, label %25, label %20
20: ; preds = %15
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %21, align 8
%23 = call i64 @matches(ptr noundef %22, ptr noundef @.str.2)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %20, %15, %10
%26 = load i32, ptr %4, align 4
%27 = sub nsw i32 %26, 1
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = call i32 @netns_list(i32 noundef %27, ptr noundef %29)
store i32 %30, ptr %3, align 4
br label %110
31: ; preds = %20
%32 = load ptr, ptr %5, align 8
%33 = load ptr, ptr %32, align 8
%34 = call i64 @matches(ptr noundef %33, ptr noundef @.str.3)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %31
%37 = call i32 (...) @usage()
store i32 %37, ptr %3, align 4
br label %110
38: ; preds = %31
%39 = load ptr, ptr %5, align 8
%40 = load ptr, ptr %39, align 8
%41 = call i64 @matches(ptr noundef %40, ptr noundef @.str.4)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %49
43: ; preds = %38
%44 = load i32, ptr %4, align 4
%45 = sub nsw i32 %44, 1
%46 = load ptr, ptr %5, align 8
%47 = getelementptr inbounds ptr, ptr %46, i64 1
%48 = call i32 @netns_add(i32 noundef %45, ptr noundef %47)
store i32 %48, ptr %3, align 4
br label %110
49: ; preds = %38
%50 = load ptr, ptr %5, align 8
%51 = load ptr, ptr %50, align 8
%52 = call i64 @matches(ptr noundef %51, ptr noundef @.str.5)
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %60
54: ; preds = %49
%55 = load i32, ptr %4, align 4
%56 = sub nsw i32 %55, 1
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds ptr, ptr %57, i64 1
%59 = call i32 @netns_delete(i32 noundef %56, ptr noundef %58)
store i32 %59, ptr %3, align 4
br label %110
60: ; preds = %49
%61 = load ptr, ptr %5, align 8
%62 = load ptr, ptr %61, align 8
%63 = call i64 @matches(ptr noundef %62, ptr noundef @.str.6)
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %71
65: ; preds = %60
%66 = load i32, ptr %4, align 4
%67 = sub nsw i32 %66, 1
%68 = load ptr, ptr %5, align 8
%69 = getelementptr inbounds ptr, ptr %68, i64 1
%70 = call i32 @netns_identify(i32 noundef %67, ptr noundef %69)
store i32 %70, ptr %3, align 4
br label %110
71: ; preds = %60
%72 = load ptr, ptr %5, align 8
%73 = load ptr, ptr %72, align 8
%74 = call i64 @matches(ptr noundef %73, ptr noundef @.str.7)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %82
76: ; preds = %71
%77 = load i32, ptr %4, align 4
%78 = sub nsw i32 %77, 1
%79 = load ptr, ptr %5, align 8
%80 = getelementptr inbounds ptr, ptr %79, i64 1
%81 = call i32 @netns_pids(i32 noundef %78, ptr noundef %80)
store i32 %81, ptr %3, align 4
br label %110
82: ; preds = %71
%83 = load ptr, ptr %5, align 8
%84 = load ptr, ptr %83, align 8
%85 = call i64 @matches(ptr noundef %84, ptr noundef @.str.8)
%86 = icmp eq i64 %85, 0
br i1 %86, label %87, label %93
87: ; preds = %82
%88 = load i32, ptr %4, align 4
%89 = sub nsw i32 %88, 1
%90 = load ptr, ptr %5, align 8
%91 = getelementptr inbounds ptr, ptr %90, i64 1
%92 = call i32 @netns_exec(i32 noundef %89, ptr noundef %91)
store i32 %92, ptr %3, align 4
br label %110
93: ; preds = %82
%94 = load ptr, ptr %5, align 8
%95 = load ptr, ptr %94, align 8
%96 = call i64 @matches(ptr noundef %95, ptr noundef @.str.9)
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %104
98: ; preds = %93
%99 = load i32, ptr %4, align 4
%100 = sub nsw i32 %99, 1
%101 = load ptr, ptr %5, align 8
%102 = getelementptr inbounds ptr, ptr %101, i64 1
%103 = call i32 @netns_monitor(i32 noundef %100, ptr noundef %102)
store i32 %103, ptr %3, align 4
br label %110
104: ; preds = %93
%105 = load i32, ptr @stderr, align 4
%106 = load ptr, ptr %5, align 8
%107 = load ptr, ptr %106, align 8
%108 = call i32 @fprintf(i32 noundef %105, ptr noundef @.str.10, ptr noundef %107)
%109 = call i32 @exit(i32 noundef -1) #3
unreachable
110: ; preds = %98, %87, %76, %65, %54, %43, %36, %25, %8
%111 = load i32, ptr %3, align 4
ret i32 %111
}
declare i32 @netns_list(i32 noundef, ptr noundef) #1
declare i64 @matches(ptr noundef, ptr noundef) #1
declare i32 @usage(...) #1
declare i32 @netns_add(i32 noundef, ptr noundef) #1
declare i32 @netns_delete(i32 noundef, ptr noundef) #1
declare i32 @netns_identify(i32 noundef, ptr noundef) #1
declare i32 @netns_pids(i32 noundef, ptr noundef) #1
declare i32 @netns_exec(i32 noundef, ptr noundef) #1
declare i32 @netns_monitor(i32 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr 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/tmps30l7725.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"list\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"show\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"lst\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"help\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"add\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"delete\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"identify\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"pids\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"exec\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"monitor\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [47 x i8] c"Command \22%s\22 is unknown, try \22ip netns help\22.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_netns(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 1
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @netns_list(i32 noundef 0, ptr noundef null)
store i32 %9, ptr %3, align 4
br label %110
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = load ptr, ptr %11, align 8
%13 = call i64 @matches(ptr noundef %12, ptr noundef @.str)
%14 = icmp eq i64 %13, 0
br i1 %14, label %25, label %15
15: ; preds = %10
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %16, align 8
%18 = call i64 @matches(ptr noundef %17, ptr noundef @.str.1)
%19 = icmp eq i64 %18, 0
br i1 %19, label %25, label %20
20: ; preds = %15
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %21, align 8
%23 = call i64 @matches(ptr noundef %22, ptr noundef @.str.2)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %20, %15, %10
%26 = load i32, ptr %4, align 4
%27 = sub nsw i32 %26, 1
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = call i32 @netns_list(i32 noundef %27, ptr noundef %29)
store i32 %30, ptr %3, align 4
br label %110
31: ; preds = %20
%32 = load ptr, ptr %5, align 8
%33 = load ptr, ptr %32, align 8
%34 = call i64 @matches(ptr noundef %33, ptr noundef @.str.3)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %31
%37 = call i32 (...) @usage()
store i32 %37, ptr %3, align 4
br label %110
38: ; preds = %31
%39 = load ptr, ptr %5, align 8
%40 = load ptr, ptr %39, align 8
%41 = call i64 @matches(ptr noundef %40, ptr noundef @.str.4)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %49
43: ; preds = %38
%44 = load i32, ptr %4, align 4
%45 = sub nsw i32 %44, 1
%46 = load ptr, ptr %5, align 8
%47 = getelementptr inbounds ptr, ptr %46, i64 1
%48 = call i32 @netns_add(i32 noundef %45, ptr noundef %47)
store i32 %48, ptr %3, align 4
br label %110
49: ; preds = %38
%50 = load ptr, ptr %5, align 8
%51 = load ptr, ptr %50, align 8
%52 = call i64 @matches(ptr noundef %51, ptr noundef @.str.5)
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %60
54: ; preds = %49
%55 = load i32, ptr %4, align 4
%56 = sub nsw i32 %55, 1
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds ptr, ptr %57, i64 1
%59 = call i32 @netns_delete(i32 noundef %56, ptr noundef %58)
store i32 %59, ptr %3, align 4
br label %110
60: ; preds = %49
%61 = load ptr, ptr %5, align 8
%62 = load ptr, ptr %61, align 8
%63 = call i64 @matches(ptr noundef %62, ptr noundef @.str.6)
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %71
65: ; preds = %60
%66 = load i32, ptr %4, align 4
%67 = sub nsw i32 %66, 1
%68 = load ptr, ptr %5, align 8
%69 = getelementptr inbounds ptr, ptr %68, i64 1
%70 = call i32 @netns_identify(i32 noundef %67, ptr noundef %69)
store i32 %70, ptr %3, align 4
br label %110
71: ; preds = %60
%72 = load ptr, ptr %5, align 8
%73 = load ptr, ptr %72, align 8
%74 = call i64 @matches(ptr noundef %73, ptr noundef @.str.7)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %82
76: ; preds = %71
%77 = load i32, ptr %4, align 4
%78 = sub nsw i32 %77, 1
%79 = load ptr, ptr %5, align 8
%80 = getelementptr inbounds ptr, ptr %79, i64 1
%81 = call i32 @netns_pids(i32 noundef %78, ptr noundef %80)
store i32 %81, ptr %3, align 4
br label %110
82: ; preds = %71
%83 = load ptr, ptr %5, align 8
%84 = load ptr, ptr %83, align 8
%85 = call i64 @matches(ptr noundef %84, ptr noundef @.str.8)
%86 = icmp eq i64 %85, 0
br i1 %86, label %87, label %93
87: ; preds = %82
%88 = load i32, ptr %4, align 4
%89 = sub nsw i32 %88, 1
%90 = load ptr, ptr %5, align 8
%91 = getelementptr inbounds ptr, ptr %90, i64 1
%92 = call i32 @netns_exec(i32 noundef %89, ptr noundef %91)
store i32 %92, ptr %3, align 4
br label %110
93: ; preds = %82
%94 = load ptr, ptr %5, align 8
%95 = load ptr, ptr %94, align 8
%96 = call i64 @matches(ptr noundef %95, ptr noundef @.str.9)
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %104
98: ; preds = %93
%99 = load i32, ptr %4, align 4
%100 = sub nsw i32 %99, 1
%101 = load ptr, ptr %5, align 8
%102 = getelementptr inbounds ptr, ptr %101, i64 1
%103 = call i32 @netns_monitor(i32 noundef %100, ptr noundef %102)
store i32 %103, ptr %3, align 4
br label %110
104: ; preds = %93
%105 = load i32, ptr @stderr, align 4
%106 = load ptr, ptr %5, align 8
%107 = load ptr, ptr %106, align 8
%108 = call i32 @fprintf(i32 noundef %105, ptr noundef @.str.10, ptr noundef %107)
%109 = call i32 @exit(i32 noundef -1) #3
unreachable
110: ; preds = %98, %87, %76, %65, %54, %43, %36, %25, %8
%111 = load i32, ptr %3, align 4
ret i32 %111
}
declare i32 @netns_list(i32 noundef, ptr noundef) #1
declare i64 @matches(ptr noundef, ptr noundef) #1
declare i32 @usage(...) #1
declare i32 @netns_add(i32 noundef, ptr noundef) #1
declare i32 @netns_delete(i32 noundef, ptr noundef) #1
declare i32 @netns_identify(i32 noundef, ptr noundef) #1
declare i32 @netns_pids(i32 noundef, ptr noundef) #1
declare i32 @netns_exec(i32 noundef, ptr noundef) #1
declare i32 @netns_monitor(i32 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr 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/tmpqud6gbry.c'
source_filename = "/tmp/tmpqud6gbry.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.ifaddrs = type { ptr, ptr, ptr }
%struct.TYPE_2__ = type { i32 }
@NI_MAXHOST = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"getifaddrs\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"lo\00", align 1
@AF_INET = dso_local global i32 0, align 4
@AF_INET6 = dso_local global i32 0, align 4
@NI_NUMERICHOST = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [26 x i8] c"getnameinfo() failed: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"%-16s %s\0A\00", align 1
@EXIT_SUCCESS = 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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
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 @NI_MAXHOST, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %9, align 8
%14 = alloca i8, i64 %12, align 16
store i64 %12, ptr %10, align 8
%15 = call i32 @getifaddrs(ptr noundef %6)
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %21
17: ; preds = %2
%18 = call i32 @perror(ptr noundef @.str)
%19 = load i32, ptr @EXIT_FAILURE, align 4
%20 = call i32 @exit(i32 noundef %19) #4
unreachable
21: ; preds = %2
br label %22
22: ; preds = %72, %50, %36, %21
%23 = load ptr, ptr %6, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %80
25: ; preds = %22
%26 = load ptr, ptr %6, align 8
%27 = getelementptr inbounds %struct.ifaddrs, ptr %26, i32 0, i32 2
%28 = load ptr, ptr %27, align 8
%29 = icmp eq ptr %28, null
br i1 %29, label %36, label %30
30: ; preds = %25
%31 = load ptr, ptr %6, align 8
%32 = getelementptr inbounds %struct.ifaddrs, ptr %31, i32 0, i32 0
%33 = load ptr, ptr %32, align 8
%34 = call i64 @strcmp(ptr noundef %33, ptr noundef @.str.1)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %30, %25
br label %22, !llvm.loop !6
37: ; preds = %30
%38 = load ptr, ptr %6, align 8
%39 = getelementptr inbounds %struct.ifaddrs, ptr %38, i32 0, i32 2
%40 = load ptr, ptr %39, align 8
%41 = getelementptr inbounds %struct.TYPE_2__, ptr %40, i32 0, i32 0
%42 = load i32, ptr %41, align 4
store i32 %42, ptr %7, align 4
%43 = load i32, ptr %7, align 4
%44 = load i32, ptr @AF_INET, align 4
%45 = icmp ne i32 %43, %44
br i1 %45, label %46, label %51
46: ; preds = %37
%47 = load i32, ptr %7, align 4
%48 = load i32, ptr @AF_INET6, align 4
%49 = icmp ne i32 %47, %48
br i1 %49, label %50, label %51
50: ; preds = %46
br label %22, !llvm.loop !6
51: ; preds = %46, %37
%52 = load ptr, ptr %6, align 8
%53 = getelementptr inbounds %struct.ifaddrs, ptr %52, i32 0, i32 2
%54 = load ptr, ptr %53, align 8
%55 = load i32, ptr %7, align 4
%56 = load i32, ptr @AF_INET, align 4
%57 = icmp eq i32 %55, %56
%58 = zext i1 %57 to i64
%59 = select i1 %57, i64 4, i64 4
%60 = trunc i64 %59 to i32
%61 = load i32, ptr @NI_MAXHOST, align 4
%62 = load i32, ptr @NI_NUMERICHOST, align 4
%63 = call i32 @getnameinfo(ptr noundef %54, i32 noundef %60, ptr noundef %14, i32 noundef %61, ptr noundef null, i32 noundef 0, i32 noundef %62)
store i32 %63, ptr %8, align 4
%64 = load i32, ptr %8, align 4
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %72
66: ; preds = %51
%67 = load i32, ptr %8, align 4
%68 = call ptr @gai_strerror(i32 noundef %67)
%69 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %68)
%70 = load i32, ptr @EXIT_FAILURE, align 4
%71 = call i32 @exit(i32 noundef %70) #4
unreachable
72: ; preds = %51
%73 = load ptr, ptr %6, align 8
%74 = getelementptr inbounds %struct.ifaddrs, ptr %73, i32 0, i32 0
%75 = load ptr, ptr %74, align 8
%76 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %75, ptr noundef %14)
%77 = load ptr, ptr %6, align 8
%78 = getelementptr inbounds %struct.ifaddrs, ptr %77, i32 0, i32 1
%79 = load ptr, ptr %78, align 8
store ptr %79, ptr %6, align 8
br label %22, !llvm.loop !6
80: ; preds = %22
%81 = load i32, ptr @EXIT_SUCCESS, align 4
%82 = call i32 @exit(i32 noundef %81) #4
unreachable
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @getifaddrs(ptr noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @getnameinfo(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, ...) #2
declare ptr @gai_strerror(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 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" }
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/tmpqud6gbry.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.ifaddrs = type { ptr, ptr, ptr }
%struct.TYPE_2__ = type { i32 }
@NI_MAXHOST = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"getifaddrs\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"lo\00", align 1
@AF_INET = dso_local global i32 0, align 4
@AF_INET6 = dso_local global i32 0, align 4
@NI_NUMERICHOST = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [26 x i8] c"getnameinfo() failed: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"%-16s %s\0A\00", align 1
@EXIT_SUCCESS = 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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
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 @NI_MAXHOST, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %9, align 8
%14 = alloca i8, i64 %12, align 16
store i64 %12, ptr %10, align 8
%15 = call i32 @getifaddrs(ptr noundef %6)
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %21
17: ; preds = %2
%18 = call i32 @perror(ptr noundef @.str)
%19 = load i32, ptr @EXIT_FAILURE, align 4
%20 = call i32 @exit(i32 noundef %19) #4
unreachable
21: ; preds = %2
%22 = load ptr, ptr %6, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %.lr.ph, label %81
.lr.ph: ; preds = %21
br label %24
24: ; preds = %.lr.ph, %.backedge
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds %struct.ifaddrs, ptr %25, i32 0, i32 2
%27 = load ptr, ptr %26, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %35, label %29
29: ; preds = %24
%30 = load ptr, ptr %6, align 8
%31 = getelementptr inbounds %struct.ifaddrs, ptr %30, i32 0, i32 0
%32 = load ptr, ptr %31, align 8
%33 = call i64 @strcmp(ptr noundef %32, ptr noundef @.str.1)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %29, %24
br label %.backedge
.backedge: ; preds = %35, %51, %73
%36 = load ptr, ptr %6, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %24, label %._crit_edge, !llvm.loop !6
38: ; preds = %29
%39 = load ptr, ptr %6, align 8
%40 = getelementptr inbounds %struct.ifaddrs, ptr %39, i32 0, i32 2
%41 = load ptr, ptr %40, align 8
%42 = getelementptr inbounds %struct.TYPE_2__, ptr %41, i32 0, i32 0
%43 = load i32, ptr %42, align 4
store i32 %43, ptr %7, align 4
%44 = load i32, ptr %7, align 4
%45 = load i32, ptr @AF_INET, align 4
%46 = icmp ne i32 %44, %45
br i1 %46, label %47, label %52
47: ; preds = %38
%48 = load i32, ptr %7, align 4
%49 = load i32, ptr @AF_INET6, align 4
%50 = icmp ne i32 %48, %49
br i1 %50, label %51, label %52
51: ; preds = %47
br label %.backedge
52: ; preds = %47, %38
%53 = load ptr, ptr %6, align 8
%54 = getelementptr inbounds %struct.ifaddrs, ptr %53, i32 0, i32 2
%55 = load ptr, ptr %54, align 8
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr @AF_INET, align 4
%58 = icmp eq i32 %56, %57
%59 = zext i1 %58 to i64
%60 = select i1 %58, i64 4, i64 4
%61 = trunc i64 %60 to i32
%62 = load i32, ptr @NI_MAXHOST, align 4
%63 = load i32, ptr @NI_NUMERICHOST, align 4
%64 = call i32 @getnameinfo(ptr noundef %55, i32 noundef %61, ptr noundef %14, i32 noundef %62, ptr noundef null, i32 noundef 0, i32 noundef %63)
store i32 %64, ptr %8, align 4
%65 = load i32, ptr %8, align 4
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %73
67: ; preds = %52
%68 = load i32, ptr %8, align 4
%69 = call ptr @gai_strerror(i32 noundef %68)
%70 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %69)
%71 = load i32, ptr @EXIT_FAILURE, align 4
%72 = call i32 @exit(i32 noundef %71) #4
unreachable
73: ; preds = %52
%74 = load ptr, ptr %6, align 8
%75 = getelementptr inbounds %struct.ifaddrs, ptr %74, i32 0, i32 0
%76 = load ptr, ptr %75, align 8
%77 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %76, ptr noundef %14)
%78 = load ptr, ptr %6, align 8
%79 = getelementptr inbounds %struct.ifaddrs, ptr %78, i32 0, i32 1
%80 = load ptr, ptr %79, align 8
store ptr %80, ptr %6, align 8
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %81
81: ; preds = %._crit_edge, %21
%82 = load i32, ptr @EXIT_SUCCESS, align 4
%83 = call i32 @exit(i32 noundef %82) #4
unreachable
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @getifaddrs(ptr noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @getnameinfo(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, ...) #2
declare ptr @gai_strerror(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 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" }
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/tmpp_cp8zjc.c'
source_filename = "/tmp/tmpp_cp8zjc.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"%f\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%13 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%14 = load float, ptr %2, align 4
%15 = load float, ptr %3, align 4
%16 = fmul float %14, %15
store float %16, ptr %4, align 4
%17 = load float, ptr %4, align 4
%18 = fmul float %17, 0x400CCCCCC0000000
store float %18, ptr %5, align 4
%19 = load float, ptr %3, align 4
%20 = call i64 @pow(float noundef %19, i32 noundef 2)
%21 = sitofp i64 %20 to float
store float %21, ptr %6, align 4
%22 = load float, ptr %2, align 4
%23 = load float, ptr %6, align 4
%24 = fmul float %22, %23
%25 = fdiv float %24, 2.000000e+00
store float %25, ptr %7, align 4
%26 = load float, ptr %4, align 4
%27 = call i64 @pow(float noundef %26, i32 noundef 2)
%28 = sitofp i64 %27 to float
store float %28, ptr %8, align 4
%29 = load float, ptr %1, align 4
%30 = fmul float %29, 1.000000e+03
store float %30, ptr %9, align 4
%31 = load float, ptr %9, align 4
%32 = load float, ptr %8, align 4
%33 = fmul float %31, %32
%34 = fdiv float %33, 2.000000e+00
store float %34, ptr %10, align 4
%35 = load float, ptr %5, align 4
%36 = call i32 @printf(ptr noundef @.str.1, float noundef %35)
%37 = load float, ptr %7, align 4
%38 = call i32 @printf(ptr noundef @.str.1, float noundef %37)
%39 = load float, ptr %10, align 4
%40 = call i32 @printf(ptr noundef @.str.1, float noundef %39)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @pow(float noundef, i32 noundef) #1
declare i32 @printf(ptr 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 = { "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/tmpp_cp8zjc.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"%f\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%13 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%14 = load float, ptr %2, align 4
%15 = load float, ptr %3, align 4
%16 = fmul float %14, %15
store float %16, ptr %4, align 4
%17 = load float, ptr %4, align 4
%18 = fmul float %17, 0x400CCCCCC0000000
store float %18, ptr %5, align 4
%19 = load float, ptr %3, align 4
%20 = call i64 @pow(float noundef %19, i32 noundef 2)
%21 = sitofp i64 %20 to float
store float %21, ptr %6, align 4
%22 = load float, ptr %2, align 4
%23 = load float, ptr %6, align 4
%24 = fmul float %22, %23
%25 = fdiv float %24, 2.000000e+00
store float %25, ptr %7, align 4
%26 = load float, ptr %4, align 4
%27 = call i64 @pow(float noundef %26, i32 noundef 2)
%28 = sitofp i64 %27 to float
store float %28, ptr %8, align 4
%29 = load float, ptr %1, align 4
%30 = fmul float %29, 1.000000e+03
store float %30, ptr %9, align 4
%31 = load float, ptr %9, align 4
%32 = load float, ptr %8, align 4
%33 = fmul float %31, %32
%34 = fdiv float %33, 2.000000e+00
store float %34, ptr %10, align 4
%35 = load float, ptr %5, align 4
%36 = call i32 @printf(ptr noundef @.str.1, float noundef %35)
%37 = load float, ptr %7, align 4
%38 = call i32 @printf(ptr noundef @.str.1, float noundef %37)
%39 = load float, ptr %10, align 4
%40 = call i32 @printf(ptr noundef @.str.1, float noundef %39)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @pow(float noundef, i32 noundef) #1
declare i32 @printf(ptr 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 = { "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_xak4xsr.c'
source_filename = "/tmp/tmp_xak4xsr.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 @gpu_push_vertex(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 %4, align 4
%6 = shl i32 %5, 16
%7 = load i32, ptr %3, align 4
%8 = and i32 %7, 65535
%9 = or i32 %6, %8
%10 = call i32 @gpu_send_data(i32 noundef %9)
ret void
}
declare i32 @gpu_send_data(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/tmp_xak4xsr.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 @gpu_push_vertex(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 %4, align 4
%6 = shl i32 %5, 16
%7 = load i32, ptr %3, align 4
%8 = and i32 %7, 65535
%9 = or i32 %6, %8
%10 = call i32 @gpu_send_data(i32 noundef %9)
ret void
}
declare i32 @gpu_send_data(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/tmp1ec5e0vc.c'
source_filename = "/tmp/tmp1ec5e0vc.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
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call ptr (...) @get_num1()
store ptr %7, ptr %2, align 8
%8 = call ptr (...) @get_num1()
store ptr %8, ptr %2, align 8
%9 = call ptr (...) @get_num2()
store ptr %9, ptr %3, align 8
%10 = call ptr (...) @get_num2()
store ptr %10, ptr %3, align 8
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %11, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %11, align 4
%14 = call ptr (...) @get_num2()
store ptr %14, ptr %4, align 8
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %15, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %15, align 4
%18 = call ptr (...) @get_num3()
store ptr %18, ptr %5, align 8
%19 = call ptr (...) @get_num3()
store ptr %19, ptr %5, align 8
%20 = call i32 (...) @get_num4()
store i32 %20, ptr %6, align 4
%21 = load ptr, ptr %2, align 8
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %23, align 4
%25 = add nsw i32 %22, %24
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %26, align 4
%28 = add nsw i32 %25, %27
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %29, align 4
%31 = add nsw i32 %28, %30
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %31, %32
ret i32 %33
}
declare ptr @get_num1(...) #1
declare ptr @get_num2(...) #1
declare ptr @get_num3(...) #1
declare i32 @get_num4(...) #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/tmp1ec5e0vc.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
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call ptr (...) @get_num1()
store ptr %7, ptr %2, align 8
%8 = call ptr (...) @get_num1()
store ptr %8, ptr %2, align 8
%9 = call ptr (...) @get_num2()
store ptr %9, ptr %3, align 8
%10 = call ptr (...) @get_num2()
store ptr %10, ptr %3, align 8
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %11, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %11, align 4
%14 = call ptr (...) @get_num2()
store ptr %14, ptr %4, align 8
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %15, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %15, align 4
%18 = call ptr (...) @get_num3()
store ptr %18, ptr %5, align 8
%19 = call ptr (...) @get_num3()
store ptr %19, ptr %5, align 8
%20 = call i32 (...) @get_num4()
store i32 %20, ptr %6, align 4
%21 = load ptr, ptr %2, align 8
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %23, align 4
%25 = add nsw i32 %22, %24
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %26, align 4
%28 = add nsw i32 %25, %27
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %29, align 4
%31 = add nsw i32 %28, %30
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %31, %32
ret i32 %33
}
declare ptr @get_num1(...) #1
declare ptr @get_num2(...) #1
declare ptr @get_num3(...) #1
declare i32 @get_num4(...) #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/tmp42lr2za1.c'
source_filename = "/tmp/tmp42lr2za1.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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @do_locals_tests()
%7 = call i32 (...) @do_block_tests()
%8 = call i32 (...) @do_children_tests()
%9 = call i32 (...) @do_special_tests()
%10 = call i32 (...) @do_frozen_tests()
%11 = call i32 (...) @do_at_tests()
%12 = call i32 (...) @do_bitfield_tests()
%13 = call i32 (...) @do_anonymous_type_tests()
%14 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @do_locals_tests(...) #1
declare i32 @do_block_tests(...) #1
declare i32 @do_children_tests(...) #1
declare i32 @do_special_tests(...) #1
declare i32 @do_frozen_tests(...) #1
declare i32 @do_at_tests(...) #1
declare i32 @do_bitfield_tests(...) #1
declare i32 @do_anonymous_type_tests(...) #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/tmp42lr2za1.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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @do_locals_tests()
%7 = call i32 (...) @do_block_tests()
%8 = call i32 (...) @do_children_tests()
%9 = call i32 (...) @do_special_tests()
%10 = call i32 (...) @do_frozen_tests()
%11 = call i32 (...) @do_at_tests()
%12 = call i32 (...) @do_bitfield_tests()
%13 = call i32 (...) @do_anonymous_type_tests()
%14 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @do_locals_tests(...) #1
declare i32 @do_block_tests(...) #1
declare i32 @do_children_tests(...) #1
declare i32 @do_special_tests(...) #1
declare i32 @do_frozen_tests(...) #1
declare i32 @do_at_tests(...) #1
declare i32 @do_bitfield_tests(...) #1
declare i32 @do_anonymous_type_tests(...) #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/tmp2helcgbt.c'
source_filename = "/tmp/tmp2helcgbt.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 [30 x i8] c"Usage: program-name argument\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"win\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"lose\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 i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %25
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 0
%16 = load i8, ptr %15, align 1
store i8 %16, ptr %6, align 1
%17 = load i8, ptr %6, align 1
%18 = zext i8 %17 to i32
%19 = icmp eq i32 %18, 127
br i1 %19, label %20, label %22
20: ; preds = %11
%21 = call i32 @printf(ptr noundef @.str.1)
br label %24
22: ; preds = %11
%23 = call i32 @printf(ptr noundef @.str.2)
br label %24
24: ; preds = %22, %20
store i32 0, ptr %3, align 4
br label %25
25: ; preds = %24, %9
%26 = load i32, ptr %3, align 4
ret i32 %26
}
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/tmp2helcgbt.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 [30 x i8] c"Usage: program-name argument\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"win\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"lose\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 i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %25
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 0
%16 = load i8, ptr %15, align 1
store i8 %16, ptr %6, align 1
%17 = load i8, ptr %6, align 1
%18 = zext i8 %17 to i32
%19 = icmp eq i32 %18, 127
br i1 %19, label %20, label %22
20: ; preds = %11
%21 = call i32 @printf(ptr noundef @.str.1)
br label %24
22: ; preds = %11
%23 = call i32 @printf(ptr noundef @.str.2)
br label %24
24: ; preds = %22, %20
store i32 0, ptr %3, align 4
br label %25
25: ; preds = %24, %9
%26 = load i32, ptr %3, align 4
ret i32 %26
}
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_v_8xe_e.c'
source_filename = "/tmp/tmp_v_8xe_e.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"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @marshall_u_int64(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
%10 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load ptr, ptr %6, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %15, label %13
13: ; preds = %3
%14 = load i32, ptr @EINVAL, align 4
store i32 %14, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %34
15: ; preds = %3
%16 = load i32, ptr %7, align 4
%17 = zext i32 %16 to i64
%18 = icmp uge i64 %17, 4
br i1 %18, label %19, label %33
19: ; preds = %15
store ptr %5, ptr %10, align 8
%20 = load ptr, ptr %10, align 8
%21 = getelementptr inbounds i32, ptr %20, i64 1
%22 = load i32, ptr %21, align 4
%23 = call i32 @htonl(i32 noundef %22)
store i32 %23, ptr %8, align 4
%24 = load ptr, ptr %10, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 0
%26 = load i32, ptr %25, align 4
%27 = call i32 @htonl(i32 noundef %26)
store i32 %27, ptr %9, align 4
%28 = load ptr, ptr %6, align 8
%29 = call i32 @memcpy(ptr noundef %28, ptr noundef %8, i32 noundef 4)
%30 = load ptr, ptr %6, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 4
%32 = call i32 @memcpy(ptr noundef %31, ptr noundef %9, i32 noundef 4)
store i32 4, ptr %4, align 4
br label %34
33: ; preds = %15
store i32 0, ptr %4, align 4
br label %34
34: ; preds = %33, %19, %13
%35 = load i32, ptr %4, align 4
ret i32 %35
}
declare i32 @htonl(i32 noundef) #1
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/tmp_v_8xe_e.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"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @marshall_u_int64(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
%10 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load ptr, ptr %6, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %15, label %13
13: ; preds = %3
%14 = load i32, ptr @EINVAL, align 4
store i32 %14, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %34
15: ; preds = %3
%16 = load i32, ptr %7, align 4
%17 = zext i32 %16 to i64
%18 = icmp uge i64 %17, 4
br i1 %18, label %19, label %33
19: ; preds = %15
store ptr %5, ptr %10, align 8
%20 = load ptr, ptr %10, align 8
%21 = getelementptr inbounds i32, ptr %20, i64 1
%22 = load i32, ptr %21, align 4
%23 = call i32 @htonl(i32 noundef %22)
store i32 %23, ptr %8, align 4
%24 = load ptr, ptr %10, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 0
%26 = load i32, ptr %25, align 4
%27 = call i32 @htonl(i32 noundef %26)
store i32 %27, ptr %9, align 4
%28 = load ptr, ptr %6, align 8
%29 = call i32 @memcpy(ptr noundef %28, ptr noundef %8, i32 noundef 4)
%30 = load ptr, ptr %6, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 4
%32 = call i32 @memcpy(ptr noundef %31, ptr noundef %9, i32 noundef 4)
store i32 4, ptr %4, align 4
br label %34
33: ; preds = %15
store i32 0, ptr %4, align 4
br label %34
34: ; preds = %33, %19, %13
%35 = load i32, ptr %4, align 4
ret i32 %35
}
declare i32 @htonl(i32 noundef) #1
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/tmply41zq54.c'
source_filename = "/tmp/tmply41zq54.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
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%7 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %7, ptr %2, align 4
%8 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %9, 1
br i1 %10, label %11, label %12
11: ; preds = %0
store i32 1, ptr %2, align 4
br label %12
12: ; preds = %11, %0
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %13, 1
br i1 %14, label %15, label %16
15: ; preds = %12
store i32 1, ptr %3, align 4
br label %16
16: ; preds = %15, %12
%17 = load i32, ptr %2, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 4
%20 = trunc i64 %19 to i32
%21 = call i64 @alloca(i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %4, align 8
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = mul i64 %24, 4
%26 = trunc i64 %25 to i32
%27 = call i64 @alloca(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %5, align 8
%29 = load i32, ptr %2, align 4
%30 = sext i32 %29 to i64
%31 = mul i64 %30, 4
%32 = trunc i64 %31 to i32
%33 = call i64 @alloca(i32 noundef %32)
%34 = inttoptr i64 %33 to ptr
store ptr %34, ptr %6, align 8
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %2, align 4
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %3, align 4
%39 = load ptr, ptr %6, align 8
%40 = call i32 @diff(ptr noundef %35, i32 noundef %36, ptr noundef %37, i32 noundef %38, ptr noundef %39)
ret i32 0
}
declare i32 @__VERIFIER_nondet_int(...) #1
declare i64 @alloca(i32 noundef) #1
declare i32 @diff(ptr noundef, i32 noundef, ptr 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/tmply41zq54.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
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%7 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %7, ptr %2, align 4
%8 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %9, 1
br i1 %10, label %11, label %12
11: ; preds = %0
store i32 1, ptr %2, align 4
br label %12
12: ; preds = %11, %0
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %13, 1
br i1 %14, label %15, label %16
15: ; preds = %12
store i32 1, ptr %3, align 4
br label %16
16: ; preds = %15, %12
%17 = load i32, ptr %2, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 4
%20 = trunc i64 %19 to i32
%21 = call i64 @alloca(i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %4, align 8
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = mul i64 %24, 4
%26 = trunc i64 %25 to i32
%27 = call i64 @alloca(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %5, align 8
%29 = load i32, ptr %2, align 4
%30 = sext i32 %29 to i64
%31 = mul i64 %30, 4
%32 = trunc i64 %31 to i32
%33 = call i64 @alloca(i32 noundef %32)
%34 = inttoptr i64 %33 to ptr
store ptr %34, ptr %6, align 8
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %2, align 4
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %3, align 4
%39 = load ptr, ptr %6, align 8
%40 = call i32 @diff(ptr noundef %35, i32 noundef %36, ptr noundef %37, i32 noundef %38, ptr noundef %39)
ret i32 0
}
declare i32 @__VERIFIER_nondet_int(...) #1
declare i64 @alloca(i32 noundef) #1
declare i32 @diff(ptr noundef, i32 noundef, ptr 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/tmpbz_u3gj5.c'
source_filename = "/tmp/tmpbz_u3gj5.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 @merge(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
%12 = alloca i8, align 1
%13 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%14 = load ptr, ptr %6, align 8
%15 = call signext i8 @getc(ptr noundef %14)
store i8 %15, ptr %12, align 1
%16 = load ptr, ptr %7, align 8
%17 = call signext i8 @getc(ptr noundef %16)
store i8 %17, ptr %13, align 1
store i32 0, ptr %10, align 4
store i32 0, ptr %9, align 4
br label %18
18: ; preds = %4, %52
%19 = load i8, ptr %12, align 1
%20 = sext i8 %19 to i32
%21 = load i8, ptr %13, align 1
%22 = sext i8 %21 to i32
%23 = icmp slt i32 %20, %22
br i1 %23, label %24, label %38
24: ; preds = %18
%25 = load i8, ptr %12, align 1
%26 = load ptr, ptr %5, align 8
%27 = call i32 @putc(i8 noundef signext %25, ptr noundef %26)
%28 = load i32, ptr %9, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %36
33: ; preds = %24
%34 = load ptr, ptr %6, align 8
%35 = call signext i8 @getc(ptr noundef %34)
store i8 %35, ptr %12, align 1
br label %37
36: ; preds = %24
br label %53
37: ; preds = %33
br label %52
38: ; preds = %18
%39 = load i8, ptr %13, align 1
%40 = load ptr, ptr %5, align 8
%41 = call i32 @putc(i8 noundef signext %39, ptr noundef %40)
%42 = load i32, ptr %10, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %10, align 4
%44 = load i32, ptr %10, align 4
%45 = load i32, ptr %8, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %50
47: ; preds = %38
%48 = load ptr, ptr %7, align 8
%49 = call signext i8 @getc(ptr noundef %48)
store i8 %49, ptr %13, align 1
br label %51
50: ; preds = %38
br label %53
51: ; preds = %47
br label %52
52: ; preds = %51, %37
br label %18
53: ; preds = %50, %36
%54 = load i32, ptr %9, align 4
%55 = load i32, ptr %8, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %57, label %63
57: ; preds = %53
%58 = load i8, ptr %12, align 1
%59 = load ptr, ptr %5, align 8
%60 = call i32 @putc(i8 noundef signext %58, ptr noundef %59)
%61 = load i32, ptr %9, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %9, align 4
br label %63
63: ; preds = %57, %53
%64 = load i32, ptr %10, align 4
%65 = load i32, ptr %8, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %73
67: ; preds = %63
%68 = load i8, ptr %13, align 1
%69 = load ptr, ptr %5, align 8
%70 = call i32 @putc(i8 noundef signext %68, ptr noundef %69)
%71 = load i32, ptr %10, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %10, align 4
br label %73
73: ; preds = %67, %63
br label %74
74: ; preds = %78, %73
%75 = load i32, ptr %9, align 4
%76 = load i32, ptr %8, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %86
78: ; preds = %74
%79 = load ptr, ptr %6, align 8
%80 = call signext i8 @getc(ptr noundef %79)
store i8 %80, ptr %11, align 1
%81 = load i8, ptr %11, align 1
%82 = load ptr, ptr %5, align 8
%83 = call i32 @putc(i8 noundef signext %81, ptr noundef %82)
%84 = load i32, ptr %9, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %9, align 4
br label %74, !llvm.loop !6
86: ; preds = %74
br label %87
87: ; preds = %91, %86
%88 = load i32, ptr %10, align 4
%89 = load i32, ptr %8, align 4
%90 = icmp slt i32 %88, %89
br i1 %90, label %91, label %99
91: ; preds = %87
%92 = load ptr, ptr %7, align 8
%93 = call signext i8 @getc(ptr noundef %92)
store i8 %93, ptr %11, align 1
%94 = load i8, ptr %11, align 1
%95 = load ptr, ptr %5, align 8
%96 = call i32 @putc(i8 noundef signext %94, ptr noundef %95)
%97 = load i32, ptr %10, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %10, align 4
br label %87, !llvm.loop !8
99: ; preds = %87
ret void
}
declare signext i8 @getc(ptr noundef) #1
declare i32 @putc(i8 noundef signext, 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/tmpbz_u3gj5.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 @merge(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
%12 = alloca i8, align 1
%13 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%14 = load ptr, ptr %6, align 8
%15 = call signext i8 @getc(ptr noundef %14)
store i8 %15, ptr %12, align 1
%16 = load ptr, ptr %7, align 8
%17 = call signext i8 @getc(ptr noundef %16)
store i8 %17, ptr %13, align 1
store i32 0, ptr %10, align 4
store i32 0, ptr %9, align 4
br label %18
18: ; preds = %52, %4
%19 = load i8, ptr %12, align 1
%20 = sext i8 %19 to i32
%21 = load i8, ptr %13, align 1
%22 = sext i8 %21 to i32
%23 = icmp slt i32 %20, %22
br i1 %23, label %24, label %38
24: ; preds = %18
%25 = load i8, ptr %12, align 1
%26 = load ptr, ptr %5, align 8
%27 = call i32 @putc(i8 noundef signext %25, ptr noundef %26)
%28 = load i32, ptr %9, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %36
33: ; preds = %24
%34 = load ptr, ptr %6, align 8
%35 = call signext i8 @getc(ptr noundef %34)
store i8 %35, ptr %12, align 1
br label %37
36: ; preds = %24
br label %53
37: ; preds = %33
br label %52
38: ; preds = %18
%39 = load i8, ptr %13, align 1
%40 = load ptr, ptr %5, align 8
%41 = call i32 @putc(i8 noundef signext %39, ptr noundef %40)
%42 = load i32, ptr %10, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %10, align 4
%44 = load i32, ptr %10, align 4
%45 = load i32, ptr %8, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %50
47: ; preds = %38
%48 = load ptr, ptr %7, align 8
%49 = call signext i8 @getc(ptr noundef %48)
store i8 %49, ptr %13, align 1
br label %51
50: ; preds = %38
br label %53
51: ; preds = %47
br label %52
52: ; preds = %51, %37
br label %18
53: ; preds = %50, %36
%54 = load i32, ptr %9, align 4
%55 = load i32, ptr %8, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %57, label %63
57: ; preds = %53
%58 = load i8, ptr %12, align 1
%59 = load ptr, ptr %5, align 8
%60 = call i32 @putc(i8 noundef signext %58, ptr noundef %59)
%61 = load i32, ptr %9, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %9, align 4
br label %63
63: ; preds = %57, %53
%64 = load i32, ptr %10, align 4
%65 = load i32, ptr %8, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %73
67: ; preds = %63
%68 = load i8, ptr %13, align 1
%69 = load ptr, ptr %5, align 8
%70 = call i32 @putc(i8 noundef signext %68, ptr noundef %69)
%71 = load i32, ptr %10, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %10, align 4
br label %73
73: ; preds = %67, %63
%74 = load i32, ptr %9, align 4
%75 = load i32, ptr %8, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %.lr.ph, label %88
.lr.ph: ; preds = %73
br label %77
77: ; preds = %.lr.ph, %77
%78 = load ptr, ptr %6, align 8
%79 = call signext i8 @getc(ptr noundef %78)
store i8 %79, ptr %11, align 1
%80 = load i8, ptr %11, align 1
%81 = load ptr, ptr %5, align 8
%82 = call i32 @putc(i8 noundef signext %80, ptr noundef %81)
%83 = load i32, ptr %9, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %9, align 4
%85 = load i32, ptr %9, align 4
%86 = load i32, ptr %8, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %77, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %77
br label %88
88: ; preds = %._crit_edge, %73
%89 = load i32, ptr %10, align 4
%90 = load i32, ptr %8, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %.lr.ph2, label %103
.lr.ph2: ; preds = %88
br label %92
92: ; preds = %.lr.ph2, %92
%93 = load ptr, ptr %7, align 8
%94 = call signext i8 @getc(ptr noundef %93)
store i8 %94, ptr %11, align 1
%95 = load i8, ptr %11, align 1
%96 = load ptr, ptr %5, align 8
%97 = call i32 @putc(i8 noundef signext %95, ptr noundef %96)
%98 = load i32, ptr %10, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %10, align 4
%100 = load i32, ptr %10, align 4
%101 = load i32, ptr %8, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %92, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %92
br label %103
103: ; preds = %._crit_edge3, %88
ret void
}
declare signext i8 @getc(ptr noundef) #1
declare i32 @putc(i8 noundef signext, 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/tmpuhh9g4jg.c'
source_filename = "/tmp/tmpuhh9g4jg.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 @rungame(i32 noundef %0) #0 {
%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 [4 x i8], align 1
%9 = alloca [6 x i8], align 1
%10 = alloca [4 x i8], align 1
store i32 %0, ptr %2, align 4
%11 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 0
%12 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef 6)
%13 = call i32 @time(ptr noundef null)
%14 = call i32 @srand(i32 noundef %13)
store i32 0, ptr %4, align 4
br label %15
15: ; preds = %37, %1
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %16, 4
br i1 %17, label %18, label %40
18: ; preds = %15
%19 = call i32 (...) @rand()
%20 = srem i32 %19, 6
store i32 %20, ptr %5, align 4
%21 = trunc i32 %20 to i8
%22 = load i32, ptr %4, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 %23
store i8 %21, ptr %24, align 1
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = icmp ne i8 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %18
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %4, align 4
br label %33
33: ; preds = %30, %18
%34 = load i32, ptr %5, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 %35
store i8 1, ptr %36, align 1
br label %37
37: ; preds = %33
%38 = load i32, ptr %4, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %4, align 4
br label %15, !llvm.loop !6
40: ; preds = %15
store i32 0, ptr %3, align 4
br label %41
41: ; preds = %100, %40
%42 = load i32, ptr %3, align 4
%43 = icmp slt i32 %42, 10
br i1 %43, label %44, label %103
44: ; preds = %41
%45 = load i32, ptr %2, align 4
%46 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%47 = call i32 @recv(i32 noundef %45, ptr noundef %46, i32 noundef 4, i32 noundef 0)
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %4, align 4
br label %48
48: ; preds = %83, %44
%49 = load i32, ptr %4, align 4
%50 = icmp slt i32 %49, 4
br i1 %50, label %51, label %86
51: ; preds = %48
%52 = load i32, ptr %4, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = load i32, ptr %4, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 %58
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = sub nsw i32 %61, 1
%63 = icmp eq i32 %56, %62
br i1 %63, label %64, label %67
64: ; preds = %51
%65 = load i32, ptr %7, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %7, align 4
br label %82
67: ; preds = %51
%68 = load i32, ptr %4, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 %69
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = sub nsw i32 %72, 1
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 %74
%76 = load i8, ptr %75, align 1
%77 = icmp ne i8 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %67
%79 = load i32, ptr %6, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %6, align 4
br label %81
81: ; preds = %78, %67
br label %82
82: ; preds = %81, %64
br label %83
83: ; preds = %82
%84 = load i32, ptr %4, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %4, align 4
br label %48, !llvm.loop !8
86: ; preds = %48
%87 = load i32, ptr %7, align 4
%88 = trunc i32 %87 to i8
%89 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
store i8 %88, ptr %89, align 1
%90 = load i32, ptr %6, align 4
%91 = trunc i32 %90 to i8
%92 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 1
store i8 %91, ptr %92, align 1
%93 = load i32, ptr %2, align 4
%94 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%95 = call i32 @send(i32 noundef %93, ptr noundef %94, i32 noundef 2, i32 noundef 0)
%96 = load i32, ptr %7, align 4
%97 = icmp eq i32 %96, 4
br i1 %97, label %98, label %99
98: ; preds = %86
br label %103
99: ; preds = %86
br label %100
100: ; preds = %99
%101 = load i32, ptr %3, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %3, align 4
br label %41, !llvm.loop !9
103: ; preds = %98, %41
ret i32 0
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @send(i32 noundef, 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuhh9g4jg.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 @rungame(i32 noundef %0) #0 {
%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 [4 x i8], align 1
%9 = alloca [6 x i8], align 1
%10 = alloca [4 x i8], align 1
store i32 %0, ptr %2, align 4
%11 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 0
%12 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef 6)
%13 = call i32 @time(ptr noundef null)
%14 = call i32 @srand(i32 noundef %13)
store i32 0, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 4
br i1 %16, label %.lr.ph, label %41
.lr.ph: ; preds = %1
br label %17
17: ; preds = %.lr.ph, %36
%18 = call i32 (...) @rand()
%19 = srem i32 %18, 6
store i32 %19, ptr %5, align 4
%20 = trunc i32 %19 to i8
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 %22
store i8 %20, ptr %23, align 1
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = icmp ne i8 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %17
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %4, align 4
br label %32
32: ; preds = %29, %17
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 %34
store i8 1, ptr %35, align 1
br label %36
36: ; preds = %32
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %4, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp slt i32 %39, 4
br i1 %40, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %41
41: ; preds = %._crit_edge, %1
store i32 0, ptr %3, align 4
%42 = load i32, ptr %3, align 4
%43 = icmp slt i32 %42, 10
br i1 %43, label %.lr.ph5, label %.loopexit
.lr.ph5: ; preds = %41
br label %44
44: ; preds = %.lr.ph5, %101
%45 = load i32, ptr %2, align 4
%46 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%47 = call i32 @recv(i32 noundef %45, ptr noundef %46, i32 noundef 4, i32 noundef 0)
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %4, align 4
%48 = load i32, ptr %4, align 4
%49 = icmp slt i32 %48, 4
br i1 %49, label %.lr.ph2, label %87
.lr.ph2: ; preds = %44
br label %50
50: ; preds = %.lr.ph2, %82
%51 = load i32, ptr %4, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = load i32, ptr %4, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = sub nsw i32 %60, 1
%62 = icmp eq i32 %55, %61
br i1 %62, label %63, label %66
63: ; preds = %50
%64 = load i32, ptr %7, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %7, align 4
br label %81
66: ; preds = %50
%67 = load i32, ptr %4, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 %68
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = sub nsw i32 %71, 1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 %73
%75 = load i8, ptr %74, align 1
%76 = icmp ne i8 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %66
%78 = load i32, ptr %6, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %6, align 4
br label %80
80: ; preds = %77, %66
br label %81
81: ; preds = %80, %63
br label %82
82: ; preds = %81
%83 = load i32, ptr %4, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %4, align 4
%85 = load i32, ptr %4, align 4
%86 = icmp slt i32 %85, 4
br i1 %86, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %82
br label %87
87: ; preds = %._crit_edge3, %44
%88 = load i32, ptr %7, align 4
%89 = trunc i32 %88 to i8
%90 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
store i8 %89, ptr %90, align 1
%91 = load i32, ptr %6, align 4
%92 = trunc i32 %91 to i8
%93 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 1
store i8 %92, ptr %93, align 1
%94 = load i32, ptr %2, align 4
%95 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%96 = call i32 @send(i32 noundef %94, ptr noundef %95, i32 noundef 2, i32 noundef 0)
%97 = load i32, ptr %7, align 4
%98 = icmp eq i32 %97, 4
br i1 %98, label %99, label %100
99: ; preds = %87
br label %106
100: ; preds = %87
br label %101
101: ; preds = %100
%102 = load i32, ptr %3, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %3, align 4
%104 = load i32, ptr %3, align 4
%105 = icmp slt i32 %104, 10
br i1 %105, label %44, label %..loopexit_crit_edge, !llvm.loop !9
..loopexit_crit_edge: ; preds = %101
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %41
br label %106
106: ; preds = %.loopexit, %99
ret i32 0
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @send(i32 noundef, 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp54p07app.c'
source_filename = "/tmp/tmp54p07app.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 @allocate_int() #0 {
%1 = call ptr @malloc(i32 noundef 4)
ret ptr %1
}
declare ptr @malloc(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/tmp54p07app.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 @allocate_int() #0 {
%1 = call ptr @malloc(i32 noundef 4)
ret ptr %1
}
declare ptr @malloc(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/tmp8wx6g63x.c'
source_filename = "/tmp/tmp8wx6g63x.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 i32 0, align 4
@stderr = 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/tmp8wx6g63x.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 i32 0, align 4
@stderr = 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/tmpbs7kzpwe.c'
source_filename = "/tmp/tmpbs7kzpwe.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 @hexstrings(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 32, ptr %3, align 4
br label %5
5: ; preds = %1, %26
%6 = load i32, ptr %3, align 4
%7 = sub i32 %6, 4
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = lshr i32 %8, %9
%11 = and i32 %10, 15
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp ugt i32 %12, 9
br i1 %13, label %14, label %17
14: ; preds = %5
%15 = load i32, ptr %4, align 4
%16 = add i32 %15, 55
store i32 %16, ptr %4, align 4
br label %20
17: ; preds = %5
%18 = load i32, ptr %4, align 4
%19 = add i32 %18, 48
store i32 %19, ptr %4, align 4
br label %20
20: ; preds = %17, %14
%21 = load i32, ptr %4, align 4
%22 = call i32 @uart_putc(i32 noundef %21)
%23 = load i32, ptr %3, align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %20
br label %27
26: ; preds = %20
br label %5
27: ; preds = %25
%28 = call i32 @uart_putc(i32 noundef 32)
ret void
}
declare i32 @uart_putc(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/tmpbs7kzpwe.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 @hexstrings(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 32, ptr %3, align 4
br label %5
5: ; preds = %20, %1
%6 = load i32, ptr %3, align 4
%7 = sub i32 %6, 4
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = lshr i32 %8, %9
%11 = and i32 %10, 15
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp ugt i32 %12, 9
br i1 %13, label %14, label %17
14: ; preds = %5
%15 = load i32, ptr %4, align 4
%16 = add i32 %15, 55
store i32 %16, ptr %4, align 4
br label %20
17: ; preds = %5
%18 = load i32, ptr %4, align 4
%19 = add i32 %18, 48
store i32 %19, ptr %4, align 4
br label %20
20: ; preds = %17, %14
%21 = load i32, ptr %4, align 4
%22 = call i32 @uart_putc(i32 noundef %21)
%23 = load i32, ptr %3, align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %5
25: ; preds = %20
br label %26
26: ; preds = %25
%27 = call i32 @uart_putc(i32 noundef 32)
ret void
}
declare i32 @uart_putc(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/tmp7thpg8cc.c'
source_filename = "/tmp/tmp7thpg8cc.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"
@EXIT_SUCCESS = 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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @t_new_charring()
%7 = call i32 (...) @t_add_char()
%8 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %8
}
declare i32 @t_new_charring(...) #1
declare i32 @t_add_char(...) #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/tmp7thpg8cc.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"
@EXIT_SUCCESS = 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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @t_new_charring()
%7 = call i32 (...) @t_add_char()
%8 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %8
}
declare i32 @t_new_charring(...) #1
declare i32 @t_add_char(...) #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_q4elo2b.c'
source_filename = "/tmp/tmp_q4elo2b.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/tmp_q4elo2b.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/tmp0oqoqu55.c'
source_filename = "/tmp/tmp0oqoqu55.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 @pl011_uart_getc() #0 {
br label %1
1: ; preds = %5, %0
%2 = call i32 @bcm2835_read(i32 noundef 2101272)
%3 = and i32 %2, 16
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
br label %1, !llvm.loop !6
6: ; preds = %1
%7 = call i32 @bcm2835_read(i32 noundef 2101248)
ret i32 %7
}
declare i32 @bcm2835_read(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/tmp0oqoqu55.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 @pl011_uart_getc() #0 {
br label %1
1: ; preds = %1, %0
%2 = call i32 @bcm2835_read(i32 noundef 2101272)
%3 = and i32 %2, 16
%4 = icmp ne i32 %3, 0
br i1 %4, label %1, label %5, !llvm.loop !6
5: ; preds = %1
%6 = call i32 @bcm2835_read(i32 noundef 2101248)
ret i32 %6
}
declare i32 @bcm2835_read(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/tmp6f21z_aq.c'
source_filename = "/tmp/tmp6f21z_aq.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 @grayCode(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
store ptr null, ptr %3, align 8
br label %41
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = shl i32 1, %13
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = mul i64 %16, 4
%18 = trunc i64 %17 to i32
%19 = call ptr @malloc(i32 noundef %18)
store ptr %19, ptr %8, align 8
store i32 0, ptr %6, align 4
br label %20
20: ; preds = %33, %12
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %36
24: ; preds = %20
%25 = load i32, ptr %6, align 4
%26 = ashr i32 %25, 1
%27 = load i32, ptr %6, align 4
%28 = xor i32 %26, %27
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
store i32 %28, ptr %32, align 4
br label %33
33: ; preds = %24
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %6, align 4
br label %20, !llvm.loop !6
36: ; preds = %20
%37 = load i32, ptr %4, align 4
%38 = shl i32 1, %37
%39 = load ptr, ptr %5, align 8
store i32 %38, ptr %39, align 4
%40 = load ptr, ptr %8, align 8
store ptr %40, ptr %3, align 8
br label %41
41: ; preds = %36, %11
%42 = load ptr, ptr %3, align 8
ret ptr %42
}
declare ptr @malloc(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/tmp6f21z_aq.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 @grayCode(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
store ptr null, ptr %3, align 8
br label %43
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = shl i32 1, %13
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = mul i64 %16, 4
%18 = trunc i64 %17 to i32
%19 = call ptr @malloc(i32 noundef %18)
store ptr %19, ptr %8, align 8
store i32 0, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph, label %38
.lr.ph: ; preds = %12
br label %23
23: ; preds = %.lr.ph, %32
%24 = load i32, ptr %6, align 4
%25 = ashr i32 %24, 1
%26 = load i32, ptr %6, align 4
%27 = xor i32 %25, %26
%28 = load ptr, ptr %8, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
store i32 %27, ptr %31, align 4
br label %32
32: ; preds = %23
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %6, align 4
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %7, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %12
%39 = load i32, ptr %4, align 4
%40 = shl i32 1, %39
%41 = load ptr, ptr %5, align 8
store i32 %40, ptr %41, align 4
%42 = load ptr, ptr %8, align 8
store ptr %42, ptr %3, align 8
br label %43
43: ; preds = %38, %11
%44 = load ptr, ptr %3, align 8
ret ptr %44
}
declare ptr @malloc(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/tmpw2k28ig2.c'
source_filename = "/tmp/tmpw2k28ig2.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 [30 x i8] c"Enter the size of the array: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Enter %d Integers \0A\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c"Maximum Contiguous Subsequence Sum is %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 ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = zext i32 %8 to i64
%10 = call ptr @llvm.stacksave()
store ptr %10, ptr %3, align 8
%11 = alloca i32, i64 %9, align 16
store i64 %9, ptr %4, align 8
%12 = load i32, ptr %2, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %12)
store i32 0, ptr %5, align 4
br label %14
14: ; preds = %23, %0
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %26
18: ; preds = %14
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %11, i64 %20
%22 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %21)
br label %23
23: ; preds = %18
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
br label %14, !llvm.loop !6
26: ; preds = %14
%27 = load i32, ptr %2, align 4
%28 = sub nsw i32 %27, 1
%29 = call i32 @maximumContiguousSubsequenceSum(ptr noundef %11, i32 noundef 0, i32 noundef %28)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %29)
store i32 0, ptr %1, align 4
%31 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %31)
%32 = load i32, ptr %1, align 4
ret i32 %32
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @maximumContiguousSubsequenceSum(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #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 willreturn }
!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/tmpw2k28ig2.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 [30 x i8] c"Enter the size of the array: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Enter %d Integers \0A\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c"Maximum Contiguous Subsequence Sum is %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 ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = zext i32 %8 to i64
%10 = call ptr @llvm.stacksave()
store ptr %10, ptr %3, align 8
%11 = alloca i32, i64 %9, align 16
store i64 %9, ptr %4, align 8
%12 = load i32, ptr %2, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %12)
store i32 0, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %17
17: ; preds = %.lr.ph, %22
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %11, i64 %19
%21 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %20)
br label %22
22: ; preds = %17
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %2, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %0
%29 = load i32, ptr %2, align 4
%30 = sub nsw i32 %29, 1
%31 = call i32 @maximumContiguousSubsequenceSum(ptr noundef %11, i32 noundef 0, i32 noundef %30)
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %31)
store i32 0, ptr %1, align 4
%33 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %33)
%34 = load i32, ptr %1, align 4
ret i32 %34
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @maximumContiguousSubsequenceSum(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #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 willreturn }
!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/tmp9e2wwh0s.c'
source_filename = "/tmp/tmp9e2wwh0s.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/tmp9e2wwh0s.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/tmpxdiv6uqq.c'
source_filename = "/tmp/tmpxdiv6uqq.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/tmpxdiv6uqq.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/tmpbwvqlndb.c'
source_filename = "/tmp/tmpbwvqlndb.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Leap Year\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Not Leap Year\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"Not Leap year\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 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = srem i32 %4, 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %23
7: ; preds = %0
%8 = load i32, ptr %2, align 4
%9 = srem i32 %8, 100
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %20
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = srem i32 %12, 400
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %11
%16 = call i32 @printf(ptr noundef @.str.1)
br label %19
17: ; preds = %11
%18 = call i32 @printf(ptr noundef @.str.2)
br label %19
19: ; preds = %17, %15
br label %22
20: ; preds = %7
%21 = call i32 @printf(ptr noundef @.str.1)
br label %22
22: ; preds = %20, %19
br label %25
23: ; preds = %0
%24 = call i32 @printf(ptr noundef @.str.3)
br label %25
25: ; preds = %23, %22
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/tmpbwvqlndb.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Leap Year\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Not Leap Year\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"Not Leap year\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 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = srem i32 %4, 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %23
7: ; preds = %0
%8 = load i32, ptr %2, align 4
%9 = srem i32 %8, 100
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %20
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = srem i32 %12, 400
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %11
%16 = call i32 @printf(ptr noundef @.str.1)
br label %19
17: ; preds = %11
%18 = call i32 @printf(ptr noundef @.str.2)
br label %19
19: ; preds = %17, %15
br label %22
20: ; preds = %7
%21 = call i32 @printf(ptr noundef @.str.1)
br label %22
22: ; preds = %20, %19
br label %25
23: ; preds = %0
%24 = call i32 @printf(ptr noundef @.str.3)
br label %25
25: ; preds = %23, %22
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/tmp_jbd2x3x.c'
source_filename = "/tmp/tmp_jbd2x3x.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"\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"\09Digite um numero: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c" %3.0f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x float], align 16
%3 = alloca [5 x float], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %4, align 4
br label %6
6: ; preds = %30, %0
%7 = load i32, ptr %4, align 4
%8 = icmp sle i32 %7, 5
br i1 %8, label %9, label %33
9: ; preds = %6
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [5 x float], ptr %2, i64 0, i64 %12
%14 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %13)
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [5 x float], ptr %2, i64 0, i64 %16
%18 = load float, ptr %17, align 4
%19 = call float @pow(float noundef %18, i32 noundef 3)
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [5 x float], ptr %3, i64 0, i64 %21
store float %19, ptr %22, align 4
%23 = load i32, ptr %4, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [5 x float], ptr %3, i64 0, i64 %24
%26 = load float, ptr %25, align 4
%27 = fpext float %26 to double
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %27)
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %30
30: ; preds = %9
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
br label %6, !llvm.loop !6
33: ; preds = %6
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare float @pow(float 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/tmp_jbd2x3x.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"\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"\09Digite um numero: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c" %3.0f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x float], align 16
%3 = alloca [5 x float], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp sle i32 %6, 5
br i1 %7, label %.lr.ph, label %34
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %29
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [5 x float], ptr %2, i64 0, i64 %11
%13 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %12)
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [5 x float], ptr %2, i64 0, i64 %15
%17 = load float, ptr %16, align 4
%18 = call float @pow(float noundef %17, i32 noundef 3)
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [5 x float], ptr %3, i64 0, i64 %20
store float %18, ptr %21, align 4
%22 = load i32, ptr %4, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [5 x float], ptr %3, i64 0, i64 %23
%25 = load float, ptr %24, align 4
%26 = fpext float %25 to double
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %26)
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %29
29: ; preds = %8
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
%32 = load i32, ptr %4, align 4
%33 = icmp sle i32 %32, 5
br i1 %33, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %34
34: ; preds = %._crit_edge, %0
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare float @pow(float 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/tmptyx1jgjd.c'
source_filename = "/tmp/tmptyx1jgjd.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 @swrap_listen(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = call ptr @find_socket_info(i32 noundef %8)
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %7, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %16, label %12
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = call i32 @listen(i32 noundef %13, i32 noundef %14)
store i32 %15, ptr %3, align 4
br label %21
16: ; preds = %2
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %5, align 4
%19 = call i32 @listen(i32 noundef %17, i32 noundef %18)
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
store i32 %20, ptr %3, align 4
br label %21
21: ; preds = %16, %12
%22 = load i32, ptr %3, align 4
ret i32 %22
}
declare ptr @find_socket_info(i32 noundef) #1
declare i32 @listen(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/tmptyx1jgjd.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 @swrap_listen(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = call ptr @find_socket_info(i32 noundef %8)
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %7, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %16, label %12
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = call i32 @listen(i32 noundef %13, i32 noundef %14)
store i32 %15, ptr %3, align 4
br label %21
16: ; preds = %2
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %5, align 4
%19 = call i32 @listen(i32 noundef %17, i32 noundef %18)
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
store i32 %20, ptr %3, align 4
br label %21
21: ; preds = %16, %12
%22 = load i32, ptr %3, align 4
ret i32 %22
}
declare ptr @find_socket_info(i32 noundef) #1
declare i32 @listen(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/tmpqjsye9ic.c'
source_filename = "/tmp/tmpqjsye9ic.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Leap Year\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Not Leap Year\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 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = srem i32 %4, 100
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %16
7: ; preds = %0
%8 = load i32, ptr %2, align 4
%9 = srem i32 %8, 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %7
%12 = call i32 @printf(ptr noundef @.str.1)
br label %15
13: ; preds = %7
%14 = call i32 @printf(ptr noundef @.str.2)
br label %15
15: ; preds = %13, %11
br label %25
16: ; preds = %0
%17 = load i32, ptr %2, align 4
%18 = srem i32 %17, 4
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @printf(ptr noundef @.str.1)
br label %24
22: ; preds = %16
%23 = call i32 @printf(ptr noundef @.str.2)
br label %24
24: ; preds = %22, %20
br label %25
25: ; preds = %24, %15
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/tmpqjsye9ic.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Leap Year\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Not Leap Year\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 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = srem i32 %4, 100
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %16
7: ; preds = %0
%8 = load i32, ptr %2, align 4
%9 = srem i32 %8, 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %7
%12 = call i32 @printf(ptr noundef @.str.1)
br label %15
13: ; preds = %7
%14 = call i32 @printf(ptr noundef @.str.2)
br label %15
15: ; preds = %13, %11
br label %25
16: ; preds = %0
%17 = load i32, ptr %2, align 4
%18 = srem i32 %17, 4
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @printf(ptr noundef @.str.1)
br label %24
22: ; preds = %16
%23 = call i32 @printf(ptr noundef @.str.2)
br label %24
24: ; preds = %22, %20
br label %25
25: ; preds = %24, %15
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/tmp50czc9h7.c'
source_filename = "/tmp/tmp50czc9h7.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 @strlen(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
store ptr %5, ptr %4, align 8
br label %6
6: ; preds = %13, %1
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
br label %13
13: ; preds = %10
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds i8, ptr %14, i32 1
store ptr %15, ptr %4, align 8
br label %6, !llvm.loop !6
16: ; preds = %6
%17 = load i32, ptr %3, align 4
ret i32 %17
}
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/tmp50czc9h7.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 @strlen(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
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = load i8, ptr %6, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %12
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %3, align 4
br label %12
12: ; preds = %9
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds i8, ptr %13, i32 1
store ptr %14, ptr %4, align 8
%15 = load ptr, ptr %4, align 8
%16 = load i8, ptr %15, align 1
%17 = icmp ne i8 %16, 0
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %18
18: ; preds = %._crit_edge, %1
%19 = load i32, ptr %3, align 4
ret i32 %19
}
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/tmpn5qk44b7.c'
source_filename = "/tmp/tmpn5qk44b7.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 @intc_init() #0 {
store volatile i64 4294967295, ptr inttoptr (i64 4060086292 to ptr), align 8
store volatile i64 4294967295, ptr inttoptr (i64 4061134868 to ptr), align 8
store volatile i64 4294967295, ptr inttoptr (i64 4062183444 to ptr), align 8
store volatile i64 4294967295, ptr inttoptr (i64 4063232020 to ptr), align 8
store volatile i64 0, ptr inttoptr (i64 4060086284 to ptr), align 8
store volatile i64 0, ptr inttoptr (i64 4061134860 to ptr), align 8
store volatile i64 0, ptr inttoptr (i64 4062183436 to ptr), align 8
store volatile i64 0, ptr inttoptr (i64 4063232012 to ptr), align 8
%1 = call i32 (...) @intc_clearvectaddr()
ret void
}
declare i32 @intc_clearvectaddr(...) #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/tmpn5qk44b7.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 @intc_init() #0 {
store volatile i64 4294967295, ptr inttoptr (i64 4060086292 to ptr), align 8
store volatile i64 4294967295, ptr inttoptr (i64 4061134868 to ptr), align 8
store volatile i64 4294967295, ptr inttoptr (i64 4062183444 to ptr), align 8
store volatile i64 4294967295, ptr inttoptr (i64 4063232020 to ptr), align 8
store volatile i64 0, ptr inttoptr (i64 4060086284 to ptr), align 8
store volatile i64 0, ptr inttoptr (i64 4061134860 to ptr), align 8
store volatile i64 0, ptr inttoptr (i64 4062183436 to ptr), align 8
store volatile i64 0, ptr inttoptr (i64 4063232012 to ptr), align 8
%1 = call i32 (...) @intc_clearvectaddr()
ret void
}
declare i32 @intc_clearvectaddr(...) #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/tmpfoqcfpg_.c'
source_filename = "/tmp/tmpfoqcfpg_.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 @CE_pHP_M(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
store double %0, ptr %7, align 8
store double %1, ptr %8, align 8
store double %2, ptr %9, align 8
store double %3, ptr %10, align 8
store double %4, ptr %11, align 8
store double %5, ptr %12, align 8
%15 = load double, ptr %7, align 8
%16 = fsub double 3.000000e+00, %15
%17 = fptosi double %16 to i32
%18 = call double @pow(double noundef 1.000000e+01, i32 noundef %17)
%19 = load double, ptr %12, align 8
%20 = fdiv double %18, %19
store double %20, ptr %13, align 8
%21 = load double, ptr %9, align 8
%22 = load double, ptr %12, align 8
%23 = call double @pow(double noundef %22, i32 noundef 2)
%24 = fdiv double %21, %23
store double %24, ptr %9, align 8
%25 = load double, ptr %10, align 8
%26 = load double, ptr %12, align 8
%27 = call double @pow(double noundef %26, i32 noundef 4)
%28 = fdiv double %25, %27
store double %28, ptr %10, align 8
%29 = load double, ptr %11, align 8
%30 = load double, ptr %12, align 8
%31 = call double @pow(double noundef %30, i32 noundef 2)
%32 = fdiv double %29, %31
store double %32, ptr %11, align 8
%33 = load double, ptr %8, align 8
%34 = fmul double 2.000000e+00, %33
%35 = load double, ptr %13, align 8
%36 = fmul double %34, %35
%37 = load double, ptr %9, align 8
%38 = fmul double %36, %37
%39 = load double, ptr %10, align 8
%40 = load double, ptr %11, align 8
%41 = load double, ptr %9, align 8
%42 = fmul double %40, %41
%43 = load double, ptr %10, align 8
%44 = fmul double %42, %43
%45 = fneg double %44
%46 = call double @llvm.fmuladd.f64(double %38, double %39, double %45)
%47 = load double, ptr %9, align 8
%48 = load double, ptr %10, align 8
%49 = fmul double %47, %48
%50 = load double, ptr %13, align 8
%51 = fmul double %49, %50
%52 = load double, ptr %13, align 8
%53 = call double @llvm.fmuladd.f64(double %51, double %52, double %46)
%54 = load double, ptr %13, align 8
%55 = load double, ptr %13, align 8
%56 = fmul double %54, %55
%57 = load double, ptr %9, align 8
%58 = fmul double %56, %57
%59 = load double, ptr %8, align 8
%60 = call double @llvm.fmuladd.f64(double %58, double %59, double %53)
%61 = load double, ptr %11, align 8
%62 = load double, ptr %9, align 8
%63 = fmul double %61, %62
%64 = load double, ptr %13, align 8
%65 = fneg double %63
%66 = call double @llvm.fmuladd.f64(double %65, double %64, double %60)
%67 = load double, ptr %13, align 8
%68 = load double, ptr %13, align 8
%69 = fmul double %67, %68
%70 = load double, ptr %13, align 8
%71 = fmul double %69, %70
%72 = load double, ptr %9, align 8
%73 = call double @llvm.fmuladd.f64(double %71, double %72, double %66)
%74 = load double, ptr %13, align 8
%75 = load double, ptr %13, align 8
%76 = fmul double %74, %75
%77 = load double, ptr %11, align 8
%78 = fneg double %76
%79 = call double @llvm.fmuladd.f64(double %78, double %77, double %73)
%80 = load double, ptr %13, align 8
%81 = load double, ptr %13, align 8
%82 = fmul double %80, %81
%83 = load double, ptr %13, align 8
%84 = fmul double %82, %83
%85 = load double, ptr %13, align 8
%86 = call double @llvm.fmuladd.f64(double %84, double %85, double %79)
%87 = fneg double %86
%88 = load double, ptr %9, align 8
%89 = fneg double %88
%90 = load double, ptr %10, align 8
%91 = load double, ptr %13, align 8
%92 = load double, ptr %13, align 8
%93 = fmul double %91, %92
%94 = call double @llvm.fmuladd.f64(double %89, double %90, double %93)
%95 = fdiv double %87, %94
%96 = load double, ptr %13, align 8
%97 = fdiv double %95, %96
store double %97, ptr %14, align 8
%98 = load double, ptr %14, align 8
ret double %98
}
declare double @pow(double noundef, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfoqcfpg_.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 @CE_pHP_M(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
store double %0, ptr %7, align 8
store double %1, ptr %8, align 8
store double %2, ptr %9, align 8
store double %3, ptr %10, align 8
store double %4, ptr %11, align 8
store double %5, ptr %12, align 8
%15 = load double, ptr %7, align 8
%16 = fsub double 3.000000e+00, %15
%17 = fptosi double %16 to i32
%18 = call double @pow(double noundef 1.000000e+01, i32 noundef %17)
%19 = load double, ptr %12, align 8
%20 = fdiv double %18, %19
store double %20, ptr %13, align 8
%21 = load double, ptr %9, align 8
%22 = load double, ptr %12, align 8
%23 = call double @pow(double noundef %22, i32 noundef 2)
%24 = fdiv double %21, %23
store double %24, ptr %9, align 8
%25 = load double, ptr %10, align 8
%26 = load double, ptr %12, align 8
%27 = call double @pow(double noundef %26, i32 noundef 4)
%28 = fdiv double %25, %27
store double %28, ptr %10, align 8
%29 = load double, ptr %11, align 8
%30 = load double, ptr %12, align 8
%31 = call double @pow(double noundef %30, i32 noundef 2)
%32 = fdiv double %29, %31
store double %32, ptr %11, align 8
%33 = load double, ptr %8, align 8
%34 = fmul double 2.000000e+00, %33
%35 = load double, ptr %13, align 8
%36 = fmul double %34, %35
%37 = load double, ptr %9, align 8
%38 = fmul double %36, %37
%39 = load double, ptr %10, align 8
%40 = load double, ptr %11, align 8
%41 = load double, ptr %9, align 8
%42 = fmul double %40, %41
%43 = load double, ptr %10, align 8
%44 = fmul double %42, %43
%45 = fneg double %44
%46 = call double @llvm.fmuladd.f64(double %38, double %39, double %45)
%47 = load double, ptr %9, align 8
%48 = load double, ptr %10, align 8
%49 = fmul double %47, %48
%50 = load double, ptr %13, align 8
%51 = fmul double %49, %50
%52 = load double, ptr %13, align 8
%53 = call double @llvm.fmuladd.f64(double %51, double %52, double %46)
%54 = load double, ptr %13, align 8
%55 = load double, ptr %13, align 8
%56 = fmul double %54, %55
%57 = load double, ptr %9, align 8
%58 = fmul double %56, %57
%59 = load double, ptr %8, align 8
%60 = call double @llvm.fmuladd.f64(double %58, double %59, double %53)
%61 = load double, ptr %11, align 8
%62 = load double, ptr %9, align 8
%63 = fmul double %61, %62
%64 = load double, ptr %13, align 8
%65 = fneg double %63
%66 = call double @llvm.fmuladd.f64(double %65, double %64, double %60)
%67 = load double, ptr %13, align 8
%68 = load double, ptr %13, align 8
%69 = fmul double %67, %68
%70 = load double, ptr %13, align 8
%71 = fmul double %69, %70
%72 = load double, ptr %9, align 8
%73 = call double @llvm.fmuladd.f64(double %71, double %72, double %66)
%74 = load double, ptr %13, align 8
%75 = load double, ptr %13, align 8
%76 = fmul double %74, %75
%77 = load double, ptr %11, align 8
%78 = fneg double %76
%79 = call double @llvm.fmuladd.f64(double %78, double %77, double %73)
%80 = load double, ptr %13, align 8
%81 = load double, ptr %13, align 8
%82 = fmul double %80, %81
%83 = load double, ptr %13, align 8
%84 = fmul double %82, %83
%85 = load double, ptr %13, align 8
%86 = call double @llvm.fmuladd.f64(double %84, double %85, double %79)
%87 = fneg double %86
%88 = load double, ptr %9, align 8
%89 = fneg double %88
%90 = load double, ptr %10, align 8
%91 = load double, ptr %13, align 8
%92 = load double, ptr %13, align 8
%93 = fmul double %91, %92
%94 = call double @llvm.fmuladd.f64(double %89, double %90, double %93)
%95 = fdiv double %87, %94
%96 = load double, ptr %13, align 8
%97 = fdiv double %95, %96
store double %97, ptr %14, align 8
%98 = load double, ptr %14, align 8
ret double %98
}
declare double @pow(double noundef, 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"}
|
; ModuleID = '/tmp/tmpv8qkjfbx.c'
source_filename = "/tmp/tmpv8qkjfbx.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 @curve25519_dh_CalculatePublicKey_fast(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 = call i32 @ecp_TrimSecretKey(ptr noundef %5)
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @x25519_BasePointMultiply(ptr noundef %7, ptr noundef %8)
ret void
}
declare i32 @ecp_TrimSecretKey(ptr noundef) #1
declare i32 @x25519_BasePointMultiply(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/tmpv8qkjfbx.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 @curve25519_dh_CalculatePublicKey_fast(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 = call i32 @ecp_TrimSecretKey(ptr noundef %5)
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @x25519_BasePointMultiply(ptr noundef %7, ptr noundef %8)
ret void
}
declare i32 @ecp_TrimSecretKey(ptr noundef) #1
declare i32 @x25519_BasePointMultiply(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/tmppfb3m05w.c'
source_filename = "/tmp/tmppfb3m05w.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" test failed at %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fail(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
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/tmppfb3m05w.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" test failed at %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fail(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
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/tmppg2ctc58.c'
source_filename = "/tmp/tmppg2ctc58.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 [16 x i8] c" Exiting...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cleanup() #0 {
%1 = call i32 (...) @cr_reset()
%2 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @cr_reset(...) #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/tmppg2ctc58.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 [16 x i8] c" Exiting...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cleanup() #0 {
%1 = call i32 (...) @cr_reset()
%2 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @cr_reset(...) #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/tmpst03a7yr.c'
source_filename = "/tmp/tmpst03a7yr.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 @__getopt_r(i32 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
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = call i32 @getopt_internal(i32 noundef %9, ptr noundef %10, ptr noundef %11, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %12)
ret i32 %13
}
declare i32 @getopt_internal(i32 noundef, ptr noundef, ptr noundef, i32 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/tmpst03a7yr.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 @__getopt_r(i32 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
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = call i32 @getopt_internal(i32 noundef %9, ptr noundef %10, ptr noundef %11, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %12)
ret i32 %13
}
declare i32 @getopt_internal(i32 noundef, ptr noundef, ptr noundef, i32 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/tmp7880q7uo.c'
source_filename = "/tmp/tmp7880q7uo.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 @random_bet() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @rand()
%3 = sext i32 %2 to i64
%4 = call i64 (...) @getpid()
%5 = add nsw i64 %3, %4
%6 = call i32 @srand(i64 noundef %5)
%7 = call i32 (...) @rand()
%8 = srem i32 %7, 2
%9 = add nsw i32 %8, 1
store i32 %9, ptr %1, align 4
%10 = load i32, ptr %1, align 4
ret i32 %10
}
declare i32 @srand(i64 noundef) #1
declare i32 @rand(...) #1
declare i64 @getpid(...) #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/tmp7880q7uo.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 @random_bet() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @rand()
%3 = sext i32 %2 to i64
%4 = call i64 (...) @getpid()
%5 = add nsw i64 %3, %4
%6 = call i32 @srand(i64 noundef %5)
%7 = call i32 (...) @rand()
%8 = srem i32 %7, 2
%9 = add nsw i32 %8, 1
store i32 %9, ptr %1, align 4
%10 = load i32, ptr %1, align 4
ret i32 %10
}
declare i32 @srand(i64 noundef) #1
declare i32 @rand(...) #1
declare i64 @getpid(...) #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/tmpvcdt4v3y.c'
source_filename = "/tmp/tmpvcdt4v3y.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/tmpvcdt4v3y.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/tmpcld70uwv.c'
source_filename = "/tmp/tmpcld70uwv.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"host\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"port\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"format\00", align 1
@__const.parse_subopt.tokens = private unnamed_addr constant [4 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr null], align 16
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [15 x i8] c"Host expected\0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"realloc\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"Port expected\0A\00", align 1
@.str.6 = private unnamed_addr constant [17 x i8] c"Format expected\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_subopt(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 i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca [4 x ptr], align 16
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
%14 = load ptr, ptr %6, align 8
store ptr %14, ptr %11, align 8
store ptr null, ptr %12, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.parse_subopt.tokens, i64 32, i1 false)
br label %15
15: ; preds = %90, %4
%16 = getelementptr inbounds [4 x ptr], ptr %13, i64 0, i64 0
%17 = call i32 @getsubopt(ptr noundef %11, ptr noundef %16, ptr noundef %12)
store i32 %17, ptr %10, align 4
%18 = icmp ne i32 %17, -1
br i1 %18, label %19, label %91
19: ; preds = %15
%20 = load i32, ptr %10, align 4
switch i32 %20, label %90 [
i32 0, label %21
i32 1, label %44
i32 2, label %67
]
21: ; preds = %19
%22 = load ptr, ptr %12, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i32, ptr @stderr, align 4
%26 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.3)
store i32 -1, ptr %5, align 4
br label %92
27: ; preds = %21
%28 = load ptr, ptr %7, align 8
%29 = load ptr, ptr %28, align 8
%30 = load ptr, ptr %12, align 8
%31 = call i32 @strlen(ptr noundef %30)
%32 = add nsw i32 %31, 1
%33 = call ptr @realloc(ptr noundef %29, i32 noundef %32)
%34 = load ptr, ptr %7, align 8
store ptr %33, ptr %34, align 8
%35 = icmp eq ptr %33, null
br i1 %35, label %36, label %39
36: ; preds = %27
%37 = call i32 @perror(ptr noundef @.str.4)
%38 = call i32 @exit(i32 noundef -1) #4
unreachable
39: ; preds = %27
%40 = load ptr, ptr %7, align 8
%41 = load ptr, ptr %40, align 8
%42 = load ptr, ptr %12, align 8
%43 = call i32 @strcpy(ptr noundef %41, ptr noundef %42)
br label %90
44: ; preds = %19
%45 = load ptr, ptr %12, align 8
%46 = icmp eq ptr %45, null
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, ptr @stderr, align 4
%49 = call i32 @fprintf(i32 noundef %48, ptr noundef @.str.5)
store i32 -1, ptr %5, align 4
br label %92
50: ; preds = %44
%51 = load ptr, ptr %8, align 8
%52 = load ptr, ptr %51, align 8
%53 = load ptr, ptr %12, align 8
%54 = call i32 @strlen(ptr noundef %53)
%55 = add nsw i32 %54, 1
%56 = call ptr @realloc(ptr noundef %52, i32 noundef %55)
%57 = load ptr, ptr %8, align 8
store ptr %56, ptr %57, align 8
%58 = icmp eq ptr %56, null
br i1 %58, label %59, label %62
59: ; preds = %50
%60 = call i32 @perror(ptr noundef @.str.4)
%61 = call i32 @exit(i32 noundef -1) #4
unreachable
62: ; preds = %50
%63 = load ptr, ptr %8, align 8
%64 = load ptr, ptr %63, align 8
%65 = load ptr, ptr %12, align 8
%66 = call i32 @strcpy(ptr noundef %64, ptr noundef %65)
br label %90
67: ; preds = %19
%68 = load ptr, ptr %12, align 8
%69 = icmp eq ptr %68, null
br i1 %69, label %70, label %73
70: ; preds = %67
%71 = load i32, ptr @stderr, align 4
%72 = call i32 @fprintf(i32 noundef %71, ptr noundef @.str.6)
store i32 -1, ptr %5, align 4
br label %92
73: ; preds = %67
%74 = load ptr, ptr %9, align 8
%75 = load ptr, ptr %74, align 8
%76 = load ptr, ptr %12, align 8
%77 = call i32 @strlen(ptr noundef %76)
%78 = add nsw i32 %77, 1
%79 = call ptr @realloc(ptr noundef %75, i32 noundef %78)
%80 = load ptr, ptr %9, align 8
store ptr %79, ptr %80, align 8
%81 = icmp eq ptr %79, null
br i1 %81, label %82, label %85
82: ; preds = %73
%83 = call i32 @perror(ptr noundef @.str.4)
%84 = call i32 @exit(i32 noundef -1) #4
unreachable
85: ; preds = %73
%86 = load ptr, ptr %9, align 8
%87 = load ptr, ptr %86, align 8
%88 = load ptr, ptr %12, align 8
%89 = call i32 @strcpy(ptr noundef %87, ptr noundef %88)
br label %90
90: ; preds = %19, %85, %62, %39
br label %15, !llvm.loop !6
91: ; preds = %15
store i32 0, ptr %5, align 4
br label %92
92: ; preds = %91, %70, %47, %24
%93 = load i32, ptr %5, align 4
ret i32 %93
}
; 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
declare i32 @getsubopt(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef) #2
declare ptr @realloc(ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @strcpy(ptr noundef, 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: readwrite) }
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/tmpcld70uwv.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"host\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"port\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"format\00", align 1
@__const.parse_subopt.tokens = private unnamed_addr constant [4 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr null], align 16
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [15 x i8] c"Host expected\0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"realloc\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"Port expected\0A\00", align 1
@.str.6 = private unnamed_addr constant [17 x i8] c"Format expected\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_subopt(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 i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca [4 x ptr], align 16
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
%14 = load ptr, ptr %6, align 8
store ptr %14, ptr %11, align 8
store ptr null, ptr %12, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.parse_subopt.tokens, i64 32, i1 false)
%15 = getelementptr inbounds [4 x ptr], ptr %13, i64 0, i64 0
%16 = call i32 @getsubopt(ptr noundef %11, ptr noundef %15, ptr noundef %12)
store i32 %16, ptr %10, align 4
%17 = icmp ne i32 %16, -1
br i1 %17, label %.lr.ph, label %92
.lr.ph: ; preds = %4
br label %18
18: ; preds = %.lr.ph, %89
%19 = load i32, ptr %10, align 4
switch i32 %19, label %89 [
i32 0, label %20
i32 1, label %43
i32 2, label %66
]
20: ; preds = %18
%21 = load ptr, ptr %12, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, ptr @stderr, align 4
%25 = call i32 @fprintf(i32 noundef %24, ptr noundef @.str.3)
store i32 -1, ptr %5, align 4
br label %93
26: ; preds = %20
%27 = load ptr, ptr %7, align 8
%28 = load ptr, ptr %27, align 8
%29 = load ptr, ptr %12, align 8
%30 = call i32 @strlen(ptr noundef %29)
%31 = add nsw i32 %30, 1
%32 = call ptr @realloc(ptr noundef %28, i32 noundef %31)
%33 = load ptr, ptr %7, align 8
store ptr %32, ptr %33, align 8
%34 = icmp eq ptr %32, null
br i1 %34, label %35, label %38
35: ; preds = %26
%36 = call i32 @perror(ptr noundef @.str.4)
%37 = call i32 @exit(i32 noundef -1) #4
unreachable
38: ; preds = %26
%39 = load ptr, ptr %7, align 8
%40 = load ptr, ptr %39, align 8
%41 = load ptr, ptr %12, align 8
%42 = call i32 @strcpy(ptr noundef %40, ptr noundef %41)
br label %89
43: ; preds = %18
%44 = load ptr, ptr %12, align 8
%45 = icmp eq ptr %44, null
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = load i32, ptr @stderr, align 4
%48 = call i32 @fprintf(i32 noundef %47, ptr noundef @.str.5)
store i32 -1, ptr %5, align 4
br label %93
49: ; preds = %43
%50 = load ptr, ptr %8, align 8
%51 = load ptr, ptr %50, align 8
%52 = load ptr, ptr %12, align 8
%53 = call i32 @strlen(ptr noundef %52)
%54 = add nsw i32 %53, 1
%55 = call ptr @realloc(ptr noundef %51, i32 noundef %54)
%56 = load ptr, ptr %8, align 8
store ptr %55, ptr %56, align 8
%57 = icmp eq ptr %55, null
br i1 %57, label %58, label %61
58: ; preds = %49
%59 = call i32 @perror(ptr noundef @.str.4)
%60 = call i32 @exit(i32 noundef -1) #4
unreachable
61: ; preds = %49
%62 = load ptr, ptr %8, align 8
%63 = load ptr, ptr %62, align 8
%64 = load ptr, ptr %12, align 8
%65 = call i32 @strcpy(ptr noundef %63, ptr noundef %64)
br label %89
66: ; preds = %18
%67 = load ptr, ptr %12, align 8
%68 = icmp eq ptr %67, null
br i1 %68, label %69, label %72
69: ; preds = %66
%70 = load i32, ptr @stderr, align 4
%71 = call i32 @fprintf(i32 noundef %70, ptr noundef @.str.6)
store i32 -1, ptr %5, align 4
br label %93
72: ; preds = %66
%73 = load ptr, ptr %9, align 8
%74 = load ptr, ptr %73, align 8
%75 = load ptr, ptr %12, align 8
%76 = call i32 @strlen(ptr noundef %75)
%77 = add nsw i32 %76, 1
%78 = call ptr @realloc(ptr noundef %74, i32 noundef %77)
%79 = load ptr, ptr %9, align 8
store ptr %78, ptr %79, align 8
%80 = icmp eq ptr %78, null
br i1 %80, label %81, label %84
81: ; preds = %72
%82 = call i32 @perror(ptr noundef @.str.4)
%83 = call i32 @exit(i32 noundef -1) #4
unreachable
84: ; preds = %72
%85 = load ptr, ptr %9, align 8
%86 = load ptr, ptr %85, align 8
%87 = load ptr, ptr %12, align 8
%88 = call i32 @strcpy(ptr noundef %86, ptr noundef %87)
br label %89
89: ; preds = %84, %61, %38, %18
%90 = call i32 @getsubopt(ptr noundef %11, ptr noundef %15, ptr noundef %12)
store i32 %90, ptr %10, align 4
%91 = icmp ne i32 %90, -1
br i1 %91, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %89
br label %92
92: ; preds = %._crit_edge, %4
store i32 0, ptr %5, align 4
br label %93
93: ; preds = %92, %69, %46, %23
%94 = load i32, ptr %5, align 4
ret i32 %94
}
; 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
declare i32 @getsubopt(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef) #2
declare ptr @realloc(ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @strcpy(ptr noundef, 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: readwrite) }
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/tmp4aqm0_pg.c'
source_filename = "/tmp/tmp4aqm0_pg.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/tmp4aqm0_pg.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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.