llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmpktazyeng.c'
source_filename = "/tmp/tmpktazyeng.c"
target datalayout = "e-m:e-p270: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/tmpktazyeng.c"
target datalayout = "e-m:e-p270: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/tmpmdk15f7g.c'
source_filename = "/tmp/tmpmdk15f7g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_get_bit() #0 {
%1 = call i64 @get_bit(i32 noundef 21, i32 noundef 0)
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = call i64 @get_bit(i32 noundef 21, i32 noundef 1)
%5 = icmp ne i64 %4, 0
%6 = xor i1 %5, true
br label %7
7: ; preds = %3, %0
%8 = phi i1 [ false, %0 ], [ %6, %3 ]
%9 = zext i1 %8 to i32
ret i32 %9
}
declare i64 @get_bit(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/tmpmdk15f7g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_get_bit() #0 {
%1 = call i64 @get_bit(i32 noundef 21, i32 noundef 0)
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = call i64 @get_bit(i32 noundef 21, i32 noundef 1)
%5 = icmp ne i64 %4, 0
%6 = xor i1 %5, true
br label %7
7: ; preds = %3, %0
%8 = phi i1 [ false, %0 ], [ %6, %3 ]
%9 = zext i1 %8 to i32
ret i32 %9
}
declare i64 @get_bit(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/tmpb7ujju3s.c'
source_filename = "/tmp/tmpb7ujju3s.c"
target datalayout = "e-m:e-p270: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 @setpixel(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call i32 @SetPixel151(i64 noundef %5, i64 noundef %6)
ret void
}
declare i32 @SetPixel151(i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb7ujju3s.c"
target datalayout = "e-m:e-p270: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 @setpixel(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call i32 @SetPixel151(i64 noundef %5, i64 noundef %6)
ret void
}
declare i32 @SetPixel151(i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8i0wp8yd.c'
source_filename = "/tmp/tmp8i0wp8yd.c"
target datalayout = "e-m:e-p270: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 [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\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 [1 x i32], align 4
%7 = alloca [1 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = 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
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i32
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 %33
store i32 %31, ptr %34, align 4
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%42 = load i32, ptr %41, align 4
%43 = icmp eq i32 %42, 9511340
br i1 %43, label %44, label %46
44: ; preds = %37
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %47
46: ; preds = %37
br label %47
47: ; preds = %46, %44
store i32 0, ptr %10, align 4
br label %48
48: ; preds = %51, %47
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %51, label %59
51: ; preds = %48
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
br label %48, !llvm.loop !8
59: ; preds = %48
%60 = load i32, ptr %3, align 4
ret i32 %60
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(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" }
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/tmp8i0wp8yd.c"
target datalayout = "e-m:e-p270: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 [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\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 [1 x i32], align 4
%7 = alloca [1 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = 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
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i32
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 %32
store i32 %30, ptr %33, align 4
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%43 = load i32, ptr %42, align 4
%44 = icmp eq i32 %43, 9511340
br i1 %44, label %45, label %47
45: ; preds = %38
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %38
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %.lr.ph2, label %61
.lr.ph2: ; preds = %48
br label %51
51: ; preds = %.lr.ph2, %51
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
%59 = load i32, ptr %10, align 4
%60 = icmp slt i32 %59, 1
br i1 %60, label %51, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %61
61: ; preds = %._crit_edge3, %48
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(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" }
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/tmpla8a5dlx.c'
source_filename = "/tmp/tmpla8a5dlx.c"
target datalayout = "e-m:e-p270: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 @bufToInt32(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i32, ptr %3, i64 0
%5 = load i32, ptr %4, align 4
%6 = shl i32 %5, 24
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i32, ptr %7, i64 1
%9 = load i32, ptr %8, align 4
%10 = shl i32 %9, 16
%11 = or i32 %6, %10
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i32, ptr %12, i64 2
%14 = load i32, ptr %13, align 4
%15 = shl i32 %14, 8
%16 = or i32 %11, %15
%17 = load ptr, ptr %2, align 8
%18 = getelementptr inbounds i32, ptr %17, i64 3
%19 = load i32, ptr %18, align 4
%20 = shl i32 %19, 0
%21 = or i32 %16, %20
ret i32 %21
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpla8a5dlx.c"
target datalayout = "e-m:e-p270: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 @bufToInt32(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i32, ptr %3, i64 0
%5 = load i32, ptr %4, align 4
%6 = shl i32 %5, 24
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i32, ptr %7, i64 1
%9 = load i32, ptr %8, align 4
%10 = shl i32 %9, 16
%11 = or i32 %6, %10
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i32, ptr %12, i64 2
%14 = load i32, ptr %13, align 4
%15 = shl i32 %14, 8
%16 = or i32 %11, %15
%17 = load ptr, ptr %2, align 8
%18 = getelementptr inbounds i32, ptr %17, i64 3
%19 = load i32, ptr %18, align 4
%20 = shl i32 %19, 0
%21 = or i32 %16, %20
ret i32 %21
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpi2yj0u0_.c'
source_filename = "/tmp/tmpi2yj0u0_.c"
target datalayout = "e-m:e-p270: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/tmpi2yj0u0_.c"
target datalayout = "e-m:e-p270: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/tmp4ztwul23.c'
source_filename = "/tmp/tmp4ztwul23.c"
target datalayout = "e-m:e-p270: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 @betole(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = and i32 %3, 65280
%5 = lshr i32 %4, 8
%6 = load i32, ptr %2, align 4
%7 = and i32 %6, 255
%8 = shl i32 %7, 8
%9 = or i32 %5, %8
ret i32 %9
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp4ztwul23.c"
target datalayout = "e-m:e-p270: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 @betole(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = and i32 %3, 65280
%5 = lshr i32 %4, 8
%6 = load i32, ptr %2, align 4
%7 = and i32 %6, 255
%8 = shl i32 %7, 8
%9 = or i32 %5, %8
ret i32 %9
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmplgynala8.c'
source_filename = "/tmp/tmplgynala8.c"
target datalayout = "e-m:e-p270: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 @max_subarray_brute(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
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = 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
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %13
13: ; preds = %63, %3
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %66
17: ; preds = %13
store i32 0, ptr %10, align 4
br label %18
18: ; preds = %59, %17
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %62
22: ; preds = %18
%23 = load i32, ptr %9, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %11, align 4
br label %25
25: ; preds = %55, %22
%26 = load i32, ptr %11, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %58
29: ; preds = %25
%30 = load i32, ptr %10, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %12, align 4
br label %32
32: ; preds = %51, %29
%33 = load i32, ptr %12, align 4
%34 = load i32, ptr %5, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %54
36: ; preds = %32
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %5, align 4
%39 = load i32, ptr %6, align 4
%40 = load i32, ptr %9, align 4
%41 = load i32, ptr %10, align 4
%42 = load i32, ptr %11, align 4
%43 = load i32, ptr %12, align 4
%44 = call i32 @sub_sum_brute(ptr noundef %37, i32 noundef %38, i32 noundef %39, i32 noundef %40, i32 noundef %41, i32 noundef %42, i32 noundef %43)
store i32 %44, ptr %8, align 4
%45 = load i32, ptr %8, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp sgt i32 %45, %46
br i1 %47, label %48, label %50
48: ; preds = %36
%49 = load i32, ptr %8, align 4
store i32 %49, ptr %7, align 4
br label %50
50: ; preds = %48, %36
br label %51
51: ; preds = %50
%52 = load i32, ptr %12, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %12, align 4
br label %32, !llvm.loop !6
54: ; preds = %32
br label %55
55: ; preds = %54
%56 = load i32, ptr %11, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %11, align 4
br label %25, !llvm.loop !8
58: ; preds = %25
br label %59
59: ; preds = %58
%60 = load i32, ptr %10, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %10, align 4
br label %18, !llvm.loop !9
62: ; preds = %18
br label %63
63: ; preds = %62
%64 = load i32, ptr %9, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %9, align 4
br label %13, !llvm.loop !10
66: ; preds = %13
%67 = load i32, ptr %7, align 4
ret i32 %67
}
declare i32 @sub_sum_brute(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplgynala8.c"
target datalayout = "e-m:e-p270: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 @max_subarray_brute(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
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = 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
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph8, label %74
.lr.ph8: ; preds = %3
br label %16
16: ; preds = %.lr.ph8, %68
store i32 0, ptr %10, align 4
%17 = load i32, ptr %10, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph5, label %67
.lr.ph5: ; preds = %16
br label %20
20: ; preds = %.lr.ph5, %61
%21 = load i32, ptr %9, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %11, align 4
%23 = load i32, ptr %11, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %.lr.ph2, label %60
.lr.ph2: ; preds = %20
br label %26
26: ; preds = %.lr.ph2, %54
%27 = load i32, ptr %10, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %12, align 4
%29 = load i32, ptr %12, align 4
%30 = load i32, ptr %5, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %.lr.ph, label %53
.lr.ph: ; preds = %26
br label %32
32: ; preds = %.lr.ph, %47
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %5, align 4
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr %10, align 4
%38 = load i32, ptr %11, align 4
%39 = load i32, ptr %12, align 4
%40 = call i32 @sub_sum_brute(ptr noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %36, i32 noundef %37, i32 noundef %38, i32 noundef %39)
store i32 %40, ptr %8, align 4
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr %7, align 4
%43 = icmp sgt i32 %41, %42
br i1 %43, label %44, label %46
44: ; preds = %32
%45 = load i32, ptr %8, align 4
store i32 %45, ptr %7, align 4
br label %46
46: ; preds = %44, %32
br label %47
47: ; preds = %46
%48 = load i32, ptr %12, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %12, align 4
%50 = load i32, ptr %12, align 4
%51 = load i32, ptr %5, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %53
53: ; preds = %._crit_edge, %26
br label %54
54: ; preds = %53
%55 = load i32, ptr %11, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %11, align 4
%57 = load i32, ptr %11, align 4
%58 = load i32, ptr %6, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %26, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %54
br label %60
60: ; preds = %._crit_edge3, %20
br label %61
61: ; preds = %60
%62 = load i32, ptr %10, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %10, align 4
%64 = load i32, ptr %10, align 4
%65 = load i32, ptr %5, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %20, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %61
br label %67
67: ; preds = %._crit_edge6, %16
br label %68
68: ; preds = %67
%69 = load i32, ptr %9, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %9, align 4
%71 = load i32, ptr %9, align 4
%72 = load i32, ptr %6, align 4
%73 = icmp slt i32 %71, %72
br i1 %73, label %16, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %68
br label %74
74: ; preds = %._crit_edge9, %3
%75 = load i32, ptr %7, align 4
ret i32 %75
}
declare i32 @sub_sum_brute(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmphpzsuw5g.c'
source_filename = "/tmp/tmphpzsuw5g.c"
target datalayout = "e-m:e-p270: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/tmphpzsuw5g.c"
target datalayout = "e-m:e-p270: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/tmp8kzf2l6g.c'
source_filename = "/tmp/tmp8kzf2l6g.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100001 x i8], align 16
%3 = alloca [26 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 104, i1 false)
%4 = getelementptr inbounds [100001 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%6 = getelementptr inbounds [100001 x i8], ptr %2, i64 0, i64 0
%7 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 0
%8 = call i32 @letter_count(ptr noundef %6, ptr noundef %7)
%9 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 0
%10 = call i32 @is_pali(ptr noundef %9)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare i32 @letter_count(ptr noundef, ptr noundef) #2
declare i32 @is_pali(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp8kzf2l6g.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100001 x i8], align 16
%3 = alloca [26 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 104, i1 false)
%4 = getelementptr inbounds [100001 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%6 = getelementptr inbounds [100001 x i8], ptr %2, i64 0, i64 0
%7 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 0
%8 = call i32 @letter_count(ptr noundef %6, ptr noundef %7)
%9 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 0
%10 = call i32 @is_pali(ptr noundef %9)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare i32 @letter_count(ptr noundef, ptr noundef) #2
declare i32 @is_pali(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpqzjqda4t.c'
source_filename = "/tmp/tmpqzjqda4t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SQLITE_OK = 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/tmpqzjqda4t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SQLITE_OK = 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/tmpjqwnofuq.c'
source_filename = "/tmp/tmpjqwnofuq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %2, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %206, %0
%7 = call i32 (...) @getchar()
store i32 %7, ptr %3, align 4
%8 = load i32, ptr @EOF, align 4
%9 = icmp ne i32 %7, %8
br i1 %9, label %10, label %207
10: ; preds = %6
%11 = load i32, ptr %4, align 4
switch i32 %11, label %143 [
i32 0, label %12
i32 1, label %72
i32 2, label %91
i32 3, label %104
i32 4, label %117
i32 5, label %130
]
12: ; preds = %10
store i64 0, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = and i32 %13, 254
%15 = icmp eq i32 %14, 252
br i1 %15, label %16, label %21
16: ; preds = %12
%17 = load i32, ptr %3, align 4
%18 = and i32 %17, 1
%19 = shl i32 %18, 30
%20 = sext i32 %19 to i64
store i64 %20, ptr %2, align 8
store i32 6, ptr %5, align 4
store i32 5, ptr %4, align 4
br label %71
21: ; preds = %12
%22 = load i32, ptr %3, align 4
%23 = and i32 %22, 252
%24 = icmp eq i32 %23, 248
br i1 %24, label %25, label %30
25: ; preds = %21
%26 = load i32, ptr %3, align 4
%27 = and i32 %26, 3
%28 = shl i32 %27, 24
%29 = sext i32 %28 to i64
store i64 %29, ptr %2, align 8
store i32 5, ptr %5, align 4
store i32 4, ptr %4, align 4
br label %70
30: ; preds = %21
%31 = load i32, ptr %3, align 4
%32 = and i32 %31, 248
%33 = icmp eq i32 %32, 240
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load i32, ptr %3, align 4
%36 = and i32 %35, 7
%37 = shl i32 %36, 18
%38 = sext i32 %37 to i64
store i64 %38, ptr %2, align 8
store i32 4, ptr %5, align 4
store i32 3, ptr %4, align 4
br label %69
39: ; preds = %30
%40 = load i32, ptr %3, align 4
%41 = and i32 %40, 240
%42 = icmp eq i32 %41, 224
br i1 %42, label %43, label %48
43: ; preds = %39
%44 = load i32, ptr %3, align 4
%45 = and i32 %44, 15
%46 = shl i32 %45, 12
%47 = sext i32 %46 to i64
store i64 %47, ptr %2, align 8
store i32 3, ptr %5, align 4
store i32 2, ptr %4, align 4
br label %68
48: ; preds = %39
%49 = load i32, ptr %3, align 4
%50 = and i32 %49, 224
%51 = icmp eq i32 %50, 192
br i1 %51, label %52, label %57
52: ; preds = %48
%53 = load i32, ptr %3, align 4
%54 = and i32 %53, 31
%55 = shl i32 %54, 6
%56 = sext i32 %55 to i64
store i64 %56, ptr %2, align 8
store i32 2, ptr %5, align 4
store i32 1, ptr %4, align 4
br label %67
57: ; preds = %48
%58 = load i32, ptr %3, align 4
%59 = and i32 %58, 128
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %65
61: ; preds = %57
%62 = load i32, ptr %3, align 4
%63 = and i32 %62, 127
%64 = sext i32 %63 to i64
store i64 %64, ptr %2, align 8
store i32 1, ptr %5, align 4
store i32 0, ptr %4, align 4
br label %66
65: ; preds = %57
br label %66
66: ; preds = %65, %61
br label %67
67: ; preds = %66, %52
br label %68
68: ; preds = %67, %43
br label %69
69: ; preds = %68, %34
br label %70
70: ; preds = %69, %25
br label %71
71: ; preds = %70, %16
br label %144
72: ; preds = %10
%73 = load i32, ptr %3, align 4
%74 = and i32 %73, 192
%75 = icmp eq i32 %74, 128
br i1 %75, label %76, label %89
76: ; preds = %72
%77 = load i64, ptr %2, align 8
%78 = load i32, ptr %3, align 4
%79 = and i32 %78, 63
%80 = sext i32 %79 to i64
%81 = or i64 %77, %80
store i64 %81, ptr %2, align 8
%82 = load i64, ptr %2, align 8
%83 = icmp ult i64 %82, 128
br i1 %83, label %87, label %84
84: ; preds = %76
%85 = load i64, ptr %2, align 8
%86 = icmp ugt i64 %85, 2047
br i1 %86, label %87, label %88
87: ; preds = %84, %76
store i64 4294967295, ptr %2, align 8
br label %88
88: ; preds = %87, %84
br label %90
89: ; preds = %72
store i64 4294967295, ptr %2, align 8
br label %90
90: ; preds = %89, %88
store i32 0, ptr %4, align 4
br label %144
91: ; preds = %10
%92 = load i32, ptr %3, align 4
%93 = and i32 %92, 192
%94 = icmp eq i32 %93, 128
br i1 %94, label %95, label %102
95: ; preds = %91
%96 = load i64, ptr %2, align 8
%97 = load i32, ptr %3, align 4
%98 = and i32 %97, 63
%99 = shl i32 %98, 6
%100 = sext i32 %99 to i64
%101 = or i64 %96, %100
store i64 %101, ptr %2, align 8
store i32 1, ptr %4, align 4
br label %103
102: ; preds = %91
store i64 4294967295, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %103
103: ; preds = %102, %95
br label %144
104: ; preds = %10
%105 = load i32, ptr %3, align 4
%106 = and i32 %105, 192
%107 = icmp eq i32 %106, 128
br i1 %107, label %108, label %115
108: ; preds = %104
%109 = load i64, ptr %2, align 8
%110 = load i32, ptr %3, align 4
%111 = and i32 %110, 63
%112 = shl i32 %111, 12
%113 = sext i32 %112 to i64
%114 = or i64 %109, %113
store i64 %114, ptr %2, align 8
store i32 2, ptr %4, align 4
br label %116
115: ; preds = %104
store i64 4294967295, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %116
116: ; preds = %115, %108
br label %144
117: ; preds = %10
%118 = load i32, ptr %3, align 4
%119 = and i32 %118, 192
%120 = icmp eq i32 %119, 128
br i1 %120, label %121, label %128
121: ; preds = %117
%122 = load i64, ptr %2, align 8
%123 = load i32, ptr %3, align 4
%124 = and i32 %123, 63
%125 = shl i32 %124, 18
%126 = sext i32 %125 to i64
%127 = or i64 %122, %126
store i64 %127, ptr %2, align 8
store i32 3, ptr %4, align 4
br label %129
128: ; preds = %117
store i64 4294967295, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %129
129: ; preds = %128, %121
br label %144
130: ; preds = %10
%131 = load i32, ptr %3, align 4
%132 = and i32 %131, 192
%133 = icmp eq i32 %132, 128
br i1 %133, label %134, label %141
134: ; preds = %130
%135 = load i64, ptr %2, align 8
%136 = load i32, ptr %3, align 4
%137 = and i32 %136, 63
%138 = shl i32 %137, 24
%139 = sext i32 %138 to i64
%140 = or i64 %135, %139
store i64 %140, ptr %2, align 8
store i32 4, ptr %4, align 4
br label %142
141: ; preds = %130
store i64 4294967295, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %142
142: ; preds = %141, %134
br label %144
143: ; preds = %10
store i64 4294967295, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %144
144: ; preds = %143, %142, %129, %116, %103, %90, %71
%145 = load i32, ptr %4, align 4
%146 = icmp eq i32 %145, 0
br i1 %146, label %147, label %206
147: ; preds = %144
%148 = load i32, ptr %5, align 4
switch i32 %148, label %197 [
i32 1, label %149
i32 2, label %157
i32 3, label %165
i32 4, label %173
i32 5, label %181
i32 6, label %189
]
149: ; preds = %147
%150 = load i64, ptr %2, align 8
%151 = icmp ult i64 %150, 0
br i1 %151, label %155, label %152
152: ; preds = %149
%153 = load i64, ptr %2, align 8
%154 = icmp ugt i64 %153, 127
br i1 %154, label %155, label %156
155: ; preds = %152, %149
store i64 4294967295, ptr %2, align 8
br label %156
156: ; preds = %155, %152
br label %198
157: ; preds = %147
%158 = load i64, ptr %2, align 8
%159 = icmp ult i64 %158, 128
br i1 %159, label %163, label %160
160: ; preds = %157
%161 = load i64, ptr %2, align 8
%162 = icmp ugt i64 %161, 2047
br i1 %162, label %163, label %164
163: ; preds = %160, %157
store i64 4294967295, ptr %2, align 8
br label %164
164: ; preds = %163, %160
br label %198
165: ; preds = %147
%166 = load i64, ptr %2, align 8
%167 = icmp ult i64 %166, 2048
br i1 %167, label %171, label %168
168: ; preds = %165
%169 = load i64, ptr %2, align 8
%170 = icmp ugt i64 %169, 65535
br i1 %170, label %171, label %172
171: ; preds = %168, %165
store i64 4294967295, ptr %2, align 8
br label %172
172: ; preds = %171, %168
br label %198
173: ; preds = %147
%174 = load i64, ptr %2, align 8
%175 = icmp ult i64 %174, 65536
br i1 %175, label %179, label %176
176: ; preds = %173
%177 = load i64, ptr %2, align 8
%178 = icmp ugt i64 %177, 2097151
br i1 %178, label %179, label %180
179: ; preds = %176, %173
store i64 4294967295, ptr %2, align 8
br label %180
180: ; preds = %179, %176
br label %198
181: ; preds = %147
%182 = load i64, ptr %2, align 8
%183 = icmp ult i64 %182, 2097152
br i1 %183, label %187, label %184
184: ; preds = %181
%185 = load i64, ptr %2, align 8
%186 = icmp ugt i64 %185, 67108863
br i1 %186, label %187, label %188
187: ; preds = %184, %181
store i64 4294967295, ptr %2, align 8
br label %188
188: ; preds = %187, %184
br label %198
189: ; preds = %147
%190 = load i64, ptr %2, align 8
%191 = icmp ult i64 %190, 67108864
br i1 %191, label %195, label %192
192: ; preds = %189
%193 = load i64, ptr %2, align 8
%194 = icmp ugt i64 %193, 2147483647
br i1 %194, label %195, label %196
195: ; preds = %192, %189
store i64 4294967295, ptr %2, align 8
br label %196
196: ; preds = %195, %192
br label %198
197: ; preds = %147
store i64 4294967295, ptr %2, align 8
br label %198
198: ; preds = %197, %196, %188, %180, %172, %164, %156
%199 = load i64, ptr %2, align 8
%200 = icmp ne i64 %199, 4294967295
br i1 %200, label %201, label %205
201: ; preds = %198
%202 = load i64, ptr %2, align 8
%203 = trunc i64 %202 to i32
%204 = call i32 @printf(ptr noundef @.str, i32 noundef %203)
br label %205
205: ; preds = %201, %198
br label %206
206: ; preds = %205, %144
br label %6, !llvm.loop !6
207: ; preds = %6
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjqwnofuq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %2, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = call i32 (...) @getchar()
store i32 %6, ptr %3, align 4
%7 = load i32, ptr @EOF, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %.lr.ph, label %209
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %205
%10 = load i32, ptr %4, align 4
switch i32 %10, label %142 [
i32 0, label %11
i32 1, label %71
i32 2, label %90
i32 3, label %103
i32 4, label %116
i32 5, label %129
]
11: ; preds = %9
store i64 0, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = and i32 %12, 254
%14 = icmp eq i32 %13, 252
br i1 %14, label %15, label %20
15: ; preds = %11
%16 = load i32, ptr %3, align 4
%17 = and i32 %16, 1
%18 = shl i32 %17, 30
%19 = sext i32 %18 to i64
store i64 %19, ptr %2, align 8
store i32 6, ptr %5, align 4
store i32 5, ptr %4, align 4
br label %70
20: ; preds = %11
%21 = load i32, ptr %3, align 4
%22 = and i32 %21, 252
%23 = icmp eq i32 %22, 248
br i1 %23, label %24, label %29
24: ; preds = %20
%25 = load i32, ptr %3, align 4
%26 = and i32 %25, 3
%27 = shl i32 %26, 24
%28 = sext i32 %27 to i64
store i64 %28, ptr %2, align 8
store i32 5, ptr %5, align 4
store i32 4, ptr %4, align 4
br label %69
29: ; preds = %20
%30 = load i32, ptr %3, align 4
%31 = and i32 %30, 248
%32 = icmp eq i32 %31, 240
br i1 %32, label %33, label %38
33: ; preds = %29
%34 = load i32, ptr %3, align 4
%35 = and i32 %34, 7
%36 = shl i32 %35, 18
%37 = sext i32 %36 to i64
store i64 %37, ptr %2, align 8
store i32 4, ptr %5, align 4
store i32 3, ptr %4, align 4
br label %68
38: ; preds = %29
%39 = load i32, ptr %3, align 4
%40 = and i32 %39, 240
%41 = icmp eq i32 %40, 224
br i1 %41, label %42, label %47
42: ; preds = %38
%43 = load i32, ptr %3, align 4
%44 = and i32 %43, 15
%45 = shl i32 %44, 12
%46 = sext i32 %45 to i64
store i64 %46, ptr %2, align 8
store i32 3, ptr %5, align 4
store i32 2, ptr %4, align 4
br label %67
47: ; preds = %38
%48 = load i32, ptr %3, align 4
%49 = and i32 %48, 224
%50 = icmp eq i32 %49, 192
br i1 %50, label %51, label %56
51: ; preds = %47
%52 = load i32, ptr %3, align 4
%53 = and i32 %52, 31
%54 = shl i32 %53, 6
%55 = sext i32 %54 to i64
store i64 %55, ptr %2, align 8
store i32 2, ptr %5, align 4
store i32 1, ptr %4, align 4
br label %66
56: ; preds = %47
%57 = load i32, ptr %3, align 4
%58 = and i32 %57, 128
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %64
60: ; preds = %56
%61 = load i32, ptr %3, align 4
%62 = and i32 %61, 127
%63 = sext i32 %62 to i64
store i64 %63, ptr %2, align 8
store i32 1, ptr %5, align 4
store i32 0, ptr %4, align 4
br label %65
64: ; preds = %56
br label %65
65: ; preds = %64, %60
br label %66
66: ; preds = %65, %51
br label %67
67: ; preds = %66, %42
br label %68
68: ; preds = %67, %33
br label %69
69: ; preds = %68, %24
br label %70
70: ; preds = %69, %15
br label %143
71: ; preds = %9
%72 = load i32, ptr %3, align 4
%73 = and i32 %72, 192
%74 = icmp eq i32 %73, 128
br i1 %74, label %75, label %88
75: ; preds = %71
%76 = load i64, ptr %2, align 8
%77 = load i32, ptr %3, align 4
%78 = and i32 %77, 63
%79 = sext i32 %78 to i64
%80 = or i64 %76, %79
store i64 %80, ptr %2, align 8
%81 = load i64, ptr %2, align 8
%82 = icmp ult i64 %81, 128
br i1 %82, label %86, label %83
83: ; preds = %75
%84 = load i64, ptr %2, align 8
%85 = icmp ugt i64 %84, 2047
br i1 %85, label %86, label %87
86: ; preds = %83, %75
store i64 4294967295, ptr %2, align 8
br label %87
87: ; preds = %86, %83
br label %89
88: ; preds = %71
store i64 4294967295, ptr %2, align 8
br label %89
89: ; preds = %88, %87
store i32 0, ptr %4, align 4
br label %143
90: ; preds = %9
%91 = load i32, ptr %3, align 4
%92 = and i32 %91, 192
%93 = icmp eq i32 %92, 128
br i1 %93, label %94, label %101
94: ; preds = %90
%95 = load i64, ptr %2, align 8
%96 = load i32, ptr %3, align 4
%97 = and i32 %96, 63
%98 = shl i32 %97, 6
%99 = sext i32 %98 to i64
%100 = or i64 %95, %99
store i64 %100, ptr %2, align 8
store i32 1, ptr %4, align 4
br label %102
101: ; preds = %90
store i64 4294967295, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %102
102: ; preds = %101, %94
br label %143
103: ; preds = %9
%104 = load i32, ptr %3, align 4
%105 = and i32 %104, 192
%106 = icmp eq i32 %105, 128
br i1 %106, label %107, label %114
107: ; preds = %103
%108 = load i64, ptr %2, align 8
%109 = load i32, ptr %3, align 4
%110 = and i32 %109, 63
%111 = shl i32 %110, 12
%112 = sext i32 %111 to i64
%113 = or i64 %108, %112
store i64 %113, ptr %2, align 8
store i32 2, ptr %4, align 4
br label %115
114: ; preds = %103
store i64 4294967295, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %115
115: ; preds = %114, %107
br label %143
116: ; preds = %9
%117 = load i32, ptr %3, align 4
%118 = and i32 %117, 192
%119 = icmp eq i32 %118, 128
br i1 %119, label %120, label %127
120: ; preds = %116
%121 = load i64, ptr %2, align 8
%122 = load i32, ptr %3, align 4
%123 = and i32 %122, 63
%124 = shl i32 %123, 18
%125 = sext i32 %124 to i64
%126 = or i64 %121, %125
store i64 %126, ptr %2, align 8
store i32 3, ptr %4, align 4
br label %128
127: ; preds = %116
store i64 4294967295, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %128
128: ; preds = %127, %120
br label %143
129: ; preds = %9
%130 = load i32, ptr %3, align 4
%131 = and i32 %130, 192
%132 = icmp eq i32 %131, 128
br i1 %132, label %133, label %140
133: ; preds = %129
%134 = load i64, ptr %2, align 8
%135 = load i32, ptr %3, align 4
%136 = and i32 %135, 63
%137 = shl i32 %136, 24
%138 = sext i32 %137 to i64
%139 = or i64 %134, %138
store i64 %139, ptr %2, align 8
store i32 4, ptr %4, align 4
br label %141
140: ; preds = %129
store i64 4294967295, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %141
141: ; preds = %140, %133
br label %143
142: ; preds = %9
store i64 4294967295, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %143
143: ; preds = %142, %141, %128, %115, %102, %89, %70
%144 = load i32, ptr %4, align 4
%145 = icmp eq i32 %144, 0
br i1 %145, label %146, label %205
146: ; preds = %143
%147 = load i32, ptr %5, align 4
switch i32 %147, label %196 [
i32 1, label %148
i32 2, label %156
i32 3, label %164
i32 4, label %172
i32 5, label %180
i32 6, label %188
]
148: ; preds = %146
%149 = load i64, ptr %2, align 8
%150 = icmp ult i64 %149, 0
br i1 %150, label %154, label %151
151: ; preds = %148
%152 = load i64, ptr %2, align 8
%153 = icmp ugt i64 %152, 127
br i1 %153, label %154, label %155
154: ; preds = %151, %148
store i64 4294967295, ptr %2, align 8
br label %155
155: ; preds = %154, %151
br label %197
156: ; preds = %146
%157 = load i64, ptr %2, align 8
%158 = icmp ult i64 %157, 128
br i1 %158, label %162, label %159
159: ; preds = %156
%160 = load i64, ptr %2, align 8
%161 = icmp ugt i64 %160, 2047
br i1 %161, label %162, label %163
162: ; preds = %159, %156
store i64 4294967295, ptr %2, align 8
br label %163
163: ; preds = %162, %159
br label %197
164: ; preds = %146
%165 = load i64, ptr %2, align 8
%166 = icmp ult i64 %165, 2048
br i1 %166, label %170, label %167
167: ; preds = %164
%168 = load i64, ptr %2, align 8
%169 = icmp ugt i64 %168, 65535
br i1 %169, label %170, label %171
170: ; preds = %167, %164
store i64 4294967295, ptr %2, align 8
br label %171
171: ; preds = %170, %167
br label %197
172: ; preds = %146
%173 = load i64, ptr %2, align 8
%174 = icmp ult i64 %173, 65536
br i1 %174, label %178, label %175
175: ; preds = %172
%176 = load i64, ptr %2, align 8
%177 = icmp ugt i64 %176, 2097151
br i1 %177, label %178, label %179
178: ; preds = %175, %172
store i64 4294967295, ptr %2, align 8
br label %179
179: ; preds = %178, %175
br label %197
180: ; preds = %146
%181 = load i64, ptr %2, align 8
%182 = icmp ult i64 %181, 2097152
br i1 %182, label %186, label %183
183: ; preds = %180
%184 = load i64, ptr %2, align 8
%185 = icmp ugt i64 %184, 67108863
br i1 %185, label %186, label %187
186: ; preds = %183, %180
store i64 4294967295, ptr %2, align 8
br label %187
187: ; preds = %186, %183
br label %197
188: ; preds = %146
%189 = load i64, ptr %2, align 8
%190 = icmp ult i64 %189, 67108864
br i1 %190, label %194, label %191
191: ; preds = %188
%192 = load i64, ptr %2, align 8
%193 = icmp ugt i64 %192, 2147483647
br i1 %193, label %194, label %195
194: ; preds = %191, %188
store i64 4294967295, ptr %2, align 8
br label %195
195: ; preds = %194, %191
br label %197
196: ; preds = %146
store i64 4294967295, ptr %2, align 8
br label %197
197: ; preds = %196, %195, %187, %179, %171, %163, %155
%198 = load i64, ptr %2, align 8
%199 = icmp ne i64 %198, 4294967295
br i1 %199, label %200, label %204
200: ; preds = %197
%201 = load i64, ptr %2, align 8
%202 = trunc i64 %201 to i32
%203 = call i32 @printf(ptr noundef @.str, i32 noundef %202)
br label %204
204: ; preds = %200, %197
br label %205
205: ; preds = %204, %143
%206 = call i32 (...) @getchar()
store i32 %206, ptr %3, align 4
%207 = load i32, ptr @EOF, align 4
%208 = icmp ne i32 %206, %207
br i1 %208, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %205
br label %209
209: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpn_t1ga8f.c'
source_filename = "/tmp/tmpn_t1ga8f.c"
target datalayout = "e-m:e-p270: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/tmpn_t1ga8f.c"
target datalayout = "e-m:e-p270: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/tmphc73gnpv.c'
source_filename = "/tmp/tmphc73gnpv.c"
target datalayout = "e-m:e-p270: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 zeroext i16 @xt_core_toss_coin() #0 {
%1 = call i32 (...) @random()
%2 = srem i32 %1, 2
%3 = trunc i32 %2 to i16
ret i16 %3
}
declare i32 @random(...) #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/tmphc73gnpv.c"
target datalayout = "e-m:e-p270: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 zeroext i16 @xt_core_toss_coin() #0 {
%1 = call i32 (...) @random()
%2 = srem i32 %1, 2
%3 = trunc i32 %2 to i16
ret i16 %3
}
declare i32 @random(...) #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/tmpbvh1lbko.c'
source_filename = "/tmp/tmpbvh1lbko.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@WNOHANG = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"Connection closed.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sigchld_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
br label %4
4: ; preds = %8, %1
%5 = load i32, ptr @WNOHANG, align 4
%6 = call i64 @waitpid(i32 noundef -1, ptr noundef null, i32 noundef %5)
%7 = icmp sgt i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %4
br label %4, !llvm.loop !6
9: ; preds = %4
%10 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i64 @waitpid(i32 noundef, ptr noundef, i32 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/tmpbvh1lbko.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@WNOHANG = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"Connection closed.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sigchld_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
br label %4
4: ; preds = %4, %1
%5 = load i32, ptr @WNOHANG, align 4
%6 = call i64 @waitpid(i32 noundef -1, ptr noundef null, i32 noundef %5)
%7 = icmp sgt i64 %6, 0
br i1 %7, label %4, label %8, !llvm.loop !6
8: ; preds = %4
%9 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i64 @waitpid(i32 noundef, ptr noundef, i32 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/tmppym5nh26.c'
source_filename = "/tmp/tmppym5nh26.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strncpy_s(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
%11 = load ptr, ptr %6, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %19
13: ; preds = %4
%14 = load ptr, ptr %8, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i64, ptr %7, align 8
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %16, %13, %4
store i64 0, ptr %5, align 8
br label %42
20: ; preds = %16
%21 = load i64, ptr %7, align 8
%22 = sub i64 %21, 1
%23 = load i64, ptr %9, align 8
%24 = icmp ult i64 %22, %23
br i1 %24, label %25, label %28
25: ; preds = %20
%26 = load i64, ptr %7, align 8
%27 = sub i64 %26, 1
br label %30
28: ; preds = %20
%29 = load i64, ptr %9, align 8
br label %30
30: ; preds = %28, %25
%31 = phi i64 [ %27, %25 ], [ %29, %28 ]
store i64 %31, ptr %10, align 8
%32 = load ptr, ptr %6, align 8
%33 = load ptr, ptr %8, align 8
%34 = load i64, ptr %10, align 8
%35 = call i32 @strncpy(ptr noundef %32, ptr noundef %33, i64 noundef %34)
%36 = load ptr, ptr %6, align 8
%37 = load i64, ptr %10, align 8
%38 = getelementptr inbounds i8, ptr %36, i64 %37
store i8 0, ptr %38, align 1
%39 = load ptr, ptr %6, align 8
%40 = load i64, ptr %7, align 8
%41 = call i64 @strnlen(ptr noundef %39, i64 noundef %40)
store i64 %41, ptr %5, align 8
br label %42
42: ; preds = %30, %19
%43 = load i64, ptr %5, align 8
ret i64 %43
}
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @strnlen(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmppym5nh26.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strncpy_s(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
%11 = load ptr, ptr %6, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %19
13: ; preds = %4
%14 = load ptr, ptr %8, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i64, ptr %7, align 8
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %16, %13, %4
store i64 0, ptr %5, align 8
br label %42
20: ; preds = %16
%21 = load i64, ptr %7, align 8
%22 = sub i64 %21, 1
%23 = load i64, ptr %9, align 8
%24 = icmp ult i64 %22, %23
br i1 %24, label %25, label %28
25: ; preds = %20
%26 = load i64, ptr %7, align 8
%27 = sub i64 %26, 1
br label %30
28: ; preds = %20
%29 = load i64, ptr %9, align 8
br label %30
30: ; preds = %28, %25
%31 = phi i64 [ %27, %25 ], [ %29, %28 ]
store i64 %31, ptr %10, align 8
%32 = load ptr, ptr %6, align 8
%33 = load ptr, ptr %8, align 8
%34 = load i64, ptr %10, align 8
%35 = call i32 @strncpy(ptr noundef %32, ptr noundef %33, i64 noundef %34)
%36 = load ptr, ptr %6, align 8
%37 = load i64, ptr %10, align 8
%38 = getelementptr inbounds i8, ptr %36, i64 %37
store i8 0, ptr %38, align 1
%39 = load ptr, ptr %6, align 8
%40 = load i64, ptr %7, align 8
%41 = call i64 @strnlen(ptr noundef %39, i64 noundef %40)
store i64 %41, ptr %5, align 8
br label %42
42: ; preds = %30, %19
%43 = load i64, ptr %5, align 8
ret i64 %43
}
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @strnlen(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo6dne4lf.c'
source_filename = "/tmp/tmpo6dne4lf.c"
target datalayout = "e-m:e-p270: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 [35 x i8] c"Error: %d bit width not supported\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @determine_addr_signal(i32 noundef %0) #0 {
%2 = alloca i8, align 1
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
switch i32 %4, label %8 [
i32 1, label %5
i32 2, label %6
i32 4, label %7
]
5: ; preds = %1
store i8 1, ptr %2, align 1
br label %13
6: ; preds = %1
store i8 1, ptr %2, align 1
br label %13
7: ; preds = %1
store i8 1, ptr %2, align 1
br label %13
8: ; preds = %1
%9 = load i32, ptr %3, align 4
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %9)
%11 = load i32, ptr @EXIT_SUCCESS, align 4
%12 = call i32 @exit(i32 noundef %11) #3
unreachable
13: ; preds = %7, %6, %5
%14 = load i8, ptr %2, align 1
ret i8 %14
}
declare i32 @printf(ptr noundef, i32 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/tmpo6dne4lf.c"
target datalayout = "e-m:e-p270: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 [35 x i8] c"Error: %d bit width not supported\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @determine_addr_signal(i32 noundef %0) #0 {
%2 = alloca i8, align 1
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
switch i32 %4, label %8 [
i32 1, label %5
i32 2, label %6
i32 4, label %7
]
5: ; preds = %1
store i8 1, ptr %2, align 1
br label %13
6: ; preds = %1
store i8 1, ptr %2, align 1
br label %13
7: ; preds = %1
store i8 1, ptr %2, align 1
br label %13
8: ; preds = %1
%9 = load i32, ptr %3, align 4
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %9)
%11 = load i32, ptr @EXIT_SUCCESS, align 4
%12 = call i32 @exit(i32 noundef %11) #3
unreachable
13: ; preds = %7, %6, %5
%14 = load i8, ptr %2, align 1
ret i8 %14
}
declare i32 @printf(ptr noundef, i32 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/tmpgnma_7de.c'
source_filename = "/tmp/tmpgnma_7de.c"
target datalayout = "e-m:e-p270: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 @copy_tm_to_TM64(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load ptr, ptr %4, align 8
%9 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 4)
br label %14
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %3, align 8
%13 = call i32 @memcpy(ptr noundef %11, ptr noundef %12, i32 noundef 4)
br label %14
14: ; preds = %10, %7
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, 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/tmpgnma_7de.c"
target datalayout = "e-m:e-p270: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 @copy_tm_to_TM64(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load ptr, ptr %4, align 8
%9 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 4)
br label %14
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %3, align 8
%13 = call i32 @memcpy(ptr noundef %11, ptr noundef %12, i32 noundef 4)
br label %14
14: ; preds = %10, %7
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, 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/tmpk_mblavl.c'
source_filename = "/tmp/tmpk_mblavl.c"
target datalayout = "e-m:e-p270: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.FillBase64Area.Tbl = private unnamed_addr constant [65 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @FillBase64Area(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%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 [20 x i32], align 16
%9 = alloca [65 x i8], align 16
store ptr %0, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.FillBase64Area.Tbl, i64 65, i1 false)
%10 = getelementptr inbounds [20 x i32], ptr %8, i64 0, i64 0
%11 = call i32 @FillClientVersionArea(ptr noundef %10)
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %12
12: ; preds = %15, %1
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %13, 24
br i1 %14, label %15, label %82
15: ; preds = %12
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %6, align 4
%18 = sext i32 %16 to i64
%19 = getelementptr inbounds [20 x i32], ptr %8, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %6, align 4
%23 = sext i32 %21 to i64
%24 = getelementptr inbounds [20 x i32], ptr %8, i64 0, i64 %23
%25 = load i32, ptr %24, align 4
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
%28 = sext i32 %26 to i64
%29 = getelementptr inbounds [20 x i32], ptr %8, i64 0, i64 %28
%30 = load i32, ptr %29, align 4
store i32 %30, ptr %5, align 4
%31 = load i32, ptr %3, align 4
%32 = and i32 %31, 252
%33 = ashr i32 %32, 2
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [65 x i8], ptr %9, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = load ptr, ptr %2, align 8
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds i8, ptr %37, i64 %40
store i8 %36, ptr %41, align 1
%42 = load i32, ptr %3, align 4
%43 = and i32 %42, 3
%44 = shl i32 %43, 4
%45 = load i32, ptr %4, align 4
%46 = and i32 %45, 240
%47 = ashr i32 %46, 4
%48 = or i32 %44, %47
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [65 x i8], ptr %9, i64 0, i64 %49
%51 = load i8, ptr %50, align 1
%52 = load ptr, ptr %2, align 8
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %7, align 4
%55 = sext i32 %53 to i64
%56 = getelementptr inbounds i8, ptr %52, i64 %55
store i8 %51, ptr %56, align 1
%57 = load i32, ptr %4, align 4
%58 = and i32 %57, 15
%59 = shl i32 %58, 2
%60 = load i32, ptr %5, align 4
%61 = and i32 %60, 192
%62 = ashr i32 %61, 6
%63 = or i32 %59, %62
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [65 x i8], ptr %9, i64 0, i64 %64
%66 = load i8, ptr %65, align 1
%67 = load ptr, ptr %2, align 8
%68 = load i32, ptr %7, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %7, align 4
%70 = sext i32 %68 to i64
%71 = getelementptr inbounds i8, ptr %67, i64 %70
store i8 %66, ptr %71, align 1
%72 = load i32, ptr %5, align 4
%73 = and i32 %72, 63
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [65 x i8], ptr %9, i64 0, i64 %74
%76 = load i8, ptr %75, align 1
%77 = load ptr, ptr %2, align 8
%78 = load i32, ptr %7, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %7, align 4
%80 = sext i32 %78 to i64
%81 = getelementptr inbounds i8, ptr %77, i64 %80
store i8 %76, ptr %81, align 1
br label %12, !llvm.loop !6
82: ; preds = %12
%83 = load i32, ptr %6, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %6, align 4
%85 = sext i32 %83 to i64
%86 = getelementptr inbounds [20 x i32], ptr %8, i64 0, i64 %85
%87 = load i32, ptr %86, align 4
store i32 %87, ptr %3, align 4
%88 = load i32, ptr %6, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %6, align 4
%90 = sext i32 %88 to i64
%91 = getelementptr inbounds [20 x i32], ptr %8, i64 0, i64 %90
%92 = load i32, ptr %91, align 4
store i32 %92, ptr %4, align 4
%93 = load i32, ptr %3, align 4
%94 = and i32 %93, 252
%95 = ashr i32 %94, 2
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [65 x i8], ptr %9, i64 0, i64 %96
%98 = load i8, ptr %97, align 1
%99 = load ptr, ptr %2, align 8
%100 = getelementptr inbounds i8, ptr %99, i64 24
store i8 %98, ptr %100, align 1
%101 = load i32, ptr %3, align 4
%102 = and i32 %101, 3
%103 = shl i32 %102, 4
%104 = load i32, ptr %4, align 4
%105 = and i32 %104, 240
%106 = ashr i32 %105, 4
%107 = or i32 %103, %106
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [65 x i8], ptr %9, i64 0, i64 %108
%110 = load i8, ptr %109, align 1
%111 = load ptr, ptr %2, align 8
%112 = getelementptr inbounds i8, ptr %111, i64 25
store i8 %110, ptr %112, align 1
%113 = load i32, ptr %4, align 4
%114 = and i32 %113, 15
%115 = shl i32 %114, 2
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [65 x i8], ptr %9, i64 0, i64 %116
%118 = load i8, ptr %117, align 1
%119 = load ptr, ptr %2, align 8
%120 = getelementptr inbounds i8, ptr %119, i64 26
store i8 %118, ptr %120, align 1
%121 = load ptr, ptr %2, align 8
%122 = getelementptr inbounds i8, ptr %121, i64 27
store i8 61, ptr %122, align 1
ret void
}
; 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 @FillClientVersionArea(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk_mblavl.c"
target datalayout = "e-m:e-p270: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.FillBase64Area.Tbl = private unnamed_addr constant [65 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @FillBase64Area(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%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 [20 x i32], align 16
%9 = alloca [65 x i8], align 16
store ptr %0, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.FillBase64Area.Tbl, i64 65, i1 false)
%10 = getelementptr inbounds [20 x i32], ptr %8, i64 0, i64 0
%11 = call i32 @FillClientVersionArea(ptr noundef %10)
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 24
br i1 %13, label %.lr.ph, label %83
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %14
%15 = load i32, ptr %6, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %6, align 4
%17 = sext i32 %15 to i64
%18 = getelementptr inbounds [20 x i32], ptr %8, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %6, align 4
%22 = sext i32 %20 to i64
%23 = getelementptr inbounds [20 x i32], ptr %8, i64 0, i64 %22
%24 = load i32, ptr %23, align 4
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %6, align 4
%27 = sext i32 %25 to i64
%28 = getelementptr inbounds [20 x i32], ptr %8, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
store i32 %29, ptr %5, align 4
%30 = load i32, ptr %3, align 4
%31 = and i32 %30, 252
%32 = ashr i32 %31, 2
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [65 x i8], ptr %9, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = load ptr, ptr %2, align 8
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %7, align 4
%39 = sext i32 %37 to i64
%40 = getelementptr inbounds i8, ptr %36, i64 %39
store i8 %35, ptr %40, align 1
%41 = load i32, ptr %3, align 4
%42 = and i32 %41, 3
%43 = shl i32 %42, 4
%44 = load i32, ptr %4, align 4
%45 = and i32 %44, 240
%46 = ashr i32 %45, 4
%47 = or i32 %43, %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [65 x i8], ptr %9, i64 0, i64 %48
%50 = load i8, ptr %49, align 1
%51 = load ptr, ptr %2, align 8
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %7, align 4
%54 = sext i32 %52 to i64
%55 = getelementptr inbounds i8, ptr %51, i64 %54
store i8 %50, ptr %55, align 1
%56 = load i32, ptr %4, align 4
%57 = and i32 %56, 15
%58 = shl i32 %57, 2
%59 = load i32, ptr %5, align 4
%60 = and i32 %59, 192
%61 = ashr i32 %60, 6
%62 = or i32 %58, %61
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [65 x i8], ptr %9, i64 0, i64 %63
%65 = load i8, ptr %64, align 1
%66 = load ptr, ptr %2, align 8
%67 = load i32, ptr %7, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %7, align 4
%69 = sext i32 %67 to i64
%70 = getelementptr inbounds i8, ptr %66, i64 %69
store i8 %65, ptr %70, align 1
%71 = load i32, ptr %5, align 4
%72 = and i32 %71, 63
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [65 x i8], ptr %9, i64 0, i64 %73
%75 = load i8, ptr %74, align 1
%76 = load ptr, ptr %2, align 8
%77 = load i32, ptr %7, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %7, align 4
%79 = sext i32 %77 to i64
%80 = getelementptr inbounds i8, ptr %76, i64 %79
store i8 %75, ptr %80, align 1
%81 = load i32, ptr %7, align 4
%82 = icmp slt i32 %81, 24
br i1 %82, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %83
83: ; preds = %._crit_edge, %1
%84 = load i32, ptr %6, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %6, align 4
%86 = sext i32 %84 to i64
%87 = getelementptr inbounds [20 x i32], ptr %8, i64 0, i64 %86
%88 = load i32, ptr %87, align 4
store i32 %88, ptr %3, align 4
%89 = load i32, ptr %6, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %6, align 4
%91 = sext i32 %89 to i64
%92 = getelementptr inbounds [20 x i32], ptr %8, i64 0, i64 %91
%93 = load i32, ptr %92, align 4
store i32 %93, ptr %4, align 4
%94 = load i32, ptr %3, align 4
%95 = and i32 %94, 252
%96 = ashr i32 %95, 2
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [65 x i8], ptr %9, i64 0, i64 %97
%99 = load i8, ptr %98, align 1
%100 = load ptr, ptr %2, align 8
%101 = getelementptr inbounds i8, ptr %100, i64 24
store i8 %99, ptr %101, align 1
%102 = load i32, ptr %3, align 4
%103 = and i32 %102, 3
%104 = shl i32 %103, 4
%105 = load i32, ptr %4, align 4
%106 = and i32 %105, 240
%107 = ashr i32 %106, 4
%108 = or i32 %104, %107
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [65 x i8], ptr %9, i64 0, i64 %109
%111 = load i8, ptr %110, align 1
%112 = load ptr, ptr %2, align 8
%113 = getelementptr inbounds i8, ptr %112, i64 25
store i8 %111, ptr %113, align 1
%114 = load i32, ptr %4, align 4
%115 = and i32 %114, 15
%116 = shl i32 %115, 2
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [65 x i8], ptr %9, i64 0, i64 %117
%119 = load i8, ptr %118, align 1
%120 = load ptr, ptr %2, align 8
%121 = getelementptr inbounds i8, ptr %120, i64 26
store i8 %119, ptr %121, align 1
%122 = load ptr, ptr %2, align 8
%123 = getelementptr inbounds i8, ptr %122, i64 27
store i8 61, ptr %123, align 1
ret void
}
; 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 @FillClientVersionArea(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0m_7pdgl.c'
source_filename = "/tmp/tmp0m_7pdgl.c"
target datalayout = "e-m:e-p270: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 @extend_env(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call ptr @cons(ptr noundef %7, ptr noundef %8)
%10 = load ptr, ptr %6, align 8
%11 = call ptr @cons(ptr noundef %9, ptr noundef %10)
ret ptr %11
}
declare ptr @cons(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/tmp0m_7pdgl.c"
target datalayout = "e-m:e-p270: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 @extend_env(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call ptr @cons(ptr noundef %7, ptr noundef %8)
%10 = load ptr, ptr %6, align 8
%11 = call ptr @cons(ptr noundef %9, ptr noundef %10)
ret ptr %11
}
declare ptr @cons(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/tmp5nohzs8o.c'
source_filename = "/tmp/tmp5nohzs8o.c"
target datalayout = "e-m:e-p270: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"\\t\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\\b\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\\\\\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
br label %3
3: ; preds = %16, %0
%4 = call i32 (...) @getchar()
store i32 %4, ptr %2, align 4
switch i32 %4, label %12 [
i32 9, label %5
i32 8, label %7
i32 92, label %9
i32 128, label %11
]
5: ; preds = %3
%6 = call i32 @printf(ptr noundef @.str)
br label %15
7: ; preds = %3
%8 = call i32 @printf(ptr noundef @.str.1)
br label %15
9: ; preds = %3
%10 = call i32 @printf(ptr noundef @.str.2)
br label %15
11: ; preds = %3
br label %15
12: ; preds = %3
%13 = load i32, ptr %2, align 4
%14 = call i32 @putchar(i32 noundef %13)
br label %15
15: ; preds = %12, %11, %9, %7, %5
br label %16
16: ; preds = %15
%17 = load i32, ptr %2, align 4
%18 = icmp ne i32 %17, 128
br i1 %18, label %3, label %19, !llvm.loop !6
19: ; preds = %16
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @putchar(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/tmp5nohzs8o.c"
target datalayout = "e-m:e-p270: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"\\t\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\\b\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\\\\\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
br label %3
3: ; preds = %16, %0
%4 = call i32 (...) @getchar()
store i32 %4, ptr %2, align 4
switch i32 %4, label %12 [
i32 9, label %5
i32 8, label %7
i32 92, label %9
i32 128, label %11
]
5: ; preds = %3
%6 = call i32 @printf(ptr noundef @.str)
br label %15
7: ; preds = %3
%8 = call i32 @printf(ptr noundef @.str.1)
br label %15
9: ; preds = %3
%10 = call i32 @printf(ptr noundef @.str.2)
br label %15
11: ; preds = %3
br label %15
12: ; preds = %3
%13 = load i32, ptr %2, align 4
%14 = call i32 @putchar(i32 noundef %13)
br label %15
15: ; preds = %12, %11, %9, %7, %5
br label %16
16: ; preds = %15
%17 = load i32, ptr %2, align 4
%18 = icmp ne i32 %17, 128
br i1 %18, label %3, label %19, !llvm.loop !6
19: ; preds = %16
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @putchar(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/tmp1ubtaun5.c'
source_filename = "/tmp/tmp1ubtaun5.c"
target datalayout = "e-m:e-p270: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/tmp1ubtaun5.c"
target datalayout = "e-m:e-p270: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/tmpif7cd22_.c'
source_filename = "/tmp/tmpif7cd22_.c"
target datalayout = "e-m:e-p270: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 @spline_monotonic(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
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, 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
%20 = load ptr, ptr %8, align 8
%21 = getelementptr inbounds double, ptr %20, i64 0
store double 0.000000e+00, ptr %21, align 8
%22 = load ptr, ptr %8, align 8
%23 = load i32, ptr %5, align 4
%24 = sub nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds double, ptr %22, i64 %25
store double 0.000000e+00, ptr %26, align 8
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %27, 3
br i1 %28, label %29, label %30
29: ; preds = %4
br label %171
30: ; preds = %4
%31 = load ptr, ptr %7, align 8
%32 = getelementptr inbounds double, ptr %31, i64 1
%33 = load double, ptr %32, align 8
%34 = load ptr, ptr %7, align 8
%35 = getelementptr inbounds double, ptr %34, i64 0
%36 = load double, ptr %35, align 8
%37 = fsub double %33, %36
%38 = load ptr, ptr %6, align 8
%39 = getelementptr inbounds double, ptr %38, i64 1
%40 = load double, ptr %39, align 8
%41 = load ptr, ptr %6, align 8
%42 = getelementptr inbounds double, ptr %41, i64 0
%43 = load double, ptr %42, align 8
%44 = fsub double %40, %43
%45 = fdiv double %37, %44
store double %45, ptr %16, align 8
store i32 1, ptr %9, align 4
br label %46
46: ; preds = %168, %30
%47 = load i32, ptr %9, align 4
%48 = load i32, ptr %5, align 4
%49 = sub nsw i32 %48, 2
%50 = icmp sle i32 %47, %49
br i1 %50, label %51, label %171
51: ; preds = %46
%52 = load double, ptr %16, align 8
store double %52, ptr %15, align 8
%53 = load ptr, ptr %7, align 8
%54 = load i32, ptr %9, align 4
%55 = add nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, ptr %53, i64 %56
%58 = load double, ptr %57, align 8
%59 = load ptr, ptr %7, align 8
%60 = load i32, ptr %9, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double, ptr %59, i64 %61
%63 = load double, ptr %62, align 8
%64 = fsub double %58, %63
%65 = load ptr, ptr %6, align 8
%66 = load i32, ptr %9, align 4
%67 = add nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, ptr %65, i64 %68
%70 = load double, ptr %69, align 8
%71 = load ptr, ptr %6, align 8
%72 = load i32, ptr %9, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds double, ptr %71, i64 %73
%75 = load double, ptr %74, align 8
%76 = fsub double %70, %75
%77 = fdiv double %64, %76
store double %77, ptr %16, align 8
%78 = load double, ptr %15, align 8
%79 = load double, ptr %16, align 8
%80 = fmul double %78, %79
%81 = fcmp ole double %80, 0.000000e+00
br i1 %81, label %82, label %87
82: ; preds = %51
%83 = load ptr, ptr %8, align 8
%84 = load i32, ptr %9, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, ptr %83, i64 %85
store double 0.000000e+00, ptr %86, align 8
br label %167
87: ; preds = %51
%88 = load ptr, ptr %6, align 8
%89 = load i32, ptr %9, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, ptr %88, i64 %90
%92 = load double, ptr %91, align 8
%93 = load ptr, ptr %6, align 8
%94 = load i32, ptr %9, align 4
%95 = sub nsw i32 %94, 1
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds double, ptr %93, i64 %96
%98 = load double, ptr %97, align 8
%99 = fsub double %92, %98
store double %99, ptr %17, align 8
%100 = load ptr, ptr %6, align 8
%101 = load i32, ptr %9, align 4
%102 = add nsw i32 %101, 1
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double, ptr %100, i64 %103
%105 = load double, ptr %104, align 8
%106 = load ptr, ptr %6, align 8
%107 = load i32, ptr %9, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds double, ptr %106, i64 %108
%110 = load double, ptr %109, align 8
%111 = fsub double %105, %110
store double %111, ptr %18, align 8
%112 = load double, ptr %15, align 8
%113 = load double, ptr %18, align 8
%114 = load double, ptr %16, align 8
%115 = load double, ptr %17, align 8
%116 = fmul double %114, %115
%117 = call double @llvm.fmuladd.f64(double %112, double %113, double %116)
%118 = load double, ptr %17, align 8
%119 = load double, ptr %18, align 8
%120 = fadd double %118, %119
%121 = fdiv double %117, %120
store double %121, ptr %11, align 8
%122 = load double, ptr %11, align 8
%123 = call double @llvm.fabs.f64(double %122)
%124 = load double, ptr %15, align 8
%125 = call double @llvm.fabs.f64(double %124)
%126 = fmul double 2.000000e+00, %125
%127 = fcmp ogt double %123, %126
br i1 %127, label %135, label %128
128: ; preds = %87
%129 = load double, ptr %11, align 8
%130 = call double @llvm.fabs.f64(double %129)
%131 = load double, ptr %16, align 8
%132 = call double @llvm.fabs.f64(double %131)
%133 = fmul double 2.000000e+00, %132
%134 = fcmp ogt double %130, %133
br i1 %134, label %135, label %160
135: ; preds = %128, %87
%136 = load double, ptr %15, align 8
%137 = fcmp ogt double %136, 0.000000e+00
%138 = zext i1 %137 to i64
%139 = select i1 %137, double 1.000000e+00, double -1.000000e+00
store double %139, ptr %19, align 8
%140 = load double, ptr %19, align 8
%141 = fmul double 2.000000e+00, %140
%142 = load double, ptr %15, align 8
%143 = call double @llvm.fabs.f64(double %142)
%144 = load double, ptr %16, align 8
%145 = call double @llvm.fabs.f64(double %144)
%146 = fcmp olt double %143, %145
br i1 %146, label %147, label %150
147: ; preds = %135
%148 = load double, ptr %15, align 8
%149 = call double @llvm.fabs.f64(double %148)
br label %153
150: ; preds = %135
%151 = load double, ptr %16, align 8
%152 = call double @llvm.fabs.f64(double %151)
br label %153
153: ; preds = %150, %147
%154 = phi double [ %149, %147 ], [ %152, %150 ]
%155 = fmul double %141, %154
%156 = load ptr, ptr %8, align 8
%157 = load i32, ptr %9, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds double, ptr %156, i64 %158
store double %155, ptr %159, align 8
br label %166
160: ; preds = %128
%161 = load double, ptr %11, align 8
%162 = load ptr, ptr %8, align 8
%163 = load i32, ptr %9, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds double, ptr %162, i64 %164
store double %161, ptr %165, align 8
br label %166
166: ; preds = %160, %153
br label %167
167: ; preds = %166, %82
br label %168
168: ; preds = %167
%169 = load i32, ptr %9, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %9, align 4
br label %46, !llvm.loop !6
171: ; preds = %29, %46
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #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 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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpif7cd22_.c"
target datalayout = "e-m:e-p270: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 @spline_monotonic(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
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, 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
%20 = load ptr, ptr %8, align 8
%21 = getelementptr inbounds double, ptr %20, i64 0
store double 0.000000e+00, ptr %21, align 8
%22 = load ptr, ptr %8, align 8
%23 = load i32, ptr %5, align 4
%24 = sub nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds double, ptr %22, i64 %25
store double 0.000000e+00, ptr %26, align 8
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %27, 3
br i1 %28, label %29, label %30
29: ; preds = %4
br label %174
30: ; preds = %4
%31 = load ptr, ptr %7, align 8
%32 = getelementptr inbounds double, ptr %31, i64 1
%33 = load double, ptr %32, align 8
%34 = load ptr, ptr %7, align 8
%35 = getelementptr inbounds double, ptr %34, i64 0
%36 = load double, ptr %35, align 8
%37 = fsub double %33, %36
%38 = load ptr, ptr %6, align 8
%39 = getelementptr inbounds double, ptr %38, i64 1
%40 = load double, ptr %39, align 8
%41 = load ptr, ptr %6, align 8
%42 = getelementptr inbounds double, ptr %41, i64 0
%43 = load double, ptr %42, align 8
%44 = fsub double %40, %43
%45 = fdiv double %37, %44
store double %45, ptr %16, align 8
store i32 1, ptr %9, align 4
%46 = load i32, ptr %9, align 4
%47 = load i32, ptr %5, align 4
%48 = sub nsw i32 %47, 2
%49 = icmp sle i32 %46, %48
br i1 %49, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %30
br label %50
50: ; preds = %.lr.ph, %167
%51 = load double, ptr %16, align 8
store double %51, ptr %15, align 8
%52 = load ptr, ptr %7, align 8
%53 = load i32, ptr %9, align 4
%54 = add nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, ptr %52, i64 %55
%57 = load double, ptr %56, align 8
%58 = load ptr, ptr %7, align 8
%59 = load i32, ptr %9, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, ptr %58, i64 %60
%62 = load double, ptr %61, align 8
%63 = fsub double %57, %62
%64 = load ptr, ptr %6, align 8
%65 = load i32, ptr %9, align 4
%66 = add nsw i32 %65, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, ptr %64, i64 %67
%69 = load double, ptr %68, align 8
%70 = load ptr, ptr %6, align 8
%71 = load i32, ptr %9, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, ptr %70, i64 %72
%74 = load double, ptr %73, align 8
%75 = fsub double %69, %74
%76 = fdiv double %63, %75
store double %76, ptr %16, align 8
%77 = load double, ptr %15, align 8
%78 = load double, ptr %16, align 8
%79 = fmul double %77, %78
%80 = fcmp ole double %79, 0.000000e+00
br i1 %80, label %81, label %86
81: ; preds = %50
%82 = load ptr, ptr %8, align 8
%83 = load i32, ptr %9, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, ptr %82, i64 %84
store double 0.000000e+00, ptr %85, align 8
br label %166
86: ; preds = %50
%87 = load ptr, ptr %6, align 8
%88 = load i32, ptr %9, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, ptr %87, i64 %89
%91 = load double, ptr %90, align 8
%92 = load ptr, ptr %6, align 8
%93 = load i32, ptr %9, align 4
%94 = sub nsw i32 %93, 1
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, ptr %92, i64 %95
%97 = load double, ptr %96, align 8
%98 = fsub double %91, %97
store double %98, ptr %17, align 8
%99 = load ptr, ptr %6, align 8
%100 = load i32, ptr %9, align 4
%101 = add nsw i32 %100, 1
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, ptr %99, i64 %102
%104 = load double, ptr %103, align 8
%105 = load ptr, ptr %6, align 8
%106 = load i32, ptr %9, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, ptr %105, i64 %107
%109 = load double, ptr %108, align 8
%110 = fsub double %104, %109
store double %110, ptr %18, align 8
%111 = load double, ptr %15, align 8
%112 = load double, ptr %18, align 8
%113 = load double, ptr %16, align 8
%114 = load double, ptr %17, align 8
%115 = fmul double %113, %114
%116 = call double @llvm.fmuladd.f64(double %111, double %112, double %115)
%117 = load double, ptr %17, align 8
%118 = load double, ptr %18, align 8
%119 = fadd double %117, %118
%120 = fdiv double %116, %119
store double %120, ptr %11, align 8
%121 = load double, ptr %11, align 8
%122 = call double @llvm.fabs.f64(double %121)
%123 = load double, ptr %15, align 8
%124 = call double @llvm.fabs.f64(double %123)
%125 = fmul double 2.000000e+00, %124
%126 = fcmp ogt double %122, %125
br i1 %126, label %134, label %127
127: ; preds = %86
%128 = load double, ptr %11, align 8
%129 = call double @llvm.fabs.f64(double %128)
%130 = load double, ptr %16, align 8
%131 = call double @llvm.fabs.f64(double %130)
%132 = fmul double 2.000000e+00, %131
%133 = fcmp ogt double %129, %132
br i1 %133, label %134, label %159
134: ; preds = %127, %86
%135 = load double, ptr %15, align 8
%136 = fcmp ogt double %135, 0.000000e+00
%137 = zext i1 %136 to i64
%138 = select i1 %136, double 1.000000e+00, double -1.000000e+00
store double %138, ptr %19, align 8
%139 = load double, ptr %19, align 8
%140 = fmul double 2.000000e+00, %139
%141 = load double, ptr %15, align 8
%142 = call double @llvm.fabs.f64(double %141)
%143 = load double, ptr %16, align 8
%144 = call double @llvm.fabs.f64(double %143)
%145 = fcmp olt double %142, %144
br i1 %145, label %146, label %149
146: ; preds = %134
%147 = load double, ptr %15, align 8
%148 = call double @llvm.fabs.f64(double %147)
br label %152
149: ; preds = %134
%150 = load double, ptr %16, align 8
%151 = call double @llvm.fabs.f64(double %150)
br label %152
152: ; preds = %149, %146
%153 = phi double [ %148, %146 ], [ %151, %149 ]
%154 = fmul double %140, %153
%155 = load ptr, ptr %8, align 8
%156 = load i32, ptr %9, align 4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds double, ptr %155, i64 %157
store double %154, ptr %158, align 8
br label %165
159: ; preds = %127
%160 = load double, ptr %11, align 8
%161 = load ptr, ptr %8, align 8
%162 = load i32, ptr %9, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds double, ptr %161, i64 %163
store double %160, ptr %164, align 8
br label %165
165: ; preds = %159, %152
br label %166
166: ; preds = %165, %81
br label %167
167: ; preds = %166
%168 = load i32, ptr %9, align 4
%169 = add nsw i32 %168, 1
store i32 %169, ptr %9, align 4
%170 = load i32, ptr %9, align 4
%171 = load i32, ptr %5, align 4
%172 = sub nsw i32 %171, 2
%173 = icmp sle i32 %170, %172
br i1 %173, label %50, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %167
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %30
br label %174
174: ; preds = %.loopexit, %29
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #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 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"}
|
; ModuleID = '/tmp/tmprx1kl_ml.c'
source_filename = "/tmp/tmprx1kl_ml.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"Enter n: \00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"n > 0 !\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c"Enter %d numbers : \00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"Enter number to search: \00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"yes\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"no\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; 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 @check_intInput(ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%12 = load i32, ptr @EXIT_FAILURE, align 4
%13 = call i32 @exit(i32 noundef %12) #4
unreachable
14: ; preds = %0
%15 = load i32, ptr %2, align 4
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %3, align 8
%18 = alloca i32, i64 %16, align 16
store i64 %16, ptr %4, align 8
%19 = load i32, ptr %2, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %19)
%21 = load i32, ptr %2, align 4
%22 = call i32 @fill_array(ptr noundef %18, i32 noundef %21)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%24 = call i32 @check_intInput(ptr noundef %5)
%25 = load i32, ptr %2, align 4
%26 = load i32, ptr %5, align 4
%27 = call i64 @is_exists(ptr noundef %18, i32 noundef %25, i32 noundef %26)
%28 = icmp ne i64 %27, 0
%29 = zext i1 %28 to i64
%30 = select i1 %28, ptr @.str.4, ptr @.str.5
%31 = call i32 (ptr, ...) @printf(ptr noundef %30)
%32 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %32, 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 @check_intInput(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
declare i32 @fill_array(ptr noundef, i32 noundef) #1
declare i64 @is_exists(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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 = { nocallback nofree nosync nounwind willreturn }
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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmprx1kl_ml.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"Enter n: \00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"n > 0 !\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c"Enter %d numbers : \00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"Enter number to search: \00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"yes\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"no\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; 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 @check_intInput(ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%12 = load i32, ptr @EXIT_FAILURE, align 4
%13 = call i32 @exit(i32 noundef %12) #4
unreachable
14: ; preds = %0
%15 = load i32, ptr %2, align 4
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %3, align 8
%18 = alloca i32, i64 %16, align 16
store i64 %16, ptr %4, align 8
%19 = load i32, ptr %2, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %19)
%21 = load i32, ptr %2, align 4
%22 = call i32 @fill_array(ptr noundef %18, i32 noundef %21)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%24 = call i32 @check_intInput(ptr noundef %5)
%25 = load i32, ptr %2, align 4
%26 = load i32, ptr %5, align 4
%27 = call i64 @is_exists(ptr noundef %18, i32 noundef %25, i32 noundef %26)
%28 = icmp ne i64 %27, 0
%29 = zext i1 %28 to i64
%30 = select i1 %28, ptr @.str.4, ptr @.str.5
%31 = call i32 (ptr, ...) @printf(ptr noundef %30)
%32 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %32, 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 @check_intInput(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
declare i32 @fill_array(ptr noundef, i32 noundef) #1
declare i64 @is_exists(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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 = { nocallback nofree nosync nounwind willreturn }
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"}
|
; ModuleID = '/tmp/tmpna7pt7pz.c'
source_filename = "/tmp/tmpna7pt7pz.c"
target datalayout = "e-m:e-p270: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 [168 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/ctype/test_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalpha should be 0 for 0xa1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0xa1() #0 {
%1 = call i64 @isalpha(i32 noundef 161)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 810, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(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/tmpna7pt7pz.c"
target datalayout = "e-m:e-p270: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 [168 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/ctype/test_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalpha should be 0 for 0xa1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0xa1() #0 {
%1 = call i64 @isalpha(i32 noundef 161)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 810, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(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/tmpk2hpxuke.c'
source_filename = "/tmp/tmpk2hpxuke.c"
target datalayout = "e-m:e-p270: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 @phy_loopback_en() #0 {
%1 = call i32 @phy_write(i32 noundef 0, i32 noundef 16384)
br label %2
2: ; preds = %6, %0
%3 = call i32 @phy_read(i32 noundef 1)
%4 = and i32 %3, 16
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %2
br label %2, !llvm.loop !6
7: ; preds = %2
ret void
}
declare i32 @phy_write(i32 noundef, i32 noundef) #1
declare i32 @phy_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/tmpk2hpxuke.c"
target datalayout = "e-m:e-p270: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 @phy_loopback_en() #0 {
%1 = call i32 @phy_write(i32 noundef 0, i32 noundef 16384)
br label %2
2: ; preds = %2, %0
%3 = call i32 @phy_read(i32 noundef 1)
%4 = and i32 %3, 16
%5 = icmp ne i32 %4, 0
br i1 %5, label %2, label %6, !llvm.loop !6
6: ; preds = %2
ret void
}
declare i32 @phy_write(i32 noundef, i32 noundef) #1
declare i32 @phy_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/tmpi7x8r255.c'
source_filename = "/tmp/tmpi7x8r255.c"
target datalayout = "e-m:e-p270: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 @e_clc_accu() #0 {
%1 = call i32 (...) @e_clc()
ret void
}
declare i32 @e_clc(...) #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/tmpi7x8r255.c"
target datalayout = "e-m:e-p270: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 @e_clc_accu() #0 {
%1 = call i32 (...) @e_clc()
ret void
}
declare i32 @e_clc(...) #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/tmpipdu1fqs.c'
source_filename = "/tmp/tmpipdu1fqs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpipdu1fqs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpoki_yrts.c'
source_filename = "/tmp/tmpoki_yrts.c"
target datalayout = "e-m:e-p270: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 @fn_qtg_1_8_cl_48_57_65_91_97_122(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %19, %1
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 8
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = call i32 @fn_cl_48_57_65_91_97_122(ptr noundef %14)
store i32 %15, ptr %5, align 4
%16 = icmp ne i32 %15, -1
br label %17
17: ; preds = %10, %7
%18 = phi i1 [ false, %7 ], [ %16, %10 ]
br i1 %18, label %19, label %25
19: ; preds = %17
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, %20
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
br label %7, !llvm.loop !6
25: ; preds = %17
%26 = load i32, ptr %6, align 4
%27 = icmp sge i32 %26, 1
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = load i32, ptr %4, align 4
store i32 %29, ptr %2, align 4
br label %31
30: ; preds = %25
store i32 -1, ptr %2, align 4
br label %31
31: ; preds = %30, %28
%32 = load i32, ptr %2, align 4
ret i32 %32
}
declare i32 @fn_cl_48_57_65_91_97_122(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/tmpoki_yrts.c"
target datalayout = "e-m:e-p270: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 @fn_qtg_1_8_cl_48_57_65_91_97_122(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %19, %1
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 8
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = call i32 @fn_cl_48_57_65_91_97_122(ptr noundef %14)
store i32 %15, ptr %5, align 4
%16 = icmp ne i32 %15, -1
br label %17
17: ; preds = %10, %7
%18 = phi i1 [ false, %7 ], [ %16, %10 ]
br i1 %18, label %19, label %25
19: ; preds = %17
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, %20
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
br label %7, !llvm.loop !6
25: ; preds = %17
%26 = load i32, ptr %6, align 4
%27 = icmp sge i32 %26, 1
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = load i32, ptr %4, align 4
store i32 %29, ptr %2, align 4
br label %31
30: ; preds = %25
store i32 -1, ptr %2, align 4
br label %31
31: ; preds = %30, %28
%32 = load i32, ptr %2, align 4
ret i32 %32
}
declare i32 @fn_cl_48_57_65_91_97_122(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/tmpyxwxz5j6.c'
source_filename = "/tmp/tmpyxwxz5j6.c"
target datalayout = "e-m:e-p270: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.string1 = private unnamed_addr constant [10 x i8] c"123qweasdz", align 1
@.str = private unnamed_addr constant [26 x i8] c"before f3 strintg1 = %s;\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"after f3 string1 = %s;\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [10 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.main.string1, i64 10, i1 false)
%2 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @printf(ptr noundef @.str, ptr noundef %2)
%4 = call i32 @f3(ptr noundef %1)
%5 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 0
%6 = call i32 @printf(ptr noundef @.str.1, ptr noundef %5)
ret void
}
; 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, ptr noundef) #2
declare i32 @f3(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/tmpyxwxz5j6.c"
target datalayout = "e-m:e-p270: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.string1 = private unnamed_addr constant [10 x i8] c"123qweasdz", align 1
@.str = private unnamed_addr constant [26 x i8] c"before f3 strintg1 = %s;\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"after f3 string1 = %s;\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [10 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.main.string1, i64 10, i1 false)
%2 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @printf(ptr noundef @.str, ptr noundef %2)
%4 = call i32 @f3(ptr noundef %1)
%5 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 0
%6 = call i32 @printf(ptr noundef @.str.1, ptr noundef %5)
ret void
}
; 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, ptr noundef) #2
declare i32 @f3(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/tmponts2xaz.c'
source_filename = "/tmp/tmponts2xaz.c"
target datalayout = "e-m:e-p270: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 [20 x i8] c"Usage: ./qsort <N>\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"<N> must be greater than 2\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 i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 @exit(i32 noundef 0) #3
unreachable
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
store i32 %16, ptr %6, align 4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = call i32 @printf(ptr noundef @.str.1)
%20 = call i32 @exit(i32 noundef 0) #3
unreachable
21: ; preds = %12
%22 = load i32, ptr %6, align 4
%23 = call ptr @init_array(i32 noundef %22)
store ptr %23, ptr %5, align 8
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %6, align 4
%26 = sub nsw i32 %25, 1
%27 = call i32 @quicksort(ptr noundef %24, i32 noundef 0, i32 noundef %26)
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = call i32 @verify_array(ptr noundef %28, i32 noundef %29)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare ptr @init_array(i32 noundef) #1
declare i32 @quicksort(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @verify_array(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" }
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/tmponts2xaz.c"
target datalayout = "e-m:e-p270: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 [20 x i8] c"Usage: ./qsort <N>\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"<N> must be greater than 2\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 i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 @exit(i32 noundef 0) #3
unreachable
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
store i32 %16, ptr %6, align 4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = call i32 @printf(ptr noundef @.str.1)
%20 = call i32 @exit(i32 noundef 0) #3
unreachable
21: ; preds = %12
%22 = load i32, ptr %6, align 4
%23 = call ptr @init_array(i32 noundef %22)
store ptr %23, ptr %5, align 8
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %6, align 4
%26 = sub nsw i32 %25, 1
%27 = call i32 @quicksort(ptr noundef %24, i32 noundef 0, i32 noundef %26)
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = call i32 @verify_array(ptr noundef %28, i32 noundef %29)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare ptr @init_array(i32 noundef) #1
declare i32 @quicksort(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @verify_array(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" }
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/tmpfvmy1m5m.c'
source_filename = "/tmp/tmpfvmy1m5m.c"
target datalayout = "e-m:e-p270: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 [41 x i8] c"Integers should not be equal: %d %d; %s \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @clad_test_intneq(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp ne i32 %10, %11
%13 = zext i1 %12 to i32
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %7, align 4
%16 = load ptr, ptr %8, align 8
%17 = call ptr @clad_test_assert(ptr noundef %9, i32 noundef %13, ptr noundef @.str, i32 noundef %14, i32 noundef %15, ptr noundef %16)
ret ptr %17
}
declare ptr @clad_test_assert(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfvmy1m5m.c"
target datalayout = "e-m:e-p270: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 [41 x i8] c"Integers should not be equal: %d %d; %s \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @clad_test_intneq(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp ne i32 %10, %11
%13 = zext i1 %12 to i32
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %7, align 4
%16 = load ptr, ptr %8, align 8
%17 = call ptr @clad_test_assert(ptr noundef %9, i32 noundef %13, ptr noundef @.str, i32 noundef %14, i32 noundef %15, ptr noundef %16)
ret ptr %17
}
declare ptr @clad_test_assert(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmswm8s19.c'
source_filename = "/tmp/tmpmswm8s19.c"
target datalayout = "e-m:e-p270: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 @strncat(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%10 = load ptr, ptr %5, align 8
store ptr %10, ptr %8, align 8
br label %11
11: ; preds = %16, %3
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %5, align 8
%14 = load i8, ptr %13, align 1
%15 = icmp ne i8 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %11
br label %11, !llvm.loop !6
17: ; preds = %11
%18 = load ptr, ptr %6, align 8
store ptr %18, ptr %9, align 8
br label %19
19: ; preds = %38, %17
%20 = load ptr, ptr %6, align 8
%21 = load ptr, ptr %9, align 8
%22 = ptrtoint ptr %20 to i64
%23 = ptrtoint ptr %21 to i64
%24 = sub i64 %22, %23
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = icmp slt i64 %24, %26
br i1 %27, label %28, label %36
28: ; preds = %19
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %6, align 8
%31 = load i8, ptr %29, align 1
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %5, align 8
store i8 %31, ptr %32, align 1
%34 = sext i8 %31 to i32
%35 = icmp ne i32 %34, 0
br label %36
36: ; preds = %28, %19
%37 = phi i1 [ false, %19 ], [ %35, %28 ]
br i1 %37, label %38, label %39
38: ; preds = %36
br label %19, !llvm.loop !8
39: ; preds = %36
%40 = load ptr, ptr %4, align 8
ret ptr %40
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpmswm8s19.c"
target datalayout = "e-m:e-p270: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 @strncat(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%10 = load ptr, ptr %5, align 8
store ptr %10, ptr %8, align 8
br label %11
11: ; preds = %11, %3
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %5, align 8
%14 = load i8, ptr %13, align 1
%15 = icmp ne i8 %14, 0
br i1 %15, label %11, label %16, !llvm.loop !6
16: ; preds = %11
%17 = load ptr, ptr %6, align 8
store ptr %17, ptr %9, align 8
br label %18
18: ; preds = %35, %16
%19 = load ptr, ptr %6, align 8
%20 = load ptr, ptr %9, align 8
%21 = ptrtoint ptr %19 to i64
%22 = ptrtoint ptr %20 to i64
%23 = sub i64 %21, %22
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = icmp slt i64 %23, %25
br i1 %26, label %27, label %35
27: ; preds = %18
%28 = load ptr, ptr %6, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %6, align 8
%30 = load i8, ptr %28, align 1
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %5, align 8
store i8 %30, ptr %31, align 1
%33 = sext i8 %30 to i32
%34 = icmp ne i32 %33, 0
br label %35
35: ; preds = %27, %18
%36 = phi i1 [ false, %18 ], [ %34, %27 ]
br i1 %36, label %18, label %37, !llvm.loop !8
37: ; preds = %35
%38 = load ptr, ptr %4, align 8
ret ptr %38
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpns3c9y38.c'
source_filename = "/tmp/tmpns3c9y38.c"
target datalayout = "e-m:e-p270: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/tmpns3c9y38.c"
target datalayout = "e-m:e-p270: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/tmpd6r4i5ra.c'
source_filename = "/tmp/tmpd6r4i5ra.c"
target datalayout = "e-m:e-p270: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.cup = private unnamed_addr constant [4 x i32] [i32 0, i32 1, i32 0, i32 0], align 16
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = 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 [4 x i32], align 16
%5 = alloca [100 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.cup, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 100, i1 false)
%6 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
store i32 0, ptr %2, align 4
br label %8
8: ; preds = %46, %0
%9 = load i32, ptr %2, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 %10
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %49
15: ; preds = %8
%16 = load i32, ptr %2, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
switch i32 %20, label %45 [
i32 65, label %21
i32 66, label %29
i32 67, label %37
]
21: ; preds = %15
%22 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 1
%23 = load i32, ptr %22, align 4
store i32 %23, ptr %3, align 4
%24 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 2
%25 = load i32, ptr %24, align 8
%26 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 1
store i32 %25, ptr %26, align 4
%27 = load i32, ptr %3, align 4
%28 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 2
store i32 %27, ptr %28, align 8
br label %45
29: ; preds = %15
%30 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 2
%31 = load i32, ptr %30, align 8
store i32 %31, ptr %3, align 4
%32 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 3
%33 = load i32, ptr %32, align 4
%34 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 2
store i32 %33, ptr %34, align 8
%35 = load i32, ptr %3, align 4
%36 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 3
store i32 %35, ptr %36, align 4
br label %45
37: ; preds = %15
%38 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 1
%39 = load i32, ptr %38, align 4
store i32 %39, ptr %3, align 4
%40 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 3
%41 = load i32, ptr %40, align 4
%42 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 1
store i32 %41, ptr %42, align 4
%43 = load i32, ptr %3, align 4
%44 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 3
store i32 %43, ptr %44, align 4
br label %45
45: ; preds = %15, %37, %29, %21
br label %46
46: ; preds = %45
%47 = load i32, ptr %2, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %2, align 4
br label %8, !llvm.loop !6
49: ; preds = %8
store i32 1, ptr %2, align 4
br label %50
50: ; preds = %63, %49
%51 = load i32, ptr %2, align 4
%52 = icmp sle i32 %51, 3
br i1 %52, label %53, label %66
53: ; preds = %50
%54 = load i32, ptr %2, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %55
%57 = load i32, ptr %56, align 4
%58 = icmp eq i32 %57, 1
br i1 %58, label %59, label %62
59: ; preds = %53
%60 = load i32, ptr %2, align 4
%61 = call i32 @printf(ptr noundef @.str.1, i32 noundef %60)
br label %62
62: ; preds = %59, %53
br label %63
63: ; preds = %62
%64 = load i32, ptr %2, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %2, align 4
br label %50, !llvm.loop !8
66: ; preds = %50
%67 = load i32, ptr %1, align 4
ret i32 %67
}
; 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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @scanf(ptr noundef, ptr noundef) #3
declare i32 @printf(ptr noundef, i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpd6r4i5ra.c"
target datalayout = "e-m:e-p270: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.cup = private unnamed_addr constant [4 x i32] [i32 0, i32 1, i32 0, i32 0], align 16
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = 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 [4 x i32], align 16
%5 = alloca [100 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.cup, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 100, i1 false)
%6 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
store i32 0, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph, label %54
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %45
%15 = load i32, ptr %2, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
switch i32 %19, label %44 [
i32 65, label %20
i32 66, label %28
i32 67, label %36
]
20: ; preds = %14
%21 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 1
%22 = load i32, ptr %21, align 4
store i32 %22, ptr %3, align 4
%23 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 2
%24 = load i32, ptr %23, align 8
%25 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 1
store i32 %24, ptr %25, align 4
%26 = load i32, ptr %3, align 4
%27 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 2
store i32 %26, ptr %27, align 8
br label %44
28: ; preds = %14
%29 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 2
%30 = load i32, ptr %29, align 8
store i32 %30, ptr %3, align 4
%31 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 3
%32 = load i32, ptr %31, align 4
%33 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 2
store i32 %32, ptr %33, align 8
%34 = load i32, ptr %3, align 4
%35 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 3
store i32 %34, ptr %35, align 4
br label %44
36: ; preds = %14
%37 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 1
%38 = load i32, ptr %37, align 4
store i32 %38, ptr %3, align 4
%39 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 3
%40 = load i32, ptr %39, align 4
%41 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 1
store i32 %40, ptr %41, align 4
%42 = load i32, ptr %3, align 4
%43 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 3
store i32 %42, ptr %43, align 4
br label %44
44: ; preds = %36, %28, %20, %14
br label %45
45: ; preds = %44
%46 = load i32, ptr %2, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %2, align 4
%48 = load i32, ptr %2, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 0
br i1 %53, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %54
54: ; preds = %._crit_edge, %0
store i32 1, ptr %2, align 4
%55 = load i32, ptr %2, align 4
%56 = icmp sle i32 %55, 3
br i1 %56, label %.lr.ph2, label %72
.lr.ph2: ; preds = %54
br label %57
57: ; preds = %.lr.ph2, %67
%58 = load i32, ptr %2, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %59
%61 = load i32, ptr %60, align 4
%62 = icmp eq i32 %61, 1
br i1 %62, label %63, label %66
63: ; preds = %57
%64 = load i32, ptr %2, align 4
%65 = call i32 @printf(ptr noundef @.str.1, i32 noundef %64)
br label %66
66: ; preds = %63, %57
br label %67
67: ; preds = %66
%68 = load i32, ptr %2, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %2, align 4
%70 = load i32, ptr %2, align 4
%71 = icmp sle i32 %70, 3
br i1 %71, label %57, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %67
br label %72
72: ; preds = %._crit_edge3, %54
%73 = load i32, ptr %1, align 4
ret i32 %73
}
; 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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @scanf(ptr noundef, ptr noundef) #3
declare i32 @printf(ptr noundef, i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpfgabloct.c'
source_filename = "/tmp/tmpfgabloct.c"
target datalayout = "e-m:e-p270: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 @g() #0 {
%1 = alloca [1 x i32], align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds [1 x i32], ptr %1, i64 0, i64 %5
store i32 1, ptr %6, align 4
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [1 x i32], ptr %1, i64 0, i64 %8
%10 = load i32, ptr %9, align 4
%11 = icmp eq i32 %10, 1
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
ret void
}
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/tmpfgabloct.c"
target datalayout = "e-m:e-p270: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 @g() #0 {
%1 = alloca [1 x i32], align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds [1 x i32], ptr %1, i64 0, i64 %5
store i32 1, ptr %6, align 4
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [1 x i32], ptr %1, i64 0, i64 %8
%10 = load i32, ptr %9, align 4
%11 = icmp eq i32 %10, 1
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
ret void
}
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/tmpjo2c3zjj.c'
source_filename = "/tmp/tmpjo2c3zjj.c"
target datalayout = "e-m:e-p270: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 @reset_xyz(i64 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [4 x double], align 16
%8 = alloca [4 x double], align 16
%9 = alloca [4 x double], align 16
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i64, ptr %4, align 8
%12 = getelementptr inbounds [4 x double], ptr %8, i64 0, i64 0
%13 = call i32 @max_dmatrix(ptr noundef %10, i64 noundef %11, i32 noundef 3, ptr noundef %12)
%14 = load ptr, ptr %5, align 8
%15 = load i64, ptr %4, align 8
%16 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%17 = call i32 @min_dmatrix(ptr noundef %14, i64 noundef %15, i32 noundef 3, ptr noundef %16)
%18 = load ptr, ptr %5, align 8
%19 = load i64, ptr %4, align 8
%20 = getelementptr inbounds [4 x double], ptr %7, i64 0, i64 0
%21 = call i32 @ave_dmatrix(ptr noundef %18, i64 noundef %19, i32 noundef 3, ptr noundef %20)
%22 = getelementptr inbounds [4 x double], ptr %8, i64 0, i64 0
%23 = call double @max_dvector(ptr noundef %22, i32 noundef 3)
%24 = fcmp ogt double %23, 0x40C387FEB851EB85
br i1 %24, label %25, label %30
25: ; preds = %3
%26 = load ptr, ptr %5, align 8
%27 = load i64, ptr %4, align 8
%28 = getelementptr inbounds [4 x double], ptr %7, i64 0, i64 0
%29 = call i32 @move_position(ptr noundef %26, i64 noundef %27, i32 noundef 3, ptr noundef %28)
br label %40
30: ; preds = %3
%31 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%32 = call double @min_dvector(ptr noundef %31, i32 noundef 3)
%33 = fcmp olt double %32, -9.999900e+02
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load ptr, ptr %5, align 8
%36 = load i64, ptr %4, align 8
%37 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%38 = call i32 @move_position(ptr noundef %35, i64 noundef %36, i32 noundef 3, ptr noundef %37)
br label %39
39: ; preds = %34, %30
br label %40
40: ; preds = %39, %25
ret void
}
declare i32 @max_dmatrix(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @min_dmatrix(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @ave_dmatrix(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare double @max_dvector(ptr noundef, i32 noundef) #1
declare i32 @move_position(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare double @min_dvector(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/tmpjo2c3zjj.c"
target datalayout = "e-m:e-p270: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 @reset_xyz(i64 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [4 x double], align 16
%8 = alloca [4 x double], align 16
%9 = alloca [4 x double], align 16
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i64, ptr %4, align 8
%12 = getelementptr inbounds [4 x double], ptr %8, i64 0, i64 0
%13 = call i32 @max_dmatrix(ptr noundef %10, i64 noundef %11, i32 noundef 3, ptr noundef %12)
%14 = load ptr, ptr %5, align 8
%15 = load i64, ptr %4, align 8
%16 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%17 = call i32 @min_dmatrix(ptr noundef %14, i64 noundef %15, i32 noundef 3, ptr noundef %16)
%18 = load ptr, ptr %5, align 8
%19 = load i64, ptr %4, align 8
%20 = getelementptr inbounds [4 x double], ptr %7, i64 0, i64 0
%21 = call i32 @ave_dmatrix(ptr noundef %18, i64 noundef %19, i32 noundef 3, ptr noundef %20)
%22 = getelementptr inbounds [4 x double], ptr %8, i64 0, i64 0
%23 = call double @max_dvector(ptr noundef %22, i32 noundef 3)
%24 = fcmp ogt double %23, 0x40C387FEB851EB85
br i1 %24, label %25, label %30
25: ; preds = %3
%26 = load ptr, ptr %5, align 8
%27 = load i64, ptr %4, align 8
%28 = getelementptr inbounds [4 x double], ptr %7, i64 0, i64 0
%29 = call i32 @move_position(ptr noundef %26, i64 noundef %27, i32 noundef 3, ptr noundef %28)
br label %40
30: ; preds = %3
%31 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%32 = call double @min_dvector(ptr noundef %31, i32 noundef 3)
%33 = fcmp olt double %32, -9.999900e+02
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load ptr, ptr %5, align 8
%36 = load i64, ptr %4, align 8
%37 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%38 = call i32 @move_position(ptr noundef %35, i64 noundef %36, i32 noundef 3, ptr noundef %37)
br label %39
39: ; preds = %34, %30
br label %40
40: ; preds = %39, %25
ret void
}
declare i32 @max_dmatrix(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @min_dmatrix(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @ave_dmatrix(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare double @max_dvector(ptr noundef, i32 noundef) #1
declare i32 @move_position(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare double @min_dvector(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/tmptv735w_o.c'
source_filename = "/tmp/tmptv735w_o.c"
target datalayout = "e-m:e-p270: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 [76 x i8] c"Error on erase - flash is busy even after %1d status checks, status=0x%02x\0A\00", align 1
@.str.1 = private unnamed_addr constant [63 x i8] c"Vpp voltage droop error during erease, aborted, status=0x%02x\0A\00", align 1
@.str.2 = private unnamed_addr constant [61 x i8] c"Command sequence error during erase, aborted, status=0x%02x\0A\00", align 1
@.str.3 = private unnamed_addr constant [59 x i8] c"Block locked during erase process, aborted, status=0x%02x\0A\00", align 1
@.str.4 = private unnamed_addr constant [47 x i8] c"Erase failed at addr16b 0x%08x, status=0x%02x\0A\00", align 1
@.str.5 = private unnamed_addr constant [73 x i8] c"Erase appears to have happened but read back 0x%04x but expecting 0xffff\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @erase_block(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
%5 = load i32, ptr %2, align 4
%6 = call i32 @unlock_block_for_writes(i32 noundef %5)
%7 = load i32, ptr %2, align 4
%8 = call i32 @flash_clear_status(i32 noundef %7)
%9 = load i32, ptr %2, align 4
%10 = call i32 @flash_write(i32 noundef %9, i32 noundef 32)
%11 = load i32, ptr %2, align 4
%12 = call i32 @flash_write(i32 noundef %11, i32 noundef 208)
%13 = load i32, ptr %2, align 4
%14 = call i32 @flash_read(i32 noundef %13)
store i32 %14, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %15
15: ; preds = %27, %1
%16 = load i32, ptr %4, align 4
%17 = and i32 %16, 128
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 10000000
br label %22
22: ; preds = %19, %15
%23 = phi i1 [ false, %15 ], [ %21, %19 ]
br i1 %23, label %24, label %30
24: ; preds = %22
%25 = load i32, ptr %2, align 4
%26 = call i32 @flash_read(i32 noundef %25)
store i32 %26, ptr %4, align 4
br label %27
27: ; preds = %24
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
br label %15, !llvm.loop !6
30: ; preds = %22
%31 = load i32, ptr %4, align 4
%32 = and i32 %31, 128
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %30
%35 = load i32, ptr %3, align 4
%36 = load i32, ptr %4, align 4
%37 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str, i32 noundef %35, i32 noundef %36)
br label %38
38: ; preds = %34, %30
%39 = load i32, ptr %2, align 4
%40 = call i32 @flash_read_status(i32 noundef %39)
store i32 %40, ptr %4, align 4
%41 = load i32, ptr %4, align 4
%42 = and i32 %41, 8
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %38
%45 = load i32, ptr %4, align 4
%46 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.1, i32 noundef %45)
br label %47
47: ; preds = %44, %38
%48 = load i32, ptr %4, align 4
%49 = and i32 %48, 48
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %47
%52 = load i32, ptr %4, align 4
%53 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.2, i32 noundef %52)
br label %54
54: ; preds = %51, %47
%55 = load i32, ptr %4, align 4
%56 = and i32 %55, 2
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = load i32, ptr %4, align 4
%60 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.3, i32 noundef %59)
br label %61
61: ; preds = %58, %54
%62 = load i32, ptr %4, align 4
%63 = and i32 %62, 32
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %70
65: ; preds = %61
%66 = load i32, ptr %2, align 4
%67 = shl i32 %66, 1
%68 = load i32, ptr %4, align 4
%69 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.4, i32 noundef %67, i32 noundef %68)
br label %70
70: ; preds = %65, %61
%71 = load i32, ptr %2, align 4
%72 = call i32 @lock_block_to_prevent_writes(i32 noundef %71)
%73 = load i32, ptr %2, align 4
%74 = call i32 @flash_clear_status(i32 noundef %73)
%75 = load i32, ptr %2, align 4
%76 = call i32 @flash_read_mode(i32 noundef %75)
%77 = load i32, ptr %2, align 4
%78 = call i32 @flash_read_mode(i32 noundef %77)
%79 = load i32, ptr %2, align 4
%80 = call i32 @flash_read(i32 noundef %79)
store i32 %80, ptr %3, align 4
%81 = load i32, ptr %3, align 4
%82 = icmp ne i32 %81, 65535
br i1 %82, label %83, label %86
83: ; preds = %70
%84 = load i32, ptr %3, align 4
%85 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.5, i32 noundef %84)
br label %86
86: ; preds = %83, %70
ret void
}
declare i32 @unlock_block_for_writes(i32 noundef) #1
declare i32 @flash_clear_status(i32 noundef) #1
declare i32 @flash_write(i32 noundef, i32 noundef) #1
declare i32 @flash_read(i32 noundef) #1
declare i32 @warnx(ptr noundef, i32 noundef, ...) #1
declare i32 @flash_read_status(i32 noundef) #1
declare i32 @lock_block_to_prevent_writes(i32 noundef) #1
declare i32 @flash_read_mode(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/tmptv735w_o.c"
target datalayout = "e-m:e-p270: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 [76 x i8] c"Error on erase - flash is busy even after %1d status checks, status=0x%02x\0A\00", align 1
@.str.1 = private unnamed_addr constant [63 x i8] c"Vpp voltage droop error during erease, aborted, status=0x%02x\0A\00", align 1
@.str.2 = private unnamed_addr constant [61 x i8] c"Command sequence error during erase, aborted, status=0x%02x\0A\00", align 1
@.str.3 = private unnamed_addr constant [59 x i8] c"Block locked during erase process, aborted, status=0x%02x\0A\00", align 1
@.str.4 = private unnamed_addr constant [47 x i8] c"Erase failed at addr16b 0x%08x, status=0x%02x\0A\00", align 1
@.str.5 = private unnamed_addr constant [73 x i8] c"Erase appears to have happened but read back 0x%04x but expecting 0xffff\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @erase_block(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
%5 = load i32, ptr %2, align 4
%6 = call i32 @unlock_block_for_writes(i32 noundef %5)
%7 = load i32, ptr %2, align 4
%8 = call i32 @flash_clear_status(i32 noundef %7)
%9 = load i32, ptr %2, align 4
%10 = call i32 @flash_write(i32 noundef %9, i32 noundef 32)
%11 = load i32, ptr %2, align 4
%12 = call i32 @flash_write(i32 noundef %11, i32 noundef 208)
%13 = load i32, ptr %2, align 4
%14 = call i32 @flash_read(i32 noundef %13)
store i32 %14, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %15
15: ; preds = %27, %1
%16 = load i32, ptr %4, align 4
%17 = and i32 %16, 128
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 10000000
br label %22
22: ; preds = %19, %15
%23 = phi i1 [ false, %15 ], [ %21, %19 ]
br i1 %23, label %24, label %30
24: ; preds = %22
%25 = load i32, ptr %2, align 4
%26 = call i32 @flash_read(i32 noundef %25)
store i32 %26, ptr %4, align 4
br label %27
27: ; preds = %24
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
br label %15, !llvm.loop !6
30: ; preds = %22
%31 = load i32, ptr %4, align 4
%32 = and i32 %31, 128
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %30
%35 = load i32, ptr %3, align 4
%36 = load i32, ptr %4, align 4
%37 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str, i32 noundef %35, i32 noundef %36)
br label %38
38: ; preds = %34, %30
%39 = load i32, ptr %2, align 4
%40 = call i32 @flash_read_status(i32 noundef %39)
store i32 %40, ptr %4, align 4
%41 = load i32, ptr %4, align 4
%42 = and i32 %41, 8
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %38
%45 = load i32, ptr %4, align 4
%46 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.1, i32 noundef %45)
br label %47
47: ; preds = %44, %38
%48 = load i32, ptr %4, align 4
%49 = and i32 %48, 48
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %47
%52 = load i32, ptr %4, align 4
%53 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.2, i32 noundef %52)
br label %54
54: ; preds = %51, %47
%55 = load i32, ptr %4, align 4
%56 = and i32 %55, 2
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = load i32, ptr %4, align 4
%60 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.3, i32 noundef %59)
br label %61
61: ; preds = %58, %54
%62 = load i32, ptr %4, align 4
%63 = and i32 %62, 32
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %70
65: ; preds = %61
%66 = load i32, ptr %2, align 4
%67 = shl i32 %66, 1
%68 = load i32, ptr %4, align 4
%69 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.4, i32 noundef %67, i32 noundef %68)
br label %70
70: ; preds = %65, %61
%71 = load i32, ptr %2, align 4
%72 = call i32 @lock_block_to_prevent_writes(i32 noundef %71)
%73 = load i32, ptr %2, align 4
%74 = call i32 @flash_clear_status(i32 noundef %73)
%75 = load i32, ptr %2, align 4
%76 = call i32 @flash_read_mode(i32 noundef %75)
%77 = load i32, ptr %2, align 4
%78 = call i32 @flash_read_mode(i32 noundef %77)
%79 = load i32, ptr %2, align 4
%80 = call i32 @flash_read(i32 noundef %79)
store i32 %80, ptr %3, align 4
%81 = load i32, ptr %3, align 4
%82 = icmp ne i32 %81, 65535
br i1 %82, label %83, label %86
83: ; preds = %70
%84 = load i32, ptr %3, align 4
%85 = call i32 (ptr, i32, ...) @warnx(ptr noundef @.str.5, i32 noundef %84)
br label %86
86: ; preds = %83, %70
ret void
}
declare i32 @unlock_block_for_writes(i32 noundef) #1
declare i32 @flash_clear_status(i32 noundef) #1
declare i32 @flash_write(i32 noundef, i32 noundef) #1
declare i32 @flash_read(i32 noundef) #1
declare i32 @warnx(ptr noundef, i32 noundef, ...) #1
declare i32 @flash_read_status(i32 noundef) #1
declare i32 @lock_block_to_prevent_writes(i32 noundef) #1
declare i32 @flash_read_mode(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/tmp0k1c6w_m.c'
source_filename = "/tmp/tmp0k1c6w_m.c"
target datalayout = "e-m:e-p270: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/tmp0k1c6w_m.c"
target datalayout = "e-m:e-p270: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/tmptapy29di.c'
source_filename = "/tmp/tmptapy29di.c"
target datalayout = "e-m:e-p270: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_INET6 = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @nl_sendgetaddr6(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr @AF_INET6, align 4
%11 = call i32 @nl_sendgetaddr_do(i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef 1, i32 noundef %10, i32 noundef 1)
ret i32 %11
}
declare i32 @nl_sendgetaddr_do(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptapy29di.c"
target datalayout = "e-m:e-p270: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_INET6 = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @nl_sendgetaddr6(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr @AF_INET6, align 4
%11 = call i32 @nl_sendgetaddr_do(i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef 1, i32 noundef %10, i32 noundef 1)
ret i32 %11
}
declare i32 @nl_sendgetaddr_do(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxiw71nyh.c'
source_filename = "/tmp/tmpxiw71nyh.c"
target datalayout = "e-m:e-p270: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/tmpxiw71nyh.c"
target datalayout = "e-m:e-p270: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/tmpagcz8u8w.c'
source_filename = "/tmp/tmpagcz8u8w.c"
target datalayout = "e-m:e-p270: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/tmpagcz8u8w.c"
target datalayout = "e-m:e-p270: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/tmphw5drtsx.c'
source_filename = "/tmp/tmphw5drtsx.c"
target datalayout = "e-m:e-p270: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 @vaciarTrozos(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %15, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds ptr, ptr %11, i64 %13
store ptr null, ptr %14, align 8
br label %15
15: ; preds = %10
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %5, align 4
br label %6, !llvm.loop !6
18: ; preds = %6
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphw5drtsx.c"
target datalayout = "e-m:e-p270: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 @vaciarTrozos(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %20
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %14
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds ptr, ptr %10, i64 %12
store ptr null, ptr %13, align 8
br label %14
14: ; preds = %9
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %20
20: ; preds = %._crit_edge, %2
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpr388dwnu.c'
source_filename = "/tmp/tmpr388dwnu.c"
target datalayout = "e-m:e-p270: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"a\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"\22a\22\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"\22\\x61\22\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"# this is a comment\0A a\0A \0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"a; b; c\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"c\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"a + b\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"ab\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"a + \0A \22b\22\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"a + b +\0Ac\0A\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"abc\00", align 1
@.str.11 = private unnamed_addr constant [13 x i8] c"concat(a, b)\00", align 1
@.str.12 = private unnamed_addr constant [16 x i8] c"concat(a,\0A \22b\22)\00", align 1
@.str.13 = private unnamed_addr constant [21 x i8] c"concat(a + b,\0Ac,\22d\22)\00", align 1
@.str.14 = private unnamed_addr constant [5 x i8] c"abcd\00", align 1
@.str.15 = private unnamed_addr constant [23 x i8] c"\22concat\22(a + b,\0Ac,\22d\22)\00", align 1
@.str.16 = private unnamed_addr constant [7 x i8] c"a && b\00", align 1
@.str.17 = private unnamed_addr constant [2 x i8] c"b\00", align 1
@.str.18 = private unnamed_addr constant [8 x i8] c"a && \22\22\00", align 1
@.str.19 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.20 = private unnamed_addr constant [8 x i8] c"\22\22 && b\00", align 1
@.str.21 = private unnamed_addr constant [9 x i8] c"\22\22 && \22\22\00", align 1
@.str.22 = private unnamed_addr constant [14 x i8] c"\22\22 && abort()\00", align 1
@.str.23 = private unnamed_addr constant [13 x i8] c"t && abort()\00", align 1
@.str.24 = private unnamed_addr constant [7 x i8] c"a || b\00", align 1
@.str.25 = private unnamed_addr constant [8 x i8] c"a || \22\22\00", align 1
@.str.26 = private unnamed_addr constant [8 x i8] c"\22\22 || b\00", align 1
@.str.27 = private unnamed_addr constant [9 x i8] c"\22\22 || \22\22\00", align 1
@.str.28 = private unnamed_addr constant [13 x i8] c"a || abort()\00", align 1
@.str.29 = private unnamed_addr constant [14 x i8] c"\22\22 || abort()\00", align 1
@.str.30 = private unnamed_addr constant [3 x i8] c"!a\00", align 1
@.str.31 = private unnamed_addr constant [5 x i8] c"! \22\22\00", align 1
@.str.32 = private unnamed_addr constant [2 x i8] c"t\00", align 1
@.str.33 = private unnamed_addr constant [4 x i8] c"!!a\00", align 1
@.str.34 = private unnamed_addr constant [14 x i8] c"\22\22 == \22\22 && b\00", align 1
@.str.35 = private unnamed_addr constant [12 x i8] c"a + b == ab\00", align 1
@.str.36 = private unnamed_addr constant [12 x i8] c"ab == a + b\00", align 1
@.str.37 = private unnamed_addr constant [14 x i8] c"a + (b == ab)\00", align 1
@.str.38 = private unnamed_addr constant [14 x i8] c"(ab == a) + b\00", align 1
@.str.39 = private unnamed_addr constant [31 x i8] c"is_substring(cad, abracadabra)\00", align 1
@.str.40 = private unnamed_addr constant [33 x i8] c"is_substring(abrac, abracadabra)\00", align 1
@.str.41 = private unnamed_addr constant [33 x i8] c"is_substring(dabra, abracadabra)\00", align 1
@.str.42 = private unnamed_addr constant [32 x i8] c"is_substring(cad, abracxadabra)\00", align 1
@.str.43 = private unnamed_addr constant [34 x i8] c"is_substring(abrac, axbracadabra)\00", align 1
@.str.44 = private unnamed_addr constant [34 x i8] c"is_substring(dabra, abracadabrxa)\00", align 1
@.str.45 = private unnamed_addr constant [19 x i8] c"ifelse(t, yes, no)\00", align 1
@.str.46 = private unnamed_addr constant [4 x i8] c"yes\00", align 1
@.str.47 = private unnamed_addr constant [20 x i8] c"ifelse(!t, yes, no)\00", align 1
@.str.48 = private unnamed_addr constant [3 x i8] c"no\00", align 1
@.str.49 = private unnamed_addr constant [24 x i8] c"ifelse(t, yes, abort())\00", align 1
@.str.50 = private unnamed_addr constant [24 x i8] c"ifelse(!t, abort(), no)\00", align 1
@.str.51 = private unnamed_addr constant [28 x i8] c"if t then yes else no endif\00", align 1
@.str.52 = private unnamed_addr constant [29 x i8] c"if \22\22 then yes else no endif\00", align 1
@.str.53 = private unnamed_addr constant [21 x i8] c"if \22\22 then yes endif\00", align 1
@.str.54 = private unnamed_addr constant [24 x i8] c"if \22\22; t then yes endif\00", align 1
@.str.55 = private unnamed_addr constant [21 x i8] c"less_than_int(3, 14)\00", align 1
@.str.56 = private unnamed_addr constant [21 x i8] c"less_than_int(14, 3)\00", align 1
@.str.57 = private unnamed_addr constant [20 x i8] c"less_than_int(x, 3)\00", align 1
@.str.58 = private unnamed_addr constant [20 x i8] c"less_than_int(3, x)\00", align 1
@.str.59 = private unnamed_addr constant [24 x i8] c"greater_than_int(3, 14)\00", align 1
@.str.60 = private unnamed_addr constant [24 x i8] c"greater_than_int(14, 3)\00", align 1
@.str.61 = private unnamed_addr constant [23 x i8] c"greater_than_int(x, 3)\00", align 1
@.str.62 = private unnamed_addr constant [23 x i8] c"greater_than_int(3, x)\00", align 1
@.str.63 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @expect(ptr noundef @.str, ptr noundef @.str, ptr noundef %1)
%3 = call i32 @expect(ptr noundef @.str.1, ptr noundef @.str, ptr noundef %1)
%4 = call i32 @expect(ptr noundef @.str.2, ptr noundef @.str, ptr noundef %1)
%5 = call i32 @expect(ptr noundef @.str.3, ptr noundef @.str, ptr noundef %1)
%6 = call i32 @expect(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %1)
%7 = call i32 @expect(ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef %1)
%8 = call i32 @expect(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef %1)
%9 = call i32 @expect(ptr noundef @.str.9, ptr noundef @.str.10, ptr noundef %1)
%10 = call i32 @expect(ptr noundef @.str.11, ptr noundef @.str.7, ptr noundef %1)
%11 = call i32 @expect(ptr noundef @.str.12, ptr noundef @.str.7, ptr noundef %1)
%12 = call i32 @expect(ptr noundef @.str.13, ptr noundef @.str.14, ptr noundef %1)
%13 = call i32 @expect(ptr noundef @.str.15, ptr noundef @.str.14, ptr noundef %1)
%14 = call i32 @expect(ptr noundef @.str.16, ptr noundef @.str.17, ptr noundef %1)
%15 = call i32 @expect(ptr noundef @.str.18, ptr noundef @.str.19, ptr noundef %1)
%16 = call i32 @expect(ptr noundef @.str.20, ptr noundef @.str.19, ptr noundef %1)
%17 = call i32 @expect(ptr noundef @.str.21, ptr noundef @.str.19, ptr noundef %1)
%18 = call i32 @expect(ptr noundef @.str.22, ptr noundef @.str.19, ptr noundef %1)
%19 = call i32 @expect(ptr noundef @.str.23, ptr noundef null, ptr noundef %1)
%20 = call i32 @expect(ptr noundef @.str.24, ptr noundef @.str, ptr noundef %1)
%21 = call i32 @expect(ptr noundef @.str.25, ptr noundef @.str, ptr noundef %1)
%22 = call i32 @expect(ptr noundef @.str.26, ptr noundef @.str.17, ptr noundef %1)
%23 = call i32 @expect(ptr noundef @.str.27, ptr noundef @.str.19, ptr noundef %1)
%24 = call i32 @expect(ptr noundef @.str.28, ptr noundef @.str, ptr noundef %1)
%25 = call i32 @expect(ptr noundef @.str.29, ptr noundef null, ptr noundef %1)
%26 = call i32 @expect(ptr noundef @.str.30, ptr noundef @.str.19, ptr noundef %1)
%27 = call i32 @expect(ptr noundef @.str.31, ptr noundef @.str.32, ptr noundef %1)
%28 = call i32 @expect(ptr noundef @.str.33, ptr noundef @.str.32, ptr noundef %1)
%29 = call i32 @expect(ptr noundef @.str.34, ptr noundef @.str.17, ptr noundef %1)
%30 = call i32 @expect(ptr noundef @.str.35, ptr noundef @.str.32, ptr noundef %1)
%31 = call i32 @expect(ptr noundef @.str.36, ptr noundef @.str.32, ptr noundef %1)
%32 = call i32 @expect(ptr noundef @.str.37, ptr noundef @.str, ptr noundef %1)
%33 = call i32 @expect(ptr noundef @.str.38, ptr noundef @.str.17, ptr noundef %1)
%34 = call i32 @expect(ptr noundef @.str.39, ptr noundef @.str.32, ptr noundef %1)
%35 = call i32 @expect(ptr noundef @.str.40, ptr noundef @.str.32, ptr noundef %1)
%36 = call i32 @expect(ptr noundef @.str.41, ptr noundef @.str.32, ptr noundef %1)
%37 = call i32 @expect(ptr noundef @.str.42, ptr noundef @.str.19, ptr noundef %1)
%38 = call i32 @expect(ptr noundef @.str.43, ptr noundef @.str.19, ptr noundef %1)
%39 = call i32 @expect(ptr noundef @.str.44, ptr noundef @.str.19, ptr noundef %1)
%40 = call i32 @expect(ptr noundef @.str.45, ptr noundef @.str.46, ptr noundef %1)
%41 = call i32 @expect(ptr noundef @.str.47, ptr noundef @.str.48, ptr noundef %1)
%42 = call i32 @expect(ptr noundef @.str.49, ptr noundef @.str.46, ptr noundef %1)
%43 = call i32 @expect(ptr noundef @.str.50, ptr noundef @.str.48, ptr noundef %1)
%44 = call i32 @expect(ptr noundef @.str.51, ptr noundef @.str.46, ptr noundef %1)
%45 = call i32 @expect(ptr noundef @.str.52, ptr noundef @.str.48, ptr noundef %1)
%46 = call i32 @expect(ptr noundef @.str.53, ptr noundef @.str.19, ptr noundef %1)
%47 = call i32 @expect(ptr noundef @.str.54, ptr noundef @.str.46, ptr noundef %1)
%48 = call i32 @expect(ptr noundef @.str.55, ptr noundef @.str.32, ptr noundef %1)
%49 = call i32 @expect(ptr noundef @.str.56, ptr noundef @.str.19, ptr noundef %1)
%50 = call i32 @expect(ptr noundef @.str.57, ptr noundef @.str.19, ptr noundef %1)
%51 = call i32 @expect(ptr noundef @.str.58, ptr noundef @.str.19, ptr noundef %1)
%52 = call i32 @expect(ptr noundef @.str.59, ptr noundef @.str.19, ptr noundef %1)
%53 = call i32 @expect(ptr noundef @.str.60, ptr noundef @.str.32, ptr noundef %1)
%54 = call i32 @expect(ptr noundef @.str.61, ptr noundef @.str.19, ptr noundef %1)
%55 = call i32 @expect(ptr noundef @.str.62, ptr noundef @.str.19, ptr noundef %1)
%56 = call i32 @printf(ptr noundef @.str.63)
%57 = load i32, ptr %1, align 4
ret i32 %57
}
declare i32 @expect(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr388dwnu.c"
target datalayout = "e-m:e-p270: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"a\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"\22a\22\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"\22\\x61\22\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"# this is a comment\0A a\0A \0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"a; b; c\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"c\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"a + b\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"ab\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"a + \0A \22b\22\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"a + b +\0Ac\0A\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"abc\00", align 1
@.str.11 = private unnamed_addr constant [13 x i8] c"concat(a, b)\00", align 1
@.str.12 = private unnamed_addr constant [16 x i8] c"concat(a,\0A \22b\22)\00", align 1
@.str.13 = private unnamed_addr constant [21 x i8] c"concat(a + b,\0Ac,\22d\22)\00", align 1
@.str.14 = private unnamed_addr constant [5 x i8] c"abcd\00", align 1
@.str.15 = private unnamed_addr constant [23 x i8] c"\22concat\22(a + b,\0Ac,\22d\22)\00", align 1
@.str.16 = private unnamed_addr constant [7 x i8] c"a && b\00", align 1
@.str.17 = private unnamed_addr constant [2 x i8] c"b\00", align 1
@.str.18 = private unnamed_addr constant [8 x i8] c"a && \22\22\00", align 1
@.str.19 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.20 = private unnamed_addr constant [8 x i8] c"\22\22 && b\00", align 1
@.str.21 = private unnamed_addr constant [9 x i8] c"\22\22 && \22\22\00", align 1
@.str.22 = private unnamed_addr constant [14 x i8] c"\22\22 && abort()\00", align 1
@.str.23 = private unnamed_addr constant [13 x i8] c"t && abort()\00", align 1
@.str.24 = private unnamed_addr constant [7 x i8] c"a || b\00", align 1
@.str.25 = private unnamed_addr constant [8 x i8] c"a || \22\22\00", align 1
@.str.26 = private unnamed_addr constant [8 x i8] c"\22\22 || b\00", align 1
@.str.27 = private unnamed_addr constant [9 x i8] c"\22\22 || \22\22\00", align 1
@.str.28 = private unnamed_addr constant [13 x i8] c"a || abort()\00", align 1
@.str.29 = private unnamed_addr constant [14 x i8] c"\22\22 || abort()\00", align 1
@.str.30 = private unnamed_addr constant [3 x i8] c"!a\00", align 1
@.str.31 = private unnamed_addr constant [5 x i8] c"! \22\22\00", align 1
@.str.32 = private unnamed_addr constant [2 x i8] c"t\00", align 1
@.str.33 = private unnamed_addr constant [4 x i8] c"!!a\00", align 1
@.str.34 = private unnamed_addr constant [14 x i8] c"\22\22 == \22\22 && b\00", align 1
@.str.35 = private unnamed_addr constant [12 x i8] c"a + b == ab\00", align 1
@.str.36 = private unnamed_addr constant [12 x i8] c"ab == a + b\00", align 1
@.str.37 = private unnamed_addr constant [14 x i8] c"a + (b == ab)\00", align 1
@.str.38 = private unnamed_addr constant [14 x i8] c"(ab == a) + b\00", align 1
@.str.39 = private unnamed_addr constant [31 x i8] c"is_substring(cad, abracadabra)\00", align 1
@.str.40 = private unnamed_addr constant [33 x i8] c"is_substring(abrac, abracadabra)\00", align 1
@.str.41 = private unnamed_addr constant [33 x i8] c"is_substring(dabra, abracadabra)\00", align 1
@.str.42 = private unnamed_addr constant [32 x i8] c"is_substring(cad, abracxadabra)\00", align 1
@.str.43 = private unnamed_addr constant [34 x i8] c"is_substring(abrac, axbracadabra)\00", align 1
@.str.44 = private unnamed_addr constant [34 x i8] c"is_substring(dabra, abracadabrxa)\00", align 1
@.str.45 = private unnamed_addr constant [19 x i8] c"ifelse(t, yes, no)\00", align 1
@.str.46 = private unnamed_addr constant [4 x i8] c"yes\00", align 1
@.str.47 = private unnamed_addr constant [20 x i8] c"ifelse(!t, yes, no)\00", align 1
@.str.48 = private unnamed_addr constant [3 x i8] c"no\00", align 1
@.str.49 = private unnamed_addr constant [24 x i8] c"ifelse(t, yes, abort())\00", align 1
@.str.50 = private unnamed_addr constant [24 x i8] c"ifelse(!t, abort(), no)\00", align 1
@.str.51 = private unnamed_addr constant [28 x i8] c"if t then yes else no endif\00", align 1
@.str.52 = private unnamed_addr constant [29 x i8] c"if \22\22 then yes else no endif\00", align 1
@.str.53 = private unnamed_addr constant [21 x i8] c"if \22\22 then yes endif\00", align 1
@.str.54 = private unnamed_addr constant [24 x i8] c"if \22\22; t then yes endif\00", align 1
@.str.55 = private unnamed_addr constant [21 x i8] c"less_than_int(3, 14)\00", align 1
@.str.56 = private unnamed_addr constant [21 x i8] c"less_than_int(14, 3)\00", align 1
@.str.57 = private unnamed_addr constant [20 x i8] c"less_than_int(x, 3)\00", align 1
@.str.58 = private unnamed_addr constant [20 x i8] c"less_than_int(3, x)\00", align 1
@.str.59 = private unnamed_addr constant [24 x i8] c"greater_than_int(3, 14)\00", align 1
@.str.60 = private unnamed_addr constant [24 x i8] c"greater_than_int(14, 3)\00", align 1
@.str.61 = private unnamed_addr constant [23 x i8] c"greater_than_int(x, 3)\00", align 1
@.str.62 = private unnamed_addr constant [23 x i8] c"greater_than_int(3, x)\00", align 1
@.str.63 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @expect(ptr noundef @.str, ptr noundef @.str, ptr noundef %1)
%3 = call i32 @expect(ptr noundef @.str.1, ptr noundef @.str, ptr noundef %1)
%4 = call i32 @expect(ptr noundef @.str.2, ptr noundef @.str, ptr noundef %1)
%5 = call i32 @expect(ptr noundef @.str.3, ptr noundef @.str, ptr noundef %1)
%6 = call i32 @expect(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %1)
%7 = call i32 @expect(ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef %1)
%8 = call i32 @expect(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef %1)
%9 = call i32 @expect(ptr noundef @.str.9, ptr noundef @.str.10, ptr noundef %1)
%10 = call i32 @expect(ptr noundef @.str.11, ptr noundef @.str.7, ptr noundef %1)
%11 = call i32 @expect(ptr noundef @.str.12, ptr noundef @.str.7, ptr noundef %1)
%12 = call i32 @expect(ptr noundef @.str.13, ptr noundef @.str.14, ptr noundef %1)
%13 = call i32 @expect(ptr noundef @.str.15, ptr noundef @.str.14, ptr noundef %1)
%14 = call i32 @expect(ptr noundef @.str.16, ptr noundef @.str.17, ptr noundef %1)
%15 = call i32 @expect(ptr noundef @.str.18, ptr noundef @.str.19, ptr noundef %1)
%16 = call i32 @expect(ptr noundef @.str.20, ptr noundef @.str.19, ptr noundef %1)
%17 = call i32 @expect(ptr noundef @.str.21, ptr noundef @.str.19, ptr noundef %1)
%18 = call i32 @expect(ptr noundef @.str.22, ptr noundef @.str.19, ptr noundef %1)
%19 = call i32 @expect(ptr noundef @.str.23, ptr noundef null, ptr noundef %1)
%20 = call i32 @expect(ptr noundef @.str.24, ptr noundef @.str, ptr noundef %1)
%21 = call i32 @expect(ptr noundef @.str.25, ptr noundef @.str, ptr noundef %1)
%22 = call i32 @expect(ptr noundef @.str.26, ptr noundef @.str.17, ptr noundef %1)
%23 = call i32 @expect(ptr noundef @.str.27, ptr noundef @.str.19, ptr noundef %1)
%24 = call i32 @expect(ptr noundef @.str.28, ptr noundef @.str, ptr noundef %1)
%25 = call i32 @expect(ptr noundef @.str.29, ptr noundef null, ptr noundef %1)
%26 = call i32 @expect(ptr noundef @.str.30, ptr noundef @.str.19, ptr noundef %1)
%27 = call i32 @expect(ptr noundef @.str.31, ptr noundef @.str.32, ptr noundef %1)
%28 = call i32 @expect(ptr noundef @.str.33, ptr noundef @.str.32, ptr noundef %1)
%29 = call i32 @expect(ptr noundef @.str.34, ptr noundef @.str.17, ptr noundef %1)
%30 = call i32 @expect(ptr noundef @.str.35, ptr noundef @.str.32, ptr noundef %1)
%31 = call i32 @expect(ptr noundef @.str.36, ptr noundef @.str.32, ptr noundef %1)
%32 = call i32 @expect(ptr noundef @.str.37, ptr noundef @.str, ptr noundef %1)
%33 = call i32 @expect(ptr noundef @.str.38, ptr noundef @.str.17, ptr noundef %1)
%34 = call i32 @expect(ptr noundef @.str.39, ptr noundef @.str.32, ptr noundef %1)
%35 = call i32 @expect(ptr noundef @.str.40, ptr noundef @.str.32, ptr noundef %1)
%36 = call i32 @expect(ptr noundef @.str.41, ptr noundef @.str.32, ptr noundef %1)
%37 = call i32 @expect(ptr noundef @.str.42, ptr noundef @.str.19, ptr noundef %1)
%38 = call i32 @expect(ptr noundef @.str.43, ptr noundef @.str.19, ptr noundef %1)
%39 = call i32 @expect(ptr noundef @.str.44, ptr noundef @.str.19, ptr noundef %1)
%40 = call i32 @expect(ptr noundef @.str.45, ptr noundef @.str.46, ptr noundef %1)
%41 = call i32 @expect(ptr noundef @.str.47, ptr noundef @.str.48, ptr noundef %1)
%42 = call i32 @expect(ptr noundef @.str.49, ptr noundef @.str.46, ptr noundef %1)
%43 = call i32 @expect(ptr noundef @.str.50, ptr noundef @.str.48, ptr noundef %1)
%44 = call i32 @expect(ptr noundef @.str.51, ptr noundef @.str.46, ptr noundef %1)
%45 = call i32 @expect(ptr noundef @.str.52, ptr noundef @.str.48, ptr noundef %1)
%46 = call i32 @expect(ptr noundef @.str.53, ptr noundef @.str.19, ptr noundef %1)
%47 = call i32 @expect(ptr noundef @.str.54, ptr noundef @.str.46, ptr noundef %1)
%48 = call i32 @expect(ptr noundef @.str.55, ptr noundef @.str.32, ptr noundef %1)
%49 = call i32 @expect(ptr noundef @.str.56, ptr noundef @.str.19, ptr noundef %1)
%50 = call i32 @expect(ptr noundef @.str.57, ptr noundef @.str.19, ptr noundef %1)
%51 = call i32 @expect(ptr noundef @.str.58, ptr noundef @.str.19, ptr noundef %1)
%52 = call i32 @expect(ptr noundef @.str.59, ptr noundef @.str.19, ptr noundef %1)
%53 = call i32 @expect(ptr noundef @.str.60, ptr noundef @.str.32, ptr noundef %1)
%54 = call i32 @expect(ptr noundef @.str.61, ptr noundef @.str.19, ptr noundef %1)
%55 = call i32 @expect(ptr noundef @.str.62, ptr noundef @.str.19, ptr noundef %1)
%56 = call i32 @printf(ptr noundef @.str.63)
%57 = load i32, ptr %1, align 4
ret i32 %57
}
declare i32 @expect(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb7fqftbs.c'
source_filename = "/tmp/tmpb7fqftbs.c"
target datalayout = "e-m:e-p270: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"/tmp/delme\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_FIXED = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"/etc/passwd\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"/etc/shadow\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca 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 ptr inttoptr (i64 2483027968 to ptr), ptr %6, align 8
%8 = load i32, ptr @O_RDWR, align 4
%9 = call i32 @open(ptr noundef @.str, i32 noundef %8)
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr @PROT_READ, align 4
%12 = load i32, ptr @PROT_WRITE, align 4
%13 = or i32 %11, %12
%14 = load i32, ptr @MAP_FIXED, align 4
%15 = load i32, ptr @MAP_SHARED, align 4
%16 = or i32 %14, %15
%17 = call i32 @mmap(ptr noundef %10, i32 noundef 4096, i32 noundef %13, i32 noundef %16, i32 noundef 3, i32 noundef 0)
%18 = load ptr, ptr %6, align 8
store i8 0, ptr %18, align 1
%19 = call i64 (...) @fork()
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %27
21: ; preds = %2
br label %22
22: ; preds = %21, %22
%23 = load ptr, ptr %6, align 8
%24 = call i32 @strcpy(ptr noundef %23, ptr noundef @.str.1)
%25 = load ptr, ptr %6, align 8
%26 = call i32 @strcpy(ptr noundef %25, ptr noundef @.str.2)
br label %22
27: ; preds = %2
br label %28
28: ; preds = %27, %35
%29 = load ptr, ptr %6, align 8
%30 = call i32 @open(ptr noundef %29, i32 noundef 0)
store i32 %30, ptr %7, align 4
%31 = icmp ne i32 %30, -1
br i1 %31, label %32, label %35
32: ; preds = %28
%33 = load i32, ptr %7, align 4
%34 = call i32 @close(i32 noundef %33)
br label %35
35: ; preds = %32, %28
br label %28
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @fork(...) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb7fqftbs.c"
target datalayout = "e-m:e-p270: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"/tmp/delme\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_FIXED = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"/etc/passwd\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"/etc/shadow\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca 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 ptr inttoptr (i64 2483027968 to ptr), ptr %6, align 8
%8 = load i32, ptr @O_RDWR, align 4
%9 = call i32 @open(ptr noundef @.str, i32 noundef %8)
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr @PROT_READ, align 4
%12 = load i32, ptr @PROT_WRITE, align 4
%13 = or i32 %11, %12
%14 = load i32, ptr @MAP_FIXED, align 4
%15 = load i32, ptr @MAP_SHARED, align 4
%16 = or i32 %14, %15
%17 = call i32 @mmap(ptr noundef %10, i32 noundef 4096, i32 noundef %13, i32 noundef %16, i32 noundef 3, i32 noundef 0)
%18 = load ptr, ptr %6, align 8
store i8 0, ptr %18, align 1
%19 = call i64 (...) @fork()
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %27
21: ; preds = %2
br label %22
22: ; preds = %22, %21
%23 = load ptr, ptr %6, align 8
%24 = call i32 @strcpy(ptr noundef %23, ptr noundef @.str.1)
%25 = load ptr, ptr %6, align 8
%26 = call i32 @strcpy(ptr noundef %25, ptr noundef @.str.2)
br label %22
27: ; preds = %2
br label %28
28: ; preds = %35, %27
%29 = load ptr, ptr %6, align 8
%30 = call i32 @open(ptr noundef %29, i32 noundef 0)
store i32 %30, ptr %7, align 4
%31 = icmp ne i32 %30, -1
br i1 %31, label %32, label %35
32: ; preds = %28
%33 = load i32, ptr %7, align 4
%34 = call i32 @close(i32 noundef %33)
br label %35
35: ; preds = %32, %28
br label %28
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @fork(...) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpujk6ugog.c'
source_filename = "/tmp/tmpujk6ugog.c"
target datalayout = "e-m:e-p270: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 [439 x i8] c"%s %s %s\0A (protocols 1, 2 and 3) (default port %d)\0A built %s %s\0ACopyright (C) 2002, 2003, 2004 by Martin Pool.\0AIncludes miniLZO (C) 1996-2002 by Markus Franz Xaver Johannes Oberhumer.\0APortions Copyright (C) 2007-2008 Google.\0A\0Adistcc comes with ABSOLUTELY NO WARRANTY. distcc is free software, and\0Ayou may use, modify and redistribute it under the terms of the GNU \0AGeneral Public License version 2 or later.\0A\0APlease report bugs to %s\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"2.18.3-17gg-pump6\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"x86_64-unknown-linux-gnu\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"Mar 17 2022\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"08:43:15\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"distcc-pump@google.com\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dcc_show_version(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 3632, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpujk6ugog.c"
target datalayout = "e-m:e-p270: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 [439 x i8] c"%s %s %s\0A (protocols 1, 2 and 3) (default port %d)\0A built %s %s\0ACopyright (C) 2002, 2003, 2004 by Martin Pool.\0AIncludes miniLZO (C) 1996-2002 by Markus Franz Xaver Johannes Oberhumer.\0APortions Copyright (C) 2007-2008 Google.\0A\0Adistcc comes with ABSOLUTELY NO WARRANTY. distcc is free software, and\0Ayou may use, modify and redistribute it under the terms of the GNU \0AGeneral Public License version 2 or later.\0A\0APlease report bugs to %s\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"2.18.3-17gg-pump6\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"x86_64-unknown-linux-gnu\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"Mar 17 2022\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"08:43:15\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"distcc-pump@google.com\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dcc_show_version(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 3632, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp81sglab4.c'
source_filename = "/tmp/tmp81sglab4.c"
target datalayout = "e-m:e-p270: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/tmp81sglab4.c"
target datalayout = "e-m:e-p270: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/tmpcc1ctq2v.c'
source_filename = "/tmp/tmpcc1ctq2v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"-%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_short_option(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca ptr, align 8
store i8 %0, ptr %2, align 1
%4 = call ptr @rmalloc(i32 noundef 3)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i8, ptr %2, align 1
%7 = call i32 @sprintf(ptr noundef %5, ptr noundef @.str, i8 noundef signext %6)
%8 = load ptr, ptr %3, align 8
ret ptr %8
}
declare ptr @rmalloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcc1ctq2v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"-%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_short_option(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca ptr, align 8
store i8 %0, ptr %2, align 1
%4 = call ptr @rmalloc(i32 noundef 3)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i8, ptr %2, align 1
%7 = call i32 @sprintf(ptr noundef %5, ptr noundef @.str, i8 noundef signext %6)
%8 = load ptr, ptr %3, align 8
ret ptr %8
}
declare ptr @rmalloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnf61iqfm.c'
source_filename = "/tmp/tmpnf61iqfm.c"
target datalayout = "e-m:e-p270: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/tmpnf61iqfm.c"
target datalayout = "e-m:e-p270: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/tmpzipv859c.c'
source_filename = "/tmp/tmpzipv859c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@O_RDWR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"Can not open %s\0A\00", align 1
@PROT_WRITE = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str.1 = private unnamed_addr constant [17 x i8] c"Can not mmap %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mmio_write(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 %struct.stat, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = 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
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr @O_RDWR, align 4
%14 = call i32 @open(ptr noundef %12, i32 noundef %13)
store i32 %14, ptr %7, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %3
%17 = load ptr, ptr %4, align 8
%18 = call i32 @printf(ptr noundef @.str, ptr noundef %17)
%19 = call i32 @exit(i32 noundef -1) #3
unreachable
20: ; preds = %3
%21 = load i32, ptr %7, align 4
%22 = call i32 @fstat(i32 noundef %21, ptr noundef %8)
%23 = getelementptr inbounds %struct.stat, ptr %8, i32 0, i32 0
%24 = load i32, ptr %23, align 4
%25 = load i32, ptr @PROT_WRITE, align 4
%26 = load i32, ptr @PROT_READ, align 4
%27 = or i32 %25, %26
%28 = load i32, ptr @MAP_SHARED, align 4
%29 = load i32, ptr %7, align 4
%30 = call ptr @mmap(ptr noundef null, i32 noundef %24, i32 noundef %27, i32 noundef %28, i32 noundef %29, i32 noundef 0)
store ptr %30, ptr %9, align 8
%31 = load ptr, ptr %9, align 8
%32 = load ptr, ptr @MAP_FAILED, align 8
%33 = icmp eq ptr %31, %32
br i1 %33, label %34, label %38
34: ; preds = %20
%35 = load ptr, ptr %4, align 8
%36 = call i32 @printf(ptr noundef @.str.1, ptr noundef %35)
%37 = call i32 @exit(i32 noundef -1) #3
unreachable
38: ; preds = %20
%39 = load ptr, ptr %9, align 8
%40 = load i32, ptr %5, align 4
%41 = getelementptr inbounds %struct.stat, ptr %8, i32 0, i32 0
%42 = load i32, ptr %41, align 4
%43 = sub nsw i32 %42, 1
%44 = and i32 %40, %43
%45 = sext i32 %44 to i64
%46 = getelementptr i8, ptr %39, i64 %45
store ptr %46, ptr %10, align 8
%47 = load i32, ptr %6, align 4
%48 = ashr i32 %47, 56
%49 = and i32 %48, 255
%50 = load i32, ptr %6, align 4
%51 = ashr i32 %50, 40
%52 = and i32 %51, 65280
%53 = or i32 %49, %52
%54 = load i32, ptr %6, align 4
%55 = ashr i32 %54, 24
%56 = and i32 %55, 16711680
%57 = or i32 %53, %56
%58 = load i32, ptr %6, align 4
%59 = ashr i32 %58, 8
%60 = and i32 %59, -16777216
%61 = or i32 %57, %60
%62 = zext i32 %61 to i64
%63 = load i32, ptr %6, align 4
%64 = shl i32 %63, 8
%65 = sext i32 %64 to i64
%66 = and i64 %65, 1095216660480
%67 = or i64 %62, %66
%68 = load i32, ptr %6, align 4
%69 = shl i32 %68, 24
%70 = sext i32 %69 to i64
%71 = and i64 %70, 280375465082880
%72 = or i64 %67, %71
%73 = load i32, ptr %6, align 4
%74 = shl i32 %73, 40
%75 = sext i32 %74 to i64
%76 = and i64 %75, 71776119061217280
%77 = or i64 %72, %76
%78 = load i32, ptr %6, align 4
%79 = shl i32 %78, 56
%80 = sext i32 %79 to i64
%81 = and i64 %80, -72057594037927936
%82 = or i64 %77, %81
%83 = trunc i64 %82 to i32
store i32 %83, ptr %6, align 4
%84 = load i32, ptr %6, align 4
%85 = load ptr, ptr %10, align 8
store i32 %84, ptr %85, align 4
%86 = load ptr, ptr %9, align 8
%87 = getelementptr inbounds %struct.stat, ptr %8, i32 0, i32 0
%88 = load i32, ptr %87, align 4
%89 = call i32 @munmap(ptr noundef %86, i32 noundef %88)
%90 = load i32, ptr %7, align 4
%91 = call i32 @close(i32 noundef %90)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @munmap(ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpzipv859c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@O_RDWR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"Can not open %s\0A\00", align 1
@PROT_WRITE = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str.1 = private unnamed_addr constant [17 x i8] c"Can not mmap %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mmio_write(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 %struct.stat, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = 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
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr @O_RDWR, align 4
%14 = call i32 @open(ptr noundef %12, i32 noundef %13)
store i32 %14, ptr %7, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %3
%17 = load ptr, ptr %4, align 8
%18 = call i32 @printf(ptr noundef @.str, ptr noundef %17)
%19 = call i32 @exit(i32 noundef -1) #3
unreachable
20: ; preds = %3
%21 = load i32, ptr %7, align 4
%22 = call i32 @fstat(i32 noundef %21, ptr noundef %8)
%23 = getelementptr inbounds %struct.stat, ptr %8, i32 0, i32 0
%24 = load i32, ptr %23, align 4
%25 = load i32, ptr @PROT_WRITE, align 4
%26 = load i32, ptr @PROT_READ, align 4
%27 = or i32 %25, %26
%28 = load i32, ptr @MAP_SHARED, align 4
%29 = load i32, ptr %7, align 4
%30 = call ptr @mmap(ptr noundef null, i32 noundef %24, i32 noundef %27, i32 noundef %28, i32 noundef %29, i32 noundef 0)
store ptr %30, ptr %9, align 8
%31 = load ptr, ptr %9, align 8
%32 = load ptr, ptr @MAP_FAILED, align 8
%33 = icmp eq ptr %31, %32
br i1 %33, label %34, label %38
34: ; preds = %20
%35 = load ptr, ptr %4, align 8
%36 = call i32 @printf(ptr noundef @.str.1, ptr noundef %35)
%37 = call i32 @exit(i32 noundef -1) #3
unreachable
38: ; preds = %20
%39 = load ptr, ptr %9, align 8
%40 = load i32, ptr %5, align 4
%41 = getelementptr inbounds %struct.stat, ptr %8, i32 0, i32 0
%42 = load i32, ptr %41, align 4
%43 = sub nsw i32 %42, 1
%44 = and i32 %40, %43
%45 = sext i32 %44 to i64
%46 = getelementptr i8, ptr %39, i64 %45
store ptr %46, ptr %10, align 8
%47 = load i32, ptr %6, align 4
%48 = ashr i32 %47, 56
%49 = and i32 %48, 255
%50 = load i32, ptr %6, align 4
%51 = ashr i32 %50, 40
%52 = and i32 %51, 65280
%53 = or i32 %49, %52
%54 = load i32, ptr %6, align 4
%55 = ashr i32 %54, 24
%56 = and i32 %55, 16711680
%57 = or i32 %53, %56
%58 = load i32, ptr %6, align 4
%59 = ashr i32 %58, 8
%60 = and i32 %59, -16777216
%61 = or i32 %57, %60
%62 = zext i32 %61 to i64
%63 = load i32, ptr %6, align 4
%64 = shl i32 %63, 8
%65 = sext i32 %64 to i64
%66 = and i64 %65, 1095216660480
%67 = or i64 %62, %66
%68 = load i32, ptr %6, align 4
%69 = shl i32 %68, 24
%70 = sext i32 %69 to i64
%71 = and i64 %70, 280375465082880
%72 = or i64 %67, %71
%73 = load i32, ptr %6, align 4
%74 = shl i32 %73, 40
%75 = sext i32 %74 to i64
%76 = and i64 %75, 71776119061217280
%77 = or i64 %72, %76
%78 = load i32, ptr %6, align 4
%79 = shl i32 %78, 56
%80 = sext i32 %79 to i64
%81 = and i64 %80, -72057594037927936
%82 = or i64 %77, %81
%83 = trunc i64 %82 to i32
store i32 %83, ptr %6, align 4
%84 = load i32, ptr %6, align 4
%85 = load ptr, ptr %10, align 8
store i32 %84, ptr %85, align 4
%86 = load ptr, ptr %9, align 8
%87 = getelementptr inbounds %struct.stat, ptr %8, i32 0, i32 0
%88 = load i32, ptr %87, align 4
%89 = call i32 @munmap(ptr noundef %86, i32 noundef %88)
%90 = load i32, ptr %7, align 4
%91 = call i32 @close(i32 noundef %90)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @munmap(ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp85eex4gv.c'
source_filename = "/tmp/tmp85eex4gv.c"
target datalayout = "e-m:e-p270: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/tmp85eex4gv.c"
target datalayout = "e-m:e-p270: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/tmpq07_3hei.c'
source_filename = "/tmp/tmpq07_3hei.c"
target datalayout = "e-m:e-p270: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/tmpq07_3hei.c"
target datalayout = "e-m:e-p270: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/tmpi_24m8i6.c'
source_filename = "/tmp/tmpi_24m8i6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pollfd = type { i32, i32, i32 }
%struct.addrinfo = type { i32, i32, i32, i32, i32, ptr }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [27 x i8] c"usage: talker hostname/IP\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"3300\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"getaddrinfo: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"talker: socket\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"talker: failed to bind socket\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@POLLRDNORM = dso_local global i32 0, align 4
@POLLIN = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [15 x i8] c"talker: sendto\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"zero byte sent\0A\00", align 1
@SHUT_WR = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [20 x i8] c"Problem in recvfrom\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"%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 i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [10240 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [1 x %struct.pollfd], align 4
%12 = alloca %struct.addrinfo, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca [160 x i8], align 16
%16 = alloca [160 x i8], align 16
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%19 = load i32, ptr %4, align 4
%20 = icmp ne i32 %19, 2
br i1 %20, label %21, label %25
21: ; preds = %2
%22 = load i32, ptr @stderr, align 4
%23 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %22, ptr noundef @.str)
%24 = call i32 @exit(i32 noundef 1) #3
unreachable
25: ; preds = %2
%26 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef 32)
%27 = load i32, ptr @AF_INET, align 4
%28 = getelementptr inbounds %struct.addrinfo, ptr %12, i32 0, i32 4
store i32 %27, ptr %28, align 8
%29 = load i32, ptr @SOCK_DGRAM, align 4
%30 = getelementptr inbounds %struct.addrinfo, ptr %12, i32 0, i32 3
store i32 %29, ptr %30, align 4
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = call i32 @getaddrinfo(ptr noundef %33, ptr noundef @.str.1, ptr noundef %12, ptr noundef %13)
store i32 %34, ptr %17, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %41
36: ; preds = %25
%37 = load i32, ptr @stderr, align 4
%38 = load i32, ptr %17, align 4
%39 = call ptr @gai_strerror(i32 noundef %38)
%40 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.2, ptr noundef %39)
store i32 1, ptr %3, align 4
br label %172
41: ; preds = %25
%42 = load ptr, ptr %13, align 8
store ptr %42, ptr %14, align 8
br label %43
43: ; preds = %61, %41
%44 = load ptr, ptr %14, align 8
%45 = icmp ne ptr %44, null
br i1 %45, label %46, label %65
46: ; preds = %43
%47 = load ptr, ptr %14, align 8
%48 = getelementptr inbounds %struct.addrinfo, ptr %47, i32 0, i32 4
%49 = load i32, ptr %48, align 8
%50 = load ptr, ptr %14, align 8
%51 = getelementptr inbounds %struct.addrinfo, ptr %50, i32 0, i32 3
%52 = load i32, ptr %51, align 4
%53 = load ptr, ptr %14, align 8
%54 = getelementptr inbounds %struct.addrinfo, ptr %53, i32 0, i32 2
%55 = load i32, ptr %54, align 8
%56 = call i32 @socket(i32 noundef %49, i32 noundef %52, i32 noundef %55)
store i32 %56, ptr %6, align 4
%57 = icmp eq i32 %56, -1
br i1 %57, label %58, label %60
58: ; preds = %46
%59 = call i32 @perror(ptr noundef @.str.3)
br label %61
60: ; preds = %46
br label %65
61: ; preds = %58
%62 = load ptr, ptr %14, align 8
%63 = getelementptr inbounds %struct.addrinfo, ptr %62, i32 0, i32 5
%64 = load ptr, ptr %63, align 8
store ptr %64, ptr %14, align 8
br label %43, !llvm.loop !6
65: ; preds = %60, %43
%66 = load ptr, ptr %14, align 8
%67 = icmp eq ptr %66, null
br i1 %67, label %68, label %71
68: ; preds = %65
%69 = load i32, ptr @stderr, align 4
%70 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %69, ptr noundef @.str.4)
store i32 2, ptr %3, align 4
br label %172
71: ; preds = %65
%72 = load i32, ptr %6, align 4
%73 = getelementptr inbounds [1 x %struct.pollfd], ptr %11, i64 0, i64 0
%74 = getelementptr inbounds %struct.pollfd, ptr %73, i32 0, i32 0
store i32 %72, ptr %74, align 4
%75 = load i32, ptr @stdin, align 4
%76 = call i32 @fileno(i32 noundef %75)
%77 = getelementptr inbounds [1 x %struct.pollfd], ptr %11, i64 0, i64 1
%78 = getelementptr inbounds %struct.pollfd, ptr %77, i32 0, i32 0
store i32 %76, ptr %78, align 4
%79 = load i32, ptr @POLLRDNORM, align 4
%80 = getelementptr inbounds [1 x %struct.pollfd], ptr %11, i64 0, i64 0
%81 = getelementptr inbounds %struct.pollfd, ptr %80, i32 0, i32 1
store i32 %79, ptr %81, align 4
%82 = load i32, ptr @POLLIN, align 4
%83 = getelementptr inbounds [1 x %struct.pollfd], ptr %11, i64 0, i64 1
%84 = getelementptr inbounds %struct.pollfd, ptr %83, i32 0, i32 1
store i32 %82, ptr %84, align 4
%85 = load i32, ptr %6, align 4
%86 = load ptr, ptr %14, align 8
%87 = getelementptr inbounds %struct.addrinfo, ptr %86, i32 0, i32 1
%88 = load i32, ptr %87, align 4
%89 = load ptr, ptr %14, align 8
%90 = getelementptr inbounds %struct.addrinfo, ptr %89, i32 0, i32 0
%91 = load i32, ptr %90, align 8
%92 = call i32 @sendto(i32 noundef %85, ptr noundef null, i32 noundef 0, i32 noundef 0, i32 noundef %88, i32 noundef %91)
store i32 %92, ptr %18, align 4
%93 = icmp eq i32 %92, -1
br i1 %93, label %94, label %96
94: ; preds = %71
%95 = call i32 @perror(ptr noundef @.str.5)
br label %96
96: ; preds = %94, %71
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %98
98: ; preds = %168, %121, %96
%99 = getelementptr inbounds [160 x i8], ptr %15, i64 0, i64 0
%100 = load i8, ptr %99, align 16
%101 = sext i8 %100 to i32
%102 = icmp ne i32 %101, 26
br i1 %102, label %103, label %169
103: ; preds = %98
%104 = getelementptr inbounds [1 x %struct.pollfd], ptr %11, i64 0, i64 0
%105 = call i32 @poll(ptr noundef %104, i32 noundef 2, i32 noundef 5)
store i32 %105, ptr %9, align 4
%106 = load i32, ptr %9, align 4
%107 = icmp sgt i32 %106, 0
br i1 %107, label %108, label %109
108: ; preds = %103
br label %109
109: ; preds = %108, %103
%110 = getelementptr inbounds [1 x %struct.pollfd], ptr %11, i64 0, i64 1
%111 = getelementptr inbounds %struct.pollfd, ptr %110, i32 0, i32 2
%112 = load i32, ptr %111, align 4
%113 = load i32, ptr @POLLIN, align 4
%114 = and i32 %112, %113
%115 = icmp ne i32 %114, 0
br i1 %115, label %116, label %148
116: ; preds = %109
%117 = getelementptr inbounds [160 x i8], ptr %15, i64 0, i64 0
%118 = load i32, ptr @stdin, align 4
%119 = call ptr @fgets(ptr noundef %117, i32 noundef 160, i32 noundef %118)
%120 = icmp eq ptr %119, null
br i1 %120, label %121, label %125
121: ; preds = %116
%122 = load i32, ptr %6, align 4
%123 = load i32, ptr @SHUT_WR, align 4
%124 = call i32 @shutdown(i32 noundef %122, i32 noundef %123)
br label %98, !llvm.loop !8
125: ; preds = %116
%126 = getelementptr inbounds [160 x i8], ptr %15, i64 0, i64 0
%127 = call i32 @strlen(ptr noundef %126)
%128 = sub nsw i32 %127, 1
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [160 x i8], ptr %15, i64 0, i64 %129
store i8 0, ptr %130, align 1
%131 = load i32, ptr %6, align 4
%132 = getelementptr inbounds [160 x i8], ptr %15, i64 0, i64 0
%133 = getelementptr inbounds [160 x i8], ptr %15, i64 0, i64 0
%134 = call i32 @strlen(ptr noundef %133)
%135 = load ptr, ptr %14, align 8
%136 = getelementptr inbounds %struct.addrinfo, ptr %135, i32 0, i32 1
%137 = load i32, ptr %136, align 4
%138 = load ptr, ptr %14, align 8
%139 = getelementptr inbounds %struct.addrinfo, ptr %138, i32 0, i32 0
%140 = load i32, ptr %139, align 8
%141 = call i32 @sendto(i32 noundef %131, ptr noundef %132, i32 noundef %134, i32 noundef 0, i32 noundef %137, i32 noundef %140)
store i32 %141, ptr %18, align 4
%142 = icmp eq i32 %141, -1
br i1 %142, label %143, label %146
143: ; preds = %125
%144 = call i32 @perror(ptr noundef @.str.5)
%145 = call i32 @exit(i32 noundef 1) #3
unreachable
146: ; preds = %125
br label %147
147: ; preds = %146
br label %168
148: ; preds = %109
%149 = getelementptr inbounds [1 x %struct.pollfd], ptr %11, i64 0, i64 0
%150 = getelementptr inbounds %struct.pollfd, ptr %149, i32 0, i32 2
%151 = load i32, ptr %150, align 4
%152 = load i32, ptr @POLLRDNORM, align 4
%153 = and i32 %151, %152
%154 = icmp ne i32 %153, 0
br i1 %154, label %155, label %167
155: ; preds = %148
%156 = load i32, ptr %6, align 4
%157 = getelementptr inbounds [10240 x i8], ptr %7, i64 0, i64 0
%158 = call i32 @recvfrom(i32 noundef %156, ptr noundef %157, i32 noundef 10240, i32 noundef 0, ptr noundef null, ptr noundef null)
store i32 %158, ptr %8, align 4
%159 = load i32, ptr %8, align 4
%160 = icmp slt i32 %159, 0
br i1 %160, label %161, label %164
161: ; preds = %155
%162 = call i32 @perror(ptr noundef @.str.7)
%163 = call i32 @exit(i32 noundef 1) #3
unreachable
164: ; preds = %155
%165 = getelementptr inbounds [10240 x i8], ptr %7, i64 0, i64 0
%166 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %165)
br label %167
167: ; preds = %164, %148
br label %168
168: ; preds = %167, %147
br label %98, !llvm.loop !8
169: ; preds = %98
%170 = load i32, ptr %6, align 4
%171 = call i32 @close(i32 noundef %170)
store i32 0, ptr %3, align 4
br label %172
172: ; preds = %169, %68, %36
%173 = load i32, ptr %3, align 4
ret i32 %173
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fileno(i32 noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @poll(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @shutdown(i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @recvfrom(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpi_24m8i6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pollfd = type { i32, i32, i32 }
%struct.addrinfo = type { i32, i32, i32, i32, i32, ptr }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [27 x i8] c"usage: talker hostname/IP\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"3300\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"getaddrinfo: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"talker: socket\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"talker: failed to bind socket\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@POLLRDNORM = dso_local global i32 0, align 4
@POLLIN = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [15 x i8] c"talker: sendto\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"zero byte sent\0A\00", align 1
@SHUT_WR = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [20 x i8] c"Problem in recvfrom\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"%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 i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [10240 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [1 x %struct.pollfd], align 4
%12 = alloca %struct.addrinfo, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca [160 x i8], align 16
%16 = alloca [160 x i8], align 16
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%19 = load i32, ptr %4, align 4
%20 = icmp ne i32 %19, 2
br i1 %20, label %21, label %25
21: ; preds = %2
%22 = load i32, ptr @stderr, align 4
%23 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %22, ptr noundef @.str)
%24 = call i32 @exit(i32 noundef 1) #3
unreachable
25: ; preds = %2
%26 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef 32)
%27 = load i32, ptr @AF_INET, align 4
%28 = getelementptr inbounds %struct.addrinfo, ptr %12, i32 0, i32 4
store i32 %27, ptr %28, align 8
%29 = load i32, ptr @SOCK_DGRAM, align 4
%30 = getelementptr inbounds %struct.addrinfo, ptr %12, i32 0, i32 3
store i32 %29, ptr %30, align 4
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = call i32 @getaddrinfo(ptr noundef %33, ptr noundef @.str.1, ptr noundef %12, ptr noundef %13)
store i32 %34, ptr %17, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %41
36: ; preds = %25
%37 = load i32, ptr @stderr, align 4
%38 = load i32, ptr %17, align 4
%39 = call ptr @gai_strerror(i32 noundef %38)
%40 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.2, ptr noundef %39)
store i32 1, ptr %3, align 4
br label %175
41: ; preds = %25
%42 = load ptr, ptr %13, align 8
store ptr %42, ptr %14, align 8
%43 = load ptr, ptr %14, align 8
%44 = icmp ne ptr %43, null
br i1 %44, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %41
br label %45
45: ; preds = %.lr.ph, %60
%46 = load ptr, ptr %14, align 8
%47 = getelementptr inbounds %struct.addrinfo, ptr %46, i32 0, i32 4
%48 = load i32, ptr %47, align 8
%49 = load ptr, ptr %14, align 8
%50 = getelementptr inbounds %struct.addrinfo, ptr %49, i32 0, i32 3
%51 = load i32, ptr %50, align 4
%52 = load ptr, ptr %14, align 8
%53 = getelementptr inbounds %struct.addrinfo, ptr %52, i32 0, i32 2
%54 = load i32, ptr %53, align 8
%55 = call i32 @socket(i32 noundef %48, i32 noundef %51, i32 noundef %54)
store i32 %55, ptr %6, align 4
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %59
57: ; preds = %45
%58 = call i32 @perror(ptr noundef @.str.3)
br label %60
59: ; preds = %45
br label %66
60: ; preds = %57
%61 = load ptr, ptr %14, align 8
%62 = getelementptr inbounds %struct.addrinfo, ptr %61, i32 0, i32 5
%63 = load ptr, ptr %62, align 8
store ptr %63, ptr %14, align 8
%64 = load ptr, ptr %14, align 8
%65 = icmp ne ptr %64, null
br i1 %65, label %45, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %60
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %41
br label %66
66: ; preds = %.loopexit, %59
%67 = load ptr, ptr %14, 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 (i32, ptr, ...) @fprintf(i32 noundef %70, ptr noundef @.str.4)
store i32 2, ptr %3, align 4
br label %175
72: ; preds = %66
%73 = load i32, ptr %6, align 4
%74 = getelementptr inbounds [1 x %struct.pollfd], ptr %11, i64 0, i64 0
%75 = getelementptr inbounds %struct.pollfd, ptr %74, i32 0, i32 0
store i32 %73, ptr %75, align 4
%76 = load i32, ptr @stdin, align 4
%77 = call i32 @fileno(i32 noundef %76)
%78 = getelementptr inbounds [1 x %struct.pollfd], ptr %11, i64 0, i64 1
%79 = getelementptr inbounds %struct.pollfd, ptr %78, i32 0, i32 0
store i32 %77, ptr %79, align 4
%80 = load i32, ptr @POLLRDNORM, align 4
%81 = getelementptr inbounds [1 x %struct.pollfd], ptr %11, i64 0, i64 0
%82 = getelementptr inbounds %struct.pollfd, ptr %81, i32 0, i32 1
store i32 %80, ptr %82, align 4
%83 = load i32, ptr @POLLIN, align 4
%84 = getelementptr inbounds [1 x %struct.pollfd], ptr %11, i64 0, i64 1
%85 = getelementptr inbounds %struct.pollfd, ptr %84, i32 0, i32 1
store i32 %83, ptr %85, align 4
%86 = load i32, ptr %6, align 4
%87 = load ptr, ptr %14, align 8
%88 = getelementptr inbounds %struct.addrinfo, ptr %87, i32 0, i32 1
%89 = load i32, ptr %88, align 4
%90 = load ptr, ptr %14, align 8
%91 = getelementptr inbounds %struct.addrinfo, ptr %90, i32 0, i32 0
%92 = load i32, ptr %91, align 8
%93 = call i32 @sendto(i32 noundef %86, ptr noundef null, i32 noundef 0, i32 noundef 0, i32 noundef %89, i32 noundef %92)
store i32 %93, ptr %18, align 4
%94 = icmp eq i32 %93, -1
br i1 %94, label %95, label %97
95: ; preds = %72
%96 = call i32 @perror(ptr noundef @.str.5)
br label %97
97: ; preds = %95, %72
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%99 = getelementptr inbounds [160 x i8], ptr %15, i64 0, i64 0
%100 = load i8, ptr %99, align 16
%101 = sext i8 %100 to i32
%102 = icmp ne i32 %101, 26
br i1 %102, label %.lr.ph1, label %172
.lr.ph1: ; preds = %97
br label %103
103: ; preds = %.lr.ph1, %.backedge
%104 = getelementptr inbounds [1 x %struct.pollfd], ptr %11, i64 0, i64 0
%105 = call i32 @poll(ptr noundef %104, i32 noundef 2, i32 noundef 5)
store i32 %105, ptr %9, align 4
%106 = load i32, ptr %9, align 4
%107 = icmp sgt i32 %106, 0
br i1 %107, label %108, label %109
108: ; preds = %103
br label %109
109: ; preds = %108, %103
%110 = getelementptr inbounds [1 x %struct.pollfd], ptr %11, i64 0, i64 1
%111 = getelementptr inbounds %struct.pollfd, ptr %110, i32 0, i32 2
%112 = load i32, ptr %111, align 4
%113 = load i32, ptr @POLLIN, align 4
%114 = and i32 %112, %113
%115 = icmp ne i32 %114, 0
br i1 %115, label %116, label %151
116: ; preds = %109
%117 = getelementptr inbounds [160 x i8], ptr %15, i64 0, i64 0
%118 = load i32, ptr @stdin, align 4
%119 = call ptr @fgets(ptr noundef %117, i32 noundef 160, i32 noundef %118)
%120 = icmp eq ptr %119, null
br i1 %120, label %121, label %128
121: ; preds = %116
%122 = load i32, ptr %6, align 4
%123 = load i32, ptr @SHUT_WR, align 4
%124 = call i32 @shutdown(i32 noundef %122, i32 noundef %123)
br label %.backedge
.backedge: ; preds = %121, %171
%125 = load i8, ptr %99, align 16
%126 = sext i8 %125 to i32
%127 = icmp ne i32 %126, 26
br i1 %127, label %103, label %._crit_edge, !llvm.loop !8
128: ; preds = %116
%129 = getelementptr inbounds [160 x i8], ptr %15, i64 0, i64 0
%130 = call i32 @strlen(ptr noundef %129)
%131 = sub nsw i32 %130, 1
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [160 x i8], ptr %15, i64 0, i64 %132
store i8 0, ptr %133, align 1
%134 = load i32, ptr %6, align 4
%135 = getelementptr inbounds [160 x i8], ptr %15, i64 0, i64 0
%136 = getelementptr inbounds [160 x i8], ptr %15, i64 0, i64 0
%137 = call i32 @strlen(ptr noundef %136)
%138 = load ptr, ptr %14, align 8
%139 = getelementptr inbounds %struct.addrinfo, ptr %138, i32 0, i32 1
%140 = load i32, ptr %139, align 4
%141 = load ptr, ptr %14, align 8
%142 = getelementptr inbounds %struct.addrinfo, ptr %141, i32 0, i32 0
%143 = load i32, ptr %142, align 8
%144 = call i32 @sendto(i32 noundef %134, ptr noundef %135, i32 noundef %137, i32 noundef 0, i32 noundef %140, i32 noundef %143)
store i32 %144, ptr %18, align 4
%145 = icmp eq i32 %144, -1
br i1 %145, label %146, label %149
146: ; preds = %128
%147 = call i32 @perror(ptr noundef @.str.5)
%148 = call i32 @exit(i32 noundef 1) #3
unreachable
149: ; preds = %128
br label %150
150: ; preds = %149
br label %171
151: ; preds = %109
%152 = getelementptr inbounds [1 x %struct.pollfd], ptr %11, i64 0, i64 0
%153 = getelementptr inbounds %struct.pollfd, ptr %152, i32 0, i32 2
%154 = load i32, ptr %153, align 4
%155 = load i32, ptr @POLLRDNORM, align 4
%156 = and i32 %154, %155
%157 = icmp ne i32 %156, 0
br i1 %157, label %158, label %170
158: ; preds = %151
%159 = load i32, ptr %6, align 4
%160 = getelementptr inbounds [10240 x i8], ptr %7, i64 0, i64 0
%161 = call i32 @recvfrom(i32 noundef %159, ptr noundef %160, i32 noundef 10240, i32 noundef 0, ptr noundef null, ptr noundef null)
store i32 %161, ptr %8, align 4
%162 = load i32, ptr %8, align 4
%163 = icmp slt i32 %162, 0
br i1 %163, label %164, label %167
164: ; preds = %158
%165 = call i32 @perror(ptr noundef @.str.7)
%166 = call i32 @exit(i32 noundef 1) #3
unreachable
167: ; preds = %158
%168 = getelementptr inbounds [10240 x i8], ptr %7, i64 0, i64 0
%169 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %168)
br label %170
170: ; preds = %167, %151
br label %171
171: ; preds = %170, %150
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %172
172: ; preds = %._crit_edge, %97
%173 = load i32, ptr %6, align 4
%174 = call i32 @close(i32 noundef %173)
store i32 0, ptr %3, align 4
br label %175
175: ; preds = %172, %69, %36
%176 = load i32, ptr %3, align 4
ret i32 %176
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fileno(i32 noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @poll(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @shutdown(i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @recvfrom(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpc6ufyuw4.c'
source_filename = "/tmp/tmpc6ufyuw4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"malloc\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xt_core_string_append(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @assert(ptr noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = call i64 @strlen(ptr noundef %11)
store i64 %12, ptr %6, align 8
%13 = load ptr, ptr %3, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %45
15: ; preds = %2
%16 = load ptr, ptr %3, align 8
%17 = call i64 @strlen(ptr noundef %16)
store i64 %17, ptr %7, align 8
%18 = load i64, ptr %7, align 8
%19 = load i64, ptr %6, align 8
%20 = add i64 %18, %19
store i64 %20, ptr %8, align 8
%21 = load i64, ptr %8, align 8
%22 = add i64 %21, 1
%23 = call ptr @malloc(i64 noundef %22)
store ptr %23, ptr %5, align 8
%24 = load ptr, ptr %5, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %40
26: ; preds = %15
%27 = load ptr, ptr %5, align 8
%28 = load ptr, ptr %3, align 8
%29 = load i64, ptr %7, align 8
%30 = call i32 @memcpy(ptr noundef %27, ptr noundef %28, i64 noundef %29)
%31 = load ptr, ptr %5, align 8
%32 = load i64, ptr %7, align 8
%33 = getelementptr inbounds i8, ptr %31, i64 %32
%34 = load ptr, ptr %4, align 8
%35 = load i64, ptr %6, align 8
%36 = call i32 @memcpy(ptr noundef %33, ptr noundef %34, i64 noundef %35)
%37 = load ptr, ptr %5, align 8
%38 = load i64, ptr %8, align 8
%39 = getelementptr inbounds i8, ptr %37, i64 %38
store i8 0, ptr %39, align 1
br label %42
40: ; preds = %15
%41 = call i32 @xt_core_trace(ptr noundef @.str)
br label %42
42: ; preds = %40, %26
%43 = load ptr, ptr %3, align 8
%44 = call i32 @free(ptr noundef %43)
br label %62
45: ; preds = %2
%46 = load i64, ptr %6, align 8
%47 = add i64 %46, 1
%48 = call ptr @malloc(i64 noundef %47)
store ptr %48, ptr %5, align 8
%49 = load ptr, ptr %5, align 8
%50 = icmp ne ptr %49, null
br i1 %50, label %51, label %59
51: ; preds = %45
%52 = load ptr, ptr %5, align 8
%53 = load ptr, ptr %4, align 8
%54 = load i64, ptr %6, align 8
%55 = call i32 @memcpy(ptr noundef %52, ptr noundef %53, i64 noundef %54)
%56 = load ptr, ptr %5, align 8
%57 = load i64, ptr %6, align 8
%58 = getelementptr inbounds i8, ptr %56, i64 %57
store i8 0, ptr %58, align 1
br label %61
59: ; preds = %45
%60 = call i32 @xt_core_trace(ptr noundef @.str)
br label %61
61: ; preds = %59, %51
br label %62
62: ; preds = %61, %42
%63 = load ptr, ptr %5, align 8
ret ptr %63
}
declare i32 @assert(ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @xt_core_trace(ptr 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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpc6ufyuw4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"malloc\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xt_core_string_append(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @assert(ptr noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = call i64 @strlen(ptr noundef %11)
store i64 %12, ptr %6, align 8
%13 = load ptr, ptr %3, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %45
15: ; preds = %2
%16 = load ptr, ptr %3, align 8
%17 = call i64 @strlen(ptr noundef %16)
store i64 %17, ptr %7, align 8
%18 = load i64, ptr %7, align 8
%19 = load i64, ptr %6, align 8
%20 = add i64 %18, %19
store i64 %20, ptr %8, align 8
%21 = load i64, ptr %8, align 8
%22 = add i64 %21, 1
%23 = call ptr @malloc(i64 noundef %22)
store ptr %23, ptr %5, align 8
%24 = load ptr, ptr %5, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %40
26: ; preds = %15
%27 = load ptr, ptr %5, align 8
%28 = load ptr, ptr %3, align 8
%29 = load i64, ptr %7, align 8
%30 = call i32 @memcpy(ptr noundef %27, ptr noundef %28, i64 noundef %29)
%31 = load ptr, ptr %5, align 8
%32 = load i64, ptr %7, align 8
%33 = getelementptr inbounds i8, ptr %31, i64 %32
%34 = load ptr, ptr %4, align 8
%35 = load i64, ptr %6, align 8
%36 = call i32 @memcpy(ptr noundef %33, ptr noundef %34, i64 noundef %35)
%37 = load ptr, ptr %5, align 8
%38 = load i64, ptr %8, align 8
%39 = getelementptr inbounds i8, ptr %37, i64 %38
store i8 0, ptr %39, align 1
br label %42
40: ; preds = %15
%41 = call i32 @xt_core_trace(ptr noundef @.str)
br label %42
42: ; preds = %40, %26
%43 = load ptr, ptr %3, align 8
%44 = call i32 @free(ptr noundef %43)
br label %62
45: ; preds = %2
%46 = load i64, ptr %6, align 8
%47 = add i64 %46, 1
%48 = call ptr @malloc(i64 noundef %47)
store ptr %48, ptr %5, align 8
%49 = load ptr, ptr %5, align 8
%50 = icmp ne ptr %49, null
br i1 %50, label %51, label %59
51: ; preds = %45
%52 = load ptr, ptr %5, align 8
%53 = load ptr, ptr %4, align 8
%54 = load i64, ptr %6, align 8
%55 = call i32 @memcpy(ptr noundef %52, ptr noundef %53, i64 noundef %54)
%56 = load ptr, ptr %5, align 8
%57 = load i64, ptr %6, align 8
%58 = getelementptr inbounds i8, ptr %56, i64 %57
store i8 0, ptr %58, align 1
br label %61
59: ; preds = %45
%60 = call i32 @xt_core_trace(ptr noundef @.str)
br label %61
61: ; preds = %59, %51
br label %62
62: ; preds = %61, %42
%63 = load ptr, ptr %5, align 8
ret ptr %63
}
declare i32 @assert(ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @xt_core_trace(ptr 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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp3nyuo2o0.c'
source_filename = "/tmp/tmp3nyuo2o0.c"
target datalayout = "e-m:e-p270: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/tmp3nyuo2o0.c"
target datalayout = "e-m:e-p270: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/tmpl18vsv92.c'
source_filename = "/tmp/tmpl18vsv92.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_CRIT = dso_local global i32 0, align 4
@LOG_DEBUG = dso_local global i32 0, align 4
@LOG_ERR = dso_local global i32 0, align 4
@LOG_INFO = dso_local global i32 0, align 4
@LOG_WARNING = 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/tmpl18vsv92.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_CRIT = dso_local global i32 0, align 4
@LOG_DEBUG = dso_local global i32 0, align 4
@LOG_ERR = dso_local global i32 0, align 4
@LOG_INFO = dso_local global i32 0, align 4
@LOG_WARNING = 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/tmppluomthy.c'
source_filename = "/tmp/tmppluomthy.c"
target datalayout = "e-m:e-p270: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"b() called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @b(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = load i32, ptr %2, align 4
%5 = call i32 @__print_int(i32 noundef %4)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @__print_int(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/tmppluomthy.c"
target datalayout = "e-m:e-p270: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"b() called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @b(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = load i32, ptr %2, align 4
%5 = call i32 @__print_int(i32 noundef %4)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @__print_int(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/tmp559pmx2x.c'
source_filename = "/tmp/tmp559pmx2x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XEvent_xdestroywindow_serial(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_4__, ptr %6, i32 0, i32 0
%8 = getelementptr inbounds %struct.TYPE_3__, ptr %7, i32 0, i32 0
store i64 %5, ptr %8, align 8
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/tmp559pmx2x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XEvent_xdestroywindow_serial(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_4__, ptr %6, i32 0, i32 0
%8 = getelementptr inbounds %struct.TYPE_3__, ptr %7, i32 0, i32 0
store i64 %5, ptr %8, align 8
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/tmpltwkfk1b.c'
source_filename = "/tmp/tmpltwkfk1b.c"
target datalayout = "e-m:e-p270: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/tmpltwkfk1b.c"
target datalayout = "e-m:e-p270: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/tmpoere2uwn.c'
source_filename = "/tmp/tmpoere2uwn.c"
target datalayout = "e-m:e-p270: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/tmpoere2uwn.c"
target datalayout = "e-m:e-p270: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/tmp6q7z2jtt.c'
source_filename = "/tmp/tmp6q7z2jtt.c"
target datalayout = "e-m:e-p270: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/tmp6q7z2jtt.c"
target datalayout = "e-m:e-p270: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/tmpaeypw4nt.c'
source_filename = "/tmp/tmpaeypw4nt.c"
target datalayout = "e-m:e-p270: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 [88 x i8] c"To install emacs on PPC you must run the following command\0Asudo /usr/libexec/dumpemacs\0A\00", align 1
@stderr = dso_local global i32 0, align 4
; 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 = load i32, ptr @stderr, align 4
%3 = call i32 @fputs(ptr noundef @.str, i32 noundef %2)
%4 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fputs(ptr noundef, i32 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/tmpaeypw4nt.c"
target datalayout = "e-m:e-p270: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 [88 x i8] c"To install emacs on PPC you must run the following command\0Asudo /usr/libexec/dumpemacs\0A\00", align 1
@stderr = dso_local global i32 0, align 4
; 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 = load i32, ptr @stderr, align 4
%3 = call i32 @fputs(ptr noundef @.str, i32 noundef %2)
%4 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fputs(ptr noundef, i32 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/tmpdmxchjst.c'
source_filename = "/tmp/tmpdmxchjst.c"
target datalayout = "e-m:e-p270: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_netinet_raw_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/tmpdmxchjst.c"
target datalayout = "e-m:e-p270: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_netinet_raw_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/tmp9ndnhj_y.c'
source_filename = "/tmp/tmp9ndnhj_y.c"
target datalayout = "e-m:e-p270: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/tmp9ndnhj_y.c"
target datalayout = "e-m:e-p270: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/tmpo1rgma4j.c'
source_filename = "/tmp/tmpo1rgma4j.c"
target datalayout = "e-m:e-p270: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 @norm_vector(ptr noundef %0, i32 noundef %1, double noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store double %2, ptr %6, align 8
store double 0.000000e+00, ptr %7, align 8
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr null, %11
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
%15 = load i32, ptr %5, align 4
%16 = icmp sge i32 %15, 0
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 noundef %17)
store i32 0, ptr %9, align 4
br label %19
19: ; preds = %31, %3
%20 = load i32, ptr %9, align 4
%21 = load i32, ptr %5, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %34
23: ; preds = %19
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %9, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds double, ptr %24, i64 %26
%28 = load double, ptr %27, align 8
%29 = load double, ptr %7, align 8
%30 = fadd double %29, %28
store double %30, ptr %7, align 8
br label %31
31: ; preds = %23
%32 = load i32, ptr %9, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %9, align 4
br label %19, !llvm.loop !6
34: ; preds = %19
%35 = load double, ptr %6, align 8
%36 = load double, ptr %7, align 8
%37 = fdiv double %35, %36
store double %37, ptr %8, align 8
store i32 0, ptr %10, align 4
br label %38
38: ; preds = %50, %34
%39 = load i32, ptr %10, align 4
%40 = load i32, ptr %5, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %53
42: ; preds = %38
%43 = load double, ptr %8, align 8
%44 = load ptr, ptr %4, align 8
%45 = load i32, ptr %10, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, ptr %44, i64 %46
%48 = load double, ptr %47, align 8
%49 = fmul double %48, %43
store double %49, ptr %47, align 8
br label %50
50: ; preds = %42
%51 = load i32, ptr %10, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %10, align 4
br label %38, !llvm.loop !8
53: ; preds = %38
%54 = load ptr, ptr %4, align 8
ret ptr %54
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo1rgma4j.c"
target datalayout = "e-m:e-p270: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 @norm_vector(ptr noundef %0, i32 noundef %1, double noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store double %2, ptr %6, align 8
store double 0.000000e+00, ptr %7, align 8
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr null, %11
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
%15 = load i32, ptr %5, align 4
%16 = icmp sge i32 %15, 0
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 noundef %17)
store i32 0, ptr %9, align 4
%19 = load i32, ptr %9, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %36
.lr.ph: ; preds = %3
br label %22
22: ; preds = %.lr.ph, %30
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %9, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds double, ptr %23, i64 %25
%27 = load double, ptr %26, align 8
%28 = load double, ptr %7, align 8
%29 = fadd double %28, %27
store double %29, ptr %7, align 8
br label %30
30: ; preds = %22
%31 = load i32, ptr %9, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %9, align 4
%33 = load i32, ptr %9, align 4
%34 = load i32, ptr %5, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %3
%37 = load double, ptr %6, align 8
%38 = load double, ptr %7, align 8
%39 = fdiv double %37, %38
store double %39, ptr %8, align 8
store i32 0, ptr %10, align 4
%40 = load i32, ptr %10, align 4
%41 = load i32, ptr %5, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %.lr.ph2, label %57
.lr.ph2: ; preds = %36
br label %43
43: ; preds = %.lr.ph2, %51
%44 = load double, ptr %8, align 8
%45 = load ptr, ptr %4, align 8
%46 = load i32, ptr %10, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, ptr %45, i64 %47
%49 = load double, ptr %48, align 8
%50 = fmul double %49, %44
store double %50, ptr %48, align 8
br label %51
51: ; preds = %43
%52 = load i32, ptr %10, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %10, align 4
%54 = load i32, ptr %10, align 4
%55 = load i32, ptr %5, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %43, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %57
57: ; preds = %._crit_edge3, %36
%58 = load ptr, ptr %4, align 8
ret ptr %58
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpbv3mcgpt.c'
source_filename = "/tmp/tmpbv3mcgpt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%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
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
br label %3
3: ; preds = %9, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 100
br i1 %5, label %6, label %12
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
br label %9
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 2
store i32 %11, ptr %2, align 4
br label %3, !llvm.loop !6
12: ; preds = %3
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbv3mcgpt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%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
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 100
br i1 %4, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %8
%6 = load i32, ptr %2, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
br label %8
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 2
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %11, 100
br i1 %12, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %13
13: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1mix8w0g.c'
source_filename = "/tmp/tmp1mix8w0g.c"
target datalayout = "e-m:e-p270: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 @N64CalcCRC(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%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 i32, align 4
%11 = alloca i32, align 4
%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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%17 = load ptr, ptr %5, align 8
%18 = call i32 @N64GetCIC(ptr noundef %17)
store i32 %18, ptr %6, align 4
switch i32 %18, label %23 [
i32 6101, label %19
i32 6102, label %19
i32 6103, label %20
i32 6105, label %21
i32 6106, label %22
]
19: ; preds = %2, %2
store i32 -120959524, ptr %8, align 4
br label %24
20: ; preds = %2
store i32 -1551341735, ptr %8, align 4
br label %24
21: ; preds = %2
store i32 -551095242, ptr %8, align 4
br label %24
22: ; preds = %2
store i32 535454074, ptr %8, align 4
br label %24
23: ; preds = %2
store i32 1, ptr %3, align 4
br label %217
24: ; preds = %22, %21, %20, %19
%25 = load i32, ptr %8, align 4
store i32 %25, ptr %14, align 4
store i32 %25, ptr %13, align 4
store i32 %25, ptr %12, align 4
store i32 %25, ptr %11, align 4
store i32 %25, ptr %10, align 4
store i32 %25, ptr %9, align 4
store i32 4096, ptr %7, align 4
br label %26
26: ; preds = %161, %24
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %27, 1052672
br i1 %28, label %29, label %164
29: ; preds = %26
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %7, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = getelementptr inbounds i8, ptr %33, i64 0
%35 = load i8, ptr %34, align 1
%36 = zext i8 %35 to i32
%37 = shl i32 %36, 24
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %7, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
%42 = getelementptr inbounds i8, ptr %41, i64 1
%43 = load i8, ptr %42, align 1
%44 = zext i8 %43 to i32
%45 = shl i32 %44, 16
%46 = or i32 %37, %45
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %7, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
%51 = getelementptr inbounds i8, ptr %50, i64 2
%52 = load i8, ptr %51, align 1
%53 = zext i8 %52 to i32
%54 = shl i32 %53, 8
%55 = or i32 %46, %54
%56 = load ptr, ptr %5, align 8
%57 = load i32, ptr %7, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %56, i64 %58
%60 = getelementptr inbounds i8, ptr %59, i64 3
%61 = load i8, ptr %60, align 1
%62 = zext i8 %61 to i32
%63 = or i32 %55, %62
store i32 %63, ptr %16, align 4
%64 = load i32, ptr %14, align 4
%65 = load i32, ptr %16, align 4
%66 = add i32 %64, %65
%67 = load i32, ptr %14, align 4
%68 = icmp ult i32 %66, %67
br i1 %68, label %69, label %72
69: ; preds = %29
%70 = load i32, ptr %12, align 4
%71 = add i32 %70, 1
store i32 %71, ptr %12, align 4
br label %72
72: ; preds = %69, %29
%73 = load i32, ptr %16, align 4
%74 = load i32, ptr %14, align 4
%75 = add i32 %74, %73
store i32 %75, ptr %14, align 4
%76 = load i32, ptr %16, align 4
%77 = load i32, ptr %11, align 4
%78 = xor i32 %77, %76
store i32 %78, ptr %11, align 4
%79 = load i32, ptr %16, align 4
%80 = load i32, ptr %16, align 4
%81 = and i32 %80, 31
%82 = shl i32 %79, %81
%83 = load i32, ptr %16, align 4
%84 = load i32, ptr %16, align 4
%85 = and i32 %84, 31
%86 = sub i32 32, %85
%87 = lshr i32 %83, %86
%88 = or i32 %82, %87
store i32 %88, ptr %15, align 4
%89 = load i32, ptr %15, align 4
%90 = load i32, ptr %13, align 4
%91 = add i32 %90, %89
store i32 %91, ptr %13, align 4
%92 = load i32, ptr %10, align 4
%93 = load i32, ptr %16, align 4
%94 = icmp ugt i32 %92, %93
br i1 %94, label %95, label %99
95: ; preds = %72
%96 = load i32, ptr %15, align 4
%97 = load i32, ptr %10, align 4
%98 = xor i32 %97, %96
store i32 %98, ptr %10, align 4
br label %105
99: ; preds = %72
%100 = load i32, ptr %14, align 4
%101 = load i32, ptr %16, align 4
%102 = xor i32 %100, %101
%103 = load i32, ptr %10, align 4
%104 = xor i32 %103, %102
store i32 %104, ptr %10, align 4
br label %105
105: ; preds = %99, %95
%106 = load i32, ptr %6, align 4
%107 = icmp eq i32 %106, 6105
br i1 %107, label %108, label %155
108: ; preds = %105
%109 = load ptr, ptr %5, align 8
%110 = load i32, ptr %7, align 4
%111 = and i32 %110, 255
%112 = add nsw i32 1872, %111
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i8, ptr %109, i64 %113
%115 = getelementptr inbounds i8, ptr %114, i64 0
%116 = load i8, ptr %115, align 1
%117 = zext i8 %116 to i32
%118 = shl i32 %117, 24
%119 = load ptr, ptr %5, align 8
%120 = load i32, ptr %7, align 4
%121 = and i32 %120, 255
%122 = add nsw i32 1872, %121
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, ptr %119, i64 %123
%125 = getelementptr inbounds i8, ptr %124, i64 1
%126 = load i8, ptr %125, align 1
%127 = zext i8 %126 to i32
%128 = shl i32 %127, 16
%129 = or i32 %118, %128
%130 = load ptr, ptr %5, align 8
%131 = load i32, ptr %7, align 4
%132 = and i32 %131, 255
%133 = add nsw i32 1872, %132
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i8, ptr %130, i64 %134
%136 = getelementptr inbounds i8, ptr %135, i64 2
%137 = load i8, ptr %136, align 1
%138 = zext i8 %137 to i32
%139 = shl i32 %138, 8
%140 = or i32 %129, %139
%141 = load ptr, ptr %5, align 8
%142 = load i32, ptr %7, align 4
%143 = and i32 %142, 255
%144 = add nsw i32 1872, %143
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i8, ptr %141, i64 %145
%147 = getelementptr inbounds i8, ptr %146, i64 3
%148 = load i8, ptr %147, align 1
%149 = zext i8 %148 to i32
%150 = or i32 %140, %149
%151 = load i32, ptr %16, align 4
%152 = xor i32 %150, %151
%153 = load i32, ptr %9, align 4
%154 = add i32 %153, %152
store i32 %154, ptr %9, align 4
br label %161
155: ; preds = %105
%156 = load i32, ptr %13, align 4
%157 = load i32, ptr %16, align 4
%158 = xor i32 %156, %157
%159 = load i32, ptr %9, align 4
%160 = add i32 %159, %158
store i32 %160, ptr %9, align 4
br label %161
161: ; preds = %155, %108
%162 = load i32, ptr %7, align 4
%163 = add nsw i32 %162, 4
store i32 %163, ptr %7, align 4
br label %26, !llvm.loop !6
164: ; preds = %26
%165 = load i32, ptr %6, align 4
%166 = icmp eq i32 %165, 6103
br i1 %166, label %167, label %182
167: ; preds = %164
%168 = load i32, ptr %14, align 4
%169 = load i32, ptr %12, align 4
%170 = xor i32 %168, %169
%171 = load i32, ptr %11, align 4
%172 = add i32 %170, %171
%173 = load ptr, ptr %4, align 8
%174 = getelementptr inbounds i32, ptr %173, i64 0
store i32 %172, ptr %174, align 4
%175 = load i32, ptr %13, align 4
%176 = load i32, ptr %10, align 4
%177 = xor i32 %175, %176
%178 = load i32, ptr %9, align 4
%179 = add i32 %177, %178
%180 = load ptr, ptr %4, align 8
%181 = getelementptr inbounds i32, ptr %180, i64 1
store i32 %179, ptr %181, align 4
br label %216
182: ; preds = %164
%183 = load i32, ptr %6, align 4
%184 = icmp eq i32 %183, 6106
br i1 %184, label %185, label %200
185: ; preds = %182
%186 = load i32, ptr %14, align 4
%187 = load i32, ptr %12, align 4
%188 = mul i32 %186, %187
%189 = load i32, ptr %11, align 4
%190 = add i32 %188, %189
%191 = load ptr, ptr %4, align 8
%192 = getelementptr inbounds i32, ptr %191, i64 0
store i32 %190, ptr %192, align 4
%193 = load i32, ptr %13, align 4
%194 = load i32, ptr %10, align 4
%195 = mul i32 %193, %194
%196 = load i32, ptr %9, align 4
%197 = add i32 %195, %196
%198 = load ptr, ptr %4, align 8
%199 = getelementptr inbounds i32, ptr %198, i64 1
store i32 %197, ptr %199, align 4
br label %215
200: ; preds = %182
%201 = load i32, ptr %14, align 4
%202 = load i32, ptr %12, align 4
%203 = xor i32 %201, %202
%204 = load i32, ptr %11, align 4
%205 = xor i32 %203, %204
%206 = load ptr, ptr %4, align 8
%207 = getelementptr inbounds i32, ptr %206, i64 0
store i32 %205, ptr %207, align 4
%208 = load i32, ptr %13, align 4
%209 = load i32, ptr %10, align 4
%210 = xor i32 %208, %209
%211 = load i32, ptr %9, align 4
%212 = xor i32 %210, %211
%213 = load ptr, ptr %4, align 8
%214 = getelementptr inbounds i32, ptr %213, i64 1
store i32 %212, ptr %214, align 4
br label %215
215: ; preds = %200, %185
br label %216
216: ; preds = %215, %167
store i32 0, ptr %3, align 4
br label %217
217: ; preds = %216, %23
%218 = load i32, ptr %3, align 4
ret i32 %218
}
declare i32 @N64GetCIC(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/tmp1mix8w0g.c"
target datalayout = "e-m:e-p270: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 @N64CalcCRC(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%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 i32, align 4
%11 = alloca i32, align 4
%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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%17 = load ptr, ptr %5, align 8
%18 = call i32 @N64GetCIC(ptr noundef %17)
store i32 %18, ptr %6, align 4
switch i32 %18, label %23 [
i32 6101, label %19
i32 6102, label %19
i32 6103, label %20
i32 6105, label %21
i32 6106, label %22
]
19: ; preds = %2, %2
store i32 -120959524, ptr %8, align 4
br label %24
20: ; preds = %2
store i32 -1551341735, ptr %8, align 4
br label %24
21: ; preds = %2
store i32 -551095242, ptr %8, align 4
br label %24
22: ; preds = %2
store i32 535454074, ptr %8, align 4
br label %24
23: ; preds = %2
store i32 1, ptr %3, align 4
br label %218
24: ; preds = %22, %21, %20, %19
%25 = load i32, ptr %8, align 4
store i32 %25, ptr %14, align 4
store i32 %25, ptr %13, align 4
store i32 %25, ptr %12, align 4
store i32 %25, ptr %11, align 4
store i32 %25, ptr %10, align 4
store i32 %25, ptr %9, align 4
store i32 4096, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp slt i32 %26, 1052672
br i1 %27, label %.lr.ph, label %165
.lr.ph: ; preds = %24
br label %28
28: ; preds = %.lr.ph, %160
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = getelementptr inbounds i8, ptr %32, i64 0
%34 = load i8, ptr %33, align 1
%35 = zext i8 %34 to i32
%36 = shl i32 %35, 24
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = getelementptr inbounds i8, ptr %40, i64 1
%42 = load i8, ptr %41, align 1
%43 = zext i8 %42 to i32
%44 = shl i32 %43, 16
%45 = or i32 %36, %44
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %7, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
%50 = getelementptr inbounds i8, ptr %49, i64 2
%51 = load i8, ptr %50, align 1
%52 = zext i8 %51 to i32
%53 = shl i32 %52, 8
%54 = or i32 %45, %53
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %7, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %55, i64 %57
%59 = getelementptr inbounds i8, ptr %58, i64 3
%60 = load i8, ptr %59, align 1
%61 = zext i8 %60 to i32
%62 = or i32 %54, %61
store i32 %62, ptr %16, align 4
%63 = load i32, ptr %14, align 4
%64 = load i32, ptr %16, align 4
%65 = add i32 %63, %64
%66 = load i32, ptr %14, align 4
%67 = icmp ult i32 %65, %66
br i1 %67, label %68, label %71
68: ; preds = %28
%69 = load i32, ptr %12, align 4
%70 = add i32 %69, 1
store i32 %70, ptr %12, align 4
br label %71
71: ; preds = %68, %28
%72 = load i32, ptr %16, align 4
%73 = load i32, ptr %14, align 4
%74 = add i32 %73, %72
store i32 %74, ptr %14, align 4
%75 = load i32, ptr %16, align 4
%76 = load i32, ptr %11, align 4
%77 = xor i32 %76, %75
store i32 %77, ptr %11, align 4
%78 = load i32, ptr %16, align 4
%79 = load i32, ptr %16, align 4
%80 = and i32 %79, 31
%81 = shl i32 %78, %80
%82 = load i32, ptr %16, align 4
%83 = load i32, ptr %16, align 4
%84 = and i32 %83, 31
%85 = sub i32 32, %84
%86 = lshr i32 %82, %85
%87 = or i32 %81, %86
store i32 %87, ptr %15, align 4
%88 = load i32, ptr %15, align 4
%89 = load i32, ptr %13, align 4
%90 = add i32 %89, %88
store i32 %90, ptr %13, align 4
%91 = load i32, ptr %10, align 4
%92 = load i32, ptr %16, align 4
%93 = icmp ugt i32 %91, %92
br i1 %93, label %94, label %98
94: ; preds = %71
%95 = load i32, ptr %15, align 4
%96 = load i32, ptr %10, align 4
%97 = xor i32 %96, %95
store i32 %97, ptr %10, align 4
br label %104
98: ; preds = %71
%99 = load i32, ptr %14, align 4
%100 = load i32, ptr %16, align 4
%101 = xor i32 %99, %100
%102 = load i32, ptr %10, align 4
%103 = xor i32 %102, %101
store i32 %103, ptr %10, align 4
br label %104
104: ; preds = %98, %94
%105 = load i32, ptr %6, align 4
%106 = icmp eq i32 %105, 6105
br i1 %106, label %107, label %154
107: ; preds = %104
%108 = load ptr, ptr %5, align 8
%109 = load i32, ptr %7, align 4
%110 = and i32 %109, 255
%111 = add nsw i32 1872, %110
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8, ptr %108, i64 %112
%114 = getelementptr inbounds i8, ptr %113, i64 0
%115 = load i8, ptr %114, align 1
%116 = zext i8 %115 to i32
%117 = shl i32 %116, 24
%118 = load ptr, ptr %5, align 8
%119 = load i32, ptr %7, align 4
%120 = and i32 %119, 255
%121 = add nsw i32 1872, %120
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i8, ptr %118, i64 %122
%124 = getelementptr inbounds i8, ptr %123, i64 1
%125 = load i8, ptr %124, align 1
%126 = zext i8 %125 to i32
%127 = shl i32 %126, 16
%128 = or i32 %117, %127
%129 = load ptr, ptr %5, align 8
%130 = load i32, ptr %7, align 4
%131 = and i32 %130, 255
%132 = add nsw i32 1872, %131
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i8, ptr %129, i64 %133
%135 = getelementptr inbounds i8, ptr %134, i64 2
%136 = load i8, ptr %135, align 1
%137 = zext i8 %136 to i32
%138 = shl i32 %137, 8
%139 = or i32 %128, %138
%140 = load ptr, ptr %5, align 8
%141 = load i32, ptr %7, align 4
%142 = and i32 %141, 255
%143 = add nsw i32 1872, %142
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds i8, ptr %140, i64 %144
%146 = getelementptr inbounds i8, ptr %145, i64 3
%147 = load i8, ptr %146, align 1
%148 = zext i8 %147 to i32
%149 = or i32 %139, %148
%150 = load i32, ptr %16, align 4
%151 = xor i32 %149, %150
%152 = load i32, ptr %9, align 4
%153 = add i32 %152, %151
store i32 %153, ptr %9, align 4
br label %160
154: ; preds = %104
%155 = load i32, ptr %13, align 4
%156 = load i32, ptr %16, align 4
%157 = xor i32 %155, %156
%158 = load i32, ptr %9, align 4
%159 = add i32 %158, %157
store i32 %159, ptr %9, align 4
br label %160
160: ; preds = %154, %107
%161 = load i32, ptr %7, align 4
%162 = add nsw i32 %161, 4
store i32 %162, ptr %7, align 4
%163 = load i32, ptr %7, align 4
%164 = icmp slt i32 %163, 1052672
br i1 %164, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %160
br label %165
165: ; preds = %._crit_edge, %24
%166 = load i32, ptr %6, align 4
%167 = icmp eq i32 %166, 6103
br i1 %167, label %168, label %183
168: ; preds = %165
%169 = load i32, ptr %14, align 4
%170 = load i32, ptr %12, align 4
%171 = xor i32 %169, %170
%172 = load i32, ptr %11, align 4
%173 = add i32 %171, %172
%174 = load ptr, ptr %4, align 8
%175 = getelementptr inbounds i32, ptr %174, i64 0
store i32 %173, ptr %175, align 4
%176 = load i32, ptr %13, align 4
%177 = load i32, ptr %10, align 4
%178 = xor i32 %176, %177
%179 = load i32, ptr %9, align 4
%180 = add i32 %178, %179
%181 = load ptr, ptr %4, align 8
%182 = getelementptr inbounds i32, ptr %181, i64 1
store i32 %180, ptr %182, align 4
br label %217
183: ; preds = %165
%184 = load i32, ptr %6, align 4
%185 = icmp eq i32 %184, 6106
br i1 %185, label %186, label %201
186: ; preds = %183
%187 = load i32, ptr %14, align 4
%188 = load i32, ptr %12, align 4
%189 = mul i32 %187, %188
%190 = load i32, ptr %11, align 4
%191 = add i32 %189, %190
%192 = load ptr, ptr %4, align 8
%193 = getelementptr inbounds i32, ptr %192, i64 0
store i32 %191, ptr %193, align 4
%194 = load i32, ptr %13, align 4
%195 = load i32, ptr %10, align 4
%196 = mul i32 %194, %195
%197 = load i32, ptr %9, align 4
%198 = add i32 %196, %197
%199 = load ptr, ptr %4, align 8
%200 = getelementptr inbounds i32, ptr %199, i64 1
store i32 %198, ptr %200, align 4
br label %216
201: ; preds = %183
%202 = load i32, ptr %14, align 4
%203 = load i32, ptr %12, align 4
%204 = xor i32 %202, %203
%205 = load i32, ptr %11, align 4
%206 = xor i32 %204, %205
%207 = load ptr, ptr %4, align 8
%208 = getelementptr inbounds i32, ptr %207, i64 0
store i32 %206, ptr %208, align 4
%209 = load i32, ptr %13, align 4
%210 = load i32, ptr %10, align 4
%211 = xor i32 %209, %210
%212 = load i32, ptr %9, align 4
%213 = xor i32 %211, %212
%214 = load ptr, ptr %4, align 8
%215 = getelementptr inbounds i32, ptr %214, i64 1
store i32 %213, ptr %215, align 4
br label %216
216: ; preds = %201, %186
br label %217
217: ; preds = %216, %168
store i32 0, ptr %3, align 4
br label %218
218: ; preds = %217, %23
%219 = load i32, ptr %3, align 4
ret i32 %219
}
declare i32 @N64GetCIC(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/tmpzz3_tvr7.c'
source_filename = "/tmp/tmpzz3_tvr7.c"
target datalayout = "e-m:e-p270: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 @sendMsg(i32 noundef %0, ptr noundef %1, i8 noundef signext %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i8 %2, ptr %6, align 1
%9 = load i8, ptr %6, align 1
%10 = sext i8 %9 to i32
%11 = add nsw i32 %10, 1
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %7, align 8
%14 = alloca i8, i64 %12, align 16
store i64 %12, ptr %8, align 8
%15 = load i8, ptr %6, align 1
%16 = getelementptr inbounds i8, ptr %14, i64 0
store i8 %15, ptr %16, align 16
%17 = getelementptr inbounds i8, ptr %14, i64 1
%18 = load ptr, ptr %5, align 8
%19 = load i8, ptr %6, align 1
%20 = call i32 @strncpy(ptr noundef %17, ptr noundef %18, i8 noundef signext %19)
%21 = load i32, ptr %4, align 4
%22 = load i8, ptr %6, align 1
%23 = sext i8 %22 to i32
%24 = add nsw i32 %23, 1
%25 = trunc i32 %24 to i8
%26 = call i32 @write(i32 noundef %21, ptr noundef %14, i8 noundef signext %25)
%27 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %27)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @strncpy(ptr noundef, ptr noundef, i8 noundef signext) #2
declare i32 @write(i32 noundef, ptr noundef, i8 noundef signext) #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/tmpzz3_tvr7.c"
target datalayout = "e-m:e-p270: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 @sendMsg(i32 noundef %0, ptr noundef %1, i8 noundef signext %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i8 %2, ptr %6, align 1
%9 = load i8, ptr %6, align 1
%10 = sext i8 %9 to i32
%11 = add nsw i32 %10, 1
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %7, align 8
%14 = alloca i8, i64 %12, align 16
store i64 %12, ptr %8, align 8
%15 = load i8, ptr %6, align 1
%16 = getelementptr inbounds i8, ptr %14, i64 0
store i8 %15, ptr %16, align 16
%17 = getelementptr inbounds i8, ptr %14, i64 1
%18 = load ptr, ptr %5, align 8
%19 = load i8, ptr %6, align 1
%20 = call i32 @strncpy(ptr noundef %17, ptr noundef %18, i8 noundef signext %19)
%21 = load i32, ptr %4, align 4
%22 = load i8, ptr %6, align 1
%23 = sext i8 %22 to i32
%24 = add nsw i32 %23, 1
%25 = trunc i32 %24 to i8
%26 = call i32 @write(i32 noundef %21, ptr noundef %14, i8 noundef signext %25)
%27 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %27)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @strncpy(ptr noundef, ptr noundef, i8 noundef signext) #2
declare i32 @write(i32 noundef, ptr noundef, i8 noundef signext) #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/tmp_jqs57_4.c'
source_filename = "/tmp/tmp_jqs57_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @sinhf(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca i32, align 4
store float %0, ptr %3, align 4
store i32 1, ptr %6, align 4
%7 = load float, ptr %3, align 4
%8 = fcmp olt float %7, 0.000000e+00
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load float, ptr %3, align 4
%11 = fneg float %10
store float %11, ptr %3, align 4
store i32 -1, ptr %6, align 4
br label %12
12: ; preds = %9, %1
%13 = load float, ptr %3, align 4
%14 = fpext float %13 to double
%15 = fcmp ogt double %14, 2.100000e+01
br i1 %15, label %16, label %28
16: ; preds = %12
%17 = load float, ptr %3, align 4
%18 = call i32 @expf(float noundef %17)
%19 = sdiv i32 %18, 2
%20 = sitofp i32 %19 to float
store float %20, ptr %4, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %16
%24 = load float, ptr %4, align 4
store float %24, ptr %2, align 4
br label %77
25: ; preds = %16
%26 = load float, ptr %4, align 4
%27 = fneg float %26
store float %27, ptr %2, align 4
br label %77
28: ; preds = %12
%29 = load float, ptr %3, align 4
%30 = fpext float %29 to double
%31 = fcmp ogt double %30, 5.000000e-01
br i1 %31, label %32, label %43
32: ; preds = %28
%33 = load i32, ptr %6, align 4
%34 = load float, ptr %3, align 4
%35 = call i32 @expf(float noundef %34)
%36 = load float, ptr %3, align 4
%37 = fneg float %36
%38 = call i32 @expf(float noundef %37)
%39 = sub nsw i32 %35, %38
%40 = mul nsw i32 %33, %39
%41 = sdiv i32 %40, 2
%42 = sitofp i32 %41 to float
store float %42, ptr %2, align 4
br label %77
43: ; preds = %28
%44 = load float, ptr %3, align 4
%45 = load float, ptr %3, align 4
%46 = fmul float %44, %45
store float %46, ptr %5, align 4
%47 = load float, ptr %5, align 4
%48 = fpext float %47 to double
%49 = call double @llvm.fmuladd.f64(double 0xC03A4E3DE8540781, double %48, double 0xC0A69C6C36DA2DF3)
%50 = load float, ptr %5, align 4
%51 = fpext float %50 to double
%52 = call double @llvm.fmuladd.f64(double %49, double %51, double 0xC0F5F38B8605D22E)
%53 = load float, ptr %5, align 4
%54 = fpext float %53 to double
%55 = call double @llvm.fmuladd.f64(double %52, double %54, double 0xC1233FDEBA64BB52)
%56 = load float, ptr %3, align 4
%57 = fpext float %56 to double
%58 = fmul double %55, %57
%59 = fptrunc double %58 to float
store float %59, ptr %4, align 4
%60 = load float, ptr %5, align 4
%61 = fpext float %60 to double
%62 = fadd double %61, 0xC065B5B9FCD003C6
%63 = load float, ptr %5, align 4
%64 = fpext float %63 to double
%65 = call double @llvm.fmuladd.f64(double %62, double %64, double 0x40CDB7963EAE91E6)
%66 = load float, ptr %5, align 4
%67 = fpext float %66 to double
%68 = call double @llvm.fmuladd.f64(double %65, double %67, double 0xC1233FDEBA64BB52)
%69 = load float, ptr %4, align 4
%70 = fpext float %69 to double
%71 = fdiv double %70, %68
%72 = fptrunc double %71 to float
store float %72, ptr %4, align 4
%73 = load i32, ptr %6, align 4
%74 = sitofp i32 %73 to float
%75 = load float, ptr %4, align 4
%76 = fmul float %74, %75
store float %76, ptr %2, align 4
br label %77
77: ; preds = %43, %32, %25, %23
%78 = load float, ptr %2, align 4
ret float %78
}
declare i32 @expf(float 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/tmp_jqs57_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @sinhf(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca i32, align 4
store float %0, ptr %3, align 4
store i32 1, ptr %6, align 4
%7 = load float, ptr %3, align 4
%8 = fcmp olt float %7, 0.000000e+00
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load float, ptr %3, align 4
%11 = fneg float %10
store float %11, ptr %3, align 4
store i32 -1, ptr %6, align 4
br label %12
12: ; preds = %9, %1
%13 = load float, ptr %3, align 4
%14 = fpext float %13 to double
%15 = fcmp ogt double %14, 2.100000e+01
br i1 %15, label %16, label %28
16: ; preds = %12
%17 = load float, ptr %3, align 4
%18 = call i32 @expf(float noundef %17)
%19 = sdiv i32 %18, 2
%20 = sitofp i32 %19 to float
store float %20, ptr %4, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %16
%24 = load float, ptr %4, align 4
store float %24, ptr %2, align 4
br label %77
25: ; preds = %16
%26 = load float, ptr %4, align 4
%27 = fneg float %26
store float %27, ptr %2, align 4
br label %77
28: ; preds = %12
%29 = load float, ptr %3, align 4
%30 = fpext float %29 to double
%31 = fcmp ogt double %30, 5.000000e-01
br i1 %31, label %32, label %43
32: ; preds = %28
%33 = load i32, ptr %6, align 4
%34 = load float, ptr %3, align 4
%35 = call i32 @expf(float noundef %34)
%36 = load float, ptr %3, align 4
%37 = fneg float %36
%38 = call i32 @expf(float noundef %37)
%39 = sub nsw i32 %35, %38
%40 = mul nsw i32 %33, %39
%41 = sdiv i32 %40, 2
%42 = sitofp i32 %41 to float
store float %42, ptr %2, align 4
br label %77
43: ; preds = %28
%44 = load float, ptr %3, align 4
%45 = load float, ptr %3, align 4
%46 = fmul float %44, %45
store float %46, ptr %5, align 4
%47 = load float, ptr %5, align 4
%48 = fpext float %47 to double
%49 = call double @llvm.fmuladd.f64(double 0xC03A4E3DE8540781, double %48, double 0xC0A69C6C36DA2DF3)
%50 = load float, ptr %5, align 4
%51 = fpext float %50 to double
%52 = call double @llvm.fmuladd.f64(double %49, double %51, double 0xC0F5F38B8605D22E)
%53 = load float, ptr %5, align 4
%54 = fpext float %53 to double
%55 = call double @llvm.fmuladd.f64(double %52, double %54, double 0xC1233FDEBA64BB52)
%56 = load float, ptr %3, align 4
%57 = fpext float %56 to double
%58 = fmul double %55, %57
%59 = fptrunc double %58 to float
store float %59, ptr %4, align 4
%60 = load float, ptr %5, align 4
%61 = fpext float %60 to double
%62 = fadd double %61, 0xC065B5B9FCD003C6
%63 = load float, ptr %5, align 4
%64 = fpext float %63 to double
%65 = call double @llvm.fmuladd.f64(double %62, double %64, double 0x40CDB7963EAE91E6)
%66 = load float, ptr %5, align 4
%67 = fpext float %66 to double
%68 = call double @llvm.fmuladd.f64(double %65, double %67, double 0xC1233FDEBA64BB52)
%69 = load float, ptr %4, align 4
%70 = fpext float %69 to double
%71 = fdiv double %70, %68
%72 = fptrunc double %71 to float
store float %72, ptr %4, align 4
%73 = load i32, ptr %6, align 4
%74 = sitofp i32 %73 to float
%75 = load float, ptr %4, align 4
%76 = fmul float %74, %75
store float %76, ptr %2, align 4
br label %77
77: ; preds = %43, %32, %25, %23
%78 = load float, ptr %2, align 4
ret float %78
}
declare i32 @expf(float 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/tmpjb31_29c.c'
source_filename = "/tmp/tmpjb31_29c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_CREAT = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@O_WRONLY = 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/tmpjb31_29c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_CREAT = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@O_WRONLY = 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/tmpv78a_vgh.c'
source_filename = "/tmp/tmpv78a_vgh.c"
target datalayout = "e-m:e-p270: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 @s_isblk(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
ret i32 -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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpv78a_vgh.c"
target datalayout = "e-m:e-p270: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 @s_isblk(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
ret i32 -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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpax4rmcpi.c'
source_filename = "/tmp/tmpax4rmcpi.c"
target datalayout = "e-m:e-p270: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 [39 x i8] c"file -L \22$SHELL\22 | grep -q \22x86[_-]64\22\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @android_getHostBitness() #0 {
%1 = call i64 @system(ptr noundef @.str)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i64
%4 = select i1 %2, i32 64, i32 32
ret i32 %4
}
declare i64 @system(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/tmpax4rmcpi.c"
target datalayout = "e-m:e-p270: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 [39 x i8] c"file -L \22$SHELL\22 | grep -q \22x86[_-]64\22\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @android_getHostBitness() #0 {
%1 = call i64 @system(ptr noundef @.str)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i64
%4 = select i1 %2, i32 64, i32 32
ret i32 %4
}
declare i64 @system(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/tmppdb_fdwi.c'
source_filename = "/tmp/tmppdb_fdwi.c"
target datalayout = "e-m:e-p270: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 @copyCharList(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %1
store ptr null, ptr %2, align 8
br label %49
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
store ptr %12, ptr %4, align 8
store ptr null, ptr %5, align 8
store i64 0, ptr %6, align 8
store i64 0, ptr %7, align 8
br label %13
13: ; preds = %17, %11
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %14, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %22
17: ; preds = %13
%18 = load i64, ptr %6, align 8
%19 = add i64 %18, 1
store i64 %19, ptr %6, align 8
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds ptr, ptr %20, i32 1
store ptr %21, ptr %4, align 8
br label %13, !llvm.loop !6
22: ; preds = %13
%23 = load i64, ptr %6, align 8
%24 = add i64 %23, 1
%25 = mul i64 8, %24
%26 = trunc i64 %25 to i32
%27 = call ptr @malloc(i32 noundef %26)
store ptr %27, ptr %5, align 8
br label %28
28: ; preds = %41, %22
%29 = load i64, ptr %7, align 8
%30 = load i64, ptr %6, align 8
%31 = icmp ult i64 %29, %30
br i1 %31, label %32, label %44
32: ; preds = %28
%33 = load ptr, ptr %3, align 8
%34 = load i64, ptr %7, align 8
%35 = getelementptr inbounds ptr, ptr %33, i64 %34
%36 = load ptr, ptr %35, align 8
%37 = call ptr @copyValue(ptr noundef %36)
%38 = load ptr, ptr %5, align 8
%39 = load i64, ptr %7, align 8
%40 = getelementptr inbounds ptr, ptr %38, i64 %39
store ptr %37, ptr %40, align 8
br label %41
41: ; preds = %32
%42 = load i64, ptr %7, align 8
%43 = add i64 %42, 1
store i64 %43, ptr %7, align 8
br label %28, !llvm.loop !8
44: ; preds = %28
%45 = load ptr, ptr %5, align 8
%46 = load i64, ptr %6, align 8
%47 = getelementptr inbounds ptr, ptr %45, i64 %46
store ptr null, ptr %47, align 8
%48 = load ptr, ptr %5, align 8
store ptr %48, ptr %2, align 8
br label %49
49: ; preds = %44, %10
%50 = load ptr, ptr %2, align 8
ret ptr %50
}
declare ptr @malloc(i32 noundef) #1
declare ptr @copyValue(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/tmppdb_fdwi.c"
target datalayout = "e-m:e-p270: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 @copyCharList(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %1
store ptr null, ptr %2, align 8
br label %53
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
store ptr %12, ptr %4, align 8
store ptr null, ptr %5, align 8
store i64 0, ptr %6, align 8
store i64 0, ptr %7, align 8
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %13, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %.lr.ph, label %24
.lr.ph: ; preds = %11
br label %16
16: ; preds = %.lr.ph, %16
%17 = load i64, ptr %6, align 8
%18 = add i64 %17, 1
store i64 %18, ptr %6, align 8
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds ptr, ptr %19, i32 1
store ptr %20, ptr %4, align 8
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %21, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %24
24: ; preds = %._crit_edge, %11
%25 = load i64, ptr %6, align 8
%26 = add i64 %25, 1
%27 = mul i64 8, %26
%28 = trunc i64 %27 to i32
%29 = call ptr @malloc(i32 noundef %28)
store ptr %29, ptr %5, align 8
%30 = load i64, ptr %7, align 8
%31 = load i64, ptr %6, align 8
%32 = icmp ult i64 %30, %31
br i1 %32, label %.lr.ph2, label %48
.lr.ph2: ; preds = %24
br label %33
33: ; preds = %.lr.ph2, %42
%34 = load ptr, ptr %3, align 8
%35 = load i64, ptr %7, align 8
%36 = getelementptr inbounds ptr, ptr %34, i64 %35
%37 = load ptr, ptr %36, align 8
%38 = call ptr @copyValue(ptr noundef %37)
%39 = load ptr, ptr %5, align 8
%40 = load i64, ptr %7, align 8
%41 = getelementptr inbounds ptr, ptr %39, i64 %40
store ptr %38, ptr %41, align 8
br label %42
42: ; preds = %33
%43 = load i64, ptr %7, align 8
%44 = add i64 %43, 1
store i64 %44, ptr %7, align 8
%45 = load i64, ptr %7, align 8
%46 = load i64, ptr %6, align 8
%47 = icmp ult i64 %45, %46
br i1 %47, label %33, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %48
48: ; preds = %._crit_edge3, %24
%49 = load ptr, ptr %5, align 8
%50 = load i64, ptr %6, align 8
%51 = getelementptr inbounds ptr, ptr %49, i64 %50
store ptr null, ptr %51, align 8
%52 = load ptr, ptr %5, align 8
store ptr %52, ptr %2, align 8
br label %53
53: ; preds = %48, %10
%54 = load ptr, ptr %2, align 8
ret ptr %54
}
declare ptr @malloc(i32 noundef) #1
declare ptr @copyValue(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/tmpwfdi4o5l.c'
source_filename = "/tmp/tmpwfdi4o5l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [57 x i8] c"expected 4k alignment for first allocation; got addr=%p\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 i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @malloc(i32 noundef 10)
%8 = sext i32 %7 to i64
store i64 %8, ptr %6, align 8
%9 = load i64, ptr %6, align 8
%10 = sub i64 %9, 8
store i64 %10, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = urem i64 %11, 4096
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = load i64, ptr %6, align 8
%17 = inttoptr i64 %16 to ptr
%18 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %17)
store i32 1, ptr %3, align 4
br label %20
19: ; preds = %2
store i32 0, ptr %3, align 4
br label %20
20: ; preds = %19, %14
%21 = load i32, ptr %3, align 4
ret i32 %21
}
declare i32 @malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwfdi4o5l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [57 x i8] c"expected 4k alignment for first allocation; got addr=%p\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 i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @malloc(i32 noundef 10)
%8 = sext i32 %7 to i64
store i64 %8, ptr %6, align 8
%9 = load i64, ptr %6, align 8
%10 = sub i64 %9, 8
store i64 %10, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = urem i64 %11, 4096
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = load i64, ptr %6, align 8
%17 = inttoptr i64 %16 to ptr
%18 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %17)
store i32 1, ptr %3, align 4
br label %20
19: ; preds = %2
store i32 0, ptr %3, align 4
br label %20
20: ; preds = %19, %14
%21 = load i32, ptr %3, align 4
ret i32 %21
}
declare i32 @malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx6jt1n_3.c'
source_filename = "/tmp/tmpx6jt1n_3.c"
target datalayout = "e-m:e-p270: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/tmpx6jt1n_3.c"
target datalayout = "e-m:e-p270: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/tmp7j8qmlkd.c'
source_filename = "/tmp/tmp7j8qmlkd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @BRBase58CheckEncode(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca [4096 x i32], align 16
%12 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
store i64 0, ptr %9, align 8
%13 = load i64, ptr %8, align 8
%14 = add i64 %13, 32
store i64 %14, ptr %10, align 8
%15 = load i64, ptr %10, align 8
%16 = icmp ule i64 %15, 4096
br i1 %16, label %17, label %19
17: ; preds = %4
%18 = getelementptr inbounds [4096 x i32], ptr %11, i64 0, i64 0
br label %22
19: ; preds = %4
%20 = load i64, ptr %10, align 8
%21 = call ptr @malloc(i64 noundef %20)
br label %22
22: ; preds = %19, %17
%23 = phi ptr [ %18, %17 ], [ %21, %19 ]
store ptr %23, ptr %12, align 8
%24 = load ptr, ptr %12, align 8
%25 = icmp ne ptr %24, null
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 noundef %26)
%28 = load ptr, ptr %7, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %33, label %30
30: ; preds = %22
%31 = load i64, ptr %8, align 8
%32 = icmp eq i64 %31, 0
br label %33
33: ; preds = %30, %22
%34 = phi i1 [ true, %22 ], [ %32, %30 ]
%35 = zext i1 %34 to i32
%36 = call i32 @assert(i32 noundef %35)
%37 = load ptr, ptr %7, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %42, label %39
39: ; preds = %33
%40 = load i64, ptr %8, align 8
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %59
42: ; preds = %39, %33
%43 = load ptr, ptr %12, align 8
%44 = load ptr, ptr %7, align 8
%45 = load i64, ptr %8, align 8
%46 = call i32 @memcpy(ptr noundef %43, ptr noundef %44, i64 noundef %45)
%47 = load ptr, ptr %12, align 8
%48 = load i64, ptr %8, align 8
%49 = getelementptr inbounds i32, ptr %47, i64 %48
%50 = load ptr, ptr %7, align 8
%51 = load i64, ptr %8, align 8
%52 = call i32 @BRSHA256_2(ptr noundef %49, ptr noundef %50, i64 noundef %51)
%53 = load ptr, ptr %5, align 8
%54 = load i64, ptr %6, align 8
%55 = load ptr, ptr %12, align 8
%56 = load i64, ptr %8, align 8
%57 = add i64 %56, 4
%58 = call i64 @BRBase58Encode(ptr noundef %53, i64 noundef %54, ptr noundef %55, i64 noundef %57)
store i64 %58, ptr %9, align 8
br label %59
59: ; preds = %42, %39
%60 = load ptr, ptr %12, align 8
%61 = load i64, ptr %10, align 8
%62 = call i32 @mem_clean(ptr noundef %60, i64 noundef %61)
%63 = load ptr, ptr %12, align 8
%64 = getelementptr inbounds [4096 x i32], ptr %11, i64 0, i64 0
%65 = icmp ne ptr %63, %64
br i1 %65, label %66, label %69
66: ; preds = %59
%67 = load ptr, ptr %12, align 8
%68 = call i32 @free(ptr noundef %67)
br label %69
69: ; preds = %66, %59
%70 = load i64, ptr %9, align 8
ret i64 %70
}
declare ptr @malloc(i64 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @BRSHA256_2(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @BRBase58Encode(ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1
declare i32 @mem_clean(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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp7j8qmlkd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @BRBase58CheckEncode(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca [4096 x i32], align 16
%12 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
store i64 0, ptr %9, align 8
%13 = load i64, ptr %8, align 8
%14 = add i64 %13, 32
store i64 %14, ptr %10, align 8
%15 = load i64, ptr %10, align 8
%16 = icmp ule i64 %15, 4096
br i1 %16, label %17, label %19
17: ; preds = %4
%18 = getelementptr inbounds [4096 x i32], ptr %11, i64 0, i64 0
br label %22
19: ; preds = %4
%20 = load i64, ptr %10, align 8
%21 = call ptr @malloc(i64 noundef %20)
br label %22
22: ; preds = %19, %17
%23 = phi ptr [ %18, %17 ], [ %21, %19 ]
store ptr %23, ptr %12, align 8
%24 = load ptr, ptr %12, align 8
%25 = icmp ne ptr %24, null
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 noundef %26)
%28 = load ptr, ptr %7, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %33, label %30
30: ; preds = %22
%31 = load i64, ptr %8, align 8
%32 = icmp eq i64 %31, 0
br label %33
33: ; preds = %30, %22
%34 = phi i1 [ true, %22 ], [ %32, %30 ]
%35 = zext i1 %34 to i32
%36 = call i32 @assert(i32 noundef %35)
%37 = load ptr, ptr %7, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %42, label %39
39: ; preds = %33
%40 = load i64, ptr %8, align 8
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %59
42: ; preds = %39, %33
%43 = load ptr, ptr %12, align 8
%44 = load ptr, ptr %7, align 8
%45 = load i64, ptr %8, align 8
%46 = call i32 @memcpy(ptr noundef %43, ptr noundef %44, i64 noundef %45)
%47 = load ptr, ptr %12, align 8
%48 = load i64, ptr %8, align 8
%49 = getelementptr inbounds i32, ptr %47, i64 %48
%50 = load ptr, ptr %7, align 8
%51 = load i64, ptr %8, align 8
%52 = call i32 @BRSHA256_2(ptr noundef %49, ptr noundef %50, i64 noundef %51)
%53 = load ptr, ptr %5, align 8
%54 = load i64, ptr %6, align 8
%55 = load ptr, ptr %12, align 8
%56 = load i64, ptr %8, align 8
%57 = add i64 %56, 4
%58 = call i64 @BRBase58Encode(ptr noundef %53, i64 noundef %54, ptr noundef %55, i64 noundef %57)
store i64 %58, ptr %9, align 8
br label %59
59: ; preds = %42, %39
%60 = load ptr, ptr %12, align 8
%61 = load i64, ptr %10, align 8
%62 = call i32 @mem_clean(ptr noundef %60, i64 noundef %61)
%63 = load ptr, ptr %12, align 8
%64 = getelementptr inbounds [4096 x i32], ptr %11, i64 0, i64 0
%65 = icmp ne ptr %63, %64
br i1 %65, label %66, label %69
66: ; preds = %59
%67 = load ptr, ptr %12, align 8
%68 = call i32 @free(ptr noundef %67)
br label %69
69: ; preds = %66, %59
%70 = load i64, ptr %9, align 8
ret i64 %70
}
declare ptr @malloc(i64 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @BRSHA256_2(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @BRBase58Encode(ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1
declare i32 @mem_clean(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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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_aoblnr0.c'
source_filename = "/tmp/tmp_aoblnr0.c"
target datalayout = "e-m:e-p270: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"12345678\00", align 1
@__const.main.test = private unnamed_addr constant [5 x i8] c"4444\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"Length of %s is %d \0A\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"strcompare(%s,%s) is %s \0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"true\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"false\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"jello\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"strcompare(%s,%s) is %s \0A\0A\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"hella\00", align 1
@.str.9 = private unnamed_addr constant [7 x i8] c"Butch \00", align 1
@.str.10 = private unnamed_addr constant [9 x i8] c"Cassidy \00", align 1
@.str.11 = private unnamed_addr constant [18 x i8] c"and the Sundance \00", align 1
@.str.12 = private unnamed_addr constant [4 x i8] c"Kid\00", align 1
@.str.13 = private unnamed_addr constant [8 x i8] c"%s%s%s\0A\00", align 1
@.str.14 = private unnamed_addr constant [16 x i8] c"Result 8 is %s\0A\00", align 1
@.str.15 = private unnamed_addr constant [52 x i8] c"String lengths of original and concatted arrays %s\0A\00", align 1
@.str.16 = private unnamed_addr constant [6 x i8] c"match\00", align 1
@.str.17 = private unnamed_addr constant [13 x i8] c"do not match\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [5 x i8], align 1
%8 = alloca [4 x ptr], align 16
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.test, i64 5, i1 false)
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = call i32 @strlength(ptr noundef %13)
%15 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %12, i32 noundef %14)
%16 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
%17 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
%18 = call i32 @strlength(ptr noundef %17)
%19 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %16, i32 noundef %18)
%20 = load ptr, ptr %6, align 8
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = call i64 @strcompare(ptr noundef %22, ptr noundef %23)
%25 = icmp ne i64 %24, 0
%26 = zext i1 %25 to i64
%27 = select i1 %25, ptr @.str.3, ptr @.str.4
%28 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %20, ptr noundef %21, ptr noundef %27)
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
%31 = load ptr, ptr %6, align 8
%32 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
%33 = call i64 @strcompare(ptr noundef %31, ptr noundef %32)
%34 = icmp ne i64 %33, 0
%35 = zext i1 %34 to i64
%36 = select i1 %34, ptr @.str.3, ptr @.str.4
%37 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %29, ptr noundef %30, ptr noundef %36)
%38 = call i64 @strcompare(ptr noundef @.str.5, ptr noundef @.str.6)
%39 = icmp ne i64 %38, 0
%40 = zext i1 %39 to i64
%41 = select i1 %39, ptr @.str.3, ptr @.str.4
%42 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %41)
%43 = call i64 @strcompare(ptr noundef @.str.5, ptr noundef @.str.8)
%44 = icmp ne i64 %43, 0
%45 = zext i1 %44 to i64
%46 = select i1 %44, ptr @.str.3, ptr @.str.4
%47 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.5, ptr noundef @.str.8, ptr noundef %46)
%48 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 0
store ptr @.str.9, ptr %48, align 16
%49 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 1
store ptr @.str.10, ptr %49, align 8
%50 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 2
store ptr @.str.11, ptr %50, align 16
%51 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 3
store ptr @.str.12, ptr %51, align 8
%52 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 0
%53 = load ptr, ptr %52, align 16
%54 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 1
%55 = load ptr, ptr %54, align 8
%56 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 2
%57 = load ptr, ptr %56, align 16
%58 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %53, ptr noundef %55, ptr noundef %57)
%59 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 0
%60 = load ptr, ptr %59, align 16
%61 = call i32 @strlength(ptr noundef %60)
%62 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 1
%63 = load ptr, ptr %62, align 8
%64 = call i32 @strlength(ptr noundef %63)
%65 = add nsw i32 %61, %64
%66 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 2
%67 = load ptr, ptr %66, align 16
%68 = call i32 @strlength(ptr noundef %67)
%69 = add nsw i32 %65, %68
%70 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 3
%71 = load ptr, ptr %70, align 8
%72 = call i32 @strlength(ptr noundef %71)
%73 = add nsw i32 %69, %72
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = mul i64 %75, 1
%77 = trunc i64 %76 to i32
%78 = call ptr @malloc(i32 noundef %77)
store ptr %78, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %79
79: ; preds = %89, %2
%80 = load i32, ptr %10, align 4
%81 = icmp slt i32 %80, 4
br i1 %81, label %82, label %92
82: ; preds = %79
%83 = load ptr, ptr %9, align 8
%84 = load i32, ptr %10, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 %85
%87 = load ptr, ptr %86, align 8
%88 = call i32 @strcat(ptr noundef %83, ptr noundef %87)
br label %89
89: ; preds = %82
%90 = load i32, ptr %10, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %10, align 4
br label %79, !llvm.loop !6
92: ; preds = %79
%93 = load ptr, ptr %9, align 8
%94 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %93)
%95 = load ptr, ptr %9, align 8
%96 = call i32 @strlength(ptr noundef %95)
%97 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 0
%98 = load ptr, ptr %97, align 16
%99 = call i32 @strlength(ptr noundef %98)
%100 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 1
%101 = load ptr, ptr %100, align 8
%102 = call i32 @strlength(ptr noundef %101)
%103 = add nsw i32 %99, %102
%104 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 2
%105 = load ptr, ptr %104, align 16
%106 = call i32 @strlength(ptr noundef %105)
%107 = add nsw i32 %103, %106
%108 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 3
%109 = load ptr, ptr %108, align 8
%110 = call i32 @strlength(ptr noundef %109)
%111 = add nsw i32 %107, %110
%112 = icmp eq i32 %96, %111
%113 = zext i1 %112 to i32
store i32 %113, ptr %11, align 4
%114 = load i32, ptr %11, align 4
%115 = icmp ne i32 %114, 0
%116 = zext i1 %115 to i64
%117 = select i1 %115, ptr @.str.16, ptr @.str.17
%118 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %117)
%119 = load ptr, ptr %9, align 8
%120 = call i32 @free(ptr noundef %119)
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, ptr noundef, ...) #2
declare i32 @strlength(ptr noundef) #2
declare i64 @strcompare(ptr noundef, ptr noundef) #2
declare ptr @malloc(i32 noundef) #2
declare i32 @strcat(ptr noundef, ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_aoblnr0.c"
target datalayout = "e-m:e-p270: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"12345678\00", align 1
@__const.main.test = private unnamed_addr constant [5 x i8] c"4444\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"Length of %s is %d \0A\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"strcompare(%s,%s) is %s \0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"true\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"false\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"jello\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"strcompare(%s,%s) is %s \0A\0A\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"hella\00", align 1
@.str.9 = private unnamed_addr constant [7 x i8] c"Butch \00", align 1
@.str.10 = private unnamed_addr constant [9 x i8] c"Cassidy \00", align 1
@.str.11 = private unnamed_addr constant [18 x i8] c"and the Sundance \00", align 1
@.str.12 = private unnamed_addr constant [4 x i8] c"Kid\00", align 1
@.str.13 = private unnamed_addr constant [8 x i8] c"%s%s%s\0A\00", align 1
@.str.14 = private unnamed_addr constant [16 x i8] c"Result 8 is %s\0A\00", align 1
@.str.15 = private unnamed_addr constant [52 x i8] c"String lengths of original and concatted arrays %s\0A\00", align 1
@.str.16 = private unnamed_addr constant [6 x i8] c"match\00", align 1
@.str.17 = private unnamed_addr constant [13 x i8] c"do not match\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [5 x i8], align 1
%8 = alloca [4 x ptr], align 16
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.test, i64 5, i1 false)
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = call i32 @strlength(ptr noundef %13)
%15 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %12, i32 noundef %14)
%16 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
%17 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
%18 = call i32 @strlength(ptr noundef %17)
%19 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %16, i32 noundef %18)
%20 = load ptr, ptr %6, align 8
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = call i64 @strcompare(ptr noundef %22, ptr noundef %23)
%25 = icmp ne i64 %24, 0
%26 = zext i1 %25 to i64
%27 = select i1 %25, ptr @.str.3, ptr @.str.4
%28 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %20, ptr noundef %21, ptr noundef %27)
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
%31 = load ptr, ptr %6, align 8
%32 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
%33 = call i64 @strcompare(ptr noundef %31, ptr noundef %32)
%34 = icmp ne i64 %33, 0
%35 = zext i1 %34 to i64
%36 = select i1 %34, ptr @.str.3, ptr @.str.4
%37 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %29, ptr noundef %30, ptr noundef %36)
%38 = call i64 @strcompare(ptr noundef @.str.5, ptr noundef @.str.6)
%39 = icmp ne i64 %38, 0
%40 = zext i1 %39 to i64
%41 = select i1 %39, ptr @.str.3, ptr @.str.4
%42 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %41)
%43 = call i64 @strcompare(ptr noundef @.str.5, ptr noundef @.str.8)
%44 = icmp ne i64 %43, 0
%45 = zext i1 %44 to i64
%46 = select i1 %44, ptr @.str.3, ptr @.str.4
%47 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.5, ptr noundef @.str.8, ptr noundef %46)
%48 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 0
store ptr @.str.9, ptr %48, align 16
%49 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 1
store ptr @.str.10, ptr %49, align 8
%50 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 2
store ptr @.str.11, ptr %50, align 16
%51 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 3
store ptr @.str.12, ptr %51, align 8
%52 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 0
%53 = load ptr, ptr %52, align 16
%54 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 1
%55 = load ptr, ptr %54, align 8
%56 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 2
%57 = load ptr, ptr %56, align 16
%58 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %53, ptr noundef %55, ptr noundef %57)
%59 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 0
%60 = load ptr, ptr %59, align 16
%61 = call i32 @strlength(ptr noundef %60)
%62 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 1
%63 = load ptr, ptr %62, align 8
%64 = call i32 @strlength(ptr noundef %63)
%65 = add nsw i32 %61, %64
%66 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 2
%67 = load ptr, ptr %66, align 16
%68 = call i32 @strlength(ptr noundef %67)
%69 = add nsw i32 %65, %68
%70 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 3
%71 = load ptr, ptr %70, align 8
%72 = call i32 @strlength(ptr noundef %71)
%73 = add nsw i32 %69, %72
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = mul i64 %75, 1
%77 = trunc i64 %76 to i32
%78 = call ptr @malloc(i32 noundef %77)
store ptr %78, ptr %9, align 8
store i32 0, ptr %10, align 4
%79 = load i32, ptr %10, align 4
%80 = icmp slt i32 %79, 4
br i1 %80, label %.lr.ph, label %93
.lr.ph: ; preds = %2
br label %81
81: ; preds = %.lr.ph, %88
%82 = load ptr, ptr %9, align 8
%83 = load i32, ptr %10, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 %84
%86 = load ptr, ptr %85, align 8
%87 = call i32 @strcat(ptr noundef %82, ptr noundef %86)
br label %88
88: ; preds = %81
%89 = load i32, ptr %10, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %10, align 4
%91 = load i32, ptr %10, align 4
%92 = icmp slt i32 %91, 4
br i1 %92, label %81, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %88
br label %93
93: ; preds = %._crit_edge, %2
%94 = load ptr, ptr %9, align 8
%95 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %94)
%96 = load ptr, ptr %9, align 8
%97 = call i32 @strlength(ptr noundef %96)
%98 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 0
%99 = load ptr, ptr %98, align 16
%100 = call i32 @strlength(ptr noundef %99)
%101 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 1
%102 = load ptr, ptr %101, align 8
%103 = call i32 @strlength(ptr noundef %102)
%104 = add nsw i32 %100, %103
%105 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 2
%106 = load ptr, ptr %105, align 16
%107 = call i32 @strlength(ptr noundef %106)
%108 = add nsw i32 %104, %107
%109 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 3
%110 = load ptr, ptr %109, align 8
%111 = call i32 @strlength(ptr noundef %110)
%112 = add nsw i32 %108, %111
%113 = icmp eq i32 %97, %112
%114 = zext i1 %113 to i32
store i32 %114, ptr %11, align 4
%115 = load i32, ptr %11, align 4
%116 = icmp ne i32 %115, 0
%117 = zext i1 %116 to i64
%118 = select i1 %116, ptr @.str.16, ptr @.str.17
%119 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %118)
%120 = load ptr, ptr %9, align 8
%121 = call i32 @free(ptr noundef %120)
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, ptr noundef, ...) #2
declare i32 @strlength(ptr noundef) #2
declare i64 @strcompare(ptr noundef, ptr noundef) #2
declare ptr @malloc(i32 noundef) #2
declare i32 @strcat(ptr noundef, ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4nf6z4nx.c'
source_filename = "/tmp/tmp4nf6z4nx.c"
target datalayout = "e-m:e-p270: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 @foo2(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
call void (...) %3()
%4 = call i32 @freeWakeLock(i32 noundef 1)
ret void
}
declare i32 @freeWakeLock(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/tmp4nf6z4nx.c"
target datalayout = "e-m:e-p270: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 @foo2(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
call void (...) %3()
%4 = call i32 @freeWakeLock(i32 noundef 1)
ret void
}
declare i32 @freeWakeLock(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/tmpcgs2y1xj.c'
source_filename = "/tmp/tmpcgs2y1xj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"%s (%d): nside out of range: %ld\0A\00", align 1
@.str.1 = private unnamed_addr constant [156 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bkloppenborg/simtoi/refs/heads/master/lib/chealpix/ang2pix_ring.c\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"%s (%d): theta out of range: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ang2pix_ring(i64 noundef %0, double noundef %1, double noundef %2, ptr noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca i64, align 8
store i64 %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%29 = load double, ptr @M_PI, align 8
%30 = fmul double 5.000000e-01, %29
store double %30, ptr %24, align 8
%31 = load double, ptr @M_PI, align 8
store double %31, ptr %25, align 8
%32 = load double, ptr @M_PI, align 8
%33 = fmul double 2.000000e+00, %32
store double %33, ptr %26, align 8
store double 0x3FE5555555555555, ptr %27, align 8
store i64 8192, ptr %28, align 8
%34 = load i64, ptr %5, align 8
%35 = icmp slt i64 %34, 1
br i1 %35, label %40, label %36
36: ; preds = %4
%37 = load i64, ptr %5, align 8
%38 = load i64, ptr %28, align 8
%39 = icmp sgt i64 %37, %38
br i1 %39, label %40, label %45
40: ; preds = %36, %4
%41 = load i32, ptr @stderr, align 4
%42 = load i64, ptr %5, align 8
%43 = call i32 @fprintf(i32 noundef %41, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 56, i64 noundef %42)
%44 = call i32 @exit(i32 noundef 0) #5
unreachable
45: ; preds = %36
%46 = load double, ptr %6, align 8
%47 = fcmp olt double %46, 0.000000e+00
br i1 %47, label %52, label %48
48: ; preds = %45
%49 = load double, ptr %6, align 8
%50 = load double, ptr %25, align 8
%51 = fcmp ogt double %49, %50
br i1 %51, label %52, label %58
52: ; preds = %48, %45
%53 = load i32, ptr @stderr, align 4
%54 = load double, ptr %6, align 8
%55 = fptosi double %54 to i64
%56 = call i32 @fprintf(i32 noundef %53, ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 61, i64 noundef %55)
%57 = call i32 @exit(i32 noundef 0) #5
unreachable
58: ; preds = %48
%59 = load double, ptr %6, align 8
%60 = call double @cos(double noundef %59) #6
store double %60, ptr %16, align 8
%61 = load double, ptr %16, align 8
%62 = call double @llvm.fabs.f64(double %61)
store double %62, ptr %17, align 8
%63 = load double, ptr %7, align 8
%64 = load double, ptr %26, align 8
%65 = fcmp oge double %63, %64
br i1 %65, label %66, label %70
66: ; preds = %58
%67 = load double, ptr %7, align 8
%68 = load double, ptr %26, align 8
%69 = fsub double %67, %68
store double %69, ptr %7, align 8
br label %70
70: ; preds = %66, %58
%71 = load double, ptr %7, align 8
%72 = fcmp olt double %71, 0.000000e+00
br i1 %72, label %73, label %77
73: ; preds = %70
%74 = load double, ptr %7, align 8
%75 = load double, ptr %26, align 8
%76 = fadd double %74, %75
store double %76, ptr %7, align 8
br label %77
77: ; preds = %73, %70
%78 = load double, ptr %7, align 8
%79 = load double, ptr %24, align 8
%80 = fdiv double %78, %79
store double %80, ptr %18, align 8
%81 = load i64, ptr %5, align 8
%82 = mul nsw i64 2, %81
%83 = trunc i64 %82 to i32
store i32 %83, ptr %9, align 4
%84 = load i64, ptr %5, align 8
%85 = mul nsw i64 4, %84
%86 = trunc i64 %85 to i32
store i32 %86, ptr %10, align 4
%87 = load i32, ptr %9, align 4
%88 = sext i32 %87 to i64
%89 = load i64, ptr %5, align 8
%90 = sub nsw i64 %89, 1
%91 = mul nsw i64 %88, %90
%92 = trunc i64 %91 to i32
store i32 %92, ptr %11, align 4
%93 = load i64, ptr %5, align 8
%94 = mul nsw i64 12, %93
%95 = load i64, ptr %5, align 8
%96 = mul nsw i64 %94, %95
%97 = trunc i64 %96 to i32
store i32 %97, ptr %12, align 4
%98 = load double, ptr %17, align 8
%99 = load double, ptr %27, align 8
%100 = fcmp ole double %98, %99
br i1 %100, label %101, label %168
101: ; preds = %77
%102 = load i64, ptr %5, align 8
%103 = sitofp i64 %102 to double
%104 = load double, ptr %18, align 8
%105 = fadd double 5.000000e-01, %104
%106 = load double, ptr %16, align 8
%107 = fneg double %106
%108 = call double @llvm.fmuladd.f64(double %107, double 7.500000e-01, double %105)
%109 = fmul double %103, %108
%110 = fptosi double %109 to i64
%111 = call double @floor(i64 noundef %110)
%112 = fptosi double %111 to i32
store i32 %112, ptr %13, align 4
%113 = load i64, ptr %5, align 8
%114 = sitofp i64 %113 to double
%115 = load double, ptr %18, align 8
%116 = fadd double 5.000000e-01, %115
%117 = load double, ptr %16, align 8
%118 = call double @llvm.fmuladd.f64(double %117, double 7.500000e-01, double %116)
%119 = fmul double %114, %118
%120 = fptosi double %119 to i64
%121 = call double @floor(i64 noundef %120)
%122 = fptosi double %121 to i32
store i32 %122, ptr %14, align 4
%123 = load i64, ptr %5, align 8
%124 = add nsw i64 %123, 1
%125 = load i32, ptr %13, align 4
%126 = sext i32 %125 to i64
%127 = add nsw i64 %124, %126
%128 = load i32, ptr %14, align 4
%129 = sext i32 %128 to i64
%130 = sub nsw i64 %127, %129
%131 = trunc i64 %130 to i32
store i32 %131, ptr %21, align 4
store i32 0, ptr %23, align 4
%132 = load i32, ptr %21, align 4
%133 = call i32 @fmod(i32 noundef %132, i32 noundef 2)
%134 = sitofp i32 %133 to double
%135 = fcmp oeq double %134, 0.000000e+00
br i1 %135, label %136, label %137
136: ; preds = %101
store i32 1, ptr %23, align 4
br label %137
137: ; preds = %136, %101
%138 = load i32, ptr %13, align 4
%139 = load i32, ptr %14, align 4
%140 = add nsw i32 %138, %139
%141 = sext i32 %140 to i64
%142 = load i64, ptr %5, align 8
%143 = sub nsw i64 %141, %142
%144 = load i32, ptr %23, align 4
%145 = sext i32 %144 to i64
%146 = add nsw i64 %143, %145
%147 = add nsw i64 %146, 1
%148 = sdiv i64 %147, 2
%149 = call double @floor(i64 noundef %148)
%150 = fptosi double %149 to i32
%151 = add nsw i32 %150, 1
store i32 %151, ptr %22, align 4
%152 = load i32, ptr %22, align 4
%153 = load i32, ptr %10, align 4
%154 = icmp sgt i32 %152, %153
br i1 %154, label %155, label %159
155: ; preds = %137
%156 = load i32, ptr %22, align 4
%157 = load i32, ptr %10, align 4
%158 = sub nsw i32 %156, %157
store i32 %158, ptr %22, align 4
br label %159
159: ; preds = %155, %137
%160 = load i32, ptr %11, align 4
%161 = load i32, ptr %10, align 4
%162 = load i32, ptr %21, align 4
%163 = sub nsw i32 %162, 1
%164 = mul nsw i32 %161, %163
%165 = add nsw i32 %160, %164
%166 = load i32, ptr %22, align 4
%167 = add nsw i32 %165, %166
store i32 %167, ptr %15, align 4
br label %240
168: ; preds = %77
%169 = load double, ptr %18, align 8
%170 = load double, ptr %18, align 8
%171 = fptosi double %170 to i64
%172 = call double @floor(i64 noundef %171)
%173 = fsub double %169, %172
store double %173, ptr %19, align 8
%174 = load double, ptr %17, align 8
%175 = fsub double 1.000000e+00, %174
%176 = fmul double 3.000000e+00, %175
%177 = fptosi double %176 to i32
%178 = call double @sqrt(i32 noundef %177)
store double %178, ptr %20, align 8
%179 = load i64, ptr %5, align 8
%180 = sitofp i64 %179 to double
%181 = load double, ptr %19, align 8
%182 = fmul double %180, %181
%183 = load double, ptr %20, align 8
%184 = fmul double %182, %183
%185 = fptosi double %184 to i64
%186 = call double @floor(i64 noundef %185)
%187 = fptosi double %186 to i32
store i32 %187, ptr %13, align 4
%188 = load i64, ptr %5, align 8
%189 = sitofp i64 %188 to double
%190 = load double, ptr %19, align 8
%191 = fsub double 1.000000e+00, %190
%192 = fmul double %189, %191
%193 = load double, ptr %20, align 8
%194 = fmul double %192, %193
%195 = fptosi double %194 to i64
%196 = call double @floor(i64 noundef %195)
%197 = fptosi double %196 to i32
store i32 %197, ptr %14, align 4
%198 = load i32, ptr %13, align 4
%199 = load i32, ptr %14, align 4
%200 = add nsw i32 %198, %199
%201 = add nsw i32 %200, 1
store i32 %201, ptr %21, align 4
%202 = load double, ptr %18, align 8
%203 = load i32, ptr %21, align 4
%204 = sitofp i32 %203 to double
%205 = fmul double %202, %204
%206 = fptosi double %205 to i64
%207 = call double @floor(i64 noundef %206)
%208 = fptosi double %207 to i32
%209 = add nsw i32 %208, 1
store i32 %209, ptr %22, align 4
%210 = load i32, ptr %22, align 4
%211 = load i32, ptr %21, align 4
%212 = mul nsw i32 4, %211
%213 = icmp sgt i32 %210, %212
br i1 %213, label %214, label %219
214: ; preds = %168
%215 = load i32, ptr %22, align 4
%216 = load i32, ptr %21, align 4
%217 = mul nsw i32 4, %216
%218 = sub nsw i32 %215, %217
store i32 %218, ptr %22, align 4
br label %219
219: ; preds = %214, %168
%220 = load i32, ptr %21, align 4
%221 = mul nsw i32 2, %220
%222 = load i32, ptr %21, align 4
%223 = sub nsw i32 %222, 1
%224 = mul nsw i32 %221, %223
%225 = load i32, ptr %22, align 4
%226 = add nsw i32 %224, %225
store i32 %226, ptr %15, align 4
%227 = load double, ptr %16, align 8
%228 = fcmp ole double %227, 0.000000e+00
br i1 %228, label %229, label %239
229: ; preds = %219
%230 = load i32, ptr %12, align 4
%231 = load i32, ptr %21, align 4
%232 = mul nsw i32 2, %231
%233 = load i32, ptr %21, align 4
%234 = add nsw i32 %233, 1
%235 = mul nsw i32 %232, %234
%236 = sub nsw i32 %230, %235
%237 = load i32, ptr %22, align 4
%238 = add nsw i32 %236, %237
store i32 %238, ptr %15, align 4
br label %239
239: ; preds = %229, %219
br label %240
240: ; preds = %239, %159
%241 = load i32, ptr %15, align 4
%242 = sub nsw i32 %241, 1
%243 = sext i32 %242 to i64
%244 = load ptr, ptr %8, align 8
store i64 %243, ptr %244, align 8
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i64 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; Function Attrs: nounwind
declare double @cos(double noundef) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #4
declare double @floor(i64 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4
declare i32 @fmod(i32 noundef, i32 noundef) #1
declare double @sqrt(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn }
attributes #6 = { 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/tmpcgs2y1xj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"%s (%d): nside out of range: %ld\0A\00", align 1
@.str.1 = private unnamed_addr constant [156 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bkloppenborg/simtoi/refs/heads/master/lib/chealpix/ang2pix_ring.c\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"%s (%d): theta out of range: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ang2pix_ring(i64 noundef %0, double noundef %1, double noundef %2, ptr noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca i64, align 8
store i64 %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%29 = load double, ptr @M_PI, align 8
%30 = fmul double 5.000000e-01, %29
store double %30, ptr %24, align 8
%31 = load double, ptr @M_PI, align 8
store double %31, ptr %25, align 8
%32 = load double, ptr @M_PI, align 8
%33 = fmul double 2.000000e+00, %32
store double %33, ptr %26, align 8
store double 0x3FE5555555555555, ptr %27, align 8
store i64 8192, ptr %28, align 8
%34 = load i64, ptr %5, align 8
%35 = icmp slt i64 %34, 1
br i1 %35, label %40, label %36
36: ; preds = %4
%37 = load i64, ptr %5, align 8
%38 = load i64, ptr %28, align 8
%39 = icmp sgt i64 %37, %38
br i1 %39, label %40, label %45
40: ; preds = %36, %4
%41 = load i32, ptr @stderr, align 4
%42 = load i64, ptr %5, align 8
%43 = call i32 @fprintf(i32 noundef %41, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 56, i64 noundef %42)
%44 = call i32 @exit(i32 noundef 0) #5
unreachable
45: ; preds = %36
%46 = load double, ptr %6, align 8
%47 = fcmp olt double %46, 0.000000e+00
br i1 %47, label %52, label %48
48: ; preds = %45
%49 = load double, ptr %6, align 8
%50 = load double, ptr %25, align 8
%51 = fcmp ogt double %49, %50
br i1 %51, label %52, label %58
52: ; preds = %48, %45
%53 = load i32, ptr @stderr, align 4
%54 = load double, ptr %6, align 8
%55 = fptosi double %54 to i64
%56 = call i32 @fprintf(i32 noundef %53, ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 61, i64 noundef %55)
%57 = call i32 @exit(i32 noundef 0) #5
unreachable
58: ; preds = %48
%59 = load double, ptr %6, align 8
%60 = call double @cos(double noundef %59) #6
store double %60, ptr %16, align 8
%61 = load double, ptr %16, align 8
%62 = call double @llvm.fabs.f64(double %61)
store double %62, ptr %17, align 8
%63 = load double, ptr %7, align 8
%64 = load double, ptr %26, align 8
%65 = fcmp oge double %63, %64
br i1 %65, label %66, label %70
66: ; preds = %58
%67 = load double, ptr %7, align 8
%68 = load double, ptr %26, align 8
%69 = fsub double %67, %68
store double %69, ptr %7, align 8
br label %70
70: ; preds = %66, %58
%71 = load double, ptr %7, align 8
%72 = fcmp olt double %71, 0.000000e+00
br i1 %72, label %73, label %77
73: ; preds = %70
%74 = load double, ptr %7, align 8
%75 = load double, ptr %26, align 8
%76 = fadd double %74, %75
store double %76, ptr %7, align 8
br label %77
77: ; preds = %73, %70
%78 = load double, ptr %7, align 8
%79 = load double, ptr %24, align 8
%80 = fdiv double %78, %79
store double %80, ptr %18, align 8
%81 = load i64, ptr %5, align 8
%82 = mul nsw i64 2, %81
%83 = trunc i64 %82 to i32
store i32 %83, ptr %9, align 4
%84 = load i64, ptr %5, align 8
%85 = mul nsw i64 4, %84
%86 = trunc i64 %85 to i32
store i32 %86, ptr %10, align 4
%87 = load i32, ptr %9, align 4
%88 = sext i32 %87 to i64
%89 = load i64, ptr %5, align 8
%90 = sub nsw i64 %89, 1
%91 = mul nsw i64 %88, %90
%92 = trunc i64 %91 to i32
store i32 %92, ptr %11, align 4
%93 = load i64, ptr %5, align 8
%94 = mul nsw i64 12, %93
%95 = load i64, ptr %5, align 8
%96 = mul nsw i64 %94, %95
%97 = trunc i64 %96 to i32
store i32 %97, ptr %12, align 4
%98 = load double, ptr %17, align 8
%99 = load double, ptr %27, align 8
%100 = fcmp ole double %98, %99
br i1 %100, label %101, label %168
101: ; preds = %77
%102 = load i64, ptr %5, align 8
%103 = sitofp i64 %102 to double
%104 = load double, ptr %18, align 8
%105 = fadd double 5.000000e-01, %104
%106 = load double, ptr %16, align 8
%107 = fneg double %106
%108 = call double @llvm.fmuladd.f64(double %107, double 7.500000e-01, double %105)
%109 = fmul double %103, %108
%110 = fptosi double %109 to i64
%111 = call double @floor(i64 noundef %110)
%112 = fptosi double %111 to i32
store i32 %112, ptr %13, align 4
%113 = load i64, ptr %5, align 8
%114 = sitofp i64 %113 to double
%115 = load double, ptr %18, align 8
%116 = fadd double 5.000000e-01, %115
%117 = load double, ptr %16, align 8
%118 = call double @llvm.fmuladd.f64(double %117, double 7.500000e-01, double %116)
%119 = fmul double %114, %118
%120 = fptosi double %119 to i64
%121 = call double @floor(i64 noundef %120)
%122 = fptosi double %121 to i32
store i32 %122, ptr %14, align 4
%123 = load i64, ptr %5, align 8
%124 = add nsw i64 %123, 1
%125 = load i32, ptr %13, align 4
%126 = sext i32 %125 to i64
%127 = add nsw i64 %124, %126
%128 = load i32, ptr %14, align 4
%129 = sext i32 %128 to i64
%130 = sub nsw i64 %127, %129
%131 = trunc i64 %130 to i32
store i32 %131, ptr %21, align 4
store i32 0, ptr %23, align 4
%132 = load i32, ptr %21, align 4
%133 = call i32 @fmod(i32 noundef %132, i32 noundef 2)
%134 = sitofp i32 %133 to double
%135 = fcmp oeq double %134, 0.000000e+00
br i1 %135, label %136, label %137
136: ; preds = %101
store i32 1, ptr %23, align 4
br label %137
137: ; preds = %136, %101
%138 = load i32, ptr %13, align 4
%139 = load i32, ptr %14, align 4
%140 = add nsw i32 %138, %139
%141 = sext i32 %140 to i64
%142 = load i64, ptr %5, align 8
%143 = sub nsw i64 %141, %142
%144 = load i32, ptr %23, align 4
%145 = sext i32 %144 to i64
%146 = add nsw i64 %143, %145
%147 = add nsw i64 %146, 1
%148 = sdiv i64 %147, 2
%149 = call double @floor(i64 noundef %148)
%150 = fptosi double %149 to i32
%151 = add nsw i32 %150, 1
store i32 %151, ptr %22, align 4
%152 = load i32, ptr %22, align 4
%153 = load i32, ptr %10, align 4
%154 = icmp sgt i32 %152, %153
br i1 %154, label %155, label %159
155: ; preds = %137
%156 = load i32, ptr %22, align 4
%157 = load i32, ptr %10, align 4
%158 = sub nsw i32 %156, %157
store i32 %158, ptr %22, align 4
br label %159
159: ; preds = %155, %137
%160 = load i32, ptr %11, align 4
%161 = load i32, ptr %10, align 4
%162 = load i32, ptr %21, align 4
%163 = sub nsw i32 %162, 1
%164 = mul nsw i32 %161, %163
%165 = add nsw i32 %160, %164
%166 = load i32, ptr %22, align 4
%167 = add nsw i32 %165, %166
store i32 %167, ptr %15, align 4
br label %240
168: ; preds = %77
%169 = load double, ptr %18, align 8
%170 = load double, ptr %18, align 8
%171 = fptosi double %170 to i64
%172 = call double @floor(i64 noundef %171)
%173 = fsub double %169, %172
store double %173, ptr %19, align 8
%174 = load double, ptr %17, align 8
%175 = fsub double 1.000000e+00, %174
%176 = fmul double 3.000000e+00, %175
%177 = fptosi double %176 to i32
%178 = call double @sqrt(i32 noundef %177)
store double %178, ptr %20, align 8
%179 = load i64, ptr %5, align 8
%180 = sitofp i64 %179 to double
%181 = load double, ptr %19, align 8
%182 = fmul double %180, %181
%183 = load double, ptr %20, align 8
%184 = fmul double %182, %183
%185 = fptosi double %184 to i64
%186 = call double @floor(i64 noundef %185)
%187 = fptosi double %186 to i32
store i32 %187, ptr %13, align 4
%188 = load i64, ptr %5, align 8
%189 = sitofp i64 %188 to double
%190 = load double, ptr %19, align 8
%191 = fsub double 1.000000e+00, %190
%192 = fmul double %189, %191
%193 = load double, ptr %20, align 8
%194 = fmul double %192, %193
%195 = fptosi double %194 to i64
%196 = call double @floor(i64 noundef %195)
%197 = fptosi double %196 to i32
store i32 %197, ptr %14, align 4
%198 = load i32, ptr %13, align 4
%199 = load i32, ptr %14, align 4
%200 = add nsw i32 %198, %199
%201 = add nsw i32 %200, 1
store i32 %201, ptr %21, align 4
%202 = load double, ptr %18, align 8
%203 = load i32, ptr %21, align 4
%204 = sitofp i32 %203 to double
%205 = fmul double %202, %204
%206 = fptosi double %205 to i64
%207 = call double @floor(i64 noundef %206)
%208 = fptosi double %207 to i32
%209 = add nsw i32 %208, 1
store i32 %209, ptr %22, align 4
%210 = load i32, ptr %22, align 4
%211 = load i32, ptr %21, align 4
%212 = mul nsw i32 4, %211
%213 = icmp sgt i32 %210, %212
br i1 %213, label %214, label %219
214: ; preds = %168
%215 = load i32, ptr %22, align 4
%216 = load i32, ptr %21, align 4
%217 = mul nsw i32 4, %216
%218 = sub nsw i32 %215, %217
store i32 %218, ptr %22, align 4
br label %219
219: ; preds = %214, %168
%220 = load i32, ptr %21, align 4
%221 = mul nsw i32 2, %220
%222 = load i32, ptr %21, align 4
%223 = sub nsw i32 %222, 1
%224 = mul nsw i32 %221, %223
%225 = load i32, ptr %22, align 4
%226 = add nsw i32 %224, %225
store i32 %226, ptr %15, align 4
%227 = load double, ptr %16, align 8
%228 = fcmp ole double %227, 0.000000e+00
br i1 %228, label %229, label %239
229: ; preds = %219
%230 = load i32, ptr %12, align 4
%231 = load i32, ptr %21, align 4
%232 = mul nsw i32 2, %231
%233 = load i32, ptr %21, align 4
%234 = add nsw i32 %233, 1
%235 = mul nsw i32 %232, %234
%236 = sub nsw i32 %230, %235
%237 = load i32, ptr %22, align 4
%238 = add nsw i32 %236, %237
store i32 %238, ptr %15, align 4
br label %239
239: ; preds = %229, %219
br label %240
240: ; preds = %239, %159
%241 = load i32, ptr %15, align 4
%242 = sub nsw i32 %241, 1
%243 = sext i32 %242 to i64
%244 = load ptr, ptr %8, align 8
store i64 %243, ptr %244, align 8
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i64 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; Function Attrs: nounwind
declare double @cos(double noundef) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #4
declare double @floor(i64 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4
declare i32 @fmod(i32 noundef, i32 noundef) #1
declare double @sqrt(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn }
attributes #6 = { 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/tmpswy18u05.c'
source_filename = "/tmp/tmpswy18u05.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"i = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Hello World!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %6, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 3
br i1 %5, label %6, label %12
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %7)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
br label %3, !llvm.loop !6
12: ; preds = %3
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpswy18u05.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"i = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Hello World!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 3
br i1 %4, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %5
%6 = load i32, ptr %2, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %11, 3
br i1 %12, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %5
br label %13
13: ; preds = %._crit_edge, %0
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsmx9a73q.c'
source_filename = "/tmp/tmpsmx9a73q.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"qual sua iadade: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"\0A voc\C3\AA pode votar, se quiser\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"\0Avoc\C3\AA n\C3\A3o pode votar\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"\0Avoc\C3\AA \C3\A9 obrigado a votar\00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c"voc\C3\AA pode votar, se quiser\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = icmp sge i32 %5, 16
br i1 %6, label %7, label %12
7: ; preds = %0
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %8, 17
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @printf(ptr noundef @.str.2)
br label %12
12: ; preds = %10, %7, %0
%13 = load i32, ptr %2, align 4
%14 = icmp sle i32 %13, 15
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.3)
br label %17
17: ; preds = %15, %12
%18 = load i32, ptr %2, align 4
%19 = icmp sge i32 %18, 18
br i1 %19, label %20, label %25
20: ; preds = %17
%21 = load i32, ptr %2, align 4
%22 = icmp sle i32 %21, 70
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 @printf(ptr noundef @.str.4)
br label %25
25: ; preds = %23, %20, %17
%26 = load i32, ptr %2, align 4
%27 = icmp sge i32 %26, 71
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 @printf(ptr noundef @.str.5)
br label %30
30: ; preds = %28, %25
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/tmpsmx9a73q.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"qual sua iadade: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"\0A voc\C3\AA pode votar, se quiser\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"\0Avoc\C3\AA n\C3\A3o pode votar\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"\0Avoc\C3\AA \C3\A9 obrigado a votar\00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c"voc\C3\AA pode votar, se quiser\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = icmp sge i32 %5, 16
br i1 %6, label %7, label %12
7: ; preds = %0
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %8, 17
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @printf(ptr noundef @.str.2)
br label %12
12: ; preds = %10, %7, %0
%13 = load i32, ptr %2, align 4
%14 = icmp sle i32 %13, 15
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.3)
br label %17
17: ; preds = %15, %12
%18 = load i32, ptr %2, align 4
%19 = icmp sge i32 %18, 18
br i1 %19, label %20, label %25
20: ; preds = %17
%21 = load i32, ptr %2, align 4
%22 = icmp sle i32 %21, 70
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 @printf(ptr noundef @.str.4)
br label %25
25: ; preds = %23, %20, %17
%26 = load i32, ptr %2, align 4
%27 = icmp sge i32 %26, 71
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 @printf(ptr noundef @.str.5)
br label %30
30: ; preds = %28, %25
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/tmpgyi0jw6n.c'
source_filename = "/tmp/tmpgyi0jw6n.c"
target datalayout = "e-m:e-p270: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 @int_append(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = mul nsw i32 %5, 10
%7 = load i32, ptr %4, align 4
%8 = add nsw i32 %6, %7
ret i32 %8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpgyi0jw6n.c"
target datalayout = "e-m:e-p270: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 @int_append(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = mul nsw i32 %5, 10
%7 = load i32, ptr %4, align 4
%8 = add nsw i32 %6, %7
ret i32 %8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp5xjtz9hd.c'
source_filename = "/tmp/tmp5xjtz9hd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"ignoring TERM signal\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @term(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr @stdout, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5xjtz9hd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"ignoring TERM signal\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @term(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr @stdout, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx88inykd.c'
source_filename = "/tmp/tmpx88inykd.c"
target datalayout = "e-m:e-p270: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/tmpx88inykd.c"
target datalayout = "e-m:e-p270: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_0350k2v.c'
source_filename = "/tmp/tmp_0350k2v.c"
target datalayout = "e-m:e-p270: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"%c\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"rgb(%d, %d, %d)\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"%d,%d,%d\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"#\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"Wrong Input\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 [1 x i8], align 1
%7 = alloca [7 x i8], align 1
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
%8 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 0
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %8)
%10 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 0
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 104
br i1 %13, label %14, label %92
14: ; preds = %0
%15 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 0
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %15)
%17 = load i32, ptr %2, align 4
%18 = icmp eq i32 %17, 35
%19 = zext i1 %18 to i32
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = icmp ne i8 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %14
%25 = load i32, ptr %2, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %2, align 4
br label %27
27: ; preds = %24, %14
%28 = load i32, ptr %3, align 4
%29 = mul nsw i32 %28, 16
%30 = load i32, ptr %2, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %31
%33 = load i8, ptr %32, align 1
%34 = call i32 @function(i8 noundef signext %33)
%35 = add nsw i32 %29, %34
store i32 %35, ptr %3, align 4
%36 = load i32, ptr %2, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %2, align 4
%38 = load i32, ptr %3, align 4
%39 = mul nsw i32 %38, 16
%40 = load i32, ptr %2, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = call i32 @function(i8 noundef signext %43)
%45 = add nsw i32 %39, %44
store i32 %45, ptr %3, align 4
%46 = load i32, ptr %2, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %2, align 4
%48 = load i32, ptr %4, align 4
%49 = mul nsw i32 %48, 16
%50 = load i32, ptr %2, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %51
%53 = load i8, ptr %52, align 1
%54 = call i32 @function(i8 noundef signext %53)
%55 = add nsw i32 %49, %54
store i32 %55, ptr %4, align 4
%56 = load i32, ptr %2, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %2, align 4
%58 = load i32, ptr %4, align 4
%59 = mul nsw i32 %58, 16
%60 = load i32, ptr %2, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %61
%63 = load i8, ptr %62, align 1
%64 = call i32 @function(i8 noundef signext %63)
%65 = add nsw i32 %59, %64
store i32 %65, ptr %4, align 4
%66 = load i32, ptr %2, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %2, align 4
%68 = load i32, ptr %5, align 4
%69 = mul nsw i32 %68, 16
%70 = load i32, ptr %2, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %71
%73 = load i8, ptr %72, align 1
%74 = call i32 @function(i8 noundef signext %73)
%75 = add nsw i32 %69, %74
store i32 %75, ptr %5, align 4
%76 = load i32, ptr %2, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %2, align 4
%78 = load i32, ptr %5, align 4
%79 = mul nsw i32 %78, 16
%80 = load i32, ptr %2, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %81
%83 = load i8, ptr %82, align 1
%84 = call i32 @function(i8 noundef signext %83)
%85 = add nsw i32 %79, %84
store i32 %85, ptr %5, align 4
%86 = load i32, ptr %2, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %2, align 4
%88 = load i32, ptr %3, align 4
%89 = load i32, ptr %4, align 4
%90 = load i32, ptr %5, align 4
%91 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %88, i32 noundef %89, i32 noundef %90)
br label %109
92: ; preds = %0
%93 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 0
%94 = load i8, ptr %93, align 1
%95 = sext i8 %94 to i32
%96 = icmp eq i32 %95, 100
br i1 %96, label %97, label %106
97: ; preds = %92
%98 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%99 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%100 = load i32, ptr %3, align 4
%101 = call i32 @function_2(i32 noundef %100)
%102 = load i32, ptr %4, align 4
%103 = call i32 @function_2(i32 noundef %102)
%104 = load i32, ptr %5, align 4
%105 = call i32 @function_2(i32 noundef %104)
br label %108
106: ; preds = %92
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %109
108: ; preds = %97
br label %109
109: ; preds = %106, %108, %27
%110 = load i32, ptr %1, align 4
ret i32 %110
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @function(i8 noundef signext) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @function_2(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_0350k2v.c"
target datalayout = "e-m:e-p270: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"%c\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"rgb(%d, %d, %d)\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"%d,%d,%d\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"#\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"Wrong Input\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 [1 x i8], align 1
%7 = alloca [7 x i8], align 1
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
%8 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 0
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %8)
%10 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 0
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 104
br i1 %13, label %14, label %92
14: ; preds = %0
%15 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 0
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %15)
%17 = load i32, ptr %2, align 4
%18 = icmp eq i32 %17, 35
%19 = zext i1 %18 to i32
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = icmp ne i8 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %14
%25 = load i32, ptr %2, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %2, align 4
br label %27
27: ; preds = %24, %14
%28 = load i32, ptr %3, align 4
%29 = mul nsw i32 %28, 16
%30 = load i32, ptr %2, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %31
%33 = load i8, ptr %32, align 1
%34 = call i32 @function(i8 noundef signext %33)
%35 = add nsw i32 %29, %34
store i32 %35, ptr %3, align 4
%36 = load i32, ptr %2, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %2, align 4
%38 = load i32, ptr %3, align 4
%39 = mul nsw i32 %38, 16
%40 = load i32, ptr %2, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = call i32 @function(i8 noundef signext %43)
%45 = add nsw i32 %39, %44
store i32 %45, ptr %3, align 4
%46 = load i32, ptr %2, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %2, align 4
%48 = load i32, ptr %4, align 4
%49 = mul nsw i32 %48, 16
%50 = load i32, ptr %2, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %51
%53 = load i8, ptr %52, align 1
%54 = call i32 @function(i8 noundef signext %53)
%55 = add nsw i32 %49, %54
store i32 %55, ptr %4, align 4
%56 = load i32, ptr %2, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %2, align 4
%58 = load i32, ptr %4, align 4
%59 = mul nsw i32 %58, 16
%60 = load i32, ptr %2, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %61
%63 = load i8, ptr %62, align 1
%64 = call i32 @function(i8 noundef signext %63)
%65 = add nsw i32 %59, %64
store i32 %65, ptr %4, align 4
%66 = load i32, ptr %2, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %2, align 4
%68 = load i32, ptr %5, align 4
%69 = mul nsw i32 %68, 16
%70 = load i32, ptr %2, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %71
%73 = load i8, ptr %72, align 1
%74 = call i32 @function(i8 noundef signext %73)
%75 = add nsw i32 %69, %74
store i32 %75, ptr %5, align 4
%76 = load i32, ptr %2, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %2, align 4
%78 = load i32, ptr %5, align 4
%79 = mul nsw i32 %78, 16
%80 = load i32, ptr %2, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %81
%83 = load i8, ptr %82, align 1
%84 = call i32 @function(i8 noundef signext %83)
%85 = add nsw i32 %79, %84
store i32 %85, ptr %5, align 4
%86 = load i32, ptr %2, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %2, align 4
%88 = load i32, ptr %3, align 4
%89 = load i32, ptr %4, align 4
%90 = load i32, ptr %5, align 4
%91 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %88, i32 noundef %89, i32 noundef %90)
br label %109
92: ; preds = %0
%93 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 0
%94 = load i8, ptr %93, align 1
%95 = sext i8 %94 to i32
%96 = icmp eq i32 %95, 100
br i1 %96, label %97, label %106
97: ; preds = %92
%98 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%99 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%100 = load i32, ptr %3, align 4
%101 = call i32 @function_2(i32 noundef %100)
%102 = load i32, ptr %4, align 4
%103 = call i32 @function_2(i32 noundef %102)
%104 = load i32, ptr %5, align 4
%105 = call i32 @function_2(i32 noundef %104)
br label %108
106: ; preds = %92
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %109
108: ; preds = %97
br label %109
109: ; preds = %108, %106, %27
%110 = load i32, ptr %1, align 4
ret i32 %110
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @function(i8 noundef signext) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @function_2(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/tmp14wiur1e.c'
source_filename = "/tmp/tmp14wiur1e.c"
target datalayout = "e-m:e-p270: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"%d %s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @http_status_format_line(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load i32, ptr %4, align 4
%10 = call ptr @http_status_get_status_text(i32 noundef %9)
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %8, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %19
13: ; preds = %3
%14 = load ptr, ptr %5, align 8
%15 = load i64, ptr %6, align 8
%16 = load i32, ptr %4, align 4
%17 = load ptr, ptr %8, align 8
%18 = call i32 (ptr, i64, ptr, i32, ...) @snprintf(ptr noundef %14, i64 noundef %15, ptr noundef @.str, i32 noundef %16, ptr noundef %17)
store i32 %18, ptr %7, align 4
br label %24
19: ; preds = %3
%20 = load ptr, ptr %5, align 8
%21 = load i64, ptr %6, align 8
%22 = load i32, ptr %4, align 4
%23 = call i32 (ptr, i64, ptr, i32, ...) @snprintf(ptr noundef %20, i64 noundef %21, ptr noundef @.str.1, i32 noundef %22)
store i32 %23, ptr %7, align 4
br label %24
24: ; preds = %19, %13
%25 = load i32, ptr %7, align 4
ret i32 %25
}
declare ptr @http_status_get_status_text(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i64 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/tmp14wiur1e.c"
target datalayout = "e-m:e-p270: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"%d %s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @http_status_format_line(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load i32, ptr %4, align 4
%10 = call ptr @http_status_get_status_text(i32 noundef %9)
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %8, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %19
13: ; preds = %3
%14 = load ptr, ptr %5, align 8
%15 = load i64, ptr %6, align 8
%16 = load i32, ptr %4, align 4
%17 = load ptr, ptr %8, align 8
%18 = call i32 (ptr, i64, ptr, i32, ...) @snprintf(ptr noundef %14, i64 noundef %15, ptr noundef @.str, i32 noundef %16, ptr noundef %17)
store i32 %18, ptr %7, align 4
br label %24
19: ; preds = %3
%20 = load ptr, ptr %5, align 8
%21 = load i64, ptr %6, align 8
%22 = load i32, ptr %4, align 4
%23 = call i32 (ptr, i64, ptr, i32, ...) @snprintf(ptr noundef %20, i64 noundef %21, ptr noundef @.str.1, i32 noundef %22)
store i32 %23, ptr %7, align 4
br label %24
24: ; preds = %19, %13
%25 = load i32, ptr %7, align 4
ret i32 %25
}
declare ptr @http_status_get_status_text(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i64 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/tmprp6uqcly.c'
source_filename = "/tmp/tmprp6uqcly.c"
target datalayout = "e-m:e-p270: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 @dact_text_decompress(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %14, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %14, align 4
%19 = sext i32 %17 to i64
%20 = getelementptr inbounds i8, ptr %16, i64 %19
%21 = load i8, ptr %20, align 1
store i8 %21, ptr %11, align 1
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %14, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %14, align 4
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds i8, ptr %22, i64 %25
%27 = load i8, ptr %26, align 1
store i8 %27, ptr %10, align 1
%28 = load i8, ptr %10, align 1
%29 = zext i8 %28 to i32
%30 = load i8, ptr %11, align 1
%31 = zext i8 %30 to i32
%32 = sub nsw i32 %29, %31
store i32 %32, ptr %12, align 4
%33 = load i32, ptr %12, align 4
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %4
%36 = load ptr, ptr %7, align 8
%37 = load i8, ptr %11, align 1
%38 = load i32, ptr %9, align 4
%39 = call i32 @memset(ptr noundef %36, i8 noundef zeroext %37, i32 noundef %38)
%40 = load i32, ptr %9, align 4
store i32 %40, ptr %5, align 4
br label %98
41: ; preds = %4
store i32 1, ptr %15, align 4
br label %42
42: ; preds = %52, %41
%43 = load i32, ptr %15, align 4
%44 = icmp sle i32 %43, 8
br i1 %44, label %45, label %55
45: ; preds = %42
%46 = load i32, ptr %12, align 4
%47 = load i32, ptr %15, align 4
%48 = lshr i32 %46, %47
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %45
br label %55
51: ; preds = %45
br label %52
52: ; preds = %51
%53 = load i32, ptr %15, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %15, align 4
br label %42, !llvm.loop !6
55: ; preds = %50, %42
%56 = call i32 (...) @dact_bit_buffer_purge()
br label %57
57: ; preds = %55, %95
%58 = call i32 (...) @dact_bit_buffer_size()
%59 = load i32, ptr %15, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %69
61: ; preds = %57
%62 = load ptr, ptr %6, align 8
%63 = load i32, ptr %14, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %14, align 4
%65 = sext i32 %63 to i64
%66 = getelementptr inbounds i8, ptr %62, i64 %65
%67 = load i8, ptr %66, align 1
%68 = call i32 @dact_bit_buffer_write(i8 noundef zeroext %67, i32 noundef 8)
br label %69
69: ; preds = %61, %57
%70 = load i32, ptr %15, align 4
%71 = call zeroext i8 @dact_bit_buffer_read(i32 noundef %70)
%72 = zext i8 %71 to i32
%73 = load i8, ptr %11, align 1
%74 = zext i8 %73 to i32
%75 = add nsw i32 %72, %74
%76 = trunc i32 %75 to i8
%77 = load ptr, ptr %7, align 8
%78 = load i32, ptr %13, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %13, align 4
%80 = sext i32 %78 to i64
%81 = getelementptr inbounds i8, ptr %77, i64 %80
store i8 %76, ptr %81, align 1
%82 = load i32, ptr %14, align 4
%83 = load i32, ptr %8, align 4
%84 = icmp eq i32 %82, %83
br i1 %84, label %85, label %90
85: ; preds = %69
%86 = call i32 (...) @dact_bit_buffer_size()
%87 = load i32, ptr %15, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %89, label %90
89: ; preds = %85
br label %96
90: ; preds = %85, %69
%91 = load i32, ptr %13, align 4
%92 = load i32, ptr %9, align 4
%93 = icmp sge i32 %91, %92
br i1 %93, label %94, label %95
94: ; preds = %90
br label %96
95: ; preds = %90
br label %57
96: ; preds = %94, %89
%97 = load i32, ptr %13, align 4
store i32 %97, ptr %5, align 4
br label %98
98: ; preds = %96, %35
%99 = load i32, ptr %5, align 4
ret i32 %99
}
declare i32 @memset(ptr noundef, i8 noundef zeroext, i32 noundef) #1
declare i32 @dact_bit_buffer_purge(...) #1
declare i32 @dact_bit_buffer_size(...) #1
declare i32 @dact_bit_buffer_write(i8 noundef zeroext, i32 noundef) #1
declare zeroext i8 @dact_bit_buffer_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/tmprp6uqcly.c"
target datalayout = "e-m:e-p270: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 @dact_text_decompress(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %14, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %14, align 4
%19 = sext i32 %17 to i64
%20 = getelementptr inbounds i8, ptr %16, i64 %19
%21 = load i8, ptr %20, align 1
store i8 %21, ptr %11, align 1
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %14, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %14, align 4
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds i8, ptr %22, i64 %25
%27 = load i8, ptr %26, align 1
store i8 %27, ptr %10, align 1
%28 = load i8, ptr %10, align 1
%29 = zext i8 %28 to i32
%30 = load i8, ptr %11, align 1
%31 = zext i8 %30 to i32
%32 = sub nsw i32 %29, %31
store i32 %32, ptr %12, align 4
%33 = load i32, ptr %12, align 4
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %4
%36 = load ptr, ptr %7, align 8
%37 = load i8, ptr %11, align 1
%38 = load i32, ptr %9, align 4
%39 = call i32 @memset(ptr noundef %36, i8 noundef zeroext %37, i32 noundef %38)
%40 = load i32, ptr %9, align 4
store i32 %40, ptr %5, align 4
br label %98
41: ; preds = %4
store i32 1, ptr %15, align 4
%42 = load i32, ptr %15, align 4
%43 = icmp sle i32 %42, 8
br i1 %43, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %41
br label %44
44: ; preds = %.lr.ph, %51
%45 = load i32, ptr %12, align 4
%46 = load i32, ptr %15, align 4
%47 = lshr i32 %45, %46
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %44
br label %56
50: ; preds = %44
br label %51
51: ; preds = %50
%52 = load i32, ptr %15, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %15, align 4
%54 = load i32, ptr %15, align 4
%55 = icmp sle i32 %54, 8
br i1 %55, label %44, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %51
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %41
br label %56
56: ; preds = %.loopexit, %49
%57 = call i32 (...) @dact_bit_buffer_purge()
br label %58
58: ; preds = %91, %56
%59 = call i32 (...) @dact_bit_buffer_size()
%60 = load i32, ptr %15, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %70
62: ; preds = %58
%63 = load ptr, ptr %6, align 8
%64 = load i32, ptr %14, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %14, align 4
%66 = sext i32 %64 to i64
%67 = getelementptr inbounds i8, ptr %63, i64 %66
%68 = load i8, ptr %67, align 1
%69 = call i32 @dact_bit_buffer_write(i8 noundef zeroext %68, i32 noundef 8)
br label %70
70: ; preds = %62, %58
%71 = load i32, ptr %15, align 4
%72 = call zeroext i8 @dact_bit_buffer_read(i32 noundef %71)
%73 = zext i8 %72 to i32
%74 = load i8, ptr %11, align 1
%75 = zext i8 %74 to i32
%76 = add nsw i32 %73, %75
%77 = trunc i32 %76 to i8
%78 = load ptr, ptr %7, align 8
%79 = load i32, ptr %13, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %13, align 4
%81 = sext i32 %79 to i64
%82 = getelementptr inbounds i8, ptr %78, i64 %81
store i8 %77, ptr %82, align 1
%83 = load i32, ptr %14, align 4
%84 = load i32, ptr %8, align 4
%85 = icmp eq i32 %83, %84
br i1 %85, label %86, label %91
86: ; preds = %70
%87 = call i32 (...) @dact_bit_buffer_size()
%88 = load i32, ptr %15, align 4
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %91
90: ; preds = %86
br label %96
91: ; preds = %86, %70
%92 = load i32, ptr %13, align 4
%93 = load i32, ptr %9, align 4
%94 = icmp sge i32 %92, %93
br i1 %94, label %95, label %58
95: ; preds = %91
br label %96
96: ; preds = %95, %90
%97 = load i32, ptr %13, align 4
store i32 %97, ptr %5, align 4
br label %98
98: ; preds = %96, %35
%99 = load i32, ptr %5, align 4
ret i32 %99
}
declare i32 @memset(ptr noundef, i8 noundef zeroext, i32 noundef) #1
declare i32 @dact_bit_buffer_purge(...) #1
declare i32 @dact_bit_buffer_size(...) #1
declare i32 @dact_bit_buffer_write(i8 noundef zeroext, i32 noundef) #1
declare zeroext i8 @dact_bit_buffer_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/tmptxssv1y2.c'
source_filename = "/tmp/tmptxssv1y2.c"
target datalayout = "e-m:e-p270: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 @math_vector_multiply(ptr noundef %0, double noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store double %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %4
%13 = load ptr, ptr %8, align 8
%14 = icmp ne ptr %13, null
br label %15
15: ; preds = %12, %4
%16 = phi i1 [ false, %4 ], [ %14, %12 ]
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 noundef %17)
store i64 0, ptr %9, align 8
br label %19
19: ; preds = %33, %15
%20 = load i64, ptr %9, align 8
%21 = load i64, ptr %7, align 8
%22 = icmp ne i64 %20, %21
br i1 %22, label %23, label %36
23: ; preds = %19
%24 = load ptr, ptr %5, align 8
%25 = load i64, ptr %9, align 8
%26 = getelementptr inbounds double, ptr %24, i64 %25
%27 = load double, ptr %26, align 8
%28 = load double, ptr %6, align 8
%29 = fmul double %27, %28
%30 = load ptr, ptr %8, align 8
%31 = load i64, ptr %9, align 8
%32 = getelementptr inbounds double, ptr %30, i64 %31
store double %29, ptr %32, align 8
br label %33
33: ; preds = %23
%34 = load i64, ptr %9, align 8
%35 = add i64 %34, 1
store i64 %35, ptr %9, align 8
br label %19, !llvm.loop !6
36: ; preds = %19
ret void
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptxssv1y2.c"
target datalayout = "e-m:e-p270: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 @math_vector_multiply(ptr noundef %0, double noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store double %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %4
%13 = load ptr, ptr %8, align 8
%14 = icmp ne ptr %13, null
br label %15
15: ; preds = %12, %4
%16 = phi i1 [ false, %4 ], [ %14, %12 ]
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 noundef %17)
store i64 0, ptr %9, align 8
%19 = load i64, ptr %9, align 8
%20 = load i64, ptr %7, align 8
%21 = icmp ne i64 %19, %20
br i1 %21, label %.lr.ph, label %38
.lr.ph: ; preds = %15
br label %22
22: ; preds = %.lr.ph, %32
%23 = load ptr, ptr %5, align 8
%24 = load i64, ptr %9, align 8
%25 = getelementptr inbounds double, ptr %23, i64 %24
%26 = load double, ptr %25, align 8
%27 = load double, ptr %6, align 8
%28 = fmul double %26, %27
%29 = load ptr, ptr %8, align 8
%30 = load i64, ptr %9, align 8
%31 = getelementptr inbounds double, ptr %29, i64 %30
store double %28, ptr %31, align 8
br label %32
32: ; preds = %22
%33 = load i64, ptr %9, align 8
%34 = add i64 %33, 1
store i64 %34, ptr %9, align 8
%35 = load i64, ptr %9, align 8
%36 = load i64, ptr %7, align 8
%37 = icmp ne i64 %35, %36
br i1 %37, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %15
ret void
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyhrljosy.c'
source_filename = "/tmp/tmpyhrljosy.c"
target datalayout = "e-m:e-p270: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"<tr align=\22center\22><td>\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"</td></tr>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ServeBasePage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @printf(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 @ServeHeaderTable(ptr noundef %4)
%6 = call i32 @printf(ptr noundef @.str.1)
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 (...) @ServeStatusTable()
%9 = call i32 @printf(ptr noundef @.str.1)
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 (...) @ServeSpacerTable()
%12 = call i32 @printf(ptr noundef @.str.1)
%13 = call i32 @printf(ptr noundef @.str)
%14 = call i32 (...) @ServeDeckTable()
%15 = call i32 @printf(ptr noundef @.str.1)
%16 = call i32 @printf(ptr noundef @.str)
%17 = call i32 (...) @ServeSpacerTable()
%18 = call i32 @printf(ptr noundef @.str.1)
%19 = call i32 @printf(ptr noundef @.str)
%20 = call i32 (...) @ServeTrafficTable()
%21 = call i32 @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @ServeHeaderTable(ptr noundef) #1
declare i32 @ServeStatusTable(...) #1
declare i32 @ServeSpacerTable(...) #1
declare i32 @ServeDeckTable(...) #1
declare i32 @ServeTrafficTable(...) #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/tmpyhrljosy.c"
target datalayout = "e-m:e-p270: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"<tr align=\22center\22><td>\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"</td></tr>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ServeBasePage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @printf(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 @ServeHeaderTable(ptr noundef %4)
%6 = call i32 @printf(ptr noundef @.str.1)
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 (...) @ServeStatusTable()
%9 = call i32 @printf(ptr noundef @.str.1)
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 (...) @ServeSpacerTable()
%12 = call i32 @printf(ptr noundef @.str.1)
%13 = call i32 @printf(ptr noundef @.str)
%14 = call i32 (...) @ServeDeckTable()
%15 = call i32 @printf(ptr noundef @.str.1)
%16 = call i32 @printf(ptr noundef @.str)
%17 = call i32 (...) @ServeSpacerTable()
%18 = call i32 @printf(ptr noundef @.str.1)
%19 = call i32 @printf(ptr noundef @.str)
%20 = call i32 (...) @ServeTrafficTable()
%21 = call i32 @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @ServeHeaderTable(ptr noundef) #1
declare i32 @ServeStatusTable(...) #1
declare i32 @ServeSpacerTable(...) #1
declare i32 @ServeDeckTable(...) #1
declare i32 @ServeTrafficTable(...) #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/tmpa06i9j4t.c'
source_filename = "/tmp/tmpa06i9j4t.c"
target datalayout = "e-m:e-p270: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 @celcon_create_random_coefficient_system() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc(i32 noundef 96, ptr noundef %5, ptr noundef %6, ptr noundef %7)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa06i9j4t.c"
target datalayout = "e-m:e-p270: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 @celcon_create_random_coefficient_system() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc(i32 noundef 96, ptr noundef %5, ptr noundef %6, ptr noundef %7)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgq72ff3d.c'
source_filename = "/tmp/tmpgq72ff3d.c"
target datalayout = "e-m:e-p270: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"# %llups\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @default_print_time(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, i64 noundef %3)
ret void
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgq72ff3d.c"
target datalayout = "e-m:e-p270: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"# %llups\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @default_print_time(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, i64 noundef %3)
ret void
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphn1hqwlu.c'
source_filename = "/tmp/tmphn1hqwlu.c"
target datalayout = "e-m:e-p270: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 @log_file_close() #0 {
%1 = call i32 (...) @memory_track_counters_print()
%2 = call i32 (...) @libds_log_file_close()
%3 = call i32 (...) @log_close()
ret void
}
declare i32 @memory_track_counters_print(...) #1
declare i32 @libds_log_file_close(...) #1
declare i32 @log_close(...) #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/tmphn1hqwlu.c"
target datalayout = "e-m:e-p270: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 @log_file_close() #0 {
%1 = call i32 (...) @memory_track_counters_print()
%2 = call i32 (...) @libds_log_file_close()
%3 = call i32 (...) @log_close()
ret void
}
declare i32 @memory_track_counters_print(...) #1
declare i32 @libds_log_file_close(...) #1
declare i32 @log_close(...) #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/tmp3felq69m.c'
source_filename = "/tmp/tmp3felq69m.c"
target datalayout = "e-m:e-p270: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 @parseline(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i16, align 2
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %209
10: ; preds = %1
store i16 0, ptr %6, align 2
br label %11
11: ; preds = %35, %10
%12 = load ptr, ptr %5, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %22
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = load i8, ptr %17, align 1
%19 = call i64 @is_space(i8 noundef signext %18)
%20 = icmp ne i64 %19, 0
%21 = xor i1 %20, true
br label %22
22: ; preds = %16, %11
%23 = phi i1 [ false, %11 ], [ %21, %16 ]
br i1 %23, label %24, label %36
24: ; preds = %22
%25 = load i16, ptr %6, align 2
%26 = add i16 %25, 1
store i16 %26, ptr %6, align 2
%27 = sext i16 %25 to i32
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %5, align 8
%30 = load i8, ptr %28, align 1
%31 = sext i8 %30 to i32
%32 = call i32 @checkts(i32 noundef %27, i32 noundef %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %35, label %34
34: ; preds = %24
store i32 0, ptr %2, align 4
br label %211
35: ; preds = %24
br label %11, !llvm.loop !6
36: ; preds = %22
%37 = load ptr, ptr %5, align 8
%38 = load i8, ptr %37, align 1
%39 = icmp ne i8 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %36
%41 = load ptr, ptr %5, align 8
store ptr %41, ptr %3, align 8
%42 = load ptr, ptr %3, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 1
store ptr %43, ptr %3, align 8
store i8 32, ptr %42, align 1
br label %45
44: ; preds = %36
store i32 0, ptr %2, align 4
br label %211
45: ; preds = %40
br label %46
46: ; preds = %58, %45
%47 = load ptr, ptr %5, align 8
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %46
%52 = load ptr, ptr %5, align 8
%53 = load i8, ptr %52, align 1
%54 = call i64 @is_space(i8 noundef signext %53)
%55 = icmp ne i64 %54, 0
br label %56
56: ; preds = %51, %46
%57 = phi i1 [ false, %46 ], [ %55, %51 ]
br i1 %57, label %58, label %61
58: ; preds = %56
%59 = load ptr, ptr %5, align 8
%60 = getelementptr inbounds i8, ptr %59, i32 1
store ptr %60, ptr %5, align 8
br label %46, !llvm.loop !8
61: ; preds = %56
%62 = load ptr, ptr %5, align 8
%63 = load i8, ptr %62, align 1
%64 = icmp ne i8 %63, 0
br i1 %64, label %66, label %65
65: ; preds = %61
store i32 0, ptr %2, align 4
br label %211
66: ; preds = %61
br label %67
67: ; preds = %88, %66
%68 = load ptr, ptr %5, align 8
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %78
72: ; preds = %67
%73 = load ptr, ptr %5, align 8
%74 = load i8, ptr %73, align 1
%75 = call i64 @is_space(i8 noundef signext %74)
%76 = icmp ne i64 %75, 0
%77 = xor i1 %76, true
br label %78
78: ; preds = %72, %67
%79 = phi i1 [ false, %67 ], [ %77, %72 ]
br i1 %79, label %80, label %93
80: ; preds = %78
%81 = load ptr, ptr %3, align 8
%82 = load ptr, ptr %5, align 8
%83 = icmp ne ptr %81, %82
br i1 %83, label %84, label %88
84: ; preds = %80
%85 = load ptr, ptr %5, align 8
%86 = load i8, ptr %85, align 1
%87 = load ptr, ptr %3, align 8
store i8 %86, ptr %87, align 1
br label %88
88: ; preds = %84, %80
%89 = load ptr, ptr %3, align 8
%90 = getelementptr inbounds i8, ptr %89, i32 1
store ptr %90, ptr %3, align 8
%91 = load ptr, ptr %5, align 8
%92 = getelementptr inbounds i8, ptr %91, i32 1
store ptr %92, ptr %5, align 8
br label %67, !llvm.loop !9
93: ; preds = %78
%94 = load ptr, ptr %5, align 8
%95 = load i8, ptr %94, align 1
%96 = icmp ne i8 %95, 0
br i1 %96, label %97, label %101
97: ; preds = %93
%98 = load ptr, ptr %5, align 8
store ptr %98, ptr %3, align 8
%99 = load ptr, ptr %3, align 8
%100 = getelementptr inbounds i8, ptr %99, i32 1
store ptr %100, ptr %3, align 8
store i8 32, ptr %99, align 1
br label %102
101: ; preds = %93
store i32 0, ptr %2, align 4
br label %211
102: ; preds = %97
br label %103
103: ; preds = %115, %102
%104 = load ptr, ptr %5, align 8
%105 = load i8, ptr %104, align 1
%106 = sext i8 %105 to i32
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %113
108: ; preds = %103
%109 = load ptr, ptr %5, align 8
%110 = load i8, ptr %109, align 1
%111 = call i64 @is_space(i8 noundef signext %110)
%112 = icmp ne i64 %111, 0
br label %113
113: ; preds = %108, %103
%114 = phi i1 [ false, %103 ], [ %112, %108 ]
br i1 %114, label %115, label %118
115: ; preds = %113
%116 = load ptr, ptr %5, align 8
%117 = getelementptr inbounds i8, ptr %116, i32 1
store ptr %117, ptr %5, align 8
br label %103, !llvm.loop !10
118: ; preds = %113
%119 = load ptr, ptr %5, align 8
%120 = load i8, ptr %119, align 1
%121 = icmp ne i8 %120, 0
br i1 %121, label %123, label %122
122: ; preds = %118
store i32 0, ptr %2, align 4
br label %211
123: ; preds = %118
store i16 0, ptr %6, align 2
br label %124
124: ; preds = %197, %123
%125 = load ptr, ptr %5, align 8
%126 = load i8, ptr %125, align 1
%127 = sext i8 %126 to i32
%128 = icmp ne i32 %127, 0
br i1 %128, label %129, label %135
129: ; preds = %124
%130 = load ptr, ptr %5, align 8
%131 = load i8, ptr %130, align 1
%132 = call i64 @is_space(i8 noundef signext %131)
%133 = icmp ne i64 %132, 0
%134 = xor i1 %133, true
br label %135
135: ; preds = %129, %124
%136 = phi i1 [ false, %124 ], [ %134, %129 ]
br i1 %136, label %137, label %202
137: ; preds = %135
%138 = load i16, ptr %6, align 2
%139 = sext i16 %138 to i32
switch i32 %139, label %189 [
i32 0, label %140
i32 1, label %160
i32 2, label %168
i32 3, label %182
]
140: ; preds = %137
%141 = load ptr, ptr %5, align 8
%142 = load i8, ptr %141, align 1
%143 = sext i8 %142 to i32
%144 = icmp eq i32 %143, 45
br i1 %144, label %150, label %145
145: ; preds = %140
%146 = load ptr, ptr %5, align 8
%147 = load i8, ptr %146, align 1
%148 = sext i8 %147 to i32
%149 = icmp eq i32 %148, 43
br i1 %149, label %150, label %151
150: ; preds = %145, %140
store i16 1, ptr %6, align 2
br label %159
151: ; preds = %145
%152 = load ptr, ptr %5, align 8
%153 = load i8, ptr %152, align 1
%154 = call i32 @is_number(i8 noundef signext %153)
%155 = icmp ne i32 %154, 0
br i1 %155, label %156, label %157
156: ; preds = %151
store i16 2, ptr %6, align 2
br label %158
157: ; preds = %151
store i32 0, ptr %2, align 4
br label %211
158: ; preds = %156
br label %159
159: ; preds = %158, %150
br label %189
160: ; preds = %137
%161 = load ptr, ptr %5, align 8
%162 = load i8, ptr %161, align 1
%163 = call i32 @is_number(i8 noundef signext %162)
%164 = icmp ne i32 %163, 0
br i1 %164, label %165, label %166
165: ; preds = %160
store i16 2, ptr %6, align 2
br label %167
166: ; preds = %160
store i32 0, ptr %2, align 4
br label %211
167: ; preds = %165
br label %189
168: ; preds = %137
%169 = load ptr, ptr %5, align 8
%170 = load i8, ptr %169, align 1
%171 = sext i8 %170 to i32
%172 = icmp eq i32 %171, 46
br i1 %172, label %173, label %174
173: ; preds = %168
store i16 3, ptr %6, align 2
br label %181
174: ; preds = %168
%175 = load ptr, ptr %5, align 8
%176 = load i8, ptr %175, align 1
%177 = call i32 @is_number(i8 noundef signext %176)
%178 = icmp ne i32 %177, 0
br i1 %178, label %180, label %179
179: ; preds = %174
store i32 0, ptr %2, align 4
br label %211
180: ; preds = %174
br label %181
181: ; preds = %180, %173
br label %189
182: ; preds = %137
%183 = load ptr, ptr %5, align 8
%184 = load i8, ptr %183, align 1
%185 = call i32 @is_number(i8 noundef signext %184)
%186 = icmp ne i32 %185, 0
br i1 %186, label %188, label %187
187: ; preds = %182
store i32 0, ptr %2, align 4
br label %211
188: ; preds = %182
br label %189
189: ; preds = %137, %188, %181, %167, %159
%190 = load ptr, ptr %3, align 8
%191 = load ptr, ptr %5, align 8
%192 = icmp ne ptr %190, %191
br i1 %192, label %193, label %197
193: ; preds = %189
%194 = load ptr, ptr %5, align 8
%195 = load i8, ptr %194, align 1
%196 = load ptr, ptr %3, align 8
store i8 %195, ptr %196, align 1
br label %197
197: ; preds = %193, %189
%198 = load ptr, ptr %3, align 8
%199 = getelementptr inbounds i8, ptr %198, i32 1
store ptr %199, ptr %3, align 8
%200 = load ptr, ptr %5, align 8
%201 = getelementptr inbounds i8, ptr %200, i32 1
store ptr %201, ptr %5, align 8
br label %124, !llvm.loop !11
202: ; preds = %135
%203 = load ptr, ptr %3, align 8
%204 = load i8, ptr %203, align 1
%205 = icmp ne i8 %204, 0
br i1 %205, label %206, label %208
206: ; preds = %202
%207 = load ptr, ptr %3, align 8
store i8 0, ptr %207, align 1
br label %208
208: ; preds = %206, %202
store i32 1, ptr %4, align 4
br label %209
209: ; preds = %208, %1
%210 = load i32, ptr %4, align 4
store i32 %210, ptr %2, align 4
br label %211
211: ; preds = %209, %187, %179, %166, %157, %122, %101, %65, %44, %34
%212 = load i32, ptr %2, align 4
ret i32 %212
}
declare i64 @is_space(i8 noundef signext) #1
declare i32 @checkts(i32 noundef, i32 noundef) #1
declare i32 @is_number(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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3felq69m.c"
target datalayout = "e-m:e-p270: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 @parseline(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i16, align 2
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %208
10: ; preds = %1
store i16 0, ptr %6, align 2
br label %11
11: ; preds = %24, %10
%12 = load ptr, ptr %5, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %22
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = load i8, ptr %17, align 1
%19 = call i64 @is_space(i8 noundef signext %18)
%20 = icmp ne i64 %19, 0
%21 = xor i1 %20, true
br label %22
22: ; preds = %16, %11
%23 = phi i1 [ false, %11 ], [ %21, %16 ]
br i1 %23, label %24, label %35
24: ; preds = %22
%25 = load i16, ptr %6, align 2
%26 = add i16 %25, 1
store i16 %26, ptr %6, align 2
%27 = sext i16 %25 to i32
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %5, align 8
%30 = load i8, ptr %28, align 1
%31 = sext i8 %30 to i32
%32 = call i32 @checkts(i32 noundef %27, i32 noundef %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %11, label %34, !llvm.loop !6
34: ; preds = %24
store i32 0, ptr %2, align 4
br label %210
35: ; preds = %22
%36 = load ptr, ptr %5, align 8
%37 = load i8, ptr %36, align 1
%38 = icmp ne i8 %37, 0
br i1 %38, label %39, label %43
39: ; preds = %35
%40 = load ptr, ptr %5, align 8
store ptr %40, ptr %3, align 8
%41 = load ptr, ptr %3, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %3, align 8
store i8 32, ptr %41, align 1
br label %44
43: ; preds = %35
store i32 0, ptr %2, align 4
br label %210
44: ; preds = %39
br label %45
45: ; preds = %57, %44
%46 = load ptr, ptr %5, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %55
50: ; preds = %45
%51 = load ptr, ptr %5, align 8
%52 = load i8, ptr %51, align 1
%53 = call i64 @is_space(i8 noundef signext %52)
%54 = icmp ne i64 %53, 0
br label %55
55: ; preds = %50, %45
%56 = phi i1 [ false, %45 ], [ %54, %50 ]
br i1 %56, label %57, label %60
57: ; preds = %55
%58 = load ptr, ptr %5, align 8
%59 = getelementptr inbounds i8, ptr %58, i32 1
store ptr %59, ptr %5, align 8
br label %45, !llvm.loop !8
60: ; preds = %55
%61 = load ptr, ptr %5, align 8
%62 = load i8, ptr %61, align 1
%63 = icmp ne i8 %62, 0
br i1 %63, label %65, label %64
64: ; preds = %60
store i32 0, ptr %2, align 4
br label %210
65: ; preds = %60
br label %66
66: ; preds = %87, %65
%67 = load ptr, ptr %5, align 8
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %77
71: ; preds = %66
%72 = load ptr, ptr %5, align 8
%73 = load i8, ptr %72, align 1
%74 = call i64 @is_space(i8 noundef signext %73)
%75 = icmp ne i64 %74, 0
%76 = xor i1 %75, true
br label %77
77: ; preds = %71, %66
%78 = phi i1 [ false, %66 ], [ %76, %71 ]
br i1 %78, label %79, label %92
79: ; preds = %77
%80 = load ptr, ptr %3, align 8
%81 = load ptr, ptr %5, align 8
%82 = icmp ne ptr %80, %81
br i1 %82, label %83, label %87
83: ; preds = %79
%84 = load ptr, ptr %5, align 8
%85 = load i8, ptr %84, align 1
%86 = load ptr, ptr %3, align 8
store i8 %85, ptr %86, align 1
br label %87
87: ; preds = %83, %79
%88 = load ptr, ptr %3, align 8
%89 = getelementptr inbounds i8, ptr %88, i32 1
store ptr %89, ptr %3, align 8
%90 = load ptr, ptr %5, align 8
%91 = getelementptr inbounds i8, ptr %90, i32 1
store ptr %91, ptr %5, align 8
br label %66, !llvm.loop !9
92: ; preds = %77
%93 = load ptr, ptr %5, align 8
%94 = load i8, ptr %93, align 1
%95 = icmp ne i8 %94, 0
br i1 %95, label %96, label %100
96: ; preds = %92
%97 = load ptr, ptr %5, align 8
store ptr %97, ptr %3, align 8
%98 = load ptr, ptr %3, align 8
%99 = getelementptr inbounds i8, ptr %98, i32 1
store ptr %99, ptr %3, align 8
store i8 32, ptr %98, align 1
br label %101
100: ; preds = %92
store i32 0, ptr %2, align 4
br label %210
101: ; preds = %96
br label %102
102: ; preds = %114, %101
%103 = load ptr, ptr %5, align 8
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = icmp ne i32 %105, 0
br i1 %106, label %107, label %112
107: ; preds = %102
%108 = load ptr, ptr %5, align 8
%109 = load i8, ptr %108, align 1
%110 = call i64 @is_space(i8 noundef signext %109)
%111 = icmp ne i64 %110, 0
br label %112
112: ; preds = %107, %102
%113 = phi i1 [ false, %102 ], [ %111, %107 ]
br i1 %113, label %114, label %117
114: ; preds = %112
%115 = load ptr, ptr %5, align 8
%116 = getelementptr inbounds i8, ptr %115, i32 1
store ptr %116, ptr %5, align 8
br label %102, !llvm.loop !10
117: ; preds = %112
%118 = load ptr, ptr %5, align 8
%119 = load i8, ptr %118, align 1
%120 = icmp ne i8 %119, 0
br i1 %120, label %122, label %121
121: ; preds = %117
store i32 0, ptr %2, align 4
br label %210
122: ; preds = %117
store i16 0, ptr %6, align 2
br label %123
123: ; preds = %196, %122
%124 = load ptr, ptr %5, align 8
%125 = load i8, ptr %124, align 1
%126 = sext i8 %125 to i32
%127 = icmp ne i32 %126, 0
br i1 %127, label %128, label %134
128: ; preds = %123
%129 = load ptr, ptr %5, align 8
%130 = load i8, ptr %129, align 1
%131 = call i64 @is_space(i8 noundef signext %130)
%132 = icmp ne i64 %131, 0
%133 = xor i1 %132, true
br label %134
134: ; preds = %128, %123
%135 = phi i1 [ false, %123 ], [ %133, %128 ]
br i1 %135, label %136, label %201
136: ; preds = %134
%137 = load i16, ptr %6, align 2
%138 = sext i16 %137 to i32
switch i32 %138, label %188 [
i32 0, label %139
i32 1, label %159
i32 2, label %167
i32 3, label %181
]
139: ; preds = %136
%140 = load ptr, ptr %5, align 8
%141 = load i8, ptr %140, align 1
%142 = sext i8 %141 to i32
%143 = icmp eq i32 %142, 45
br i1 %143, label %149, label %144
144: ; preds = %139
%145 = load ptr, ptr %5, align 8
%146 = load i8, ptr %145, align 1
%147 = sext i8 %146 to i32
%148 = icmp eq i32 %147, 43
br i1 %148, label %149, label %150
149: ; preds = %144, %139
store i16 1, ptr %6, align 2
br label %158
150: ; preds = %144
%151 = load ptr, ptr %5, align 8
%152 = load i8, ptr %151, align 1
%153 = call i32 @is_number(i8 noundef signext %152)
%154 = icmp ne i32 %153, 0
br i1 %154, label %155, label %156
155: ; preds = %150
store i16 2, ptr %6, align 2
br label %157
156: ; preds = %150
store i32 0, ptr %2, align 4
br label %210
157: ; preds = %155
br label %158
158: ; preds = %157, %149
br label %188
159: ; preds = %136
%160 = load ptr, ptr %5, align 8
%161 = load i8, ptr %160, align 1
%162 = call i32 @is_number(i8 noundef signext %161)
%163 = icmp ne i32 %162, 0
br i1 %163, label %164, label %165
164: ; preds = %159
store i16 2, ptr %6, align 2
br label %166
165: ; preds = %159
store i32 0, ptr %2, align 4
br label %210
166: ; preds = %164
br label %188
167: ; preds = %136
%168 = load ptr, ptr %5, align 8
%169 = load i8, ptr %168, align 1
%170 = sext i8 %169 to i32
%171 = icmp eq i32 %170, 46
br i1 %171, label %172, label %173
172: ; preds = %167
store i16 3, ptr %6, align 2
br label %180
173: ; preds = %167
%174 = load ptr, ptr %5, align 8
%175 = load i8, ptr %174, align 1
%176 = call i32 @is_number(i8 noundef signext %175)
%177 = icmp ne i32 %176, 0
br i1 %177, label %179, label %178
178: ; preds = %173
store i32 0, ptr %2, align 4
br label %210
179: ; preds = %173
br label %180
180: ; preds = %179, %172
br label %188
181: ; preds = %136
%182 = load ptr, ptr %5, align 8
%183 = load i8, ptr %182, align 1
%184 = call i32 @is_number(i8 noundef signext %183)
%185 = icmp ne i32 %184, 0
br i1 %185, label %187, label %186
186: ; preds = %181
store i32 0, ptr %2, align 4
br label %210
187: ; preds = %181
br label %188
188: ; preds = %187, %180, %166, %158, %136
%189 = load ptr, ptr %3, align 8
%190 = load ptr, ptr %5, align 8
%191 = icmp ne ptr %189, %190
br i1 %191, label %192, label %196
192: ; preds = %188
%193 = load ptr, ptr %5, align 8
%194 = load i8, ptr %193, align 1
%195 = load ptr, ptr %3, align 8
store i8 %194, ptr %195, align 1
br label %196
196: ; preds = %192, %188
%197 = load ptr, ptr %3, align 8
%198 = getelementptr inbounds i8, ptr %197, i32 1
store ptr %198, ptr %3, align 8
%199 = load ptr, ptr %5, align 8
%200 = getelementptr inbounds i8, ptr %199, i32 1
store ptr %200, ptr %5, align 8
br label %123, !llvm.loop !11
201: ; preds = %134
%202 = load ptr, ptr %3, align 8
%203 = load i8, ptr %202, align 1
%204 = icmp ne i8 %203, 0
br i1 %204, label %205, label %207
205: ; preds = %201
%206 = load ptr, ptr %3, align 8
store i8 0, ptr %206, align 1
br label %207
207: ; preds = %205, %201
store i32 1, ptr %4, align 4
br label %208
208: ; preds = %207, %1
%209 = load i32, ptr %4, align 4
store i32 %209, ptr %2, align 4
br label %210
210: ; preds = %208, %186, %178, %165, %156, %121, %100, %64, %43, %34
%211 = load i32, ptr %2, align 4
ret i32 %211
}
declare i64 @is_space(i8 noundef signext) #1
declare i32 @checkts(i32 noundef, i32 noundef) #1
declare i32 @is_number(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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmp503b6chf.c'
source_filename = "/tmp/tmp503b6chf.c"
target datalayout = "e-m:e-p270: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 [29 x i8] c"Impossible to allocate space\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d,\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"\0Aarithmetic mean: %.2f \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 float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = mul i64 %14, 4
%16 = trunc i64 %15 to i32
%17 = call ptr @malloc(i32 noundef %16)
store ptr %17, ptr %10, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %22
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%21 = call i32 @exit(i32 noundef 0) #3
unreachable
22: ; preds = %2
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = mul i64 %24, 4
%26 = trunc i64 %25 to i32
%27 = call ptr @malloc(i32 noundef %26)
store ptr %27, ptr %10, align 8
store i32 0, ptr %9, align 4
br label %28
28: ; preds = %44, %22
%29 = load i32, ptr %9, align 4
%30 = load i32, ptr %6, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %47
32: ; preds = %28
%33 = call i32 @scanf(ptr noundef @.str, ptr noundef %7)
%34 = load i32, ptr %7, align 4
%35 = load ptr, ptr %10, align 8
%36 = load i32, ptr %9, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
store i32 %34, ptr %38, align 4
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %8, align 4
%41 = add nsw i32 %40, %39
store i32 %41, ptr %8, align 4
%42 = load i32, ptr %7, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %42)
br label %44
44: ; preds = %32
%45 = load i32, ptr %9, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %9, align 4
br label %28, !llvm.loop !6
47: ; preds = %28
%48 = load i32, ptr %8, align 4
%49 = sitofp i32 %48 to float
%50 = load i32, ptr %6, align 4
%51 = sitofp i32 %50 to float
%52 = fdiv float %49, %51
store float %52, ptr %11, align 4
%53 = load float, ptr %11, align 4
%54 = fpext float %53 to double
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %54)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp503b6chf.c"
target datalayout = "e-m:e-p270: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 [29 x i8] c"Impossible to allocate space\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d,\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"\0Aarithmetic mean: %.2f \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 float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = mul i64 %14, 4
%16 = trunc i64 %15 to i32
%17 = call ptr @malloc(i32 noundef %16)
store ptr %17, ptr %10, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %22
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%21 = call i32 @exit(i32 noundef 0) #3
unreachable
22: ; preds = %2
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = mul i64 %24, 4
%26 = trunc i64 %25 to i32
%27 = call ptr @malloc(i32 noundef %26)
store ptr %27, ptr %10, align 8
store i32 0, ptr %9, align 4
%28 = load i32, ptr %9, align 4
%29 = load i32, ptr %6, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %.lr.ph, label %49
.lr.ph: ; preds = %22
br label %31
31: ; preds = %.lr.ph, %43
%32 = call i32 @scanf(ptr noundef @.str, ptr noundef %7)
%33 = load i32, ptr %7, align 4
%34 = load ptr, ptr %10, align 8
%35 = load i32, ptr %9, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
store i32 %33, ptr %37, align 4
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, %38
store i32 %40, ptr %8, align 4
%41 = load i32, ptr %7, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %41)
br label %43
43: ; preds = %31
%44 = load i32, ptr %9, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %9, align 4
%46 = load i32, ptr %9, align 4
%47 = load i32, ptr %6, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %49
49: ; preds = %._crit_edge, %22
%50 = load i32, ptr %8, align 4
%51 = sitofp i32 %50 to float
%52 = load i32, ptr %6, align 4
%53 = sitofp i32 %52 to float
%54 = fdiv float %51, %53
store float %54, ptr %11, align 4
%55 = load float, ptr %11, align 4
%56 = fpext float %55 to double
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %56)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpj0xgh1nt.c'
source_filename = "/tmp/tmpj0xgh1nt.c"
target datalayout = "e-m:e-p270: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/tmpj0xgh1nt.c"
target datalayout = "e-m:e-p270: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/tmpjqqk45nx.c'
source_filename = "/tmp/tmpjqqk45nx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @wcsxfrm(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i64 @wcslen(ptr noundef %8)
store i64 %9, ptr %7, align 8
%10 = load i64, ptr %7, align 8
%11 = load i64, ptr %6, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %13, label %19
13: ; preds = %3
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %7, align 8
%17 = add i64 %16, 1
%18 = call i32 @wmemcpy(ptr noundef %14, ptr noundef %15, i64 noundef %17)
br label %33
19: ; preds = %3
%20 = load i64, ptr %6, align 8
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %32
22: ; preds = %19
%23 = load ptr, ptr %4, align 8
%24 = load ptr, ptr %5, align 8
%25 = load i64, ptr %6, align 8
%26 = sub i64 %25, 1
%27 = call i32 @wmemcpy(ptr noundef %23, ptr noundef %24, i64 noundef %26)
%28 = load ptr, ptr %4, align 8
%29 = load i64, ptr %6, align 8
%30 = sub i64 %29, 1
%31 = getelementptr inbounds i64, ptr %28, i64 %30
store i64 0, ptr %31, align 8
br label %32
32: ; preds = %22, %19
br label %33
33: ; preds = %32, %13
%34 = load i64, ptr %7, align 8
ret i64 %34
}
declare i64 @wcslen(ptr noundef) #1
declare i32 @wmemcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjqqk45nx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @wcsxfrm(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i64 @wcslen(ptr noundef %8)
store i64 %9, ptr %7, align 8
%10 = load i64, ptr %7, align 8
%11 = load i64, ptr %6, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %13, label %19
13: ; preds = %3
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %7, align 8
%17 = add i64 %16, 1
%18 = call i32 @wmemcpy(ptr noundef %14, ptr noundef %15, i64 noundef %17)
br label %33
19: ; preds = %3
%20 = load i64, ptr %6, align 8
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %32
22: ; preds = %19
%23 = load ptr, ptr %4, align 8
%24 = load ptr, ptr %5, align 8
%25 = load i64, ptr %6, align 8
%26 = sub i64 %25, 1
%27 = call i32 @wmemcpy(ptr noundef %23, ptr noundef %24, i64 noundef %26)
%28 = load ptr, ptr %4, align 8
%29 = load i64, ptr %6, align 8
%30 = sub i64 %29, 1
%31 = getelementptr inbounds i64, ptr %28, i64 %30
store i64 0, ptr %31, align 8
br label %32
32: ; preds = %22, %19
br label %33
33: ; preds = %32, %13
%34 = load i64, ptr %7, align 8
ret i64 %34
}
declare i64 @wcslen(ptr noundef) #1
declare i32 @wmemcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgd8bhxfe.c'
source_filename = "/tmp/tmpgd8bhxfe.c"
target datalayout = "e-m:e-p270: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 @Reverse_List(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %21, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %24
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %4, align 4
%16 = sub nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %14, i64 %17
%19 = load i32, ptr %18, align 4
%20 = call i32 @Insert_Node(ptr noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %19)
br label %21
21: ; preds = %10
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %6, !llvm.loop !6
24: ; preds = %6
ret void
}
declare i32 @Insert_Node(ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgd8bhxfe.c"
target datalayout = "e-m:e-p270: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 @Reverse_List(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %20
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %5, align 4
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = sub nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %13, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 @Insert_Node(ptr noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef %18)
br label %20
20: ; preds = %9
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %2
ret void
}
declare i32 @Insert_Node(ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmph9k5adv9.c'
source_filename = "/tmp/tmph9k5adv9.c"
target datalayout = "e-m:e-p270: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"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"a=%d \0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"b=%d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %4
4: ; preds = %7, %0
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%6 = icmp eq i32 %5, 2
br i1 %6, label %7, label %12
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef %8)
%10 = load i32, ptr %3, align 4
%11 = call i32 @printf(ptr noundef @.str.2, i32 noundef %10)
br label %4, !llvm.loop !6
12: ; preds = %4
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmph9k5adv9.c"
target datalayout = "e-m:e-p270: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"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"a=%d \0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"b=%d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%5 = icmp eq i32 %4, 2
br i1 %5, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %6
%7 = load i32, ptr %2, align 4
%8 = call i32 @printf(ptr noundef @.str.1, i32 noundef %7)
%9 = load i32, ptr %3, align 4
%10 = call i32 @printf(ptr noundef @.str.2, i32 noundef %9)
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%12 = icmp eq i32 %11, 2
br i1 %12, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %13
13: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpodd8xv31.c'
source_filename = "/tmp/tmpodd8xv31.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"> n = \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"i_final = %i\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\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 %3)
store i32 0, ptr %2, align 4
br label %6
6: ; preds = %13, %0
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %16
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11)
br label %13
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
br label %6, !llvm.loop !6
16: ; preds = %6
%17 = load i32, ptr %2, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %17)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %2, align 4
br label %20
20: ; preds = %27, %16
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %21)
%24 = load i32, ptr %2, align 4
%25 = load i32, ptr %3, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %28
27: ; preds = %20
br label %20
28: ; preds = %20
%29 = load i32, ptr %2, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %29)
%31 = load i32, ptr %1, align 4
ret i32 %31
}
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/tmpodd8xv31.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"> n = \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"i_final = %i\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\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 %3)
store i32 0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %12
%10 = load i32, ptr %2, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10)
br label %12
12: ; preds = %9
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %18
18: ; preds = %._crit_edge, %0
%19 = load i32, ptr %2, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %2, align 4
br label %22
22: ; preds = %22, %18
%23 = load i32, ptr %2, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %2, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
%26 = load i32, ptr %2, align 4
%27 = load i32, ptr %3, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %22, label %29
29: ; preds = %22
%30 = load i32, ptr %2, align 4
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %30)
%32 = load i32, ptr %1, align 4
ret i32 %32
}
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/tmpcf7vb9cj.c'
source_filename = "/tmp/tmpcf7vb9cj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@cheb4.g = internal global [2 x double] [double 0x3FE96DCF37439FF0, double 0x3FC80307BA95E81A], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @cheb4(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca i32, align 4
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%8 = load double, ptr %4, align 8
%9 = load double, ptr %5, align 8
%10 = fcmp oeq double %8, %9
br i1 %10, label %11, label %12
11: ; preds = %2
store double 0.000000e+00, ptr %3, align 8
br label %62
12: ; preds = %2
store i32 0, ptr %7, align 4
%13 = load double, ptr %4, align 8
%14 = load double, ptr %5, align 8
%15 = fcmp ogt double %13, %14
br i1 %15, label %16, label %20
16: ; preds = %12
store i32 1, ptr %7, align 4
%17 = load double, ptr %4, align 8
store double %17, ptr %6, align 8
%18 = load double, ptr %5, align 8
store double %18, ptr %4, align 8
%19 = load double, ptr %6, align 8
store double %19, ptr %5, align 8
br label %20
20: ; preds = %16, %12
%21 = load double, ptr %4, align 8
%22 = load double, ptr %5, align 8
%23 = load double, ptr @cheb4.g, align 16
%24 = call i32 @_Normal(double noundef %21, double noundef %22, double noundef %23)
%25 = call double @_f(i32 noundef %24)
store double %25, ptr %6, align 8
%26 = load double, ptr %4, align 8
%27 = load double, ptr %5, align 8
%28 = load double, ptr @cheb4.g, align 16
%29 = fneg double %28
%30 = call i32 @_Normal(double noundef %26, double noundef %27, double noundef %29)
%31 = call double @_f(i32 noundef %30)
%32 = load double, ptr %6, align 8
%33 = fadd double %32, %31
store double %33, ptr %6, align 8
%34 = load double, ptr %4, align 8
%35 = load double, ptr %5, align 8
%36 = load double, ptr getelementptr inbounds ([2 x double], ptr @cheb4.g, i64 0, i64 1), align 8
%37 = call i32 @_Normal(double noundef %34, double noundef %35, double noundef %36)
%38 = call double @_f(i32 noundef %37)
%39 = load double, ptr %6, align 8
%40 = fadd double %39, %38
store double %40, ptr %6, align 8
%41 = load double, ptr %4, align 8
%42 = load double, ptr %5, align 8
%43 = load double, ptr getelementptr inbounds ([2 x double], ptr @cheb4.g, i64 0, i64 1), align 8
%44 = fneg double %43
%45 = call i32 @_Normal(double noundef %41, double noundef %42, double noundef %44)
%46 = call double @_f(i32 noundef %45)
%47 = load double, ptr %6, align 8
%48 = fadd double %47, %46
store double %48, ptr %6, align 8
%49 = load double, ptr %5, align 8
%50 = load double, ptr %4, align 8
%51 = fsub double %49, %50
%52 = fdiv double %51, 4.000000e+00
%53 = load double, ptr %6, align 8
%54 = fmul double %53, %52
store double %54, ptr %6, align 8
%55 = load i32, ptr %7, align 4
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %60
57: ; preds = %20
%58 = load double, ptr %6, align 8
%59 = fneg double %58
store double %59, ptr %3, align 8
br label %62
60: ; preds = %20
%61 = load double, ptr %6, align 8
store double %61, ptr %3, align 8
br label %62
62: ; preds = %60, %57, %11
%63 = load double, ptr %3, align 8
ret double %63
}
declare double @_f(i32 noundef) #1
declare i32 @_Normal(double noundef, double 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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcf7vb9cj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@cheb4.g = internal global [2 x double] [double 0x3FE96DCF37439FF0, double 0x3FC80307BA95E81A], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @cheb4(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca i32, align 4
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%8 = load double, ptr %4, align 8
%9 = load double, ptr %5, align 8
%10 = fcmp oeq double %8, %9
br i1 %10, label %11, label %12
11: ; preds = %2
store double 0.000000e+00, ptr %3, align 8
br label %62
12: ; preds = %2
store i32 0, ptr %7, align 4
%13 = load double, ptr %4, align 8
%14 = load double, ptr %5, align 8
%15 = fcmp ogt double %13, %14
br i1 %15, label %16, label %20
16: ; preds = %12
store i32 1, ptr %7, align 4
%17 = load double, ptr %4, align 8
store double %17, ptr %6, align 8
%18 = load double, ptr %5, align 8
store double %18, ptr %4, align 8
%19 = load double, ptr %6, align 8
store double %19, ptr %5, align 8
br label %20
20: ; preds = %16, %12
%21 = load double, ptr %4, align 8
%22 = load double, ptr %5, align 8
%23 = load double, ptr @cheb4.g, align 16
%24 = call i32 @_Normal(double noundef %21, double noundef %22, double noundef %23)
%25 = call double @_f(i32 noundef %24)
store double %25, ptr %6, align 8
%26 = load double, ptr %4, align 8
%27 = load double, ptr %5, align 8
%28 = load double, ptr @cheb4.g, align 16
%29 = fneg double %28
%30 = call i32 @_Normal(double noundef %26, double noundef %27, double noundef %29)
%31 = call double @_f(i32 noundef %30)
%32 = load double, ptr %6, align 8
%33 = fadd double %32, %31
store double %33, ptr %6, align 8
%34 = load double, ptr %4, align 8
%35 = load double, ptr %5, align 8
%36 = load double, ptr getelementptr inbounds ([2 x double], ptr @cheb4.g, i64 0, i64 1), align 8
%37 = call i32 @_Normal(double noundef %34, double noundef %35, double noundef %36)
%38 = call double @_f(i32 noundef %37)
%39 = load double, ptr %6, align 8
%40 = fadd double %39, %38
store double %40, ptr %6, align 8
%41 = load double, ptr %4, align 8
%42 = load double, ptr %5, align 8
%43 = load double, ptr getelementptr inbounds ([2 x double], ptr @cheb4.g, i64 0, i64 1), align 8
%44 = fneg double %43
%45 = call i32 @_Normal(double noundef %41, double noundef %42, double noundef %44)
%46 = call double @_f(i32 noundef %45)
%47 = load double, ptr %6, align 8
%48 = fadd double %47, %46
store double %48, ptr %6, align 8
%49 = load double, ptr %5, align 8
%50 = load double, ptr %4, align 8
%51 = fsub double %49, %50
%52 = fdiv double %51, 4.000000e+00
%53 = load double, ptr %6, align 8
%54 = fmul double %53, %52
store double %54, ptr %6, align 8
%55 = load i32, ptr %7, align 4
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %60
57: ; preds = %20
%58 = load double, ptr %6, align 8
%59 = fneg double %58
store double %59, ptr %3, align 8
br label %62
60: ; preds = %20
%61 = load double, ptr %6, align 8
store double %61, ptr %3, align 8
br label %62
62: ; preds = %60, %57, %11
%63 = load double, ptr %3, align 8
ret double %63
}
declare double @_f(i32 noundef) #1
declare i32 @_Normal(double noundef, double 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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.