llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpx2_i3dci.c'
source_filename = "/tmp/tmpx2_i3dci.c"
target datalayout = "e-m:e-p270: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/tmpx2_i3dci.c"
target datalayout = "e-m:e-p270: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/tmpuvakmzkq.c'
source_filename = "/tmp/tmpuvakmzkq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_storage = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @net_is_connected(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.sockaddr_storage, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 4, ptr %4, align 4
%5 = load i32, ptr %2, align 4
%6 = call i64 @getpeername(i32 noundef %5, ptr noundef %3, ptr noundef %4)
%7 = icmp eq i64 %6, 0
%8 = zext i1 %7 to i32
ret i32 %8
}
declare i64 @getpeername(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/tmpuvakmzkq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_storage = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @net_is_connected(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.sockaddr_storage, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 4, ptr %4, align 4
%5 = load i32, ptr %2, align 4
%6 = call i64 @getpeername(i32 noundef %5, ptr noundef %3, ptr noundef %4)
%7 = icmp eq i64 %6, 0
%8 = zext i1 %7 to i32
ret i32 %8
}
declare i64 @getpeername(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/tmpacfukv2d.c'
source_filename = "/tmp/tmpacfukv2d.c"
target datalayout = "e-m:e-p270: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 [58 x i8] c"Summary of DineroIV replacements for DineroIII options:\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"DineroIII DineroIV\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"-u -l1-usize\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"-i -l1-isize\0A\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"-d -l1-dsize\0A\00", align 1
@.str.5 = private unnamed_addr constant [52 x i8] c"-b -l1-ubsize, -l1-ibsize, or -l1-dbsize\0A\00", align 1
@.str.6 = private unnamed_addr constant [55 x i8] c"-S -l1-usbsize, -l1-isbsize, or -l1-dsbsize\0A\00", align 1
@.str.7 = private unnamed_addr constant [52 x i8] c"-a -l1-uassoc, -l1-iassoc, or -l1-dassoc\0A\00", align 1
@.str.8 = private unnamed_addr constant [49 x i8] c"-r -l1-urepl, -l1-irepl, or -l1-drepl\0A\00", align 1
@.str.9 = private unnamed_addr constant [52 x i8] c"-f -l1-ufetch, -l1-ifetch, or -l1-dfetch\0A\00", align 1
@.str.10 = private unnamed_addr constant [55 x i8] c"-p -l1-upfdist, -l1-ipfdist, or -l1-dpfdist\0A\00", align 1
@.str.11 = private unnamed_addr constant [58 x i8] c"-P -l1-upfabort, -l1-ipfabort, or -l1-dpfabort\0A\00", align 1
@.str.12 = private unnamed_addr constant [39 x i8] c"-w -l1-uwback or -l1-dwback\0A\00", align 1
@.str.13 = private unnamed_addr constant [41 x i8] c"-A -l1-uwalloc or -l1-dwalloc\0A\00", align 1
@.str.14 = private unnamed_addr constant [26 x i8] c"-Q -flushcount\0A\00", align 1
@.str.15 = private unnamed_addr constant [24 x i8] c"-z -maxcount\0A\00", align 1
@.str.16 = private unnamed_addr constant [25 x i8] c"-Z -skipcount\0A\00", align 1
@.str.17 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.18 = private unnamed_addr constant [37 x i8] c"DineroIII input format: -informat d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @val_helpd3(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 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @printf(ptr noundef @.str.1)
%9 = call i32 @printf(ptr noundef @.str.2)
%10 = call i32 @printf(ptr noundef @.str.3)
%11 = call i32 @printf(ptr noundef @.str.4)
%12 = call i32 @printf(ptr noundef @.str.5)
%13 = call i32 @printf(ptr noundef @.str.6)
%14 = call i32 @printf(ptr noundef @.str.7)
%15 = call i32 @printf(ptr noundef @.str.8)
%16 = call i32 @printf(ptr noundef @.str.9)
%17 = call i32 @printf(ptr noundef @.str.10)
%18 = call i32 @printf(ptr noundef @.str.11)
%19 = call i32 @printf(ptr noundef @.str.12)
%20 = call i32 @printf(ptr noundef @.str.13)
%21 = call i32 @printf(ptr noundef @.str.14)
%22 = call i32 @printf(ptr noundef @.str.15)
%23 = call i32 @printf(ptr noundef @.str.16)
%24 = call i32 @printf(ptr noundef @.str.17)
%25 = call i32 @printf(ptr noundef @.str.18)
%26 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpacfukv2d.c"
target datalayout = "e-m:e-p270: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 [58 x i8] c"Summary of DineroIV replacements for DineroIII options:\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"DineroIII DineroIV\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"-u -l1-usize\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"-i -l1-isize\0A\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"-d -l1-dsize\0A\00", align 1
@.str.5 = private unnamed_addr constant [52 x i8] c"-b -l1-ubsize, -l1-ibsize, or -l1-dbsize\0A\00", align 1
@.str.6 = private unnamed_addr constant [55 x i8] c"-S -l1-usbsize, -l1-isbsize, or -l1-dsbsize\0A\00", align 1
@.str.7 = private unnamed_addr constant [52 x i8] c"-a -l1-uassoc, -l1-iassoc, or -l1-dassoc\0A\00", align 1
@.str.8 = private unnamed_addr constant [49 x i8] c"-r -l1-urepl, -l1-irepl, or -l1-drepl\0A\00", align 1
@.str.9 = private unnamed_addr constant [52 x i8] c"-f -l1-ufetch, -l1-ifetch, or -l1-dfetch\0A\00", align 1
@.str.10 = private unnamed_addr constant [55 x i8] c"-p -l1-upfdist, -l1-ipfdist, or -l1-dpfdist\0A\00", align 1
@.str.11 = private unnamed_addr constant [58 x i8] c"-P -l1-upfabort, -l1-ipfabort, or -l1-dpfabort\0A\00", align 1
@.str.12 = private unnamed_addr constant [39 x i8] c"-w -l1-uwback or -l1-dwback\0A\00", align 1
@.str.13 = private unnamed_addr constant [41 x i8] c"-A -l1-uwalloc or -l1-dwalloc\0A\00", align 1
@.str.14 = private unnamed_addr constant [26 x i8] c"-Q -flushcount\0A\00", align 1
@.str.15 = private unnamed_addr constant [24 x i8] c"-z -maxcount\0A\00", align 1
@.str.16 = private unnamed_addr constant [25 x i8] c"-Z -skipcount\0A\00", align 1
@.str.17 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.18 = private unnamed_addr constant [37 x i8] c"DineroIII input format: -informat d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @val_helpd3(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 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @printf(ptr noundef @.str.1)
%9 = call i32 @printf(ptr noundef @.str.2)
%10 = call i32 @printf(ptr noundef @.str.3)
%11 = call i32 @printf(ptr noundef @.str.4)
%12 = call i32 @printf(ptr noundef @.str.5)
%13 = call i32 @printf(ptr noundef @.str.6)
%14 = call i32 @printf(ptr noundef @.str.7)
%15 = call i32 @printf(ptr noundef @.str.8)
%16 = call i32 @printf(ptr noundef @.str.9)
%17 = call i32 @printf(ptr noundef @.str.10)
%18 = call i32 @printf(ptr noundef @.str.11)
%19 = call i32 @printf(ptr noundef @.str.12)
%20 = call i32 @printf(ptr noundef @.str.13)
%21 = call i32 @printf(ptr noundef @.str.14)
%22 = call i32 @printf(ptr noundef @.str.15)
%23 = call i32 @printf(ptr noundef @.str.16)
%24 = call i32 @printf(ptr noundef @.str.17)
%25 = call i32 @printf(ptr noundef @.str.18)
%26 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyxm46055.c'
source_filename = "/tmp/tmpyxm46055.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @cscb(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
store double %0, ptr %10, align 8
store double %1, ptr %11, align 8
store double %2, ptr %12, align 8
store double %3, ptr %13, align 8
store double %4, ptr %14, align 8
store ptr %5, ptr %15, align 8
store ptr %6, ptr %16, align 8
store ptr %7, ptr %17, align 8
%24 = load double, ptr %10, align 8
%25 = load double, ptr %13, align 8
%26 = fadd double %24, %25
store double %26, ptr %18, align 8
%27 = load double, ptr %11, align 8
%28 = load double, ptr %14, align 8
%29 = fsub double %27, %28
store double %29, ptr %19, align 8
%30 = load double, ptr %18, align 8
%31 = load double, ptr %18, align 8
%32 = load double, ptr %19, align 8
%33 = load double, ptr %19, align 8
%34 = fmul double %32, %33
%35 = call double @llvm.fmuladd.f64(double %30, double %31, double %34)
%36 = call double @sqrt(double noundef %35) #4
store double %36, ptr %20, align 8
%37 = load double, ptr %20, align 8
%38 = fcmp olt double %37, 2.000000e+00
br i1 %38, label %39, label %40
39: ; preds = %8
store double 1.000000e+04, ptr %9, align 8
br label %73
40: ; preds = %8
%41 = load double, ptr %19, align 8
%42 = fptosi double %41 to i32
%43 = load double, ptr %18, align 8
%44 = call double @my_atan2(i32 noundef %42, double noundef %43)
store double %44, ptr %21, align 8
%45 = load double, ptr %20, align 8
%46 = load double, ptr %20, align 8
%47 = call double @llvm.fmuladd.f64(double %45, double %46, double -4.000000e+00)
%48 = call double @sqrt(double noundef %47) #4
%49 = load ptr, ptr %16, align 8
store double %48, ptr %49, align 8
%50 = load ptr, ptr %16, align 8
%51 = load double, ptr %50, align 8
%52 = call double @my_atan2(i32 noundef 2, double noundef %51)
store double %52, ptr %22, align 8
%53 = load double, ptr %21, align 8
%54 = load double, ptr %22, align 8
%55 = fadd double %53, %54
%56 = call double @mod2pi(double noundef %55)
%57 = load ptr, ptr %15, align 8
store double %56, ptr %57, align 8
%58 = load ptr, ptr %15, align 8
%59 = load double, ptr %58, align 8
%60 = load double, ptr %12, align 8
%61 = fsub double %59, %60
%62 = call double @mod2pi(double noundef %61)
%63 = load ptr, ptr %17, align 8
store double %62, ptr %63, align 8
%64 = load ptr, ptr %15, align 8
%65 = load double, ptr %64, align 8
%66 = load ptr, ptr %17, align 8
%67 = load double, ptr %66, align 8
%68 = fadd double %65, %67
%69 = load ptr, ptr %16, align 8
%70 = load double, ptr %69, align 8
%71 = call double @llvm.fmuladd.f64(double 1.000000e+00, double %68, double %70)
store double %71, ptr %23, align 8
%72 = load double, ptr %23, align 8
store double %72, ptr %9, align 8
br label %73
73: ; preds = %40, %39
%74 = load double, ptr %9, align 8
ret double %74
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @my_atan2(i32 noundef, double noundef) #3
declare double @mod2pi(double 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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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" }
attributes #4 = { 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/tmpyxm46055.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @cscb(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
store double %0, ptr %10, align 8
store double %1, ptr %11, align 8
store double %2, ptr %12, align 8
store double %3, ptr %13, align 8
store double %4, ptr %14, align 8
store ptr %5, ptr %15, align 8
store ptr %6, ptr %16, align 8
store ptr %7, ptr %17, align 8
%24 = load double, ptr %10, align 8
%25 = load double, ptr %13, align 8
%26 = fadd double %24, %25
store double %26, ptr %18, align 8
%27 = load double, ptr %11, align 8
%28 = load double, ptr %14, align 8
%29 = fsub double %27, %28
store double %29, ptr %19, align 8
%30 = load double, ptr %18, align 8
%31 = load double, ptr %18, align 8
%32 = load double, ptr %19, align 8
%33 = load double, ptr %19, align 8
%34 = fmul double %32, %33
%35 = call double @llvm.fmuladd.f64(double %30, double %31, double %34)
%36 = call double @sqrt(double noundef %35) #4
store double %36, ptr %20, align 8
%37 = load double, ptr %20, align 8
%38 = fcmp olt double %37, 2.000000e+00
br i1 %38, label %39, label %40
39: ; preds = %8
store double 1.000000e+04, ptr %9, align 8
br label %73
40: ; preds = %8
%41 = load double, ptr %19, align 8
%42 = fptosi double %41 to i32
%43 = load double, ptr %18, align 8
%44 = call double @my_atan2(i32 noundef %42, double noundef %43)
store double %44, ptr %21, align 8
%45 = load double, ptr %20, align 8
%46 = load double, ptr %20, align 8
%47 = call double @llvm.fmuladd.f64(double %45, double %46, double -4.000000e+00)
%48 = call double @sqrt(double noundef %47) #4
%49 = load ptr, ptr %16, align 8
store double %48, ptr %49, align 8
%50 = load ptr, ptr %16, align 8
%51 = load double, ptr %50, align 8
%52 = call double @my_atan2(i32 noundef 2, double noundef %51)
store double %52, ptr %22, align 8
%53 = load double, ptr %21, align 8
%54 = load double, ptr %22, align 8
%55 = fadd double %53, %54
%56 = call double @mod2pi(double noundef %55)
%57 = load ptr, ptr %15, align 8
store double %56, ptr %57, align 8
%58 = load ptr, ptr %15, align 8
%59 = load double, ptr %58, align 8
%60 = load double, ptr %12, align 8
%61 = fsub double %59, %60
%62 = call double @mod2pi(double noundef %61)
%63 = load ptr, ptr %17, align 8
store double %62, ptr %63, align 8
%64 = load ptr, ptr %15, align 8
%65 = load double, ptr %64, align 8
%66 = load ptr, ptr %17, align 8
%67 = load double, ptr %66, align 8
%68 = fadd double %65, %67
%69 = load ptr, ptr %16, align 8
%70 = load double, ptr %69, align 8
%71 = call double @llvm.fmuladd.f64(double 1.000000e+00, double %68, double %70)
store double %71, ptr %23, align 8
%72 = load double, ptr %23, align 8
store double %72, ptr %9, align 8
br label %73
73: ; preds = %40, %39
%74 = load double, ptr %9, align 8
ret double %74
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @my_atan2(i32 noundef, double noundef) #3
declare double @mod2pi(double 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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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" }
attributes #4 = { 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/tmp4x_v8t7n.c'
source_filename = "/tmp/tmp4x_v8t7n.c"
target datalayout = "e-m:e-p270: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/tmp4x_v8t7n.c"
target datalayout = "e-m:e-p270: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/tmp9vfbtyts.c'
source_filename = "/tmp/tmp9vfbtyts.c"
target datalayout = "e-m:e-p270: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 @tb_rand(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @_tb_rand(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @_tb_rand(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/tmp9vfbtyts.c"
target datalayout = "e-m:e-p270: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 @tb_rand(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @_tb_rand(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @_tb_rand(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/tmp9n2xg_js.c'
source_filename = "/tmp/tmp9n2xg_js.c"
target datalayout = "e-m:e-p270: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 [31 x i8] c"Values before Swap\0A a=%d,b=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Values after Swap\0A a=%d,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
store i32 10, ptr %1, align 4
store i32 45, ptr %2, align 4
%3 = load i32, ptr %1, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %3, i32 noundef %4)
%6 = call i32 @xorSwap(ptr noundef %1, ptr noundef %2)
%7 = load i32, ptr %1, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef %7, i32 noundef %8)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @xorSwap(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/tmp9n2xg_js.c"
target datalayout = "e-m:e-p270: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 [31 x i8] c"Values before Swap\0A a=%d,b=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Values after Swap\0A a=%d,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
store i32 10, ptr %1, align 4
store i32 45, ptr %2, align 4
%3 = load i32, ptr %1, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %3, i32 noundef %4)
%6 = call i32 @xorSwap(ptr noundef %1, ptr noundef %2)
%7 = load i32, ptr %1, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef %7, i32 noundef %8)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @xorSwap(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/tmpwf5fhb2w.c'
source_filename = "/tmp/tmpwf5fhb2w.c"
target datalayout = "e-m:e-p270: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/tmpwf5fhb2w.c"
target datalayout = "e-m:e-p270: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/tmppft1sphl.c'
source_filename = "/tmp/tmppft1sphl.c"
target datalayout = "e-m:e-p270: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/tmppft1sphl.c"
target datalayout = "e-m:e-p270: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/tmpbop9amvq.c'
source_filename = "/tmp/tmpbop9amvq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_CUR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_ppm_int(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @fread(ptr noundef %4, i32 noundef 1, i32 noundef 1, ptr noundef %5)
br label %7
7: ; preds = %24, %1
%8 = load i8, ptr %4, align 1
%9 = zext i8 %8 to i32
%10 = icmp slt i32 %9, 48
br i1 %10, label %15, label %11
11: ; preds = %7
%12 = load i8, ptr %4, align 1
%13 = zext i8 %12 to i32
%14 = icmp sgt i32 %13, 57
br label %15
15: ; preds = %11, %7
%16 = phi i1 [ true, %7 ], [ %14, %11 ]
br i1 %16, label %17, label %27
17: ; preds = %15
%18 = load i8, ptr %4, align 1
%19 = zext i8 %18 to i32
%20 = icmp eq i32 %19, 35
br i1 %20, label %21, label %24
21: ; preds = %17
%22 = load ptr, ptr %2, align 8
%23 = call i32 @read_ppm_line(ptr noundef %22)
br label %24
24: ; preds = %21, %17
%25 = load ptr, ptr %2, align 8
%26 = call i32 @fread(ptr noundef %4, i32 noundef 1, i32 noundef 1, ptr noundef %25)
br label %7, !llvm.loop !6
27: ; preds = %15
br label %28
28: ; preds = %38, %27
%29 = load i8, ptr %4, align 1
%30 = zext i8 %29 to i32
%31 = icmp sge i32 %30, 48
br i1 %31, label %32, label %36
32: ; preds = %28
%33 = load i8, ptr %4, align 1
%34 = zext i8 %33 to i32
%35 = icmp sle i32 %34, 57
br label %36
36: ; preds = %32, %28
%37 = phi i1 [ false, %28 ], [ %35, %32 ]
br i1 %37, label %38, label %47
38: ; preds = %36
%39 = load i32, ptr %3, align 4
%40 = mul nsw i32 %39, 10
%41 = load i8, ptr %4, align 1
%42 = zext i8 %41 to i32
%43 = sub nsw i32 %42, 48
%44 = add nsw i32 %40, %43
store i32 %44, ptr %3, align 4
%45 = load ptr, ptr %2, align 8
%46 = call i32 @fread(ptr noundef %4, i32 noundef 1, i32 noundef 1, ptr noundef %45)
br label %28, !llvm.loop !8
47: ; preds = %36
%48 = load ptr, ptr %2, align 8
%49 = load i32, ptr @SEEK_CUR, align 4
%50 = call i32 @fseek(ptr noundef %48, i32 noundef -1, i32 noundef %49)
%51 = load i32, ptr %3, align 4
ret i32 %51
}
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @read_ppm_line(ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbop9amvq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_CUR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_ppm_int(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @fread(ptr noundef %4, i32 noundef 1, i32 noundef 1, ptr noundef %5)
br label %7
7: ; preds = %24, %1
%8 = load i8, ptr %4, align 1
%9 = zext i8 %8 to i32
%10 = icmp slt i32 %9, 48
br i1 %10, label %15, label %11
11: ; preds = %7
%12 = load i8, ptr %4, align 1
%13 = zext i8 %12 to i32
%14 = icmp sgt i32 %13, 57
br label %15
15: ; preds = %11, %7
%16 = phi i1 [ true, %7 ], [ %14, %11 ]
br i1 %16, label %17, label %27
17: ; preds = %15
%18 = load i8, ptr %4, align 1
%19 = zext i8 %18 to i32
%20 = icmp eq i32 %19, 35
br i1 %20, label %21, label %24
21: ; preds = %17
%22 = load ptr, ptr %2, align 8
%23 = call i32 @read_ppm_line(ptr noundef %22)
br label %24
24: ; preds = %21, %17
%25 = load ptr, ptr %2, align 8
%26 = call i32 @fread(ptr noundef %4, i32 noundef 1, i32 noundef 1, ptr noundef %25)
br label %7, !llvm.loop !6
27: ; preds = %15
br label %28
28: ; preds = %38, %27
%29 = load i8, ptr %4, align 1
%30 = zext i8 %29 to i32
%31 = icmp sge i32 %30, 48
br i1 %31, label %32, label %36
32: ; preds = %28
%33 = load i8, ptr %4, align 1
%34 = zext i8 %33 to i32
%35 = icmp sle i32 %34, 57
br label %36
36: ; preds = %32, %28
%37 = phi i1 [ false, %28 ], [ %35, %32 ]
br i1 %37, label %38, label %47
38: ; preds = %36
%39 = load i32, ptr %3, align 4
%40 = mul nsw i32 %39, 10
%41 = load i8, ptr %4, align 1
%42 = zext i8 %41 to i32
%43 = sub nsw i32 %42, 48
%44 = add nsw i32 %40, %43
store i32 %44, ptr %3, align 4
%45 = load ptr, ptr %2, align 8
%46 = call i32 @fread(ptr noundef %4, i32 noundef 1, i32 noundef 1, ptr noundef %45)
br label %28, !llvm.loop !8
47: ; preds = %36
%48 = load ptr, ptr %2, align 8
%49 = load i32, ptr @SEEK_CUR, align 4
%50 = call i32 @fseek(ptr noundef %48, i32 noundef -1, i32 noundef %49)
%51 = load i32, ptr %3, align 4
ret i32 %51
}
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @read_ppm_line(ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp9085as6q.c'
source_filename = "/tmp/tmp9085as6q.c"
target datalayout = "e-m:e-p270: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 @display_ddd_box(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %11, align 4
%17 = call i32 @display_fillbox_wh(i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef 1, i32 noundef %16, i32 noundef 1)
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %10, align 4
%21 = add nsw i32 %19, %20
%22 = sub nsw i32 %21, 1
%23 = load i32, ptr %9, align 4
%24 = load i32, ptr %12, align 4
%25 = call i32 @display_fillbox_wh(i32 noundef %18, i32 noundef %22, i32 noundef %23, i32 noundef 1, i32 noundef %24, i32 noundef 1)
%26 = load i32, ptr %10, align 4
%27 = sub nsw i32 %26, 2
store i32 %27, ptr %10, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, 1
%31 = load i32, ptr %10, align 4
%32 = load i32, ptr %11, align 4
%33 = call i32 @display_vline_wh(i32 noundef %28, i32 noundef %30, i32 noundef %31, i32 noundef %32, i32 noundef 1)
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %9, align 4
%36 = add nsw i32 %34, %35
%37 = sub nsw i32 %36, 1
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
%40 = load i32, ptr %10, align 4
%41 = load i32, ptr %12, align 4
%42 = call i32 @display_vline_wh(i32 noundef %37, i32 noundef %39, i32 noundef %40, i32 noundef %41, i32 noundef 1)
ret void
}
declare i32 @display_fillbox_wh(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @display_vline_wh(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/tmp9085as6q.c"
target datalayout = "e-m:e-p270: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 @display_ddd_box(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %11, align 4
%17 = call i32 @display_fillbox_wh(i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef 1, i32 noundef %16, i32 noundef 1)
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %10, align 4
%21 = add nsw i32 %19, %20
%22 = sub nsw i32 %21, 1
%23 = load i32, ptr %9, align 4
%24 = load i32, ptr %12, align 4
%25 = call i32 @display_fillbox_wh(i32 noundef %18, i32 noundef %22, i32 noundef %23, i32 noundef 1, i32 noundef %24, i32 noundef 1)
%26 = load i32, ptr %10, align 4
%27 = sub nsw i32 %26, 2
store i32 %27, ptr %10, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, 1
%31 = load i32, ptr %10, align 4
%32 = load i32, ptr %11, align 4
%33 = call i32 @display_vline_wh(i32 noundef %28, i32 noundef %30, i32 noundef %31, i32 noundef %32, i32 noundef 1)
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %9, align 4
%36 = add nsw i32 %34, %35
%37 = sub nsw i32 %36, 1
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
%40 = load i32, ptr %10, align 4
%41 = load i32, ptr %12, align 4
%42 = call i32 @display_vline_wh(i32 noundef %37, i32 noundef %39, i32 noundef %40, i32 noundef %41, i32 noundef 1)
ret void
}
declare i32 @display_fillbox_wh(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @display_vline_wh(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/tmpccktvoqj.c'
source_filename = "/tmp/tmpccktvoqj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S_IRUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"the original mask is %x\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"test.txt\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [15 x i8] c"fail to create\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 i64, align 8
store i32 0, ptr %1, align 4
%4 = load i32, ptr @S_IRUSR, align 4
%5 = load i32, ptr @S_IRGRP, align 4
%6 = or i32 %4, %5
%7 = load i32, ptr @S_IROTH, align 4
%8 = or i32 %6, %7
%9 = call i64 @umask(i32 noundef %8)
store i64 %9, ptr %3, align 8
%10 = load i64, ptr %3, align 8
%11 = trunc i64 %10 to i32
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
%13 = load i32, ptr @O_CREAT, align 4
%14 = call i32 @open(ptr noundef @.str.1, i32 noundef %13, i32 noundef 511)
store i32 %14, ptr %2, align 4
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %19
16: ; preds = %0
%17 = call i32 @perror(ptr noundef @.str.2)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %0
%20 = load i32, ptr %2, align 4
%21 = call i32 @close(i32 noundef %20)
ret i32 0
}
declare i64 @umask(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
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/tmpccktvoqj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S_IRUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"the original mask is %x\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"test.txt\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [15 x i8] c"fail to create\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 i64, align 8
store i32 0, ptr %1, align 4
%4 = load i32, ptr @S_IRUSR, align 4
%5 = load i32, ptr @S_IRGRP, align 4
%6 = or i32 %4, %5
%7 = load i32, ptr @S_IROTH, align 4
%8 = or i32 %6, %7
%9 = call i64 @umask(i32 noundef %8)
store i64 %9, ptr %3, align 8
%10 = load i64, ptr %3, align 8
%11 = trunc i64 %10 to i32
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
%13 = load i32, ptr @O_CREAT, align 4
%14 = call i32 @open(ptr noundef @.str.1, i32 noundef %13, i32 noundef 511)
store i32 %14, ptr %2, align 4
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %19
16: ; preds = %0
%17 = call i32 @perror(ptr noundef @.str.2)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %0
%20 = load i32, ptr %2, align 4
%21 = call i32 @close(i32 noundef %20)
ret i32 0
}
declare i64 @umask(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
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/tmpdxu_ycou.c'
source_filename = "/tmp/tmpdxu_ycou.c"
target datalayout = "e-m:e-p270: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 @sys_init_module(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @init_module(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @init_module(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/tmpdxu_ycou.c"
target datalayout = "e-m:e-p270: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 @sys_init_module(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @init_module(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @init_module(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/tmpfhrpdauy.c'
source_filename = "/tmp/tmpfhrpdauy.c"
target datalayout = "e-m:e-p270: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 @next_seq(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = and i32 %4, 1
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = mul nsw i32 3, %8
%10 = add nsw i32 %9, 1
store i32 %10, ptr %2, align 4
br label %14
11: ; preds = %1
%12 = load i32, ptr %3, align 4
%13 = sdiv i32 %12, 2
store i32 %13, ptr %2, align 4
br label %14
14: ; preds = %11, %7
%15 = load i32, ptr %2, align 4
ret i32 %15
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpfhrpdauy.c"
target datalayout = "e-m:e-p270: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 @next_seq(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = and i32 %4, 1
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = mul nsw i32 3, %8
%10 = add nsw i32 %9, 1
store i32 %10, ptr %2, align 4
br label %14
11: ; preds = %1
%12 = load i32, ptr %3, align 4
%13 = sdiv i32 %12, 2
store i32 %13, ptr %2, align 4
br label %14
14: ; preds = %11, %7
%15 = load i32, ptr %2, align 4
ret i32 %15
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp4b3uk3y3.c'
source_filename = "/tmp/tmp4b3uk3y3.c"
target datalayout = "e-m:e-p270: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/tmp4b3uk3y3.c"
target datalayout = "e-m:e-p270: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/tmpmttnxma2.c'
source_filename = "/tmp/tmpmttnxma2.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i32, i32, i32, i32, i32, ptr, i32 }
%struct.sockaddr_in = type { i32, i32 }
@INET_ADDRSTRLEN = dso_local global i32 0, align 4
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@AI_PASSIVE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [35 x i8] c"Error: Unable to prepare addrinfo\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"Error: Unable to create socket\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Error: Bind\0A\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"Error: Failed to bind to port %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [36 x i8] c"Error: Unable to listen on port %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [46 x i8] c"Error: could not accept connection from peer\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"Connected to peer: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @peer_listen(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 %struct.addrinfo, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca %struct.sockaddr_in, align 4
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 4, ptr %7, align 4
%15 = load i32, ptr @INET_ADDRSTRLEN, align 4
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %12, align 8
%18 = alloca i8, i64 %16, align 16
store i64 %16, ptr %13, align 8
%19 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 40)
%20 = load i32, ptr @AF_UNSPEC, align 4
%21 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 4
store i32 %20, ptr %21, align 8
%22 = load i32, ptr @SOCK_STREAM, align 4
%23 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 3
store i32 %22, ptr %23, align 4
%24 = load i32, ptr @AI_PASSIVE, align 4
%25 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 6
store i32 %24, ptr %25, align 8
%26 = load ptr, ptr %5, align 8
%27 = call i64 @getaddrinfo(ptr noundef null, ptr noundef %26, ptr noundef %8, ptr noundef %9)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %2
%30 = load i32, ptr @stderr, align 4
%31 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %30, ptr noundef @.str)
store i32 0, ptr %3, align 4
store i32 1, ptr %14, align 4
br label %108
32: ; preds = %2
%33 = load ptr, ptr %9, align 8
store ptr %33, ptr %10, align 8
br label %34
34: ; preds = %68, %32
%35 = load ptr, ptr %10, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %72
37: ; preds = %34
%38 = load ptr, ptr %10, align 8
%39 = getelementptr inbounds %struct.addrinfo, ptr %38, i32 0, i32 4
%40 = load i32, ptr %39, align 8
%41 = load ptr, ptr %10, align 8
%42 = getelementptr inbounds %struct.addrinfo, ptr %41, i32 0, i32 3
%43 = load i32, ptr %42, align 4
%44 = load ptr, ptr %10, align 8
%45 = getelementptr inbounds %struct.addrinfo, ptr %44, i32 0, i32 2
%46 = load i32, ptr %45, align 8
%47 = call i32 @socket(i32 noundef %40, i32 noundef %43, i32 noundef %46)
store i32 %47, ptr %6, align 4
%48 = icmp slt i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %37
%50 = load i32, ptr @stderr, align 4
%51 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %50, ptr noundef @.str.1)
store i32 0, ptr %3, align 4
store i32 1, ptr %14, align 4
br label %108
52: ; preds = %37
%53 = load i32, ptr %6, align 4
%54 = load ptr, ptr %10, align 8
%55 = getelementptr inbounds %struct.addrinfo, ptr %54, i32 0, i32 1
%56 = load i32, ptr %55, align 4
%57 = load ptr, ptr %10, align 8
%58 = getelementptr inbounds %struct.addrinfo, ptr %57, i32 0, i32 0
%59 = load i32, ptr %58, align 8
%60 = call i64 @bind(i32 noundef %53, i32 noundef %56, i32 noundef %59)
%61 = icmp slt i64 %60, 0
br i1 %61, label %62, label %67
62: ; preds = %52
%63 = load i32, ptr @stderr, align 4
%64 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %63, ptr noundef @.str.2)
%65 = load i32, ptr %4, align 4
%66 = call i32 @close(i32 noundef %65)
br label %68
67: ; preds = %52
br label %72
68: ; preds = %62
%69 = load ptr, ptr %10, align 8
%70 = getelementptr inbounds %struct.addrinfo, ptr %69, i32 0, i32 5
%71 = load ptr, ptr %70, align 8
store ptr %71, ptr %10, align 8
br label %34, !llvm.loop !6
72: ; preds = %67, %34
%73 = load ptr, ptr %10, align 8
%74 = icmp eq ptr %73, null
br i1 %74, label %75, label %79
75: ; preds = %72
%76 = load i32, ptr @stderr, align 4
%77 = load ptr, ptr %5, align 8
%78 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %76, ptr noundef @.str.3, ptr noundef %77)
br label %79
79: ; preds = %75, %72
%80 = load ptr, ptr %9, align 8
%81 = call i32 @freeaddrinfo(ptr noundef %80)
%82 = load i32, ptr %4, align 4
%83 = call i64 @listen(i32 noundef %82, i32 noundef 2)
%84 = icmp slt i64 %83, 0
br i1 %84, label %85, label %89
85: ; preds = %79
%86 = load i32, ptr @stderr, align 4
%87 = load ptr, ptr %5, align 8
%88 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %86, ptr noundef @.str.4, ptr noundef %87)
store i32 0, ptr %3, align 4
store i32 1, ptr %14, align 4
br label %108
89: ; preds = %79
br label %90
90: ; preds = %89
br label %91
91: ; preds = %90
%92 = load i32, ptr %4, align 4
%93 = call i32 @accept(i32 noundef %92, ptr noundef %11, ptr noundef %7)
store i32 %93, ptr %4, align 4
%94 = icmp slt i32 %93, 0
br i1 %94, label %95, label %98
95: ; preds = %91
%96 = load i32, ptr @stderr, align 4
%97 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %96, ptr noundef @.str.5)
store i32 0, ptr %3, align 4
store i32 1, ptr %14, align 4
br label %108
98: ; preds = %91
%99 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 1
%100 = load i32, ptr %99, align 4
%101 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 0
%102 = trunc i64 %16 to i32
%103 = call i32 @inet_ntop(i32 noundef %100, ptr noundef %101, ptr noundef %18, i32 noundef %102)
%104 = call i32 @printf(ptr noundef @.str.6, ptr noundef %18)
%105 = load i32, ptr %4, align 4
%106 = call i32 @close(i32 noundef %105)
br label %107
107: ; preds = %98
store i32 1, ptr %3, align 4
store i32 1, ptr %14, align 4
br label %108
108: ; preds = %107, %95, %85, %49, %29
%109 = load ptr, ptr %12, align 8
call void @llvm.stackrestore(ptr %109)
%110 = load i32, ptr %3, align 4
ret i32 %110
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i64 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #2
declare i64 @bind(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @close(i32 noundef) #2
declare i32 @freeaddrinfo(ptr noundef) #2
declare i64 @listen(i32 noundef, i32 noundef) #2
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @inet_ntop(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmttnxma2.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i32, i32, i32, i32, i32, ptr, i32 }
%struct.sockaddr_in = type { i32, i32 }
@INET_ADDRSTRLEN = dso_local global i32 0, align 4
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@AI_PASSIVE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [35 x i8] c"Error: Unable to prepare addrinfo\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"Error: Unable to create socket\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Error: Bind\0A\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"Error: Failed to bind to port %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [36 x i8] c"Error: Unable to listen on port %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [46 x i8] c"Error: could not accept connection from peer\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"Connected to peer: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @peer_listen(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 %struct.addrinfo, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca %struct.sockaddr_in, align 4
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 4, ptr %7, align 4
%15 = load i32, ptr @INET_ADDRSTRLEN, align 4
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %12, align 8
%18 = alloca i8, i64 %16, align 16
store i64 %16, ptr %13, align 8
%19 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 40)
%20 = load i32, ptr @AF_UNSPEC, align 4
%21 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 4
store i32 %20, ptr %21, align 8
%22 = load i32, ptr @SOCK_STREAM, align 4
%23 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 3
store i32 %22, ptr %23, align 4
%24 = load i32, ptr @AI_PASSIVE, align 4
%25 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 6
store i32 %24, ptr %25, align 8
%26 = load ptr, ptr %5, align 8
%27 = call i64 @getaddrinfo(ptr noundef null, ptr noundef %26, ptr noundef %8, ptr noundef %9)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %2
%30 = load i32, ptr @stderr, align 4
%31 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %30, ptr noundef @.str)
store i32 0, ptr %3, align 4
store i32 1, ptr %14, align 4
br label %109
32: ; preds = %2
%33 = load ptr, ptr %9, align 8
store ptr %33, ptr %10, align 8
%34 = load ptr, ptr %10, align 8
%35 = icmp ne ptr %34, null
br i1 %35, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %32
br label %36
36: ; preds = %.lr.ph, %67
%37 = load ptr, ptr %10, align 8
%38 = getelementptr inbounds %struct.addrinfo, ptr %37, i32 0, i32 4
%39 = load i32, ptr %38, align 8
%40 = load ptr, ptr %10, align 8
%41 = getelementptr inbounds %struct.addrinfo, ptr %40, i32 0, i32 3
%42 = load i32, ptr %41, align 4
%43 = load ptr, ptr %10, align 8
%44 = getelementptr inbounds %struct.addrinfo, ptr %43, i32 0, i32 2
%45 = load i32, ptr %44, align 8
%46 = call i32 @socket(i32 noundef %39, i32 noundef %42, i32 noundef %45)
store i32 %46, ptr %6, align 4
%47 = icmp slt i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %36
%49 = load i32, ptr @stderr, align 4
%50 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %49, ptr noundef @.str.1)
store i32 0, ptr %3, align 4
store i32 1, ptr %14, align 4
br label %109
51: ; preds = %36
%52 = load i32, ptr %6, align 4
%53 = load ptr, ptr %10, align 8
%54 = getelementptr inbounds %struct.addrinfo, ptr %53, i32 0, i32 1
%55 = load i32, ptr %54, align 4
%56 = load ptr, ptr %10, align 8
%57 = getelementptr inbounds %struct.addrinfo, ptr %56, i32 0, i32 0
%58 = load i32, ptr %57, align 8
%59 = call i64 @bind(i32 noundef %52, i32 noundef %55, i32 noundef %58)
%60 = icmp slt i64 %59, 0
br i1 %60, label %61, label %66
61: ; preds = %51
%62 = load i32, ptr @stderr, align 4
%63 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %62, ptr noundef @.str.2)
%64 = load i32, ptr %4, align 4
%65 = call i32 @close(i32 noundef %64)
br label %67
66: ; preds = %51
br label %73
67: ; preds = %61
%68 = load ptr, ptr %10, align 8
%69 = getelementptr inbounds %struct.addrinfo, ptr %68, i32 0, i32 5
%70 = load ptr, ptr %69, align 8
store ptr %70, ptr %10, align 8
%71 = load ptr, ptr %10, align 8
%72 = icmp ne ptr %71, null
br i1 %72, label %36, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %67
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %32
br label %73
73: ; preds = %.loopexit, %66
%74 = load ptr, ptr %10, align 8
%75 = icmp eq ptr %74, null
br i1 %75, label %76, label %80
76: ; preds = %73
%77 = load i32, ptr @stderr, align 4
%78 = load ptr, ptr %5, align 8
%79 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %77, ptr noundef @.str.3, ptr noundef %78)
br label %80
80: ; preds = %76, %73
%81 = load ptr, ptr %9, align 8
%82 = call i32 @freeaddrinfo(ptr noundef %81)
%83 = load i32, ptr %4, align 4
%84 = call i64 @listen(i32 noundef %83, i32 noundef 2)
%85 = icmp slt i64 %84, 0
br i1 %85, label %86, label %90
86: ; preds = %80
%87 = load i32, ptr @stderr, align 4
%88 = load ptr, ptr %5, align 8
%89 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %87, ptr noundef @.str.4, ptr noundef %88)
store i32 0, ptr %3, align 4
store i32 1, ptr %14, align 4
br label %109
90: ; preds = %80
br label %91
91: ; preds = %90
br label %92
92: ; preds = %91
%93 = load i32, ptr %4, align 4
%94 = call i32 @accept(i32 noundef %93, ptr noundef %11, ptr noundef %7)
store i32 %94, ptr %4, align 4
%95 = icmp slt i32 %94, 0
br i1 %95, label %96, label %99
96: ; preds = %92
%97 = load i32, ptr @stderr, align 4
%98 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %97, ptr noundef @.str.5)
store i32 0, ptr %3, align 4
store i32 1, ptr %14, align 4
br label %109
99: ; preds = %92
%100 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 1
%101 = load i32, ptr %100, align 4
%102 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 0
%103 = trunc i64 %16 to i32
%104 = call i32 @inet_ntop(i32 noundef %101, ptr noundef %102, ptr noundef %18, i32 noundef %103)
%105 = call i32 @printf(ptr noundef @.str.6, ptr noundef %18)
%106 = load i32, ptr %4, align 4
%107 = call i32 @close(i32 noundef %106)
br label %108
108: ; preds = %99
store i32 1, ptr %3, align 4
store i32 1, ptr %14, align 4
br label %109
109: ; preds = %108, %96, %86, %48, %29
%110 = load ptr, ptr %12, align 8
call void @llvm.stackrestore(ptr %110)
%111 = load i32, ptr %3, align 4
ret i32 %111
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i64 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #2
declare i64 @bind(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @close(i32 noundef) #2
declare i32 @freeaddrinfo(ptr noundef) #2
declare i64 @listen(i32 noundef, i32 noundef) #2
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @inet_ntop(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpddb10dx5.c'
source_filename = "/tmp/tmpddb10dx5.c"
target datalayout = "e-m:e-p270: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/tmpddb10dx5.c"
target datalayout = "e-m:e-p270: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/tmpme9u2gxu.c'
source_filename = "/tmp/tmpme9u2gxu.c"
target datalayout = "e-m:e-p270: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 @pw_wipe(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
br label %22
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %3, align 4
br label %10
10: ; preds = %13, %7
%11 = load i32, ptr %3, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %19
13: ; preds = %10
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, -1
store i32 %16, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %14, i64 %17
store i8 0, ptr %18, align 1
br label %10, !llvm.loop !6
19: ; preds = %10
%20 = load ptr, ptr %2, align 8
%21 = call i32 @free(ptr noundef %20)
br label %22
22: ; preds = %19, %6
ret void
}
declare i32 @strlen(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpme9u2gxu.c"
target datalayout = "e-m:e-p270: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 @pw_wipe(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
br label %23
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %.lr.ph, label %20
.lr.ph: ; preds = %7
br label %12
12: ; preds = %.lr.ph, %12
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %13, i64 %16
store i8 0, ptr %17, align 1
%18 = load i32, ptr %3, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %20
20: ; preds = %._crit_edge, %7
%21 = load ptr, ptr %2, align 8
%22 = call i32 @free(ptr noundef %21)
br label %23
23: ; preds = %20, %6
ret void
}
declare i32 @strlen(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8jh30rdf.c'
source_filename = "/tmp/tmp8jh30rdf.c"
target datalayout = "e-m:e-p270: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 [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = call i32 @solve(i32 noundef %4)
%6 = call i32 @printf(ptr noundef @.str.1, i32 noundef %5)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @solve(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/tmp8jh30rdf.c"
target datalayout = "e-m:e-p270: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 [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = call i32 @solve(i32 noundef %4)
%6 = call i32 @printf(ptr noundef @.str.1, i32 noundef %5)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @solve(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/tmpox8g6p5y.c'
source_filename = "/tmp/tmpox8g6p5y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Informe a quantidade: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [61 x i8] c"A soma do quadrado dos %d primeiros n\C3\BAmeros naturais \C3\A9 %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %7
7: ; preds = %11, %0
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %19
11: ; preds = %7
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = mul nsw i32 %13, %14
%16 = add nsw i32 %12, %15
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
br label %7, !llvm.loop !6
19: ; preds = %7
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %4, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %20, i32 noundef %21)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpox8g6p5y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Informe a quantidade: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [61 x i8] c"A soma do quadrado dos %d primeiros n\C3\BAmeros naturais \C3\A9 %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %10
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = mul nsw i32 %12, %13
%15 = add nsw i32 %11, %14
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %21
21: ; preds = %._crit_edge, %0
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %4, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %22, i32 noundef %23)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxbozlc6j.c'
source_filename = "/tmp/tmpxbozlc6j.c"
target datalayout = "e-m:e-p270: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 @i(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 @free(ptr noundef %3)
ret void
}
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/tmpxbozlc6j.c"
target datalayout = "e-m:e-p270: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 @i(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 @free(ptr noundef %3)
ret void
}
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/tmp3fl4p8pv.c'
source_filename = "/tmp/tmp3fl4p8pv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Enter a line of text:\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [32 x i8] c"\0AThe line printed backward is:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [80 x i8], align 16
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%5 = load i32, ptr @stdin, align 4
%6 = call i32 @fgets(ptr noundef %4, i32 noundef 80, i32 noundef %5)
%7 = call i32 @printf(ptr noundef @.str.1)
%8 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @reverse(ptr noundef %8)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @reverse(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/tmp3fl4p8pv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Enter a line of text:\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [32 x i8] c"\0AThe line printed backward is:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [80 x i8], align 16
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%5 = load i32, ptr @stdin, align 4
%6 = call i32 @fgets(ptr noundef %4, i32 noundef 80, i32 noundef %5)
%7 = call i32 @printf(ptr noundef @.str.1)
%8 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @reverse(ptr noundef %8)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @reverse(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/tmprp15__jc.c'
source_filename = "/tmp/tmprp15__jc.c"
target datalayout = "e-m:e-p270: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 x86_fp80 @test1l(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = call x86_fp80 @llvm.rint.f80(x86_fp80 %3)
ret x86_fp80 %4
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.rint.f80(x86_fp80) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprp15__jc.c"
target datalayout = "e-m:e-p270: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 x86_fp80 @test1l(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = call x86_fp80 @llvm.rint.f80(x86_fp80 %3)
ret x86_fp80 %4
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.rint.f80(x86_fp80) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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"}
|
; ModuleID = '/tmp/tmp84dywjf_.c'
source_filename = "/tmp/tmp84dywjf_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"\E5\96\82\EF\BC\81\0A\E6\82\A8\E5\A5\BD\EF\BC\81\0A\0A\E5\86\8D\E8\A7\81\EF\BC\81\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp84dywjf_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"\E5\96\82\EF\BC\81\0A\E6\82\A8\E5\A5\BD\EF\BC\81\0A\0A\E5\86\8D\E8\A7\81\EF\BC\81\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2vwbup4o.c'
source_filename = "/tmp/tmp2vwbup4o.c"
target datalayout = "e-m:e-p270: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 [44 x i8] c"/tmp/testing/userlogs/job_200906101234_0001\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"job acls file obtained is %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [57 x i8] c"/tmp/testing/userlogs/job_200906101234_0001/job-acls.xml\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_get_job_acls_file() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = call i64 @get_job_acls_file(ptr noundef @.str)
%4 = inttoptr i64 %3 to ptr
store ptr %4, ptr %1, align 8
%5 = load ptr, ptr %1, align 8
%6 = call i32 @printf(ptr noundef @.str.1, ptr noundef %5)
store i32 0, ptr %2, align 4
%7 = load ptr, ptr %1, align 8
%8 = call i64 @strcmp(ptr noundef %7, ptr noundef @.str.2)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %0
store i32 -1, ptr %2, align 4
br label %11
11: ; preds = %10, %0
%12 = load ptr, ptr %1, align 8
%13 = call i32 @free(ptr noundef %12)
%14 = load i32, ptr %2, align 4
%15 = icmp eq i32 %14, 0
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 noundef %16)
ret void
}
declare i64 @get_job_acls_file(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2vwbup4o.c"
target datalayout = "e-m:e-p270: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 [44 x i8] c"/tmp/testing/userlogs/job_200906101234_0001\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"job acls file obtained is %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [57 x i8] c"/tmp/testing/userlogs/job_200906101234_0001/job-acls.xml\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_get_job_acls_file() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = call i64 @get_job_acls_file(ptr noundef @.str)
%4 = inttoptr i64 %3 to ptr
store ptr %4, ptr %1, align 8
%5 = load ptr, ptr %1, align 8
%6 = call i32 @printf(ptr noundef @.str.1, ptr noundef %5)
store i32 0, ptr %2, align 4
%7 = load ptr, ptr %1, align 8
%8 = call i64 @strcmp(ptr noundef %7, ptr noundef @.str.2)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %0
store i32 -1, ptr %2, align 4
br label %11
11: ; preds = %10, %0
%12 = load ptr, ptr %1, align 8
%13 = call i32 @free(ptr noundef %12)
%14 = load i32, ptr %2, align 4
%15 = icmp eq i32 %14, 0
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 noundef %16)
ret void
}
declare i64 @get_job_acls_file(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3c6wqz8c.c'
source_filename = "/tmp/tmp3c6wqz8c.c"
target datalayout = "e-m:e-p270: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.anon = type { i32, i32 }
@__const.main.lastglob = private unnamed_addr constant [1 x %struct.anon] [%struct.anon { i32 0, i32 1 }], align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1 x %struct.anon], align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.main.lastglob, i64 8, i1 false)
%3 = getelementptr inbounds [1 x %struct.anon], ptr %2, i64 0, i64 0
%4 = getelementptr inbounds %struct.anon, ptr %3, i32 0, i32 0
%5 = load i32, ptr %4, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %12, label %7
7: ; preds = %0
%8 = getelementptr inbounds [1 x %struct.anon], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds %struct.anon, ptr %8, i32 0, i32 1
%10 = load i32, ptr %9, align 4
%11 = icmp ne i32 %10, 1
br i1 %11, label %12, label %14
12: ; preds = %7, %0
%13 = call i32 (...) @abort() #3
unreachable
14: ; preds = %7
%15 = call i32 @exit(i32 noundef 0) #3
unreachable
}
; 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: noreturn
declare i32 @abort(...) #2
; 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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/tmp3c6wqz8c.c"
target datalayout = "e-m:e-p270: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.anon = type { i32, i32 }
@__const.main.lastglob = private unnamed_addr constant [1 x %struct.anon] [%struct.anon { i32 0, i32 1 }], align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1 x %struct.anon], align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.main.lastglob, i64 8, i1 false)
%3 = getelementptr inbounds [1 x %struct.anon], ptr %2, i64 0, i64 0
%4 = getelementptr inbounds %struct.anon, ptr %3, i32 0, i32 0
%5 = load i32, ptr %4, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %12, label %7
7: ; preds = %0
%8 = getelementptr inbounds [1 x %struct.anon], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds %struct.anon, ptr %8, i32 0, i32 1
%10 = load i32, ptr %9, align 4
%11 = icmp ne i32 %10, 1
br i1 %11, label %12, label %14
12: ; preds = %7, %0
%13 = call i32 (...) @abort() #3
unreachable
14: ; preds = %7
%15 = call i32 @exit(i32 noundef 0) #3
unreachable
}
; 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: noreturn
declare i32 @abort(...) #2
; 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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/tmp1g4x71_3.c'
source_filename = "/tmp/tmp1g4x71_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"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @expr_print(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @expr_print_list(ptr noundef %5, ptr noundef %6, i32 noundef 0)
ret void
}
declare i32 @expr_print_list(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/tmp1g4x71_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"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @expr_print(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @expr_print_list(ptr noundef %5, ptr noundef %6, i32 noundef 0)
ret void
}
declare i32 @expr_print_list(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/tmp3eeapuvk.c'
source_filename = "/tmp/tmp3eeapuvk.c"
target datalayout = "e-m:e-p270: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 @smash_tilde_copy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @strdup(ptr noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @smash_tilde(ptr noundef %6)
%8 = load ptr, ptr %3, align 8
ret ptr %8
}
declare ptr @strdup(ptr noundef) #1
declare i32 @smash_tilde(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/tmp3eeapuvk.c"
target datalayout = "e-m:e-p270: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 @smash_tilde_copy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @strdup(ptr noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @smash_tilde(ptr noundef %6)
%8 = load ptr, ptr %3, align 8
ret ptr %8
}
declare ptr @strdup(ptr noundef) #1
declare i32 @smash_tilde(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/tmp0mgtuiao.c'
source_filename = "/tmp/tmp0mgtuiao.c"
target datalayout = "e-m:e-p270: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/tmp0mgtuiao.c"
target datalayout = "e-m:e-p270: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/tmps85wy_ei.c'
source_filename = "/tmp/tmps85wy_ei.c"
target datalayout = "e-m:e-p270: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"cannot read\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"cannot send\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @serve(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [1024 x i8], align 16
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = ptrtoint ptr %6 to i64
%8 = trunc i64 %7 to i32
store i32 %8, ptr %3, align 4
br label %9
9: ; preds = %1, %35
%10 = load i32, ptr %3, align 4
%11 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%12 = call i32 @read(i32 noundef %10, ptr noundef %11, i32 noundef 1023, i32 noundef 0)
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %9
%16 = call i32 @perror(ptr noundef @.str)
br label %36
17: ; preds = %9
%18 = load i32, ptr %5, align 4
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %17
br label %36
21: ; preds = %17
br label %22
22: ; preds = %21
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 %24
store i8 0, ptr %25, align 1
%26 = load i32, ptr %3, align 4
%27 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%28 = load i32, ptr %5, align 4
%29 = call i32 @send(i32 noundef %26, ptr noundef %27, i32 noundef %28, i32 noundef 0)
store i32 %29, ptr %5, align 4
%30 = load i32, ptr %5, align 4
%31 = icmp sle i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %22
%33 = call i32 @perror(ptr noundef @.str.1)
br label %36
34: ; preds = %22
br label %35
35: ; preds = %34
br label %9
36: ; preds = %32, %20, %15
%37 = load i32, ptr %3, align 4
%38 = call i32 @close(i32 noundef %37)
ret ptr null
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps85wy_ei.c"
target datalayout = "e-m:e-p270: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"cannot read\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"cannot send\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @serve(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [1024 x i8], align 16
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = ptrtoint ptr %6 to i64
%8 = trunc i64 %7 to i32
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%11 = call i32 @read(i32 noundef %9, ptr noundef %10, i32 noundef 1023, i32 noundef 0)
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %.lr.ph
.lr.ph: ; preds = %1
br label %16
._crit_edge: ; preds = %34
br label %14
14: ; preds = %._crit_edge, %1
%15 = call i32 @perror(ptr noundef @.str)
br label %39
16: ; preds = %.lr.ph, %34
%17 = load i32, ptr %5, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %16
br label %39
20: ; preds = %16
br label %21
21: ; preds = %20
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 %23
store i8 0, ptr %24, align 1
%25 = load i32, ptr %3, align 4
%26 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%27 = load i32, ptr %5, align 4
%28 = call i32 @send(i32 noundef %25, ptr noundef %26, i32 noundef %27, i32 noundef 0)
store i32 %28, ptr %5, align 4
%29 = load i32, ptr %5, align 4
%30 = icmp sle i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %21
%32 = call i32 @perror(ptr noundef @.str.1)
br label %39
33: ; preds = %21
br label %34
34: ; preds = %33
%35 = load i32, ptr %3, align 4
%36 = call i32 @read(i32 noundef %35, ptr noundef %10, i32 noundef 1023, i32 noundef 0)
store i32 %36, ptr %5, align 4
%37 = load i32, ptr %5, align 4
%38 = icmp slt i32 %37, 0
br i1 %38, label %._crit_edge, label %16
39: ; preds = %31, %19, %14
%40 = load i32, ptr %3, align 4
%41 = call i32 @close(i32 noundef %40)
ret ptr null
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0pdygb15.c'
source_filename = "/tmp/tmp0pdygb15.c"
target datalayout = "e-m:e-p270: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 @pgtrace_active() #0 {
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/tmp0pdygb15.c"
target datalayout = "e-m:e-p270: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 @pgtrace_active() #0 {
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/tmp4l9y5qnw.c'
source_filename = "/tmp/tmp4l9y5qnw.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @asprintf(ptr noundef @.str, i32 noundef 1)
ret i32 0
}
declare i32 @asprintf(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/tmp4l9y5qnw.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @asprintf(ptr noundef @.str, i32 noundef 1)
ret i32 0
}
declare i32 @asprintf(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/tmpm2itmc4r.c'
source_filename = "/tmp/tmpm2itmc4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@.str = private unnamed_addr constant [13 x i8] c"Test start!\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"Add %d nodes...\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"time span: %ldms\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"Now search each node by key...\0A\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"Not found:0x%08x\0A\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"Now search each node by rank...\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"Not found:%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [25 x i8] c"Now remove all nodes...\0A\00", align 1
@.str.8 = private unnamed_addr constant [14 x i8] c"End of Test.\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 %struct.timeval, align 4
%4 = alloca %struct.timeval, align 4
%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 i32 0, ptr %1, align 4
%10 = call i64 @malloc(i32 noundef 8388608)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @exit(i32 noundef -1) #3
unreachable
16: ; preds = %0
%17 = call ptr (...) @skiplist_new()
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %6, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @exit(i32 noundef -1) #3
unreachable
22: ; preds = %16
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 2097152)
%25 = call i32 @time(ptr noundef null)
%26 = call i32 @srandom(i32 noundef %25)
%27 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
store i32 0, ptr %2, align 4
br label %28
28: ; preds = %46, %22
%29 = load i32, ptr %2, align 4
%30 = icmp slt i32 %29, 2097152
br i1 %30, label %31, label %49
31: ; preds = %28
%32 = call i64 (...) @random()
%33 = trunc i64 %32 to i32
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %2, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
store i32 %33, ptr %37, align 4
store i32 %33, ptr %7, align 4
%38 = load ptr, ptr %6, align 8
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %2, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
%43 = load i32, ptr %42, align 4
%44 = load i32, ptr %7, align 4
%45 = call i32 @skiplist_insert(ptr noundef %38, i32 noundef %43, i32 noundef %44)
br label %46
46: ; preds = %31
%47 = load i32, ptr %2, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %2, align 4
br label %28, !llvm.loop !6
49: ; preds = %28
%50 = call i32 @gettimeofday(ptr noundef %4, ptr noundef null)
%51 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
%52 = load i32, ptr %51, align 4
%53 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%54 = load i32, ptr %53, align 4
%55 = sub nsw i32 %52, %54
%56 = mul nsw i32 %55, 1000
%57 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
%58 = load i32, ptr %57, align 4
%59 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%60 = load i32, ptr %59, align 4
%61 = sub nsw i32 %58, %60
%62 = sdiv i32 %61, 1000
%63 = add nsw i32 %56, %62
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %63)
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%66 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
store i32 0, ptr %2, align 4
br label %67
67: ; preds = %89, %49
%68 = load i32, ptr %2, align 4
%69 = icmp slt i32 %68, 2097152
br i1 %69, label %70, label %92
70: ; preds = %67
%71 = load ptr, ptr %6, align 8
%72 = load ptr, ptr %5, align 8
%73 = load i32, ptr %2, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %72, i64 %74
%76 = load i32, ptr %75, align 4
%77 = call ptr @skiplist_search_by_key(ptr noundef %71, i32 noundef %76)
store ptr %77, ptr %8, align 8
%78 = load ptr, ptr %8, align 8
%79 = icmp ne ptr %78, null
br i1 %79, label %80, label %81
80: ; preds = %70
br label %88
81: ; preds = %70
%82 = load ptr, ptr %5, align 8
%83 = load i32, ptr %2, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %82, i64 %84
%86 = load i32, ptr %85, align 4
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %86)
br label %88
88: ; preds = %81, %80
br label %89
89: ; preds = %88
%90 = load i32, ptr %2, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %2, align 4
br label %67, !llvm.loop !8
92: ; preds = %67
%93 = call i32 @gettimeofday(ptr noundef %4, ptr noundef null)
%94 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
%95 = load i32, ptr %94, align 4
%96 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%97 = load i32, ptr %96, align 4
%98 = sub nsw i32 %95, %97
%99 = mul nsw i32 %98, 1000
%100 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
%101 = load i32, ptr %100, align 4
%102 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%103 = load i32, ptr %102, align 4
%104 = sub nsw i32 %101, %103
%105 = sdiv i32 %104, 1000
%106 = add nsw i32 %99, %105
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %106)
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%109 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
store i32 0, ptr %2, align 4
br label %110
110: ; preds = %126, %92
%111 = load i32, ptr %2, align 4
%112 = icmp slt i32 %111, 2097152
br i1 %112, label %113, label %129
113: ; preds = %110
%114 = load ptr, ptr %6, align 8
%115 = load i32, ptr %2, align 4
%116 = add nsw i32 %115, 1
%117 = call ptr @skiplist_search_by_rank(ptr noundef %114, i32 noundef %116)
store ptr %117, ptr %9, align 8
%118 = load ptr, ptr %9, align 8
%119 = icmp ne ptr %118, null
br i1 %119, label %120, label %121
120: ; preds = %113
br label %125
121: ; preds = %113
%122 = load i32, ptr %2, align 4
%123 = add nsw i32 %122, 1
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %123)
br label %125
125: ; preds = %121, %120
br label %126
126: ; preds = %125
%127 = load i32, ptr %2, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %2, align 4
br label %110, !llvm.loop !9
129: ; preds = %110
%130 = call i32 @gettimeofday(ptr noundef %4, ptr noundef null)
%131 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
%132 = load i32, ptr %131, align 4
%133 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%134 = load i32, ptr %133, align 4
%135 = sub nsw i32 %132, %134
%136 = mul nsw i32 %135, 1000
%137 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
%138 = load i32, ptr %137, align 4
%139 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%140 = load i32, ptr %139, align 4
%141 = sub nsw i32 %138, %140
%142 = sdiv i32 %141, 1000
%143 = add nsw i32 %136, %142
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %143)
%145 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%146 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
store i32 0, ptr %2, align 4
br label %147
147: ; preds = %158, %129
%148 = load i32, ptr %2, align 4
%149 = icmp slt i32 %148, 2097152
br i1 %149, label %150, label %161
150: ; preds = %147
%151 = load ptr, ptr %6, align 8
%152 = load ptr, ptr %5, align 8
%153 = load i32, ptr %2, align 4
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds i32, ptr %152, i64 %154
%156 = load i32, ptr %155, align 4
%157 = call i32 @skiplist_remove(ptr noundef %151, i32 noundef %156)
br label %158
158: ; preds = %150
%159 = load i32, ptr %2, align 4
%160 = add nsw i32 %159, 1
store i32 %160, ptr %2, align 4
br label %147, !llvm.loop !10
161: ; preds = %147
%162 = call i32 @gettimeofday(ptr noundef %4, ptr noundef null)
%163 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
%164 = load i32, ptr %163, align 4
%165 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%166 = load i32, ptr %165, align 4
%167 = sub nsw i32 %164, %166
%168 = mul nsw i32 %167, 1000
%169 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
%170 = load i32, ptr %169, align 4
%171 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%172 = load i32, ptr %171, align 4
%173 = sub nsw i32 %170, %172
%174 = sdiv i32 %173, 1000
%175 = add nsw i32 %168, %174
%176 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %175)
%177 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%178 = load ptr, ptr %6, align 8
%179 = call i32 @skiplist_delete(ptr noundef %178)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @skiplist_new(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @srandom(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i64 @random(...) #1
declare i32 @skiplist_insert(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @skiplist_search_by_key(ptr noundef, i32 noundef) #1
declare ptr @skiplist_search_by_rank(ptr noundef, i32 noundef) #1
declare i32 @skiplist_remove(ptr noundef, i32 noundef) #1
declare i32 @skiplist_delete(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm2itmc4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@.str = private unnamed_addr constant [13 x i8] c"Test start!\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"Add %d nodes...\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"time span: %ldms\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"Now search each node by key...\0A\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"Not found:0x%08x\0A\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"Now search each node by rank...\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"Not found:%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [25 x i8] c"Now remove all nodes...\0A\00", align 1
@.str.8 = private unnamed_addr constant [14 x i8] c"End of Test.\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 %struct.timeval, align 4
%4 = alloca %struct.timeval, align 4
%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 i32 0, ptr %1, align 4
%10 = call i64 @malloc(i32 noundef 8388608)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @exit(i32 noundef -1) #3
unreachable
16: ; preds = %0
%17 = call ptr (...) @skiplist_new()
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %6, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @exit(i32 noundef -1) #3
unreachable
22: ; preds = %16
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 2097152)
%25 = call i32 @time(ptr noundef null)
%26 = call i32 @srandom(i32 noundef %25)
%27 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
store i32 0, ptr %2, align 4
%28 = load i32, ptr %2, align 4
%29 = icmp slt i32 %28, 2097152
br i1 %29, label %.lr.ph, label %50
.lr.ph: ; preds = %22
br label %30
30: ; preds = %.lr.ph, %45
%31 = call i64 (...) @random()
%32 = trunc i64 %31 to i32
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %2, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %33, i64 %35
store i32 %32, ptr %36, align 4
store i32 %32, ptr %7, align 4
%37 = load ptr, ptr %6, align 8
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %2, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load i32, ptr %41, align 4
%43 = load i32, ptr %7, align 4
%44 = call i32 @skiplist_insert(ptr noundef %37, i32 noundef %42, i32 noundef %43)
br label %45
45: ; preds = %30
%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 = icmp slt i32 %48, 2097152
br i1 %49, label %30, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %50
50: ; preds = %._crit_edge, %22
%51 = call i32 @gettimeofday(ptr noundef %4, ptr noundef null)
%52 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
%53 = load i32, ptr %52, align 4
%54 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%55 = load i32, ptr %54, align 4
%56 = sub nsw i32 %53, %55
%57 = mul nsw i32 %56, 1000
%58 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
%59 = load i32, ptr %58, align 4
%60 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%61 = load i32, ptr %60, align 4
%62 = sub nsw i32 %59, %61
%63 = sdiv i32 %62, 1000
%64 = add nsw i32 %57, %63
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %64)
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%67 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
store i32 0, ptr %2, align 4
%68 = load i32, ptr %2, align 4
%69 = icmp slt i32 %68, 2097152
br i1 %69, label %.lr.ph2, label %94
.lr.ph2: ; preds = %50
br label %70
70: ; preds = %.lr.ph2, %89
%71 = load ptr, ptr %6, align 8
%72 = load ptr, ptr %5, align 8
%73 = load i32, ptr %2, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %72, i64 %74
%76 = load i32, ptr %75, align 4
%77 = call ptr @skiplist_search_by_key(ptr noundef %71, i32 noundef %76)
store ptr %77, ptr %8, align 8
%78 = load ptr, ptr %8, align 8
%79 = icmp ne ptr %78, null
br i1 %79, label %80, label %81
80: ; preds = %70
br label %88
81: ; preds = %70
%82 = load ptr, ptr %5, align 8
%83 = load i32, ptr %2, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %82, i64 %84
%86 = load i32, ptr %85, align 4
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %86)
br label %88
88: ; preds = %81, %80
br label %89
89: ; preds = %88
%90 = load i32, ptr %2, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %2, align 4
%92 = load i32, ptr %2, align 4
%93 = icmp slt i32 %92, 2097152
br i1 %93, label %70, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %89
br label %94
94: ; preds = %._crit_edge3, %50
%95 = call i32 @gettimeofday(ptr noundef %4, ptr noundef null)
%96 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
%97 = load i32, ptr %96, align 4
%98 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%99 = load i32, ptr %98, align 4
%100 = sub nsw i32 %97, %99
%101 = mul nsw i32 %100, 1000
%102 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
%103 = load i32, ptr %102, align 4
%104 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%105 = load i32, ptr %104, align 4
%106 = sub nsw i32 %103, %105
%107 = sdiv i32 %106, 1000
%108 = add nsw i32 %101, %107
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %108)
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%111 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
store i32 0, ptr %2, align 4
%112 = load i32, ptr %2, align 4
%113 = icmp slt i32 %112, 2097152
br i1 %113, label %.lr.ph5, label %132
.lr.ph5: ; preds = %94
br label %114
114: ; preds = %.lr.ph5, %127
%115 = load ptr, ptr %6, align 8
%116 = load i32, ptr %2, align 4
%117 = add nsw i32 %116, 1
%118 = call ptr @skiplist_search_by_rank(ptr noundef %115, i32 noundef %117)
store ptr %118, ptr %9, align 8
%119 = load ptr, ptr %9, align 8
%120 = icmp ne ptr %119, null
br i1 %120, label %121, label %122
121: ; preds = %114
br label %126
122: ; preds = %114
%123 = load i32, ptr %2, align 4
%124 = add nsw i32 %123, 1
%125 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %124)
br label %126
126: ; preds = %122, %121
br label %127
127: ; preds = %126
%128 = load i32, ptr %2, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %2, align 4
%130 = load i32, ptr %2, align 4
%131 = icmp slt i32 %130, 2097152
br i1 %131, label %114, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %127
br label %132
132: ; preds = %._crit_edge6, %94
%133 = call i32 @gettimeofday(ptr noundef %4, ptr noundef null)
%134 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
%135 = load i32, ptr %134, align 4
%136 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%137 = load i32, ptr %136, align 4
%138 = sub nsw i32 %135, %137
%139 = mul nsw i32 %138, 1000
%140 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
%141 = load i32, ptr %140, align 4
%142 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%143 = load i32, ptr %142, align 4
%144 = sub nsw i32 %141, %143
%145 = sdiv i32 %144, 1000
%146 = add nsw i32 %139, %145
%147 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %146)
%148 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%149 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
store i32 0, ptr %2, align 4
%150 = load i32, ptr %2, align 4
%151 = icmp slt i32 %150, 2097152
br i1 %151, label %.lr.ph8, label %165
.lr.ph8: ; preds = %132
br label %152
152: ; preds = %.lr.ph8, %160
%153 = load ptr, ptr %6, align 8
%154 = load ptr, ptr %5, align 8
%155 = load i32, ptr %2, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i32, ptr %154, i64 %156
%158 = load i32, ptr %157, align 4
%159 = call i32 @skiplist_remove(ptr noundef %153, i32 noundef %158)
br label %160
160: ; preds = %152
%161 = load i32, ptr %2, align 4
%162 = add nsw i32 %161, 1
store i32 %162, ptr %2, align 4
%163 = load i32, ptr %2, align 4
%164 = icmp slt i32 %163, 2097152
br i1 %164, label %152, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %160
br label %165
165: ; preds = %._crit_edge9, %132
%166 = call i32 @gettimeofday(ptr noundef %4, ptr noundef null)
%167 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
%168 = load i32, ptr %167, align 4
%169 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%170 = load i32, ptr %169, align 4
%171 = sub nsw i32 %168, %170
%172 = mul nsw i32 %171, 1000
%173 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
%174 = load i32, ptr %173, align 4
%175 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%176 = load i32, ptr %175, align 4
%177 = sub nsw i32 %174, %176
%178 = sdiv i32 %177, 1000
%179 = add nsw i32 %172, %178
%180 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %179)
%181 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%182 = load ptr, ptr %6, align 8
%183 = call i32 @skiplist_delete(ptr noundef %182)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @skiplist_new(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @srandom(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i64 @random(...) #1
declare i32 @skiplist_insert(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @skiplist_search_by_key(ptr noundef, i32 noundef) #1
declare ptr @skiplist_search_by_rank(ptr noundef, i32 noundef) #1
declare i32 @skiplist_remove(ptr noundef, i32 noundef) #1
declare i32 @skiplist_delete(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp3w3htrfi.c'
source_filename = "/tmp/tmp3w3htrfi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.in_addr, i32, i32 }
%struct.in_addr = type { i32 }
%struct.hostent = type { i64 }
@.str = private unnamed_addr constant [28 x i8] c"gethostbyname(%s) error:%s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [10 x i8] c"[-] error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @client_connect(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca %struct.sockaddr_in, align 4
%9 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%10 = load ptr, ptr %6, align 8
%11 = call ptr @gethostbyname(ptr noundef %10)
store ptr %11, ptr %9, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %18, label %13
13: ; preds = %3
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr @errno, align 4
%16 = call ptr @strerror(i32 noundef %15)
%17 = call i32 @printf(ptr noundef @.str, ptr noundef %14, ptr noundef %16)
store i32 0, ptr %4, align 4
br label %36
18: ; preds = %3
%19 = call i32 @bzero(ptr noundef %8, i32 noundef 4)
%20 = load i32, ptr @AF_INET, align 4
%21 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %20, ptr %21, align 4
%22 = load i32, ptr %7, align 4
%23 = call i32 @htons(i32 noundef %22)
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
store i32 %23, ptr %24, align 4
%25 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
%26 = load ptr, ptr %9, align 8
%27 = getelementptr inbounds %struct.hostent, ptr %26, i32 0, i32 0
%28 = load i64, ptr %27, align 8
%29 = inttoptr i64 %28 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %29, i64 4, i1 false)
%30 = load i32, ptr %5, align 4
%31 = call i64 @connect(i32 noundef %30, ptr noundef %8, i32 noundef 4)
%32 = icmp slt i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %18
%34 = call i32 @perror(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
br label %36
35: ; preds = %18
store i32 1, ptr %4, align 4
br label %36
36: ; preds = %35, %33, %13
%37 = load i32, ptr %4, align 4
ret i32 %37
}
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3w3htrfi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.in_addr, i32, i32 }
%struct.in_addr = type { i32 }
%struct.hostent = type { i64 }
@.str = private unnamed_addr constant [28 x i8] c"gethostbyname(%s) error:%s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [10 x i8] c"[-] error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @client_connect(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca %struct.sockaddr_in, align 4
%9 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%10 = load ptr, ptr %6, align 8
%11 = call ptr @gethostbyname(ptr noundef %10)
store ptr %11, ptr %9, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %18, label %13
13: ; preds = %3
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr @errno, align 4
%16 = call ptr @strerror(i32 noundef %15)
%17 = call i32 @printf(ptr noundef @.str, ptr noundef %14, ptr noundef %16)
store i32 0, ptr %4, align 4
br label %36
18: ; preds = %3
%19 = call i32 @bzero(ptr noundef %8, i32 noundef 4)
%20 = load i32, ptr @AF_INET, align 4
%21 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %20, ptr %21, align 4
%22 = load i32, ptr %7, align 4
%23 = call i32 @htons(i32 noundef %22)
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
store i32 %23, ptr %24, align 4
%25 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
%26 = load ptr, ptr %9, align 8
%27 = getelementptr inbounds %struct.hostent, ptr %26, i32 0, i32 0
%28 = load i64, ptr %27, align 8
%29 = inttoptr i64 %28 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %29, i64 4, i1 false)
%30 = load i32, ptr %5, align 4
%31 = call i64 @connect(i32 noundef %30, ptr noundef %8, i32 noundef 4)
%32 = icmp slt i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %18
%34 = call i32 @perror(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
br label %36
35: ; preds = %18
store i32 1, ptr %4, align 4
br label %36
36: ; preds = %35, %33, %13
%37 = load i32, ptr %4, align 4
ret i32 %37
}
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps8eg9kws.c'
source_filename = "/tmp/tmps8eg9kws.c"
target datalayout = "e-m:e-p270: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 @integrate_one_rk4(ptr noundef %0, double noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%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 [5 x double], align 16
%19 = alloca [5 x double], align 16
%20 = alloca [5 x double], align 16
%21 = alloca [5 x double], align 16
%22 = alloca [5 x double], align 16
%23 = alloca [5 x double], align 16
store ptr %0, ptr %7, align 8
store double %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%24 = load double, ptr %8, align 8
%25 = fdiv double %24, 2.000000e+00
store double %25, ptr %16, align 8
%26 = load double, ptr %8, align 8
%27 = fdiv double %26, 6.000000e+00
store double %27, ptr %17, align 8
store i32 0, ptr %14, align 4
br label %28
28: ; preds = %41, %6
%29 = load i32, ptr %14, align 4
%30 = icmp ult i32 %29, 5
br i1 %30, label %31, label %44
31: ; preds = %28
%32 = load ptr, ptr %7, align 8
%33 = load i32, ptr %14, align 4
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds double, ptr %32, i64 %34
%36 = load double, ptr %35, align 8
%37 = load ptr, ptr %12, align 8
%38 = load i32, ptr %14, align 4
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds double, ptr %37, i64 %39
store double %36, ptr %40, align 8
br label %41
41: ; preds = %31
%42 = load i32, ptr %14, align 4
%43 = add i32 %42, 1
store i32 %43, ptr %14, align 4
br label %28, !llvm.loop !6
44: ; preds = %28
store i32 1, ptr %13, align 4
br label %45
45: ; preds = %195, %44
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %9, align 4
%48 = icmp ult i32 %46, %47
br i1 %48, label %49, label %198
49: ; preds = %45
store i32 0, ptr %14, align 4
br label %50
50: ; preds = %171, %49
%51 = load i32, ptr %14, align 4
%52 = load i32, ptr %10, align 4
%53 = icmp ult i32 %51, %52
br i1 %53, label %54, label %174
54: ; preds = %50
%55 = load ptr, ptr %7, align 8
%56 = getelementptr inbounds [5 x double], ptr %20, i64 0, i64 0
%57 = load ptr, ptr %11, align 8
%58 = call i32 @derivs_one(ptr noundef %55, ptr noundef %56, ptr noundef %57)
store i32 0, ptr %15, align 4
br label %59
59: ; preds = %77, %54
%60 = load i32, ptr %15, align 4
%61 = icmp ult i32 %60, 5
br i1 %61, label %62, label %80
62: ; preds = %59
%63 = load ptr, ptr %7, align 8
%64 = load i32, ptr %15, align 4
%65 = zext i32 %64 to i64
%66 = getelementptr inbounds double, ptr %63, i64 %65
%67 = load double, ptr %66, align 8
%68 = load i32, ptr %15, align 4
%69 = zext i32 %68 to i64
%70 = getelementptr inbounds [5 x double], ptr %20, i64 0, i64 %69
%71 = load double, ptr %70, align 8
%72 = load double, ptr %16, align 8
%73 = call double @llvm.fmuladd.f64(double %71, double %72, double %67)
%74 = load i32, ptr %15, align 4
%75 = zext i32 %74 to i64
%76 = getelementptr inbounds [5 x double], ptr %18, i64 0, i64 %75
store double %73, ptr %76, align 8
br label %77
77: ; preds = %62
%78 = load i32, ptr %15, align 4
%79 = add i32 %78, 1
store i32 %79, ptr %15, align 4
br label %59, !llvm.loop !8
80: ; preds = %59
%81 = getelementptr inbounds [5 x double], ptr %18, i64 0, i64 0
%82 = getelementptr inbounds [5 x double], ptr %21, i64 0, i64 0
%83 = load ptr, ptr %11, align 8
%84 = call i32 @derivs_one(ptr noundef %81, ptr noundef %82, ptr noundef %83)
store i32 0, ptr %15, align 4
br label %85
85: ; preds = %103, %80
%86 = load i32, ptr %15, align 4
%87 = icmp ult i32 %86, 5
br i1 %87, label %88, label %106
88: ; preds = %85
%89 = load ptr, ptr %7, align 8
%90 = load i32, ptr %15, align 4
%91 = zext i32 %90 to i64
%92 = getelementptr inbounds double, ptr %89, i64 %91
%93 = load double, ptr %92, align 8
%94 = load i32, ptr %15, align 4
%95 = zext i32 %94 to i64
%96 = getelementptr inbounds [5 x double], ptr %21, i64 0, i64 %95
%97 = load double, ptr %96, align 8
%98 = load double, ptr %16, align 8
%99 = call double @llvm.fmuladd.f64(double %97, double %98, double %93)
%100 = load i32, ptr %15, align 4
%101 = zext i32 %100 to i64
%102 = getelementptr inbounds [5 x double], ptr %19, i64 0, i64 %101
store double %99, ptr %102, align 8
br label %103
103: ; preds = %88
%104 = load i32, ptr %15, align 4
%105 = add i32 %104, 1
store i32 %105, ptr %15, align 4
br label %85, !llvm.loop !9
106: ; preds = %85
%107 = getelementptr inbounds [5 x double], ptr %19, i64 0, i64 0
%108 = getelementptr inbounds [5 x double], ptr %22, i64 0, i64 0
%109 = load ptr, ptr %11, align 8
%110 = call i32 @derivs_one(ptr noundef %107, ptr noundef %108, ptr noundef %109)
store i32 0, ptr %15, align 4
br label %111
111: ; preds = %129, %106
%112 = load i32, ptr %15, align 4
%113 = icmp ult i32 %112, 5
br i1 %113, label %114, label %132
114: ; preds = %111
%115 = load ptr, ptr %7, align 8
%116 = load i32, ptr %15, align 4
%117 = zext i32 %116 to i64
%118 = getelementptr inbounds double, ptr %115, i64 %117
%119 = load double, ptr %118, align 8
%120 = load i32, ptr %15, align 4
%121 = zext i32 %120 to i64
%122 = getelementptr inbounds [5 x double], ptr %22, i64 0, i64 %121
%123 = load double, ptr %122, align 8
%124 = load double, ptr %8, align 8
%125 = call double @llvm.fmuladd.f64(double %123, double %124, double %119)
%126 = load i32, ptr %15, align 4
%127 = zext i32 %126 to i64
%128 = getelementptr inbounds [5 x double], ptr %19, i64 0, i64 %127
store double %125, ptr %128, align 8
br label %129
129: ; preds = %114
%130 = load i32, ptr %15, align 4
%131 = add i32 %130, 1
store i32 %131, ptr %15, align 4
br label %111, !llvm.loop !10
132: ; preds = %111
%133 = getelementptr inbounds [5 x double], ptr %19, i64 0, i64 0
%134 = getelementptr inbounds [5 x double], ptr %23, i64 0, i64 0
%135 = load ptr, ptr %11, align 8
%136 = call i32 @derivs_one(ptr noundef %133, ptr noundef %134, ptr noundef %135)
store i32 0, ptr %15, align 4
br label %137
137: ; preds = %167, %132
%138 = load i32, ptr %15, align 4
%139 = icmp ult i32 %138, 5
br i1 %139, label %140, label %170
140: ; preds = %137
%141 = load double, ptr %17, align 8
%142 = load i32, ptr %15, align 4
%143 = zext i32 %142 to i64
%144 = getelementptr inbounds [5 x double], ptr %20, i64 0, i64 %143
%145 = load double, ptr %144, align 8
%146 = load i32, ptr %15, align 4
%147 = zext i32 %146 to i64
%148 = getelementptr inbounds [5 x double], ptr %21, i64 0, i64 %147
%149 = load double, ptr %148, align 8
%150 = load i32, ptr %15, align 4
%151 = zext i32 %150 to i64
%152 = getelementptr inbounds [5 x double], ptr %22, i64 0, i64 %151
%153 = load double, ptr %152, align 8
%154 = fadd double %149, %153
%155 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %154, double %145)
%156 = load i32, ptr %15, align 4
%157 = zext i32 %156 to i64
%158 = getelementptr inbounds [5 x double], ptr %23, i64 0, i64 %157
%159 = load double, ptr %158, align 8
%160 = fadd double %155, %159
%161 = load ptr, ptr %7, align 8
%162 = load i32, ptr %15, align 4
%163 = zext i32 %162 to i64
%164 = getelementptr inbounds double, ptr %161, i64 %163
%165 = load double, ptr %164, align 8
%166 = call double @llvm.fmuladd.f64(double %141, double %160, double %165)
store double %166, ptr %164, align 8
br label %167
167: ; preds = %140
%168 = load i32, ptr %15, align 4
%169 = add i32 %168, 1
store i32 %169, ptr %15, align 4
br label %137, !llvm.loop !11
170: ; preds = %137
br label %171
171: ; preds = %170
%172 = load i32, ptr %14, align 4
%173 = add i32 %172, 1
store i32 %173, ptr %14, align 4
br label %50, !llvm.loop !12
174: ; preds = %50
store i32 0, ptr %14, align 4
br label %175
175: ; preds = %191, %174
%176 = load i32, ptr %14, align 4
%177 = icmp ult i32 %176, 5
br i1 %177, label %178, label %194
178: ; preds = %175
%179 = load ptr, ptr %7, align 8
%180 = load i32, ptr %14, align 4
%181 = zext i32 %180 to i64
%182 = getelementptr inbounds double, ptr %179, i64 %181
%183 = load double, ptr %182, align 8
%184 = load ptr, ptr %12, align 8
%185 = load i32, ptr %13, align 4
%186 = mul i32 5, %185
%187 = load i32, ptr %14, align 4
%188 = add i32 %186, %187
%189 = zext i32 %188 to i64
%190 = getelementptr inbounds double, ptr %184, i64 %189
store double %183, ptr %190, align 8
br label %191
191: ; preds = %178
%192 = load i32, ptr %14, align 4
%193 = add i32 %192, 1
store i32 %193, ptr %14, align 4
br label %175, !llvm.loop !13
194: ; preds = %175
br label %195
195: ; preds = %194
%196 = load i32, ptr %13, align 4
%197 = add i32 %196, 1
store i32 %197, ptr %13, align 4
br label %45, !llvm.loop !14
198: ; preds = %45
ret void
}
declare i32 @derivs_one(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps8eg9kws.c"
target datalayout = "e-m:e-p270: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 @integrate_one_rk4(ptr noundef %0, double noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%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 [5 x double], align 16
%19 = alloca [5 x double], align 16
%20 = alloca [5 x double], align 16
%21 = alloca [5 x double], align 16
%22 = alloca [5 x double], align 16
%23 = alloca [5 x double], align 16
store ptr %0, ptr %7, align 8
store double %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%24 = load double, ptr %8, align 8
%25 = fdiv double %24, 2.000000e+00
store double %25, ptr %16, align 8
%26 = load double, ptr %8, align 8
%27 = fdiv double %26, 6.000000e+00
store double %27, ptr %17, align 8
store i32 0, ptr %14, align 4
%28 = load i32, ptr %14, align 4
%29 = icmp ult i32 %28, 5
br i1 %29, label %.lr.ph, label %45
.lr.ph: ; preds = %6
br label %30
30: ; preds = %.lr.ph, %40
%31 = load ptr, ptr %7, align 8
%32 = load i32, ptr %14, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds double, ptr %31, i64 %33
%35 = load double, ptr %34, align 8
%36 = load ptr, ptr %12, align 8
%37 = load i32, ptr %14, align 4
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %36, i64 %38
store double %35, ptr %39, align 8
br label %40
40: ; preds = %30
%41 = load i32, ptr %14, align 4
%42 = add i32 %41, 1
store i32 %42, ptr %14, align 4
%43 = load i32, ptr %14, align 4
%44 = icmp ult i32 %43, 5
br i1 %44, label %30, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %45
45: ; preds = %._crit_edge, %6
store i32 1, ptr %13, align 4
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %9, align 4
%48 = icmp ult i32 %46, %47
br i1 %48, label %.lr.ph20, label %208
.lr.ph20: ; preds = %45
br label %49
49: ; preds = %.lr.ph20, %202
store i32 0, ptr %14, align 4
%50 = load i32, ptr %14, align 4
%51 = load i32, ptr %10, align 4
%52 = icmp ult i32 %50, %51
br i1 %52, label %.lr.ph14, label %180
.lr.ph14: ; preds = %49
br label %53
53: ; preds = %.lr.ph14, %174
%54 = load ptr, ptr %7, align 8
%55 = getelementptr inbounds [5 x double], ptr %20, i64 0, i64 0
%56 = load ptr, ptr %11, align 8
%57 = call i32 @derivs_one(ptr noundef %54, ptr noundef %55, ptr noundef %56)
store i32 0, ptr %15, align 4
%58 = load i32, ptr %15, align 4
%59 = icmp ult i32 %58, 5
br i1 %59, label %.lr.ph2, label %80
.lr.ph2: ; preds = %53
br label %60
60: ; preds = %.lr.ph2, %75
%61 = load ptr, ptr %7, align 8
%62 = load i32, ptr %15, align 4
%63 = zext i32 %62 to i64
%64 = getelementptr inbounds double, ptr %61, i64 %63
%65 = load double, ptr %64, align 8
%66 = load i32, ptr %15, align 4
%67 = zext i32 %66 to i64
%68 = getelementptr inbounds [5 x double], ptr %20, i64 0, i64 %67
%69 = load double, ptr %68, align 8
%70 = load double, ptr %16, align 8
%71 = call double @llvm.fmuladd.f64(double %69, double %70, double %65)
%72 = load i32, ptr %15, align 4
%73 = zext i32 %72 to i64
%74 = getelementptr inbounds [5 x double], ptr %18, i64 0, i64 %73
store double %71, ptr %74, align 8
br label %75
75: ; preds = %60
%76 = load i32, ptr %15, align 4
%77 = add i32 %76, 1
store i32 %77, ptr %15, align 4
%78 = load i32, ptr %15, align 4
%79 = icmp ult i32 %78, 5
br i1 %79, label %60, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %75
br label %80
80: ; preds = %._crit_edge3, %53
%81 = getelementptr inbounds [5 x double], ptr %18, i64 0, i64 0
%82 = getelementptr inbounds [5 x double], ptr %21, i64 0, i64 0
%83 = load ptr, ptr %11, align 8
%84 = call i32 @derivs_one(ptr noundef %81, ptr noundef %82, ptr noundef %83)
store i32 0, ptr %15, align 4
%85 = load i32, ptr %15, align 4
%86 = icmp ult i32 %85, 5
br i1 %86, label %.lr.ph5, label %107
.lr.ph5: ; preds = %80
br label %87
87: ; preds = %.lr.ph5, %102
%88 = load ptr, ptr %7, align 8
%89 = load i32, ptr %15, align 4
%90 = zext i32 %89 to i64
%91 = getelementptr inbounds double, ptr %88, i64 %90
%92 = load double, ptr %91, align 8
%93 = load i32, ptr %15, align 4
%94 = zext i32 %93 to i64
%95 = getelementptr inbounds [5 x double], ptr %21, i64 0, i64 %94
%96 = load double, ptr %95, align 8
%97 = load double, ptr %16, align 8
%98 = call double @llvm.fmuladd.f64(double %96, double %97, double %92)
%99 = load i32, ptr %15, align 4
%100 = zext i32 %99 to i64
%101 = getelementptr inbounds [5 x double], ptr %19, i64 0, i64 %100
store double %98, ptr %101, align 8
br label %102
102: ; preds = %87
%103 = load i32, ptr %15, align 4
%104 = add i32 %103, 1
store i32 %104, ptr %15, align 4
%105 = load i32, ptr %15, align 4
%106 = icmp ult i32 %105, 5
br i1 %106, label %87, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %102
br label %107
107: ; preds = %._crit_edge6, %80
%108 = getelementptr inbounds [5 x double], ptr %19, i64 0, i64 0
%109 = getelementptr inbounds [5 x double], ptr %22, i64 0, i64 0
%110 = load ptr, ptr %11, align 8
%111 = call i32 @derivs_one(ptr noundef %108, ptr noundef %109, ptr noundef %110)
store i32 0, ptr %15, align 4
%112 = load i32, ptr %15, align 4
%113 = icmp ult i32 %112, 5
br i1 %113, label %.lr.ph8, label %134
.lr.ph8: ; preds = %107
br label %114
114: ; preds = %.lr.ph8, %129
%115 = load ptr, ptr %7, align 8
%116 = load i32, ptr %15, align 4
%117 = zext i32 %116 to i64
%118 = getelementptr inbounds double, ptr %115, i64 %117
%119 = load double, ptr %118, align 8
%120 = load i32, ptr %15, align 4
%121 = zext i32 %120 to i64
%122 = getelementptr inbounds [5 x double], ptr %22, i64 0, i64 %121
%123 = load double, ptr %122, align 8
%124 = load double, ptr %8, align 8
%125 = call double @llvm.fmuladd.f64(double %123, double %124, double %119)
%126 = load i32, ptr %15, align 4
%127 = zext i32 %126 to i64
%128 = getelementptr inbounds [5 x double], ptr %19, i64 0, i64 %127
store double %125, ptr %128, align 8
br label %129
129: ; preds = %114
%130 = load i32, ptr %15, align 4
%131 = add i32 %130, 1
store i32 %131, ptr %15, align 4
%132 = load i32, ptr %15, align 4
%133 = icmp ult i32 %132, 5
br i1 %133, label %114, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %129
br label %134
134: ; preds = %._crit_edge9, %107
%135 = getelementptr inbounds [5 x double], ptr %19, i64 0, i64 0
%136 = getelementptr inbounds [5 x double], ptr %23, i64 0, i64 0
%137 = load ptr, ptr %11, align 8
%138 = call i32 @derivs_one(ptr noundef %135, ptr noundef %136, ptr noundef %137)
store i32 0, ptr %15, align 4
%139 = load i32, ptr %15, align 4
%140 = icmp ult i32 %139, 5
br i1 %140, label %.lr.ph11, label %173
.lr.ph11: ; preds = %134
br label %141
141: ; preds = %.lr.ph11, %168
%142 = load double, ptr %17, align 8
%143 = load i32, ptr %15, align 4
%144 = zext i32 %143 to i64
%145 = getelementptr inbounds [5 x double], ptr %20, i64 0, i64 %144
%146 = load double, ptr %145, align 8
%147 = load i32, ptr %15, align 4
%148 = zext i32 %147 to i64
%149 = getelementptr inbounds [5 x double], ptr %21, i64 0, i64 %148
%150 = load double, ptr %149, align 8
%151 = load i32, ptr %15, align 4
%152 = zext i32 %151 to i64
%153 = getelementptr inbounds [5 x double], ptr %22, i64 0, i64 %152
%154 = load double, ptr %153, align 8
%155 = fadd double %150, %154
%156 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %155, double %146)
%157 = load i32, ptr %15, align 4
%158 = zext i32 %157 to i64
%159 = getelementptr inbounds [5 x double], ptr %23, i64 0, i64 %158
%160 = load double, ptr %159, align 8
%161 = fadd double %156, %160
%162 = load ptr, ptr %7, align 8
%163 = load i32, ptr %15, align 4
%164 = zext i32 %163 to i64
%165 = getelementptr inbounds double, ptr %162, i64 %164
%166 = load double, ptr %165, align 8
%167 = call double @llvm.fmuladd.f64(double %142, double %161, double %166)
store double %167, ptr %165, align 8
br label %168
168: ; preds = %141
%169 = load i32, ptr %15, align 4
%170 = add i32 %169, 1
store i32 %170, ptr %15, align 4
%171 = load i32, ptr %15, align 4
%172 = icmp ult i32 %171, 5
br i1 %172, label %141, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %168
br label %173
173: ; preds = %._crit_edge12, %134
br label %174
174: ; preds = %173
%175 = load i32, ptr %14, align 4
%176 = add i32 %175, 1
store i32 %176, ptr %14, align 4
%177 = load i32, ptr %14, align 4
%178 = load i32, ptr %10, align 4
%179 = icmp ult i32 %177, %178
br i1 %179, label %53, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %174
br label %180
180: ; preds = %._crit_edge15, %49
store i32 0, ptr %14, align 4
%181 = load i32, ptr %14, align 4
%182 = icmp ult i32 %181, 5
br i1 %182, label %.lr.ph17, label %201
.lr.ph17: ; preds = %180
br label %183
183: ; preds = %.lr.ph17, %196
%184 = load ptr, ptr %7, align 8
%185 = load i32, ptr %14, align 4
%186 = zext i32 %185 to i64
%187 = getelementptr inbounds double, ptr %184, i64 %186
%188 = load double, ptr %187, align 8
%189 = load ptr, ptr %12, align 8
%190 = load i32, ptr %13, align 4
%191 = mul i32 5, %190
%192 = load i32, ptr %14, align 4
%193 = add i32 %191, %192
%194 = zext i32 %193 to i64
%195 = getelementptr inbounds double, ptr %189, i64 %194
store double %188, ptr %195, align 8
br label %196
196: ; preds = %183
%197 = load i32, ptr %14, align 4
%198 = add i32 %197, 1
store i32 %198, ptr %14, align 4
%199 = load i32, ptr %14, align 4
%200 = icmp ult i32 %199, 5
br i1 %200, label %183, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %196
br label %201
201: ; preds = %._crit_edge18, %180
br label %202
202: ; preds = %201
%203 = load i32, ptr %13, align 4
%204 = add i32 %203, 1
store i32 %204, ptr %13, align 4
%205 = load i32, ptr %13, align 4
%206 = load i32, ptr %9, align 4
%207 = icmp ult i32 %205, %206
br i1 %207, label %49, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %202
br label %208
208: ; preds = %._crit_edge21, %45
ret void
}
declare i32 @derivs_one(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
|
; ModuleID = '/tmp/tmp_ag2ggba.c'
source_filename = "/tmp/tmp_ag2ggba.c"
target datalayout = "e-m:e-p270: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 [45 x i8] c"Please Enter the power to calculate Eular:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"\0AEular constant is equal to:%f\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 float, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 20, ptr %2, align 4
store float 0.000000e+00, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
store i32 0, ptr %4, align 4
br label %8
8: ; preds = %21, %0
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %24
12: ; preds = %8
%13 = load float, ptr %3, align 4
%14 = fpext float %13 to double
%15 = load i32, ptr %4, align 4
%16 = call i32 @calc_factorial(i32 noundef %15)
%17 = sitofp i32 %16 to double
%18 = fdiv double 1.000000e+00, %17
%19 = fadd double %14, %18
%20 = fptrunc double %19 to float
store float %20, ptr %3, align 4
br label %21
21: ; preds = %12
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
br label %8, !llvm.loop !6
24: ; preds = %8
%25 = load float, ptr %3, align 4
%26 = load i32, ptr %5, align 4
%27 = call double @pow(float noundef %25, i32 noundef %26)
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %27)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @calc_factorial(i32 noundef) #1
declare double @pow(float noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ag2ggba.c"
target datalayout = "e-m:e-p270: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 [45 x i8] c"Please Enter the power to calculate Eular:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"\0AEular constant is equal to:%f\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 float, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 20, ptr %2, align 4
store float 0.000000e+00, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %26
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %20
%12 = load float, ptr %3, align 4
%13 = fpext float %12 to double
%14 = load i32, ptr %4, align 4
%15 = call i32 @calc_factorial(i32 noundef %14)
%16 = sitofp i32 %15 to double
%17 = fdiv double 1.000000e+00, %16
%18 = fadd double %13, %17
%19 = fptrunc double %18 to float
store float %19, ptr %3, align 4
br label %20
20: ; preds = %11
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %2, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %0
%27 = load float, ptr %3, align 4
%28 = load i32, ptr %5, align 4
%29 = call double @pow(float noundef %27, i32 noundef %28)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %29)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @calc_factorial(i32 noundef) #1
declare double @pow(float noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmplcy_54bv.c'
source_filename = "/tmp/tmplcy_54bv.c"
target datalayout = "e-m:e-p270: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 @xchkflags(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = trunc i32 %5 to i8
store i8 %6, ptr %4, align 1
%7 = load i8, ptr %4, align 1
%8 = call i64 @isalnum(i8 noundef zeroext %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i32, ptr %3, align 4
%12 = or i32 %11, 1
store i32 %12, ptr %3, align 4
br label %13
13: ; preds = %10, %1
%14 = load i8, ptr %4, align 1
%15 = call i64 @isalpha(i8 noundef zeroext %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = load i32, ptr %3, align 4
%19 = or i32 %18, 2
store i32 %19, ptr %3, align 4
br label %20
20: ; preds = %17, %13
%21 = load i8, ptr %4, align 1
%22 = call i64 @isblank(i8 noundef zeroext %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load i32, ptr %3, align 4
%26 = or i32 %25, 4
store i32 %26, ptr %3, align 4
br label %27
27: ; preds = %24, %20
%28 = load i8, ptr %4, align 1
%29 = call i64 @iscntrl(i8 noundef zeroext %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %27
%32 = load i32, ptr %3, align 4
%33 = or i32 %32, 8
store i32 %33, ptr %3, align 4
br label %34
34: ; preds = %31, %27
%35 = load i8, ptr %4, align 1
%36 = call i64 @isgraph(i8 noundef zeroext %35)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load i32, ptr %3, align 4
%40 = or i32 %39, 16
store i32 %40, ptr %3, align 4
br label %41
41: ; preds = %38, %34
%42 = load i8, ptr %4, align 1
%43 = call i64 @islower(i8 noundef zeroext %42)
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = load i32, ptr %3, align 4
%47 = or i32 %46, 32
store i32 %47, ptr %3, align 4
br label %48
48: ; preds = %45, %41
%49 = load i8, ptr %4, align 1
%50 = call i64 @isprint(i8 noundef zeroext %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %48
%53 = load i32, ptr %3, align 4
%54 = or i32 %53, 64
store i32 %54, ptr %3, align 4
br label %55
55: ; preds = %52, %48
%56 = load i8, ptr %4, align 1
%57 = call i64 @ispunct(i8 noundef zeroext %56)
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %55
%60 = load i32, ptr %3, align 4
%61 = or i32 %60, 128
store i32 %61, ptr %3, align 4
br label %62
62: ; preds = %59, %55
%63 = load i8, ptr %4, align 1
%64 = call i64 @isspace(i8 noundef zeroext %63)
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %62
%67 = load i32, ptr %3, align 4
%68 = or i32 %67, 256
store i32 %68, ptr %3, align 4
br label %69
69: ; preds = %66, %62
%70 = load i8, ptr %4, align 1
%71 = call i64 @isupper(i8 noundef zeroext %70)
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %76
73: ; preds = %69
%74 = load i32, ptr %3, align 4
%75 = or i32 %74, 512
store i32 %75, ptr %3, align 4
br label %76
76: ; preds = %73, %69
%77 = load i8, ptr %4, align 1
%78 = call i64 @isxdigit(i8 noundef zeroext %77)
%79 = icmp ne i64 %78, 0
br i1 %79, label %80, label %83
80: ; preds = %76
%81 = load i32, ptr %3, align 4
%82 = or i32 %81, 1024
store i32 %82, ptr %3, align 4
br label %83
83: ; preds = %80, %76
%84 = load i32, ptr %3, align 4
ret i32 %84
}
declare i64 @isalnum(i8 noundef zeroext) #1
declare i64 @isalpha(i8 noundef zeroext) #1
declare i64 @isblank(i8 noundef zeroext) #1
declare i64 @iscntrl(i8 noundef zeroext) #1
declare i64 @isgraph(i8 noundef zeroext) #1
declare i64 @islower(i8 noundef zeroext) #1
declare i64 @isprint(i8 noundef zeroext) #1
declare i64 @ispunct(i8 noundef zeroext) #1
declare i64 @isspace(i8 noundef zeroext) #1
declare i64 @isupper(i8 noundef zeroext) #1
declare i64 @isxdigit(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmplcy_54bv.c"
target datalayout = "e-m:e-p270: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 @xchkflags(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = trunc i32 %5 to i8
store i8 %6, ptr %4, align 1
%7 = load i8, ptr %4, align 1
%8 = call i64 @isalnum(i8 noundef zeroext %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i32, ptr %3, align 4
%12 = or i32 %11, 1
store i32 %12, ptr %3, align 4
br label %13
13: ; preds = %10, %1
%14 = load i8, ptr %4, align 1
%15 = call i64 @isalpha(i8 noundef zeroext %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = load i32, ptr %3, align 4
%19 = or i32 %18, 2
store i32 %19, ptr %3, align 4
br label %20
20: ; preds = %17, %13
%21 = load i8, ptr %4, align 1
%22 = call i64 @isblank(i8 noundef zeroext %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load i32, ptr %3, align 4
%26 = or i32 %25, 4
store i32 %26, ptr %3, align 4
br label %27
27: ; preds = %24, %20
%28 = load i8, ptr %4, align 1
%29 = call i64 @iscntrl(i8 noundef zeroext %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %27
%32 = load i32, ptr %3, align 4
%33 = or i32 %32, 8
store i32 %33, ptr %3, align 4
br label %34
34: ; preds = %31, %27
%35 = load i8, ptr %4, align 1
%36 = call i64 @isgraph(i8 noundef zeroext %35)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load i32, ptr %3, align 4
%40 = or i32 %39, 16
store i32 %40, ptr %3, align 4
br label %41
41: ; preds = %38, %34
%42 = load i8, ptr %4, align 1
%43 = call i64 @islower(i8 noundef zeroext %42)
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = load i32, ptr %3, align 4
%47 = or i32 %46, 32
store i32 %47, ptr %3, align 4
br label %48
48: ; preds = %45, %41
%49 = load i8, ptr %4, align 1
%50 = call i64 @isprint(i8 noundef zeroext %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %48
%53 = load i32, ptr %3, align 4
%54 = or i32 %53, 64
store i32 %54, ptr %3, align 4
br label %55
55: ; preds = %52, %48
%56 = load i8, ptr %4, align 1
%57 = call i64 @ispunct(i8 noundef zeroext %56)
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %55
%60 = load i32, ptr %3, align 4
%61 = or i32 %60, 128
store i32 %61, ptr %3, align 4
br label %62
62: ; preds = %59, %55
%63 = load i8, ptr %4, align 1
%64 = call i64 @isspace(i8 noundef zeroext %63)
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %62
%67 = load i32, ptr %3, align 4
%68 = or i32 %67, 256
store i32 %68, ptr %3, align 4
br label %69
69: ; preds = %66, %62
%70 = load i8, ptr %4, align 1
%71 = call i64 @isupper(i8 noundef zeroext %70)
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %76
73: ; preds = %69
%74 = load i32, ptr %3, align 4
%75 = or i32 %74, 512
store i32 %75, ptr %3, align 4
br label %76
76: ; preds = %73, %69
%77 = load i8, ptr %4, align 1
%78 = call i64 @isxdigit(i8 noundef zeroext %77)
%79 = icmp ne i64 %78, 0
br i1 %79, label %80, label %83
80: ; preds = %76
%81 = load i32, ptr %3, align 4
%82 = or i32 %81, 1024
store i32 %82, ptr %3, align 4
br label %83
83: ; preds = %80, %76
%84 = load i32, ptr %3, align 4
ret i32 %84
}
declare i64 @isalnum(i8 noundef zeroext) #1
declare i64 @isalpha(i8 noundef zeroext) #1
declare i64 @isblank(i8 noundef zeroext) #1
declare i64 @iscntrl(i8 noundef zeroext) #1
declare i64 @isgraph(i8 noundef zeroext) #1
declare i64 @islower(i8 noundef zeroext) #1
declare i64 @isprint(i8 noundef zeroext) #1
declare i64 @ispunct(i8 noundef zeroext) #1
declare i64 @isspace(i8 noundef zeroext) #1
declare i64 @isupper(i8 noundef zeroext) #1
declare i64 @isxdigit(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmppuqp6hwp.c'
source_filename = "/tmp/tmppuqp6hwp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Usage: %s [OPTIONS] filename\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"OPTIONS:\00", align 1
@.str.2 = private unnamed_addr constant [58 x i8] c"\09-d , --deep-scan \09Deep scan (pcap only)\0A\00", align 1
@.str.3 = private unnamed_addr constant [57 x i8] c"\09\09-n , --pcapng \09force pcapng format\0A\00", align 1
@.str.4 = private unnamed_addr constant [58 x i8] c"\09\09-o <file> , --outfile <file> \09set output file name\0A\00", align 1
@.str.5 = private unnamed_addr constant [52 x i8] c"\09\09-t <nr> , --data-link-type <nr>\09Data link type\0A\00", align 1
@.str.6 = private unnamed_addr constant [52 x i8] c"\09\09-v , --verbose \09Verbose output\0A\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppuqp6hwp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Usage: %s [OPTIONS] filename\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"OPTIONS:\00", align 1
@.str.2 = private unnamed_addr constant [58 x i8] c"\09-d , --deep-scan \09Deep scan (pcap only)\0A\00", align 1
@.str.3 = private unnamed_addr constant [57 x i8] c"\09\09-n , --pcapng \09force pcapng format\0A\00", align 1
@.str.4 = private unnamed_addr constant [58 x i8] c"\09\09-o <file> , --outfile <file> \09set output file name\0A\00", align 1
@.str.5 = private unnamed_addr constant [52 x i8] c"\09\09-t <nr> , --data-link-type <nr>\09Data link type\0A\00", align 1
@.str.6 = private unnamed_addr constant [52 x i8] c"\09\09-v , --verbose \09Verbose output\0A\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6g4ldl4f.c'
source_filename = "/tmp/tmp6g4ldl4f.c"
target datalayout = "e-m:e-p270: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 @dbuf_addch(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%5 = load ptr, ptr %3, align 8
%6 = call i32 @assert(ptr noundef %5)
%7 = load ptr, ptr %3, align 8
%8 = call i32 @dbuf_addmem(ptr noundef %7, ptr noundef %4, i32 noundef 1)
ret void
}
declare i32 @assert(ptr noundef) #1
declare i32 @dbuf_addmem(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/tmp6g4ldl4f.c"
target datalayout = "e-m:e-p270: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 @dbuf_addch(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%5 = load ptr, ptr %3, align 8
%6 = call i32 @assert(ptr noundef %5)
%7 = load ptr, ptr %3, align 8
%8 = call i32 @dbuf_addmem(ptr noundef %7, ptr noundef %4, i32 noundef 1)
ret void
}
declare i32 @assert(ptr noundef) #1
declare i32 @dbuf_addmem(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/tmp_44mntwr.c'
source_filename = "/tmp/tmp_44mntwr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"Bonjour, es-tu Camille ? (1 si ou, 0 si non)? \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"\0A Gentil utilisateur\0A\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"Coucou\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = load i32, ptr %1, align 4
%6 = call i32 @test(i32 noundef %5)
%7 = call i32 @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @test(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_44mntwr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"Bonjour, es-tu Camille ? (1 si ou, 0 si non)? \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"\0A Gentil utilisateur\0A\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"Coucou\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = load i32, ptr %1, align 4
%6 = call i32 @test(i32 noundef %5)
%7 = call i32 @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @test(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/tmppcostyos.c'
source_filename = "/tmp/tmppcostyos.c"
target datalayout = "e-m:e-p270: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 @slaFk5hz(double noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%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
store double %0, ptr %6, align 8
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%16 = load double, ptr %6, align 8
store double %16, ptr %11, align 8
%17 = load double, ptr %7, align 8
store double %17, ptr %12, align 8
%18 = load double, ptr %8, align 8
store double %18, ptr %13, align 8
%19 = call i32 @sla_fk5hz_(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15)
%20 = load double, ptr %14, align 8
%21 = load ptr, ptr %9, align 8
store double %20, ptr %21, align 8
%22 = load double, ptr %15, align 8
%23 = load ptr, ptr %10, align 8
store double %22, ptr %23, align 8
ret void
}
declare i32 @sla_fk5hz_(ptr noundef, ptr 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/tmppcostyos.c"
target datalayout = "e-m:e-p270: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 @slaFk5hz(double noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%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
store double %0, ptr %6, align 8
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%16 = load double, ptr %6, align 8
store double %16, ptr %11, align 8
%17 = load double, ptr %7, align 8
store double %17, ptr %12, align 8
%18 = load double, ptr %8, align 8
store double %18, ptr %13, align 8
%19 = call i32 @sla_fk5hz_(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15)
%20 = load double, ptr %14, align 8
%21 = load ptr, ptr %9, align 8
store double %20, ptr %21, align 8
%22 = load double, ptr %15, align 8
%23 = load ptr, ptr %10, align 8
store double %22, ptr %23, align 8
ret void
}
declare i32 @sla_fk5hz_(ptr noundef, ptr 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/tmp2go3foev.c'
source_filename = "/tmp/tmp2go3foev.c"
target datalayout = "e-m:e-p270: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 @RGB2HSV(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca [3 x float], align 4
%10 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = ashr i32 %11, 16
%13 = and i32 %12, 255
%14 = sitofp i32 %13 to float
store float %14, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = ashr i32 %15, 8
%17 = and i32 %16, 255
%18 = sitofp i32 %17 to float
store float %18, ptr %4, align 4
%19 = load i32, ptr %2, align 4
%20 = and i32 %19, 255
%21 = sitofp i32 %20 to float
store float %21, ptr %5, align 4
%22 = load float, ptr %3, align 4
%23 = fpext float %22 to double
%24 = fdiv double %23, 2.550000e+02
%25 = fptrunc double %24 to float
store float %25, ptr %3, align 4
%26 = load float, ptr %4, align 4
%27 = fpext float %26 to double
%28 = fdiv double %27, 2.550000e+02
%29 = fptrunc double %28 to float
store float %29, ptr %4, align 4
%30 = load float, ptr %5, align 4
%31 = fpext float %30 to double
%32 = fdiv double %31, 2.550000e+02
%33 = fptrunc double %32 to float
store float %33, ptr %5, align 4
%34 = load float, ptr %3, align 4
%35 = load float, ptr %4, align 4
%36 = fcmp ole float %34, %35
br i1 %36, label %37, label %43
37: ; preds = %1
%38 = load float, ptr %3, align 4
%39 = load float, ptr %5, align 4
%40 = fcmp ole float %38, %39
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = load float, ptr %3, align 4
br label %53
43: ; preds = %37, %1
%44 = load float, ptr %4, align 4
%45 = load float, ptr %5, align 4
%46 = fcmp olt float %44, %45
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = load float, ptr %4, align 4
br label %51
49: ; preds = %43
%50 = load float, ptr %5, align 4
br label %51
51: ; preds = %49, %47
%52 = phi float [ %48, %47 ], [ %50, %49 ]
br label %53
53: ; preds = %51, %41
%54 = phi float [ %42, %41 ], [ %52, %51 ]
store float %54, ptr %7, align 4
%55 = load float, ptr %3, align 4
%56 = load float, ptr %4, align 4
%57 = fcmp oge float %55, %56
br i1 %57, label %58, label %64
58: ; preds = %53
%59 = load float, ptr %3, align 4
%60 = load float, ptr %5, align 4
%61 = fcmp oge float %59, %60
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = load float, ptr %3, align 4
br label %74
64: ; preds = %58, %53
%65 = load float, ptr %4, align 4
%66 = load float, ptr %5, align 4
%67 = fcmp ogt float %65, %66
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = load float, ptr %4, align 4
br label %72
70: ; preds = %64
%71 = load float, ptr %5, align 4
br label %72
72: ; preds = %70, %68
%73 = phi float [ %69, %68 ], [ %71, %70 ]
br label %74
74: ; preds = %72, %62
%75 = phi float [ %63, %62 ], [ %73, %72 ]
store float %75, ptr %6, align 4
%76 = load float, ptr %6, align 4
%77 = load float, ptr %7, align 4
%78 = fcmp oeq float %76, %77
br i1 %78, label %79, label %84
79: ; preds = %74
%80 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
store float 0.000000e+00, ptr %80, align 4
%81 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 1
store float 0.000000e+00, ptr %81, align 4
%82 = load float, ptr %6, align 4
%83 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 2
store float %82, ptr %83, align 4
br label %137
84: ; preds = %74
%85 = load float, ptr %3, align 4
%86 = load float, ptr %7, align 4
%87 = fcmp oeq float %85, %86
br i1 %87, label %88, label %92
88: ; preds = %84
%89 = load float, ptr %4, align 4
%90 = load float, ptr %5, align 4
%91 = fsub float %89, %90
br label %106
92: ; preds = %84
%93 = load float, ptr %4, align 4
%94 = load float, ptr %7, align 4
%95 = fcmp oeq float %93, %94
br i1 %95, label %96, label %100
96: ; preds = %92
%97 = load float, ptr %5, align 4
%98 = load float, ptr %3, align 4
%99 = fsub float %97, %98
br label %104
100: ; preds = %92
%101 = load float, ptr %3, align 4
%102 = load float, ptr %4, align 4
%103 = fsub float %101, %102
br label %104
104: ; preds = %100, %96
%105 = phi float [ %99, %96 ], [ %103, %100 ]
br label %106
106: ; preds = %104, %88
%107 = phi float [ %91, %88 ], [ %105, %104 ]
store float %107, ptr %8, align 4
%108 = load float, ptr %3, align 4
%109 = load float, ptr %7, align 4
%110 = fcmp oeq float %108, %109
br i1 %110, label %111, label %112
111: ; preds = %106
br label %118
112: ; preds = %106
%113 = load float, ptr %4, align 4
%114 = load float, ptr %7, align 4
%115 = fcmp oeq float %113, %114
%116 = zext i1 %115 to i64
%117 = select i1 %115, i32 5, i32 1
br label %118
118: ; preds = %112, %111
%119 = phi i32 [ 3, %111 ], [ %117, %112 ]
store i32 %119, ptr %10, align 4
%120 = load i32, ptr %10, align 4
%121 = sitofp i32 %120 to float
%122 = load float, ptr %8, align 4
%123 = load float, ptr %6, align 4
%124 = load float, ptr %7, align 4
%125 = fsub float %123, %124
%126 = fdiv float %122, %125
%127 = fsub float %121, %126
%128 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
store float %127, ptr %128, align 4
%129 = load float, ptr %6, align 4
%130 = load float, ptr %7, align 4
%131 = fsub float %129, %130
%132 = load float, ptr %6, align 4
%133 = fdiv float %131, %132
%134 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 1
store float %133, ptr %134, align 4
%135 = load float, ptr %6, align 4
%136 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 2
store float %135, ptr %136, align 4
br label %137
137: ; preds = %118, %79
%138 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
%139 = load float, ptr %138, align 4
%140 = fpext float %139 to double
%141 = fmul double %140, 4.250000e+01
%142 = fptrunc double %141 to float
store float %142, ptr %138, align 4
%143 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 1
%144 = load float, ptr %143, align 4
%145 = fpext float %144 to double
%146 = fmul double %145, 2.550000e+02
%147 = fptrunc double %146 to float
store float %147, ptr %143, align 4
%148 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 2
%149 = load float, ptr %148, align 4
%150 = fpext float %149 to double
%151 = fmul double %150, 2.550000e+02
%152 = fptrunc double %151 to float
store float %152, ptr %148, align 4
%153 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
%154 = load float, ptr %153, align 4
%155 = fptosi float %154 to i32
%156 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 1
%157 = load float, ptr %156, align 4
%158 = fptosi float %157 to i32
%159 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 2
%160 = load float, ptr %159, align 4
%161 = fptosi float %160 to i32
%162 = call i32 @triplet(i32 noundef %155, i32 noundef %158, i32 noundef %161)
ret i32 %162
}
declare i32 @triplet(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/tmp2go3foev.c"
target datalayout = "e-m:e-p270: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 @RGB2HSV(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca [3 x float], align 4
%10 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = ashr i32 %11, 16
%13 = and i32 %12, 255
%14 = sitofp i32 %13 to float
store float %14, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = ashr i32 %15, 8
%17 = and i32 %16, 255
%18 = sitofp i32 %17 to float
store float %18, ptr %4, align 4
%19 = load i32, ptr %2, align 4
%20 = and i32 %19, 255
%21 = sitofp i32 %20 to float
store float %21, ptr %5, align 4
%22 = load float, ptr %3, align 4
%23 = fpext float %22 to double
%24 = fdiv double %23, 2.550000e+02
%25 = fptrunc double %24 to float
store float %25, ptr %3, align 4
%26 = load float, ptr %4, align 4
%27 = fpext float %26 to double
%28 = fdiv double %27, 2.550000e+02
%29 = fptrunc double %28 to float
store float %29, ptr %4, align 4
%30 = load float, ptr %5, align 4
%31 = fpext float %30 to double
%32 = fdiv double %31, 2.550000e+02
%33 = fptrunc double %32 to float
store float %33, ptr %5, align 4
%34 = load float, ptr %3, align 4
%35 = load float, ptr %4, align 4
%36 = fcmp ole float %34, %35
br i1 %36, label %37, label %43
37: ; preds = %1
%38 = load float, ptr %3, align 4
%39 = load float, ptr %5, align 4
%40 = fcmp ole float %38, %39
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = load float, ptr %3, align 4
br label %53
43: ; preds = %37, %1
%44 = load float, ptr %4, align 4
%45 = load float, ptr %5, align 4
%46 = fcmp olt float %44, %45
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = load float, ptr %4, align 4
br label %51
49: ; preds = %43
%50 = load float, ptr %5, align 4
br label %51
51: ; preds = %49, %47
%52 = phi float [ %48, %47 ], [ %50, %49 ]
br label %53
53: ; preds = %51, %41
%54 = phi float [ %42, %41 ], [ %52, %51 ]
store float %54, ptr %7, align 4
%55 = load float, ptr %3, align 4
%56 = load float, ptr %4, align 4
%57 = fcmp oge float %55, %56
br i1 %57, label %58, label %64
58: ; preds = %53
%59 = load float, ptr %3, align 4
%60 = load float, ptr %5, align 4
%61 = fcmp oge float %59, %60
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = load float, ptr %3, align 4
br label %74
64: ; preds = %58, %53
%65 = load float, ptr %4, align 4
%66 = load float, ptr %5, align 4
%67 = fcmp ogt float %65, %66
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = load float, ptr %4, align 4
br label %72
70: ; preds = %64
%71 = load float, ptr %5, align 4
br label %72
72: ; preds = %70, %68
%73 = phi float [ %69, %68 ], [ %71, %70 ]
br label %74
74: ; preds = %72, %62
%75 = phi float [ %63, %62 ], [ %73, %72 ]
store float %75, ptr %6, align 4
%76 = load float, ptr %6, align 4
%77 = load float, ptr %7, align 4
%78 = fcmp oeq float %76, %77
br i1 %78, label %79, label %84
79: ; preds = %74
%80 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
store float 0.000000e+00, ptr %80, align 4
%81 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 1
store float 0.000000e+00, ptr %81, align 4
%82 = load float, ptr %6, align 4
%83 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 2
store float %82, ptr %83, align 4
br label %137
84: ; preds = %74
%85 = load float, ptr %3, align 4
%86 = load float, ptr %7, align 4
%87 = fcmp oeq float %85, %86
br i1 %87, label %88, label %92
88: ; preds = %84
%89 = load float, ptr %4, align 4
%90 = load float, ptr %5, align 4
%91 = fsub float %89, %90
br label %106
92: ; preds = %84
%93 = load float, ptr %4, align 4
%94 = load float, ptr %7, align 4
%95 = fcmp oeq float %93, %94
br i1 %95, label %96, label %100
96: ; preds = %92
%97 = load float, ptr %5, align 4
%98 = load float, ptr %3, align 4
%99 = fsub float %97, %98
br label %104
100: ; preds = %92
%101 = load float, ptr %3, align 4
%102 = load float, ptr %4, align 4
%103 = fsub float %101, %102
br label %104
104: ; preds = %100, %96
%105 = phi float [ %99, %96 ], [ %103, %100 ]
br label %106
106: ; preds = %104, %88
%107 = phi float [ %91, %88 ], [ %105, %104 ]
store float %107, ptr %8, align 4
%108 = load float, ptr %3, align 4
%109 = load float, ptr %7, align 4
%110 = fcmp oeq float %108, %109
br i1 %110, label %111, label %112
111: ; preds = %106
br label %118
112: ; preds = %106
%113 = load float, ptr %4, align 4
%114 = load float, ptr %7, align 4
%115 = fcmp oeq float %113, %114
%116 = zext i1 %115 to i64
%117 = select i1 %115, i32 5, i32 1
br label %118
118: ; preds = %112, %111
%119 = phi i32 [ 3, %111 ], [ %117, %112 ]
store i32 %119, ptr %10, align 4
%120 = load i32, ptr %10, align 4
%121 = sitofp i32 %120 to float
%122 = load float, ptr %8, align 4
%123 = load float, ptr %6, align 4
%124 = load float, ptr %7, align 4
%125 = fsub float %123, %124
%126 = fdiv float %122, %125
%127 = fsub float %121, %126
%128 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
store float %127, ptr %128, align 4
%129 = load float, ptr %6, align 4
%130 = load float, ptr %7, align 4
%131 = fsub float %129, %130
%132 = load float, ptr %6, align 4
%133 = fdiv float %131, %132
%134 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 1
store float %133, ptr %134, align 4
%135 = load float, ptr %6, align 4
%136 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 2
store float %135, ptr %136, align 4
br label %137
137: ; preds = %118, %79
%138 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
%139 = load float, ptr %138, align 4
%140 = fpext float %139 to double
%141 = fmul double %140, 4.250000e+01
%142 = fptrunc double %141 to float
store float %142, ptr %138, align 4
%143 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 1
%144 = load float, ptr %143, align 4
%145 = fpext float %144 to double
%146 = fmul double %145, 2.550000e+02
%147 = fptrunc double %146 to float
store float %147, ptr %143, align 4
%148 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 2
%149 = load float, ptr %148, align 4
%150 = fpext float %149 to double
%151 = fmul double %150, 2.550000e+02
%152 = fptrunc double %151 to float
store float %152, ptr %148, align 4
%153 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
%154 = load float, ptr %153, align 4
%155 = fptosi float %154 to i32
%156 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 1
%157 = load float, ptr %156, align 4
%158 = fptosi float %157 to i32
%159 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 2
%160 = load float, ptr %159, align 4
%161 = fptosi float %160 to i32
%162 = call i32 @triplet(i32 noundef %155, i32 noundef %158, i32 noundef %161)
ret i32 %162
}
declare i32 @triplet(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/tmp_bhzsis1.c'
source_filename = "/tmp/tmp_bhzsis1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"nbline : %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @select_size_cell_c(i32 noundef %0) #0 {
%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 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = load i32, ptr %2, align 4
switch i32 %6, label %12 [
i32 4, label %7
i32 6, label %8
i32 9, label %9
i32 12, label %10
i32 16, label %11
]
7: ; preds = %1
store i32 2, ptr %3, align 4
br label %13
8: ; preds = %1
store i32 3, ptr %3, align 4
br label %13
9: ; preds = %1
store i32 3, ptr %3, align 4
br label %13
10: ; preds = %1
store i32 4, ptr %3, align 4
br label %13
11: ; preds = %1
store i32 4, ptr %3, align 4
br label %13
12: ; preds = %1
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %12, %11, %10, %9, %8, %7
%14 = load i32, ptr %3, align 4
ret i32 %14
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_bhzsis1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"nbline : %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @select_size_cell_c(i32 noundef %0) #0 {
%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 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = load i32, ptr %2, align 4
switch i32 %6, label %12 [
i32 4, label %7
i32 6, label %8
i32 9, label %9
i32 12, label %10
i32 16, label %11
]
7: ; preds = %1
store i32 2, ptr %3, align 4
br label %13
8: ; preds = %1
store i32 3, ptr %3, align 4
br label %13
9: ; preds = %1
store i32 3, ptr %3, align 4
br label %13
10: ; preds = %1
store i32 4, ptr %3, align 4
br label %13
11: ; preds = %1
store i32 4, ptr %3, align 4
br label %13
12: ; preds = %1
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %12, %11, %10, %9, %8, %7
%14 = load i32, ptr %3, align 4
ret i32 %14
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwe7r4jhe.c'
source_filename = "/tmp/tmpwe7r4jhe.c"
target datalayout = "e-m:e-p270: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/tmpwe7r4jhe.c"
target datalayout = "e-m:e-p270: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/tmpxlnrbf3u.c'
source_filename = "/tmp/tmpxlnrbf3u.c"
target datalayout = "e-m:e-p270: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/tmpxlnrbf3u.c"
target datalayout = "e-m:e-p270: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/tmp0dukucd6.c'
source_filename = "/tmp/tmp0dukucd6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"then\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"onerror\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @consume_token(ptr noundef %0, i8 noundef zeroext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
%6 = load ptr, ptr %4, align 8
%7 = call ptr @skip_whitespace(ptr noundef %6)
store ptr %7, ptr %4, align 8
%8 = load i8, ptr %5, align 1
%9 = zext i8 %8 to i32
%10 = icmp eq i32 %9, 6
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 61
br i1 %15, label %70, label %16
16: ; preds = %11, %2
%17 = load i8, ptr %5, align 1
%18 = zext i8 %17 to i32
%19 = icmp eq i32 %18, 7
br i1 %19, label %20, label %25
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 43
br i1 %24, label %70, label %25
25: ; preds = %20, %16
%26 = load i8, ptr %5, align 1
%27 = zext i8 %26 to i32
%28 = icmp eq i32 %27, 8
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = load ptr, ptr %4, align 8
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 45
br i1 %33, label %70, label %34
34: ; preds = %29, %25
%35 = load i8, ptr %5, align 1
%36 = zext i8 %35 to i32
%37 = icmp eq i32 %36, 9
br i1 %37, label %38, label %43
38: ; preds = %34
%39 = load ptr, ptr %4, align 8
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 42
br i1 %42, label %70, label %43
43: ; preds = %38, %34
%44 = load i8, ptr %5, align 1
%45 = zext i8 %44 to i32
%46 = icmp eq i32 %45, 10
br i1 %46, label %47, label %52
47: ; preds = %43
%48 = load ptr, ptr %4, align 8
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 47
br i1 %51, label %70, label %52
52: ; preds = %47, %43
%53 = load i8, ptr %5, align 1
%54 = zext i8 %53 to i32
%55 = icmp eq i32 %54, 11
br i1 %55, label %56, label %61
56: ; preds = %52
%57 = load ptr, ptr %4, align 8
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 37
br i1 %60, label %70, label %61
61: ; preds = %56, %52
%62 = load i8, ptr %5, align 1
%63 = zext i8 %62 to i32
%64 = icmp eq i32 %63, 12
br i1 %64, label %65, label %73
65: ; preds = %61
%66 = load ptr, ptr %4, align 8
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 44
br i1 %69, label %70, label %73
70: ; preds = %65, %56, %47, %38, %29, %20, %11
%71 = load ptr, ptr %4, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 1
store ptr %72, ptr %3, align 8
br label %215
73: ; preds = %65, %61
%74 = load i8, ptr %5, align 1
%75 = zext i8 %74 to i32
%76 = icmp eq i32 %75, 6
br i1 %76, label %77, label %91
77: ; preds = %73
%78 = load ptr, ptr %4, align 8
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = icmp eq i32 %80, 61
br i1 %81, label %82, label %91
82: ; preds = %77
%83 = load ptr, ptr %4, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 1
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
%87 = icmp ne i32 %86, 61
br i1 %87, label %88, label %91
88: ; preds = %82
%89 = load ptr, ptr %4, align 8
%90 = getelementptr inbounds i8, ptr %89, i64 1
store ptr %90, ptr %3, align 8
br label %215
91: ; preds = %82, %77, %73
%92 = load i8, ptr %5, align 1
%93 = zext i8 %92 to i32
%94 = icmp eq i32 %93, 13
br i1 %94, label %95, label %109
95: ; preds = %91
%96 = load ptr, ptr %4, align 8
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 61
br i1 %99, label %100, label %109
100: ; preds = %95
%101 = load ptr, ptr %4, align 8
%102 = getelementptr inbounds i8, ptr %101, i64 1
%103 = load i8, ptr %102, align 1
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 61
br i1 %105, label %106, label %109
106: ; preds = %100
%107 = load ptr, ptr %4, align 8
%108 = getelementptr inbounds i8, ptr %107, i64 2
store ptr %108, ptr %3, align 8
br label %215
109: ; preds = %100, %95, %91
%110 = load i8, ptr %5, align 1
%111 = zext i8 %110 to i32
%112 = icmp eq i32 %111, 15
br i1 %112, label %113, label %127
113: ; preds = %109
%114 = load ptr, ptr %4, align 8
%115 = load i8, ptr %114, align 1
%116 = sext i8 %115 to i32
%117 = icmp eq i32 %116, 60
br i1 %117, label %118, label %127
118: ; preds = %113
%119 = load ptr, ptr %4, align 8
%120 = getelementptr inbounds i8, ptr %119, i64 1
%121 = load i8, ptr %120, align 1
%122 = sext i8 %121 to i32
%123 = icmp ne i32 %122, 61
br i1 %123, label %124, label %127
124: ; preds = %118
%125 = load ptr, ptr %4, align 8
%126 = getelementptr inbounds i8, ptr %125, i64 1
store ptr %126, ptr %3, align 8
br label %215
127: ; preds = %118, %113, %109
%128 = load i8, ptr %5, align 1
%129 = zext i8 %128 to i32
%130 = icmp eq i32 %129, 16
br i1 %130, label %131, label %145
131: ; preds = %127
%132 = load ptr, ptr %4, align 8
%133 = load i8, ptr %132, align 1
%134 = sext i8 %133 to i32
%135 = icmp eq i32 %134, 60
br i1 %135, label %136, label %145
136: ; preds = %131
%137 = load ptr, ptr %4, align 8
%138 = getelementptr inbounds i8, ptr %137, i64 1
%139 = load i8, ptr %138, align 1
%140 = sext i8 %139 to i32
%141 = icmp eq i32 %140, 61
br i1 %141, label %142, label %145
142: ; preds = %136
%143 = load ptr, ptr %4, align 8
%144 = getelementptr inbounds i8, ptr %143, i64 2
store ptr %144, ptr %3, align 8
br label %215
145: ; preds = %136, %131, %127
%146 = load i8, ptr %5, align 1
%147 = zext i8 %146 to i32
%148 = icmp eq i32 %147, 17
br i1 %148, label %149, label %163
149: ; preds = %145
%150 = load ptr, ptr %4, align 8
%151 = load i8, ptr %150, align 1
%152 = sext i8 %151 to i32
%153 = icmp eq i32 %152, 62
br i1 %153, label %154, label %163
154: ; preds = %149
%155 = load ptr, ptr %4, align 8
%156 = getelementptr inbounds i8, ptr %155, i64 1
%157 = load i8, ptr %156, align 1
%158 = sext i8 %157 to i32
%159 = icmp ne i32 %158, 61
br i1 %159, label %160, label %163
160: ; preds = %154
%161 = load ptr, ptr %4, align 8
%162 = getelementptr inbounds i8, ptr %161, i64 1
store ptr %162, ptr %3, align 8
br label %215
163: ; preds = %154, %149, %145
%164 = load i8, ptr %5, align 1
%165 = zext i8 %164 to i32
%166 = icmp eq i32 %165, 18
br i1 %166, label %167, label %181
167: ; preds = %163
%168 = load ptr, ptr %4, align 8
%169 = load i8, ptr %168, align 1
%170 = sext i8 %169 to i32
%171 = icmp eq i32 %170, 62
br i1 %171, label %172, label %181
172: ; preds = %167
%173 = load ptr, ptr %4, align 8
%174 = getelementptr inbounds i8, ptr %173, i64 1
%175 = load i8, ptr %174, align 1
%176 = sext i8 %175 to i32
%177 = icmp eq i32 %176, 61
br i1 %177, label %178, label %181
178: ; preds = %172
%179 = load ptr, ptr %4, align 8
%180 = getelementptr inbounds i8, ptr %179, i64 2
store ptr %180, ptr %3, align 8
br label %215
181: ; preds = %172, %167, %163
%182 = load i8, ptr %5, align 1
%183 = zext i8 %182 to i32
%184 = icmp eq i32 %183, 19
br i1 %184, label %185, label %192
185: ; preds = %181
%186 = load ptr, ptr %4, align 8
%187 = call i64 @strncmp(ptr noundef %186, ptr noundef @.str, i32 noundef 4)
%188 = icmp eq i64 %187, 0
br i1 %188, label %189, label %192
189: ; preds = %185
%190 = load ptr, ptr %4, align 8
%191 = getelementptr inbounds i8, ptr %190, i64 4
store ptr %191, ptr %3, align 8
br label %215
192: ; preds = %185, %181
%193 = load i8, ptr %5, align 1
%194 = zext i8 %193 to i32
%195 = icmp eq i32 %194, 20
br i1 %195, label %196, label %203
196: ; preds = %192
%197 = load ptr, ptr %4, align 8
%198 = call i64 @strncmp(ptr noundef %197, ptr noundef @.str.1, i32 noundef 7)
%199 = icmp eq i64 %198, 0
br i1 %199, label %200, label %203
200: ; preds = %196
%201 = load ptr, ptr %4, align 8
%202 = getelementptr inbounds i8, ptr %201, i64 7
store ptr %202, ptr %3, align 8
br label %215
203: ; preds = %196, %192
br label %204
204: ; preds = %203
br label %205
205: ; preds = %204
br label %206
206: ; preds = %205
br label %207
207: ; preds = %206
br label %208
208: ; preds = %207
br label %209
209: ; preds = %208
br label %210
210: ; preds = %209
br label %211
211: ; preds = %210
%212 = load ptr, ptr %4, align 8
%213 = call i32 @next_token(ptr noundef %212)
%214 = call i32 @syntax_error_invalid_token(i32 noundef %213)
store ptr null, ptr %3, align 8
br label %215
215: ; preds = %211, %200, %189, %178, %160, %142, %124, %106, %88, %70
%216 = load ptr, ptr %3, align 8
ret ptr %216
}
declare ptr @skip_whitespace(ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @syntax_error_invalid_token(i32 noundef) #1
declare i32 @next_token(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/tmp0dukucd6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"then\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"onerror\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @consume_token(ptr noundef %0, i8 noundef zeroext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
%6 = load ptr, ptr %4, align 8
%7 = call ptr @skip_whitespace(ptr noundef %6)
store ptr %7, ptr %4, align 8
%8 = load i8, ptr %5, align 1
%9 = zext i8 %8 to i32
%10 = icmp eq i32 %9, 6
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 61
br i1 %15, label %70, label %16
16: ; preds = %11, %2
%17 = load i8, ptr %5, align 1
%18 = zext i8 %17 to i32
%19 = icmp eq i32 %18, 7
br i1 %19, label %20, label %25
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 43
br i1 %24, label %70, label %25
25: ; preds = %20, %16
%26 = load i8, ptr %5, align 1
%27 = zext i8 %26 to i32
%28 = icmp eq i32 %27, 8
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = load ptr, ptr %4, align 8
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 45
br i1 %33, label %70, label %34
34: ; preds = %29, %25
%35 = load i8, ptr %5, align 1
%36 = zext i8 %35 to i32
%37 = icmp eq i32 %36, 9
br i1 %37, label %38, label %43
38: ; preds = %34
%39 = load ptr, ptr %4, align 8
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 42
br i1 %42, label %70, label %43
43: ; preds = %38, %34
%44 = load i8, ptr %5, align 1
%45 = zext i8 %44 to i32
%46 = icmp eq i32 %45, 10
br i1 %46, label %47, label %52
47: ; preds = %43
%48 = load ptr, ptr %4, align 8
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 47
br i1 %51, label %70, label %52
52: ; preds = %47, %43
%53 = load i8, ptr %5, align 1
%54 = zext i8 %53 to i32
%55 = icmp eq i32 %54, 11
br i1 %55, label %56, label %61
56: ; preds = %52
%57 = load ptr, ptr %4, align 8
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 37
br i1 %60, label %70, label %61
61: ; preds = %56, %52
%62 = load i8, ptr %5, align 1
%63 = zext i8 %62 to i32
%64 = icmp eq i32 %63, 12
br i1 %64, label %65, label %73
65: ; preds = %61
%66 = load ptr, ptr %4, align 8
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 44
br i1 %69, label %70, label %73
70: ; preds = %65, %56, %47, %38, %29, %20, %11
%71 = load ptr, ptr %4, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 1
store ptr %72, ptr %3, align 8
br label %215
73: ; preds = %65, %61
%74 = load i8, ptr %5, align 1
%75 = zext i8 %74 to i32
%76 = icmp eq i32 %75, 6
br i1 %76, label %77, label %91
77: ; preds = %73
%78 = load ptr, ptr %4, align 8
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = icmp eq i32 %80, 61
br i1 %81, label %82, label %91
82: ; preds = %77
%83 = load ptr, ptr %4, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 1
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
%87 = icmp ne i32 %86, 61
br i1 %87, label %88, label %91
88: ; preds = %82
%89 = load ptr, ptr %4, align 8
%90 = getelementptr inbounds i8, ptr %89, i64 1
store ptr %90, ptr %3, align 8
br label %215
91: ; preds = %82, %77, %73
%92 = load i8, ptr %5, align 1
%93 = zext i8 %92 to i32
%94 = icmp eq i32 %93, 13
br i1 %94, label %95, label %109
95: ; preds = %91
%96 = load ptr, ptr %4, align 8
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 61
br i1 %99, label %100, label %109
100: ; preds = %95
%101 = load ptr, ptr %4, align 8
%102 = getelementptr inbounds i8, ptr %101, i64 1
%103 = load i8, ptr %102, align 1
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 61
br i1 %105, label %106, label %109
106: ; preds = %100
%107 = load ptr, ptr %4, align 8
%108 = getelementptr inbounds i8, ptr %107, i64 2
store ptr %108, ptr %3, align 8
br label %215
109: ; preds = %100, %95, %91
%110 = load i8, ptr %5, align 1
%111 = zext i8 %110 to i32
%112 = icmp eq i32 %111, 15
br i1 %112, label %113, label %127
113: ; preds = %109
%114 = load ptr, ptr %4, align 8
%115 = load i8, ptr %114, align 1
%116 = sext i8 %115 to i32
%117 = icmp eq i32 %116, 60
br i1 %117, label %118, label %127
118: ; preds = %113
%119 = load ptr, ptr %4, align 8
%120 = getelementptr inbounds i8, ptr %119, i64 1
%121 = load i8, ptr %120, align 1
%122 = sext i8 %121 to i32
%123 = icmp ne i32 %122, 61
br i1 %123, label %124, label %127
124: ; preds = %118
%125 = load ptr, ptr %4, align 8
%126 = getelementptr inbounds i8, ptr %125, i64 1
store ptr %126, ptr %3, align 8
br label %215
127: ; preds = %118, %113, %109
%128 = load i8, ptr %5, align 1
%129 = zext i8 %128 to i32
%130 = icmp eq i32 %129, 16
br i1 %130, label %131, label %145
131: ; preds = %127
%132 = load ptr, ptr %4, align 8
%133 = load i8, ptr %132, align 1
%134 = sext i8 %133 to i32
%135 = icmp eq i32 %134, 60
br i1 %135, label %136, label %145
136: ; preds = %131
%137 = load ptr, ptr %4, align 8
%138 = getelementptr inbounds i8, ptr %137, i64 1
%139 = load i8, ptr %138, align 1
%140 = sext i8 %139 to i32
%141 = icmp eq i32 %140, 61
br i1 %141, label %142, label %145
142: ; preds = %136
%143 = load ptr, ptr %4, align 8
%144 = getelementptr inbounds i8, ptr %143, i64 2
store ptr %144, ptr %3, align 8
br label %215
145: ; preds = %136, %131, %127
%146 = load i8, ptr %5, align 1
%147 = zext i8 %146 to i32
%148 = icmp eq i32 %147, 17
br i1 %148, label %149, label %163
149: ; preds = %145
%150 = load ptr, ptr %4, align 8
%151 = load i8, ptr %150, align 1
%152 = sext i8 %151 to i32
%153 = icmp eq i32 %152, 62
br i1 %153, label %154, label %163
154: ; preds = %149
%155 = load ptr, ptr %4, align 8
%156 = getelementptr inbounds i8, ptr %155, i64 1
%157 = load i8, ptr %156, align 1
%158 = sext i8 %157 to i32
%159 = icmp ne i32 %158, 61
br i1 %159, label %160, label %163
160: ; preds = %154
%161 = load ptr, ptr %4, align 8
%162 = getelementptr inbounds i8, ptr %161, i64 1
store ptr %162, ptr %3, align 8
br label %215
163: ; preds = %154, %149, %145
%164 = load i8, ptr %5, align 1
%165 = zext i8 %164 to i32
%166 = icmp eq i32 %165, 18
br i1 %166, label %167, label %181
167: ; preds = %163
%168 = load ptr, ptr %4, align 8
%169 = load i8, ptr %168, align 1
%170 = sext i8 %169 to i32
%171 = icmp eq i32 %170, 62
br i1 %171, label %172, label %181
172: ; preds = %167
%173 = load ptr, ptr %4, align 8
%174 = getelementptr inbounds i8, ptr %173, i64 1
%175 = load i8, ptr %174, align 1
%176 = sext i8 %175 to i32
%177 = icmp eq i32 %176, 61
br i1 %177, label %178, label %181
178: ; preds = %172
%179 = load ptr, ptr %4, align 8
%180 = getelementptr inbounds i8, ptr %179, i64 2
store ptr %180, ptr %3, align 8
br label %215
181: ; preds = %172, %167, %163
%182 = load i8, ptr %5, align 1
%183 = zext i8 %182 to i32
%184 = icmp eq i32 %183, 19
br i1 %184, label %185, label %192
185: ; preds = %181
%186 = load ptr, ptr %4, align 8
%187 = call i64 @strncmp(ptr noundef %186, ptr noundef @.str, i32 noundef 4)
%188 = icmp eq i64 %187, 0
br i1 %188, label %189, label %192
189: ; preds = %185
%190 = load ptr, ptr %4, align 8
%191 = getelementptr inbounds i8, ptr %190, i64 4
store ptr %191, ptr %3, align 8
br label %215
192: ; preds = %185, %181
%193 = load i8, ptr %5, align 1
%194 = zext i8 %193 to i32
%195 = icmp eq i32 %194, 20
br i1 %195, label %196, label %203
196: ; preds = %192
%197 = load ptr, ptr %4, align 8
%198 = call i64 @strncmp(ptr noundef %197, ptr noundef @.str.1, i32 noundef 7)
%199 = icmp eq i64 %198, 0
br i1 %199, label %200, label %203
200: ; preds = %196
%201 = load ptr, ptr %4, align 8
%202 = getelementptr inbounds i8, ptr %201, i64 7
store ptr %202, ptr %3, align 8
br label %215
203: ; preds = %196, %192
br label %204
204: ; preds = %203
br label %205
205: ; preds = %204
br label %206
206: ; preds = %205
br label %207
207: ; preds = %206
br label %208
208: ; preds = %207
br label %209
209: ; preds = %208
br label %210
210: ; preds = %209
br label %211
211: ; preds = %210
%212 = load ptr, ptr %4, align 8
%213 = call i32 @next_token(ptr noundef %212)
%214 = call i32 @syntax_error_invalid_token(i32 noundef %213)
store ptr null, ptr %3, align 8
br label %215
215: ; preds = %211, %200, %189, %178, %160, %142, %124, %106, %88, %70
%216 = load ptr, ptr %3, align 8
ret ptr %216
}
declare ptr @skip_whitespace(ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @syntax_error_invalid_token(i32 noundef) #1
declare i32 @next_token(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/tmpd0cmpnrs.c'
source_filename = "/tmp/tmpd0cmpnrs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"file\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"abcdefghijklmnopqrstuvwxyz\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@S_IRWXU = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [5 x i8] c"read\00", align 1
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str.5 = 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 [1024 x i8], align 16
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %3, align 8
store ptr @.str.1, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = add nsw i32 %9, 1
%11 = sext i32 %10 to i64
store i64 %11, ptr %5, align 8
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr @O_RDWR, align 4
%14 = load i32, ptr @O_CREAT, align 4
%15 = or i32 %13, %14
%16 = load i32, ptr @S_IRWXU, align 4
%17 = call i32 @open(ptr noundef %12, i32 noundef %15, i32 noundef %16)
store i32 %17, ptr %6, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %0
%20 = call i32 @perror(ptr noundef @.str.2)
%21 = call i32 @exit(i32 noundef 1) #3
unreachable
22: ; preds = %0
%23 = load i32, ptr %6, align 4
%24 = load ptr, ptr %4, align 8
%25 = load i64, ptr %5, align 8
%26 = trunc i64 %25 to i32
%27 = call i64 @write(i32 noundef %23, ptr noundef %24, i32 noundef %26)
%28 = load i64, ptr %5, align 8
%29 = icmp ne i64 %27, %28
br i1 %29, label %30, label %33
30: ; preds = %22
%31 = call i32 @perror(ptr noundef @.str.3)
%32 = call i32 @exit(i32 noundef 1) #3
unreachable
33: ; preds = %22
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr @SEEK_SET, align 4
%36 = call i32 @lseek(i32 noundef %34, i32 noundef 0, i32 noundef %35)
%37 = load i32, ptr %6, align 4
%38 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%39 = call i32 @read(i32 noundef %37, ptr noundef %38, i32 noundef 1024)
store i32 %39, ptr %7, align 4
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %33
%42 = call i32 @perror(ptr noundef @.str.4)
%43 = call i32 @exit(i32 noundef 1) #3
unreachable
44: ; preds = %33
%45 = load i32, ptr @STDOUT_FILENO, align 4
%46 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%47 = load i32, ptr %7, align 4
%48 = call i64 @write(i32 noundef %45, ptr noundef %46, i32 noundef %47)
%49 = call i32 @puts(ptr noundef @.str.5)
%50 = load i32, ptr %6, align 4
%51 = call i32 @close(i32 noundef %50)
ret i32 0
}
declare i32 @strlen(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @puts(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd0cmpnrs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"file\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"abcdefghijklmnopqrstuvwxyz\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@S_IRWXU = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [5 x i8] c"read\00", align 1
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str.5 = 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 [1024 x i8], align 16
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %3, align 8
store ptr @.str.1, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = add nsw i32 %9, 1
%11 = sext i32 %10 to i64
store i64 %11, ptr %5, align 8
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr @O_RDWR, align 4
%14 = load i32, ptr @O_CREAT, align 4
%15 = or i32 %13, %14
%16 = load i32, ptr @S_IRWXU, align 4
%17 = call i32 @open(ptr noundef %12, i32 noundef %15, i32 noundef %16)
store i32 %17, ptr %6, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %0
%20 = call i32 @perror(ptr noundef @.str.2)
%21 = call i32 @exit(i32 noundef 1) #3
unreachable
22: ; preds = %0
%23 = load i32, ptr %6, align 4
%24 = load ptr, ptr %4, align 8
%25 = load i64, ptr %5, align 8
%26 = trunc i64 %25 to i32
%27 = call i64 @write(i32 noundef %23, ptr noundef %24, i32 noundef %26)
%28 = load i64, ptr %5, align 8
%29 = icmp ne i64 %27, %28
br i1 %29, label %30, label %33
30: ; preds = %22
%31 = call i32 @perror(ptr noundef @.str.3)
%32 = call i32 @exit(i32 noundef 1) #3
unreachable
33: ; preds = %22
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr @SEEK_SET, align 4
%36 = call i32 @lseek(i32 noundef %34, i32 noundef 0, i32 noundef %35)
%37 = load i32, ptr %6, align 4
%38 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%39 = call i32 @read(i32 noundef %37, ptr noundef %38, i32 noundef 1024)
store i32 %39, ptr %7, align 4
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %33
%42 = call i32 @perror(ptr noundef @.str.4)
%43 = call i32 @exit(i32 noundef 1) #3
unreachable
44: ; preds = %33
%45 = load i32, ptr @STDOUT_FILENO, align 4
%46 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0
%47 = load i32, ptr %7, align 4
%48 = call i64 @write(i32 noundef %45, ptr noundef %46, i32 noundef %47)
%49 = call i32 @puts(ptr noundef @.str.5)
%50 = load i32, ptr %6, align 4
%51 = call i32 @close(i32 noundef %50)
ret i32 0
}
declare i32 @strlen(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @puts(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"}
|
; ModuleID = '/tmp/tmpa63kuocz.c'
source_filename = "/tmp/tmpa63kuocz.c"
target datalayout = "e-m:e-p270: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/tmpa63kuocz.c"
target datalayout = "e-m:e-p270: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/tmp0u6lpi0d.c'
source_filename = "/tmp/tmp0u6lpi0d.c"
target datalayout = "e-m:e-p270: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 @addToArray(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = load ptr, ptr %7, align 8
%12 = load i64, ptr %8, align 8
%13 = call i32 @addMultipleToArray(ptr noundef %9, ptr noundef %10, ptr noundef %11, i64 noundef %12, i32 noundef 1)
ret void
}
declare i32 @addMultipleToArray(ptr noundef, ptr noundef, ptr noundef, i64 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/tmp0u6lpi0d.c"
target datalayout = "e-m:e-p270: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 @addToArray(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = load ptr, ptr %7, align 8
%12 = load i64, ptr %8, align 8
%13 = call i32 @addMultipleToArray(ptr noundef %9, ptr noundef %10, ptr noundef %11, i64 noundef %12, i32 noundef 1)
ret void
}
declare i32 @addMultipleToArray(ptr noundef, ptr noundef, ptr noundef, i64 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/tmpf7vlf4qm.c'
source_filename = "/tmp/tmpf7vlf4qm.c"
target datalayout = "e-m:e-p270: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 @flashfsReadAbs(i64 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load i64, ptr %4, align 8
%9 = load i32, ptr %6, align 4
%10 = zext i32 %9 to i64
%11 = add nsw i64 %8, %10
%12 = call i64 (...) @flashfsGetSize()
%13 = icmp sgt i64 %11, %12
br i1 %13, label %14, label %19
14: ; preds = %3
%15 = call i64 (...) @flashfsGetSize()
%16 = load i64, ptr %4, align 8
%17 = sub nsw i64 %15, %16
%18 = trunc i64 %17 to i32
store i32 %18, ptr %6, align 4
br label %19
19: ; preds = %14, %3
%20 = call i32 (...) @flashfsFlushSync()
%21 = load i64, ptr %4, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %6, align 4
%24 = call i32 @m25p16_readBytes(i64 noundef %21, ptr noundef %22, i32 noundef %23)
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
ret i32 %25
}
declare i64 @flashfsGetSize(...) #1
declare i32 @flashfsFlushSync(...) #1
declare i32 @m25p16_readBytes(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/tmpf7vlf4qm.c"
target datalayout = "e-m:e-p270: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 @flashfsReadAbs(i64 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load i64, ptr %4, align 8
%9 = load i32, ptr %6, align 4
%10 = zext i32 %9 to i64
%11 = add nsw i64 %8, %10
%12 = call i64 (...) @flashfsGetSize()
%13 = icmp sgt i64 %11, %12
br i1 %13, label %14, label %19
14: ; preds = %3
%15 = call i64 (...) @flashfsGetSize()
%16 = load i64, ptr %4, align 8
%17 = sub nsw i64 %15, %16
%18 = trunc i64 %17 to i32
store i32 %18, ptr %6, align 4
br label %19
19: ; preds = %14, %3
%20 = call i32 (...) @flashfsFlushSync()
%21 = load i64, ptr %4, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %6, align 4
%24 = call i32 @m25p16_readBytes(i64 noundef %21, ptr noundef %22, i32 noundef %23)
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
ret i32 %25
}
declare i64 @flashfsGetSize(...) #1
declare i32 @flashfsFlushSync(...) #1
declare i32 @m25p16_readBytes(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/tmpcye23m7o.c'
source_filename = "/tmp/tmpcye23m7o.c"
target datalayout = "e-m:e-p270: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 @net_emit_buf(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %5, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %11, label %10
10: ; preds = %3
br label %29
11: ; preds = %3
%12 = load i32, ptr %6, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %15, label %14
14: ; preds = %11
br label %29
15: ; preds = %11
br label %16
16: ; preds = %20, %15
%17 = load i32, ptr %6, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %6, align 4
%19 = icmp ne i32 %17, 0
br i1 %19, label %20, label %29
20: ; preds = %16
%21 = load i32, ptr %4, align 4
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %7, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %7, align 4
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds i32, ptr %22, i64 %25
%27 = load i32, ptr %26, align 4
%28 = call i32 @net_emit_uint8(i32 noundef %21, i32 noundef %27)
br label %16, !llvm.loop !6
29: ; preds = %10, %14, %16
ret void
}
declare i32 @net_emit_uint8(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/tmpcye23m7o.c"
target datalayout = "e-m:e-p270: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 @net_emit_buf(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %5, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %11, label %10
10: ; preds = %3
br label %31
11: ; preds = %3
%12 = load i32, ptr %6, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %15, label %14
14: ; preds = %11
br label %31
15: ; preds = %11
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 %16, -1
store i32 %17, ptr %6, align 4
%18 = icmp ne i32 %16, 0
br i1 %18, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %15
br label %19
19: ; preds = %.lr.ph, %19
%20 = load i32, ptr %4, align 4
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %7, align 4
%24 = sext i32 %22 to i64
%25 = getelementptr inbounds i32, ptr %21, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 @net_emit_uint8(i32 noundef %20, i32 noundef %26)
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, -1
store i32 %29, ptr %6, align 4
%30 = icmp ne i32 %28, 0
br i1 %30, label %19, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %19
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %15
br label %31
31: ; preds = %.loopexit, %14, %10
ret void
}
declare i32 @net_emit_uint8(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/tmplawh1nb0.c'
source_filename = "/tmp/tmplawh1nb0.c"
target datalayout = "e-m:e-p270: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/tmplawh1nb0.c"
target datalayout = "e-m:e-p270: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/tmpt0wxxjuq.c'
source_filename = "/tmp/tmpt0wxxjuq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @test_parse_simple()
%3 = call i32 (...) @test_parse_major()
%4 = call i32 (...) @test_parse_minor()
%5 = call i32 (...) @test_parse_prerelease()
%6 = call i32 (...) @test_parse_metadata()
%7 = call i32 (...) @test_parse_prerelerease_metadata()
%8 = call i32 (...) @test_compare()
%9 = call i32 (...) @test_compare_full()
%10 = call i32 (...) @test_compare_spec()
%11 = call i32 (...) @test_compare_gt()
%12 = call i32 (...) @test_compare_lt()
%13 = call i32 (...) @test_compare_eq()
%14 = call i32 (...) @test_compare_neq()
%15 = call i32 (...) @test_compare_gte()
%16 = call i32 (...) @test_compare_lte()
%17 = call i32 (...) @test_satisfies()
%18 = call i32 (...) @test_render()
%19 = call i32 (...) @test_numeric()
%20 = call i32 (...) @test_bump()
%21 = call i32 (...) @test_bump_minor()
%22 = call i32 (...) @test_bump_patch()
%23 = call i32 (...) @test_free()
%24 = call i32 (...) @test_valid_chars()
%25 = call i32 (...) @test_clean()
ret i32 0
}
declare i32 @test_parse_simple(...) #1
declare i32 @test_parse_major(...) #1
declare i32 @test_parse_minor(...) #1
declare i32 @test_parse_prerelease(...) #1
declare i32 @test_parse_metadata(...) #1
declare i32 @test_parse_prerelerease_metadata(...) #1
declare i32 @test_compare(...) #1
declare i32 @test_compare_full(...) #1
declare i32 @test_compare_spec(...) #1
declare i32 @test_compare_gt(...) #1
declare i32 @test_compare_lt(...) #1
declare i32 @test_compare_eq(...) #1
declare i32 @test_compare_neq(...) #1
declare i32 @test_compare_gte(...) #1
declare i32 @test_compare_lte(...) #1
declare i32 @test_satisfies(...) #1
declare i32 @test_render(...) #1
declare i32 @test_numeric(...) #1
declare i32 @test_bump(...) #1
declare i32 @test_bump_minor(...) #1
declare i32 @test_bump_patch(...) #1
declare i32 @test_free(...) #1
declare i32 @test_valid_chars(...) #1
declare i32 @test_clean(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpt0wxxjuq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @test_parse_simple()
%3 = call i32 (...) @test_parse_major()
%4 = call i32 (...) @test_parse_minor()
%5 = call i32 (...) @test_parse_prerelease()
%6 = call i32 (...) @test_parse_metadata()
%7 = call i32 (...) @test_parse_prerelerease_metadata()
%8 = call i32 (...) @test_compare()
%9 = call i32 (...) @test_compare_full()
%10 = call i32 (...) @test_compare_spec()
%11 = call i32 (...) @test_compare_gt()
%12 = call i32 (...) @test_compare_lt()
%13 = call i32 (...) @test_compare_eq()
%14 = call i32 (...) @test_compare_neq()
%15 = call i32 (...) @test_compare_gte()
%16 = call i32 (...) @test_compare_lte()
%17 = call i32 (...) @test_satisfies()
%18 = call i32 (...) @test_render()
%19 = call i32 (...) @test_numeric()
%20 = call i32 (...) @test_bump()
%21 = call i32 (...) @test_bump_minor()
%22 = call i32 (...) @test_bump_patch()
%23 = call i32 (...) @test_free()
%24 = call i32 (...) @test_valid_chars()
%25 = call i32 (...) @test_clean()
ret i32 0
}
declare i32 @test_parse_simple(...) #1
declare i32 @test_parse_major(...) #1
declare i32 @test_parse_minor(...) #1
declare i32 @test_parse_prerelease(...) #1
declare i32 @test_parse_metadata(...) #1
declare i32 @test_parse_prerelerease_metadata(...) #1
declare i32 @test_compare(...) #1
declare i32 @test_compare_full(...) #1
declare i32 @test_compare_spec(...) #1
declare i32 @test_compare_gt(...) #1
declare i32 @test_compare_lt(...) #1
declare i32 @test_compare_eq(...) #1
declare i32 @test_compare_neq(...) #1
declare i32 @test_compare_gte(...) #1
declare i32 @test_compare_lte(...) #1
declare i32 @test_satisfies(...) #1
declare i32 @test_render(...) #1
declare i32 @test_numeric(...) #1
declare i32 @test_bump(...) #1
declare i32 @test_bump_minor(...) #1
declare i32 @test_bump_patch(...) #1
declare i32 @test_free(...) #1
declare i32 @test_valid_chars(...) #1
declare i32 @test_clean(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmp8gvqfugc.c'
source_filename = "/tmp/tmp8gvqfugc.c"
target datalayout = "e-m:e-p270: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 @CriaVetFloat(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 4, %5
%7 = trunc i64 %6 to i32
%8 = call i64 @malloc(i32 noundef %7)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
ret ptr %10
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8gvqfugc.c"
target datalayout = "e-m:e-p270: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 @CriaVetFloat(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 4, %5
%7 = trunc i64 %6 to i32
%8 = call i64 @malloc(i32 noundef %7)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
ret ptr %10
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_22jyesg.c'
source_filename = "/tmp/tmp_22jyesg.c"
target datalayout = "e-m:e-p270: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 @g1(i32 noundef %0, float noundef %1, double noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca float, align 4
%6 = alloca double, align 8
%7 = alloca double, align 8
store i32 %0, ptr %4, align 4
store float %1, ptr %5, align 4
store double %2, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = sitofp i32 %8 to float
%10 = load float, ptr %5, align 4
%11 = fadd float %9, %10
%12 = fpext float %11 to double
%13 = load double, ptr %6, align 8
%14 = fadd double %12, %13
store double %14, ptr %7, align 8
%15 = load i32, ptr %4, align 4
%16 = load float, ptr %5, align 4
%17 = load double, ptr %6, align 8
%18 = call double @f1(i32 noundef %15, float noundef %16, double noundef %17)
%19 = load double, ptr %7, align 8
%20 = fcmp une double %18, %19
br i1 %20, label %21, label %23
21: ; preds = %3
%22 = call i32 (...) @abort() #3
unreachable
23: ; preds = %3
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
%26 = load float, ptr %5, align 4
%27 = fadd float %26, 1.000000e+00
%28 = load double, ptr %6, align 8
%29 = fadd double %28, 1.000000e+00
%30 = call double @f2(i32 noundef %25, float noundef %27, double noundef %29)
%31 = load double, ptr %7, align 8
%32 = fadd double %31, 3.000000e+00
%33 = fcmp une double %30, %32
br i1 %33, label %34, label %36
34: ; preds = %23
%35 = call i32 (...) @abort() #3
unreachable
36: ; preds = %23
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %37, 2
%39 = load float, ptr %5, align 4
%40 = fadd float %39, 2.000000e+00
%41 = load double, ptr %6, align 8
%42 = fadd double %41, 2.000000e+00
%43 = call double @f3(i32 noundef %38, float noundef %40, double noundef %42)
%44 = load double, ptr %7, align 8
%45 = fadd double %44, 6.000000e+00
%46 = fcmp une double %43, %45
br i1 %46, label %47, label %49
47: ; preds = %36
%48 = call i32 (...) @abort() #3
unreachable
49: ; preds = %36
ret void
}
declare double @f1(i32 noundef, float noundef, double noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare double @f2(i32 noundef, float noundef, double noundef) #1
declare double @f3(i32 noundef, float 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" }
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/tmp_22jyesg.c"
target datalayout = "e-m:e-p270: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 @g1(i32 noundef %0, float noundef %1, double noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca float, align 4
%6 = alloca double, align 8
%7 = alloca double, align 8
store i32 %0, ptr %4, align 4
store float %1, ptr %5, align 4
store double %2, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = sitofp i32 %8 to float
%10 = load float, ptr %5, align 4
%11 = fadd float %9, %10
%12 = fpext float %11 to double
%13 = load double, ptr %6, align 8
%14 = fadd double %12, %13
store double %14, ptr %7, align 8
%15 = load i32, ptr %4, align 4
%16 = load float, ptr %5, align 4
%17 = load double, ptr %6, align 8
%18 = call double @f1(i32 noundef %15, float noundef %16, double noundef %17)
%19 = load double, ptr %7, align 8
%20 = fcmp une double %18, %19
br i1 %20, label %21, label %23
21: ; preds = %3
%22 = call i32 (...) @abort() #3
unreachable
23: ; preds = %3
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
%26 = load float, ptr %5, align 4
%27 = fadd float %26, 1.000000e+00
%28 = load double, ptr %6, align 8
%29 = fadd double %28, 1.000000e+00
%30 = call double @f2(i32 noundef %25, float noundef %27, double noundef %29)
%31 = load double, ptr %7, align 8
%32 = fadd double %31, 3.000000e+00
%33 = fcmp une double %30, %32
br i1 %33, label %34, label %36
34: ; preds = %23
%35 = call i32 (...) @abort() #3
unreachable
36: ; preds = %23
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %37, 2
%39 = load float, ptr %5, align 4
%40 = fadd float %39, 2.000000e+00
%41 = load double, ptr %6, align 8
%42 = fadd double %41, 2.000000e+00
%43 = call double @f3(i32 noundef %38, float noundef %40, double noundef %42)
%44 = load double, ptr %7, align 8
%45 = fadd double %44, 6.000000e+00
%46 = fcmp une double %43, %45
br i1 %46, label %47, label %49
47: ; preds = %36
%48 = call i32 (...) @abort() #3
unreachable
49: ; preds = %36
ret void
}
declare double @f1(i32 noundef, float noundef, double noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare double @f2(i32 noundef, float noundef, double noundef) #1
declare double @f3(i32 noundef, float 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" }
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/tmpxa7a99jl.c'
source_filename = "/tmp/tmpxa7a99jl.c"
target datalayout = "e-m:e-p270: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/tmpxa7a99jl.c"
target datalayout = "e-m:e-p270: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/tmpeypapy7f.c'
source_filename = "/tmp/tmpeypapy7f.c"
target datalayout = "e-m:e-p270: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/tmpeypapy7f.c"
target datalayout = "e-m:e-p270: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/tmpmudjkwlm.c'
source_filename = "/tmp/tmpmudjkwlm.c"
target datalayout = "e-m:e-p270: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/tmpmudjkwlm.c"
target datalayout = "e-m:e-p270: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/tmp6ifji00z.c'
source_filename = "/tmp/tmp6ifji00z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LLONG_MIN = dso_local global i64 0, align 8
@LLONG_MAX = dso_local global i64 0, align 8
@ERANGE = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@EINVAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strtoll(ptr noalias noundef %0, ptr noalias noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i8, align 1
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%14 = load ptr, ptr %4, align 8
store ptr %14, ptr %7, align 8
br label %15
15: ; preds = %19, %3
%16 = load ptr, ptr %7, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %7, align 8
%18 = load i8, ptr %16, align 1
store i8 %18, ptr %9, align 1
br label %19
19: ; preds = %15
%20 = load i8, ptr %9, align 1
%21 = call i64 @isspace(i8 noundef zeroext %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %15, label %23, !llvm.loop !6
23: ; preds = %19
%24 = load i8, ptr %9, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 45
br i1 %26, label %27, label %31
27: ; preds = %23
store i32 1, ptr %11, align 4
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %7, align 8
%30 = load i8, ptr %28, align 1
store i8 %30, ptr %9, align 1
br label %40
31: ; preds = %23
store i32 0, ptr %11, align 4
%32 = load i8, ptr %9, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 43
br i1 %34, label %35, label %39
35: ; preds = %31
%36 = load ptr, ptr %7, align 8
%37 = getelementptr inbounds i8, ptr %36, i32 1
store ptr %37, ptr %7, align 8
%38 = load i8, ptr %36, align 1
store i8 %38, ptr %9, align 1
br label %39
39: ; preds = %35, %31
br label %40
40: ; preds = %39, %27
%41 = load i32, ptr %6, align 4
%42 = icmp eq i32 %41, 0
br i1 %42, label %46, label %43
43: ; preds = %40
%44 = load i32, ptr %6, align 4
%45 = icmp eq i32 %44, 16
br i1 %45, label %46, label %102
46: ; preds = %43, %40
%47 = load i8, ptr %9, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 48
br i1 %49, label %50, label %102
50: ; preds = %46
%51 = load ptr, ptr %7, align 8
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 120
br i1 %54, label %60, label %55
55: ; preds = %50
%56 = load ptr, ptr %7, align 8
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 88
br i1 %59, label %60, label %102
60: ; preds = %55, %50
%61 = load ptr, ptr %7, align 8
%62 = getelementptr inbounds i8, ptr %61, i64 1
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp sge i32 %64, 48
br i1 %65, label %66, label %72
66: ; preds = %60
%67 = load ptr, ptr %7, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 1
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = icmp sle i32 %70, 57
br i1 %71, label %96, label %72
72: ; preds = %66, %60
%73 = load ptr, ptr %7, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 1
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = icmp sge i32 %76, 65
br i1 %77, label %78, label %84
78: ; preds = %72
%79 = load ptr, ptr %7, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 1
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp sle i32 %82, 70
br i1 %83, label %96, label %84
84: ; preds = %78, %72
%85 = load ptr, ptr %7, align 8
%86 = getelementptr inbounds i8, ptr %85, i64 1
%87 = load i8, ptr %86, align 1
%88 = sext i8 %87 to i32
%89 = icmp sge i32 %88, 97
br i1 %89, label %90, label %102
90: ; preds = %84
%91 = load ptr, ptr %7, align 8
%92 = getelementptr inbounds i8, ptr %91, i64 1
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = icmp sle i32 %94, 102
br i1 %95, label %96, label %102
96: ; preds = %90, %78, %66
%97 = load ptr, ptr %7, align 8
%98 = getelementptr inbounds i8, ptr %97, i64 1
%99 = load i8, ptr %98, align 1
store i8 %99, ptr %9, align 1
%100 = load ptr, ptr %7, align 8
%101 = getelementptr inbounds i8, ptr %100, i64 2
store ptr %101, ptr %7, align 8
store i32 16, ptr %6, align 4
br label %102
102: ; preds = %96, %90, %84, %55, %46, %43
%103 = load i32, ptr %6, align 4
%104 = icmp eq i32 %103, 0
br i1 %104, label %105, label %111
105: ; preds = %102
%106 = load i8, ptr %9, align 1
%107 = sext i8 %106 to i32
%108 = icmp eq i32 %107, 48
%109 = zext i1 %108 to i64
%110 = select i1 %108, i32 8, i32 10
store i32 %110, ptr %6, align 4
br label %111
111: ; preds = %105, %102
store i32 0, ptr %12, align 4
store i64 0, ptr %8, align 8
%112 = load i32, ptr %6, align 4
%113 = icmp slt i32 %112, 2
br i1 %113, label %117, label %114
114: ; preds = %111
%115 = load i32, ptr %6, align 4
%116 = icmp sgt i32 %115, 36
br i1 %116, label %117, label %118
117: ; preds = %114, %111
br label %237
118: ; preds = %114
%119 = load i32, ptr %11, align 4
%120 = icmp ne i32 %119, 0
br i1 %120, label %121, label %128
121: ; preds = %118
%122 = load i64, ptr @LLONG_MIN, align 8
%123 = load i64, ptr @LLONG_MAX, align 8
%124 = add i64 %122, %123
%125 = sub i64 0, %124
%126 = load i64, ptr @LLONG_MAX, align 8
%127 = add i64 %125, %126
br label %130
128: ; preds = %118
%129 = load i64, ptr @LLONG_MAX, align 8
br label %130
130: ; preds = %128, %121
%131 = phi i64 [ %127, %121 ], [ %129, %128 ]
store i64 %131, ptr %10, align 8
%132 = load i64, ptr %10, align 8
%133 = load i32, ptr %6, align 4
%134 = sext i32 %133 to i64
%135 = urem i64 %132, %134
%136 = trunc i64 %135 to i32
store i32 %136, ptr %13, align 4
%137 = load i32, ptr %6, align 4
%138 = sext i32 %137 to i64
%139 = load i64, ptr %10, align 8
%140 = udiv i64 %139, %138
store i64 %140, ptr %10, align 8
br label %141
141: ; preds = %216, %130
%142 = load i8, ptr %9, align 1
%143 = sext i8 %142 to i32
%144 = icmp sge i32 %143, 48
br i1 %144, label %145, label %154
145: ; preds = %141
%146 = load i8, ptr %9, align 1
%147 = sext i8 %146 to i32
%148 = icmp sle i32 %147, 57
br i1 %148, label %149, label %154
149: ; preds = %145
%150 = load i8, ptr %9, align 1
%151 = sext i8 %150 to i32
%152 = sub nsw i32 %151, 48
%153 = trunc i32 %152 to i8
store i8 %153, ptr %9, align 1
br label %183
154: ; preds = %145, %141
%155 = load i8, ptr %9, align 1
%156 = sext i8 %155 to i32
%157 = icmp sge i32 %156, 65
br i1 %157, label %158, label %167
158: ; preds = %154
%159 = load i8, ptr %9, align 1
%160 = sext i8 %159 to i32
%161 = icmp sle i32 %160, 90
br i1 %161, label %162, label %167
162: ; preds = %158
%163 = load i8, ptr %9, align 1
%164 = sext i8 %163 to i32
%165 = sub nsw i32 %164, 55
%166 = trunc i32 %165 to i8
store i8 %166, ptr %9, align 1
br label %182
167: ; preds = %158, %154
%168 = load i8, ptr %9, align 1
%169 = sext i8 %168 to i32
%170 = icmp sge i32 %169, 97
br i1 %170, label %171, label %180
171: ; preds = %167
%172 = load i8, ptr %9, align 1
%173 = sext i8 %172 to i32
%174 = icmp sle i32 %173, 122
br i1 %174, label %175, label %180
175: ; preds = %171
%176 = load i8, ptr %9, align 1
%177 = sext i8 %176 to i32
%178 = sub nsw i32 %177, 87
%179 = trunc i32 %178 to i8
store i8 %179, ptr %9, align 1
br label %181
180: ; preds = %171, %167
br label %220
181: ; preds = %175
br label %182
182: ; preds = %181, %162
br label %183
183: ; preds = %182, %149
%184 = load i8, ptr %9, align 1
%185 = sext i8 %184 to i32
%186 = load i32, ptr %6, align 4
%187 = icmp sge i32 %185, %186
br i1 %187, label %188, label %189
188: ; preds = %183
br label %220
189: ; preds = %183
%190 = load i32, ptr %12, align 4
%191 = icmp slt i32 %190, 0
br i1 %191, label %205, label %192
192: ; preds = %189
%193 = load i64, ptr %8, align 8
%194 = load i64, ptr %10, align 8
%195 = icmp ugt i64 %193, %194
br i1 %195, label %205, label %196
196: ; preds = %192
%197 = load i64, ptr %8, align 8
%198 = load i64, ptr %10, align 8
%199 = icmp eq i64 %197, %198
br i1 %199, label %200, label %206
200: ; preds = %196
%201 = load i8, ptr %9, align 1
%202 = sext i8 %201 to i32
%203 = load i32, ptr %13, align 4
%204 = icmp sgt i32 %202, %203
br i1 %204, label %205, label %206
205: ; preds = %200, %192, %189
store i32 -1, ptr %12, align 4
br label %215
206: ; preds = %200, %196
store i32 1, ptr %12, align 4
%207 = load i32, ptr %6, align 4
%208 = sext i32 %207 to i64
%209 = load i64, ptr %8, align 8
%210 = mul i64 %209, %208
store i64 %210, ptr %8, align 8
%211 = load i8, ptr %9, align 1
%212 = sext i8 %211 to i64
%213 = load i64, ptr %8, align 8
%214 = add i64 %213, %212
store i64 %214, ptr %8, align 8
br label %215
215: ; preds = %206, %205
br label %216
216: ; preds = %215
%217 = load ptr, ptr %7, align 8
%218 = getelementptr inbounds i8, ptr %217, i32 1
store ptr %218, ptr %7, align 8
%219 = load i8, ptr %217, align 1
store i8 %219, ptr %9, align 1
br label %141
220: ; preds = %188, %180
%221 = load i32, ptr %12, align 4
%222 = icmp slt i32 %221, 0
br i1 %222, label %223, label %233
223: ; preds = %220
%224 = load i32, ptr %11, align 4
%225 = icmp ne i32 %224, 0
br i1 %225, label %226, label %228
226: ; preds = %223
%227 = load i64, ptr @LLONG_MIN, align 8
br label %230
228: ; preds = %223
%229 = load i64, ptr @LLONG_MAX, align 8
br label %230
230: ; preds = %228, %226
%231 = phi i64 [ %227, %226 ], [ %229, %228 ]
store i64 %231, ptr %8, align 8
%232 = load i32, ptr @ERANGE, align 4
store i32 %232, ptr @errno, align 4
br label %247
233: ; preds = %220
%234 = load i32, ptr %12, align 4
%235 = icmp ne i32 %234, 0
br i1 %235, label %239, label %236
236: ; preds = %233
br label %237
237: ; preds = %236, %117
%238 = load i32, ptr @EINVAL, align 4
store i32 %238, ptr @errno, align 4
br label %246
239: ; preds = %233
%240 = load i32, ptr %11, align 4
%241 = icmp ne i32 %240, 0
br i1 %241, label %242, label %245
242: ; preds = %239
%243 = load i64, ptr %8, align 8
%244 = sub i64 0, %243
store i64 %244, ptr %8, align 8
br label %245
245: ; preds = %242, %239
br label %246
246: ; preds = %245, %237
br label %247
247: ; preds = %246, %230
%248 = load ptr, ptr %5, align 8
%249 = icmp ne ptr %248, null
br i1 %249, label %250, label %261
250: ; preds = %247
%251 = load i32, ptr %12, align 4
%252 = icmp ne i32 %251, 0
br i1 %252, label %253, label %256
253: ; preds = %250
%254 = load ptr, ptr %7, align 8
%255 = getelementptr inbounds i8, ptr %254, i64 -1
br label %258
256: ; preds = %250
%257 = load ptr, ptr %4, align 8
br label %258
258: ; preds = %256, %253
%259 = phi ptr [ %255, %253 ], [ %257, %256 ]
%260 = load ptr, ptr %5, align 8
store ptr %259, ptr %260, align 8
br label %261
261: ; preds = %258, %247
%262 = load i64, ptr %8, align 8
ret i64 %262
}
declare i64 @isspace(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp6ifji00z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LLONG_MIN = dso_local global i64 0, align 8
@LLONG_MAX = dso_local global i64 0, align 8
@ERANGE = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@EINVAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strtoll(ptr noalias noundef %0, ptr noalias noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i8, align 1
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%14 = load ptr, ptr %4, align 8
store ptr %14, ptr %7, align 8
br label %15
15: ; preds = %19, %3
%16 = load ptr, ptr %7, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %7, align 8
%18 = load i8, ptr %16, align 1
store i8 %18, ptr %9, align 1
br label %19
19: ; preds = %15
%20 = load i8, ptr %9, align 1
%21 = call i64 @isspace(i8 noundef zeroext %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %15, label %23, !llvm.loop !6
23: ; preds = %19
%24 = load i8, ptr %9, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 45
br i1 %26, label %27, label %31
27: ; preds = %23
store i32 1, ptr %11, align 4
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %7, align 8
%30 = load i8, ptr %28, align 1
store i8 %30, ptr %9, align 1
br label %40
31: ; preds = %23
store i32 0, ptr %11, align 4
%32 = load i8, ptr %9, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 43
br i1 %34, label %35, label %39
35: ; preds = %31
%36 = load ptr, ptr %7, align 8
%37 = getelementptr inbounds i8, ptr %36, i32 1
store ptr %37, ptr %7, align 8
%38 = load i8, ptr %36, align 1
store i8 %38, ptr %9, align 1
br label %39
39: ; preds = %35, %31
br label %40
40: ; preds = %39, %27
%41 = load i32, ptr %6, align 4
%42 = icmp eq i32 %41, 0
br i1 %42, label %46, label %43
43: ; preds = %40
%44 = load i32, ptr %6, align 4
%45 = icmp eq i32 %44, 16
br i1 %45, label %46, label %102
46: ; preds = %43, %40
%47 = load i8, ptr %9, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 48
br i1 %49, label %50, label %102
50: ; preds = %46
%51 = load ptr, ptr %7, align 8
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 120
br i1 %54, label %60, label %55
55: ; preds = %50
%56 = load ptr, ptr %7, align 8
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 88
br i1 %59, label %60, label %102
60: ; preds = %55, %50
%61 = load ptr, ptr %7, align 8
%62 = getelementptr inbounds i8, ptr %61, i64 1
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp sge i32 %64, 48
br i1 %65, label %66, label %72
66: ; preds = %60
%67 = load ptr, ptr %7, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 1
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = icmp sle i32 %70, 57
br i1 %71, label %96, label %72
72: ; preds = %66, %60
%73 = load ptr, ptr %7, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 1
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = icmp sge i32 %76, 65
br i1 %77, label %78, label %84
78: ; preds = %72
%79 = load ptr, ptr %7, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 1
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp sle i32 %82, 70
br i1 %83, label %96, label %84
84: ; preds = %78, %72
%85 = load ptr, ptr %7, align 8
%86 = getelementptr inbounds i8, ptr %85, i64 1
%87 = load i8, ptr %86, align 1
%88 = sext i8 %87 to i32
%89 = icmp sge i32 %88, 97
br i1 %89, label %90, label %102
90: ; preds = %84
%91 = load ptr, ptr %7, align 8
%92 = getelementptr inbounds i8, ptr %91, i64 1
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = icmp sle i32 %94, 102
br i1 %95, label %96, label %102
96: ; preds = %90, %78, %66
%97 = load ptr, ptr %7, align 8
%98 = getelementptr inbounds i8, ptr %97, i64 1
%99 = load i8, ptr %98, align 1
store i8 %99, ptr %9, align 1
%100 = load ptr, ptr %7, align 8
%101 = getelementptr inbounds i8, ptr %100, i64 2
store ptr %101, ptr %7, align 8
store i32 16, ptr %6, align 4
br label %102
102: ; preds = %96, %90, %84, %55, %46, %43
%103 = load i32, ptr %6, align 4
%104 = icmp eq i32 %103, 0
br i1 %104, label %105, label %111
105: ; preds = %102
%106 = load i8, ptr %9, align 1
%107 = sext i8 %106 to i32
%108 = icmp eq i32 %107, 48
%109 = zext i1 %108 to i64
%110 = select i1 %108, i32 8, i32 10
store i32 %110, ptr %6, align 4
br label %111
111: ; preds = %105, %102
store i32 0, ptr %12, align 4
store i64 0, ptr %8, align 8
%112 = load i32, ptr %6, align 4
%113 = icmp slt i32 %112, 2
br i1 %113, label %117, label %114
114: ; preds = %111
%115 = load i32, ptr %6, align 4
%116 = icmp sgt i32 %115, 36
br i1 %116, label %117, label %118
117: ; preds = %114, %111
br label %237
118: ; preds = %114
%119 = load i32, ptr %11, align 4
%120 = icmp ne i32 %119, 0
br i1 %120, label %121, label %128
121: ; preds = %118
%122 = load i64, ptr @LLONG_MIN, align 8
%123 = load i64, ptr @LLONG_MAX, align 8
%124 = add i64 %122, %123
%125 = sub i64 0, %124
%126 = load i64, ptr @LLONG_MAX, align 8
%127 = add i64 %125, %126
br label %130
128: ; preds = %118
%129 = load i64, ptr @LLONG_MAX, align 8
br label %130
130: ; preds = %128, %121
%131 = phi i64 [ %127, %121 ], [ %129, %128 ]
store i64 %131, ptr %10, align 8
%132 = load i64, ptr %10, align 8
%133 = load i32, ptr %6, align 4
%134 = sext i32 %133 to i64
%135 = urem i64 %132, %134
%136 = trunc i64 %135 to i32
store i32 %136, ptr %13, align 4
%137 = load i32, ptr %6, align 4
%138 = sext i32 %137 to i64
%139 = load i64, ptr %10, align 8
%140 = udiv i64 %139, %138
store i64 %140, ptr %10, align 8
br label %141
141: ; preds = %216, %130
%142 = load i8, ptr %9, align 1
%143 = sext i8 %142 to i32
%144 = icmp sge i32 %143, 48
br i1 %144, label %145, label %154
145: ; preds = %141
%146 = load i8, ptr %9, align 1
%147 = sext i8 %146 to i32
%148 = icmp sle i32 %147, 57
br i1 %148, label %149, label %154
149: ; preds = %145
%150 = load i8, ptr %9, align 1
%151 = sext i8 %150 to i32
%152 = sub nsw i32 %151, 48
%153 = trunc i32 %152 to i8
store i8 %153, ptr %9, align 1
br label %183
154: ; preds = %145, %141
%155 = load i8, ptr %9, align 1
%156 = sext i8 %155 to i32
%157 = icmp sge i32 %156, 65
br i1 %157, label %158, label %167
158: ; preds = %154
%159 = load i8, ptr %9, align 1
%160 = sext i8 %159 to i32
%161 = icmp sle i32 %160, 90
br i1 %161, label %162, label %167
162: ; preds = %158
%163 = load i8, ptr %9, align 1
%164 = sext i8 %163 to i32
%165 = sub nsw i32 %164, 55
%166 = trunc i32 %165 to i8
store i8 %166, ptr %9, align 1
br label %182
167: ; preds = %158, %154
%168 = load i8, ptr %9, align 1
%169 = sext i8 %168 to i32
%170 = icmp sge i32 %169, 97
br i1 %170, label %171, label %180
171: ; preds = %167
%172 = load i8, ptr %9, align 1
%173 = sext i8 %172 to i32
%174 = icmp sle i32 %173, 122
br i1 %174, label %175, label %180
175: ; preds = %171
%176 = load i8, ptr %9, align 1
%177 = sext i8 %176 to i32
%178 = sub nsw i32 %177, 87
%179 = trunc i32 %178 to i8
store i8 %179, ptr %9, align 1
br label %181
180: ; preds = %171, %167
br label %220
181: ; preds = %175
br label %182
182: ; preds = %181, %162
br label %183
183: ; preds = %182, %149
%184 = load i8, ptr %9, align 1
%185 = sext i8 %184 to i32
%186 = load i32, ptr %6, align 4
%187 = icmp sge i32 %185, %186
br i1 %187, label %188, label %189
188: ; preds = %183
br label %220
189: ; preds = %183
%190 = load i32, ptr %12, align 4
%191 = icmp slt i32 %190, 0
br i1 %191, label %205, label %192
192: ; preds = %189
%193 = load i64, ptr %8, align 8
%194 = load i64, ptr %10, align 8
%195 = icmp ugt i64 %193, %194
br i1 %195, label %205, label %196
196: ; preds = %192
%197 = load i64, ptr %8, align 8
%198 = load i64, ptr %10, align 8
%199 = icmp eq i64 %197, %198
br i1 %199, label %200, label %206
200: ; preds = %196
%201 = load i8, ptr %9, align 1
%202 = sext i8 %201 to i32
%203 = load i32, ptr %13, align 4
%204 = icmp sgt i32 %202, %203
br i1 %204, label %205, label %206
205: ; preds = %200, %192, %189
store i32 -1, ptr %12, align 4
br label %215
206: ; preds = %200, %196
store i32 1, ptr %12, align 4
%207 = load i32, ptr %6, align 4
%208 = sext i32 %207 to i64
%209 = load i64, ptr %8, align 8
%210 = mul i64 %209, %208
store i64 %210, ptr %8, align 8
%211 = load i8, ptr %9, align 1
%212 = sext i8 %211 to i64
%213 = load i64, ptr %8, align 8
%214 = add i64 %213, %212
store i64 %214, ptr %8, align 8
br label %215
215: ; preds = %206, %205
br label %216
216: ; preds = %215
%217 = load ptr, ptr %7, align 8
%218 = getelementptr inbounds i8, ptr %217, i32 1
store ptr %218, ptr %7, align 8
%219 = load i8, ptr %217, align 1
store i8 %219, ptr %9, align 1
br label %141
220: ; preds = %188, %180
%221 = load i32, ptr %12, align 4
%222 = icmp slt i32 %221, 0
br i1 %222, label %223, label %233
223: ; preds = %220
%224 = load i32, ptr %11, align 4
%225 = icmp ne i32 %224, 0
br i1 %225, label %226, label %228
226: ; preds = %223
%227 = load i64, ptr @LLONG_MIN, align 8
br label %230
228: ; preds = %223
%229 = load i64, ptr @LLONG_MAX, align 8
br label %230
230: ; preds = %228, %226
%231 = phi i64 [ %227, %226 ], [ %229, %228 ]
store i64 %231, ptr %8, align 8
%232 = load i32, ptr @ERANGE, align 4
store i32 %232, ptr @errno, align 4
br label %247
233: ; preds = %220
%234 = load i32, ptr %12, align 4
%235 = icmp ne i32 %234, 0
br i1 %235, label %239, label %236
236: ; preds = %233
br label %237
237: ; preds = %236, %117
%238 = load i32, ptr @EINVAL, align 4
store i32 %238, ptr @errno, align 4
br label %246
239: ; preds = %233
%240 = load i32, ptr %11, align 4
%241 = icmp ne i32 %240, 0
br i1 %241, label %242, label %245
242: ; preds = %239
%243 = load i64, ptr %8, align 8
%244 = sub i64 0, %243
store i64 %244, ptr %8, align 8
br label %245
245: ; preds = %242, %239
br label %246
246: ; preds = %245, %237
br label %247
247: ; preds = %246, %230
%248 = load ptr, ptr %5, align 8
%249 = icmp ne ptr %248, null
br i1 %249, label %250, label %261
250: ; preds = %247
%251 = load i32, ptr %12, align 4
%252 = icmp ne i32 %251, 0
br i1 %252, label %253, label %256
253: ; preds = %250
%254 = load ptr, ptr %7, align 8
%255 = getelementptr inbounds i8, ptr %254, i64 -1
br label %258
256: ; preds = %250
%257 = load ptr, ptr %4, align 8
br label %258
258: ; preds = %256, %253
%259 = phi ptr [ %255, %253 ], [ %257, %256 ]
%260 = load ptr, ptr %5, align 8
store ptr %259, ptr %260, align 8
br label %261
261: ; preds = %258, %247
%262 = load i64, ptr %8, align 8
ret i64 %262
}
declare i64 @isspace(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp8ifk6985.c'
source_filename = "/tmp/tmp8ifk6985.c"
target datalayout = "e-m:e-p270: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 @get_time_data(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, ptr %3, align 4
%8 = icmp sgt i32 %7, 10
br i1 %8, label %9, label %10
9: ; preds = %6, %1
store i32 -1, ptr %2, align 4
br label %14
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = call i32 @_get_rtc_data(i32 noundef %11)
%13 = call i32 @bcd_to_normal(i32 noundef %12)
store i32 %13, ptr %2, align 4
br label %14
14: ; preds = %10, %9
%15 = load i32, ptr %2, align 4
ret i32 %15
}
declare i32 @bcd_to_normal(i32 noundef) #1
declare i32 @_get_rtc_data(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8ifk6985.c"
target datalayout = "e-m:e-p270: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 @get_time_data(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, ptr %3, align 4
%8 = icmp sgt i32 %7, 10
br i1 %8, label %9, label %10
9: ; preds = %6, %1
store i32 -1, ptr %2, align 4
br label %14
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = call i32 @_get_rtc_data(i32 noundef %11)
%13 = call i32 @bcd_to_normal(i32 noundef %12)
store i32 %13, ptr %2, align 4
br label %14
14: ; preds = %10, %9
%15 = load i32, ptr %2, align 4
ret i32 %15
}
declare i32 @bcd_to_normal(i32 noundef) #1
declare i32 @_get_rtc_data(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4wi5y6fa.c'
source_filename = "/tmp/tmp4wi5y6fa.c"
target datalayout = "e-m:e-p270: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 { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XEvent_xmotion_state(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%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 i32 %5, ptr %8, align 4
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/tmp4wi5y6fa.c"
target datalayout = "e-m:e-p270: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 { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XEvent_xmotion_state(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%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 i32 %5, ptr %8, align 4
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/tmpl0560b1q.c'
source_filename = "/tmp/tmpl0560b1q.c"
target datalayout = "e-m:e-p270: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_2__ = type { ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_pw_gecos(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call ptr @getpwuid(i32 noundef %3)
%5 = getelementptr inbounds %struct.TYPE_2__, ptr %4, i32 0, i32 0
%6 = load ptr, ptr %5, align 8
ret ptr %6
}
declare ptr @getpwuid(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/tmpl0560b1q.c"
target datalayout = "e-m:e-p270: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_2__ = type { ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_pw_gecos(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call ptr @getpwuid(i32 noundef %3)
%5 = getelementptr inbounds %struct.TYPE_2__, ptr %4, i32 0, i32 0
%6 = load ptr, ptr %5, align 8
ret ptr %6
}
declare ptr @getpwuid(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/tmprbe4l2m1.c'
source_filename = "/tmp/tmprbe4l2m1.c"
target datalayout = "e-m:e-p270: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/tmprbe4l2m1.c"
target datalayout = "e-m:e-p270: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/tmp1308ud73.c'
source_filename = "/tmp/tmp1308ud73.c"
target datalayout = "e-m:e-p270: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/tmp1308ud73.c"
target datalayout = "e-m:e-p270: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/tmp9sxb4g23.c'
source_filename = "/tmp/tmp9sxb4g23.c"
target datalayout = "e-m:e-p270: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 @road_freeedge(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp eq i32 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 0, ptr %3, align 4
br label %84
14: ; preds = %2
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = load i32, ptr %4, align 4
br label %22
20: ; preds = %14
%21 = load i32, ptr %5, align 4
br label %22
22: ; preds = %20, %18
%23 = phi i32 [ %19, %18 ], [ %21, %20 ]
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %4, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp sgt i32 %24, %25
br i1 %26, label %27, label %29
27: ; preds = %22
%28 = load i32, ptr %4, align 4
br label %31
29: ; preds = %22
%30 = load i32, ptr %5, align 4
br label %31
31: ; preds = %29, %27
%32 = phi i32 [ %28, %27 ], [ %30, %29 ]
store i32 %32, ptr %5, align 4
%33 = load i32, ptr %6, align 4
store i32 %33, ptr %4, align 4
%34 = load i32, ptr %4, align 4
%35 = load i32, ptr %5, align 4
%36 = call i32 @road_areadjacent(i32 noundef %34, i32 noundef %35)
%37 = icmp ne i32 %36, 0
br i1 %37, label %39, label %38
38: ; preds = %31
store i32 0, ptr %3, align 4
br label %84
39: ; preds = %31
store i32 0, ptr %7, align 4
br label %40
40: ; preds = %80, %39
%41 = load i32, ptr %7, align 4
%42 = icmp slt i32 %41, 4
br i1 %42, label %43, label %83
43: ; preds = %40
store i32 0, ptr %8, align 4
br label %44
44: ; preds = %76, %43
%45 = load i32, ptr %8, align 4
%46 = icmp slt i32 %45, 15
br i1 %46, label %47, label %79
47: ; preds = %44
%48 = load i32, ptr %7, align 4
%49 = load i32, ptr %8, align 4
%50 = call ptr @data_getroad(i32 noundef %48, i32 noundef %49)
store ptr %50, ptr %9, align 8
%51 = load ptr, ptr %9, align 8
%52 = getelementptr inbounds i32, ptr %51, i64 0
%53 = load i32, ptr %52, align 4
%54 = load i32, ptr %4, align 4
%55 = icmp eq i32 %53, %54
br i1 %55, label %56, label %62
56: ; preds = %47
%57 = load ptr, ptr %9, align 8
%58 = getelementptr inbounds i32, ptr %57, i64 1
%59 = load i32, ptr %58, align 4
%60 = load i32, ptr %5, align 4
%61 = icmp eq i32 %59, %60
br i1 %61, label %74, label %62
62: ; preds = %56, %47
%63 = load ptr, ptr %9, align 8
%64 = getelementptr inbounds i32, ptr %63, i64 1
%65 = load i32, ptr %64, align 4
%66 = load i32, ptr %4, align 4
%67 = icmp eq i32 %65, %66
br i1 %67, label %68, label %75
68: ; preds = %62
%69 = load ptr, ptr %9, align 8
%70 = getelementptr inbounds i32, ptr %69, i64 0
%71 = load i32, ptr %70, align 4
%72 = load i32, ptr %5, align 4
%73 = icmp eq i32 %71, %72
br i1 %73, label %74, label %75
74: ; preds = %68, %56
store i32 0, ptr %3, align 4
br label %84
75: ; preds = %68, %62
br label %76
76: ; preds = %75
%77 = load i32, ptr %8, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %8, align 4
br label %44, !llvm.loop !6
79: ; preds = %44
br label %80
80: ; preds = %79
%81 = load i32, ptr %7, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %7, align 4
br label %40, !llvm.loop !8
83: ; preds = %40
store i32 1, ptr %3, align 4
br label %84
84: ; preds = %83, %74, %38, %13
%85 = load i32, ptr %3, align 4
ret i32 %85
}
declare i32 @road_areadjacent(i32 noundef, i32 noundef) #1
declare ptr @data_getroad(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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9sxb4g23.c"
target datalayout = "e-m:e-p270: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 @road_freeedge(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp eq i32 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 0, ptr %3, align 4
br label %86
14: ; preds = %2
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = load i32, ptr %4, align 4
br label %22
20: ; preds = %14
%21 = load i32, ptr %5, align 4
br label %22
22: ; preds = %20, %18
%23 = phi i32 [ %19, %18 ], [ %21, %20 ]
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %4, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp sgt i32 %24, %25
br i1 %26, label %27, label %29
27: ; preds = %22
%28 = load i32, ptr %4, align 4
br label %31
29: ; preds = %22
%30 = load i32, ptr %5, align 4
br label %31
31: ; preds = %29, %27
%32 = phi i32 [ %28, %27 ], [ %30, %29 ]
store i32 %32, ptr %5, align 4
%33 = load i32, ptr %6, align 4
store i32 %33, ptr %4, align 4
%34 = load i32, ptr %4, align 4
%35 = load i32, ptr %5, align 4
%36 = call i32 @road_areadjacent(i32 noundef %34, i32 noundef %35)
%37 = icmp ne i32 %36, 0
br i1 %37, label %39, label %38
38: ; preds = %31
store i32 0, ptr %3, align 4
br label %86
39: ; preds = %31
store i32 0, ptr %7, align 4
%40 = load i32, ptr %7, align 4
%41 = icmp slt i32 %40, 4
br i1 %41, label %.lr.ph2, label %85
.lr.ph2: ; preds = %39
br label %42
42: ; preds = %.lr.ph2, %80
store i32 0, ptr %8, align 4
%43 = load i32, ptr %8, align 4
%44 = icmp slt i32 %43, 15
br i1 %44, label %.lr.ph, label %79
.lr.ph: ; preds = %42
br label %45
45: ; preds = %.lr.ph, %74
%46 = load i32, ptr %7, align 4
%47 = load i32, ptr %8, align 4
%48 = call ptr @data_getroad(i32 noundef %46, i32 noundef %47)
store ptr %48, ptr %9, align 8
%49 = load ptr, ptr %9, align 8
%50 = getelementptr inbounds i32, ptr %49, i64 0
%51 = load i32, ptr %50, align 4
%52 = load i32, ptr %4, align 4
%53 = icmp eq i32 %51, %52
br i1 %53, label %54, label %60
54: ; preds = %45
%55 = load ptr, ptr %9, align 8
%56 = getelementptr inbounds i32, ptr %55, i64 1
%57 = load i32, ptr %56, align 4
%58 = load i32, ptr %5, align 4
%59 = icmp eq i32 %57, %58
br i1 %59, label %72, label %60
60: ; preds = %54, %45
%61 = load ptr, ptr %9, align 8
%62 = getelementptr inbounds i32, ptr %61, i64 1
%63 = load i32, ptr %62, align 4
%64 = load i32, ptr %4, align 4
%65 = icmp eq i32 %63, %64
br i1 %65, label %66, label %73
66: ; preds = %60
%67 = load ptr, ptr %9, align 8
%68 = getelementptr inbounds i32, ptr %67, i64 0
%69 = load i32, ptr %68, align 4
%70 = load i32, ptr %5, align 4
%71 = icmp eq i32 %69, %70
br i1 %71, label %72, label %73
72: ; preds = %66, %54
store i32 0, ptr %3, align 4
br label %86
73: ; preds = %66, %60
br label %74
74: ; preds = %73
%75 = load i32, ptr %8, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %8, align 4
%77 = load i32, ptr %8, align 4
%78 = icmp slt i32 %77, 15
br i1 %78, label %45, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %74
br label %79
79: ; preds = %._crit_edge, %42
br label %80
80: ; preds = %79
%81 = load i32, ptr %7, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %7, align 4
%83 = load i32, ptr %7, align 4
%84 = icmp slt i32 %83, 4
br i1 %84, label %42, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %80
br label %85
85: ; preds = %._crit_edge3, %39
store i32 1, ptr %3, align 4
br label %86
86: ; preds = %85, %72, %38, %13
%87 = load i32, ptr %3, align 4
ret i32 %87
}
declare i32 @road_areadjacent(i32 noundef, i32 noundef) #1
declare ptr @data_getroad(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}
|
; ModuleID = '/tmp/tmplmhe90bc.c'
source_filename = "/tmp/tmplmhe90bc.c"
target datalayout = "e-m:e-p270: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 @func_tzmsk64(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 i64 @__tzmsk_u64(i64 noundef %3)
ret i64 %4
}
declare i64 @__tzmsk_u64(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/tmplmhe90bc.c"
target datalayout = "e-m:e-p270: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 @func_tzmsk64(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 i64 @__tzmsk_u64(i64 noundef %3)
ret i64 %4
}
declare i64 @__tzmsk_u64(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/tmpbl1n47h5.c'
source_filename = "/tmp/tmpbl1n47h5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @scalanative_libc_seek_set() #0 {
%1 = load i32, ptr @SEEK_SET, 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/tmpbl1n47h5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @scalanative_libc_seek_set() #0 {
%1 = load i32, ptr @SEEK_SET, 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/tmpb9bmzinj.c'
source_filename = "/tmp/tmpb9bmzinj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"%d=%d-%d*%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"gcd(%d,%d)=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 25, ptr %2, align 4
store i32 8, ptr %3, align 4
%9 = load i32, ptr %2, align 4
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %3, align 4
store i32 %10, ptr %5, align 4
br label %11
11: ; preds = %0, %31
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %5, align 4
%14 = sdiv i32 %12, %13
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %7, align 4
%18 = mul nsw i32 %16, %17
%19 = sub nsw i32 %15, %18
store i32 %19, ptr %8, align 4
%20 = load i32, ptr %8, align 4
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %7, align 4
%24 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %20, i32 noundef %21, i32 noundef %22, i32 noundef %23)
%25 = load i32, ptr %5, align 4
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %8, align 4
store i32 %26, ptr %5, align 4
%27 = load i32, ptr %8, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %11
%30 = load i32, ptr %4, align 4
store i32 %30, ptr %6, align 4
br label %32
31: ; preds = %11
br label %11
32: ; preds = %29
%33 = load i32, ptr %2, align 4
%34 = load i32, ptr %3, align 4
%35 = load i32, ptr %6, align 4
%36 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %33, i32 noundef %34, i32 noundef %35)
ret i32 0
}
declare i32 @printf(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb9bmzinj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"%d=%d-%d*%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"gcd(%d,%d)=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 25, ptr %2, align 4
store i32 8, ptr %3, align 4
%9 = load i32, ptr %2, align 4
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %3, align 4
store i32 %10, ptr %5, align 4
br label %11
11: ; preds = %11, %0
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %5, align 4
%14 = sdiv i32 %12, %13
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %7, align 4
%18 = mul nsw i32 %16, %17
%19 = sub nsw i32 %15, %18
store i32 %19, ptr %8, align 4
%20 = load i32, ptr %8, align 4
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %7, align 4
%24 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %20, i32 noundef %21, i32 noundef %22, i32 noundef %23)
%25 = load i32, ptr %5, align 4
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %8, align 4
store i32 %26, ptr %5, align 4
%27 = load i32, ptr %8, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %11
29: ; preds = %11
%30 = load i32, ptr %4, align 4
store i32 %30, ptr %6, align 4
br label %31
31: ; preds = %29
%32 = load i32, ptr %2, align 4
%33 = load i32, ptr %3, align 4
%34 = load i32, ptr %6, align 4
%35 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %32, i32 noundef %33, i32 noundef %34)
ret i32 0
}
declare i32 @printf(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"}
|
; ModuleID = '/tmp/tmpc0wlozwy.c'
source_filename = "/tmp/tmpc0wlozwy.c"
target datalayout = "e-m:e-p270: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/tmpc0wlozwy.c"
target datalayout = "e-m:e-p270: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/tmp7t_umffl.c'
source_filename = "/tmp/tmp7t_umffl.c"
target datalayout = "e-m:e-p270: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/tmp7t_umffl.c"
target datalayout = "e-m:e-p270: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/tmp0yyqoorj.c'
source_filename = "/tmp/tmp0yyqoorj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.arr = private unnamed_addr constant [9 x i32] [i32 122, i32 25, i32 42, i32 543, i32 87, i32 31, i32 901, i32 20, i32 399], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [9 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arr, i64 36, i1 false)
store i32 9, ptr %3, align 4
%4 = getelementptr inbounds [9 x i32], ptr %2, i64 0, i64 0
%5 = load i32, ptr %3, align 4
%6 = call i32 @println(ptr noundef %4, i32 noundef %5)
%7 = getelementptr inbounds [9 x i32], ptr %2, i64 0, i64 0
%8 = load i32, ptr %3, align 4
%9 = call i32 @bubble_sort(ptr noundef %7, i32 noundef %8)
%10 = getelementptr inbounds [9 x i32], ptr %2, i64 0, i64 0
%11 = load i32, ptr %3, align 4
%12 = call i32 @println(ptr noundef %10, i32 noundef %11)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @println(ptr noundef, i32 noundef) #2
declare i32 @bubble_sort(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree 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/tmp0yyqoorj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.arr = private unnamed_addr constant [9 x i32] [i32 122, i32 25, i32 42, i32 543, i32 87, i32 31, i32 901, i32 20, i32 399], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [9 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arr, i64 36, i1 false)
store i32 9, ptr %3, align 4
%4 = getelementptr inbounds [9 x i32], ptr %2, i64 0, i64 0
%5 = load i32, ptr %3, align 4
%6 = call i32 @println(ptr noundef %4, i32 noundef %5)
%7 = getelementptr inbounds [9 x i32], ptr %2, i64 0, i64 0
%8 = load i32, ptr %3, align 4
%9 = call i32 @bubble_sort(ptr noundef %7, i32 noundef %8)
%10 = getelementptr inbounds [9 x i32], ptr %2, i64 0, i64 0
%11 = load i32, ptr %3, align 4
%12 = call i32 @println(ptr noundef %10, i32 noundef %11)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @println(ptr noundef, i32 noundef) #2
declare i32 @bubble_sort(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree 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/tmpygu5q29g.c'
source_filename = "/tmp/tmpygu5q29g.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i32, i32, ptr, i32, i32, i32, i32 }
@AI_PASSIVE = dso_local global i32 0, align 4
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@IPPROTO_UDP = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"getaddrinfo(): %s\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"socket()\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @socket_udp_connect(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca %struct.addrinfo, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%13 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 32)
%14 = load i32, ptr @AI_PASSIVE, align 4
%15 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 6
store i32 %14, ptr %15, align 4
%16 = load i32, ptr @AF_UNSPEC, align 4
%17 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 5
store i32 %16, ptr %17, align 8
%18 = load i32, ptr @SOCK_DGRAM, align 4
%19 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 4
store i32 %18, ptr %19, align 4
%20 = load i32, ptr @IPPROTO_UDP, align 4
%21 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 3
store i32 %20, ptr %21, align 8
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %6, align 8
%24 = call i32 @getaddrinfo(ptr noundef %22, ptr noundef %23, ptr noundef %8, ptr noundef %9)
store i32 %24, ptr %11, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %3
%27 = load i32, ptr @stderr, align 4
%28 = load i32, ptr %11, align 4
%29 = call ptr @gai_strerror(i32 noundef %28)
%30 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str, ptr noundef %29)
store i32 -1, ptr %4, align 4
br label %63
31: ; preds = %3
%32 = load ptr, ptr %9, align 8
store ptr %32, ptr %10, align 8
br label %33
33: ; preds = %55, %31
%34 = load ptr, ptr %10, align 8
%35 = icmp ne ptr %34, null
br i1 %35, label %36, label %59
36: ; preds = %33
%37 = load ptr, ptr %10, align 8
%38 = call i32 @__socket(ptr noundef %37, i32 noundef 0, i32 noundef 0)
store i32 %38, ptr %12, align 4
%39 = icmp slt i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %36
%41 = call i32 @perror(ptr noundef @.str.1)
br label %55
42: ; preds = %36
%43 = load ptr, ptr %7, align 8
%44 = icmp ne ptr %43, null
br i1 %44, label %45, label %54
45: ; preds = %42
%46 = load ptr, ptr %7, align 8
%47 = load ptr, ptr %10, align 8
%48 = getelementptr inbounds %struct.addrinfo, ptr %47, i32 0, i32 1
%49 = load i32, ptr %48, align 4
%50 = load ptr, ptr %10, align 8
%51 = getelementptr inbounds %struct.addrinfo, ptr %50, i32 0, i32 0
%52 = load i32, ptr %51, align 8
%53 = call i32 @memcpy(ptr noundef %46, i32 noundef %49, i32 noundef %52)
br label %54
54: ; preds = %45, %42
br label %59
55: ; preds = %40
%56 = load ptr, ptr %10, align 8
%57 = getelementptr inbounds %struct.addrinfo, ptr %56, i32 0, i32 2
%58 = load ptr, ptr %57, align 8
store ptr %58, ptr %10, align 8
br label %33, !llvm.loop !6
59: ; preds = %54, %33
%60 = load ptr, ptr %9, align 8
%61 = call i32 @freeaddrinfo(ptr noundef %60)
%62 = load i32, ptr %12, align 4
store i32 %62, ptr %4, align 4
br label %63
63: ; preds = %59, %26
%64 = load i32, ptr %4, align 4
ret i32 %64
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @__socket(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @freeaddrinfo(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/tmpygu5q29g.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i32, i32, ptr, i32, i32, i32, i32 }
@AI_PASSIVE = dso_local global i32 0, align 4
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@IPPROTO_UDP = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"getaddrinfo(): %s\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"socket()\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @socket_udp_connect(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca %struct.addrinfo, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%13 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 32)
%14 = load i32, ptr @AI_PASSIVE, align 4
%15 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 6
store i32 %14, ptr %15, align 4
%16 = load i32, ptr @AF_UNSPEC, align 4
%17 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 5
store i32 %16, ptr %17, align 8
%18 = load i32, ptr @SOCK_DGRAM, align 4
%19 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 4
store i32 %18, ptr %19, align 4
%20 = load i32, ptr @IPPROTO_UDP, align 4
%21 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 3
store i32 %20, ptr %21, align 8
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %6, align 8
%24 = call i32 @getaddrinfo(ptr noundef %22, ptr noundef %23, ptr noundef %8, ptr noundef %9)
store i32 %24, ptr %11, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %3
%27 = load i32, ptr @stderr, align 4
%28 = load i32, ptr %11, align 4
%29 = call ptr @gai_strerror(i32 noundef %28)
%30 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str, ptr noundef %29)
store i32 -1, ptr %4, align 4
br label %64
31: ; preds = %3
%32 = load ptr, ptr %9, align 8
store ptr %32, ptr %10, align 8
%33 = load ptr, ptr %10, align 8
%34 = icmp ne ptr %33, null
br i1 %34, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %31
br label %35
35: ; preds = %.lr.ph, %54
%36 = load ptr, ptr %10, align 8
%37 = call i32 @__socket(ptr noundef %36, i32 noundef 0, i32 noundef 0)
store i32 %37, ptr %12, align 4
%38 = icmp slt i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %35
%40 = call i32 @perror(ptr noundef @.str.1)
br label %54
41: ; preds = %35
%42 = load ptr, ptr %7, align 8
%43 = icmp ne ptr %42, null
br i1 %43, label %44, label %53
44: ; preds = %41
%45 = load ptr, ptr %7, align 8
%46 = load ptr, ptr %10, align 8
%47 = getelementptr inbounds %struct.addrinfo, ptr %46, i32 0, i32 1
%48 = load i32, ptr %47, align 4
%49 = load ptr, ptr %10, align 8
%50 = getelementptr inbounds %struct.addrinfo, ptr %49, i32 0, i32 0
%51 = load i32, ptr %50, align 8
%52 = call i32 @memcpy(ptr noundef %45, i32 noundef %48, i32 noundef %51)
br label %53
53: ; preds = %44, %41
br label %60
54: ; preds = %39
%55 = load ptr, ptr %10, align 8
%56 = getelementptr inbounds %struct.addrinfo, ptr %55, i32 0, i32 2
%57 = load ptr, ptr %56, align 8
store ptr %57, ptr %10, align 8
%58 = load ptr, ptr %10, align 8
%59 = icmp ne ptr %58, null
br i1 %59, label %35, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %54
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %31
br label %60
60: ; preds = %.loopexit, %53
%61 = load ptr, ptr %9, align 8
%62 = call i32 @freeaddrinfo(ptr noundef %61)
%63 = load i32, ptr %12, align 4
store i32 %63, ptr %4, align 4
br label %64
64: ; preds = %60, %26
%65 = load i32, ptr %4, align 4
ret i32 %65
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @__socket(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @freeaddrinfo(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/tmplwzneojq.c'
source_filename = "/tmp/tmplwzneojq.c"
target datalayout = "e-m:e-p270: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/tmplwzneojq.c"
target datalayout = "e-m:e-p270: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/tmpzh5nq2tj.c'
source_filename = "/tmp/tmpzh5nq2tj.c"
target datalayout = "e-m:e-p270: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 @BackTracking(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %7, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %70
17: ; preds = %5
store i32 0, ptr %12, align 4
br label %18
18: ; preds = %66, %17
%19 = load i32, ptr %12, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %69
22: ; preds = %18
%23 = load i32, ptr %12, align 4
%24 = load ptr, ptr %10, align 8
%25 = load i32, ptr %11, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
store i32 %23, ptr %27, align 4
%28 = load i32, ptr %9, align 4
%29 = load i32, ptr %12, align 4
%30 = load ptr, ptr %8, align 8
%31 = load i32, ptr %7, align 4
%32 = call i64 @tahtayakoyulabilirmi(i32 noundef %28, i32 noundef %29, ptr noundef %30, i32 noundef %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %65
34: ; preds = %22
%35 = load ptr, ptr %8, align 8
%36 = load i32, ptr %9, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds ptr, ptr %35, i64 %37
%39 = load ptr, ptr %38, align 8
%40 = load i32, ptr %12, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
store i32 1, ptr %42, align 4
%43 = load i32, ptr %7, align 4
%44 = load ptr, ptr %8, align 8
%45 = load i32, ptr %9, align 4
%46 = add nsw i32 %45, 1
%47 = load ptr, ptr %10, align 8
%48 = load i32, ptr %11, align 4
%49 = add nsw i32 %48, 1
%50 = call i32 @BackTracking(i32 noundef %43, ptr noundef %44, i32 noundef %46, ptr noundef %47, i32 noundef %49)
store i32 %50, ptr %13, align 4
%51 = load i32, ptr %13, align 4
%52 = icmp eq i32 %51, 1
br i1 %52, label %53, label %55
53: ; preds = %34
%54 = load i32, ptr %13, align 4
store i32 %54, ptr %6, align 4
br label %71
55: ; preds = %34
%56 = load ptr, ptr %8, align 8
%57 = load i32, ptr %9, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds ptr, ptr %56, i64 %58
%60 = load ptr, ptr %59, align 8
%61 = load i32, ptr %12, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %60, i64 %62
store i32 0, ptr %63, align 4
br label %64
64: ; preds = %55
br label %65
65: ; preds = %64, %22
br label %66
66: ; preds = %65
%67 = load i32, ptr %12, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %12, align 4
br label %18, !llvm.loop !6
69: ; preds = %18
store i32 0, ptr %6, align 4
br label %71
70: ; preds = %5
store i32 1, ptr %6, align 4
br label %71
71: ; preds = %70, %69, %53
%72 = load i32, ptr %6, align 4
ret i32 %72
}
declare i64 @tahtayakoyulabilirmi(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzh5nq2tj.c"
target datalayout = "e-m:e-p270: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 @BackTracking(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %7, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %72
17: ; preds = %5
store i32 0, ptr %12, align 4
%18 = load i32, ptr %12, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %71
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %65
%22 = load i32, ptr %12, align 4
%23 = load ptr, ptr %10, align 8
%24 = load i32, ptr %11, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
store i32 %22, ptr %26, align 4
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr %12, align 4
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %7, align 4
%31 = call i64 @tahtayakoyulabilirmi(i32 noundef %27, i32 noundef %28, ptr noundef %29, i32 noundef %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %64
33: ; preds = %21
%34 = load ptr, ptr %8, align 8
%35 = load i32, ptr %9, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds ptr, ptr %34, i64 %36
%38 = load ptr, ptr %37, align 8
%39 = load i32, ptr %12, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
store i32 1, ptr %41, align 4
%42 = load i32, ptr %7, align 4
%43 = load ptr, ptr %8, align 8
%44 = load i32, ptr %9, align 4
%45 = add nsw i32 %44, 1
%46 = load ptr, ptr %10, align 8
%47 = load i32, ptr %11, align 4
%48 = add nsw i32 %47, 1
%49 = call i32 @BackTracking(i32 noundef %42, ptr noundef %43, i32 noundef %45, ptr noundef %46, i32 noundef %48)
store i32 %49, ptr %13, align 4
%50 = load i32, ptr %13, align 4
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %54
52: ; preds = %33
%53 = load i32, ptr %13, align 4
store i32 %53, ptr %6, align 4
br label %73
54: ; preds = %33
%55 = load ptr, ptr %8, align 8
%56 = load i32, ptr %9, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = load i32, ptr %12, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %59, i64 %61
store i32 0, ptr %62, align 4
br label %63
63: ; preds = %54
br label %64
64: ; preds = %63, %21
br label %65
65: ; preds = %64
%66 = load i32, ptr %12, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %12, align 4
%68 = load i32, ptr %12, align 4
%69 = load i32, ptr %7, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %65
br label %71
71: ; preds = %._crit_edge, %17
store i32 0, ptr %6, align 4
br label %73
72: ; preds = %5
store i32 1, ptr %6, align 4
br label %73
73: ; preds = %72, %71, %52
%74 = load i32, ptr %6, align 4
ret i32 %74
}
declare i64 @tahtayakoyulabilirmi(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqf_vss_6.c'
source_filename = "/tmp/tmpqf_vss_6.c"
target datalayout = "e-m:e-p270: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"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parse(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [64000 x i8], align 16
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @fopen(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
br label %25
10: ; preds = %1
br label %11
11: ; preds = %16, %10
%12 = load ptr, ptr %4, align 8
%13 = call i32 @feof(ptr noundef %12)
%14 = icmp ne i32 %13, 0
%15 = xor i1 %14, true
br i1 %15, label %16, label %22
16: ; preds = %11
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds [64000 x i8], ptr %3, i64 0, i64 0
%19 = call i32 @read_line(ptr noundef %17, ptr noundef %18)
%20 = getelementptr inbounds [64000 x i8], ptr %3, i64 0, i64 0
%21 = call i32 @compile(ptr noundef %20)
br label %11, !llvm.loop !6
22: ; preds = %11
%23 = load ptr, ptr %4, align 8
%24 = call i32 @fclose(ptr noundef %23)
br label %25
25: ; preds = %22, %9
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @read_line(ptr noundef, ptr noundef) #1
declare i32 @compile(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqf_vss_6.c"
target datalayout = "e-m:e-p270: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"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parse(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [64000 x i8], align 16
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @fopen(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
br label %28
10: ; preds = %1
%11 = load ptr, ptr %4, align 8
%12 = call i32 @feof(ptr noundef %11)
%13 = icmp ne i32 %12, 0
%14 = xor i1 %13, true
br i1 %14, label %.lr.ph, label %25
.lr.ph: ; preds = %10
br label %15
15: ; preds = %.lr.ph, %15
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds [64000 x i8], ptr %3, i64 0, i64 0
%18 = call i32 @read_line(ptr noundef %16, ptr noundef %17)
%19 = getelementptr inbounds [64000 x i8], ptr %3, i64 0, i64 0
%20 = call i32 @compile(ptr noundef %19)
%21 = load ptr, ptr %4, align 8
%22 = call i32 @feof(ptr noundef %21)
%23 = icmp ne i32 %22, 0
%24 = xor i1 %23, true
br i1 %24, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %25
25: ; preds = %._crit_edge, %10
%26 = load ptr, ptr %4, align 8
%27 = call i32 @fclose(ptr noundef %26)
br label %28
28: ; preds = %25, %9
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @read_line(ptr noundef, ptr noundef) #1
declare i32 @compile(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpd67rphzo.c'
source_filename = "/tmp/tmpd67rphzo.c"
target datalayout = "e-m:e-p270: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"invalid regular expression (sorry)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @regerror(i32 noundef %0, ptr noalias noundef %1, ptr noalias noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load ptr, ptr %6, align 8
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %7, align 8
%12 = load i64, ptr %8, align 8
%13 = call i32 @strncpy(ptr noundef %11, ptr noundef @.str, i64 noundef %12)
%14 = load ptr, ptr %7, align 8
%15 = call i64 @strlen(ptr noundef %14)
ret i64 %15
}
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd67rphzo.c"
target datalayout = "e-m:e-p270: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"invalid regular expression (sorry)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @regerror(i32 noundef %0, ptr noalias noundef %1, ptr noalias noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load ptr, ptr %6, align 8
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %7, align 8
%12 = load i64, ptr %8, align 8
%13 = call i32 @strncpy(ptr noundef %11, ptr noundef @.str, i64 noundef %12)
%14 = load ptr, ptr %7, align 8
%15 = call i64 @strlen(ptr noundef %14)
ret i64 %15
}
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7hd96d7y.c'
source_filename = "/tmp/tmp7hd96d7y.c"
target datalayout = "e-m:e-p270: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 @printPartition(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 %5, 4
%7 = trunc i64 %6 to i32
%8 = call i64 @malloc(i32 noundef %7)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = call i32 @printPartitionHelper(ptr noundef %10, i32 noundef 0, i32 noundef %11, i32 noundef %12)
%14 = load ptr, ptr %3, align 8
%15 = call i32 @free(ptr noundef %14)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printPartitionHelper(ptr noundef, i32 noundef, i32 noundef, i32 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/tmp7hd96d7y.c"
target datalayout = "e-m:e-p270: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 @printPartition(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 %5, 4
%7 = trunc i64 %6 to i32
%8 = call i64 @malloc(i32 noundef %7)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = call i32 @printPartitionHelper(ptr noundef %10, i32 noundef 0, i32 noundef %11, i32 noundef %12)
%14 = load ptr, ptr %3, align 8
%15 = call i32 @free(ptr noundef %14)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printPartitionHelper(ptr noundef, i32 noundef, i32 noundef, i32 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/tmpgov0i71e.c'
source_filename = "/tmp/tmpgov0i71e.c"
target datalayout = "e-m:e-p270: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"Incorrect call to fseek\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sys_fseek() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = call i64 @argint(i32 noundef 0, ptr noundef %4)
%6 = icmp slt i64 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %0
%8 = call i64 @argint(i32 noundef 1, ptr noundef %3)
%9 = icmp slt i64 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = call i64 @argfd(i32 noundef 0, ptr noundef %4, ptr noundef %2)
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10, %7, %0
%14 = call i32 @cprintf(ptr noundef @.str)
store i32 -1, ptr %1, align 4
br label %19
15: ; preds = %10
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = call i32 @fileseek(ptr noundef %16, i32 noundef %17)
store i32 %18, ptr %1, align 4
br label %19
19: ; preds = %15, %13
%20 = load i32, ptr %1, align 4
ret i32 %20
}
declare i64 @argint(i32 noundef, ptr noundef) #1
declare i64 @argfd(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @cprintf(ptr noundef) #1
declare i32 @fileseek(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/tmpgov0i71e.c"
target datalayout = "e-m:e-p270: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"Incorrect call to fseek\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sys_fseek() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = call i64 @argint(i32 noundef 0, ptr noundef %4)
%6 = icmp slt i64 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %0
%8 = call i64 @argint(i32 noundef 1, ptr noundef %3)
%9 = icmp slt i64 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = call i64 @argfd(i32 noundef 0, ptr noundef %4, ptr noundef %2)
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10, %7, %0
%14 = call i32 @cprintf(ptr noundef @.str)
store i32 -1, ptr %1, align 4
br label %19
15: ; preds = %10
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = call i32 @fileseek(ptr noundef %16, i32 noundef %17)
store i32 %18, ptr %1, align 4
br label %19
19: ; preds = %15, %13
%20 = load i32, ptr %1, align 4
ret i32 %20
}
declare i64 @argint(i32 noundef, ptr noundef) #1
declare i64 @argfd(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @cprintf(ptr noundef) #1
declare i32 @fileseek(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/tmpbdj41poj.c'
source_filename = "/tmp/tmpbdj41poj.c"
target datalayout = "e-m:e-p270: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/tmpbdj41poj.c"
target datalayout = "e-m:e-p270: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/tmpvcev1qku.c'
source_filename = "/tmp/tmpvcev1qku.c"
target datalayout = "e-m:e-p270: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 @InplaceReplaceSimple(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%12 = load ptr, ptr %7, align 8
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %9, align 4
%14 = load ptr, ptr %8, align 8
%15 = call i32 @strlen(ptr noundef %14)
store i32 %15, ptr %10, align 4
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %9, align 4
%20 = sub nsw i32 %18, %19
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %7, align 8
%23 = call i32 @CountStringSimple(ptr noundef %21, ptr noundef %22)
%24 = mul nsw i32 %20, %23
%25 = call ptr @ResizeIfNeeded(ptr noundef %16, ptr noundef %17, i32 noundef %24)
store ptr %25, ptr %5, align 8
%26 = load ptr, ptr %5, align 8
store ptr %26, ptr %11, align 8
br label %27
27: ; preds = %32, %4
%28 = load ptr, ptr %11, align 8
%29 = load ptr, ptr %7, align 8
%30 = call ptr @strstr(ptr noundef %28, ptr noundef %29)
store ptr %30, ptr %11, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %56
32: ; preds = %27
%33 = load ptr, ptr %11, align 8
%34 = load i32, ptr %10, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load ptr, ptr %11, align 8
%38 = load i32, ptr %9, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = load ptr, ptr %11, align 8
%42 = call i32 @strlen(ptr noundef %41)
%43 = load i32, ptr %9, align 4
%44 = sub nsw i32 %42, %43
%45 = add nsw i32 %44, 1
%46 = call i32 @memmove(ptr noundef %36, ptr noundef %40, i32 noundef %45)
%47 = load ptr, ptr %11, align 8
%48 = load ptr, ptr %8, align 8
%49 = load ptr, ptr %8, align 8
%50 = call i32 @strlen(ptr noundef %49)
%51 = call i32 @memcpy(ptr noundef %47, ptr noundef %48, i32 noundef %50)
%52 = load i32, ptr %10, align 4
%53 = load ptr, ptr %11, align 8
%54 = sext i32 %52 to i64
%55 = getelementptr inbounds i8, ptr %53, i64 %54
store ptr %55, ptr %11, align 8
br label %27, !llvm.loop !6
56: ; preds = %27
%57 = load ptr, ptr %5, align 8
ret ptr %57
}
declare i32 @strlen(ptr noundef) #1
declare ptr @ResizeIfNeeded(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @CountStringSimple(ptr noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvcev1qku.c"
target datalayout = "e-m:e-p270: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 @InplaceReplaceSimple(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%12 = load ptr, ptr %7, align 8
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %9, align 4
%14 = load ptr, ptr %8, align 8
%15 = call i32 @strlen(ptr noundef %14)
store i32 %15, ptr %10, align 4
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %9, align 4
%20 = sub nsw i32 %18, %19
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %7, align 8
%23 = call i32 @CountStringSimple(ptr noundef %21, ptr noundef %22)
%24 = mul nsw i32 %20, %23
%25 = call ptr @ResizeIfNeeded(ptr noundef %16, ptr noundef %17, i32 noundef %24)
store ptr %25, ptr %5, align 8
%26 = load ptr, ptr %5, align 8
store ptr %26, ptr %11, align 8
%27 = load ptr, ptr %11, align 8
%28 = load ptr, ptr %7, align 8
%29 = call ptr @strstr(ptr noundef %27, ptr noundef %28)
store ptr %29, ptr %11, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %.lr.ph, label %59
.lr.ph: ; preds = %4
br label %31
31: ; preds = %.lr.ph, %31
%32 = load ptr, ptr %11, align 8
%33 = load i32, ptr %10, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load ptr, ptr %11, align 8
%37 = load i32, ptr %9, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load ptr, ptr %11, align 8
%41 = call i32 @strlen(ptr noundef %40)
%42 = load i32, ptr %9, align 4
%43 = sub nsw i32 %41, %42
%44 = add nsw i32 %43, 1
%45 = call i32 @memmove(ptr noundef %35, ptr noundef %39, i32 noundef %44)
%46 = load ptr, ptr %11, align 8
%47 = load ptr, ptr %8, align 8
%48 = load ptr, ptr %8, align 8
%49 = call i32 @strlen(ptr noundef %48)
%50 = call i32 @memcpy(ptr noundef %46, ptr noundef %47, i32 noundef %49)
%51 = load i32, ptr %10, align 4
%52 = load ptr, ptr %11, align 8
%53 = sext i32 %51 to i64
%54 = getelementptr inbounds i8, ptr %52, i64 %53
store ptr %54, ptr %11, align 8
%55 = load ptr, ptr %11, align 8
%56 = load ptr, ptr %7, align 8
%57 = call ptr @strstr(ptr noundef %55, ptr noundef %56)
store ptr %57, ptr %11, align 8
%58 = icmp ne ptr %57, null
br i1 %58, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %59
59: ; preds = %._crit_edge, %4
%60 = load ptr, ptr %5, align 8
ret ptr %60
}
declare i32 @strlen(ptr noundef) #1
declare ptr @ResizeIfNeeded(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @CountStringSimple(ptr noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfl6an8hv.c'
source_filename = "/tmp/tmpfl6an8hv.c"
target datalayout = "e-m:e-p270: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 [87 x i8] c"%s------------------------------------------------------------\0ABEGIN OF SECTION %s %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"AnimationList\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"\0A%sEND OF SECTION %s %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"%sExecuting section took : %fs%s\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"%sFailed : %d test_case(s)%s\0A\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"%sSucceeded : %d test_case(s)%s\0A\00", align 1
@.str.6 = private unnamed_addr constant [51 x i8] c"%sStopped due to NULL pointer : %d test_case(s)%s\0A\00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"%sEMPTY TEST SECTION%s\0A\00", align 1
@.str.8 = private unnamed_addr constant [67 x i8] c"%s------------------------------------------------------------%s\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_call_test_AnimationList_lassert() #0 {
%1 = alloca [512 x i8], align 16
%2 = alloca [512 x i8], align 16
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
call void @llvm.memset.p0.i64(ptr align 16 %1, i8 0, i64 512, i1 false)
store i32 -1, ptr %5, align 4
store i32 1, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = call ptr @_get_color_lassert(i32 noundef 4)
%9 = call ptr @_get_color_lassert(i32 noundef 0)
%10 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %8, ptr noundef @.str.1, ptr noundef %9)
%11 = call i32 @_succeeded_test_case(i32 noundef 0, i32 noundef 1)
%12 = call i32 @_not_null_failed_test_case(i32 noundef 0, i32 noundef 1)
%13 = call i32 @_start_test_lassert(i32 noundef 0, i32 noundef 0)
%14 = call i32 @_failed_test_case(i32 noundef 0, i32 noundef 1)
%15 = call i64 (...) @using_time_asked()
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %0
%18 = call double (...) @time_used()
store double %18, ptr %3, align 8
br label %19
19: ; preds = %17, %0
br label %20
20: ; preds = %23, %19
%21 = load i32, ptr %6, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %20
store i32 0, ptr %6, align 4
%24 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%25 = getelementptr inbounds [512 x i8], ptr %2, i64 0, i64 0
%26 = call i32 @_test_AnimationList_lassert(ptr noundef %24, ptr noundef %5, ptr noundef %25, i32 noundef 0, i32 noundef 0, ptr noundef %6, ptr noundef %7)
%27 = load i32, ptr %6, align 4
store i32 %27, ptr %7, align 4
br label %20, !llvm.loop !6
28: ; preds = %20
%29 = call i64 (...) @using_time_asked()
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call double (...) @time_used()
store double %32, ptr %4, align 8
br label %33
33: ; preds = %31, %28
%34 = load i32, ptr %5, align 4
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @_failed_test_case(i32 noundef 1, i32 noundef 0)
br label %50
38: ; preds = %33
%39 = load i32, ptr %5, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %43, label %41
41: ; preds = %38
%42 = call i32 @_succeeded_test_case(i32 noundef 1, i32 noundef 0)
br label %49
43: ; preds = %38
%44 = load i32, ptr %5, align 4
%45 = icmp eq i32 %44, 2
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = call i32 @_not_null_failed_test_case(i32 noundef 1, i32 noundef 0)
br label %48
48: ; preds = %46, %43
br label %49
49: ; preds = %48, %41
br label %50
50: ; preds = %49, %36
%51 = call i32 @_start_test_lassert(i32 noundef 1, i32 noundef 1)
%52 = call ptr @_get_color_lassert(i32 noundef 4)
%53 = call ptr @_get_color_lassert(i32 noundef 0)
%54 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %52, ptr noundef @.str.1, ptr noundef %53)
%55 = call i64 (...) @using_time_asked()
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %65
57: ; preds = %50
%58 = call ptr @_get_color_lassert(i32 noundef 6)
%59 = load double, ptr %4, align 8
%60 = load double, ptr %3, align 8
%61 = fsub double %59, %60
%62 = fdiv double %61, 1.000000e+03
%63 = call ptr @_get_color_lassert(i32 noundef 0)
%64 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %58, double noundef %62, ptr noundef %63)
br label %65
65: ; preds = %57, %50
%66 = call i32 @_failed_test_case(i32 noundef 0, i32 noundef 0)
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %73
68: ; preds = %65
%69 = call ptr @_get_color_lassert(i32 noundef 1)
%70 = call i32 @_failed_test_case(i32 noundef 0, i32 noundef 0)
%71 = call ptr @_get_color_lassert(i32 noundef 0)
%72 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %69, i32 noundef %70, ptr noundef %71)
br label %73
73: ; preds = %68, %65
%74 = call i32 @_succeeded_test_case(i32 noundef 0, i32 noundef 0)
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %81
76: ; preds = %73
%77 = call ptr @_get_color_lassert(i32 noundef 2)
%78 = call i32 @_succeeded_test_case(i32 noundef 0, i32 noundef 0)
%79 = call ptr @_get_color_lassert(i32 noundef 0)
%80 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %77, i32 noundef %78, ptr noundef %79)
br label %81
81: ; preds = %76, %73
%82 = call i32 @_not_null_failed_test_case(i32 noundef 0, i32 noundef 0)
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %89
84: ; preds = %81
%85 = call ptr @_get_color_lassert(i32 noundef 3)
%86 = call i32 @_not_null_failed_test_case(i32 noundef 0, i32 noundef 0)
%87 = call ptr @_get_color_lassert(i32 noundef 0)
%88 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %85, i32 noundef %86, ptr noundef %87)
br label %89
89: ; preds = %84, %81
%90 = call i32 @_succeeded_test_case(i32 noundef 0, i32 noundef 0)
%91 = icmp ne i32 %90, 0
br i1 %91, label %99, label %92
92: ; preds = %89
%93 = call i32 @_failed_test_case(i32 noundef 0, i32 noundef 0)
%94 = icmp ne i32 %93, 0
br i1 %94, label %99, label %95
95: ; preds = %92
%96 = call ptr @_get_color_lassert(i32 noundef 6)
%97 = call ptr @_get_color_lassert(i32 noundef 0)
%98 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %96, ptr noundef %97)
br label %99
99: ; preds = %95, %92, %89
%100 = call ptr @_get_color_lassert(i32 noundef 4)
%101 = call ptr @_get_color_lassert(i32 noundef 0)
%102 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %100, ptr noundef %101)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #2
declare ptr @_get_color_lassert(i32 noundef) #2
declare i32 @_succeeded_test_case(i32 noundef, i32 noundef) #2
declare i32 @_not_null_failed_test_case(i32 noundef, i32 noundef) #2
declare i32 @_start_test_lassert(i32 noundef, i32 noundef) #2
declare i32 @_failed_test_case(i32 noundef, i32 noundef) #2
declare i64 @using_time_asked(...) #2
declare double @time_used(...) #2
declare i32 @_test_AnimationList_lassert(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfl6an8hv.c"
target datalayout = "e-m:e-p270: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 [87 x i8] c"%s------------------------------------------------------------\0ABEGIN OF SECTION %s %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"AnimationList\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"\0A%sEND OF SECTION %s %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"%sExecuting section took : %fs%s\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"%sFailed : %d test_case(s)%s\0A\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"%sSucceeded : %d test_case(s)%s\0A\00", align 1
@.str.6 = private unnamed_addr constant [51 x i8] c"%sStopped due to NULL pointer : %d test_case(s)%s\0A\00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"%sEMPTY TEST SECTION%s\0A\00", align 1
@.str.8 = private unnamed_addr constant [67 x i8] c"%s------------------------------------------------------------%s\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_call_test_AnimationList_lassert() #0 {
%1 = alloca [512 x i8], align 16
%2 = alloca [512 x i8], align 16
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
call void @llvm.memset.p0.i64(ptr align 16 %1, i8 0, i64 512, i1 false)
store i32 -1, ptr %5, align 4
store i32 1, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = call ptr @_get_color_lassert(i32 noundef 4)
%9 = call ptr @_get_color_lassert(i32 noundef 0)
%10 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %8, ptr noundef @.str.1, ptr noundef %9)
%11 = call i32 @_succeeded_test_case(i32 noundef 0, i32 noundef 1)
%12 = call i32 @_not_null_failed_test_case(i32 noundef 0, i32 noundef 1)
%13 = call i32 @_start_test_lassert(i32 noundef 0, i32 noundef 0)
%14 = call i32 @_failed_test_case(i32 noundef 0, i32 noundef 1)
%15 = call i64 (...) @using_time_asked()
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %0
%18 = call double (...) @time_used()
store double %18, ptr %3, align 8
br label %19
19: ; preds = %17, %0
%20 = load i32, ptr %6, align 4
%21 = icmp ne i32 %20, 0
br i1 %21, label %.lr.ph, label %29
.lr.ph: ; preds = %19
br label %22
22: ; preds = %.lr.ph, %22
store i32 0, ptr %6, align 4
%23 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%24 = getelementptr inbounds [512 x i8], ptr %2, i64 0, i64 0
%25 = call i32 @_test_AnimationList_lassert(ptr noundef %23, ptr noundef %5, ptr noundef %24, i32 noundef 0, i32 noundef 0, ptr noundef %6, ptr noundef %7)
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %29
29: ; preds = %._crit_edge, %19
%30 = call i64 (...) @using_time_asked()
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call double (...) @time_used()
store double %33, ptr %4, align 8
br label %34
34: ; preds = %32, %29
%35 = load i32, ptr %5, align 4
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 @_failed_test_case(i32 noundef 1, i32 noundef 0)
br label %51
39: ; preds = %34
%40 = load i32, ptr %5, align 4
%41 = icmp ne i32 %40, 0
br i1 %41, label %44, label %42
42: ; preds = %39
%43 = call i32 @_succeeded_test_case(i32 noundef 1, i32 noundef 0)
br label %50
44: ; preds = %39
%45 = load i32, ptr %5, align 4
%46 = icmp eq i32 %45, 2
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 @_not_null_failed_test_case(i32 noundef 1, i32 noundef 0)
br label %49
49: ; preds = %47, %44
br label %50
50: ; preds = %49, %42
br label %51
51: ; preds = %50, %37
%52 = call i32 @_start_test_lassert(i32 noundef 1, i32 noundef 1)
%53 = call ptr @_get_color_lassert(i32 noundef 4)
%54 = call ptr @_get_color_lassert(i32 noundef 0)
%55 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %53, ptr noundef @.str.1, ptr noundef %54)
%56 = call i64 (...) @using_time_asked()
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %66
58: ; preds = %51
%59 = call ptr @_get_color_lassert(i32 noundef 6)
%60 = load double, ptr %4, align 8
%61 = load double, ptr %3, align 8
%62 = fsub double %60, %61
%63 = fdiv double %62, 1.000000e+03
%64 = call ptr @_get_color_lassert(i32 noundef 0)
%65 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %59, double noundef %63, ptr noundef %64)
br label %66
66: ; preds = %58, %51
%67 = call i32 @_failed_test_case(i32 noundef 0, i32 noundef 0)
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %74
69: ; preds = %66
%70 = call ptr @_get_color_lassert(i32 noundef 1)
%71 = call i32 @_failed_test_case(i32 noundef 0, i32 noundef 0)
%72 = call ptr @_get_color_lassert(i32 noundef 0)
%73 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %70, i32 noundef %71, ptr noundef %72)
br label %74
74: ; preds = %69, %66
%75 = call i32 @_succeeded_test_case(i32 noundef 0, i32 noundef 0)
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %82
77: ; preds = %74
%78 = call ptr @_get_color_lassert(i32 noundef 2)
%79 = call i32 @_succeeded_test_case(i32 noundef 0, i32 noundef 0)
%80 = call ptr @_get_color_lassert(i32 noundef 0)
%81 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %78, i32 noundef %79, ptr noundef %80)
br label %82
82: ; preds = %77, %74
%83 = call i32 @_not_null_failed_test_case(i32 noundef 0, i32 noundef 0)
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %90
85: ; preds = %82
%86 = call ptr @_get_color_lassert(i32 noundef 3)
%87 = call i32 @_not_null_failed_test_case(i32 noundef 0, i32 noundef 0)
%88 = call ptr @_get_color_lassert(i32 noundef 0)
%89 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %86, i32 noundef %87, ptr noundef %88)
br label %90
90: ; preds = %85, %82
%91 = call i32 @_succeeded_test_case(i32 noundef 0, i32 noundef 0)
%92 = icmp ne i32 %91, 0
br i1 %92, label %100, label %93
93: ; preds = %90
%94 = call i32 @_failed_test_case(i32 noundef 0, i32 noundef 0)
%95 = icmp ne i32 %94, 0
br i1 %95, label %100, label %96
96: ; preds = %93
%97 = call ptr @_get_color_lassert(i32 noundef 6)
%98 = call ptr @_get_color_lassert(i32 noundef 0)
%99 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %97, ptr noundef %98)
br label %100
100: ; preds = %96, %93, %90
%101 = call ptr @_get_color_lassert(i32 noundef 4)
%102 = call ptr @_get_color_lassert(i32 noundef 0)
%103 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %101, ptr noundef %102)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #2
declare ptr @_get_color_lassert(i32 noundef) #2
declare i32 @_succeeded_test_case(i32 noundef, i32 noundef) #2
declare i32 @_not_null_failed_test_case(i32 noundef, i32 noundef) #2
declare i32 @_start_test_lassert(i32 noundef, i32 noundef) #2
declare i32 @_failed_test_case(i32 noundef, i32 noundef) #2
declare i64 @using_time_asked(...) #2
declare double @time_used(...) #2
declare i32 @_test_AnimationList_lassert(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2wd83t1x.c'
source_filename = "/tmp/tmp2wd83t1x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @uninitvar_round() #0 {
%1 = alloca float, align 4
%2 = alloca double, align 8
%3 = alloca x86_fp80, align 16
%4 = load float, ptr %1, align 4
%5 = call i32 @roundf(float noundef %4)
%6 = load double, ptr %2, align 8
%7 = call i32 @round(double noundef %6)
%8 = load x86_fp80, ptr %3, align 16
%9 = call i32 @roundl(x86_fp80 noundef %8)
ret void
}
declare i32 @roundf(float noundef) #1
declare i32 @round(double noundef) #1
declare i32 @roundl(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2wd83t1x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @uninitvar_round() #0 {
%1 = alloca float, align 4
%2 = alloca double, align 8
%3 = alloca x86_fp80, align 16
%4 = load float, ptr %1, align 4
%5 = call i32 @roundf(float noundef %4)
%6 = load double, ptr %2, align 8
%7 = call i32 @round(double noundef %6)
%8 = load x86_fp80, ptr %3, align 16
%9 = call i32 @roundl(x86_fp80 noundef %8)
ret void
}
declare i32 @roundf(float noundef) #1
declare i32 @round(double noundef) #1
declare i32 @roundl(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6t0gw3wr.c'
source_filename = "/tmp/tmp6t0gw3wr.c"
target datalayout = "e-m:e-p270: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 @ieee_p_3499444699_sub_16418836761423633730_3536714472(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [24 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i8, align 1
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca ptr, align 8
%21 = alloca i32, align 4
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca i32, align 4
%25 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
br label %26
26: ; preds = %4
%27 = getelementptr inbounds [24 x i8], ptr %9, i64 0, i64 0
%28 = getelementptr inbounds i8, ptr %27, i64 4
store ptr %28, ptr %11, align 8
%29 = load ptr, ptr %7, align 8
%30 = icmp ne ptr %29, null
%31 = zext i1 %30 to i32
%32 = trunc i32 %31 to i8
store i8 %32, ptr %12, align 1
%33 = load i8, ptr %12, align 1
%34 = zext i8 %33 to i32
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %37
36: ; preds = %26
br label %95
37: ; preds = %26
br label %38
38: ; preds = %95, %37
%39 = getelementptr inbounds [24 x i8], ptr %9, i64 0, i64 0
%40 = getelementptr inbounds i8, ptr %39, i64 12
store ptr %40, ptr %13, align 8
%41 = load ptr, ptr %8, align 8
%42 = load ptr, ptr %13, align 8
store ptr %41, ptr %42, align 8
%43 = load ptr, ptr %8, align 8
%44 = getelementptr inbounds i8, ptr %43, i64 12
store ptr %44, ptr %14, align 8
%45 = load ptr, ptr %14, align 8
%46 = load i32, ptr %45, align 4
store i32 %46, ptr %15, align 4
%47 = load i32, ptr %15, align 4
%48 = mul i32 %47, 1
store i32 %48, ptr %15, align 4
%49 = load i32, ptr %15, align 4
%50 = call ptr @xsi_get_transient_memory(i32 noundef %49)
store ptr %50, ptr %10, align 8
%51 = load ptr, ptr %10, align 8
%52 = load ptr, ptr %7, align 8
%53 = load i32, ptr %15, align 4
%54 = call i32 @memcpy(ptr noundef %51, ptr noundef %52, i32 noundef %53)
%55 = load ptr, ptr %8, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 0
store ptr %56, ptr %16, align 8
%57 = load ptr, ptr %16, align 8
%58 = load i32, ptr %57, align 4
store i32 %58, ptr %17, align 4
%59 = load ptr, ptr %8, align 8
%60 = getelementptr inbounds i8, ptr %59, i64 4
store ptr %60, ptr %18, align 8
%61 = load ptr, ptr %18, align 8
%62 = load i32, ptr %61, align 4
store i32 %62, ptr %19, align 4
%63 = load ptr, ptr %8, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 8
store ptr %64, ptr %20, align 8
%65 = load ptr, ptr %20, align 8
%66 = load i32, ptr %65, align 4
store i32 %66, ptr %21, align 4
%67 = load ptr, ptr %6, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 0
store ptr %68, ptr %22, align 8
%69 = load ptr, ptr %22, align 8
%70 = getelementptr inbounds i8, ptr %69, i64 0
store ptr %70, ptr %23, align 8
%71 = load i32, ptr %17, align 4
%72 = load ptr, ptr %23, align 8
store i32 %71, ptr %72, align 4
%73 = load ptr, ptr %22, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 4
store ptr %74, ptr %23, align 8
%75 = load i32, ptr %19, align 4
%76 = load ptr, ptr %23, align 8
store i32 %75, ptr %76, align 4
%77 = load ptr, ptr %22, align 8
%78 = getelementptr inbounds i8, ptr %77, i64 8
store ptr %78, ptr %23, align 8
%79 = load i32, ptr %21, align 4
%80 = load ptr, ptr %23, align 8
store i32 %79, ptr %80, align 4
%81 = load i32, ptr %19, align 4
%82 = load i32, ptr %17, align 4
%83 = sub nsw i32 %81, %82
store i32 %83, ptr %24, align 4
%84 = load i32, ptr %24, align 4
%85 = load i32, ptr %21, align 4
%86 = mul nsw i32 %84, %85
store i32 %86, ptr %25, align 4
%87 = load i32, ptr %25, align 4
%88 = add i32 %87, 1
store i32 %88, ptr %25, align 4
%89 = load ptr, ptr %22, align 8
%90 = getelementptr inbounds i8, ptr %89, i64 12
store ptr %90, ptr %23, align 8
%91 = load i32, ptr %25, align 4
%92 = load ptr, ptr %23, align 8
store i32 %91, ptr %92, align 4
br label %93
93: ; preds = %38
%94 = load ptr, ptr %10, align 8
br label %98
95: ; preds = %36
%96 = load ptr, ptr %7, align 8
%97 = load ptr, ptr %11, align 8
store ptr %96, ptr %97, align 8
br label %38
98: ; preds = %93
ret ptr %94
}
declare ptr @xsi_get_transient_memory(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/tmp6t0gw3wr.c"
target datalayout = "e-m:e-p270: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 @ieee_p_3499444699_sub_16418836761423633730_3536714472(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [24 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i8, align 1
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca ptr, align 8
%21 = alloca i32, align 4
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca i32, align 4
%25 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
br label %26
26: ; preds = %4
%27 = getelementptr inbounds [24 x i8], ptr %9, i64 0, i64 0
%28 = getelementptr inbounds i8, ptr %27, i64 4
store ptr %28, ptr %11, align 8
%29 = load ptr, ptr %7, align 8
%30 = icmp ne ptr %29, null
%31 = zext i1 %30 to i32
%32 = trunc i32 %31 to i8
store i8 %32, ptr %12, align 1
%33 = load i8, ptr %12, align 1
%34 = zext i8 %33 to i32
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %37
36: ; preds = %26
br label %95
37: ; preds = %26
br label %38
38: ; preds = %95, %37
%39 = getelementptr inbounds [24 x i8], ptr %9, i64 0, i64 0
%40 = getelementptr inbounds i8, ptr %39, i64 12
store ptr %40, ptr %13, align 8
%41 = load ptr, ptr %8, align 8
%42 = load ptr, ptr %13, align 8
store ptr %41, ptr %42, align 8
%43 = load ptr, ptr %8, align 8
%44 = getelementptr inbounds i8, ptr %43, i64 12
store ptr %44, ptr %14, align 8
%45 = load ptr, ptr %14, align 8
%46 = load i32, ptr %45, align 4
store i32 %46, ptr %15, align 4
%47 = load i32, ptr %15, align 4
%48 = mul i32 %47, 1
store i32 %48, ptr %15, align 4
%49 = load i32, ptr %15, align 4
%50 = call ptr @xsi_get_transient_memory(i32 noundef %49)
store ptr %50, ptr %10, align 8
%51 = load ptr, ptr %10, align 8
%52 = load ptr, ptr %7, align 8
%53 = load i32, ptr %15, align 4
%54 = call i32 @memcpy(ptr noundef %51, ptr noundef %52, i32 noundef %53)
%55 = load ptr, ptr %8, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 0
store ptr %56, ptr %16, align 8
%57 = load ptr, ptr %16, align 8
%58 = load i32, ptr %57, align 4
store i32 %58, ptr %17, align 4
%59 = load ptr, ptr %8, align 8
%60 = getelementptr inbounds i8, ptr %59, i64 4
store ptr %60, ptr %18, align 8
%61 = load ptr, ptr %18, align 8
%62 = load i32, ptr %61, align 4
store i32 %62, ptr %19, align 4
%63 = load ptr, ptr %8, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 8
store ptr %64, ptr %20, align 8
%65 = load ptr, ptr %20, align 8
%66 = load i32, ptr %65, align 4
store i32 %66, ptr %21, align 4
%67 = load ptr, ptr %6, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 0
store ptr %68, ptr %22, align 8
%69 = load ptr, ptr %22, align 8
%70 = getelementptr inbounds i8, ptr %69, i64 0
store ptr %70, ptr %23, align 8
%71 = load i32, ptr %17, align 4
%72 = load ptr, ptr %23, align 8
store i32 %71, ptr %72, align 4
%73 = load ptr, ptr %22, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 4
store ptr %74, ptr %23, align 8
%75 = load i32, ptr %19, align 4
%76 = load ptr, ptr %23, align 8
store i32 %75, ptr %76, align 4
%77 = load ptr, ptr %22, align 8
%78 = getelementptr inbounds i8, ptr %77, i64 8
store ptr %78, ptr %23, align 8
%79 = load i32, ptr %21, align 4
%80 = load ptr, ptr %23, align 8
store i32 %79, ptr %80, align 4
%81 = load i32, ptr %19, align 4
%82 = load i32, ptr %17, align 4
%83 = sub nsw i32 %81, %82
store i32 %83, ptr %24, align 4
%84 = load i32, ptr %24, align 4
%85 = load i32, ptr %21, align 4
%86 = mul nsw i32 %84, %85
store i32 %86, ptr %25, align 4
%87 = load i32, ptr %25, align 4
%88 = add i32 %87, 1
store i32 %88, ptr %25, align 4
%89 = load ptr, ptr %22, align 8
%90 = getelementptr inbounds i8, ptr %89, i64 12
store ptr %90, ptr %23, align 8
%91 = load i32, ptr %25, align 4
%92 = load ptr, ptr %23, align 8
store i32 %91, ptr %92, align 4
br label %93
93: ; preds = %38
%94 = load ptr, ptr %10, align 8
br label %98
95: ; preds = %36
%96 = load ptr, ptr %7, align 8
%97 = load ptr, ptr %11, align 8
store ptr %96, ptr %97, align 8
br label %38
98: ; preds = %93
ret ptr %94
}
declare ptr @xsi_get_transient_memory(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/tmp2cgx83og.c'
source_filename = "/tmp/tmp2cgx83og.c"
target datalayout = "e-m:e-p270: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"n\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_textmotif_from_index_v2(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %4
%16 = load ptr, ptr %6, align 8
%17 = call i32 @sprintf(ptr noundef %16, ptr noundef @.str)
br label %107
18: ; preds = %4
%19 = load i32, ptr %5, align 4
%20 = call i32 @get_motiflength_from_index(i32 noundef %19)
store i32 %20, ptr %12, align 4
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %12, align 4
%23 = call i32 @motif_initialization(ptr noundef %21, i32 noundef %22)
store i32 1, ptr %11, align 4
%24 = load i32, ptr %5, align 4
store i32 %24, ptr %9, align 4
br label %25
25: ; preds = %71, %18
%26 = load i32, ptr %9, align 4
%27 = icmp sgt i32 %26, 0
br i1 %27, label %28, label %76
28: ; preds = %25
%29 = load i32, ptr %9, align 4
%30 = srem i32 %29, 4
store i32 %30, ptr %10, align 4
%31 = load i32, ptr %10, align 4
switch i32 %31, label %71 [
i32 0, label %32
i32 1, label %41
i32 2, label %51
i32 3, label %61
]
32: ; preds = %28
%33 = load i32, ptr %9, align 4
%34 = sub nsw i32 %33, 4
store i32 %34, ptr %9, align 4
%35 = load ptr, ptr %6, align 8
%36 = load i32, ptr %12, align 4
%37 = load i32, ptr %11, align 4
%38 = sub nsw i32 %36, %37
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %35, i64 %39
store i8 116, ptr %40, align 1
br label %71
41: ; preds = %28
%42 = load i32, ptr %10, align 4
%43 = load i32, ptr %9, align 4
%44 = sub nsw i32 %43, %42
store i32 %44, ptr %9, align 4
%45 = load ptr, ptr %6, align 8
%46 = load i32, ptr %12, align 4
%47 = load i32, ptr %11, align 4
%48 = sub nsw i32 %46, %47
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %45, i64 %49
store i8 97, ptr %50, align 1
br label %71
51: ; preds = %28
%52 = load i32, ptr %10, align 4
%53 = load i32, ptr %9, align 4
%54 = sub nsw i32 %53, %52
store i32 %54, ptr %9, align 4
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %12, align 4
%57 = load i32, ptr %11, align 4
%58 = sub nsw i32 %56, %57
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %55, i64 %59
store i8 99, ptr %60, align 1
br label %71
61: ; preds = %28
%62 = load i32, ptr %10, align 4
%63 = load i32, ptr %9, align 4
%64 = sub nsw i32 %63, %62
store i32 %64, ptr %9, align 4
%65 = load ptr, ptr %6, align 8
%66 = load i32, ptr %12, align 4
%67 = load i32, ptr %11, align 4
%68 = sub nsw i32 %66, %67
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, ptr %65, i64 %69
store i8 103, ptr %70, align 1
br label %71
71: ; preds = %28, %61, %51, %41, %32
%72 = load i32, ptr %9, align 4
%73 = sdiv i32 %72, 4
store i32 %73, ptr %9, align 4
%74 = load i32, ptr %11, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %11, align 4
br label %25, !llvm.loop !6
76: ; preds = %25
%77 = load i32, ptr %7, align 4
%78 = icmp sgt i32 %77, 0
br i1 %78, label %79, label %106
79: ; preds = %76
%80 = load i32, ptr %7, align 4
%81 = load i32, ptr %12, align 4
%82 = icmp sle i32 %80, %81
br i1 %82, label %83, label %90
83: ; preds = %79
%84 = load ptr, ptr %6, align 8
%85 = load i32, ptr %12, align 4
%86 = load i32, ptr %7, align 4
%87 = sub nsw i32 %85, %86
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, ptr %84, i64 %88
store i8 110, ptr %89, align 1
br label %90
90: ; preds = %83, %79
%91 = load i32, ptr %8, align 4
%92 = icmp sgt i32 %91, 0
br i1 %92, label %93, label %105
93: ; preds = %90
%94 = load i32, ptr %8, align 4
%95 = load i32, ptr %12, align 4
%96 = icmp sle i32 %94, %95
br i1 %96, label %97, label %104
97: ; preds = %93
%98 = load ptr, ptr %6, align 8
%99 = load i32, ptr %12, align 4
%100 = load i32, ptr %8, align 4
%101 = sub nsw i32 %99, %100
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %98, i64 %102
store i8 110, ptr %103, align 1
br label %104
104: ; preds = %97, %93
br label %105
105: ; preds = %104, %90
br label %106
106: ; preds = %105, %76
br label %107
107: ; preds = %106, %15
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef) #1
declare i32 @get_motiflength_from_index(i32 noundef) #1
declare i32 @motif_initialization(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/tmp2cgx83og.c"
target datalayout = "e-m:e-p270: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"n\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_textmotif_from_index_v2(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %4
%16 = load ptr, ptr %6, align 8
%17 = call i32 @sprintf(ptr noundef %16, ptr noundef @.str)
br label %108
18: ; preds = %4
%19 = load i32, ptr %5, align 4
%20 = call i32 @get_motiflength_from_index(i32 noundef %19)
store i32 %20, ptr %12, align 4
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %12, align 4
%23 = call i32 @motif_initialization(ptr noundef %21, i32 noundef %22)
store i32 1, ptr %11, align 4
%24 = load i32, ptr %5, align 4
store i32 %24, ptr %9, align 4
%25 = load i32, ptr %9, align 4
%26 = icmp sgt i32 %25, 0
br i1 %26, label %.lr.ph, label %77
.lr.ph: ; preds = %18
br label %27
27: ; preds = %.lr.ph, %70
%28 = load i32, ptr %9, align 4
%29 = srem i32 %28, 4
store i32 %29, ptr %10, align 4
%30 = load i32, ptr %10, align 4
switch i32 %30, label %70 [
i32 0, label %31
i32 1, label %40
i32 2, label %50
i32 3, label %60
]
31: ; preds = %27
%32 = load i32, ptr %9, align 4
%33 = sub nsw i32 %32, 4
store i32 %33, ptr %9, align 4
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %12, align 4
%36 = load i32, ptr %11, align 4
%37 = sub nsw i32 %35, %36
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %34, i64 %38
store i8 116, ptr %39, align 1
br label %70
40: ; preds = %27
%41 = load i32, ptr %10, align 4
%42 = load i32, ptr %9, align 4
%43 = sub nsw i32 %42, %41
store i32 %43, ptr %9, align 4
%44 = load ptr, ptr %6, align 8
%45 = load i32, ptr %12, align 4
%46 = load i32, ptr %11, align 4
%47 = sub nsw i32 %45, %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %44, i64 %48
store i8 97, ptr %49, align 1
br label %70
50: ; preds = %27
%51 = load i32, ptr %10, align 4
%52 = load i32, ptr %9, align 4
%53 = sub nsw i32 %52, %51
store i32 %53, ptr %9, align 4
%54 = load ptr, ptr %6, align 8
%55 = load i32, ptr %12, align 4
%56 = load i32, ptr %11, align 4
%57 = sub nsw i32 %55, %56
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %54, i64 %58
store i8 99, ptr %59, align 1
br label %70
60: ; preds = %27
%61 = load i32, ptr %10, align 4
%62 = load i32, ptr %9, align 4
%63 = sub nsw i32 %62, %61
store i32 %63, ptr %9, align 4
%64 = load ptr, ptr %6, align 8
%65 = load i32, ptr %12, align 4
%66 = load i32, ptr %11, align 4
%67 = sub nsw i32 %65, %66
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %64, i64 %68
store i8 103, ptr %69, align 1
br label %70
70: ; preds = %60, %50, %40, %31, %27
%71 = load i32, ptr %9, align 4
%72 = sdiv i32 %71, 4
store i32 %72, ptr %9, align 4
%73 = load i32, ptr %11, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %11, align 4
%75 = load i32, ptr %9, align 4
%76 = icmp sgt i32 %75, 0
br i1 %76, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %70
br label %77
77: ; preds = %._crit_edge, %18
%78 = load i32, ptr %7, align 4
%79 = icmp sgt i32 %78, 0
br i1 %79, label %80, label %107
80: ; preds = %77
%81 = load i32, ptr %7, align 4
%82 = load i32, ptr %12, align 4
%83 = icmp sle i32 %81, %82
br i1 %83, label %84, label %91
84: ; preds = %80
%85 = load ptr, ptr %6, align 8
%86 = load i32, ptr %12, align 4
%87 = load i32, ptr %7, align 4
%88 = sub nsw i32 %86, %87
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, ptr %85, i64 %89
store i8 110, ptr %90, align 1
br label %91
91: ; preds = %84, %80
%92 = load i32, ptr %8, align 4
%93 = icmp sgt i32 %92, 0
br i1 %93, label %94, label %106
94: ; preds = %91
%95 = load i32, ptr %8, align 4
%96 = load i32, ptr %12, align 4
%97 = icmp sle i32 %95, %96
br i1 %97, label %98, label %105
98: ; preds = %94
%99 = load ptr, ptr %6, align 8
%100 = load i32, ptr %12, align 4
%101 = load i32, ptr %8, align 4
%102 = sub nsw i32 %100, %101
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %99, i64 %103
store i8 110, ptr %104, align 1
br label %105
105: ; preds = %98, %94
br label %106
106: ; preds = %105, %91
br label %107
107: ; preds = %106, %77
br label %108
108: ; preds = %107, %15
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef) #1
declare i32 @get_motiflength_from_index(i32 noundef) #1
declare i32 @motif_initialization(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/tmp3o4ujre2.c'
source_filename = "/tmp/tmp3o4ujre2.c"
target datalayout = "e-m:e-p270: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"Shellcode is incorrectly escaped!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @escape_error() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3o4ujre2.c"
target datalayout = "e-m:e-p270: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"Shellcode is incorrectly escaped!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @escape_error() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqe33ljoj.c'
source_filename = "/tmp/tmpqe33ljoj.c"
target datalayout = "e-m:e-p270: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 @CSLP_Color(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 = call i32 (...) @CSLP_GetCurrentPair()
%6 = call i32 @COLOR_PAIR(i32 noundef %5)
%7 = call i32 @attroff(i32 noundef %6)
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @CSLP_GetPairAttr(i32 noundef %8, i32 noundef %9)
%11 = call i32 @attron(i32 noundef %10)
ret void
}
declare i32 @attroff(i32 noundef) #1
declare i32 @COLOR_PAIR(i32 noundef) #1
declare i32 @CSLP_GetCurrentPair(...) #1
declare i32 @attron(i32 noundef) #1
declare i32 @CSLP_GetPairAttr(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/tmpqe33ljoj.c"
target datalayout = "e-m:e-p270: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 @CSLP_Color(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 = call i32 (...) @CSLP_GetCurrentPair()
%6 = call i32 @COLOR_PAIR(i32 noundef %5)
%7 = call i32 @attroff(i32 noundef %6)
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @CSLP_GetPairAttr(i32 noundef %8, i32 noundef %9)
%11 = call i32 @attron(i32 noundef %10)
ret void
}
declare i32 @attroff(i32 noundef) #1
declare i32 @COLOR_PAIR(i32 noundef) #1
declare i32 @CSLP_GetCurrentPair(...) #1
declare i32 @attron(i32 noundef) #1
declare i32 @CSLP_GetPairAttr(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/tmpnyh73llt.c'
source_filename = "/tmp/tmpnyh73llt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@hsfc3d.init = internal global i32 0, align 4
@hsfc3d.gray_inv = internal global [8 x i8] zeroinitializer, align 1
@CHAR_BIT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hsfc3d(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [6 x i8], align 1
%11 = alloca [8 x i8], align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %21, align 4
%23 = icmp ult i32 3, %22
br i1 %23, label %24, label %25
24: ; preds = %3
br label %28
25: ; preds = %3
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %26, align 4
br label %28
28: ; preds = %25, %24
%29 = phi i32 [ 3, %24 ], [ %27, %25 ]
store i32 %29, ptr %7, align 4
%30 = load i32, ptr @CHAR_BIT, align 4
%31 = sext i32 %30 to i64
%32 = mul i64 4, %31
%33 = load i32, ptr %7, align 4
%34 = zext i32 %33 to i64
%35 = mul i64 %32, %34
%36 = udiv i64 %35, 3
%37 = trunc i64 %36 to i32
store i32 %37, ptr %8, align 4
%38 = load i32, ptr @hsfc3d.init, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %93, label %40
40: ; preds = %28
%41 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
store i8 0, ptr %41, align 1
store i32 1, ptr %12, align 4
br label %42
42: ; preds = %72, %40
%43 = load i32, ptr %12, align 4
%44 = zext i32 %43 to i64
%45 = icmp ult i64 %44, 8
br i1 %45, label %46, label %75
46: ; preds = %42
store i32 0, ptr %13, align 4
br label %47
47: ; preds = %68, %46
%48 = load i32, ptr %13, align 4
%49 = load i32, ptr %12, align 4
%50 = icmp ult i32 %48, %49
br i1 %50, label %51, label %71
51: ; preds = %47
%52 = load i32, ptr %12, align 4
%53 = load i32, ptr %12, align 4
%54 = load i32, ptr %13, align 4
%55 = add i32 %54, 1
%56 = sub i32 %53, %55
%57 = zext i32 %56 to i64
%58 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 %57
%59 = load i8, ptr %58, align 1
%60 = zext i8 %59 to i32
%61 = or i32 %52, %60
%62 = trunc i32 %61 to i8
%63 = load i32, ptr %12, align 4
%64 = load i32, ptr %13, align 4
%65 = add i32 %63, %64
%66 = zext i32 %65 to i64
%67 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 %66
store i8 %62, ptr %67, align 1
br label %68
68: ; preds = %51
%69 = load i32, ptr %13, align 4
%70 = add i32 %69, 1
store i32 %70, ptr %13, align 4
br label %47, !llvm.loop !6
71: ; preds = %47
br label %72
72: ; preds = %71
%73 = load i32, ptr %12, align 4
%74 = shl i32 %73, 1
store i32 %74, ptr %12, align 4
br label %42, !llvm.loop !8
75: ; preds = %42
store i32 0, ptr %12, align 4
br label %76
76: ; preds = %89, %75
%77 = load i32, ptr %12, align 4
%78 = zext i32 %77 to i64
%79 = icmp ult i64 %78, 8
br i1 %79, label %80, label %92
80: ; preds = %76
%81 = load i32, ptr %12, align 4
%82 = trunc i32 %81 to i8
%83 = load i32, ptr %12, align 4
%84 = zext i32 %83 to i64
%85 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 %84
%86 = load i8, ptr %85, align 1
%87 = zext i8 %86 to i64
%88 = getelementptr inbounds [8 x i8], ptr @hsfc3d.gray_inv, i64 0, i64 %87
store i8 %82, ptr %88, align 1
br label %89
89: ; preds = %80
%90 = load i32, ptr %12, align 4
%91 = add i32 %90, 1
store i32 %91, ptr %12, align 4
br label %76, !llvm.loop !9
92: ; preds = %76
store i32 1, ptr @hsfc3d.init, align 4
br label %93
93: ; preds = %92, %28
store i32 0, ptr %9, align 4
br label %94
94: ; preds = %103, %93
%95 = load i32, ptr %9, align 4
%96 = load i32, ptr %7, align 4
%97 = icmp ult i32 %95, %96
br i1 %97, label %98, label %106
98: ; preds = %94
%99 = load ptr, ptr %6, align 8
%100 = load i32, ptr %9, align 4
%101 = zext i32 %100 to i64
%102 = getelementptr inbounds i32, ptr %99, i64 %101
store i32 0, ptr %102, align 4
br label %103
103: ; preds = %98
%104 = load i32, ptr %9, align 4
%105 = add i32 %104, 1
store i32 %105, ptr %9, align 4
br label %94, !llvm.loop !10
106: ; preds = %94
%107 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 0, ptr %107, align 1
%108 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 2, ptr %108, align 1
%109 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 4, ptr %109, align 1
store i32 1, ptr %9, align 4
br label %110
110: ; preds = %350, %106
%111 = load i32, ptr %9, align 4
%112 = load i32, ptr %8, align 4
%113 = icmp ule i32 %111, %112
br i1 %113, label %114, label %353
114: ; preds = %110
%115 = load i32, ptr @CHAR_BIT, align 4
%116 = sext i32 %115 to i64
%117 = mul i64 4, %116
%118 = load i32, ptr %9, align 4
%119 = zext i32 %118 to i64
%120 = sub i64 %117, %119
%121 = trunc i64 %120 to i32
store i32 %121, ptr %14, align 4
%122 = load ptr, ptr %4, align 8
%123 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
%124 = load i8, ptr %123, align 1
%125 = zext i8 %124 to i32
%126 = ashr i32 %125, 1
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i32, ptr %122, i64 %127
%129 = load i32, ptr %128, align 4
%130 = load i32, ptr %14, align 4
%131 = lshr i32 %129, %130
%132 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
%133 = load i8, ptr %132, align 1
%134 = zext i8 %133 to i32
%135 = xor i32 %131, %134
%136 = and i32 %135, 1
%137 = shl i32 %136, 0
%138 = load ptr, ptr %4, align 8
%139 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
%140 = load i8, ptr %139, align 1
%141 = zext i8 %140 to i32
%142 = ashr i32 %141, 1
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i32, ptr %138, i64 %143
%145 = load i32, ptr %144, align 4
%146 = load i32, ptr %14, align 4
%147 = lshr i32 %145, %146
%148 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
%149 = load i8, ptr %148, align 1
%150 = zext i8 %149 to i32
%151 = xor i32 %147, %150
%152 = and i32 %151, 1
%153 = shl i32 %152, 1
%154 = or i32 %137, %153
%155 = load ptr, ptr %4, align 8
%156 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
%157 = load i8, ptr %156, align 1
%158 = zext i8 %157 to i32
%159 = ashr i32 %158, 1
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds i32, ptr %155, i64 %160
%162 = load i32, ptr %161, align 4
%163 = load i32, ptr %14, align 4
%164 = lshr i32 %162, %163
%165 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
%166 = load i8, ptr %165, align 1
%167 = zext i8 %166 to i32
%168 = xor i32 %164, %167
%169 = and i32 %168, 1
%170 = shl i32 %169, 2
%171 = or i32 %154, %170
%172 = zext i32 %171 to i64
%173 = getelementptr inbounds [8 x i8], ptr @hsfc3d.gray_inv, i64 0, i64 %172
%174 = load i8, ptr %173, align 1
%175 = zext i8 %174 to i32
store i32 %175, ptr %15, align 4
store i32 0, ptr %16, align 4
br label %176
176: ; preds = %229, %114
%177 = load i32, ptr %16, align 4
%178 = icmp ult i32 %177, 3
br i1 %178, label %179, label %232
179: ; preds = %176
%180 = load i32, ptr %15, align 4
%181 = load i32, ptr %16, align 4
%182 = sub i32 2, %181
%183 = lshr i32 %180, %182
%184 = and i32 1, %183
store i32 %184, ptr %17, align 4
%185 = load i32, ptr %9, align 4
%186 = mul i32 3, %185
%187 = load i32, ptr %16, align 4
%188 = add i32 %186, %187
store i32 %188, ptr %18, align 4
%189 = load i32, ptr %18, align 4
%190 = zext i32 %189 to i64
%191 = load i32, ptr @CHAR_BIT, align 4
%192 = sext i32 %191 to i64
%193 = mul i64 4, %192
%194 = udiv i64 %190, %193
%195 = trunc i64 %194 to i32
store i32 %195, ptr %19, align 4
%196 = load i32, ptr @CHAR_BIT, align 4
%197 = sext i32 %196 to i64
%198 = mul i64 4, %197
%199 = load i32, ptr %18, align 4
%200 = zext i32 %199 to i64
%201 = load i32, ptr @CHAR_BIT, align 4
%202 = sext i32 %201 to i64
%203 = mul i64 4, %202
%204 = urem i64 %200, %203
%205 = sub i64 %198, %204
%206 = trunc i64 %205 to i32
store i32 %206, ptr %20, align 4
%207 = load i32, ptr %19, align 4
%208 = icmp ugt i32 %207, 2
br i1 %208, label %209, label %218
209: ; preds = %179
%210 = load i32, ptr %17, align 4
%211 = load ptr, ptr %6, align 8
%212 = load i32, ptr %19, align 4
%213 = sub i32 %212, 1
%214 = zext i32 %213 to i64
%215 = getelementptr inbounds i32, ptr %211, i64 %214
%216 = load i32, ptr %215, align 4
%217 = or i32 %216, %210
store i32 %217, ptr %215, align 4
br label %228
218: ; preds = %179
%219 = load i32, ptr %17, align 4
%220 = load i32, ptr %20, align 4
%221 = shl i32 %219, %220
%222 = load ptr, ptr %6, align 8
%223 = load i32, ptr %19, align 4
%224 = zext i32 %223 to i64
%225 = getelementptr inbounds i32, ptr %222, i64 %224
%226 = load i32, ptr %225, align 4
%227 = or i32 %226, %221
store i32 %227, ptr %225, align 4
br label %228
228: ; preds = %218, %209
br label %229
229: ; preds = %228
%230 = load i32, ptr %16, align 4
%231 = add i32 %230, 1
store i32 %231, ptr %16, align 4
br label %176, !llvm.loop !11
232: ; preds = %176
%233 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
%234 = load i8, ptr %233, align 1
%235 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
store i8 %234, ptr %235, align 1
%236 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
%237 = load i8, ptr %236, align 1
%238 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
store i8 %237, ptr %238, align 1
%239 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
%240 = load i8, ptr %239, align 1
%241 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
store i8 %240, ptr %241, align 1
%242 = load i32, ptr %15, align 4
switch i32 %242, label %347 [
i32 0, label %243
i32 1, label %253
i32 2, label %263
i32 3, label %273
i32 4, label %289
i32 5, label %305
i32 6, label %315
i32 7, label %331
]
243: ; preds = %232
%244 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%245 = load i8, ptr %244, align 1
%246 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %245, ptr %246, align 1
%247 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%248 = load i8, ptr %247, align 1
%249 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %248, ptr %249, align 1
%250 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%251 = load i8, ptr %250, align 1
%252 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %251, ptr %252, align 1
br label %349
253: ; preds = %232
%254 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%255 = load i8, ptr %254, align 1
%256 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %255, ptr %256, align 1
%257 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%258 = load i8, ptr %257, align 1
%259 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %258, ptr %259, align 1
%260 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%261 = load i8, ptr %260, align 1
%262 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %261, ptr %262, align 1
br label %349
263: ; preds = %232
%264 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%265 = load i8, ptr %264, align 1
%266 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %265, ptr %266, align 1
%267 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%268 = load i8, ptr %267, align 1
%269 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %268, ptr %269, align 1
%270 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%271 = load i8, ptr %270, align 1
%272 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %271, ptr %272, align 1
br label %349
273: ; preds = %232
%274 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%275 = load i8, ptr %274, align 1
%276 = zext i8 %275 to i32
%277 = xor i32 %276, 1
%278 = trunc i32 %277 to i8
%279 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %278, ptr %279, align 1
%280 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%281 = load i8, ptr %280, align 1
%282 = zext i8 %281 to i32
%283 = xor i32 %282, 1
%284 = trunc i32 %283 to i8
%285 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %284, ptr %285, align 1
%286 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%287 = load i8, ptr %286, align 1
%288 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %287, ptr %288, align 1
br label %349
289: ; preds = %232
%290 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%291 = load i8, ptr %290, align 1
%292 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %291, ptr %292, align 1
%293 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%294 = load i8, ptr %293, align 1
%295 = zext i8 %294 to i32
%296 = xor i32 %295, 1
%297 = trunc i32 %296 to i8
%298 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %297, ptr %298, align 1
%299 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%300 = load i8, ptr %299, align 1
%301 = zext i8 %300 to i32
%302 = xor i32 %301, 1
%303 = trunc i32 %302 to i8
%304 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %303, ptr %304, align 1
br label %349
305: ; preds = %232
%306 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%307 = load i8, ptr %306, align 1
%308 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %307, ptr %308, align 1
%309 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%310 = load i8, ptr %309, align 1
%311 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %310, ptr %311, align 1
%312 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%313 = load i8, ptr %312, align 1
%314 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %313, ptr %314, align 1
br label %349
315: ; preds = %232
%316 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%317 = load i8, ptr %316, align 1
%318 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %317, ptr %318, align 1
%319 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%320 = load i8, ptr %319, align 1
%321 = zext i8 %320 to i32
%322 = xor i32 %321, 1
%323 = trunc i32 %322 to i8
%324 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %323, ptr %324, align 1
%325 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%326 = load i8, ptr %325, align 1
%327 = zext i8 %326 to i32
%328 = xor i32 %327, 1
%329 = trunc i32 %328 to i8
%330 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %329, ptr %330, align 1
br label %349
331: ; preds = %232
%332 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%333 = load i8, ptr %332, align 1
%334 = zext i8 %333 to i32
%335 = xor i32 %334, 1
%336 = trunc i32 %335 to i8
%337 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %336, ptr %337, align 1
%338 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%339 = load i8, ptr %338, align 1
%340 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %339, ptr %340, align 1
%341 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%342 = load i8, ptr %341, align 1
%343 = zext i8 %342 to i32
%344 = xor i32 %343, 1
%345 = trunc i32 %344 to i8
%346 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %345, ptr %346, align 1
br label %349
347: ; preds = %232
%348 = call i32 @exit(i32 noundef -1) #2
unreachable
349: ; preds = %331, %315, %305, %289, %273, %263, %253, %243
br label %350
350: ; preds = %349
%351 = load i32, ptr %9, align 4
%352 = add i32 %351, 1
store i32 %352, ptr %9, align 4
br label %110, !llvm.loop !12
353: ; preds = %110
ret void
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnyh73llt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@hsfc3d.init = internal global i32 0, align 4
@hsfc3d.gray_inv = internal global [8 x i8] zeroinitializer, align 1
@CHAR_BIT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hsfc3d(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [6 x i8], align 1
%11 = alloca [8 x i8], align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %21, align 4
%23 = icmp ult i32 3, %22
br i1 %23, label %24, label %25
24: ; preds = %3
br label %28
25: ; preds = %3
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %26, align 4
br label %28
28: ; preds = %25, %24
%29 = phi i32 [ 3, %24 ], [ %27, %25 ]
store i32 %29, ptr %7, align 4
%30 = load i32, ptr @CHAR_BIT, align 4
%31 = sext i32 %30 to i64
%32 = mul i64 4, %31
%33 = load i32, ptr %7, align 4
%34 = zext i32 %33 to i64
%35 = mul i64 %32, %34
%36 = udiv i64 %35, 3
%37 = trunc i64 %36 to i32
store i32 %37, ptr %8, align 4
%38 = load i32, ptr @hsfc3d.init, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %99, label %40
40: ; preds = %28
%41 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
store i8 0, ptr %41, align 1
store i32 1, ptr %12, align 4
%42 = load i32, ptr %12, align 4
%43 = zext i32 %42 to i64
%44 = icmp ult i64 %43, 8
br i1 %44, label %.lr.ph2, label %79
.lr.ph2: ; preds = %40
br label %45
45: ; preds = %.lr.ph2, %73
store i32 0, ptr %13, align 4
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %12, align 4
%48 = icmp ult i32 %46, %47
br i1 %48, label %.lr.ph, label %72
.lr.ph: ; preds = %45
br label %49
49: ; preds = %.lr.ph, %66
%50 = load i32, ptr %12, align 4
%51 = load i32, ptr %12, align 4
%52 = load i32, ptr %13, align 4
%53 = add i32 %52, 1
%54 = sub i32 %51, %53
%55 = zext i32 %54 to i64
%56 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 %55
%57 = load i8, ptr %56, align 1
%58 = zext i8 %57 to i32
%59 = or i32 %50, %58
%60 = trunc i32 %59 to i8
%61 = load i32, ptr %12, align 4
%62 = load i32, ptr %13, align 4
%63 = add i32 %61, %62
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 %64
store i8 %60, ptr %65, align 1
br label %66
66: ; preds = %49
%67 = load i32, ptr %13, align 4
%68 = add i32 %67, 1
store i32 %68, ptr %13, align 4
%69 = load i32, ptr %13, align 4
%70 = load i32, ptr %12, align 4
%71 = icmp ult i32 %69, %70
br i1 %71, label %49, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %66
br label %72
72: ; preds = %._crit_edge, %45
br label %73
73: ; preds = %72
%74 = load i32, ptr %12, align 4
%75 = shl i32 %74, 1
store i32 %75, ptr %12, align 4
%76 = load i32, ptr %12, align 4
%77 = zext i32 %76 to i64
%78 = icmp ult i64 %77, 8
br i1 %78, label %45, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %73
br label %79
79: ; preds = %._crit_edge3, %40
store i32 0, ptr %12, align 4
%80 = load i32, ptr %12, align 4
%81 = zext i32 %80 to i64
%82 = icmp ult i64 %81, 8
br i1 %82, label %.lr.ph5, label %98
.lr.ph5: ; preds = %79
br label %83
83: ; preds = %.lr.ph5, %92
%84 = load i32, ptr %12, align 4
%85 = trunc i32 %84 to i8
%86 = load i32, ptr %12, align 4
%87 = zext i32 %86 to i64
%88 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 %87
%89 = load i8, ptr %88, align 1
%90 = zext i8 %89 to i64
%91 = getelementptr inbounds [8 x i8], ptr @hsfc3d.gray_inv, i64 0, i64 %90
store i8 %85, ptr %91, align 1
br label %92
92: ; preds = %83
%93 = load i32, ptr %12, align 4
%94 = add i32 %93, 1
store i32 %94, ptr %12, align 4
%95 = load i32, ptr %12, align 4
%96 = zext i32 %95 to i64
%97 = icmp ult i64 %96, 8
br i1 %97, label %83, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %92
br label %98
98: ; preds = %._crit_edge6, %79
store i32 1, ptr @hsfc3d.init, align 4
br label %99
99: ; preds = %98, %28
store i32 0, ptr %9, align 4
%100 = load i32, ptr %9, align 4
%101 = load i32, ptr %7, align 4
%102 = icmp ult i32 %100, %101
br i1 %102, label %.lr.ph8, label %114
.lr.ph8: ; preds = %99
br label %103
103: ; preds = %.lr.ph8, %108
%104 = load ptr, ptr %6, align 8
%105 = load i32, ptr %9, align 4
%106 = zext i32 %105 to i64
%107 = getelementptr inbounds i32, ptr %104, i64 %106
store i32 0, ptr %107, align 4
br label %108
108: ; preds = %103
%109 = load i32, ptr %9, align 4
%110 = add i32 %109, 1
store i32 %110, ptr %9, align 4
%111 = load i32, ptr %9, align 4
%112 = load i32, ptr %7, align 4
%113 = icmp ult i32 %111, %112
br i1 %113, label %103, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %108
br label %114
114: ; preds = %._crit_edge9, %99
%115 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 0, ptr %115, align 1
%116 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 2, ptr %116, align 1
%117 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 4, ptr %117, align 1
store i32 1, ptr %9, align 4
%118 = load i32, ptr %9, align 4
%119 = load i32, ptr %8, align 4
%120 = icmp ule i32 %118, %119
br i1 %120, label %.lr.ph14, label %364
.lr.ph14: ; preds = %114
br label %121
121: ; preds = %.lr.ph14, %358
%122 = load i32, ptr @CHAR_BIT, align 4
%123 = sext i32 %122 to i64
%124 = mul i64 4, %123
%125 = load i32, ptr %9, align 4
%126 = zext i32 %125 to i64
%127 = sub i64 %124, %126
%128 = trunc i64 %127 to i32
store i32 %128, ptr %14, align 4
%129 = load ptr, ptr %4, align 8
%130 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
%131 = load i8, ptr %130, align 1
%132 = zext i8 %131 to i32
%133 = ashr i32 %132, 1
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i32, ptr %129, i64 %134
%136 = load i32, ptr %135, align 4
%137 = load i32, ptr %14, align 4
%138 = lshr i32 %136, %137
%139 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
%140 = load i8, ptr %139, align 1
%141 = zext i8 %140 to i32
%142 = xor i32 %138, %141
%143 = and i32 %142, 1
%144 = shl i32 %143, 0
%145 = load ptr, ptr %4, align 8
%146 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
%147 = load i8, ptr %146, align 1
%148 = zext i8 %147 to i32
%149 = ashr i32 %148, 1
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i32, ptr %145, i64 %150
%152 = load i32, ptr %151, align 4
%153 = load i32, ptr %14, align 4
%154 = lshr i32 %152, %153
%155 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
%156 = load i8, ptr %155, align 1
%157 = zext i8 %156 to i32
%158 = xor i32 %154, %157
%159 = and i32 %158, 1
%160 = shl i32 %159, 1
%161 = or i32 %144, %160
%162 = load ptr, ptr %4, align 8
%163 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
%164 = load i8, ptr %163, align 1
%165 = zext i8 %164 to i32
%166 = ashr i32 %165, 1
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds i32, ptr %162, i64 %167
%169 = load i32, ptr %168, align 4
%170 = load i32, ptr %14, align 4
%171 = lshr i32 %169, %170
%172 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
%173 = load i8, ptr %172, align 1
%174 = zext i8 %173 to i32
%175 = xor i32 %171, %174
%176 = and i32 %175, 1
%177 = shl i32 %176, 2
%178 = or i32 %161, %177
%179 = zext i32 %178 to i64
%180 = getelementptr inbounds [8 x i8], ptr @hsfc3d.gray_inv, i64 0, i64 %179
%181 = load i8, ptr %180, align 1
%182 = zext i8 %181 to i32
store i32 %182, ptr %15, align 4
store i32 0, ptr %16, align 4
%183 = load i32, ptr %16, align 4
%184 = icmp ult i32 %183, 3
br i1 %184, label %.lr.ph11, label %240
.lr.ph11: ; preds = %121
br label %185
185: ; preds = %.lr.ph11, %235
%186 = load i32, ptr %15, align 4
%187 = load i32, ptr %16, align 4
%188 = sub i32 2, %187
%189 = lshr i32 %186, %188
%190 = and i32 1, %189
store i32 %190, ptr %17, align 4
%191 = load i32, ptr %9, align 4
%192 = mul i32 3, %191
%193 = load i32, ptr %16, align 4
%194 = add i32 %192, %193
store i32 %194, ptr %18, align 4
%195 = load i32, ptr %18, align 4
%196 = zext i32 %195 to i64
%197 = load i32, ptr @CHAR_BIT, align 4
%198 = sext i32 %197 to i64
%199 = mul i64 4, %198
%200 = udiv i64 %196, %199
%201 = trunc i64 %200 to i32
store i32 %201, ptr %19, align 4
%202 = load i32, ptr @CHAR_BIT, align 4
%203 = sext i32 %202 to i64
%204 = mul i64 4, %203
%205 = load i32, ptr %18, align 4
%206 = zext i32 %205 to i64
%207 = load i32, ptr @CHAR_BIT, align 4
%208 = sext i32 %207 to i64
%209 = mul i64 4, %208
%210 = urem i64 %206, %209
%211 = sub i64 %204, %210
%212 = trunc i64 %211 to i32
store i32 %212, ptr %20, align 4
%213 = load i32, ptr %19, align 4
%214 = icmp ugt i32 %213, 2
br i1 %214, label %215, label %224
215: ; preds = %185
%216 = load i32, ptr %17, align 4
%217 = load ptr, ptr %6, align 8
%218 = load i32, ptr %19, align 4
%219 = sub i32 %218, 1
%220 = zext i32 %219 to i64
%221 = getelementptr inbounds i32, ptr %217, i64 %220
%222 = load i32, ptr %221, align 4
%223 = or i32 %222, %216
store i32 %223, ptr %221, align 4
br label %234
224: ; preds = %185
%225 = load i32, ptr %17, align 4
%226 = load i32, ptr %20, align 4
%227 = shl i32 %225, %226
%228 = load ptr, ptr %6, align 8
%229 = load i32, ptr %19, align 4
%230 = zext i32 %229 to i64
%231 = getelementptr inbounds i32, ptr %228, i64 %230
%232 = load i32, ptr %231, align 4
%233 = or i32 %232, %227
store i32 %233, ptr %231, align 4
br label %234
234: ; preds = %224, %215
br label %235
235: ; preds = %234
%236 = load i32, ptr %16, align 4
%237 = add i32 %236, 1
store i32 %237, ptr %16, align 4
%238 = load i32, ptr %16, align 4
%239 = icmp ult i32 %238, 3
br i1 %239, label %185, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %235
br label %240
240: ; preds = %._crit_edge12, %121
%241 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
%242 = load i8, ptr %241, align 1
%243 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
store i8 %242, ptr %243, align 1
%244 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
%245 = load i8, ptr %244, align 1
%246 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
store i8 %245, ptr %246, align 1
%247 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
%248 = load i8, ptr %247, align 1
%249 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
store i8 %248, ptr %249, align 1
%250 = load i32, ptr %15, align 4
switch i32 %250, label %355 [
i32 0, label %251
i32 1, label %261
i32 2, label %271
i32 3, label %281
i32 4, label %297
i32 5, label %313
i32 6, label %323
i32 7, label %339
]
251: ; preds = %240
%252 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%253 = load i8, ptr %252, align 1
%254 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %253, ptr %254, align 1
%255 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%256 = load i8, ptr %255, align 1
%257 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %256, ptr %257, align 1
%258 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%259 = load i8, ptr %258, align 1
%260 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %259, ptr %260, align 1
br label %357
261: ; preds = %240
%262 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%263 = load i8, ptr %262, align 1
%264 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %263, ptr %264, align 1
%265 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%266 = load i8, ptr %265, align 1
%267 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %266, ptr %267, align 1
%268 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%269 = load i8, ptr %268, align 1
%270 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %269, ptr %270, align 1
br label %357
271: ; preds = %240
%272 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%273 = load i8, ptr %272, align 1
%274 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %273, ptr %274, align 1
%275 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%276 = load i8, ptr %275, align 1
%277 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %276, ptr %277, align 1
%278 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%279 = load i8, ptr %278, align 1
%280 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %279, ptr %280, align 1
br label %357
281: ; preds = %240
%282 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%283 = load i8, ptr %282, align 1
%284 = zext i8 %283 to i32
%285 = xor i32 %284, 1
%286 = trunc i32 %285 to i8
%287 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %286, ptr %287, align 1
%288 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%289 = load i8, ptr %288, align 1
%290 = zext i8 %289 to i32
%291 = xor i32 %290, 1
%292 = trunc i32 %291 to i8
%293 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %292, ptr %293, align 1
%294 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%295 = load i8, ptr %294, align 1
%296 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %295, ptr %296, align 1
br label %357
297: ; preds = %240
%298 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%299 = load i8, ptr %298, align 1
%300 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %299, ptr %300, align 1
%301 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%302 = load i8, ptr %301, align 1
%303 = zext i8 %302 to i32
%304 = xor i32 %303, 1
%305 = trunc i32 %304 to i8
%306 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %305, ptr %306, align 1
%307 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%308 = load i8, ptr %307, align 1
%309 = zext i8 %308 to i32
%310 = xor i32 %309, 1
%311 = trunc i32 %310 to i8
%312 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %311, ptr %312, align 1
br label %357
313: ; preds = %240
%314 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%315 = load i8, ptr %314, align 1
%316 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %315, ptr %316, align 1
%317 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%318 = load i8, ptr %317, align 1
%319 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %318, ptr %319, align 1
%320 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%321 = load i8, ptr %320, align 1
%322 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %321, ptr %322, align 1
br label %357
323: ; preds = %240
%324 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%325 = load i8, ptr %324, align 1
%326 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %325, ptr %326, align 1
%327 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%328 = load i8, ptr %327, align 1
%329 = zext i8 %328 to i32
%330 = xor i32 %329, 1
%331 = trunc i32 %330 to i8
%332 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %331, ptr %332, align 1
%333 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%334 = load i8, ptr %333, align 1
%335 = zext i8 %334 to i32
%336 = xor i32 %335, 1
%337 = trunc i32 %336 to i8
%338 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %337, ptr %338, align 1
br label %357
339: ; preds = %240
%340 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 5
%341 = load i8, ptr %340, align 1
%342 = zext i8 %341 to i32
%343 = xor i32 %342, 1
%344 = trunc i32 %343 to i8
%345 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
store i8 %344, ptr %345, align 1
%346 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 4
%347 = load i8, ptr %346, align 1
%348 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 1
store i8 %347, ptr %348, align 1
%349 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 3
%350 = load i8, ptr %349, align 1
%351 = zext i8 %350 to i32
%352 = xor i32 %351, 1
%353 = trunc i32 %352 to i8
%354 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 2
store i8 %353, ptr %354, align 1
br label %357
355: ; preds = %240
%356 = call i32 @exit(i32 noundef -1) #2
unreachable
357: ; preds = %339, %323, %313, %297, %281, %271, %261, %251
br label %358
358: ; preds = %357
%359 = load i32, ptr %9, align 4
%360 = add i32 %359, 1
store i32 %360, ptr %9, align 4
%361 = load i32, ptr %9, align 4
%362 = load i32, ptr %8, align 4
%363 = icmp ule i32 %361, %362
br i1 %363, label %121, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %358
br label %364
364: ; preds = %._crit_edge15, %114
ret void
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmp1p5v3ica.c'
source_filename = "/tmp/tmp1p5v3ica.c"
target datalayout = "e-m:e-p270: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 @perm(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp sge i32 %8, %9
br i1 %10, label %11, label %15
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %5, align 4
%14 = call i32 @printArr(ptr noundef %12, i32 noundef %13)
br label %15
15: ; preds = %11, %3
%16 = load i32, ptr %6, align 4
store i32 %16, ptr %7, align 4
br label %17
17: ; preds = %44, %15
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %47
21: ; preds = %17
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = call i32 @swap(ptr noundef %25, ptr noundef %29)
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 1
call void @perm(ptr noundef %31, i32 noundef %32, i32 noundef %34)
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %7, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
%43 = call i32 @swap(ptr noundef %38, ptr noundef %42)
br label %44
44: ; preds = %21
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %7, align 4
br label %17, !llvm.loop !6
47: ; preds = %17
ret void
}
declare i32 @printArr(ptr noundef, i32 noundef) #1
declare i32 @swap(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/tmp1p5v3ica.c"
target datalayout = "e-m:e-p270: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 @perm(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp sge i32 %8, %9
br i1 %10, label %11, label %15
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %5, align 4
%14 = call i32 @printArr(ptr noundef %12, i32 noundef %13)
br label %15
15: ; preds = %11, %3
%16 = load i32, ptr %6, align 4
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %49
.lr.ph: ; preds = %15
br label %20
20: ; preds = %.lr.ph, %43
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = call i32 @swap(ptr noundef %24, ptr noundef %28)
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %5, align 4
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
call void @perm(ptr noundef %30, i32 noundef %31, i32 noundef %33)
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = call i32 @swap(ptr noundef %37, ptr noundef %41)
br label %43
43: ; preds = %20
%44 = load i32, ptr %7, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %7, align 4
%46 = load i32, ptr %7, align 4
%47 = load i32, ptr %5, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %49
49: ; preds = %._crit_edge, %15
ret void
}
declare i32 @printArr(ptr noundef, i32 noundef) #1
declare i32 @swap(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/tmpbqjd883_.c'
source_filename = "/tmp/tmpbqjd883_.c"
target datalayout = "e-m:e-p270: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 [29 x i8] c"test failed: test_frustum()\0A\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"test failed: test_mult_m4m4()\0A\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"test failed: test_rotate()\0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"test failed: test_translate()\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
br label %7
7: ; preds = %2
%8 = call i32 (...) @test_frustum()
%9 = icmp ne i32 %8, 0
%10 = xor i1 %9, true
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str)
store i32 0, ptr %6, align 4
br label %14
14: ; preds = %11, %7
br label %15
15: ; preds = %14
%16 = call i32 (...) @test_mult_m4m4()
%17 = icmp ne i32 %16, 0
%18 = xor i1 %17, true
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i32, ptr @stderr, align 4
%21 = call i32 @fprintf(i32 noundef %20, ptr noundef @.str.1)
store i32 0, ptr %6, align 4
br label %22
22: ; preds = %19, %15
br label %23
23: ; preds = %22
%24 = call i32 (...) @test_rotate()
%25 = icmp ne i32 %24, 0
%26 = xor i1 %25, true
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load i32, ptr @stderr, align 4
%29 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str.2)
store i32 0, ptr %6, align 4
br label %30
30: ; preds = %27, %23
br label %31
31: ; preds = %30
%32 = call i32 (...) @test_translate()
%33 = icmp ne i32 %32, 0
%34 = xor i1 %33, true
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load i32, ptr @stderr, align 4
%37 = call i32 @fprintf(i32 noundef %36, ptr noundef @.str.3)
store i32 0, ptr %6, align 4
br label %38
38: ; preds = %35, %31
%39 = load i32, ptr %6, align 4
%40 = icmp ne i32 %39, 0
%41 = zext i1 %40 to i64
%42 = select i1 %40, i32 0, i32 1
ret i32 %42
}
declare i32 @test_frustum(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @test_mult_m4m4(...) #1
declare i32 @test_rotate(...) #1
declare i32 @test_translate(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmpbqjd883_.c"
target datalayout = "e-m:e-p270: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 [29 x i8] c"test failed: test_frustum()\0A\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"test failed: test_mult_m4m4()\0A\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"test failed: test_rotate()\0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"test failed: test_translate()\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
br label %7
7: ; preds = %2
%8 = call i32 (...) @test_frustum()
%9 = icmp ne i32 %8, 0
%10 = xor i1 %9, true
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str)
store i32 0, ptr %6, align 4
br label %14
14: ; preds = %11, %7
br label %15
15: ; preds = %14
%16 = call i32 (...) @test_mult_m4m4()
%17 = icmp ne i32 %16, 0
%18 = xor i1 %17, true
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i32, ptr @stderr, align 4
%21 = call i32 @fprintf(i32 noundef %20, ptr noundef @.str.1)
store i32 0, ptr %6, align 4
br label %22
22: ; preds = %19, %15
br label %23
23: ; preds = %22
%24 = call i32 (...) @test_rotate()
%25 = icmp ne i32 %24, 0
%26 = xor i1 %25, true
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load i32, ptr @stderr, align 4
%29 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str.2)
store i32 0, ptr %6, align 4
br label %30
30: ; preds = %27, %23
br label %31
31: ; preds = %30
%32 = call i32 (...) @test_translate()
%33 = icmp ne i32 %32, 0
%34 = xor i1 %33, true
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load i32, ptr @stderr, align 4
%37 = call i32 @fprintf(i32 noundef %36, ptr noundef @.str.3)
store i32 0, ptr %6, align 4
br label %38
38: ; preds = %35, %31
%39 = load i32, ptr %6, align 4
%40 = icmp ne i32 %39, 0
%41 = zext i1 %40 to i64
%42 = select i1 %40, i32 0, i32 1
ret i32 %42
}
declare i32 @test_frustum(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @test_mult_m4m4(...) #1
declare i32 @test_rotate(...) #1
declare i32 @test_translate(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/tmprxq0txr2.c'
source_filename = "/tmp/tmprxq0txr2.c"
target datalayout = "e-m:e-p270: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.pathname = private unnamed_addr constant [6 x i8] c"temp7\00", align 1
@.str = private unnamed_addr constant [20 x i8] c"Can't generate key\0A\00", align 1
@IPC_CREAT = dso_local global i32 0, align 4
@IPC_EXCL = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EEXIST = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [28 x i8] c"Can't create shared memory\0A\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"Can't find shared memory\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Can't attach shared memory\0A\00", align 1
@.str.4 = private unnamed_addr constant [70 x i8] c"Program 1 was spawn %d times, program 2 - %d times, total - %d times\0A\00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c"Can't detach shared memory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [6 x i8], align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const.main.pathname, i64 6, i1 false)
%9 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
%10 = call i32 @ftok(ptr noundef %9, i32 noundef 0)
store i32 %10, ptr %6, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef -1) #4
unreachable
15: ; preds = %0
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr @IPC_CREAT, align 4
%18 = or i32 438, %17
%19 = load i32, ptr @IPC_EXCL, align 4
%20 = or i32 %18, %19
%21 = call i32 @shmget(i32 noundef %16, i32 noundef 24, i32 noundef %20)
store i32 %21, ptr %3, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %39
23: ; preds = %15
%24 = load i64, ptr @errno, align 8
%25 = load i64, ptr @EEXIST, align 8
%26 = icmp ne i64 %24, %25
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%29 = call i32 @exit(i32 noundef -1) #4
unreachable
30: ; preds = %23
%31 = load i32, ptr %6, align 4
%32 = call i32 @shmget(i32 noundef %31, i32 noundef 24, i32 noundef 0)
store i32 %32, ptr %3, align 4
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%36 = call i32 @exit(i32 noundef -1) #4
unreachable
37: ; preds = %30
store i32 0, ptr %4, align 4
br label %38
38: ; preds = %37
br label %39
39: ; preds = %38, %15
%40 = load i32, ptr %3, align 4
%41 = call i64 @shmat(i32 noundef %40, ptr noundef null, i32 noundef 0)
%42 = inttoptr i64 %41 to ptr
store ptr %42, ptr %2, align 8
%43 = icmp eq ptr %42, inttoptr (i64 -1 to ptr)
br i1 %43, label %44, label %47
44: ; preds = %39
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%46 = call i32 @exit(i32 noundef -1) #4
unreachable
47: ; preds = %39
%48 = load i32, ptr %4, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %57
50: ; preds = %47
%51 = load ptr, ptr %2, align 8
%52 = getelementptr inbounds i32, ptr %51, i64 3
store i32 1, ptr %52, align 4
%53 = load ptr, ptr %2, align 8
%54 = getelementptr inbounds i32, ptr %53, i64 4
store i32 0, ptr %54, align 4
%55 = load ptr, ptr %2, align 8
%56 = getelementptr inbounds i32, ptr %55, i64 5
store i32 1, ptr %56, align 4
br label %94
57: ; preds = %47
%58 = load ptr, ptr %2, align 8
%59 = getelementptr inbounds i32, ptr %58, i64 0
store i32 1, ptr %59, align 4
%60 = load ptr, ptr %2, align 8
%61 = getelementptr inbounds i32, ptr %60, i64 2
store i32 1, ptr %61, align 4
br label %62
62: ; preds = %74, %57
%63 = load ptr, ptr %2, align 8
%64 = getelementptr inbounds i32, ptr %63, i64 1
%65 = load i32, ptr %64, align 4
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %72
67: ; preds = %62
%68 = load ptr, ptr %2, align 8
%69 = getelementptr inbounds i32, ptr %68, i64 2
%70 = load i32, ptr %69, align 4
%71 = icmp eq i32 %70, 1
br label %72
72: ; preds = %67, %62
%73 = phi i1 [ false, %62 ], [ %71, %67 ]
br i1 %73, label %74, label %75
74: ; preds = %72
br label %62, !llvm.loop !6
75: ; preds = %72
%76 = load ptr, ptr %2, align 8
%77 = getelementptr inbounds i32, ptr %76, i64 3
%78 = load i32, ptr %77, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %77, align 4
store i32 0, ptr %7, align 4
br label %80
80: ; preds = %84, %75
%81 = load i32, ptr %7, align 4
%82 = icmp slt i32 %81, 1000000000
br i1 %82, label %83, label %87
83: ; preds = %80
br label %84
84: ; preds = %83
%85 = load i32, ptr %7, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %7, align 4
br label %80, !llvm.loop !8
87: ; preds = %80
%88 = load ptr, ptr %2, align 8
%89 = getelementptr inbounds i32, ptr %88, i64 5
%90 = load i32, ptr %89, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %89, align 4
%92 = load ptr, ptr %2, align 8
%93 = getelementptr inbounds i32, ptr %92, i64 0
store i32 0, ptr %93, align 4
br label %94
94: ; preds = %87, %50
store i32 0, ptr %8, align 4
br label %95
95: ; preds = %99, %94
%96 = load i32, ptr %8, align 4
%97 = icmp slt i32 %96, 1000000000
br i1 %97, label %98, label %102
98: ; preds = %95
br label %99
99: ; preds = %98
%100 = load i32, ptr %8, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %8, align 4
br label %95, !llvm.loop !9
102: ; preds = %95
%103 = load ptr, ptr %2, align 8
%104 = getelementptr inbounds i32, ptr %103, i64 3
%105 = load i32, ptr %104, align 4
%106 = load ptr, ptr %2, align 8
%107 = getelementptr inbounds i32, ptr %106, i64 4
%108 = load i32, ptr %107, align 4
%109 = load ptr, ptr %2, align 8
%110 = getelementptr inbounds i32, ptr %109, i64 5
%111 = load i32, ptr %110, align 4
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %105, i32 noundef %108, i32 noundef %111)
%113 = load ptr, ptr %2, align 8
%114 = call i64 @shmdt(ptr noundef %113)
%115 = icmp slt i64 %114, 0
br i1 %115, label %116, label %119
116: ; preds = %102
%117 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%118 = call i32 @exit(i32 noundef -1) #4
unreachable
119: ; preds = %102
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 @ftok(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @shmget(i32 noundef, i32 noundef, i32 noundef) #2
declare i64 @shmat(i32 noundef, ptr noundef, i32 noundef) #2
declare i64 @shmdt(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprxq0txr2.c"
target datalayout = "e-m:e-p270: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.pathname = private unnamed_addr constant [6 x i8] c"temp7\00", align 1
@.str = private unnamed_addr constant [20 x i8] c"Can't generate key\0A\00", align 1
@IPC_CREAT = dso_local global i32 0, align 4
@IPC_EXCL = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EEXIST = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [28 x i8] c"Can't create shared memory\0A\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"Can't find shared memory\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Can't attach shared memory\0A\00", align 1
@.str.4 = private unnamed_addr constant [70 x i8] c"Program 1 was spawn %d times, program 2 - %d times, total - %d times\0A\00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c"Can't detach shared memory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [6 x i8], align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const.main.pathname, i64 6, i1 false)
%9 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
%10 = call i32 @ftok(ptr noundef %9, i32 noundef 0)
store i32 %10, ptr %6, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef -1) #4
unreachable
15: ; preds = %0
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr @IPC_CREAT, align 4
%18 = or i32 438, %17
%19 = load i32, ptr @IPC_EXCL, align 4
%20 = or i32 %18, %19
%21 = call i32 @shmget(i32 noundef %16, i32 noundef 24, i32 noundef %20)
store i32 %21, ptr %3, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %39
23: ; preds = %15
%24 = load i64, ptr @errno, align 8
%25 = load i64, ptr @EEXIST, align 8
%26 = icmp ne i64 %24, %25
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%29 = call i32 @exit(i32 noundef -1) #4
unreachable
30: ; preds = %23
%31 = load i32, ptr %6, align 4
%32 = call i32 @shmget(i32 noundef %31, i32 noundef 24, i32 noundef 0)
store i32 %32, ptr %3, align 4
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%36 = call i32 @exit(i32 noundef -1) #4
unreachable
37: ; preds = %30
store i32 0, ptr %4, align 4
br label %38
38: ; preds = %37
br label %39
39: ; preds = %38, %15
%40 = load i32, ptr %3, align 4
%41 = call i64 @shmat(i32 noundef %40, ptr noundef null, i32 noundef 0)
%42 = inttoptr i64 %41 to ptr
store ptr %42, ptr %2, align 8
%43 = icmp eq ptr %42, inttoptr (i64 -1 to ptr)
br i1 %43, label %44, label %47
44: ; preds = %39
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%46 = call i32 @exit(i32 noundef -1) #4
unreachable
47: ; preds = %39
%48 = load i32, ptr %4, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %57
50: ; preds = %47
%51 = load ptr, ptr %2, align 8
%52 = getelementptr inbounds i32, ptr %51, i64 3
store i32 1, ptr %52, align 4
%53 = load ptr, ptr %2, align 8
%54 = getelementptr inbounds i32, ptr %53, i64 4
store i32 0, ptr %54, align 4
%55 = load ptr, ptr %2, align 8
%56 = getelementptr inbounds i32, ptr %55, i64 5
store i32 1, ptr %56, align 4
br label %82
57: ; preds = %47
%58 = load ptr, ptr %2, align 8
%59 = getelementptr inbounds i32, ptr %58, i64 0
store i32 1, ptr %59, align 4
%60 = load ptr, ptr %2, align 8
%61 = getelementptr inbounds i32, ptr %60, i64 2
store i32 1, ptr %61, align 4
br label %62
62: ; preds = %57
%63 = load ptr, ptr %2, align 8
%64 = getelementptr inbounds i32, ptr %63, i64 3
%65 = load i32, ptr %64, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %64, align 4
store i32 0, ptr %7, align 4
%67 = load i32, ptr %7, align 4
%68 = icmp slt i32 %67, 1000000000
br i1 %68, label %.lr.ph, label %75
.lr.ph: ; preds = %62
br label %69
69: ; preds = %.lr.ph, %70
br label %70
70: ; preds = %69
%71 = load i32, ptr %7, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %7, align 4
%73 = load i32, ptr %7, align 4
%74 = icmp slt i32 %73, 1000000000
br i1 %74, label %69, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %70
br label %75
75: ; preds = %._crit_edge, %62
%76 = load ptr, ptr %2, align 8
%77 = getelementptr inbounds i32, ptr %76, i64 5
%78 = load i32, ptr %77, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %77, align 4
%80 = load ptr, ptr %2, align 8
%81 = getelementptr inbounds i32, ptr %80, i64 0
store i32 0, ptr %81, align 4
br label %82
82: ; preds = %75, %50
store i32 0, ptr %8, align 4
%83 = load i32, ptr %8, align 4
%84 = icmp slt i32 %83, 1000000000
br i1 %84, label %.lr.ph2, label %91
.lr.ph2: ; preds = %82
br label %85
85: ; preds = %.lr.ph2, %86
br label %86
86: ; preds = %85
%87 = load i32, ptr %8, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %8, align 4
%89 = load i32, ptr %8, align 4
%90 = icmp slt i32 %89, 1000000000
br i1 %90, label %85, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %86
br label %91
91: ; preds = %._crit_edge3, %82
%92 = load ptr, ptr %2, align 8
%93 = getelementptr inbounds i32, ptr %92, i64 3
%94 = load i32, ptr %93, align 4
%95 = load ptr, ptr %2, align 8
%96 = getelementptr inbounds i32, ptr %95, i64 4
%97 = load i32, ptr %96, align 4
%98 = load ptr, ptr %2, align 8
%99 = getelementptr inbounds i32, ptr %98, i64 5
%100 = load i32, ptr %99, align 4
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %94, i32 noundef %97, i32 noundef %100)
%102 = load ptr, ptr %2, align 8
%103 = call i64 @shmdt(ptr noundef %102)
%104 = icmp slt i64 %103, 0
br i1 %104, label %105, label %108
105: ; preds = %91
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%107 = call i32 @exit(i32 noundef -1) #4
unreachable
108: ; preds = %91
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 @ftok(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @shmget(i32 noundef, i32 noundef, i32 noundef) #2
declare i64 @shmat(i32 noundef, ptr noundef, i32 noundef) #2
declare i64 @shmdt(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmplnmf8wjt.c'
source_filename = "/tmp/tmplnmf8wjt.c"
target datalayout = "e-m:e-p270: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 [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"[ OK ]\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @test1()
%7 = call i32 (...) @test2()
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str, ptr noundef @.str.1)
%10 = load i32, ptr %4, align 4
%11 = load ptr, ptr %5, align 8
ret i32 0
}
declare i32 @test1(...) #1
declare i32 @test2(...) #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/tmplnmf8wjt.c"
target datalayout = "e-m:e-p270: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 [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"[ OK ]\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @test1()
%7 = call i32 (...) @test2()
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str, ptr noundef @.str.1)
%10 = load i32, ptr %4, align 4
%11 = load ptr, ptr %5, align 8
ret i32 0
}
declare i32 @test1(...) #1
declare i32 @test2(...) #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/tmp3_6ix_if.c'
source_filename = "/tmp/tmp3_6ix_if.c"
target datalayout = "e-m:e-p270: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 @LED_RGB_Get(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [3 x i64], align 16
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = getelementptr inbounds [3 x i64], ptr %4, i64 0, i64 0
%6 = call i32 @Get_RGB_LED_Values(ptr noundef %5)
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %24, %1
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %27
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [3 x i64], ptr %4, i64 0, i64 %12
%14 = load i64, ptr %13, align 8
%15 = trunc i64 %14 to i32
%16 = shl i32 %15, 8
%17 = call i32 (...) @Get_RGB_LED_Max_Value()
%18 = sdiv i32 %16, %17
%19 = sext i32 %18 to i64
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i64, ptr %20, i64 %22
store i64 %19, ptr %23, align 8
br label %24
24: ; preds = %10
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
br label %7, !llvm.loop !6
27: ; preds = %7
ret void
}
declare i32 @Get_RGB_LED_Values(ptr noundef) #1
declare i32 @Get_RGB_LED_Max_Value(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp3_6ix_if.c"
target datalayout = "e-m:e-p270: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 @LED_RGB_Get(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [3 x i64], align 16
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = getelementptr inbounds [3 x i64], ptr %4, i64 0, i64 0
%6 = call i32 @Get_RGB_LED_Values(ptr noundef %5)
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %.lr.ph, label %28
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %23
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [3 x i64], ptr %4, i64 0, i64 %11
%13 = load i64, ptr %12, align 8
%14 = trunc i64 %13 to i32
%15 = shl i32 %14, 8
%16 = call i32 (...) @Get_RGB_LED_Max_Value()
%17 = sdiv i32 %15, %16
%18 = sext i32 %17 to i64
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i64, ptr %19, i64 %21
store i64 %18, ptr %22, align 8
br label %23
23: ; preds = %9
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp slt i32 %26, 3
br i1 %27, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %1
ret void
}
declare i32 @Get_RGB_LED_Values(ptr noundef) #1
declare i32 @Get_RGB_LED_Max_Value(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpsqvhd72s.c'
source_filename = "/tmp/tmpsqvhd72s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @logit(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = fsub double 1.000000e+00, %4
%6 = fdiv double %3, %5
%7 = call double @log(double noundef %6) #2
ret double %7
}
; Function Attrs: nounwind
declare double @log(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsqvhd72s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @logit(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = fsub double 1.000000e+00, %4
%6 = fdiv double %3, %5
%7 = call double @log(double noundef %6) #2
ret double %7
}
; Function Attrs: nounwind
declare double @log(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcdydd5nk.c'
source_filename = "/tmp/tmpcdydd5nk.c"
target datalayout = "e-m:e-p270: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 @emit_load_return_address(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @emit_mov(i32 noundef 15, i32 noundef %3)
ret void
}
declare i32 @emit_mov(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/tmpcdydd5nk.c"
target datalayout = "e-m:e-p270: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 @emit_load_return_address(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @emit_mov(i32 noundef 15, i32 noundef %3)
ret void
}
declare i32 @emit_mov(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/tmpuwpx6qdf.c'
source_filename = "/tmp/tmpuwpx6qdf.c"
target datalayout = "e-m:e-p270: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 [6 x i8] c"%.30s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ssl_fatal(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @ERR_print_errors_fp(i32 noundef %3)
%5 = load i32, ptr @stderr, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str, ptr noundef %6)
ret void
}
declare i32 @ERR_print_errors_fp(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/tmpuwpx6qdf.c"
target datalayout = "e-m:e-p270: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 [6 x i8] c"%.30s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ssl_fatal(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @ERR_print_errors_fp(i32 noundef %3)
%5 = load i32, ptr @stderr, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str, ptr noundef %6)
ret void
}
declare i32 @ERR_print_errors_fp(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/tmpk_1lpkl_.c'
source_filename = "/tmp/tmpk_1lpkl_.c"
target datalayout = "e-m:e-p270: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 @my_free(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = call i32 @free(ptr noundef %5)
ret void
}
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/tmpk_1lpkl_.c"
target datalayout = "e-m:e-p270: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 @my_free(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = call i32 @free(ptr noundef %5)
ret void
}
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/tmpd8bnpd__.c'
source_filename = "/tmp/tmpd8bnpd__.c"
target datalayout = "e-m:e-p270: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/tmpd8bnpd__.c"
target datalayout = "e-m:e-p270: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_7_i4s8q.c'
source_filename = "/tmp/tmp_7_i4s8q.c"
target datalayout = "e-m:e-p270: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 @sp_strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
br label %4
4: ; preds = %27, %1
%5 = load ptr, ptr %2, align 8
%6 = load i64, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %5, i64 %6
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %30
11: ; preds = %4
%12 = load ptr, ptr %2, align 8
%13 = load i64, ptr %3, align 8
%14 = getelementptr inbounds i8, ptr %12, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 9
br i1 %17, label %25, label %18
18: ; preds = %11
%19 = load ptr, ptr %2, align 8
%20 = load i64, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %19, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 32
br i1 %24, label %25, label %26
25: ; preds = %18, %11
br label %30
26: ; preds = %18
br label %27
27: ; preds = %26
%28 = load i64, ptr %3, align 8
%29 = add i64 %28, 1
store i64 %29, ptr %3, align 8
br label %4, !llvm.loop !6
30: ; preds = %25, %4
%31 = load ptr, ptr %2, align 8
%32 = load i64, ptr %3, align 8
%33 = getelementptr inbounds i8, ptr %31, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = and i32 %35, -1
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %30
%39 = load i64, ptr %3, align 8
br label %41
40: ; preds = %30
br label %41
41: ; preds = %40, %38
%42 = phi i64 [ %39, %38 ], [ 0, %40 ]
ret i64 %42
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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_7_i4s8q.c"
target datalayout = "e-m:e-p270: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 @sp_strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i64, ptr %3, align 8
%6 = getelementptr inbounds i8, ptr %4, i64 %5
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %26
%11 = load ptr, ptr %2, align 8
%12 = load i64, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %11, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 9
br i1 %16, label %24, label %17
17: ; preds = %10
%18 = load ptr, ptr %2, align 8
%19 = load i64, ptr %3, align 8
%20 = getelementptr inbounds i8, ptr %18, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 32
br i1 %23, label %24, label %25
24: ; preds = %17, %10
br label %35
25: ; preds = %17
br label %26
26: ; preds = %25
%27 = load i64, ptr %3, align 8
%28 = add i64 %27, 1
store i64 %28, ptr %3, align 8
%29 = load ptr, ptr %2, align 8
%30 = load i64, ptr %3, align 8
%31 = getelementptr inbounds i8, ptr %29, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br i1 %34, label %10, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %26
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %35
35: ; preds = %.loopexit, %24
%36 = load ptr, ptr %2, align 8
%37 = load i64, ptr %3, align 8
%38 = getelementptr inbounds i8, ptr %36, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = and i32 %40, -1
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %35
%44 = load i64, ptr %3, align 8
br label %46
45: ; preds = %35
br label %46
46: ; preds = %45, %43
%47 = phi i64 [ %44, %43 ], [ 0, %45 ]
ret i64 %47
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpqnjjizb1.c'
source_filename = "/tmp/tmpqnjjizb1.c"
target datalayout = "e-m:e-p270: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/tmpqnjjizb1.c"
target datalayout = "e-m:e-p270: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/tmpa6dkd7yw.c'
source_filename = "/tmp/tmpa6dkd7yw.c"
target datalayout = "e-m:e-p270: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.s = private unnamed_addr constant [59 x i8] c"This is my test string, but its not much of a test string.\00", align 16
@.str = private unnamed_addr constant [5 x i8] c"test\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"In the string: \22%s\22\0A\00", align 1
@.str.2 = private unnamed_addr constant [53 x i8] c"The leftmost occurrence of \22%s\22 is at position %d.\0A\00", align 1
@.str.3 = private unnamed_addr constant [53 x i8] c"The rightmost occurrence of \22%s\22 is at position %d.\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"string\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"This\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"not in string\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [59 x i8], align 16
%3 = alloca [100 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.s, i64 59, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 100, i1 false)
%4 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%5 = call i32 @strcpy(ptr noundef %4, ptr noundef @.str)
%6 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%7 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %6)
%8 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%9 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @strindex(ptr noundef %9, ptr noundef %10)
%12 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %8, i32 noundef %11)
%13 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%14 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%15 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%16 = call i32 @strrindex(ptr noundef %14, ptr noundef %15)
%17 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %13, i32 noundef %16)
%18 = call i32 @putchar(i8 noundef signext 10)
%19 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%20 = call i32 @strcpy(ptr noundef %19, ptr noundef @.str.4)
%21 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%22 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %21)
%23 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%24 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%25 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%26 = call i32 @strindex(ptr noundef %24, ptr noundef %25)
%27 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %23, i32 noundef %26)
%28 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%29 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%30 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%31 = call i32 @strrindex(ptr noundef %29, ptr noundef %30)
%32 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %28, i32 noundef %31)
%33 = call i32 @putchar(i8 noundef signext 10)
%34 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%35 = call i32 @strcpy(ptr noundef %34, ptr noundef @.str.5)
%36 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%37 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %36)
%38 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%39 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%40 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%41 = call i32 @strindex(ptr noundef %39, ptr noundef %40)
%42 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %38, i32 noundef %41)
%43 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%44 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%45 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%46 = call i32 @strrindex(ptr noundef %44, ptr noundef %45)
%47 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %43, i32 noundef %46)
%48 = call i32 @putchar(i8 noundef signext 10)
%49 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%50 = call i32 @strcpy(ptr noundef %49, ptr noundef @.str.6)
%51 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%52 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %51)
%53 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%54 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%55 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%56 = call i32 @strindex(ptr noundef %54, ptr noundef %55)
%57 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %53, i32 noundef %56)
%58 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%59 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%60 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%61 = call i32 @strrindex(ptr noundef %59, ptr noundef %60)
%62 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %58, i32 noundef %61)
%63 = call i32 @putchar(i8 noundef signext 10)
%64 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%65 = call i32 @strcpy(ptr noundef %64, ptr noundef @.str.7)
%66 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%67 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %66)
%68 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%69 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%70 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%71 = call i32 @strindex(ptr noundef %69, ptr noundef %70)
%72 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %68, i32 noundef %71)
%73 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%74 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%75 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%76 = call i32 @strrindex(ptr noundef %74, ptr noundef %75)
%77 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %73, i32 noundef %76)
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
; 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 @strcpy(ptr noundef, ptr noundef) #3
declare i32 @printf(ptr noundef, ptr noundef, ...) #3
declare i32 @strindex(ptr noundef, ptr noundef) #3
declare i32 @strrindex(ptr noundef, ptr noundef) #3
declare i32 @putchar(i8 noundef signext) #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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa6dkd7yw.c"
target datalayout = "e-m:e-p270: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.s = private unnamed_addr constant [59 x i8] c"This is my test string, but its not much of a test string.\00", align 16
@.str = private unnamed_addr constant [5 x i8] c"test\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"In the string: \22%s\22\0A\00", align 1
@.str.2 = private unnamed_addr constant [53 x i8] c"The leftmost occurrence of \22%s\22 is at position %d.\0A\00", align 1
@.str.3 = private unnamed_addr constant [53 x i8] c"The rightmost occurrence of \22%s\22 is at position %d.\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"string\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"This\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"not in string\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [59 x i8], align 16
%3 = alloca [100 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.s, i64 59, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 100, i1 false)
%4 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%5 = call i32 @strcpy(ptr noundef %4, ptr noundef @.str)
%6 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%7 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %6)
%8 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%9 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @strindex(ptr noundef %9, ptr noundef %10)
%12 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %8, i32 noundef %11)
%13 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%14 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%15 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%16 = call i32 @strrindex(ptr noundef %14, ptr noundef %15)
%17 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %13, i32 noundef %16)
%18 = call i32 @putchar(i8 noundef signext 10)
%19 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%20 = call i32 @strcpy(ptr noundef %19, ptr noundef @.str.4)
%21 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%22 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %21)
%23 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%24 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%25 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%26 = call i32 @strindex(ptr noundef %24, ptr noundef %25)
%27 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %23, i32 noundef %26)
%28 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%29 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%30 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%31 = call i32 @strrindex(ptr noundef %29, ptr noundef %30)
%32 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %28, i32 noundef %31)
%33 = call i32 @putchar(i8 noundef signext 10)
%34 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%35 = call i32 @strcpy(ptr noundef %34, ptr noundef @.str.5)
%36 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%37 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %36)
%38 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%39 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%40 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%41 = call i32 @strindex(ptr noundef %39, ptr noundef %40)
%42 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %38, i32 noundef %41)
%43 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%44 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%45 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%46 = call i32 @strrindex(ptr noundef %44, ptr noundef %45)
%47 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %43, i32 noundef %46)
%48 = call i32 @putchar(i8 noundef signext 10)
%49 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%50 = call i32 @strcpy(ptr noundef %49, ptr noundef @.str.6)
%51 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%52 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %51)
%53 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%54 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%55 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%56 = call i32 @strindex(ptr noundef %54, ptr noundef %55)
%57 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %53, i32 noundef %56)
%58 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%59 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%60 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%61 = call i32 @strrindex(ptr noundef %59, ptr noundef %60)
%62 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %58, i32 noundef %61)
%63 = call i32 @putchar(i8 noundef signext 10)
%64 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%65 = call i32 @strcpy(ptr noundef %64, ptr noundef @.str.7)
%66 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%67 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %66)
%68 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%69 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%70 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%71 = call i32 @strindex(ptr noundef %69, ptr noundef %70)
%72 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %68, i32 noundef %71)
%73 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%74 = getelementptr inbounds [59 x i8], ptr %2, i64 0, i64 0
%75 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%76 = call i32 @strrindex(ptr noundef %74, ptr noundef %75)
%77 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %73, i32 noundef %76)
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
; 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 @strcpy(ptr noundef, ptr noundef) #3
declare i32 @printf(ptr noundef, ptr noundef, ...) #3
declare i32 @strindex(ptr noundef, ptr noundef) #3
declare i32 @strrindex(ptr noundef, ptr noundef) #3
declare i32 @putchar(i8 noundef signext) #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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.