llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmphvhs2xg2.c'
source_filename = "/tmp/tmphvhs2xg2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LC_ALL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_init_unicode() #0 {
%1 = load i32, ptr @LC_ALL, align 4
%2 = call i32 @setlocale(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @setlocale(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphvhs2xg2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LC_ALL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_init_unicode() #0 {
%1 = load i32, ptr @LC_ALL, align 4
%2 = call i32 @setlocale(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @setlocale(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvattyhed.c'
source_filename = "/tmp/tmpvattyhed.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @exist_pw_uid(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 = call i32 @getpwuid(i32 noundef %4)
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %1
store i32 -1, ptr %2, align 4
br label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %8, %7
%10 = load i32, ptr %2, align 4
ret i32 %10
}
declare i32 @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/tmpvattyhed.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @exist_pw_uid(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 = call i32 @getpwuid(i32 noundef %4)
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %1
store i32 -1, ptr %2, align 4
br label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %8, %7
%10 = load i32, ptr %2, align 4
ret i32 %10
}
declare i32 @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/tmp3wp6igi7.c'
source_filename = "/tmp/tmp3wp6igi7.c"
target datalayout = "e-m:e-p270: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/tmp3wp6igi7.c"
target datalayout = "e-m:e-p270: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/tmpdygv6gjm.c'
source_filename = "/tmp/tmpdygv6gjm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"sequencia.txt\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@.str.2 = private unnamed_addr constant [72 x i8] c"ATENCAO, NAO FOI POSSIVEL CRIAR BLOCOS EXATOS.\0AHA %d FOLHAS EM BRANCO.\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"BLOCO NUMERO: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"%d, %d\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sequencia(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%15 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %15, ptr %6, align 8
%16 = load i32, ptr %5, align 4
%17 = sdiv i32 %16, 2
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %5, align 4
%19 = sdiv i32 %18, 2
%20 = add nsw i32 %19, 1
store i32 %20, ptr %8, align 4
%21 = load i32, ptr %5, align 4
%22 = sdiv i32 %21, 2
%23 = sub nsw i32 %22, 1
store i32 %23, ptr %9, align 4
%24 = load i32, ptr %5, align 4
%25 = sdiv i32 %24, 2
%26 = add nsw i32 %25, 2
store i32 %26, ptr %10, align 4
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %4, align 4
%29 = mul nsw i32 %28, 4
%30 = sdiv i32 %27, %29
store i32 %30, ptr %13, align 4
%31 = load i32, ptr %5, align 4
%32 = load i32, ptr %4, align 4
%33 = mul nsw i32 %32, 4
%34 = load i32, ptr %13, align 4
%35 = mul nsw i32 %33, %34
%36 = sub nsw i32 %31, %35
store i32 %36, ptr %14, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %2
%39 = load i32, ptr %14, align 4
%40 = call i32 @printf(ptr noundef @.str.2, i32 noundef %39)
br label %41
41: ; preds = %38, %2
store i32 0, ptr %12, align 4
br label %42
42: ; preds = %103, %41
%43 = load i32, ptr %12, align 4
%44 = load i32, ptr %13, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %106
46: ; preds = %42
%47 = load ptr, ptr %6, align 8
%48 = load i32, ptr %12, align 4
%49 = add nsw i32 %48, 1
%50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.3, i32 noundef %49)
%51 = load i32, ptr %4, align 4
%52 = sub nsw i32 %51, 1
store i32 %52, ptr %11, align 4
br label %53
53: ; preds = %71, %46
%54 = load i32, ptr %11, align 4
%55 = icmp sge i32 %54, 0
br i1 %55, label %56, label %74
56: ; preds = %53
%57 = load ptr, ptr %6, align 8
%58 = load i32, ptr %7, align 4
%59 = load i32, ptr %8, align 4
%60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.4, i32 noundef %58, i32 noundef %59)
%61 = load i32, ptr %11, align 4
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %56
%64 = load ptr, ptr %6, align 8
%65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.5)
br label %66
66: ; preds = %63, %56
%67 = load i32, ptr %7, align 4
%68 = sub nsw i32 %67, 2
store i32 %68, ptr %7, align 4
%69 = load i32, ptr %8, align 4
%70 = add nsw i32 %69, 2
store i32 %70, ptr %8, align 4
br label %71
71: ; preds = %66
%72 = load i32, ptr %11, align 4
%73 = add nsw i32 %72, -1
store i32 %73, ptr %11, align 4
br label %53, !llvm.loop !6
74: ; preds = %53
%75 = load ptr, ptr %6, align 8
%76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.6)
%77 = load i32, ptr %4, align 4
%78 = sub nsw i32 %77, 1
store i32 %78, ptr %11, align 4
br label %79
79: ; preds = %97, %74
%80 = load i32, ptr %11, align 4
%81 = icmp sge i32 %80, 0
br i1 %81, label %82, label %100
82: ; preds = %79
%83 = load ptr, ptr %6, align 8
%84 = load i32, ptr %9, align 4
%85 = load i32, ptr %10, align 4
%86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.4, i32 noundef %84, i32 noundef %85)
%87 = load i32, ptr %11, align 4
%88 = icmp sgt i32 %87, 0
br i1 %88, label %89, label %92
89: ; preds = %82
%90 = load ptr, ptr %6, align 8
%91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef @.str.5)
br label %92
92: ; preds = %89, %82
%93 = load i32, ptr %9, align 4
%94 = sub nsw i32 %93, 2
store i32 %94, ptr %9, align 4
%95 = load i32, ptr %10, align 4
%96 = add nsw i32 %95, 2
store i32 %96, ptr %10, align 4
br label %97
97: ; preds = %92
%98 = load i32, ptr %11, align 4
%99 = add nsw i32 %98, -1
store i32 %99, ptr %11, align 4
br label %79, !llvm.loop !8
100: ; preds = %79
%101 = load ptr, ptr %6, align 8
%102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.7)
br label %103
103: ; preds = %100
%104 = load i32, ptr %12, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %12, align 4
br label %42, !llvm.loop !9
106: ; preds = %42
%107 = load ptr, ptr %6, align 8
%108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.6)
%109 = load ptr, ptr %6, align 8
%110 = call i32 @fclose(ptr noundef %109)
%111 = load i32, ptr %3, align 4
ret i32 %111
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdygv6gjm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"sequencia.txt\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@.str.2 = private unnamed_addr constant [72 x i8] c"ATENCAO, NAO FOI POSSIVEL CRIAR BLOCOS EXATOS.\0AHA %d FOLHAS EM BRANCO.\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"BLOCO NUMERO: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"%d, %d\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sequencia(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%15 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %15, ptr %6, align 8
%16 = load i32, ptr %5, align 4
%17 = sdiv i32 %16, 2
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %5, align 4
%19 = sdiv i32 %18, 2
%20 = add nsw i32 %19, 1
store i32 %20, ptr %8, align 4
%21 = load i32, ptr %5, align 4
%22 = sdiv i32 %21, 2
%23 = sub nsw i32 %22, 1
store i32 %23, ptr %9, align 4
%24 = load i32, ptr %5, align 4
%25 = sdiv i32 %24, 2
%26 = add nsw i32 %25, 2
store i32 %26, ptr %10, align 4
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %4, align 4
%29 = mul nsw i32 %28, 4
%30 = sdiv i32 %27, %29
store i32 %30, ptr %13, align 4
%31 = load i32, ptr %5, align 4
%32 = load i32, ptr %4, align 4
%33 = mul nsw i32 %32, 4
%34 = load i32, ptr %13, align 4
%35 = mul nsw i32 %33, %34
%36 = sub nsw i32 %31, %35
store i32 %36, ptr %14, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %2
%39 = load i32, ptr %14, align 4
%40 = call i32 @printf(ptr noundef @.str.2, i32 noundef %39)
br label %41
41: ; preds = %38, %2
store i32 0, ptr %12, align 4
%42 = load i32, ptr %12, align 4
%43 = load i32, ptr %13, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %.lr.ph5, label %110
.lr.ph5: ; preds = %41
br label %45
45: ; preds = %.lr.ph5, %104
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %12, align 4
%48 = add nsw i32 %47, 1
%49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.3, i32 noundef %48)
%50 = load i32, ptr %4, align 4
%51 = sub nsw i32 %50, 1
store i32 %51, ptr %11, align 4
%52 = load i32, ptr %11, align 4
%53 = icmp sge i32 %52, 0
br i1 %53, label %.lr.ph, label %74
.lr.ph: ; preds = %45
br label %54
54: ; preds = %.lr.ph, %69
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr %8, align 4
%58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.4, i32 noundef %56, i32 noundef %57)
%59 = load i32, ptr %11, align 4
%60 = icmp sgt i32 %59, 0
br i1 %60, label %61, label %64
61: ; preds = %54
%62 = load ptr, ptr %6, align 8
%63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.5)
br label %64
64: ; preds = %61, %54
%65 = load i32, ptr %7, align 4
%66 = sub nsw i32 %65, 2
store i32 %66, ptr %7, align 4
%67 = load i32, ptr %8, align 4
%68 = add nsw i32 %67, 2
store i32 %68, ptr %8, align 4
br label %69
69: ; preds = %64
%70 = load i32, ptr %11, align 4
%71 = add nsw i32 %70, -1
store i32 %71, ptr %11, align 4
%72 = load i32, ptr %11, align 4
%73 = icmp sge i32 %72, 0
br i1 %73, label %54, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %69
br label %74
74: ; preds = %._crit_edge, %45
%75 = load ptr, ptr %6, align 8
%76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.6)
%77 = load i32, ptr %4, align 4
%78 = sub nsw i32 %77, 1
store i32 %78, ptr %11, align 4
%79 = load i32, ptr %11, align 4
%80 = icmp sge i32 %79, 0
br i1 %80, label %.lr.ph2, label %101
.lr.ph2: ; preds = %74
br label %81
81: ; preds = %.lr.ph2, %96
%82 = load ptr, ptr %6, align 8
%83 = load i32, ptr %9, align 4
%84 = load i32, ptr %10, align 4
%85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.4, i32 noundef %83, i32 noundef %84)
%86 = load i32, ptr %11, align 4
%87 = icmp sgt i32 %86, 0
br i1 %87, label %88, label %91
88: ; preds = %81
%89 = load ptr, ptr %6, align 8
%90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.5)
br label %91
91: ; preds = %88, %81
%92 = load i32, ptr %9, align 4
%93 = sub nsw i32 %92, 2
store i32 %93, ptr %9, align 4
%94 = load i32, ptr %10, align 4
%95 = add nsw i32 %94, 2
store i32 %95, ptr %10, align 4
br label %96
96: ; preds = %91
%97 = load i32, ptr %11, align 4
%98 = add nsw i32 %97, -1
store i32 %98, ptr %11, align 4
%99 = load i32, ptr %11, align 4
%100 = icmp sge i32 %99, 0
br i1 %100, label %81, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %96
br label %101
101: ; preds = %._crit_edge3, %74
%102 = load ptr, ptr %6, align 8
%103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.7)
br label %104
104: ; preds = %101
%105 = load i32, ptr %12, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %12, align 4
%107 = load i32, ptr %12, align 4
%108 = load i32, ptr %13, align 4
%109 = icmp slt i32 %107, %108
br i1 %109, label %45, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %104
br label %110
110: ; preds = %._crit_edge6, %41
%111 = load ptr, ptr %6, align 8
%112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef @.str.6)
%113 = load ptr, ptr %6, align 8
%114 = call i32 @fclose(ptr noundef %113)
%115 = load i32, ptr %3, align 4
ret i32 %115
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpi1dpvbhw.c'
source_filename = "/tmp/tmpi1dpvbhw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"proxy_passwd=\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"proxy_passwd=%s%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1024 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
br label %10
10: ; preds = %51, %2
%11 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%12 = load i32, ptr @stdin, align 4
%13 = call i64 @fgets(ptr noundef %11, i32 noundef 1024, i32 noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %52
15: ; preds = %10
%16 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%17 = call i32 @strlen(ptr noundef %16)
%18 = sub i32 %17, 1
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 %19
store i8 0, ptr %20, align 1
%21 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%22 = call i64 @strncmp(ptr noundef %21, ptr noundef @.str, i32 noundef 13)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %15
%25 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%26 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %25)
br label %51
27: ; preds = %15
%28 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%29 = getelementptr inbounds i8, ptr %28, i64 13
store ptr %29, ptr %7, align 8
store i32 0, ptr %9, align 4
br label %30
30: ; preds = %45, %27
%31 = load i32, ptr %9, align 4
%32 = load ptr, ptr %7, align 8
%33 = call i32 @strlen(ptr noundef %32)
%34 = icmp ult i32 %31, %33
br i1 %34, label %35, label %48
35: ; preds = %30
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %9, align 4
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
store ptr %39, ptr %8, align 8
%40 = load ptr, ptr %8, align 8
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = add nsw i32 %42, 100
%44 = trunc i32 %43 to i8
store i8 %44, ptr %40, align 1
br label %45
45: ; preds = %35
%46 = load i32, ptr %9, align 4
%47 = add i32 %46, 1
store i32 %47, ptr %9, align 4
br label %30, !llvm.loop !6
48: ; preds = %30
%49 = load ptr, ptr %7, align 8
%50 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %49, i32 noundef 174)
br label %51
51: ; preds = %48, %24
br label %10, !llvm.loop !8
52: ; preds = %10
ret i32 0
}
declare i64 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi1dpvbhw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"proxy_passwd=\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"proxy_passwd=%s%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1024 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%11 = load i32, ptr @stdin, align 4
%12 = call i64 @fgets(ptr noundef %10, i32 noundef 1024, i32 noundef %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %.lr.ph2, label %57
.lr.ph2: ; preds = %2
br label %14
14: ; preds = %.lr.ph2, %53
%15 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%16 = call i32 @strlen(ptr noundef %15)
%17 = sub i32 %16, 1
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 %18
store i8 0, ptr %19, align 1
%20 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%21 = call i64 @strncmp(ptr noundef %20, ptr noundef @.str, i32 noundef 13)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %14
%24 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%25 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %24)
br label %53
26: ; preds = %14
%27 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%28 = getelementptr inbounds i8, ptr %27, i64 13
store ptr %28, ptr %7, align 8
store i32 0, ptr %9, align 4
%29 = load i32, ptr %9, align 4
%30 = load ptr, ptr %7, align 8
%31 = call i32 @strlen(ptr noundef %30)
%32 = icmp ult i32 %29, %31
br i1 %32, label %.lr.ph, label %50
.lr.ph: ; preds = %26
br label %33
33: ; preds = %.lr.ph, %43
%34 = load ptr, ptr %7, align 8
%35 = load i32, ptr %9, align 4
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
store ptr %37, ptr %8, align 8
%38 = load ptr, ptr %8, align 8
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = add nsw i32 %40, 100
%42 = trunc i32 %41 to i8
store i8 %42, ptr %38, align 1
br label %43
43: ; preds = %33
%44 = load i32, ptr %9, align 4
%45 = add i32 %44, 1
store i32 %45, ptr %9, align 4
%46 = load i32, ptr %9, align 4
%47 = load ptr, ptr %7, align 8
%48 = call i32 @strlen(ptr noundef %47)
%49 = icmp ult i32 %46, %48
br i1 %49, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %50
50: ; preds = %._crit_edge, %26
%51 = load ptr, ptr %7, align 8
%52 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %51, i32 noundef 174)
br label %53
53: ; preds = %50, %23
%54 = load i32, ptr @stdin, align 4
%55 = call i64 @fgets(ptr noundef %10, i32 noundef 1024, i32 noundef %54)
%56 = icmp ne i64 %55, 0
br i1 %56, label %14, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %53
br label %57
57: ; preds = %._crit_edge3, %2
ret i32 0
}
declare i64 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpe_vjap81.c'
source_filename = "/tmp/tmpe_vjap81.c"
target datalayout = "e-m:e-p270: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/tmpe_vjap81.c"
target datalayout = "e-m:e-p270: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/tmpm_jlwdr5.c'
source_filename = "/tmp/tmpm_jlwdr5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FanChannelRPMSet(i64 noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load i64, ptr %4, align 8
%8 = icmp eq i64 %7, 1074282496
%9 = zext i1 %8 to i32
%10 = call i32 @DEBUG_ASSERT(i32 noundef %9)
%11 = load i64, ptr %5, align 8
%12 = icmp ult i64 %11, 6
%13 = zext i1 %12 to i32
%14 = call i32 @DEBUG_ASSERT(i32 noundef %13)
%15 = load i64, ptr %6, align 8
%16 = icmp ult i64 %15, 8192
%17 = zext i1 %16 to i32
%18 = call i32 @DEBUG_ASSERT(i32 noundef %17)
%19 = load i64, ptr %6, align 8
%20 = load i64, ptr %4, align 8
%21 = add i64 %20, 20
%22 = load i64, ptr %5, align 8
%23 = mul i64 %22, 16
%24 = add i64 %21, %23
%25 = inttoptr i64 %24 to ptr
store volatile i64 %19, ptr %25, align 8
ret void
}
declare i32 @DEBUG_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/tmpm_jlwdr5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FanChannelRPMSet(i64 noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load i64, ptr %4, align 8
%8 = icmp eq i64 %7, 1074282496
%9 = zext i1 %8 to i32
%10 = call i32 @DEBUG_ASSERT(i32 noundef %9)
%11 = load i64, ptr %5, align 8
%12 = icmp ult i64 %11, 6
%13 = zext i1 %12 to i32
%14 = call i32 @DEBUG_ASSERT(i32 noundef %13)
%15 = load i64, ptr %6, align 8
%16 = icmp ult i64 %15, 8192
%17 = zext i1 %16 to i32
%18 = call i32 @DEBUG_ASSERT(i32 noundef %17)
%19 = load i64, ptr %6, align 8
%20 = load i64, ptr %4, align 8
%21 = add i64 %20, 20
%22 = load i64, ptr %5, align 8
%23 = mul i64 %22, 16
%24 = add i64 %21, %23
%25 = inttoptr i64 %24 to ptr
store volatile i64 %19, ptr %25, align 8
ret void
}
declare i32 @DEBUG_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/tmpwsg9eopa.c'
source_filename = "/tmp/tmpwsg9eopa.c"
target datalayout = "e-m:e-p270: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/tmpwsg9eopa.c"
target datalayout = "e-m:e-p270: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/tmp5h3u_s35.c'
source_filename = "/tmp/tmp5h3u_s35.c"
target datalayout = "e-m:e-p270: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 [26 x i8] c"failed to read from file\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_commands(ptr noundef %0, i32 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
%8 = alloca [4096 x i8], align 16
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 0, ptr %9, align 4
store i8 0, ptr %10, align 1
store i8 0, ptr %11, align 1
br label %14
14: ; preds = %44, %3
%15 = load i8, ptr %10, align 1
%16 = icmp ne i8 %15, 0
%17 = xor i1 %16, true
br i1 %17, label %18, label %45
18: ; preds = %14
%19 = load i32, ptr %6, align 4
%20 = call i32 @read(i32 noundef %19, ptr noundef %11, i32 noundef 1)
store i32 %20, ptr %12, align 4
%21 = load i32, ptr %12, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %33
23: ; preds = %18
%24 = call i32 @printf(ptr noundef @.str)
%25 = load i32, ptr %6, align 4
%26 = call i32 @close(i32 noundef %25)
%27 = load i32, ptr %7, align 4
%28 = icmp ne i32 %27, 1
br i1 %28, label %29, label %32
29: ; preds = %23
%30 = load i32, ptr %7, align 4
%31 = call i32 @close(i32 noundef %30)
br label %32
32: ; preds = %29, %23
store i32 1, ptr %4, align 4
br label %66
33: ; preds = %18
%34 = load i32, ptr %12, align 4
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %33
store i8 1, ptr %10, align 1
br label %44
37: ; preds = %33
%38 = load i8, ptr %11, align 1
%39 = load i32, ptr %9, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 %40
store i8 %38, ptr %41, align 1
%42 = load i32, ptr %9, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %9, align 4
br label %44
44: ; preds = %37, %36
br label %14, !llvm.loop !6
45: ; preds = %14
store i32 0, ptr %13, align 4
%46 = load i32, ptr %9, align 4
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %56
48: ; preds = %45
%49 = load i32, ptr %9, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 %50
store i8 0, ptr %51, align 1
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
%54 = load i32, ptr %7, align 4
%55 = call i32 @send_command(ptr noundef %52, ptr noundef %53, i32 noundef %54)
store i32 %55, ptr %13, align 4
br label %56
56: ; preds = %48, %45
%57 = load i32, ptr %6, align 4
%58 = call i32 @close(i32 noundef %57)
%59 = load i32, ptr %7, align 4
%60 = icmp ne i32 %59, 1
br i1 %60, label %61, label %64
61: ; preds = %56
%62 = load i32, ptr %7, align 4
%63 = call i32 @close(i32 noundef %62)
br label %64
64: ; preds = %61, %56
%65 = load i32, ptr %13, align 4
store i32 %65, ptr %4, align 4
br label %66
66: ; preds = %64, %32
%67 = load i32, ptr %4, align 4
ret i32 %67
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @send_command(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/tmp5h3u_s35.c"
target datalayout = "e-m:e-p270: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 [26 x i8] c"failed to read from file\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_commands(ptr noundef %0, i32 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
%8 = alloca [4096 x i8], align 16
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 0, ptr %9, align 4
store i8 0, ptr %10, align 1
store i8 0, ptr %11, align 1
%14 = load i8, ptr %10, align 1
%15 = icmp ne i8 %14, 0
%16 = xor i1 %15, true
br i1 %16, label %.lr.ph, label %47
.lr.ph: ; preds = %3
br label %17
17: ; preds = %.lr.ph, %43
%18 = load i32, ptr %6, align 4
%19 = call i32 @read(i32 noundef %18, ptr noundef %11, i32 noundef 1)
store i32 %19, ptr %12, align 4
%20 = load i32, ptr %12, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %32
22: ; preds = %17
%23 = call i32 @printf(ptr noundef @.str)
%24 = load i32, ptr %6, align 4
%25 = call i32 @close(i32 noundef %24)
%26 = load i32, ptr %7, align 4
%27 = icmp ne i32 %26, 1
br i1 %27, label %28, label %31
28: ; preds = %22
%29 = load i32, ptr %7, align 4
%30 = call i32 @close(i32 noundef %29)
br label %31
31: ; preds = %28, %22
store i32 1, ptr %4, align 4
br label %68
32: ; preds = %17
%33 = load i32, ptr %12, align 4
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %32
store i8 1, ptr %10, align 1
br label %43
36: ; preds = %32
%37 = load i8, ptr %11, align 1
%38 = load i32, ptr %9, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 %39
store i8 %37, ptr %40, align 1
%41 = load i32, ptr %9, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %9, align 4
br label %43
43: ; preds = %36, %35
%44 = load i8, ptr %10, align 1
%45 = icmp ne i8 %44, 0
%46 = xor i1 %45, true
br i1 %46, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %47
47: ; preds = %._crit_edge, %3
store i32 0, ptr %13, align 4
%48 = load i32, ptr %9, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %58
50: ; preds = %47
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 %52
store i8 0, ptr %53, align 1
%54 = load ptr, ptr %5, align 8
%55 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
%56 = load i32, ptr %7, align 4
%57 = call i32 @send_command(ptr noundef %54, ptr noundef %55, i32 noundef %56)
store i32 %57, ptr %13, align 4
br label %58
58: ; preds = %50, %47
%59 = load i32, ptr %6, align 4
%60 = call i32 @close(i32 noundef %59)
%61 = load i32, ptr %7, align 4
%62 = icmp ne i32 %61, 1
br i1 %62, label %63, label %66
63: ; preds = %58
%64 = load i32, ptr %7, align 4
%65 = call i32 @close(i32 noundef %64)
br label %66
66: ; preds = %63, %58
%67 = load i32, ptr %13, align 4
store i32 %67, ptr %4, align 4
br label %68
68: ; preds = %66, %31
%69 = load i32, ptr %4, align 4
ret i32 %69
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @send_command(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/tmpzxt20ybp.c'
source_filename = "/tmp/tmpzxt20ybp.c"
target datalayout = "e-m:e-p270: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 [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [100 x [101 x i8]], align 16
%8 = alloca [100 x [101 x i8]], align 16
%9 = alloca [101 x i8], align 16
store i32 0, ptr %1, align 4
%10 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
br label %11
11: ; preds = %56, %0
%12 = load i32, ptr %2, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %59
14: ; preds = %11
%15 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%16 = getelementptr inbounds [101 x i8], ptr %9, i64 0, i64 0
%17 = call i32 @gets(ptr noundef %16)
store i32 0, ptr %6, align 4
br label %18
18: ; preds = %28, %14
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %31
22: ; preds = %18
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [100 x [101 x i8]], ptr %7, i64 0, i64 %24
%26 = getelementptr inbounds [101 x i8], ptr %25, i64 0, i64 0
%27 = call i32 @gets(ptr noundef %26)
br label %28
28: ; preds = %22
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
br label %18, !llvm.loop !6
31: ; preds = %18
%32 = getelementptr inbounds [100 x [101 x i8]], ptr %7, i64 0, i64 0
%33 = getelementptr inbounds [100 x [101 x i8]], ptr %8, i64 0, i64 0
%34 = load i32, ptr %3, align 4
%35 = load i32, ptr %4, align 4
%36 = load i32, ptr %5, align 4
%37 = call i32 @simulateWar(ptr noundef %32, ptr noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %36)
store i32 0, ptr %6, align 4
br label %38
38: ; preds = %48, %31
%39 = load i32, ptr %6, align 4
%40 = load i32, ptr %3, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %51
42: ; preds = %38
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [100 x [101 x i8]], ptr %8, i64 0, i64 %44
%46 = getelementptr inbounds [101 x i8], ptr %45, i64 0, i64 0
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %46)
br label %48
48: ; preds = %42
%49 = load i32, ptr %6, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %6, align 4
br label %38, !llvm.loop !8
51: ; preds = %38
%52 = load i32, ptr %2, align 4
%53 = icmp ne i32 %52, 1
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %56
56: ; preds = %54, %51
%57 = load i32, ptr %2, align 4
%58 = add nsw i32 %57, -1
store i32 %58, ptr %2, align 4
br label %11, !llvm.loop !9
59: ; preds = %11
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @gets(ptr noundef) #1
declare i32 @simulateWar(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzxt20ybp.c"
target datalayout = "e-m:e-p270: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 [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [100 x [101 x i8]], align 16
%8 = alloca [100 x [101 x i8]], align 16
%9 = alloca [101 x i8], align 16
store i32 0, ptr %1, align 4
%10 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%11 = load i32, ptr %2, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %.lr.ph5, label %64
.lr.ph5: ; preds = %0
br label %13
13: ; preds = %.lr.ph5, %59
%14 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%15 = getelementptr inbounds [101 x i8], ptr %9, i64 0, i64 0
%16 = call i32 @gets(ptr noundef %15)
store i32 0, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %32
.lr.ph: ; preds = %13
br label %20
20: ; preds = %.lr.ph, %26
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [100 x [101 x i8]], ptr %7, i64 0, i64 %22
%24 = getelementptr inbounds [101 x i8], ptr %23, i64 0, i64 0
%25 = call i32 @gets(ptr noundef %24)
br label %26
26: ; preds = %20
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %3, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %13
%33 = getelementptr inbounds [100 x [101 x i8]], ptr %7, i64 0, i64 0
%34 = getelementptr inbounds [100 x [101 x i8]], ptr %8, i64 0, i64 0
%35 = load i32, ptr %3, align 4
%36 = load i32, ptr %4, align 4
%37 = load i32, ptr %5, align 4
%38 = call i32 @simulateWar(ptr noundef %33, ptr noundef %34, i32 noundef %35, i32 noundef %36, i32 noundef %37)
store i32 0, ptr %6, align 4
%39 = load i32, ptr %6, align 4
%40 = load i32, ptr %3, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %.lr.ph2, label %54
.lr.ph2: ; preds = %32
br label %42
42: ; preds = %.lr.ph2, %48
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [100 x [101 x i8]], ptr %8, i64 0, i64 %44
%46 = getelementptr inbounds [101 x i8], ptr %45, i64 0, i64 0
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %46)
br label %48
48: ; preds = %42
%49 = load i32, ptr %6, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %6, align 4
%51 = load i32, ptr %6, align 4
%52 = load i32, ptr %3, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %42, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %48
br label %54
54: ; preds = %._crit_edge3, %32
%55 = load i32, ptr %2, align 4
%56 = icmp ne i32 %55, 1
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %59
59: ; preds = %57, %54
%60 = load i32, ptr %2, align 4
%61 = add nsw i32 %60, -1
store i32 %61, ptr %2, align 4
%62 = load i32, ptr %2, align 4
%63 = icmp ne i32 %62, 0
br i1 %63, label %13, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %59
br label %64
64: ; preds = %._crit_edge6, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @gets(ptr noundef) #1
declare i32 @simulateWar(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp54zvqx0i.c'
source_filename = "/tmp/tmp54zvqx0i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @zlink(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
br label %6
6: ; preds = %17, %2
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @link(ptr noundef %7, ptr noundef %8)
store i32 %9, ptr %5, align 4
br label %10
10: ; preds = %6
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %10
%14 = load i64, ptr @errno, align 8
%15 = load i64, ptr @EINTR, align 8
%16 = icmp eq i64 %14, %15
br label %17
17: ; preds = %13, %10
%18 = phi i1 [ false, %10 ], [ %16, %13 ]
br i1 %18, label %6, label %19, !llvm.loop !6
19: ; preds = %17
%20 = load i32, ptr %5, align 4
ret i32 %20
}
declare i32 @link(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/tmp54zvqx0i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @zlink(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
br label %6
6: ; preds = %17, %2
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @link(ptr noundef %7, ptr noundef %8)
store i32 %9, ptr %5, align 4
br label %10
10: ; preds = %6
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %10
%14 = load i64, ptr @errno, align 8
%15 = load i64, ptr @EINTR, align 8
%16 = icmp eq i64 %14, %15
br label %17
17: ; preds = %13, %10
%18 = phi i1 [ false, %10 ], [ %16, %13 ]
br i1 %18, label %6, label %19, !llvm.loop !6
19: ; preds = %17
%20 = load i32, ptr %5, align 4
ret i32 %20
}
declare i32 @link(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/tmpz3txtmcv.c'
source_filename = "/tmp/tmpz3txtmcv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%.4f\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c" %f is negative\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"%f is positive\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"input is zero\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load float, ptr %2, align 4
%5 = fpext float %4 to double
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %5)
%7 = load float, ptr %2, align 4
%8 = fcmp olt float %7, 0.000000e+00
br i1 %8, label %9, label %13
9: ; preds = %0
%10 = load float, ptr %2, align 4
%11 = fpext float %10 to double
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %11)
br label %23
13: ; preds = %0
%14 = load float, ptr %2, align 4
%15 = fcmp ogt float %14, 0.000000e+00
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = load float, ptr %2, align 4
%18 = fpext float %17 to double
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %18)
br label %22
20: ; preds = %13
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %22
22: ; preds = %20, %16
br label %23
23: ; preds = %22, %9
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz3txtmcv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%.4f\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c" %f is negative\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"%f is positive\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"input is zero\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load float, ptr %2, align 4
%5 = fpext float %4 to double
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %5)
%7 = load float, ptr %2, align 4
%8 = fcmp olt float %7, 0.000000e+00
br i1 %8, label %9, label %13
9: ; preds = %0
%10 = load float, ptr %2, align 4
%11 = fpext float %10 to double
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %11)
br label %23
13: ; preds = %0
%14 = load float, ptr %2, align 4
%15 = fcmp ogt float %14, 0.000000e+00
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = load float, ptr %2, align 4
%18 = fpext float %17 to double
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %18)
br label %22
20: ; preds = %13
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %22
22: ; preds = %20, %16
br label %23
23: ; preds = %22, %9
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdc2kht6f.c'
source_filename = "/tmp/tmpdc2kht6f.c"
target datalayout = "e-m:e-p270: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 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @GetPhoneLinkTickCount() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.timeval, align 4
%3 = call i64 @gettimeofday(ptr noundef %2, ptr noundef null)
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %0
store i32 0, ptr %1, align 4
br label %14
6: ; preds = %0
%7 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%8 = load i32, ptr %7, align 4
%9 = mul nsw i32 %8, 1000
%10 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
%11 = load i32, ptr %10, align 4
%12 = sdiv i32 %11, 1000
%13 = add nsw i32 %9, %12
store i32 %13, ptr %1, align 4
br label %14
14: ; preds = %6, %5
%15 = load i32, ptr %1, align 4
ret i32 %15
}
declare i64 @gettimeofday(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/tmpdc2kht6f.c"
target datalayout = "e-m:e-p270: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 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @GetPhoneLinkTickCount() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.timeval, align 4
%3 = call i64 @gettimeofday(ptr noundef %2, ptr noundef null)
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %0
store i32 0, ptr %1, align 4
br label %14
6: ; preds = %0
%7 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%8 = load i32, ptr %7, align 4
%9 = mul nsw i32 %8, 1000
%10 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
%11 = load i32, ptr %10, align 4
%12 = sdiv i32 %11, 1000
%13 = add nsw i32 %9, %12
store i32 %13, ptr %1, align 4
br label %14
14: ; preds = %6, %5
%15 = load i32, ptr %1, align 4
ret i32 %15
}
declare i64 @gettimeofday(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/tmplhervbzo.c'
source_filename = "/tmp/tmplhervbzo.c"
target datalayout = "e-m:e-p270: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"Usage: %s <upperbound> < [stdin] > [stdout]\0A\00", align 1
@.str.1 = private unnamed_addr constant [53 x i8] c"Set an upper bound in a file with a value per line.\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)
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/tmplhervbzo.c"
target datalayout = "e-m:e-p270: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"Usage: %s <upperbound> < [stdin] > [stdout]\0A\00", align 1
@.str.1 = private unnamed_addr constant [53 x i8] c"Set an upper bound in a file with a value per line.\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)
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/tmpbdbp6utr.c'
source_filename = "/tmp/tmpbdbp6utr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mp2_920_sleep_ms(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = call i32 (...) @mp2_920_think()
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = mul i32 1000, %5
%7 = call i32 @usleep(i32 noundef %6)
%8 = load i32, ptr %3, align 4
ret i32 %8
}
declare i32 @mp2_920_think(...) #1
declare i32 @usleep(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/tmpbdbp6utr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mp2_920_sleep_ms(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = call i32 (...) @mp2_920_think()
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = mul i32 1000, %5
%7 = call i32 @usleep(i32 noundef %6)
%8 = load i32, ptr %3, align 4
ret i32 %8
}
declare i32 @mp2_920_think(...) #1
declare i32 @usleep(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/tmpj05fkf4b.c'
source_filename = "/tmp/tmpj05fkf4b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %0, %8
%4 = load i32, ptr %2, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = call i32 (...) @__VERIFIER_error()
br label %8
8: ; preds = %6, %3
br label %3
}
declare i32 @__VERIFIER_error(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj05fkf4b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %8, %0
%4 = load i32, ptr %2, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = call i32 (...) @__VERIFIER_error()
br label %8
8: ; preds = %6, %3
br label %3
}
declare i32 @__VERIFIER_error(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyowq1kgv.c'
source_filename = "/tmp/tmpyowq1kgv.c"
target datalayout = "e-m:e-p270: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/tmpyowq1kgv.c"
target datalayout = "e-m:e-p270: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/tmptzom3v55.c'
source_filename = "/tmp/tmptzom3v55.c"
target datalayout = "e-m:e-p270: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/tmptzom3v55.c"
target datalayout = "e-m:e-p270: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/tmpu2f6atsy.c'
source_filename = "/tmp/tmpu2f6atsy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @benc_dict_kv_f(ptr noundef %0, ptr noundef %1, float noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca float, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store float %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @benc_str(ptr noundef %7, ptr noundef %8)
%10 = load ptr, ptr %4, align 8
%11 = load float, ptr %6, align 4
%12 = call i32 @benc_float(ptr noundef %10, float noundef %11)
ret void
}
declare i32 @benc_str(ptr noundef, ptr noundef) #1
declare i32 @benc_float(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu2f6atsy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @benc_dict_kv_f(ptr noundef %0, ptr noundef %1, float noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca float, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store float %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @benc_str(ptr noundef %7, ptr noundef %8)
%10 = load ptr, ptr %4, align 8
%11 = load float, ptr %6, align 4
%12 = call i32 @benc_float(ptr noundef %10, float noundef %11)
ret void
}
declare i32 @benc_str(ptr noundef, ptr noundef) #1
declare i32 @benc_float(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvcx7qjwb.c'
source_filename = "/tmp/tmpvcx7qjwb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f90(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 @f89(ptr noundef %3)
ret i32 %4
}
declare i32 @f89(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/tmpvcx7qjwb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f90(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 @f89(ptr noundef %3)
ret i32 %4
}
declare i32 @f89(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/tmpez4_u9aw.c'
source_filename = "/tmp/tmpez4_u9aw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"meow \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @talk() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpez4_u9aw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"meow \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @talk() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpubstqj60.c'
source_filename = "/tmp/tmpubstqj60.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @multiply_abs_double_vector_matrix(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%12 = load i32, ptr %8, align 4
%13 = add nsw i32 %12, 1
%14 = call ptr @generate_zero_vector(i32 noundef %13)
store ptr %14, ptr %9, align 8
store i32 1, ptr %11, align 4
br label %15
15: ; preds = %56, %4
%16 = load i32, ptr %11, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %19, label %59
19: ; preds = %15
%20 = load ptr, ptr %9, align 8
%21 = load i32, ptr %11, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, ptr %20, i64 %22
store double 0.000000e+00, ptr %23, align 8
store i32 1, ptr %10, align 4
br label %24
24: ; preds = %52, %19
%25 = load i32, ptr %10, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp sle i32 %25, %26
br i1 %27, label %28, label %55
28: ; preds = %24
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %10, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %29, i64 %31
%33 = load double, ptr %32, align 8
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %10, 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 %11, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, ptr %38, i64 %40
%42 = load double, ptr %41, align 8
%43 = fmul double %33, %42
%44 = call i64 @fabs(double noundef %43)
%45 = sitofp i64 %44 to double
%46 = load ptr, ptr %9, align 8
%47 = load i32, ptr %11, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, ptr %46, i64 %48
%50 = load double, ptr %49, align 8
%51 = fadd double %50, %45
store double %51, ptr %49, align 8
br label %52
52: ; preds = %28
%53 = load i32, ptr %10, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %10, align 4
br label %24, !llvm.loop !6
55: ; preds = %24
br label %56
56: ; preds = %55
%57 = load i32, ptr %11, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %11, align 4
br label %15, !llvm.loop !8
59: ; preds = %15
%60 = load ptr, ptr %9, align 8
ret ptr %60
}
declare ptr @generate_zero_vector(i32 noundef) #1
declare i64 @fabs(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpubstqj60.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @multiply_abs_double_vector_matrix(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%12 = load i32, ptr %8, align 4
%13 = add nsw i32 %12, 1
%14 = call ptr @generate_zero_vector(i32 noundef %13)
store ptr %14, ptr %9, align 8
store i32 1, ptr %11, align 4
%15 = load i32, ptr %11, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp sle i32 %15, %16
br i1 %17, label %.lr.ph2, label %63
.lr.ph2: ; preds = %4
br label %18
18: ; preds = %.lr.ph2, %57
%19 = load ptr, ptr %9, align 8
%20 = load i32, ptr %11, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, ptr %19, i64 %21
store double 0.000000e+00, ptr %22, align 8
store i32 1, ptr %10, align 4
%23 = load i32, ptr %10, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp sle i32 %23, %24
br i1 %25, label %.lr.ph, label %56
.lr.ph: ; preds = %18
br label %26
26: ; preds = %.lr.ph, %50
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %10, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, ptr %27, i64 %29
%31 = load double, ptr %30, align 8
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %10, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds ptr, ptr %32, i64 %34
%36 = load ptr, ptr %35, align 8
%37 = load i32, ptr %11, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %36, i64 %38
%40 = load double, ptr %39, align 8
%41 = fmul double %31, %40
%42 = call i64 @fabs(double noundef %41)
%43 = sitofp i64 %42 to double
%44 = load ptr, ptr %9, align 8
%45 = load i32, ptr %11, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, ptr %44, i64 %46
%48 = load double, ptr %47, align 8
%49 = fadd double %48, %43
store double %49, ptr %47, align 8
br label %50
50: ; preds = %26
%51 = load i32, ptr %10, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %10, align 4
%53 = load i32, ptr %10, align 4
%54 = load i32, ptr %7, align 4
%55 = icmp sle i32 %53, %54
br i1 %55, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %56
56: ; preds = %._crit_edge, %18
br label %57
57: ; preds = %56
%58 = load i32, ptr %11, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %11, align 4
%60 = load i32, ptr %11, align 4
%61 = load i32, ptr %8, align 4
%62 = icmp sle i32 %60, %61
br i1 %62, label %18, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %57
br label %63
63: ; preds = %._crit_edge3, %4
%64 = load ptr, ptr %9, align 8
ret ptr %64
}
declare ptr @generate_zero_vector(i32 noundef) #1
declare i64 @fabs(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpt2md9pte.c'
source_filename = "/tmp/tmpt2md9pte.c"
target datalayout = "e-m:e-p270: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/tmpt2md9pte.c"
target datalayout = "e-m:e-p270: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/tmpnj4d4eyt.c'
source_filename = "/tmp/tmpnj4d4eyt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"\0A%3s\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"Legendre polynomials\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"%9s %9s %9s %9s %9s\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"n=1\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"n=2\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"n=3\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"n=4\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"n=5\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"x =%5.2f\0A\00", align 1
@.str.9 = private unnamed_addr constant [7 x i8] c"%10.4f\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c" routine FLEG\0A\00", align 1
@.str.11 = private unnamed_addr constant [19 x i8] c" routine PLGNDR\0A\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 float, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%6 = call ptr @vector(i32 noundef 1, i32 noundef 5)
store ptr %6, ptr %5, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef @.str.7)
store i32 1, ptr %2, align 4
br label %9
9: ; preds = %53, %0
%10 = load i32, ptr %2, align 4
%11 = icmp sle i32 %10, 5
br i1 %11, label %12, label %56
12: ; preds = %9
%13 = load i32, ptr %2, align 4
%14 = sitofp i32 %13 to double
%15 = fmul double %14, 2.000000e-01
%16 = fptrunc double %15 to float
store float %16, ptr %4, align 4
%17 = load float, ptr %4, align 4
%18 = load ptr, ptr %5, align 8
%19 = call i32 @fleg(float noundef %17, ptr noundef %18, i32 noundef 5)
%20 = load float, ptr %4, align 4
%21 = fpext float %20 to double
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %21)
store i32 1, ptr %3, align 4
br label %23
23: ; preds = %34, %12
%24 = load i32, ptr %3, align 4
%25 = icmp sle i32 %24, 5
br i1 %25, label %26, label %37
26: ; preds = %23
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds float, ptr %27, i64 %29
%31 = load float, ptr %30, align 4
%32 = fpext float %31 to double
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %32)
br label %34
34: ; preds = %26
%35 = load i32, ptr %3, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %3, align 4
br label %23, !llvm.loop !6
37: ; preds = %23
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
store i32 1, ptr %3, align 4
br label %39
39: ; preds = %48, %37
%40 = load i32, ptr %3, align 4
%41 = icmp sle i32 %40, 5
br i1 %41, label %42, label %51
42: ; preds = %39
%43 = load i32, ptr %3, align 4
%44 = sub nsw i32 %43, 1
%45 = load float, ptr %4, align 4
%46 = call double @plgndr(i32 noundef %44, i32 noundef 0, float noundef %45)
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %46)
br label %48
48: ; preds = %42
%49 = load i32, ptr %3, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %3, align 4
br label %39, !llvm.loop !8
51: ; preds = %39
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %53
53: ; preds = %51
%54 = load i32, ptr %2, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %2, align 4
br label %9, !llvm.loop !9
56: ; preds = %9
%57 = load ptr, ptr %5, align 8
%58 = call i32 @free_vector(ptr noundef %57, i32 noundef 1, i32 noundef 5)
ret i32 0
}
declare ptr @vector(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fleg(float noundef, ptr noundef, i32 noundef) #1
declare double @plgndr(i32 noundef, i32 noundef, float noundef) #1
declare i32 @free_vector(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnj4d4eyt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"\0A%3s\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"Legendre polynomials\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"%9s %9s %9s %9s %9s\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"n=1\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"n=2\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"n=3\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"n=4\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"n=5\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"x =%5.2f\0A\00", align 1
@.str.9 = private unnamed_addr constant [7 x i8] c"%10.4f\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c" routine FLEG\0A\00", align 1
@.str.11 = private unnamed_addr constant [19 x i8] c" routine PLGNDR\0A\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 float, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%6 = call ptr @vector(i32 noundef 1, i32 noundef 5)
store ptr %6, ptr %5, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef @.str.7)
store i32 1, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp sle i32 %9, 5
br i1 %10, label %.lr.ph5, label %59
.lr.ph5: ; preds = %0
br label %11
11: ; preds = %.lr.ph5, %54
%12 = load i32, ptr %2, align 4
%13 = sitofp i32 %12 to double
%14 = fmul double %13, 2.000000e-01
%15 = fptrunc double %14 to float
store float %15, ptr %4, align 4
%16 = load float, ptr %4, align 4
%17 = load ptr, ptr %5, align 8
%18 = call i32 @fleg(float noundef %16, ptr noundef %17, i32 noundef 5)
%19 = load float, ptr %4, align 4
%20 = fpext float %19 to double
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %20)
store i32 1, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = icmp sle i32 %22, 5
br i1 %23, label %.lr.ph, label %37
.lr.ph: ; preds = %11
br label %24
24: ; preds = %.lr.ph, %32
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %3, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds float, ptr %25, i64 %27
%29 = load float, ptr %28, align 4
%30 = fpext float %29 to double
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %30)
br label %32
32: ; preds = %24
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %3, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp sle i32 %35, 5
br i1 %36, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %37
37: ; preds = %._crit_edge, %11
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
store i32 1, ptr %3, align 4
%39 = load i32, ptr %3, align 4
%40 = icmp sle i32 %39, 5
br i1 %40, label %.lr.ph2, label %52
.lr.ph2: ; preds = %37
br label %41
41: ; preds = %.lr.ph2, %47
%42 = load i32, ptr %3, align 4
%43 = sub nsw i32 %42, 1
%44 = load float, ptr %4, align 4
%45 = call double @plgndr(i32 noundef %43, i32 noundef 0, float noundef %44)
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %45)
br label %47
47: ; preds = %41
%48 = load i32, ptr %3, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %3, align 4
%50 = load i32, ptr %3, align 4
%51 = icmp sle i32 %50, 5
br i1 %51, label %41, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %47
br label %52
52: ; preds = %._crit_edge3, %37
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %54
54: ; preds = %52
%55 = load i32, ptr %2, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %2, align 4
%57 = load i32, ptr %2, align 4
%58 = icmp sle i32 %57, 5
br i1 %58, label %11, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %54
br label %59
59: ; preds = %._crit_edge6, %0
%60 = load ptr, ptr %5, align 8
%61 = call i32 @free_vector(ptr noundef %60, i32 noundef 1, i32 noundef 5)
ret i32 0
}
declare ptr @vector(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fleg(float noundef, ptr noundef, i32 noundef) #1
declare double @plgndr(i32 noundef, i32 noundef, float noundef) #1
declare i32 @free_vector(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpgz3bh1k5.c'
source_filename = "/tmp/tmpgz3bh1k5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wrap_use_default_colors() #0 {
%1 = call i32 (...) @use_default_colors()
ret i32 %1
}
declare i32 @use_default_colors(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgz3bh1k5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wrap_use_default_colors() #0 {
%1 = call i32 (...) @use_default_colors()
ret i32 %1
}
declare i32 @use_default_colors(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmposgqfowv.c'
source_filename = "/tmp/tmposgqfowv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cofactor(ptr noundef %0, ptr noundef %1, float noundef %2, float noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca [100 x [100 x float]], align 16
%10 = alloca [100 x [100 x float]], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store float %2, ptr %7, align 4
store float %3, ptr %8, align 4
store i32 0, ptr %12, align 4
br label %17
17: ; preds = %103, %4
%18 = load i32, ptr %12, align 4
%19 = sitofp i32 %18 to float
%20 = load float, ptr %7, align 4
%21 = fcmp olt float %19, %20
br i1 %21, label %22, label %106
22: ; preds = %17
store i32 0, ptr %11, align 4
br label %23
23: ; preds = %99, %22
%24 = load i32, ptr %11, align 4
%25 = sitofp i32 %24 to float
%26 = load float, ptr %7, align 4
%27 = fcmp olt float %25, %26
br i1 %27, label %28, label %102
28: ; preds = %23
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
br label %29
29: ; preds = %80, %28
%30 = load i32, ptr %15, align 4
%31 = sitofp i32 %30 to float
%32 = load float, ptr %7, align 4
%33 = fcmp olt float %31, %32
br i1 %33, label %34, label %83
34: ; preds = %29
store i32 0, ptr %16, align 4
br label %35
35: ; preds = %76, %34
%36 = load i32, ptr %16, align 4
%37 = sitofp i32 %36 to float
%38 = load float, ptr %7, align 4
%39 = fcmp olt float %37, %38
br i1 %39, label %40, label %79
40: ; preds = %35
%41 = load i32, ptr %15, align 4
%42 = load i32, ptr %12, align 4
%43 = icmp ne i32 %41, %42
br i1 %43, label %44, label %75
44: ; preds = %40
%45 = load i32, ptr %16, align 4
%46 = load i32, ptr %11, align 4
%47 = icmp ne i32 %45, %46
br i1 %47, label %48, label %75
48: ; preds = %44
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr %15, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [100 x float], ptr %49, i64 %51
%53 = load i32, ptr %16, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [100 x float], ptr %52, i64 0, i64 %54
%56 = load float, ptr %55, align 4
%57 = load i32, ptr %13, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [100 x [100 x float]], ptr %9, i64 0, i64 %58
%60 = load i32, ptr %14, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [100 x float], ptr %59, i64 0, i64 %61
store float %56, ptr %62, align 4
%63 = load i32, ptr %14, align 4
%64 = sitofp i32 %63 to float
%65 = load float, ptr %7, align 4
%66 = fsub float %65, 2.000000e+00
%67 = fcmp olt float %64, %66
br i1 %67, label %68, label %71
68: ; preds = %48
%69 = load i32, ptr %14, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %14, align 4
br label %74
71: ; preds = %48
store i32 0, ptr %14, align 4
%72 = load i32, ptr %13, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %13, align 4
br label %74
74: ; preds = %71, %68
br label %75
75: ; preds = %74, %44, %40
br label %76
76: ; preds = %75
%77 = load i32, ptr %16, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %16, align 4
br label %35, !llvm.loop !6
79: ; preds = %35
br label %80
80: ; preds = %79
%81 = load i32, ptr %15, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %15, align 4
br label %29, !llvm.loop !8
83: ; preds = %29
%84 = load i32, ptr %12, align 4
%85 = load i32, ptr %11, align 4
%86 = add nsw i32 %84, %85
%87 = call float @pow(i32 noundef -1, i32 noundef %86)
%88 = getelementptr inbounds [100 x [100 x float]], ptr %9, i64 0, i64 0
%89 = load float, ptr %7, align 4
%90 = fsub float %89, 1.000000e+00
%91 = call float @det(ptr noundef %88, float noundef %90)
%92 = fmul float %87, %91
%93 = load i32, ptr %12, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [100 x [100 x float]], ptr %10, i64 0, i64 %94
%96 = load i32, ptr %11, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [100 x float], ptr %95, i64 0, i64 %97
store float %92, ptr %98, align 4
br label %99
99: ; preds = %83
%100 = load i32, ptr %11, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %11, align 4
br label %23, !llvm.loop !9
102: ; preds = %23
br label %103
103: ; preds = %102
%104 = load i32, ptr %12, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %12, align 4
br label %17, !llvm.loop !10
106: ; preds = %17
%107 = getelementptr inbounds [100 x [100 x float]], ptr %10, i64 0, i64 0
%108 = load ptr, ptr %6, align 8
%109 = load float, ptr %7, align 4
%110 = load float, ptr %8, align 4
%111 = call i32 @transpose(ptr noundef %107, ptr noundef %108, float noundef %109, float noundef %110)
ret void
}
declare float @pow(i32 noundef, i32 noundef) #1
declare float @det(ptr noundef, float noundef) #1
declare i32 @transpose(ptr noundef, ptr noundef, float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!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/tmposgqfowv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cofactor(ptr noundef %0, ptr noundef %1, float noundef %2, float noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca [100 x [100 x float]], align 16
%10 = alloca [100 x [100 x float]], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store float %2, ptr %7, align 4
store float %3, ptr %8, align 4
store i32 0, ptr %12, align 4
%17 = load i32, ptr %12, align 4
%18 = sitofp i32 %17 to float
%19 = load float, ptr %7, align 4
%20 = fcmp olt float %18, %19
br i1 %20, label %.lr.ph8, label %118
.lr.ph8: ; preds = %4
br label %21
21: ; preds = %.lr.ph8, %111
store i32 0, ptr %11, align 4
%22 = load i32, ptr %11, align 4
%23 = sitofp i32 %22 to float
%24 = load float, ptr %7, align 4
%25 = fcmp olt float %23, %24
br i1 %25, label %.lr.ph5, label %110
.lr.ph5: ; preds = %21
br label %26
26: ; preds = %.lr.ph5, %103
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
%27 = load i32, ptr %15, align 4
%28 = sitofp i32 %27 to float
%29 = load float, ptr %7, align 4
%30 = fcmp olt float %28, %29
br i1 %30, label %.lr.ph2, label %87
.lr.ph2: ; preds = %26
br label %31
31: ; preds = %.lr.ph2, %80
store i32 0, ptr %16, align 4
%32 = load i32, ptr %16, align 4
%33 = sitofp i32 %32 to float
%34 = load float, ptr %7, align 4
%35 = fcmp olt float %33, %34
br i1 %35, label %.lr.ph, label %79
.lr.ph: ; preds = %31
br label %36
36: ; preds = %.lr.ph, %72
%37 = load i32, ptr %15, align 4
%38 = load i32, ptr %12, align 4
%39 = icmp ne i32 %37, %38
br i1 %39, label %40, label %71
40: ; preds = %36
%41 = load i32, ptr %16, align 4
%42 = load i32, ptr %11, align 4
%43 = icmp ne i32 %41, %42
br i1 %43, label %44, label %71
44: ; preds = %40
%45 = load ptr, ptr %5, align 8
%46 = load i32, ptr %15, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [100 x float], ptr %45, i64 %47
%49 = load i32, ptr %16, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [100 x float], ptr %48, i64 0, i64 %50
%52 = load float, ptr %51, align 4
%53 = load i32, ptr %13, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [100 x [100 x float]], ptr %9, i64 0, i64 %54
%56 = load i32, ptr %14, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [100 x float], ptr %55, i64 0, i64 %57
store float %52, ptr %58, align 4
%59 = load i32, ptr %14, align 4
%60 = sitofp i32 %59 to float
%61 = load float, ptr %7, align 4
%62 = fsub float %61, 2.000000e+00
%63 = fcmp olt float %60, %62
br i1 %63, label %64, label %67
64: ; preds = %44
%65 = load i32, ptr %14, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %14, align 4
br label %70
67: ; preds = %44
store i32 0, ptr %14, align 4
%68 = load i32, ptr %13, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %13, align 4
br label %70
70: ; preds = %67, %64
br label %71
71: ; preds = %70, %40, %36
br label %72
72: ; preds = %71
%73 = load i32, ptr %16, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %16, align 4
%75 = load i32, ptr %16, align 4
%76 = sitofp i32 %75 to float
%77 = load float, ptr %7, align 4
%78 = fcmp olt float %76, %77
br i1 %78, label %36, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %79
79: ; preds = %._crit_edge, %31
br label %80
80: ; preds = %79
%81 = load i32, ptr %15, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %15, align 4
%83 = load i32, ptr %15, align 4
%84 = sitofp i32 %83 to float
%85 = load float, ptr %7, align 4
%86 = fcmp olt float %84, %85
br i1 %86, label %31, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %80
br label %87
87: ; preds = %._crit_edge3, %26
%88 = load i32, ptr %12, align 4
%89 = load i32, ptr %11, align 4
%90 = add nsw i32 %88, %89
%91 = call float @pow(i32 noundef -1, i32 noundef %90)
%92 = getelementptr inbounds [100 x [100 x float]], ptr %9, i64 0, i64 0
%93 = load float, ptr %7, align 4
%94 = fsub float %93, 1.000000e+00
%95 = call float @det(ptr noundef %92, float noundef %94)
%96 = fmul float %91, %95
%97 = load i32, ptr %12, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [100 x [100 x float]], ptr %10, i64 0, i64 %98
%100 = load i32, ptr %11, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [100 x float], ptr %99, i64 0, i64 %101
store float %96, ptr %102, align 4
br label %103
103: ; preds = %87
%104 = load i32, ptr %11, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %11, align 4
%106 = load i32, ptr %11, align 4
%107 = sitofp i32 %106 to float
%108 = load float, ptr %7, align 4
%109 = fcmp olt float %107, %108
br i1 %109, label %26, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %103
br label %110
110: ; preds = %._crit_edge6, %21
br label %111
111: ; preds = %110
%112 = load i32, ptr %12, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %12, align 4
%114 = load i32, ptr %12, align 4
%115 = sitofp i32 %114 to float
%116 = load float, ptr %7, align 4
%117 = fcmp olt float %115, %116
br i1 %117, label %21, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %111
br label %118
118: ; preds = %._crit_edge9, %4
%119 = getelementptr inbounds [100 x [100 x float]], ptr %10, i64 0, i64 0
%120 = load ptr, ptr %6, align 8
%121 = load float, ptr %7, align 4
%122 = load float, ptr %8, align 4
%123 = call i32 @transpose(ptr noundef %119, ptr noundef %120, float noundef %121, float noundef %122)
ret void
}
declare float @pow(i32 noundef, i32 noundef) #1
declare float @det(ptr noundef, float noundef) #1
declare i32 @transpose(ptr noundef, ptr noundef, float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpv5_lgkab.c'
source_filename = "/tmp/tmpv5_lgkab.c"
target datalayout = "e-m:e-p270: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/tmpv5_lgkab.c"
target datalayout = "e-m:e-p270: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/tmpm0ae3lc9.c'
source_filename = "/tmp/tmpm0ae3lc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Heapify(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = call i32 @Left(i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %5, align 4
%13 = call i32 @Right(i32 noundef %12)
store i32 %13, ptr %8, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %17, label %31
17: ; preds = %3
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
%28 = icmp sgt i32 %22, %27
br i1 %28, label %29, label %31
29: ; preds = %17
%30 = load i32, ptr %7, align 4
store i32 %30, ptr %9, align 4
br label %33
31: ; preds = %17, %3
%32 = load i32, ptr %5, align 4
store i32 %32, ptr %9, align 4
br label %33
33: ; preds = %31, %29
%34 = load i32, ptr %8, align 4
%35 = load i32, ptr %6, align 4
%36 = icmp sle i32 %34, %35
br i1 %36, label %37, label %51
37: ; preds = %33
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %8, 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 ptr, ptr %4, align 8
%44 = load i32, ptr %9, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
%47 = load i32, ptr %46, align 4
%48 = icmp sgt i32 %42, %47
br i1 %48, label %49, label %51
49: ; preds = %37
%50 = load i32, ptr %8, align 4
store i32 %50, ptr %9, align 4
br label %51
51: ; preds = %49, %37, %33
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %5, align 4
%54 = icmp ne i32 %52, %53
br i1 %54, label %55, label %63
55: ; preds = %51
%56 = load ptr, ptr %4, align 8
%57 = load i32, ptr %5, align 4
%58 = load i32, ptr %9, align 4
%59 = call i32 @Exchange(ptr noundef %56, i32 noundef %57, i32 noundef %58)
%60 = load ptr, ptr %4, align 8
%61 = load i32, ptr %9, align 4
%62 = load i32, ptr %6, align 4
call void @Heapify(ptr noundef %60, i32 noundef %61, i32 noundef %62)
br label %63
63: ; preds = %55, %51
ret void
}
declare i32 @Left(i32 noundef) #1
declare i32 @Right(i32 noundef) #1
declare i32 @Exchange(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm0ae3lc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Heapify(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = call i32 @Left(i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %5, align 4
%13 = call i32 @Right(i32 noundef %12)
store i32 %13, ptr %8, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %17, label %31
17: ; preds = %3
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
%28 = icmp sgt i32 %22, %27
br i1 %28, label %29, label %31
29: ; preds = %17
%30 = load i32, ptr %7, align 4
store i32 %30, ptr %9, align 4
br label %33
31: ; preds = %17, %3
%32 = load i32, ptr %5, align 4
store i32 %32, ptr %9, align 4
br label %33
33: ; preds = %31, %29
%34 = load i32, ptr %8, align 4
%35 = load i32, ptr %6, align 4
%36 = icmp sle i32 %34, %35
br i1 %36, label %37, label %51
37: ; preds = %33
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %8, 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 ptr, ptr %4, align 8
%44 = load i32, ptr %9, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
%47 = load i32, ptr %46, align 4
%48 = icmp sgt i32 %42, %47
br i1 %48, label %49, label %51
49: ; preds = %37
%50 = load i32, ptr %8, align 4
store i32 %50, ptr %9, align 4
br label %51
51: ; preds = %49, %37, %33
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %5, align 4
%54 = icmp ne i32 %52, %53
br i1 %54, label %55, label %63
55: ; preds = %51
%56 = load ptr, ptr %4, align 8
%57 = load i32, ptr %5, align 4
%58 = load i32, ptr %9, align 4
%59 = call i32 @Exchange(ptr noundef %56, i32 noundef %57, i32 noundef %58)
%60 = load ptr, ptr %4, align 8
%61 = load i32, ptr %9, align 4
%62 = load i32, ptr %6, align 4
call void @Heapify(ptr noundef %60, i32 noundef %61, i32 noundef %62)
br label %63
63: ; preds = %55, %51
ret void
}
declare i32 @Left(i32 noundef) #1
declare i32 @Right(i32 noundef) #1
declare i32 @Exchange(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc9fh2u79.c'
source_filename = "/tmp/tmpc9fh2u79.c"
target datalayout = "e-m:e-p270: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.str1 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
@__const.main.str2 = private unnamed_addr constant [6 x i8] c"world\00", align 1
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [255 x i8], align 16
%2 = alloca [6 x i8], align 1
%3 = alloca [6 x i8], align 1
%4 = alloca i32, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.str1, i64 6, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.str2, i64 6, i1 false)
%5 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @strlen(ptr noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
%8 = getelementptr inbounds [255 x i8], ptr %1, i64 0, i64 0
%9 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @stringcat(ptr noundef %8, ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [255 x i8], ptr %1, i64 0, i64 0
%13 = call i32 @puts(ptr noundef %12)
store i32 0, ptr %4, align 4
br label %14
14: ; preds = %24, %0
%15 = load i32, ptr %4, align 4
%16 = icmp sle i32 %15, 9
br i1 %16, label %17, label %27
17: ; preds = %14
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [255 x i8], ptr %1, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %22)
br label %24
24: ; preds = %17
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
br label %14, !llvm.loop !6
27: ; preds = %14
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%29 = getelementptr inbounds [255 x i8], ptr %1, i64 0, i64 5
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %31)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @stringcat(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @puts(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc9fh2u79.c"
target datalayout = "e-m:e-p270: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.str1 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
@__const.main.str2 = private unnamed_addr constant [6 x i8] c"world\00", align 1
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [255 x i8], align 16
%2 = alloca [6 x i8], align 1
%3 = alloca [6 x i8], align 1
%4 = alloca i32, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.str1, i64 6, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.str2, i64 6, i1 false)
%5 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @strlen(ptr noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
%8 = getelementptr inbounds [255 x i8], ptr %1, i64 0, i64 0
%9 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @stringcat(ptr noundef %8, ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [255 x i8], ptr %1, i64 0, i64 0
%13 = call i32 @puts(ptr noundef %12)
store i32 0, ptr %4, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp sle i32 %14, 9
br i1 %15, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %23
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [255 x i8], ptr %1, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %21)
br label %23
23: ; preds = %16
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp sle i32 %26, 9
br i1 %27, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %0
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%30 = getelementptr inbounds [255 x i8], ptr %1, i64 0, i64 5
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %32)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @stringcat(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @puts(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4nsly09b.c'
source_filename = "/tmp/tmp4nsly09b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_WRONLY = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"default umask = %o\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"/tmp/test_fifo\00", align 1
@F_OK = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [14 x i8] c"mkfifo error\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"fifo open error\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"write data to fifo = %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"fifo write/read test!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
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
store i32 -1, ptr %7, align 4
%10 = load i32, ptr @O_WRONLY, align 4
store i32 %10, ptr %8, align 4
%11 = call i32 @umask(i32 noundef 0)
store i32 %11, ptr %9, align 4
%12 = load i32, ptr %9, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
%14 = load i32, ptr %9, align 4
%15 = call i32 @umask(i32 noundef %14)
%16 = load i32, ptr @F_OK, align 4
%17 = call i64 @access(ptr noundef @.str.1, i32 noundef %16)
%18 = icmp slt i64 %17, 0
br i1 %18, label %19, label %27
19: ; preds = %2
%20 = call i32 @mkfifo(ptr noundef @.str.1, i32 noundef 511)
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = call i32 @perror(ptr noundef @.str.2)
%25 = call i32 @exit(i32 noundef 0) #3
unreachable
26: ; preds = %19
br label %27
27: ; preds = %26, %2
%28 = load i32, ptr %8, align 4
%29 = call i32 @open(ptr noundef @.str.1, i32 noundef %28)
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %7, align 4
%31 = icmp slt i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %27
%33 = call i32 @perror(ptr noundef @.str.3)
%34 = call i32 @exit(i32 noundef 0) #3
unreachable
35: ; preds = %27
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef @.str.5)
%37 = load i32, ptr %7, align 4
%38 = call i64 @strlen(ptr noundef @.str.5)
%39 = add nsw i64 %38, 1
%40 = call i32 @write(i32 noundef %37, ptr noundef @.str.5, i64 noundef %39)
%41 = load i32, ptr %7, align 4
%42 = call i32 @close(i32 noundef %41)
ret i32 0
}
declare i32 @umask(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @access(ptr noundef, i32 noundef) #1
declare i32 @mkfifo(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(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/tmp4nsly09b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_WRONLY = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"default umask = %o\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"/tmp/test_fifo\00", align 1
@F_OK = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [14 x i8] c"mkfifo error\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"fifo open error\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"write data to fifo = %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"fifo write/read test!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
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
store i32 -1, ptr %7, align 4
%10 = load i32, ptr @O_WRONLY, align 4
store i32 %10, ptr %8, align 4
%11 = call i32 @umask(i32 noundef 0)
store i32 %11, ptr %9, align 4
%12 = load i32, ptr %9, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
%14 = load i32, ptr %9, align 4
%15 = call i32 @umask(i32 noundef %14)
%16 = load i32, ptr @F_OK, align 4
%17 = call i64 @access(ptr noundef @.str.1, i32 noundef %16)
%18 = icmp slt i64 %17, 0
br i1 %18, label %19, label %27
19: ; preds = %2
%20 = call i32 @mkfifo(ptr noundef @.str.1, i32 noundef 511)
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = call i32 @perror(ptr noundef @.str.2)
%25 = call i32 @exit(i32 noundef 0) #3
unreachable
26: ; preds = %19
br label %27
27: ; preds = %26, %2
%28 = load i32, ptr %8, align 4
%29 = call i32 @open(ptr noundef @.str.1, i32 noundef %28)
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %7, align 4
%31 = icmp slt i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %27
%33 = call i32 @perror(ptr noundef @.str.3)
%34 = call i32 @exit(i32 noundef 0) #3
unreachable
35: ; preds = %27
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef @.str.5)
%37 = load i32, ptr %7, align 4
%38 = call i64 @strlen(ptr noundef @.str.5)
%39 = add nsw i64 %38, 1
%40 = call i32 @write(i32 noundef %37, ptr noundef @.str.5, i64 noundef %39)
%41 = load i32, ptr %7, align 4
%42 = call i32 @close(i32 noundef %41)
ret i32 0
}
declare i32 @umask(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @access(ptr noundef, i32 noundef) #1
declare i32 @mkfifo(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(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/tmpd8oxhv2l.c'
source_filename = "/tmp/tmpd8oxhv2l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wl_shm_buffer_create(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %7, align 8
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
ret ptr null
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd8oxhv2l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wl_shm_buffer_create(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %7, align 8
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
ret ptr null
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkp9fi7xa.c'
source_filename = "/tmp/tmpkp9fi7xa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_file_tstamp(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i64 @stat(ptr noundef %5, ptr noundef %4)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %17
8: ; preds = %1
%9 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%10 = load i64, ptr %9, align 8
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %8
%13 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%14 = load i64, ptr %13, align 8
%15 = trunc i64 %14 to i32
store i32 %15, ptr %2, align 4
br label %18
16: ; preds = %8
br label %17
17: ; preds = %16, %1
store i32 -1, ptr %2, align 4
br label %18
18: ; preds = %17, %12
%19 = load i32, ptr %2, align 4
ret i32 %19
}
declare i64 @stat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkp9fi7xa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_file_tstamp(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i64 @stat(ptr noundef %5, ptr noundef %4)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %17
8: ; preds = %1
%9 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%10 = load i64, ptr %9, align 8
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %8
%13 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%14 = load i64, ptr %13, align 8
%15 = trunc i64 %14 to i32
store i32 %15, ptr %2, align 4
br label %18
16: ; preds = %8
br label %17
17: ; preds = %16, %1
store i32 -1, ptr %2, align 4
br label %18
18: ; preds = %17, %12
%19 = load i32, ptr %2, align 4
ret i32 %19
}
declare i64 @stat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk__2br7d.c'
source_filename = "/tmp/tmpk__2br7d.c"
target datalayout = "e-m:e-p270: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 [51 x i8] c"\0AError: The value has to be between 0x%x and 0x%x\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [32 x i8] c"\0AError: An integer is required\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"strtol\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @check_int(i64 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
store i64 %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
%15 = load i64, ptr %8, align 8
%16 = load i32, ptr %9, align 4
%17 = sext i32 %16 to i64
%18 = icmp slt i64 %15, %17
br i1 %18, label %24, label %19
19: ; preds = %7
%20 = load i64, ptr %8, align 8
%21 = load i32, ptr %10, align 4
%22 = sext i32 %21 to i64
%23 = icmp sgt i64 %20, %22
br i1 %23, label %24, label %31
24: ; preds = %19, %7
%25 = load ptr, ptr %14, align 8
%26 = load i32, ptr %9, align 4
%27 = load i32, ptr %10, align 4
%28 = call i32 (ptr, ptr, ...) @usage(ptr noundef %25, ptr noundef @.str, i32 noundef %26, i32 noundef %27)
%29 = load i32, ptr @EXIT_FAILURE, align 4
%30 = call i32 @exit(i32 noundef %29) #3
unreachable
31: ; preds = %19
%32 = load ptr, ptr %13, align 8
%33 = load ptr, ptr %12, align 8
%34 = icmp eq ptr %32, %33
br i1 %34, label %40, label %35
35: ; preds = %31
%36 = load ptr, ptr %13, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %35, %31
%41 = load ptr, ptr %14, align 8
%42 = call i32 (ptr, ptr, ...) @usage(ptr noundef %41, ptr noundef @.str.1)
%43 = load i32, ptr @EXIT_FAILURE, align 4
%44 = call i32 @exit(i32 noundef %43) #3
unreachable
45: ; preds = %35
%46 = load i32, ptr %11, align 4
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %55
48: ; preds = %45
%49 = load i64, ptr %8, align 8
%50 = icmp ne i64 %49, 0
br i1 %50, label %55, label %51
51: ; preds = %48
%52 = call i32 @perror(ptr noundef @.str.2)
%53 = load i32, ptr @EXIT_FAILURE, align 4
%54 = call i32 @exit(i32 noundef %53) #3
unreachable
55: ; preds = %48, %45
ret void
}
declare i32 @usage(ptr noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
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 = { 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/tmpk__2br7d.c"
target datalayout = "e-m:e-p270: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 [51 x i8] c"\0AError: The value has to be between 0x%x and 0x%x\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [32 x i8] c"\0AError: An integer is required\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"strtol\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @check_int(i64 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
store i64 %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
%15 = load i64, ptr %8, align 8
%16 = load i32, ptr %9, align 4
%17 = sext i32 %16 to i64
%18 = icmp slt i64 %15, %17
br i1 %18, label %24, label %19
19: ; preds = %7
%20 = load i64, ptr %8, align 8
%21 = load i32, ptr %10, align 4
%22 = sext i32 %21 to i64
%23 = icmp sgt i64 %20, %22
br i1 %23, label %24, label %31
24: ; preds = %19, %7
%25 = load ptr, ptr %14, align 8
%26 = load i32, ptr %9, align 4
%27 = load i32, ptr %10, align 4
%28 = call i32 (ptr, ptr, ...) @usage(ptr noundef %25, ptr noundef @.str, i32 noundef %26, i32 noundef %27)
%29 = load i32, ptr @EXIT_FAILURE, align 4
%30 = call i32 @exit(i32 noundef %29) #3
unreachable
31: ; preds = %19
%32 = load ptr, ptr %13, align 8
%33 = load ptr, ptr %12, align 8
%34 = icmp eq ptr %32, %33
br i1 %34, label %40, label %35
35: ; preds = %31
%36 = load ptr, ptr %13, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %35, %31
%41 = load ptr, ptr %14, align 8
%42 = call i32 (ptr, ptr, ...) @usage(ptr noundef %41, ptr noundef @.str.1)
%43 = load i32, ptr @EXIT_FAILURE, align 4
%44 = call i32 @exit(i32 noundef %43) #3
unreachable
45: ; preds = %35
%46 = load i32, ptr %11, align 4
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %55
48: ; preds = %45
%49 = load i64, ptr %8, align 8
%50 = icmp ne i64 %49, 0
br i1 %50, label %55, label %51
51: ; preds = %48
%52 = call i32 @perror(ptr noundef @.str.2)
%53 = load i32, ptr @EXIT_FAILURE, align 4
%54 = call i32 @exit(i32 noundef %53) #3
unreachable
55: ; preds = %48, %45
ret void
}
declare i32 @usage(ptr noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
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 = { 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/tmp6_vqwvft.c'
source_filename = "/tmp/tmp6_vqwvft.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [20 x i8] c"Usage: %s hostname\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"get hostname error\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c"create socket error\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"create socket done!\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"192.168.2.110\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"connect to server ...\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"connect to server error\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"connect server done!\00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"please input msg:\00", align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [80 x i8], align 16
%8 = alloca %struct.sockaddr_in, align 4
%9 = 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
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @printf(ptr noundef @.str, ptr noundef %15)
store i32 -1, ptr %3, align 4
br label %62
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call i64 @gethostbyname(ptr noundef %20)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %9, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %26
24: ; preds = %17
%25 = call i32 @perror(ptr noundef @.str.1)
store i32 -2, ptr %3, align 4
br label %62
26: ; preds = %17
%27 = load i32, ptr @AF_INET, align 4
%28 = load i32, ptr @SOCK_STREAM, align 4
%29 = call i32 @socket(i32 noundef %27, i32 noundef %28, i32 noundef 0)
store i32 %29, ptr %6, align 4
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %33
31: ; preds = %26
%32 = call i32 @perror(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %62
33: ; preds = %26
%34 = call i32 @puts(ptr noundef @.str.3)
%35 = call i32 @bzero(ptr noundef %8, i32 noundef 12)
%36 = load i32, ptr @AF_INET, align 4
%37 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %36, ptr %37, align 4
%38 = call i32 @inet_addr(ptr noundef @.str.4)
%39 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
%40 = getelementptr inbounds %struct.TYPE_2__, ptr %39, i32 0, i32 0
store i32 %38, ptr %40, align 4
%41 = call i32 @htons(i32 noundef 8888)
%42 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
store i32 %41, ptr %42, align 4
%43 = call i32 @puts(ptr noundef @.str.5)
%44 = load i32, ptr %6, align 4
%45 = call i32 @connect(i32 noundef %44, ptr noundef %8, i32 noundef 4)
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %49
47: ; preds = %33
%48 = call i32 @perror(ptr noundef @.str.6)
store i32 3, ptr %3, align 4
br label %62
49: ; preds = %33
%50 = call i32 @puts(ptr noundef @.str.7)
%51 = getelementptr inbounds [80 x i8], ptr %7, i64 0, i64 0
%52 = call i32 @memset(ptr noundef %51, i8 noundef signext 0, i32 noundef 80)
%53 = call i32 @puts(ptr noundef @.str.8)
%54 = getelementptr inbounds [80 x i8], ptr %7, i64 0, i64 0
%55 = load i32, ptr @stdin, align 4
%56 = call i32 @fgets(ptr noundef %54, i32 noundef 80, i32 noundef %55)
%57 = load i32, ptr %6, align 4
%58 = getelementptr inbounds [80 x i8], ptr %7, i64 0, i64 0
%59 = call i32 @write(i32 noundef %57, ptr noundef %58, i32 noundef 80)
%60 = load i32, ptr %6, align 4
%61 = call i32 @close(i32 noundef %60)
store i32 0, ptr %3, align 4
br label %62
62: ; preds = %49, %47, %31, %24, %12
%63 = load i32, ptr %3, align 4
ret i32 %63
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i64 @gethostbyname(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6_vqwvft.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [20 x i8] c"Usage: %s hostname\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"get hostname error\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c"create socket error\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"create socket done!\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"192.168.2.110\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"connect to server ...\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"connect to server error\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"connect server done!\00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"please input msg:\00", align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [80 x i8], align 16
%8 = alloca %struct.sockaddr_in, align 4
%9 = 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
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @printf(ptr noundef @.str, ptr noundef %15)
store i32 -1, ptr %3, align 4
br label %62
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call i64 @gethostbyname(ptr noundef %20)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %9, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %26
24: ; preds = %17
%25 = call i32 @perror(ptr noundef @.str.1)
store i32 -2, ptr %3, align 4
br label %62
26: ; preds = %17
%27 = load i32, ptr @AF_INET, align 4
%28 = load i32, ptr @SOCK_STREAM, align 4
%29 = call i32 @socket(i32 noundef %27, i32 noundef %28, i32 noundef 0)
store i32 %29, ptr %6, align 4
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %33
31: ; preds = %26
%32 = call i32 @perror(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %62
33: ; preds = %26
%34 = call i32 @puts(ptr noundef @.str.3)
%35 = call i32 @bzero(ptr noundef %8, i32 noundef 12)
%36 = load i32, ptr @AF_INET, align 4
%37 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %36, ptr %37, align 4
%38 = call i32 @inet_addr(ptr noundef @.str.4)
%39 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
%40 = getelementptr inbounds %struct.TYPE_2__, ptr %39, i32 0, i32 0
store i32 %38, ptr %40, align 4
%41 = call i32 @htons(i32 noundef 8888)
%42 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
store i32 %41, ptr %42, align 4
%43 = call i32 @puts(ptr noundef @.str.5)
%44 = load i32, ptr %6, align 4
%45 = call i32 @connect(i32 noundef %44, ptr noundef %8, i32 noundef 4)
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %49
47: ; preds = %33
%48 = call i32 @perror(ptr noundef @.str.6)
store i32 3, ptr %3, align 4
br label %62
49: ; preds = %33
%50 = call i32 @puts(ptr noundef @.str.7)
%51 = getelementptr inbounds [80 x i8], ptr %7, i64 0, i64 0
%52 = call i32 @memset(ptr noundef %51, i8 noundef signext 0, i32 noundef 80)
%53 = call i32 @puts(ptr noundef @.str.8)
%54 = getelementptr inbounds [80 x i8], ptr %7, i64 0, i64 0
%55 = load i32, ptr @stdin, align 4
%56 = call i32 @fgets(ptr noundef %54, i32 noundef 80, i32 noundef %55)
%57 = load i32, ptr %6, align 4
%58 = getelementptr inbounds [80 x i8], ptr %7, i64 0, i64 0
%59 = call i32 @write(i32 noundef %57, ptr noundef %58, i32 noundef 80)
%60 = load i32, ptr %6, align 4
%61 = call i32 @close(i32 noundef %60)
store i32 0, ptr %3, align 4
br label %62
62: ; preds = %49, %47, %31, %24, %12
%63 = load i32, ptr %3, align 4
ret i32 %63
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i64 @gethostbyname(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_vchui77.c'
source_filename = "/tmp/tmp_vchui77.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@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/tmp_vchui77.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@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/tmpwad1tecz.c'
source_filename = "/tmp/tmpwad1tecz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"helowitc\00", align 1
@.str.1 = private unnamed_addr constant [53 x i8] c"abcdefghijlkmnopqrstuvwxyzabcdefghijlkmnopqrstuvwxyz\00", align 1
@.str.2 = private unnamed_addr constant [55 x i8] c"Data structure method where 1 is true and 0 is false:\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"Good string: %i\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"Bad string: %i\0A\00", align 1
@.str.5 = private unnamed_addr constant [63 x i8] c"Without data structure method where 1 is true and 0 is false:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
store ptr @.str, ptr %1, align 8
store ptr @.str.1, ptr %2, align 8
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%4 = load ptr, ptr %1, align 8
%5 = call i32 @dataStructureMethod(ptr noundef %4)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @dataStructureMethod(ptr noundef %7)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%11 = load ptr, ptr %1, align 8
%12 = call i32 @noDataStructureMethod(ptr noundef %11)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %12)
%14 = load ptr, ptr %2, align 8
%15 = call i32 @noDataStructureMethod(ptr noundef %14)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %15)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @dataStructureMethod(ptr noundef) #1
declare i32 @noDataStructureMethod(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/tmpwad1tecz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"helowitc\00", align 1
@.str.1 = private unnamed_addr constant [53 x i8] c"abcdefghijlkmnopqrstuvwxyzabcdefghijlkmnopqrstuvwxyz\00", align 1
@.str.2 = private unnamed_addr constant [55 x i8] c"Data structure method where 1 is true and 0 is false:\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"Good string: %i\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"Bad string: %i\0A\00", align 1
@.str.5 = private unnamed_addr constant [63 x i8] c"Without data structure method where 1 is true and 0 is false:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
store ptr @.str, ptr %1, align 8
store ptr @.str.1, ptr %2, align 8
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%4 = load ptr, ptr %1, align 8
%5 = call i32 @dataStructureMethod(ptr noundef %4)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @dataStructureMethod(ptr noundef %7)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%11 = load ptr, ptr %1, align 8
%12 = call i32 @noDataStructureMethod(ptr noundef %11)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %12)
%14 = load ptr, ptr %2, align 8
%15 = call i32 @noDataStructureMethod(ptr noundef %14)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %15)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @dataStructureMethod(ptr noundef) #1
declare i32 @noDataStructureMethod(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/tmpam4la6i8.c'
source_filename = "/tmp/tmpam4la6i8.c"
target datalayout = "e-m:e-p270: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/tmpam4la6i8.c"
target datalayout = "e-m:e-p270: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/tmpxrle1r1g.c'
source_filename = "/tmp/tmpxrle1r1g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GifPartitionByMedian(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%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
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = sub nsw i32 %13, 1
%15 = icmp slt i32 %12, %14
br i1 %15, label %16, label %50
16: ; preds = %5
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 %18, %19
%21 = sdiv i32 %20, 2
%22 = add nsw i32 %17, %21
store i32 %22, ptr %11, align 4
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %9, align 4
%27 = load i32, ptr %11, align 4
%28 = call i32 @GifPartition(ptr noundef %23, i32 noundef %24, i32 noundef %25, i32 noundef %26, i32 noundef %27)
store i32 %28, ptr %11, align 4
%29 = load i32, ptr %11, align 4
%30 = load i32, ptr %10, align 4
%31 = icmp sgt i32 %29, %30
br i1 %31, label %32, label %38
32: ; preds = %16
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %11, align 4
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr %10, align 4
call void @GifPartitionByMedian(ptr noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %36, i32 noundef %37)
br label %38
38: ; preds = %32, %16
%39 = load i32, ptr %11, align 4
%40 = load i32, ptr %10, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %49
42: ; preds = %38
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %11, align 4
%45 = add nsw i32 %44, 1
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr %9, align 4
%48 = load i32, ptr %10, align 4
call void @GifPartitionByMedian(ptr noundef %43, i32 noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef %48)
br label %49
49: ; preds = %42, %38
br label %50
50: ; preds = %49, %5
ret void
}
declare i32 @GifPartition(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxrle1r1g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GifPartitionByMedian(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%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
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = sub nsw i32 %13, 1
%15 = icmp slt i32 %12, %14
br i1 %15, label %16, label %50
16: ; preds = %5
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 %18, %19
%21 = sdiv i32 %20, 2
%22 = add nsw i32 %17, %21
store i32 %22, ptr %11, align 4
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %9, align 4
%27 = load i32, ptr %11, align 4
%28 = call i32 @GifPartition(ptr noundef %23, i32 noundef %24, i32 noundef %25, i32 noundef %26, i32 noundef %27)
store i32 %28, ptr %11, align 4
%29 = load i32, ptr %11, align 4
%30 = load i32, ptr %10, align 4
%31 = icmp sgt i32 %29, %30
br i1 %31, label %32, label %38
32: ; preds = %16
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %11, align 4
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr %10, align 4
call void @GifPartitionByMedian(ptr noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %36, i32 noundef %37)
br label %38
38: ; preds = %32, %16
%39 = load i32, ptr %11, align 4
%40 = load i32, ptr %10, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %49
42: ; preds = %38
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %11, align 4
%45 = add nsw i32 %44, 1
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr %9, align 4
%48 = load i32, ptr %10, align 4
call void @GifPartitionByMedian(ptr noundef %43, i32 noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef %48)
br label %49
49: ; preds = %42, %38
br label %50
50: ; preds = %49, %5
ret void
}
declare i32 @GifPartition(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6tec_9g6.c'
source_filename = "/tmp/tmp6tec_9g6.c"
target datalayout = "e-m:e-p270: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 [10 x i8] c"fatal:%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @h2o_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 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 (...) @abort() #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #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/tmp6tec_9g6.c"
target datalayout = "e-m:e-p270: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 [10 x i8] c"fatal:%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @h2o_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 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 (...) @abort() #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #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/tmpd_c3d1kq.c'
source_filename = "/tmp/tmpd_c3d1kq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i64 0, align 8
@EXIT_SUCCESS = dso_local global i64 0, align 8
@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/tmpd_c3d1kq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i64 0, align 8
@EXIT_SUCCESS = dso_local global i64 0, align 8
@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/tmp3jh_cxxh.c'
source_filename = "/tmp/tmp3jh_cxxh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @myfread(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i8, align 1
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%13 = load ptr, ptr %6, align 8
%14 = load i64, ptr %7, align 8
%15 = trunc i64 %14 to i32
%16 = load i64, ptr %8, align 8
%17 = trunc i64 %16 to i32
%18 = load ptr, ptr %9, align 8
%19 = call i32 @fread(ptr noundef %13, i32 noundef %15, i32 noundef %17, ptr noundef %18)
%20 = sext i32 %19 to i64
store i64 %20, ptr %10, align 8
%21 = load i64, ptr %8, align 8
%22 = icmp eq i64 %21, 1
br i1 %22, label %23, label %53
23: ; preds = %4
%24 = load i64, ptr %7, align 8
%25 = icmp eq i64 %24, 1
br i1 %25, label %26, label %53
26: ; preds = %23
%27 = load i64, ptr %10, align 8
%28 = icmp eq i64 %27, 1
br i1 %28, label %29, label %53
29: ; preds = %26
%30 = load ptr, ptr %6, align 8
%31 = load i8, ptr %30, align 1
store i8 %31, ptr %11, align 1
%32 = load ptr, ptr %9, align 8
%33 = call i32 @fgetpos(ptr noundef %32, ptr noundef %12)
br label %34
34: ; preds = %44, %29
%35 = load i8, ptr %11, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %34
%39 = load ptr, ptr %9, align 8
%40 = call i32 @fread(ptr noundef %11, i32 noundef 1, i32 noundef 1, ptr noundef %39)
%41 = icmp eq i32 %40, 1
br label %42
42: ; preds = %38, %34
%43 = phi i1 [ false, %34 ], [ %41, %38 ]
br i1 %43, label %44, label %45
44: ; preds = %42
br label %34, !llvm.loop !6
45: ; preds = %42
%46 = load ptr, ptr %9, align 8
%47 = call i32 @fsetpos(ptr noundef %46, ptr noundef %12)
%48 = load i8, ptr %11, align 1
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %45
store i32 0, ptr %5, align 4
br label %56
52: ; preds = %45
br label %53
53: ; preds = %52, %26, %23, %4
%54 = load i64, ptr %10, align 8
%55 = trunc i64 %54 to i32
store i32 %55, ptr %5, align 4
br label %56
56: ; preds = %53, %51
%57 = load i32, ptr %5, align 4
ret i32 %57
}
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fgetpos(ptr noundef, ptr noundef) #1
declare i32 @fsetpos(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/tmp3jh_cxxh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @myfread(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i8, align 1
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%13 = load ptr, ptr %6, align 8
%14 = load i64, ptr %7, align 8
%15 = trunc i64 %14 to i32
%16 = load i64, ptr %8, align 8
%17 = trunc i64 %16 to i32
%18 = load ptr, ptr %9, align 8
%19 = call i32 @fread(ptr noundef %13, i32 noundef %15, i32 noundef %17, ptr noundef %18)
%20 = sext i32 %19 to i64
store i64 %20, ptr %10, align 8
%21 = load i64, ptr %8, align 8
%22 = icmp eq i64 %21, 1
br i1 %22, label %23, label %52
23: ; preds = %4
%24 = load i64, ptr %7, align 8
%25 = icmp eq i64 %24, 1
br i1 %25, label %26, label %52
26: ; preds = %23
%27 = load i64, ptr %10, align 8
%28 = icmp eq i64 %27, 1
br i1 %28, label %29, label %52
29: ; preds = %26
%30 = load ptr, ptr %6, align 8
%31 = load i8, ptr %30, align 1
store i8 %31, ptr %11, align 1
%32 = load ptr, ptr %9, align 8
%33 = call i32 @fgetpos(ptr noundef %32, ptr noundef %12)
br label %34
34: ; preds = %42, %29
%35 = load i8, ptr %11, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %34
%39 = load ptr, ptr %9, align 8
%40 = call i32 @fread(ptr noundef %11, i32 noundef 1, i32 noundef 1, ptr noundef %39)
%41 = icmp eq i32 %40, 1
br label %42
42: ; preds = %38, %34
%43 = phi i1 [ false, %34 ], [ %41, %38 ]
br i1 %43, label %34, label %44, !llvm.loop !6
44: ; preds = %42
%45 = load ptr, ptr %9, align 8
%46 = call i32 @fsetpos(ptr noundef %45, ptr noundef %12)
%47 = load i8, ptr %11, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %44
store i32 0, ptr %5, align 4
br label %55
51: ; preds = %44
br label %52
52: ; preds = %51, %26, %23, %4
%53 = load i64, ptr %10, align 8
%54 = trunc i64 %53 to i32
store i32 %54, ptr %5, align 4
br label %55
55: ; preds = %52, %50
%56 = load i32, ptr %5, align 4
ret i32 %56
}
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fgetpos(ptr noundef, ptr noundef) #1
declare i32 @fsetpos(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/tmp2_qn1k5q.c'
source_filename = "/tmp/tmp2_qn1k5q.c"
target datalayout = "e-m:e-p270: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/tmp2_qn1k5q.c"
target datalayout = "e-m:e-p270: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/tmpmy438i5k.c'
source_filename = "/tmp/tmpmy438i5k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"/usr/bin/chfn\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"--help\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Child report: Execve failed \00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%s%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"status\00", align 1
@.str.6 = private unnamed_addr constant [69 x i8] c"Parent report: Child process failed. Status of the child process is \00", align 1
@.str.7 = private unnamed_addr constant [49 x i8] c"Parent report: Child process exited successfully\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca [2 x ptr], align 16
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i64 (...) @fork()
store i64 %11, ptr %6, align 8
%12 = load i64, ptr %6, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %23
14: ; preds = %2
store ptr @.str, ptr %8, align 8
%15 = load ptr, ptr %8, align 8
%16 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 0
store ptr %15, ptr %16, align 16
%17 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 1
store ptr @.str.1, ptr %17, align 8
%18 = load ptr, ptr %8, align 8
%19 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 0
%20 = call i32 @execv(ptr noundef %18, ptr noundef %19)
store i32 %20, ptr %9, align 4
%21 = load i32, ptr @stdout, align 4
%22 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str.2, ptr noundef @.str.3)
br label %40
23: ; preds = %2
%24 = load i64, ptr %6, align 8
%25 = call i32 @waitpid(i64 noundef %24, ptr noundef %10, i32 noundef 0)
%26 = load i32, ptr @stdout, align 4
%27 = load i32, ptr %10, align 4
%28 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %26, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef %27)
%29 = load i32, ptr %10, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %23
%32 = load i32, ptr @stdout, align 4
%33 = load i32, ptr %10, align 4
%34 = call i32 @WEXITSTATUS(i32 noundef %33)
%35 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %32, ptr noundef @.str.4, ptr noundef @.str.6, i32 noundef %34)
br label %39
36: ; preds = %23
%37 = load i32, ptr @stdout, align 4
%38 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.2, ptr noundef @.str.7)
br label %39
39: ; preds = %36, %31
br label %40
40: ; preds = %39, %14
ret i32 0
}
declare i64 @fork(...) #1
declare i32 @execv(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @waitpid(i64 noundef, ptr noundef, i32 noundef) #1
declare i32 @WEXITSTATUS(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/tmpmy438i5k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"/usr/bin/chfn\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"--help\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Child report: Execve failed \00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%s%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"status\00", align 1
@.str.6 = private unnamed_addr constant [69 x i8] c"Parent report: Child process failed. Status of the child process is \00", align 1
@.str.7 = private unnamed_addr constant [49 x i8] c"Parent report: Child process exited successfully\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca [2 x ptr], align 16
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i64 (...) @fork()
store i64 %11, ptr %6, align 8
%12 = load i64, ptr %6, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %23
14: ; preds = %2
store ptr @.str, ptr %8, align 8
%15 = load ptr, ptr %8, align 8
%16 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 0
store ptr %15, ptr %16, align 16
%17 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 1
store ptr @.str.1, ptr %17, align 8
%18 = load ptr, ptr %8, align 8
%19 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 0
%20 = call i32 @execv(ptr noundef %18, ptr noundef %19)
store i32 %20, ptr %9, align 4
%21 = load i32, ptr @stdout, align 4
%22 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str.2, ptr noundef @.str.3)
br label %40
23: ; preds = %2
%24 = load i64, ptr %6, align 8
%25 = call i32 @waitpid(i64 noundef %24, ptr noundef %10, i32 noundef 0)
%26 = load i32, ptr @stdout, align 4
%27 = load i32, ptr %10, align 4
%28 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %26, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef %27)
%29 = load i32, ptr %10, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %23
%32 = load i32, ptr @stdout, align 4
%33 = load i32, ptr %10, align 4
%34 = call i32 @WEXITSTATUS(i32 noundef %33)
%35 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %32, ptr noundef @.str.4, ptr noundef @.str.6, i32 noundef %34)
br label %39
36: ; preds = %23
%37 = load i32, ptr @stdout, align 4
%38 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.2, ptr noundef @.str.7)
br label %39
39: ; preds = %36, %31
br label %40
40: ; preds = %39, %14
ret i32 0
}
declare i64 @fork(...) #1
declare i32 @execv(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @waitpid(i64 noundef, ptr noundef, i32 noundef) #1
declare i32 @WEXITSTATUS(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/tmpr8cphnnh.c'
source_filename = "/tmp/tmpr8cphnnh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_mm_cmplt_epi32(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @_mm_cmplt_epi32(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @_mm_cmplt_epi32(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/tmpr8cphnnh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_mm_cmplt_epi32(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @_mm_cmplt_epi32(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @_mm_cmplt_epi32(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/tmpq74f42hi.c'
source_filename = "/tmp/tmpq74f42hi.c"
target datalayout = "e-m:e-p270: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 [33 x i8] c"Enter your first and last name: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"You entered the name: \00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c", %c.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %7
7: ; preds = %15, %0
%8 = call signext i8 (...) @getchar()
%9 = sext i8 %8 to i32
store i32 %9, ptr %3, align 4
%10 = icmp eq i32 %9, 32
br i1 %10, label %11, label %16
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = icmp ne i32 %12, 32
br i1 %13, label %14, label %15
14: ; preds = %11
br label %16
15: ; preds = %11
br label %7, !llvm.loop !6
16: ; preds = %14, %7
br label %17
17: ; preds = %21, %16
%18 = call signext i8 (...) @getchar()
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 32
br i1 %20, label %21, label %22
21: ; preds = %17
br label %17, !llvm.loop !8
22: ; preds = %17
store i32 0, ptr %4, align 4
br label %23
23: ; preds = %39, %22
%24 = load i32, ptr %4, align 4
%25 = icmp sle i32 %24, 20
br i1 %25, label %26, label %42
26: ; preds = %23
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %28
%30 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %29)
%31 = load i32, ptr %4, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 10
br i1 %36, label %37, label %38
37: ; preds = %26
br label %42
38: ; preds = %26
br label %39
39: ; preds = %38
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
br label %23, !llvm.loop !9
42: ; preds = %37, %23
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %5, align 4
br label %44
44: ; preds = %63, %42
%45 = load i32, ptr %5, align 4
%46 = icmp sle i32 %45, 20
br i1 %46, label %47, label %66
47: ; preds = %44
%48 = load i32, ptr %5, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %52)
%54 = load i32, ptr %5, align 4
%55 = add nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %56
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 10
br i1 %60, label %61, label %62
61: ; preds = %47
br label %66
62: ; preds = %47
br label %63
63: ; preds = %62
%64 = load i32, ptr %5, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %5, align 4
br label %44, !llvm.loop !10
66: ; preds = %61, %44
%67 = load i32, ptr %3, align 4
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %67)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @getchar(...) #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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq74f42hi.c"
target datalayout = "e-m:e-p270: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 [33 x i8] c"Enter your first and last name: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"You entered the name: \00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c", %c.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call signext i8 (...) @getchar()
%8 = sext i8 %7 to i32
store i32 %8, ptr %3, align 4
%9 = icmp eq i32 %8, 32
br i1 %9, label %.lr.ph, label %.loopexit2
.lr.ph: ; preds = %0
br label %14
10: ; preds = %14
%11 = call signext i8 (...) @getchar()
%12 = sext i8 %11 to i32
store i32 %12, ptr %3, align 4
%13 = icmp eq i32 %12, 32
br i1 %13, label %14, label %..loopexit2_crit_edge, !llvm.loop !6
14: ; preds = %.lr.ph, %10
%15 = load i32, ptr %3, align 4
%16 = icmp ne i32 %15, 32
br i1 %16, label %17, label %10
17: ; preds = %14
br label %18
..loopexit2_crit_edge: ; preds = %10
br label %.loopexit2
.loopexit2: ; preds = %..loopexit2_crit_edge, %0
br label %18
18: ; preds = %.loopexit2, %17
br label %19
19: ; preds = %19, %18
%20 = call signext i8 (...) @getchar()
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 32
br i1 %22, label %19, label %23, !llvm.loop !8
23: ; preds = %19
store i32 0, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp sle i32 %24, 20
br i1 %25, label %.lr.ph3, label %.loopexit1
.lr.ph3: ; preds = %23
br label %26
26: ; preds = %.lr.ph3, %39
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %28
%30 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %29)
%31 = load i32, ptr %4, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 10
br i1 %36, label %37, label %38
37: ; preds = %26
br label %44
38: ; preds = %26
br label %39
39: ; preds = %38
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
%42 = load i32, ptr %4, align 4
%43 = icmp sle i32 %42, 20
br i1 %43, label %26, label %..loopexit1_crit_edge, !llvm.loop !9
..loopexit1_crit_edge: ; preds = %39
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %23
br label %44
44: ; preds = %.loopexit1, %37
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %5, align 4
%46 = load i32, ptr %5, align 4
%47 = icmp sle i32 %46, 20
br i1 %47, label %.lr.ph4, label %.loopexit
.lr.ph4: ; preds = %44
br label %48
48: ; preds = %.lr.ph4, %64
%49 = load i32, ptr %5, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %50
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %53)
%55 = load i32, ptr %5, align 4
%56 = add nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 10
br i1 %61, label %62, label %63
62: ; preds = %48
br label %69
63: ; preds = %48
br label %64
64: ; preds = %63
%65 = load i32, ptr %5, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %5, align 4
%67 = load i32, ptr %5, align 4
%68 = icmp sle i32 %67, 20
br i1 %68, label %48, label %..loopexit_crit_edge, !llvm.loop !10
..loopexit_crit_edge: ; preds = %64
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %44
br label %69
69: ; preds = %.loopexit, %62
%70 = load i32, ptr %3, align 4
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %70)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @getchar(...) #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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpezlkt8nr.c'
source_filename = "/tmp/tmpezlkt8nr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_array_iter() #0 {
%1 = call i32 (...) @test_array_iter_remove()
%2 = call i32 (...) @test_array_iter_add()
%3 = call i32 (...) @test_array_iter_replace()
ret void
}
declare i32 @test_array_iter_remove(...) #1
declare i32 @test_array_iter_add(...) #1
declare i32 @test_array_iter_replace(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpezlkt8nr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_array_iter() #0 {
%1 = call i32 (...) @test_array_iter_remove()
%2 = call i32 (...) @test_array_iter_add()
%3 = call i32 (...) @test_array_iter_replace()
ret void
}
declare i32 @test_array_iter_remove(...) #1
declare i32 @test_array_iter_add(...) #1
declare i32 @test_array_iter_replace(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3e_i19n2.c'
source_filename = "/tmp/tmp3e_i19n2.c"
target datalayout = "e-m:e-p270: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/tmp3e_i19n2.c"
target datalayout = "e-m:e-p270: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/tmp35im78it.c'
source_filename = "/tmp/tmp35im78it.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IFLA_XDP_DRV_PROG_ID = dso_local global i8 0, align 1
@IFLA_XDP_HW_PROG_ID = dso_local global i8 0, align 1
@IFLA_XDP_PROG_ID = dso_local global i8 0, align 1
@IFLA_XDP_SKB_PROG_ID = dso_local global i8 0, align 1
@IFLA_XDP_UNSPEC = dso_local global i8 0, align 1
@XDP_ATTACHED_MULTI = dso_local global i8 0, align 1
@XDP_FLAGS_DRV_MODE = dso_local global i32 0, align 4
@XDP_FLAGS_HW_MODE = dso_local global i32 0, align 4
@XDP_FLAGS_SKB_MODE = 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/tmp35im78it.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IFLA_XDP_DRV_PROG_ID = dso_local global i8 0, align 1
@IFLA_XDP_HW_PROG_ID = dso_local global i8 0, align 1
@IFLA_XDP_PROG_ID = dso_local global i8 0, align 1
@IFLA_XDP_SKB_PROG_ID = dso_local global i8 0, align 1
@IFLA_XDP_UNSPEC = dso_local global i8 0, align 1
@XDP_ATTACHED_MULTI = dso_local global i8 0, align 1
@XDP_FLAGS_DRV_MODE = dso_local global i32 0, align 4
@XDP_FLAGS_HW_MODE = dso_local global i32 0, align 4
@XDP_FLAGS_SKB_MODE = 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/tmp76v6d701.c'
source_filename = "/tmp/tmp76v6d701.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Usage: cp file1 file2\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c".bkp\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca [8192 x i8], align 16
%11 = alloca [8192 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 3
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %64
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = load i32, ptr @O_RDONLY, align 4
%21 = call i32 (ptr, i32, ...) @open(ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %26
24: ; preds = %16
%25 = call i32 @perror(ptr noundef @.str.1)
store i32 2, ptr %3, align 4
br label %64
26: ; preds = %16
%27 = getelementptr inbounds [8192 x i8], ptr %11, i64 0, i64 0
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 2
%30 = load ptr, ptr %29, align 8
%31 = call i32 @strcpy(ptr noundef %27, ptr noundef %30)
%32 = getelementptr inbounds [8192 x i8], ptr %11, i64 0, i64 0
%33 = call i32 @strcat(ptr noundef %32, ptr noundef @.str.2)
%34 = getelementptr inbounds [8192 x i8], ptr %11, i64 0, i64 0
%35 = load i32, ptr @O_WRONLY, align 4
%36 = load i32, ptr @O_CREAT, align 4
%37 = or i32 %35, %36
%38 = call i32 (ptr, i32, ...) @open(ptr noundef %34, i32 noundef %37, i32 noundef 420)
store i32 %38, ptr %7, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %43
41: ; preds = %26
%42 = call i32 @perror(ptr noundef @.str.1)
store i32 3, ptr %3, align 4
br label %64
43: ; preds = %26
br label %44
44: ; preds = %57, %43
%45 = load i32, ptr %6, align 4
%46 = call i64 @read(i32 noundef %45, ptr noundef %10, i32 noundef 8192)
store i64 %46, ptr %8, align 8
%47 = icmp sgt i64 %46, 0
br i1 %47, label %48, label %58
48: ; preds = %44
%49 = load i32, ptr %7, align 4
%50 = load i64, ptr %8, align 8
%51 = call i64 @write(i32 noundef %49, ptr noundef %10, i64 noundef %50)
store i64 %51, ptr %9, align 8
%52 = load i64, ptr %9, align 8
%53 = load i64, ptr %8, align 8
%54 = icmp ne i64 %52, %53
br i1 %54, label %55, label %57
55: ; preds = %48
%56 = call i32 @perror(ptr noundef @.str.3)
store i32 4, ptr %3, align 4
br label %64
57: ; preds = %48
br label %44, !llvm.loop !6
58: ; preds = %44
%59 = load i32, ptr %6, align 4
%60 = call i32 @close(i32 noundef %59)
%61 = load i32, ptr %7, align 4
%62 = call i32 @close(i32 noundef %61)
%63 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %63, ptr %3, align 4
br label %64
64: ; preds = %58, %55, %41, %24, %14
%65 = load i32, ptr %3, align 4
ret i32 %65
}
declare i32 @printf(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp76v6d701.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Usage: cp file1 file2\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c".bkp\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca [8192 x i8], align 16
%11 = alloca [8192 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 3
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %66
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = load i32, ptr @O_RDONLY, align 4
%21 = call i32 (ptr, i32, ...) @open(ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %26
24: ; preds = %16
%25 = call i32 @perror(ptr noundef @.str.1)
store i32 2, ptr %3, align 4
br label %66
26: ; preds = %16
%27 = getelementptr inbounds [8192 x i8], ptr %11, i64 0, i64 0
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 2
%30 = load ptr, ptr %29, align 8
%31 = call i32 @strcpy(ptr noundef %27, ptr noundef %30)
%32 = getelementptr inbounds [8192 x i8], ptr %11, i64 0, i64 0
%33 = call i32 @strcat(ptr noundef %32, ptr noundef @.str.2)
%34 = getelementptr inbounds [8192 x i8], ptr %11, i64 0, i64 0
%35 = load i32, ptr @O_WRONLY, align 4
%36 = load i32, ptr @O_CREAT, align 4
%37 = or i32 %35, %36
%38 = call i32 (ptr, i32, ...) @open(ptr noundef %34, i32 noundef %37, i32 noundef 420)
store i32 %38, ptr %7, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %43
41: ; preds = %26
%42 = call i32 @perror(ptr noundef @.str.1)
store i32 3, ptr %3, align 4
br label %66
43: ; preds = %26
%44 = load i32, ptr %6, align 4
%45 = call i64 @read(i32 noundef %44, ptr noundef %10, i32 noundef 8192)
store i64 %45, ptr %8, align 8
%46 = icmp sgt i64 %45, 0
br i1 %46, label %.lr.ph, label %60
.lr.ph: ; preds = %43
br label %51
47: ; preds = %51
%48 = load i32, ptr %6, align 4
%49 = call i64 @read(i32 noundef %48, ptr noundef %10, i32 noundef 8192)
store i64 %49, ptr %8, align 8
%50 = icmp sgt i64 %49, 0
br i1 %50, label %51, label %._crit_edge, !llvm.loop !6
51: ; preds = %.lr.ph, %47
%52 = load i32, ptr %7, align 4
%53 = load i64, ptr %8, align 8
%54 = call i64 @write(i32 noundef %52, ptr noundef %10, i64 noundef %53)
store i64 %54, ptr %9, align 8
%55 = load i64, ptr %9, align 8
%56 = load i64, ptr %8, align 8
%57 = icmp ne i64 %55, %56
br i1 %57, label %58, label %47
58: ; preds = %51
%59 = call i32 @perror(ptr noundef @.str.3)
store i32 4, ptr %3, align 4
br label %66
._crit_edge: ; preds = %47
br label %60
60: ; preds = %._crit_edge, %43
%61 = load i32, ptr %6, align 4
%62 = call i32 @close(i32 noundef %61)
%63 = load i32, ptr %7, align 4
%64 = call i32 @close(i32 noundef %63)
%65 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %65, ptr %3, align 4
br label %66
66: ; preds = %60, %58, %41, %24, %14
%67 = load i32, ptr %3, align 4
ret i32 %67
}
declare i32 @printf(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpe5by0uvn.c'
source_filename = "/tmp/tmpe5by0uvn.c"
target datalayout = "e-m:e-p270: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/tmpe5by0uvn.c"
target datalayout = "e-m:e-p270: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_i1qyt_w.c'
source_filename = "/tmp/tmp_i1qyt_w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"PASS\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"FAIL\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
%7 = load i32, ptr %6, align 4
%8 = icmp eq i32 %7, 1094795585
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @printf(ptr noundef @.str)
br label %13
11: ; preds = %2
%12 = call i32 @printf(ptr noundef @.str.1)
br label %13
13: ; preds = %11, %9
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/tmp_i1qyt_w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"PASS\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"FAIL\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
%7 = load i32, ptr %6, align 4
%8 = icmp eq i32 %7, 1094795585
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @printf(ptr noundef @.str)
br label %13
11: ; preds = %2
%12 = call i32 @printf(ptr noundef @.str.1)
br label %13
13: ; preds = %11, %9
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/tmpbw51hror.c'
source_filename = "/tmp/tmpbw51hror.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @snprint_sd16(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %23
10: ; preds = %3
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
store i8 45, ptr %12, align 1
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds i8, ptr %13, i32 1
store ptr %14, ptr %5, align 8
%15 = load i64, ptr %6, align 8
%16 = add i64 %15, -1
store i64 %16, ptr %6, align 8
%17 = load ptr, ptr %5, align 8
%18 = load i64, ptr %6, align 8
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 0, %19
%21 = call i64 @snprint_d16(ptr noundef %17, i64 noundef %18, i32 noundef %20)
%22 = add nsw i64 %21, 1
store i64 %22, ptr %4, align 8
br label %28
23: ; preds = %3
%24 = load ptr, ptr %5, align 8
%25 = load i64, ptr %6, align 8
%26 = load i32, ptr %7, align 4
%27 = call i64 @snprint_d16(ptr noundef %24, i64 noundef %25, i32 noundef %26)
store i64 %27, ptr %4, align 8
br label %28
28: ; preds = %23, %10
%29 = load i64, ptr %4, align 8
ret i64 %29
}
declare i64 @snprint_d16(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/tmpbw51hror.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @snprint_sd16(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %23
10: ; preds = %3
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
store i8 45, ptr %12, align 1
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds i8, ptr %13, i32 1
store ptr %14, ptr %5, align 8
%15 = load i64, ptr %6, align 8
%16 = add i64 %15, -1
store i64 %16, ptr %6, align 8
%17 = load ptr, ptr %5, align 8
%18 = load i64, ptr %6, align 8
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 0, %19
%21 = call i64 @snprint_d16(ptr noundef %17, i64 noundef %18, i32 noundef %20)
%22 = add nsw i64 %21, 1
store i64 %22, ptr %4, align 8
br label %28
23: ; preds = %3
%24 = load ptr, ptr %5, align 8
%25 = load i64, ptr %6, align 8
%26 = load i32, ptr %7, align 4
%27 = call i64 @snprint_d16(ptr noundef %24, i64 noundef %25, i32 noundef %26)
store i64 %27, ptr %4, align 8
br label %28
28: ; preds = %23, %10
%29 = load i64, ptr %4, align 8
ret i64 %29
}
declare i64 @snprint_d16(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/tmp0qlm6vh8.c'
source_filename = "/tmp/tmp0qlm6vh8.c"
target datalayout = "e-m:e-p270: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.b = private unnamed_addr constant [3 x i32] [i32 0, i32 1, i32 2], align 4
@.str = private unnamed_addr constant [12 x i8] c"b[%d] = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i32], align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.main.b, i64 12, i1 false)
%3 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%4 = call i32 @add(ptr noundef %3)
store i32 0, ptr %1, align 4
br label %5
5: ; preds = %15, %0
%6 = load i32, ptr %1, align 4
%7 = icmp slt i32 %6, 3
br i1 %7, label %8, label %18
8: ; preds = %5
%9 = load i32, ptr %1, align 4
%10 = load i32, ptr %1, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 %11
%13 = load i32, ptr %12, align 4
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %9, i32 noundef %13)
br label %15
15: ; preds = %8
%16 = load i32, ptr %1, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %1, align 4
br label %5, !llvm.loop !6
18: ; preds = %5
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @add(ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0qlm6vh8.c"
target datalayout = "e-m:e-p270: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.b = private unnamed_addr constant [3 x i32] [i32 0, i32 1, i32 2], align 4
@.str = private unnamed_addr constant [12 x i8] c"b[%d] = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i32], align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.main.b, i64 12, i1 false)
%3 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%4 = call i32 @add(ptr noundef %3)
store i32 0, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = icmp slt i32 %5, 3
br i1 %6, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %14
%8 = load i32, ptr %1, align 4
%9 = load i32, ptr %1, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 %10
%12 = load i32, ptr %11, align 4
%13 = call i32 @printf(ptr noundef @.str, i32 noundef %8, i32 noundef %12)
br label %14
14: ; preds = %7
%15 = load i32, ptr %1, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %1, align 4
%17 = load i32, ptr %1, align 4
%18 = icmp slt i32 %17, 3
br i1 %18, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %0
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @add(ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9dbyhc1y.c'
source_filename = "/tmp/tmp9dbyhc1y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"ERROR: resolving host: %s (%i)\0A\00", align 1
@.str.1 = private unnamed_addr constant [129 x i8] c"ssh -y -i /etc/dropbear/dropbear_ecdsa_host_key %s@%s \22DISPLAY=:0 xdg-open 'https://www.google.com.au/search?q=set+timer+5+min'\22\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"ERROR: notifying user: %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_timer(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @getaddrinfo(ptr noundef %11, ptr noundef null, ptr noundef null, ptr noundef %6)
store i32 %12, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load i32, ptr %7, align 4
%17 = call ptr @gai_strerror(i32 noundef %16)
%18 = load i32, ptr %7, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %17, i32 noundef %18)
%20 = load i32, ptr %7, align 4
store i32 %20, ptr %3, align 4
br label %49
21: ; preds = %2
%22 = load ptr, ptr %6, align 8
%23 = call i32 @freeaddrinfo(ptr noundef %22)
br label %24
24: ; preds = %21
store ptr @.str.1, ptr %8, align 8
%25 = load ptr, ptr %8, align 8
%26 = call i32 @strlen(ptr noundef %25)
%27 = load ptr, ptr %5, align 8
%28 = call i32 @strlen(ptr noundef %27)
%29 = add nsw i32 %26, %28
%30 = load ptr, ptr %4, align 8
%31 = call i32 @strlen(ptr noundef %30)
%32 = add nsw i32 %29, %31
%33 = zext i32 %32 to i64
%34 = call ptr @llvm.stacksave()
store ptr %34, ptr %9, align 8
%35 = alloca i8, i64 %33, align 16
store i64 %33, ptr %10, align 8
%36 = load ptr, ptr %8, align 8
%37 = load ptr, ptr %5, align 8
%38 = load ptr, ptr %4, align 8
%39 = call i32 @sprintf(ptr noundef %35, ptr noundef %36, ptr noundef %37, ptr noundef %38)
%40 = call i32 @system(ptr noundef %35)
store i32 %40, ptr %7, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %24
%44 = load i32, ptr %7, align 4
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %44)
br label %46
46: ; preds = %43, %24
%47 = load i32, ptr %7, align 4
store i32 %47, ptr %3, align 4
%48 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %48)
br label %49
49: ; preds = %46, %15
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9dbyhc1y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"ERROR: resolving host: %s (%i)\0A\00", align 1
@.str.1 = private unnamed_addr constant [129 x i8] c"ssh -y -i /etc/dropbear/dropbear_ecdsa_host_key %s@%s \22DISPLAY=:0 xdg-open 'https://www.google.com.au/search?q=set+timer+5+min'\22\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"ERROR: notifying user: %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_timer(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @getaddrinfo(ptr noundef %11, ptr noundef null, ptr noundef null, ptr noundef %6)
store i32 %12, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load i32, ptr %7, align 4
%17 = call ptr @gai_strerror(i32 noundef %16)
%18 = load i32, ptr %7, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %17, i32 noundef %18)
%20 = load i32, ptr %7, align 4
store i32 %20, ptr %3, align 4
br label %49
21: ; preds = %2
%22 = load ptr, ptr %6, align 8
%23 = call i32 @freeaddrinfo(ptr noundef %22)
br label %24
24: ; preds = %21
store ptr @.str.1, ptr %8, align 8
%25 = load ptr, ptr %8, align 8
%26 = call i32 @strlen(ptr noundef %25)
%27 = load ptr, ptr %5, align 8
%28 = call i32 @strlen(ptr noundef %27)
%29 = add nsw i32 %26, %28
%30 = load ptr, ptr %4, align 8
%31 = call i32 @strlen(ptr noundef %30)
%32 = add nsw i32 %29, %31
%33 = zext i32 %32 to i64
%34 = call ptr @llvm.stacksave()
store ptr %34, ptr %9, align 8
%35 = alloca i8, i64 %33, align 16
store i64 %33, ptr %10, align 8
%36 = load ptr, ptr %8, align 8
%37 = load ptr, ptr %5, align 8
%38 = load ptr, ptr %4, align 8
%39 = call i32 @sprintf(ptr noundef %35, ptr noundef %36, ptr noundef %37, ptr noundef %38)
%40 = call i32 @system(ptr noundef %35)
store i32 %40, ptr %7, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %24
%44 = load i32, ptr %7, align 4
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %44)
br label %46
46: ; preds = %43, %24
%47 = load i32, ptr %7, align 4
store i32 %47, ptr %3, align 4
%48 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %48)
br label %49
49: ; preds = %46, %15
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6f0z5aj8.c'
source_filename = "/tmp/tmp6f0z5aj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
br label %2
2: ; preds = %0
br label %3
3: ; preds = %2
%4 = call i32 (...) @testGetValue()
ret i32 0
}
declare i32 @testGetValue(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6f0z5aj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
br label %2
2: ; preds = %0
br label %3
3: ; preds = %2
%4 = call i32 (...) @testGetValue()
ret i32 0
}
declare i32 @testGetValue(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_1ha95b7.c'
source_filename = "/tmp/tmp_1ha95b7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"You have \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c" crowns.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @drawmoney(i8 noundef zeroext %0, i8 noundef zeroext %1, i8 noundef zeroext %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca [20 x i8], align 16
store i8 %0, ptr %4, align 1
store i8 %1, ptr %5, align 1
store i8 %2, ptr %6, align 1
%8 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
store i8 0, ptr %8, align 16
%9 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%10 = call i32 @strcat(ptr noundef %9, ptr noundef @.str)
%11 = load i8, ptr %6, align 1
%12 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 9
%13 = call i32 @int2str(i8 noundef zeroext %11, ptr noundef %12)
%14 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%15 = call i32 @strcat(ptr noundef %14, ptr noundef @.str.1)
%16 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%17 = load i8, ptr %4, align 1
%18 = load i8, ptr %5, align 1
%19 = call i32 @drawstringz(ptr noundef %16, i8 noundef zeroext %17, i8 noundef zeroext %18)
ret void
}
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @int2str(i8 noundef zeroext, ptr noundef) #1
declare i32 @drawstringz(ptr noundef, i8 noundef zeroext, 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/tmp_1ha95b7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"You have \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c" crowns.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @drawmoney(i8 noundef zeroext %0, i8 noundef zeroext %1, i8 noundef zeroext %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca [20 x i8], align 16
store i8 %0, ptr %4, align 1
store i8 %1, ptr %5, align 1
store i8 %2, ptr %6, align 1
%8 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
store i8 0, ptr %8, align 16
%9 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%10 = call i32 @strcat(ptr noundef %9, ptr noundef @.str)
%11 = load i8, ptr %6, align 1
%12 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 9
%13 = call i32 @int2str(i8 noundef zeroext %11, ptr noundef %12)
%14 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%15 = call i32 @strcat(ptr noundef %14, ptr noundef @.str.1)
%16 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%17 = load i8, ptr %4, align 1
%18 = load i8, ptr %5, align 1
%19 = call i32 @drawstringz(ptr noundef %16, i8 noundef zeroext %17, i8 noundef zeroext %18)
ret void
}
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @int2str(i8 noundef zeroext, ptr noundef) #1
declare i32 @drawstringz(ptr noundef, i8 noundef zeroext, 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/tmppmw_l0tt.c'
source_filename = "/tmp/tmppmw_l0tt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pic14n_program_end(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @pic_write_panel(i32 noundef 3, i32 noundef 65535, i32 noundef 65535)
%4 = call i32 (...) @pic14n_standby()
%5 = load i32, ptr %2, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 (...) @pic14n_write_config()
br label %9
9: ; preds = %7, %1
ret void
}
declare i32 @pic_write_panel(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @pic14n_standby(...) #1
declare i32 @pic14n_write_config(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppmw_l0tt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pic14n_program_end(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @pic_write_panel(i32 noundef 3, i32 noundef 65535, i32 noundef 65535)
%4 = call i32 (...) @pic14n_standby()
%5 = load i32, ptr %2, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 (...) @pic14n_write_config()
br label %9
9: ; preds = %7, %1
ret void
}
declare i32 @pic_write_panel(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @pic14n_standby(...) #1
declare i32 @pic14n_write_config(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9eol0d3t.c'
source_filename = "/tmp/tmp9eol0d3t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcspn(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
store i64 0, ptr %7, align 8
br label %8
8: ; preds = %29, %2
%9 = load ptr, ptr %4, align 8
%10 = load i64, ptr %7, align 8
%11 = getelementptr inbounds i8, ptr %9, i64 %10
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %32
15: ; preds = %8
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %4, align 8
%18 = load i64, ptr %7, align 8
%19 = getelementptr inbounds i8, ptr %17, i64 %18
%20 = load i8, ptr %19, align 1
%21 = call ptr @strchr(ptr noundef %16, i8 noundef signext %20)
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %26
23: ; preds = %15
%24 = load i64, ptr %6, align 8
%25 = add i64 %24, 1
store i64 %25, ptr %6, align 8
br label %28
26: ; preds = %15
%27 = load i64, ptr %6, align 8
store i64 %27, ptr %3, align 8
br label %34
28: ; preds = %23
br label %29
29: ; preds = %28
%30 = load i64, ptr %7, align 8
%31 = add i64 %30, 1
store i64 %31, ptr %7, align 8
br label %8, !llvm.loop !6
32: ; preds = %8
%33 = load i64, ptr %6, align 8
store i64 %33, ptr %3, align 8
br label %34
34: ; preds = %32, %26
%35 = load i64, ptr %3, align 8
ret i64 %35
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9eol0d3t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcspn(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
store i64 0, ptr %7, align 8
%8 = load ptr, ptr %4, align 8
%9 = load i64, ptr %7, align 8
%10 = getelementptr inbounds i8, ptr %8, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph, label %37
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %28
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %4, align 8
%17 = load i64, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load i8, ptr %18, align 1
%20 = call ptr @strchr(ptr noundef %15, i8 noundef signext %19)
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %25
22: ; preds = %14
%23 = load i64, ptr %6, align 8
%24 = add i64 %23, 1
store i64 %24, ptr %6, align 8
br label %27
25: ; preds = %14
%26 = load i64, ptr %6, align 8
store i64 %26, ptr %3, align 8
br label %39
27: ; preds = %22
br label %28
28: ; preds = %27
%29 = load i64, ptr %7, align 8
%30 = add i64 %29, 1
store i64 %30, ptr %7, align 8
%31 = load ptr, ptr %4, align 8
%32 = load i64, ptr %7, align 8
%33 = getelementptr inbounds i8, ptr %31, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %35, 0
br i1 %36, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %37
37: ; preds = %._crit_edge, %2
%38 = load i64, ptr %6, align 8
store i64 %38, ptr %3, align 8
br label %39
39: ; preds = %37, %25
%40 = load i64, ptr %3, align 8
ret i64 %40
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpt5_2y_k8.c'
source_filename = "/tmp/tmpt5_2y_k8.c"
target datalayout = "e-m:e-p270: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.ttyent = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getttynam(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call i32 (...) @setttyent()
br label %5
5: ; preds = %16, %1
%6 = call ptr (...) @getttyent()
store ptr %6, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %17
8: ; preds = %5
%9 = load ptr, ptr %2, align 8
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds %struct.ttyent, ptr %10, i32 0, i32 0
%12 = load i32, ptr %11, align 4
%13 = call i32 @strcmp(ptr noundef %9, i32 noundef %12)
%14 = icmp ne i32 %13, 0
br i1 %14, label %16, label %15
15: ; preds = %8
br label %17
16: ; preds = %8
br label %5, !llvm.loop !6
17: ; preds = %15, %5
%18 = call i32 (...) @endttyent()
%19 = load ptr, ptr %3, align 8
ret ptr %19
}
declare i32 @setttyent(...) #1
declare ptr @getttyent(...) #1
declare i32 @strcmp(ptr noundef, i32 noundef) #1
declare i32 @endttyent(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpt5_2y_k8.c"
target datalayout = "e-m:e-p270: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.ttyent = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getttynam(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call i32 (...) @setttyent()
%5 = call ptr (...) @getttyent()
store ptr %5, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %10
7: ; preds = %10
%8 = call ptr (...) @getttyent()
store ptr %8, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %..loopexit_crit_edge, !llvm.loop !6
10: ; preds = %.lr.ph, %7
%11 = load ptr, ptr %2, align 8
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds %struct.ttyent, ptr %12, i32 0, i32 0
%14 = load i32, ptr %13, align 4
%15 = call i32 @strcmp(ptr noundef %11, i32 noundef %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %7, label %17
17: ; preds = %10
br label %18
..loopexit_crit_edge: ; preds = %7
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %18
18: ; preds = %.loopexit, %17
%19 = call i32 (...) @endttyent()
%20 = load ptr, ptr %3, align 8
ret ptr %20
}
declare i32 @setttyent(...) #1
declare ptr @getttyent(...) #1
declare i32 @strcmp(ptr noundef, i32 noundef) #1
declare i32 @endttyent(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpj3qdlhyr.c'
source_filename = "/tmp/tmpj3qdlhyr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cache_control(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store ptr inttoptr (i64 2147483648 to ptr), ptr %3, align 8
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %13, %1
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 32768
br i1 %7, label %8, label %16
8: ; preds = %5
%9 = load ptr, ptr %3, align 8
%10 = load volatile i32, ptr %9, align 4
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 8
store ptr %12, ptr %3, align 8
br label %13
13: ; preds = %8
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, 32
store i32 %15, ptr %4, align 4
br label %5, !llvm.loop !6
16: ; preds = %5
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj3qdlhyr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cache_control(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store ptr inttoptr (i64 2147483648 to ptr), ptr %3, align 8
store i32 0, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp slt i32 %5, 32768
br i1 %6, label %.lr.ph, label %17
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %12
%8 = load ptr, ptr %3, align 8
%9 = load volatile i32, ptr %8, align 4
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds i32, ptr %10, i64 8
store ptr %11, ptr %3, align 8
br label %12
12: ; preds = %7
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 32
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 32768
br i1 %16, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %1
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpb8sv4n16.c'
source_filename = "/tmp/tmpb8sv4n16.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @RogueVMTraceType(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 @RogueType_trace(ptr noundef %3)
ret void
}
declare i32 @RogueType_trace(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/tmpb8sv4n16.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @RogueVMTraceType(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 @RogueType_trace(ptr noundef %3)
ret void
}
declare i32 @RogueType_trace(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/tmp5a7cvqvo.c'
source_filename = "/tmp/tmp5a7cvqvo.c"
target datalayout = "e-m:e-p270: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 [46 x i8] c"usage: delayecho <chars_per_delay> <seconds>\0A\00", align 1
@F_GETFL = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [12 x i8] c"errno = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i8 10, ptr %6, align 1
store i32 0, ptr %8, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp ne i32 3, %14
br i1 %15, label %16, label %19
16: ; preds = %2
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %9, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 2
%26 = load ptr, ptr %25, align 8
%27 = call i32 @atoi(ptr noundef %26)
store i32 %27, ptr %10, align 4
%28 = load i32, ptr @F_GETFL, align 4
%29 = call i32 (i32, i32, ...) @fcntl(i32 noundef 0, i32 noundef %28)
store i32 %29, ptr %11, align 4
%30 = load i32, ptr @F_SETFL, align 4
%31 = load i32, ptr %11, align 4
%32 = load i32, ptr @O_NONBLOCK, align 4
%33 = or i32 %31, %32
%34 = call i32 (i32, i32, ...) @fcntl(i32 noundef 0, i32 noundef %30, i32 noundef %33)
br label %35
35: ; preds = %19, %47, %61
%36 = call i32 @read(i32 noundef 0, ptr noundef %7, i32 noundef 1)
store i32 %36, ptr %12, align 4
%37 = load i32, ptr %12, align 4
%38 = icmp eq i32 %37, -1
br i1 %38, label %39, label %48
39: ; preds = %35
%40 = load i64, ptr @errno, align 8
%41 = load i64, ptr @EAGAIN, align 8
%42 = icmp ne i64 %40, %41
br i1 %42, label %43, label %47
43: ; preds = %39
%44 = load i64, ptr @errno, align 8
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %44)
%46 = call i32 @exit(i32 noundef 1) #3
unreachable
47: ; preds = %39
br label %35
48: ; preds = %35
%49 = load i32, ptr %12, align 4
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 @exit(i32 noundef 1) #3
unreachable
53: ; preds = %48
%54 = load i32, ptr %8, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %8, align 4
%56 = load i32, ptr %9, align 4
%57 = icmp eq i32 %54, %56
br i1 %57, label %58, label %61
58: ; preds = %53
%59 = load i32, ptr %10, align 4
%60 = call i32 @sleep(i32 noundef %59)
store i32 0, ptr %8, align 4
br label %61
61: ; preds = %58, %53
%62 = call i32 @write(i32 noundef 1, ptr noundef %7, i32 noundef 1)
br label %35
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @fcntl(i32 noundef, i32 noundef, ...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @write(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" }
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/tmp5a7cvqvo.c"
target datalayout = "e-m:e-p270: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 [46 x i8] c"usage: delayecho <chars_per_delay> <seconds>\0A\00", align 1
@F_GETFL = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [12 x i8] c"errno = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i8 10, ptr %6, align 1
store i32 0, ptr %8, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp ne i32 3, %14
br i1 %15, label %16, label %19
16: ; preds = %2
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %9, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 2
%26 = load ptr, ptr %25, align 8
%27 = call i32 @atoi(ptr noundef %26)
store i32 %27, ptr %10, align 4
%28 = load i32, ptr @F_GETFL, align 4
%29 = call i32 (i32, i32, ...) @fcntl(i32 noundef 0, i32 noundef %28)
store i32 %29, ptr %11, align 4
%30 = load i32, ptr @F_SETFL, align 4
%31 = load i32, ptr %11, align 4
%32 = load i32, ptr @O_NONBLOCK, align 4
%33 = or i32 %31, %32
%34 = call i32 (i32, i32, ...) @fcntl(i32 noundef 0, i32 noundef %30, i32 noundef %33)
br label %35
35: ; preds = %.backedge, %19
%36 = call i32 @read(i32 noundef 0, ptr noundef %7, i32 noundef 1)
store i32 %36, ptr %12, align 4
%37 = load i32, ptr %12, align 4
%38 = icmp eq i32 %37, -1
br i1 %38, label %39, label %48
39: ; preds = %35
%40 = load i64, ptr @errno, align 8
%41 = load i64, ptr @EAGAIN, align 8
%42 = icmp ne i64 %40, %41
br i1 %42, label %43, label %47
43: ; preds = %39
%44 = load i64, ptr @errno, align 8
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %44)
%46 = call i32 @exit(i32 noundef 1) #3
unreachable
47: ; preds = %39
br label %.backedge
.backedge: ; preds = %47, %61
br label %35
48: ; preds = %35
%49 = load i32, ptr %12, align 4
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 @exit(i32 noundef 1) #3
unreachable
53: ; preds = %48
%54 = load i32, ptr %8, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %8, align 4
%56 = load i32, ptr %9, align 4
%57 = icmp eq i32 %54, %56
br i1 %57, label %58, label %61
58: ; preds = %53
%59 = load i32, ptr %10, align 4
%60 = call i32 @sleep(i32 noundef %59)
store i32 0, ptr %8, align 4
br label %61
61: ; preds = %58, %53
%62 = call i32 @write(i32 noundef 1, ptr noundef %7, i32 noundef 1)
br label %.backedge
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @fcntl(i32 noundef, i32 noundef, ...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @write(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" }
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/tmpbs7a0n_m.c'
source_filename = "/tmp/tmpbs7a0n_m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"CPUID test passed.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%8 = call i32 (...) @test_cpuid_leaf_0xd()
%9 = call i32 (...) @test_cpuid_leaf_reserved()
%10 = call i32 (...) @test_cpuid_leaf_not_recognized()
%11 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @test_cpuid_leaf_0xd(...) #1
declare i32 @test_cpuid_leaf_reserved(...) #1
declare i32 @test_cpuid_leaf_not_recognized(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbs7a0n_m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"CPUID test passed.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%8 = call i32 (...) @test_cpuid_leaf_0xd()
%9 = call i32 (...) @test_cpuid_leaf_reserved()
%10 = call i32 (...) @test_cpuid_leaf_not_recognized()
%11 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @test_cpuid_leaf_0xd(...) #1
declare i32 @test_cpuid_leaf_reserved(...) #1
declare i32 @test_cpuid_leaf_not_recognized(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr2fe1m3o.c'
source_filename = "/tmp/tmpr2fe1m3o.c"
target datalayout = "e-m:e-p270: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"entrada.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"\0AO n\C3\BAmero lido foi %d\0A\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
store i32 0, ptr %1, align 4
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %2, align 8
br label %5
5: ; preds = %10, %0
%6 = load ptr, ptr %2, align 8
%7 = call i32 @feof(ptr noundef %6)
%8 = icmp ne i32 %7, 0
%9 = xor i1 %8, true
br i1 %9, label %10, label %15
10: ; preds = %5
%11 = load ptr, ptr %2, align 8
%12 = call i32 @fscanf(ptr noundef %11, ptr noundef @.str.2, ptr noundef %3)
%13 = load i32, ptr %3, align 4
%14 = call i32 @printf(ptr noundef @.str.3, i32 noundef %13)
store i32 -1, ptr %3, align 4
br label %5, !llvm.loop !6
15: ; preds = %5
%16 = load ptr, ptr %2, align 8
%17 = call i32 @fclose(ptr noundef %16)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 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/tmpr2fe1m3o.c"
target datalayout = "e-m:e-p270: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"entrada.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"\0AO n\C3\BAmero lido foi %d\0A\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
store i32 0, ptr %1, align 4
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @feof(ptr noundef %5)
%7 = icmp ne i32 %6, 0
%8 = xor i1 %7, true
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %9
%10 = load ptr, ptr %2, align 8
%11 = call i32 @fscanf(ptr noundef %10, ptr noundef @.str.2, ptr noundef %3)
%12 = load i32, ptr %3, align 4
%13 = call i32 @printf(ptr noundef @.str.3, i32 noundef %12)
store i32 -1, ptr %3, align 4
%14 = load ptr, ptr %2, align 8
%15 = call i32 @feof(ptr noundef %14)
%16 = icmp ne i32 %15, 0
%17 = xor i1 %16, true
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %18
18: ; preds = %._crit_edge, %0
%19 = load ptr, ptr %2, align 8
%20 = call i32 @fclose(ptr noundef %19)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 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/tmphm822rqj.c'
source_filename = "/tmp/tmphm822rqj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca [10 x i32], align 16
%6 = alloca [10 x i32], align 16
%7 = alloca [10 x i32], align 16
store i32 0, ptr %1, align 4
store i64 0, ptr %2, align 8
br label %8
8: ; preds = %40, %0
%9 = load i64, ptr %2, align 8
%10 = icmp ult i64 %9, 10
br i1 %10, label %11, label %43
11: ; preds = %8
store i64 0, ptr %3, align 8
br label %12
12: ; preds = %36, %11
%13 = load i64, ptr %3, align 8
%14 = icmp ult i64 %13, 10
br i1 %14, label %15, label %39
15: ; preds = %12
store i64 0, ptr %4, align 8
br label %16
16: ; preds = %32, %15
%17 = load i64, ptr %4, align 8
%18 = icmp ult i64 %17, 10
br i1 %18, label %19, label %35
19: ; preds = %16
%20 = load i64, ptr %2, align 8
%21 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 %20
%22 = load i32, ptr %21, align 4
%23 = load i64, ptr %3, align 8
%24 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %23
%25 = load i32, ptr %24, align 4
%26 = add nsw i32 %22, %25
%27 = load i64, ptr %4, align 8
%28 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = add nsw i32 %26, %29
%31 = call i32 @a(i32 noundef %30)
br label %32
32: ; preds = %19
%33 = load i64, ptr %4, align 8
%34 = add i64 %33, 1
store i64 %34, ptr %4, align 8
br label %16, !llvm.loop !6
35: ; preds = %16
br label %36
36: ; preds = %35
%37 = load i64, ptr %3, align 8
%38 = add i64 %37, 1
store i64 %38, ptr %3, align 8
br label %12, !llvm.loop !8
39: ; preds = %12
br label %40
40: ; preds = %39
%41 = load i64, ptr %2, align 8
%42 = add i64 %41, 1
store i64 %42, ptr %2, align 8
br label %8, !llvm.loop !9
43: ; preds = %8
ret i32 0
}
declare i32 @a(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphm822rqj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca [10 x i32], align 16
%6 = alloca [10 x i32], align 16
%7 = alloca [10 x i32], align 16
store i32 0, ptr %1, align 4
store i64 0, ptr %2, align 8
%8 = load i64, ptr %2, align 8
%9 = icmp ult i64 %8, 10
br i1 %9, label %.lr.ph5, label %46
.lr.ph5: ; preds = %0
br label %10
10: ; preds = %.lr.ph5, %41
store i64 0, ptr %3, align 8
%11 = load i64, ptr %3, align 8
%12 = icmp ult i64 %11, 10
br i1 %12, label %.lr.ph2, label %40
.lr.ph2: ; preds = %10
br label %13
13: ; preds = %.lr.ph2, %35
store i64 0, ptr %4, align 8
%14 = load i64, ptr %4, align 8
%15 = icmp ult i64 %14, 10
br i1 %15, label %.lr.ph, label %34
.lr.ph: ; preds = %13
br label %16
16: ; preds = %.lr.ph, %29
%17 = load i64, ptr %2, align 8
%18 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
%20 = load i64, ptr %3, align 8
%21 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %20
%22 = load i32, ptr %21, align 4
%23 = add nsw i32 %19, %22
%24 = load i64, ptr %4, align 8
%25 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = add nsw i32 %23, %26
%28 = call i32 @a(i32 noundef %27)
br label %29
29: ; preds = %16
%30 = load i64, ptr %4, align 8
%31 = add i64 %30, 1
store i64 %31, ptr %4, align 8
%32 = load i64, ptr %4, align 8
%33 = icmp ult i64 %32, 10
br i1 %33, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %34
34: ; preds = %._crit_edge, %13
br label %35
35: ; preds = %34
%36 = load i64, ptr %3, align 8
%37 = add i64 %36, 1
store i64 %37, ptr %3, align 8
%38 = load i64, ptr %3, align 8
%39 = icmp ult i64 %38, 10
br i1 %39, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %40
40: ; preds = %._crit_edge3, %10
br label %41
41: ; preds = %40
%42 = load i64, ptr %2, align 8
%43 = add i64 %42, 1
store i64 %43, ptr %2, align 8
%44 = load i64, ptr %2, align 8
%45 = icmp ult i64 %44, 10
br i1 %45, label %10, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %41
br label %46
46: ; preds = %._crit_edge6, %0
ret i32 0
}
declare i32 @a(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpmx0tj575.c'
source_filename = "/tmp/tmpmx0tj575.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@B115200 = dso_local global i32 0, align 4
@B19200 = dso_local global i32 0, align 4
@B38400 = dso_local global i32 0, align 4
@B57600 = dso_local global i32 0, align 4
@B9600 = 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/tmpmx0tj575.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@B115200 = dso_local global i32 0, align 4
@B19200 = dso_local global i32 0, align 4
@B38400 = dso_local global i32 0, align 4
@B57600 = dso_local global i32 0, align 4
@B9600 = 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/tmpghkwzebe.c'
source_filename = "/tmp/tmpghkwzebe.c"
target datalayout = "e-m:e-p270: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/tmpghkwzebe.c"
target datalayout = "e-m:e-p270: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/tmpd2kww8i5.c'
source_filename = "/tmp/tmpd2kww8i5.c"
target datalayout = "e-m:e-p270: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
@.str.1 = private unnamed_addr constant [26 x i8] c"Unable to open %s %s:%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/UBC-Astrophysics/kd-match/refs/heads/master/loadfile.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @loadfile_fs(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%14 = load ptr, ptr %7, align 8
%15 = call ptr @fopen(ptr noundef %14, ptr noundef @.str)
store ptr %15, ptr %12, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %20
17: ; preds = %5
%18 = load ptr, ptr %7, align 8
%19 = call i32 @printf(ptr noundef @.str.1, ptr noundef %18, ptr noundef @.str.2, i32 noundef 105)
store i32 0, ptr %6, align 4
br label %30
20: ; preds = %5
%21 = load ptr, ptr %12, align 8
%22 = load i32, ptr %8, align 4
%23 = load ptr, ptr %9, align 8
%24 = load ptr, ptr %10, align 8
%25 = load ptr, ptr %11, align 8
%26 = call i32 @loadfile_fileptr_fs(ptr noundef %21, i32 noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25)
store i32 %26, ptr %13, align 4
%27 = load ptr, ptr %12, align 8
%28 = call i32 @fclose(ptr noundef %27)
%29 = load i32, ptr %13, align 4
store i32 %29, ptr %6, align 4
br label %30
30: ; preds = %20, %17
%31 = load i32, ptr %6, align 4
ret i32 %31
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @loadfile_fileptr_fs(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd2kww8i5.c"
target datalayout = "e-m:e-p270: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
@.str.1 = private unnamed_addr constant [26 x i8] c"Unable to open %s %s:%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/UBC-Astrophysics/kd-match/refs/heads/master/loadfile.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @loadfile_fs(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%14 = load ptr, ptr %7, align 8
%15 = call ptr @fopen(ptr noundef %14, ptr noundef @.str)
store ptr %15, ptr %12, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %20
17: ; preds = %5
%18 = load ptr, ptr %7, align 8
%19 = call i32 @printf(ptr noundef @.str.1, ptr noundef %18, ptr noundef @.str.2, i32 noundef 105)
store i32 0, ptr %6, align 4
br label %30
20: ; preds = %5
%21 = load ptr, ptr %12, align 8
%22 = load i32, ptr %8, align 4
%23 = load ptr, ptr %9, align 8
%24 = load ptr, ptr %10, align 8
%25 = load ptr, ptr %11, align 8
%26 = call i32 @loadfile_fileptr_fs(ptr noundef %21, i32 noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25)
store i32 %26, ptr %13, align 4
%27 = load ptr, ptr %12, align 8
%28 = call i32 @fclose(ptr noundef %27)
%29 = load i32, ptr %13, align 4
store i32 %29, ptr %6, align 4
br label %30
30: ; preds = %20, %17
%31 = load i32, ptr %6, align 4
ret i32 %31
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @loadfile_fileptr_fs(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplj2ci9o2.c'
source_filename = "/tmp/tmplj2ci9o2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"tau_register_func: name = %s, id = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [63 x i8] c"tau_register_func: name = %s, file = %s, lineno = %d, id = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tau_register_func(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %6, align 8
%10 = load ptr, ptr %9, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %17
12: ; preds = %4
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %13, align 8
%15 = load i32, ptr %8, align 4
%16 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %14, i32 noundef %15)
br label %26
17: ; preds = %4
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %6, align 8
%21 = load ptr, ptr %20, align 8
%22 = load ptr, ptr %7, align 8
%23 = load i32, ptr %22, align 4
%24 = load i32, ptr %8, align 4
%25 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %19, ptr noundef %21, i32 noundef %23, i32 noundef %24)
br label %26
26: ; preds = %17, %12
ret void
}
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplj2ci9o2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"tau_register_func: name = %s, id = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [63 x i8] c"tau_register_func: name = %s, file = %s, lineno = %d, id = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tau_register_func(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %6, align 8
%10 = load ptr, ptr %9, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %17
12: ; preds = %4
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %13, align 8
%15 = load i32, ptr %8, align 4
%16 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %14, i32 noundef %15)
br label %26
17: ; preds = %4
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %6, align 8
%21 = load ptr, ptr %20, align 8
%22 = load ptr, ptr %7, align 8
%23 = load i32, ptr %22, align 4
%24 = load i32, ptr %8, align 4
%25 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %19, ptr noundef %21, i32 noundef %23, i32 noundef %24)
br label %26
26: ; preds = %17, %12
ret void
}
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgnk992c7.c'
source_filename = "/tmp/tmpgnk992c7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s2textxz_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
%12 = load ptr, ptr %9, align 8
%13 = load i64, ptr %10, align 8
%14 = call ptr @_s2_f2cstr(ptr noundef %12, i64 noundef %13)
store ptr %14, ptr %11, align 8
%15 = load ptr, ptr %6, align 8
%16 = load float, ptr %15, align 4
%17 = load ptr, ptr %7, align 8
%18 = load float, ptr %17, align 4
%19 = load ptr, ptr %8, align 8
%20 = load float, ptr %19, align 4
%21 = load ptr, ptr %11, align 8
%22 = call i32 @s2textxz(float noundef %16, float noundef %18, float noundef %20, ptr noundef %21)
%23 = load ptr, ptr %11, align 8
%24 = call i32 @free(ptr noundef %23)
ret void
}
declare ptr @_s2_f2cstr(ptr noundef, i64 noundef) #1
declare i32 @s2textxz(float noundef, float noundef, float noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgnk992c7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s2textxz_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
%12 = load ptr, ptr %9, align 8
%13 = load i64, ptr %10, align 8
%14 = call ptr @_s2_f2cstr(ptr noundef %12, i64 noundef %13)
store ptr %14, ptr %11, align 8
%15 = load ptr, ptr %6, align 8
%16 = load float, ptr %15, align 4
%17 = load ptr, ptr %7, align 8
%18 = load float, ptr %17, align 4
%19 = load ptr, ptr %8, align 8
%20 = load float, ptr %19, align 4
%21 = load ptr, ptr %11, align 8
%22 = call i32 @s2textxz(float noundef %16, float noundef %18, float noundef %20, ptr noundef %21)
%23 = load ptr, ptr %11, align 8
%24 = call i32 @free(ptr noundef %23)
ret void
}
declare ptr @_s2_f2cstr(ptr noundef, i64 noundef) #1
declare i32 @s2textxz(float noundef, float noundef, float noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxbm1jd8j.c'
source_filename = "/tmp/tmpxbm1jd8j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d%d%d%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [10001 x i32], align 16
%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
store i32 0, ptr %1, align 4
%12 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
store i32 0, ptr %7, align 4
br label %13
13: ; preds = %22, %0
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %25
17: ; preds = %13
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %19
%21 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %20)
br label %22
22: ; preds = %17
%23 = load i32, ptr %7, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %7, align 4
br label %13, !llvm.loop !6
25: ; preds = %13
store i32 0, ptr %7, align 4
br label %26
26: ; preds = %73, %25
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %2, align 4
%29 = sub nsw i32 %28, 1
%30 = icmp slt i32 %27, %29
br i1 %30, label %31, label %76
31: ; preds = %26
store i32 0, ptr %8, align 4
br label %32
32: ; preds = %69, %31
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr %2, align 4
%35 = sub nsw i32 %34, 1
%36 = load i32, ptr %7, align 4
%37 = sub nsw i32 %35, %36
%38 = icmp slt i32 %33, %37
br i1 %38, label %39, label %72
39: ; preds = %32
%40 = load i32, ptr %8, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %41
%43 = load i32, ptr %42, align 4
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
%49 = icmp slt i32 %43, %48
br i1 %49, label %50, label %68
50: ; preds = %39
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %52
%54 = load i32, ptr %53, align 4
store i32 %54, ptr %9, align 4
%55 = load i32, ptr %8, align 4
%56 = add nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %57
%59 = load i32, ptr %58, align 4
%60 = load i32, ptr %8, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %61
store i32 %59, ptr %62, align 4
%63 = load i32, ptr %9, align 4
%64 = load i32, ptr %8, align 4
%65 = add nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %66
store i32 %63, ptr %67, align 4
br label %68
68: ; preds = %50, %39
br label %69
69: ; preds = %68
%70 = load i32, ptr %8, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %8, align 4
br label %32, !llvm.loop !8
72: ; preds = %32
br label %73
73: ; preds = %72
%74 = load i32, ptr %7, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %7, align 4
br label %26, !llvm.loop !9
76: ; preds = %26
%77 = load i32, ptr %5, align 4
store i32 %77, ptr %10, align 4
%78 = load i32, ptr %3, align 4
store i32 %78, ptr %11, align 4
store i32 0, ptr %7, align 4
br label %79
79: ; preds = %116, %76
%80 = load i32, ptr %7, align 4
%81 = load i32, ptr %2, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %119
83: ; preds = %79
%84 = load i32, ptr %10, align 4
%85 = sitofp i32 %84 to double
%86 = fmul double 1.000000e+00, %85
%87 = load i32, ptr %11, align 4
%88 = sitofp i32 %87 to double
%89 = fdiv double %86, %88
%90 = load i32, ptr %10, align 4
%91 = load i32, ptr %7, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %92
%94 = load i32, ptr %93, align 4
%95 = add nsw i32 %90, %94
%96 = sitofp i32 %95 to double
%97 = fmul double 1.000000e+00, %96
%98 = load i32, ptr %11, align 4
%99 = load i32, ptr %4, align 4
%100 = add nsw i32 %98, %99
%101 = sitofp i32 %100 to double
%102 = fdiv double %97, %101
%103 = fcmp olt double %89, %102
br i1 %103, label %104, label %114
104: ; preds = %83
%105 = load i32, ptr %7, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %106
%108 = load i32, ptr %107, align 4
%109 = load i32, ptr %10, align 4
%110 = add nsw i32 %109, %108
store i32 %110, ptr %10, align 4
%111 = load i32, ptr %4, align 4
%112 = load i32, ptr %11, align 4
%113 = add nsw i32 %112, %111
store i32 %113, ptr %11, align 4
br label %115
114: ; preds = %83
br label %119
115: ; preds = %104
br label %116
116: ; preds = %115
%117 = load i32, ptr %7, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %7, align 4
br label %79, !llvm.loop !10
119: ; preds = %114, %79
%120 = load i32, ptr %10, align 4
%121 = load i32, ptr %11, align 4
%122 = sdiv i32 %120, %121
%123 = call i32 @printf(ptr noundef @.str.2, i32 noundef %122)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxbm1jd8j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d%d%d%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [10001 x i32], align 16
%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
store i32 0, ptr %1, align 4
%12 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
store i32 0, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %27
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %21
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %18
%20 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %19)
br label %21
21: ; preds = %16
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %2, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %0
store i32 0, ptr %7, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %2, align 4
%30 = sub nsw i32 %29, 1
%31 = icmp slt i32 %28, %30
br i1 %31, label %.lr.ph5, label %86
.lr.ph5: ; preds = %27
br label %32
32: ; preds = %.lr.ph5, %79
store i32 0, ptr %8, align 4
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr %2, align 4
%35 = sub nsw i32 %34, 1
%36 = load i32, ptr %7, align 4
%37 = sub nsw i32 %35, %36
%38 = icmp slt i32 %33, %37
br i1 %38, label %.lr.ph2, label %78
.lr.ph2: ; preds = %32
br label %39
39: ; preds = %.lr.ph2, %69
%40 = load i32, ptr %8, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %41
%43 = load i32, ptr %42, align 4
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
%49 = icmp slt i32 %43, %48
br i1 %49, label %50, label %68
50: ; preds = %39
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %52
%54 = load i32, ptr %53, align 4
store i32 %54, ptr %9, align 4
%55 = load i32, ptr %8, align 4
%56 = add nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %57
%59 = load i32, ptr %58, align 4
%60 = load i32, ptr %8, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %61
store i32 %59, ptr %62, align 4
%63 = load i32, ptr %9, align 4
%64 = load i32, ptr %8, align 4
%65 = add nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %66
store i32 %63, ptr %67, align 4
br label %68
68: ; preds = %50, %39
br label %69
69: ; preds = %68
%70 = load i32, ptr %8, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %8, align 4
%72 = load i32, ptr %8, align 4
%73 = load i32, ptr %2, align 4
%74 = sub nsw i32 %73, 1
%75 = load i32, ptr %7, align 4
%76 = sub nsw i32 %74, %75
%77 = icmp slt i32 %72, %76
br i1 %77, label %39, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %69
br label %78
78: ; preds = %._crit_edge3, %32
br label %79
79: ; preds = %78
%80 = load i32, ptr %7, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %7, align 4
%82 = load i32, ptr %7, align 4
%83 = load i32, ptr %2, align 4
%84 = sub nsw i32 %83, 1
%85 = icmp slt i32 %82, %84
br i1 %85, label %32, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %79
br label %86
86: ; preds = %._crit_edge6, %27
%87 = load i32, ptr %5, align 4
store i32 %87, ptr %10, align 4
%88 = load i32, ptr %3, align 4
store i32 %88, ptr %11, align 4
store i32 0, ptr %7, align 4
%89 = load i32, ptr %7, align 4
%90 = load i32, ptr %2, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %.lr.ph8, label %.loopexit
.lr.ph8: ; preds = %86
br label %92
92: ; preds = %.lr.ph8, %125
%93 = load i32, ptr %10, align 4
%94 = sitofp i32 %93 to double
%95 = fmul double 1.000000e+00, %94
%96 = load i32, ptr %11, align 4
%97 = sitofp i32 %96 to double
%98 = fdiv double %95, %97
%99 = load i32, ptr %10, align 4
%100 = load i32, ptr %7, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %101
%103 = load i32, ptr %102, align 4
%104 = add nsw i32 %99, %103
%105 = sitofp i32 %104 to double
%106 = fmul double 1.000000e+00, %105
%107 = load i32, ptr %11, align 4
%108 = load i32, ptr %4, align 4
%109 = add nsw i32 %107, %108
%110 = sitofp i32 %109 to double
%111 = fdiv double %106, %110
%112 = fcmp olt double %98, %111
br i1 %112, label %113, label %123
113: ; preds = %92
%114 = load i32, ptr %7, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [10001 x i32], ptr %6, i64 0, i64 %115
%117 = load i32, ptr %116, align 4
%118 = load i32, ptr %10, align 4
%119 = add nsw i32 %118, %117
store i32 %119, ptr %10, align 4
%120 = load i32, ptr %4, align 4
%121 = load i32, ptr %11, align 4
%122 = add nsw i32 %121, %120
store i32 %122, ptr %11, align 4
br label %124
123: ; preds = %92
br label %131
124: ; preds = %113
br label %125
125: ; preds = %124
%126 = load i32, ptr %7, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %7, align 4
%128 = load i32, ptr %7, align 4
%129 = load i32, ptr %2, align 4
%130 = icmp slt i32 %128, %129
br i1 %130, label %92, label %..loopexit_crit_edge, !llvm.loop !10
..loopexit_crit_edge: ; preds = %125
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %86
br label %131
131: ; preds = %.loopexit, %123
%132 = load i32, ptr %10, align 4
%133 = load i32, ptr %11, align 4
%134 = sdiv i32 %132, %133
%135 = call i32 @printf(ptr noundef @.str.2, i32 noundef %134)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmplswiix98.c'
source_filename = "/tmp/tmplswiix98.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LONG_MIN = dso_local global i64 0, align 8
@LONG_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fffr4i4(ptr noundef %0, i64 noundef %1, double noundef %2, double noundef %3, i32 noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #0 {
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca i32, align 4
%16 = alloca i64, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca i64, align 8
%22 = alloca double, align 8
%23 = alloca ptr, align 8
%24 = alloca i16, align 2
store ptr %0, ptr %11, align 8
store i64 %1, ptr %12, align 8
store double %2, ptr %13, align 8
store double %3, ptr %14, align 8
store i32 %4, ptr %15, align 4
store i64 %5, ptr %16, align 8
store ptr %6, ptr %17, align 8
store ptr %7, ptr %18, align 8
store ptr %8, ptr %19, align 8
store ptr %9, ptr %20, align 8
%25 = load i32, ptr %15, align 4
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %123
27: ; preds = %10
%28 = load double, ptr %13, align 8
%29 = fcmp oeq double %28, 1.000000e+00
br i1 %29, label %30, label %79
30: ; preds = %27
%31 = load double, ptr %14, align 8
%32 = fcmp oeq double %31, 0.000000e+00
br i1 %32, label %33, label %79
33: ; preds = %30
store i64 0, ptr %21, align 8
br label %34
34: ; preds = %75, %33
%35 = load i64, ptr %21, align 8
%36 = load i64, ptr %12, align 8
%37 = icmp slt i64 %35, %36
br i1 %37, label %38, label %78
38: ; preds = %34
%39 = load ptr, ptr %11, align 8
%40 = load i64, ptr %21, align 8
%41 = getelementptr inbounds float, ptr %39, i64 %40
%42 = load float, ptr %41, align 4
%43 = fpext float %42 to double
%44 = fcmp olt double %43, 0xC3DFFFFFFFFFFFFF
br i1 %44, label %45, label %51
45: ; preds = %38
%46 = load ptr, ptr %20, align 8
store i32 -11, ptr %46, align 4
%47 = load i64, ptr @LONG_MIN, align 8
%48 = load ptr, ptr %19, align 8
%49 = load i64, ptr %21, align 8
%50 = getelementptr inbounds i64, ptr %48, i64 %49
store i64 %47, ptr %50, align 8
br label %74
51: ; preds = %38
%52 = load ptr, ptr %11, align 8
%53 = load i64, ptr %21, align 8
%54 = getelementptr inbounds float, ptr %52, i64 %53
%55 = load float, ptr %54, align 4
%56 = fpext float %55 to double
%57 = fcmp ogt double %56, 0x43DFFFFFFFFFFFFF
br i1 %57, label %58, label %64
58: ; preds = %51
%59 = load ptr, ptr %20, align 8
store i32 -11, ptr %59, align 4
%60 = load i64, ptr @LONG_MAX, align 8
%61 = load ptr, ptr %19, align 8
%62 = load i64, ptr %21, align 8
%63 = getelementptr inbounds i64, ptr %61, i64 %62
store i64 %60, ptr %63, align 8
br label %73
64: ; preds = %51
%65 = load ptr, ptr %11, align 8
%66 = load i64, ptr %21, align 8
%67 = getelementptr inbounds float, ptr %65, i64 %66
%68 = load float, ptr %67, align 4
%69 = fptosi float %68 to i64
%70 = load ptr, ptr %19, align 8
%71 = load i64, ptr %21, align 8
%72 = getelementptr inbounds i64, ptr %70, i64 %71
store i64 %69, ptr %72, align 8
br label %73
73: ; preds = %64, %58
br label %74
74: ; preds = %73, %45
br label %75
75: ; preds = %74
%76 = load i64, ptr %21, align 8
%77 = add nsw i64 %76, 1
store i64 %77, ptr %21, align 8
br label %34, !llvm.loop !6
78: ; preds = %34
br label %122
79: ; preds = %30, %27
store i64 0, ptr %21, align 8
br label %80
80: ; preds = %118, %79
%81 = load i64, ptr %21, align 8
%82 = load i64, ptr %12, align 8
%83 = icmp slt i64 %81, %82
br i1 %83, label %84, label %121
84: ; preds = %80
%85 = load ptr, ptr %11, align 8
%86 = load i64, ptr %21, align 8
%87 = getelementptr inbounds float, ptr %85, i64 %86
%88 = load float, ptr %87, align 4
%89 = fpext float %88 to double
%90 = load double, ptr %13, align 8
%91 = load double, ptr %14, align 8
%92 = call double @llvm.fmuladd.f64(double %89, double %90, double %91)
store double %92, ptr %22, align 8
%93 = load double, ptr %22, align 8
%94 = fcmp olt double %93, 0xC3DFFFFFFFFFFFFF
br i1 %94, label %95, label %101
95: ; preds = %84
%96 = load ptr, ptr %20, align 8
store i32 -11, ptr %96, align 4
%97 = load i64, ptr @LONG_MIN, align 8
%98 = load ptr, ptr %19, align 8
%99 = load i64, ptr %21, align 8
%100 = getelementptr inbounds i64, ptr %98, i64 %99
store i64 %97, ptr %100, align 8
br label %117
101: ; preds = %84
%102 = load double, ptr %22, align 8
%103 = fcmp ogt double %102, 0x43DFFFFFFFFFFFFF
br i1 %103, label %104, label %110
104: ; preds = %101
%105 = load ptr, ptr %20, align 8
store i32 -11, ptr %105, align 4
%106 = load i64, ptr @LONG_MAX, align 8
%107 = load ptr, ptr %19, align 8
%108 = load i64, ptr %21, align 8
%109 = getelementptr inbounds i64, ptr %107, i64 %108
store i64 %106, ptr %109, align 8
br label %116
110: ; preds = %101
%111 = load double, ptr %22, align 8
%112 = fptosi double %111 to i64
%113 = load ptr, ptr %19, align 8
%114 = load i64, ptr %21, align 8
%115 = getelementptr inbounds i64, ptr %113, i64 %114
store i64 %112, ptr %115, align 8
br label %116
116: ; preds = %110, %104
br label %117
117: ; preds = %116, %95
br label %118
118: ; preds = %117
%119 = load i64, ptr %21, align 8
%120 = add nsw i64 %119, 1
store i64 %120, ptr %21, align 8
br label %80, !llvm.loop !8
121: ; preds = %80
br label %122
122: ; preds = %121, %78
br label %336
123: ; preds = %10
%124 = load ptr, ptr %11, align 8
store ptr %124, ptr %23, align 8
%125 = load ptr, ptr %23, align 8
%126 = getelementptr inbounds i16, ptr %125, i32 1
store ptr %126, ptr %23, align 8
%127 = load double, ptr %13, align 8
%128 = fcmp oeq double %127, 1.000000e+00
br i1 %128, label %129, label %224
129: ; preds = %123
%130 = load double, ptr %14, align 8
%131 = fcmp oeq double %130, 0.000000e+00
br i1 %131, label %132, label %224
132: ; preds = %129
store i64 0, ptr %21, align 8
br label %133
133: ; preds = %218, %132
%134 = load i64, ptr %21, align 8
%135 = load i64, ptr %12, align 8
%136 = icmp slt i64 %134, %135
br i1 %136, label %137, label %223
137: ; preds = %133
%138 = load ptr, ptr %23, align 8
%139 = load i16, ptr %138, align 2
%140 = sext i16 %139 to i32
%141 = and i32 %140, 32640
%142 = icmp eq i32 %141, 32640
br i1 %142, label %143, label %144
143: ; preds = %137
br label %152
144: ; preds = %137
%145 = load ptr, ptr %23, align 8
%146 = load i16, ptr %145, align 2
%147 = sext i16 %146 to i32
%148 = and i32 %147, 32640
%149 = icmp eq i32 %148, 0
%150 = zext i1 %149 to i64
%151 = select i1 %149, i32 2, i32 0
br label %152
152: ; preds = %144, %143
%153 = phi i32 [ 1, %143 ], [ %151, %144 ]
%154 = trunc i32 %153 to i16
store i16 %154, ptr %24, align 2
%155 = sext i16 %154 to i32
%156 = icmp ne i32 0, %155
br i1 %156, label %157, label %180
157: ; preds = %152
%158 = load i16, ptr %24, align 2
%159 = sext i16 %158 to i32
%160 = icmp eq i32 %159, 1
br i1 %160, label %161, label %175
161: ; preds = %157
%162 = load ptr, ptr %18, align 8
store i32 1, ptr %162, align 4
%163 = load i32, ptr %15, align 4
%164 = icmp eq i32 %163, 1
br i1 %164, label %165, label %170
165: ; preds = %161
%166 = load i64, ptr %16, align 8
%167 = load ptr, ptr %19, align 8
%168 = load i64, ptr %21, align 8
%169 = getelementptr inbounds i64, ptr %167, i64 %168
store i64 %166, ptr %169, align 8
br label %174
170: ; preds = %161
%171 = load ptr, ptr %17, align 8
%172 = load i64, ptr %21, align 8
%173 = getelementptr inbounds i8, ptr %171, i64 %172
store i8 1, ptr %173, align 1
br label %174
174: ; preds = %170, %165
br label %179
175: ; preds = %157
%176 = load ptr, ptr %19, align 8
%177 = load i64, ptr %21, align 8
%178 = getelementptr inbounds i64, ptr %176, i64 %177
store i64 0, ptr %178, align 8
br label %179
179: ; preds = %175, %174
br label %217
180: ; preds = %152
%181 = load ptr, ptr %11, align 8
%182 = load i64, ptr %21, align 8
%183 = getelementptr inbounds float, ptr %181, i64 %182
%184 = load float, ptr %183, align 4
%185 = fpext float %184 to double
%186 = fcmp olt double %185, 0xC3DFFFFFFFFFFFFF
br i1 %186, label %187, label %193
187: ; preds = %180
%188 = load ptr, ptr %20, align 8
store i32 -11, ptr %188, align 4
%189 = load i64, ptr @LONG_MIN, align 8
%190 = load ptr, ptr %19, align 8
%191 = load i64, ptr %21, align 8
%192 = getelementptr inbounds i64, ptr %190, i64 %191
store i64 %189, ptr %192, align 8
br label %216
193: ; preds = %180
%194 = load ptr, ptr %11, align 8
%195 = load i64, ptr %21, align 8
%196 = getelementptr inbounds float, ptr %194, i64 %195
%197 = load float, ptr %196, align 4
%198 = fpext float %197 to double
%199 = fcmp ogt double %198, 0x43DFFFFFFFFFFFFF
br i1 %199, label %200, label %206
200: ; preds = %193
%201 = load ptr, ptr %20, align 8
store i32 -11, ptr %201, align 4
%202 = load i64, ptr @LONG_MAX, align 8
%203 = load ptr, ptr %19, align 8
%204 = load i64, ptr %21, align 8
%205 = getelementptr inbounds i64, ptr %203, i64 %204
store i64 %202, ptr %205, align 8
br label %215
206: ; preds = %193
%207 = load ptr, ptr %11, align 8
%208 = load i64, ptr %21, align 8
%209 = getelementptr inbounds float, ptr %207, i64 %208
%210 = load float, ptr %209, align 4
%211 = fptosi float %210 to i64
%212 = load ptr, ptr %19, align 8
%213 = load i64, ptr %21, align 8
%214 = getelementptr inbounds i64, ptr %212, i64 %213
store i64 %211, ptr %214, align 8
br label %215
215: ; preds = %206, %200
br label %216
216: ; preds = %215, %187
br label %217
217: ; preds = %216, %179
br label %218
218: ; preds = %217
%219 = load i64, ptr %21, align 8
%220 = add nsw i64 %219, 1
store i64 %220, ptr %21, align 8
%221 = load ptr, ptr %23, align 8
%222 = getelementptr inbounds i16, ptr %221, i64 2
store ptr %222, ptr %23, align 8
br label %133, !llvm.loop !9
223: ; preds = %133
br label %335
224: ; preds = %129, %123
store i64 0, ptr %21, align 8
br label %225
225: ; preds = %329, %224
%226 = load i64, ptr %21, align 8
%227 = load i64, ptr %12, align 8
%228 = icmp slt i64 %226, %227
br i1 %228, label %229, label %334
229: ; preds = %225
%230 = load ptr, ptr %23, align 8
%231 = load i16, ptr %230, align 2
%232 = sext i16 %231 to i32
%233 = and i32 %232, 32640
%234 = icmp eq i32 %233, 32640
br i1 %234, label %235, label %236
235: ; preds = %229
br label %244
236: ; preds = %229
%237 = load ptr, ptr %23, align 8
%238 = load i16, ptr %237, align 2
%239 = sext i16 %238 to i32
%240 = and i32 %239, 32640
%241 = icmp eq i32 %240, 0
%242 = zext i1 %241 to i64
%243 = select i1 %241, i32 2, i32 0
br label %244
244: ; preds = %236, %235
%245 = phi i32 [ 1, %235 ], [ %243, %236 ]
%246 = trunc i32 %245 to i16
store i16 %246, ptr %24, align 2
%247 = sext i16 %246 to i32
%248 = icmp ne i32 0, %247
br i1 %248, label %249, label %294
249: ; preds = %244
%250 = load i16, ptr %24, align 2
%251 = sext i16 %250 to i32
%252 = icmp eq i32 %251, 1
br i1 %252, label %253, label %267
253: ; preds = %249
%254 = load ptr, ptr %18, align 8
store i32 1, ptr %254, align 4
%255 = load i32, ptr %15, align 4
%256 = icmp eq i32 %255, 1
br i1 %256, label %257, label %262
257: ; preds = %253
%258 = load i64, ptr %16, align 8
%259 = load ptr, ptr %19, align 8
%260 = load i64, ptr %21, align 8
%261 = getelementptr inbounds i64, ptr %259, i64 %260
store i64 %258, ptr %261, align 8
br label %266
262: ; preds = %253
%263 = load ptr, ptr %17, align 8
%264 = load i64, ptr %21, align 8
%265 = getelementptr inbounds i8, ptr %263, i64 %264
store i8 1, ptr %265, align 1
br label %266
266: ; preds = %262, %257
br label %293
267: ; preds = %249
%268 = load double, ptr %14, align 8
%269 = fcmp olt double %268, 0xC3DFFFFFFFFFFFFF
br i1 %269, label %270, label %276
270: ; preds = %267
%271 = load ptr, ptr %20, align 8
store i32 -11, ptr %271, align 4
%272 = load i64, ptr @LONG_MIN, align 8
%273 = load ptr, ptr %19, align 8
%274 = load i64, ptr %21, align 8
%275 = getelementptr inbounds i64, ptr %273, i64 %274
store i64 %272, ptr %275, align 8
br label %292
276: ; preds = %267
%277 = load double, ptr %14, align 8
%278 = fcmp ogt double %277, 0x43DFFFFFFFFFFFFF
br i1 %278, label %279, label %285
279: ; preds = %276
%280 = load ptr, ptr %20, align 8
store i32 -11, ptr %280, align 4
%281 = load i64, ptr @LONG_MAX, align 8
%282 = load ptr, ptr %19, align 8
%283 = load i64, ptr %21, align 8
%284 = getelementptr inbounds i64, ptr %282, i64 %283
store i64 %281, ptr %284, align 8
br label %291
285: ; preds = %276
%286 = load double, ptr %14, align 8
%287 = fptosi double %286 to i64
%288 = load ptr, ptr %19, align 8
%289 = load i64, ptr %21, align 8
%290 = getelementptr inbounds i64, ptr %288, i64 %289
store i64 %287, ptr %290, align 8
br label %291
291: ; preds = %285, %279
br label %292
292: ; preds = %291, %270
br label %293
293: ; preds = %292, %266
br label %328
294: ; preds = %244
%295 = load ptr, ptr %11, align 8
%296 = load i64, ptr %21, align 8
%297 = getelementptr inbounds float, ptr %295, i64 %296
%298 = load float, ptr %297, align 4
%299 = fpext float %298 to double
%300 = load double, ptr %13, align 8
%301 = load double, ptr %14, align 8
%302 = call double @llvm.fmuladd.f64(double %299, double %300, double %301)
store double %302, ptr %22, align 8
%303 = load double, ptr %22, align 8
%304 = fcmp olt double %303, 0xC3DFFFFFFFFFFFFF
br i1 %304, label %305, label %311
305: ; preds = %294
%306 = load ptr, ptr %20, align 8
store i32 -11, ptr %306, align 4
%307 = load i64, ptr @LONG_MIN, align 8
%308 = load ptr, ptr %19, align 8
%309 = load i64, ptr %21, align 8
%310 = getelementptr inbounds i64, ptr %308, i64 %309
store i64 %307, ptr %310, align 8
br label %327
311: ; preds = %294
%312 = load double, ptr %22, align 8
%313 = fcmp ogt double %312, 0x43DFFFFFFFFFFFFF
br i1 %313, label %314, label %320
314: ; preds = %311
%315 = load ptr, ptr %20, align 8
store i32 -11, ptr %315, align 4
%316 = load i64, ptr @LONG_MAX, align 8
%317 = load ptr, ptr %19, align 8
%318 = load i64, ptr %21, align 8
%319 = getelementptr inbounds i64, ptr %317, i64 %318
store i64 %316, ptr %319, align 8
br label %326
320: ; preds = %311
%321 = load double, ptr %22, align 8
%322 = fptosi double %321 to i64
%323 = load ptr, ptr %19, align 8
%324 = load i64, ptr %21, align 8
%325 = getelementptr inbounds i64, ptr %323, i64 %324
store i64 %322, ptr %325, align 8
br label %326
326: ; preds = %320, %314
br label %327
327: ; preds = %326, %305
br label %328
328: ; preds = %327, %293
br label %329
329: ; preds = %328
%330 = load i64, ptr %21, align 8
%331 = add nsw i64 %330, 1
store i64 %331, ptr %21, align 8
%332 = load ptr, ptr %23, align 8
%333 = getelementptr inbounds i16, ptr %332, i64 2
store ptr %333, ptr %23, align 8
br label %225, !llvm.loop !10
334: ; preds = %225
br label %335
335: ; preds = %334, %223
br label %336
336: ; preds = %335, %122
%337 = load ptr, ptr %20, align 8
%338 = load i32, ptr %337, align 4
ret i32 %338
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplswiix98.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LONG_MIN = dso_local global i64 0, align 8
@LONG_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fffr4i4(ptr noundef %0, i64 noundef %1, double noundef %2, double noundef %3, i32 noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #0 {
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca i32, align 4
%16 = alloca i64, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca i64, align 8
%22 = alloca double, align 8
%23 = alloca ptr, align 8
%24 = alloca i16, align 2
store ptr %0, ptr %11, align 8
store i64 %1, ptr %12, align 8
store double %2, ptr %13, align 8
store double %3, ptr %14, align 8
store i32 %4, ptr %15, align 4
store i64 %5, ptr %16, align 8
store ptr %6, ptr %17, align 8
store ptr %7, ptr %18, align 8
store ptr %8, ptr %19, align 8
store ptr %9, ptr %20, align 8
%25 = load i32, ptr %15, align 4
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %127
27: ; preds = %10
%28 = load double, ptr %13, align 8
%29 = fcmp oeq double %28, 1.000000e+00
br i1 %29, label %30, label %81
30: ; preds = %27
%31 = load double, ptr %14, align 8
%32 = fcmp oeq double %31, 0.000000e+00
br i1 %32, label %33, label %81
33: ; preds = %30
store i64 0, ptr %21, align 8
%34 = load i64, ptr %21, align 8
%35 = load i64, ptr %12, align 8
%36 = icmp slt i64 %34, %35
br i1 %36, label %.lr.ph8, label %80
.lr.ph8: ; preds = %33
br label %37
37: ; preds = %.lr.ph8, %74
%38 = load ptr, ptr %11, align 8
%39 = load i64, ptr %21, align 8
%40 = getelementptr inbounds float, ptr %38, i64 %39
%41 = load float, ptr %40, align 4
%42 = fpext float %41 to double
%43 = fcmp olt double %42, 0xC3DFFFFFFFFFFFFF
br i1 %43, label %44, label %50
44: ; preds = %37
%45 = load ptr, ptr %20, align 8
store i32 -11, ptr %45, align 4
%46 = load i64, ptr @LONG_MIN, align 8
%47 = load ptr, ptr %19, align 8
%48 = load i64, ptr %21, align 8
%49 = getelementptr inbounds i64, ptr %47, i64 %48
store i64 %46, ptr %49, align 8
br label %73
50: ; preds = %37
%51 = load ptr, ptr %11, align 8
%52 = load i64, ptr %21, align 8
%53 = getelementptr inbounds float, ptr %51, i64 %52
%54 = load float, ptr %53, align 4
%55 = fpext float %54 to double
%56 = fcmp ogt double %55, 0x43DFFFFFFFFFFFFF
br i1 %56, label %57, label %63
57: ; preds = %50
%58 = load ptr, ptr %20, align 8
store i32 -11, ptr %58, align 4
%59 = load i64, ptr @LONG_MAX, align 8
%60 = load ptr, ptr %19, align 8
%61 = load i64, ptr %21, align 8
%62 = getelementptr inbounds i64, ptr %60, i64 %61
store i64 %59, ptr %62, align 8
br label %72
63: ; preds = %50
%64 = load ptr, ptr %11, align 8
%65 = load i64, ptr %21, align 8
%66 = getelementptr inbounds float, ptr %64, i64 %65
%67 = load float, ptr %66, align 4
%68 = fptosi float %67 to i64
%69 = load ptr, ptr %19, align 8
%70 = load i64, ptr %21, align 8
%71 = getelementptr inbounds i64, ptr %69, i64 %70
store i64 %68, ptr %71, align 8
br label %72
72: ; preds = %63, %57
br label %73
73: ; preds = %72, %44
br label %74
74: ; preds = %73
%75 = load i64, ptr %21, align 8
%76 = add nsw i64 %75, 1
store i64 %76, ptr %21, align 8
%77 = load i64, ptr %21, align 8
%78 = load i64, ptr %12, align 8
%79 = icmp slt i64 %77, %78
br i1 %79, label %37, label %._crit_edge9, !llvm.loop !6
._crit_edge9: ; preds = %74
br label %80
80: ; preds = %._crit_edge9, %33
br label %126
81: ; preds = %30, %27
store i64 0, ptr %21, align 8
%82 = load i64, ptr %21, align 8
%83 = load i64, ptr %12, align 8
%84 = icmp slt i64 %82, %83
br i1 %84, label %.lr.ph5, label %125
.lr.ph5: ; preds = %81
br label %85
85: ; preds = %.lr.ph5, %119
%86 = load ptr, ptr %11, align 8
%87 = load i64, ptr %21, align 8
%88 = getelementptr inbounds float, ptr %86, i64 %87
%89 = load float, ptr %88, align 4
%90 = fpext float %89 to double
%91 = load double, ptr %13, align 8
%92 = load double, ptr %14, align 8
%93 = call double @llvm.fmuladd.f64(double %90, double %91, double %92)
store double %93, ptr %22, align 8
%94 = load double, ptr %22, align 8
%95 = fcmp olt double %94, 0xC3DFFFFFFFFFFFFF
br i1 %95, label %96, label %102
96: ; preds = %85
%97 = load ptr, ptr %20, align 8
store i32 -11, ptr %97, align 4
%98 = load i64, ptr @LONG_MIN, align 8
%99 = load ptr, ptr %19, align 8
%100 = load i64, ptr %21, align 8
%101 = getelementptr inbounds i64, ptr %99, i64 %100
store i64 %98, ptr %101, align 8
br label %118
102: ; preds = %85
%103 = load double, ptr %22, align 8
%104 = fcmp ogt double %103, 0x43DFFFFFFFFFFFFF
br i1 %104, label %105, label %111
105: ; preds = %102
%106 = load ptr, ptr %20, align 8
store i32 -11, ptr %106, align 4
%107 = load i64, ptr @LONG_MAX, align 8
%108 = load ptr, ptr %19, align 8
%109 = load i64, ptr %21, align 8
%110 = getelementptr inbounds i64, ptr %108, i64 %109
store i64 %107, ptr %110, align 8
br label %117
111: ; preds = %102
%112 = load double, ptr %22, align 8
%113 = fptosi double %112 to i64
%114 = load ptr, ptr %19, align 8
%115 = load i64, ptr %21, align 8
%116 = getelementptr inbounds i64, ptr %114, i64 %115
store i64 %113, ptr %116, align 8
br label %117
117: ; preds = %111, %105
br label %118
118: ; preds = %117, %96
br label %119
119: ; preds = %118
%120 = load i64, ptr %21, align 8
%121 = add nsw i64 %120, 1
store i64 %121, ptr %21, align 8
%122 = load i64, ptr %21, align 8
%123 = load i64, ptr %12, align 8
%124 = icmp slt i64 %122, %123
br i1 %124, label %85, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %119
br label %125
125: ; preds = %._crit_edge6, %81
br label %126
126: ; preds = %125, %80
br label %344
127: ; preds = %10
%128 = load ptr, ptr %11, align 8
store ptr %128, ptr %23, align 8
%129 = load ptr, ptr %23, align 8
%130 = getelementptr inbounds i16, ptr %129, i32 1
store ptr %130, ptr %23, align 8
%131 = load double, ptr %13, align 8
%132 = fcmp oeq double %131, 1.000000e+00
br i1 %132, label %133, label %230
133: ; preds = %127
%134 = load double, ptr %14, align 8
%135 = fcmp oeq double %134, 0.000000e+00
br i1 %135, label %136, label %230
136: ; preds = %133
store i64 0, ptr %21, align 8
%137 = load i64, ptr %21, align 8
%138 = load i64, ptr %12, align 8
%139 = icmp slt i64 %137, %138
br i1 %139, label %.lr.ph2, label %229
.lr.ph2: ; preds = %136
br label %140
140: ; preds = %.lr.ph2, %221
%141 = load ptr, ptr %23, align 8
%142 = load i16, ptr %141, align 2
%143 = sext i16 %142 to i32
%144 = and i32 %143, 32640
%145 = icmp eq i32 %144, 32640
br i1 %145, label %146, label %147
146: ; preds = %140
br label %155
147: ; preds = %140
%148 = load ptr, ptr %23, align 8
%149 = load i16, ptr %148, align 2
%150 = sext i16 %149 to i32
%151 = and i32 %150, 32640
%152 = icmp eq i32 %151, 0
%153 = zext i1 %152 to i64
%154 = select i1 %152, i32 2, i32 0
br label %155
155: ; preds = %147, %146
%156 = phi i32 [ 1, %146 ], [ %154, %147 ]
%157 = trunc i32 %156 to i16
store i16 %157, ptr %24, align 2
%158 = sext i16 %157 to i32
%159 = icmp ne i32 0, %158
br i1 %159, label %160, label %183
160: ; preds = %155
%161 = load i16, ptr %24, align 2
%162 = sext i16 %161 to i32
%163 = icmp eq i32 %162, 1
br i1 %163, label %164, label %178
164: ; preds = %160
%165 = load ptr, ptr %18, align 8
store i32 1, ptr %165, align 4
%166 = load i32, ptr %15, align 4
%167 = icmp eq i32 %166, 1
br i1 %167, label %168, label %173
168: ; preds = %164
%169 = load i64, ptr %16, align 8
%170 = load ptr, ptr %19, align 8
%171 = load i64, ptr %21, align 8
%172 = getelementptr inbounds i64, ptr %170, i64 %171
store i64 %169, ptr %172, align 8
br label %177
173: ; preds = %164
%174 = load ptr, ptr %17, align 8
%175 = load i64, ptr %21, align 8
%176 = getelementptr inbounds i8, ptr %174, i64 %175
store i8 1, ptr %176, align 1
br label %177
177: ; preds = %173, %168
br label %182
178: ; preds = %160
%179 = load ptr, ptr %19, align 8
%180 = load i64, ptr %21, align 8
%181 = getelementptr inbounds i64, ptr %179, i64 %180
store i64 0, ptr %181, align 8
br label %182
182: ; preds = %178, %177
br label %220
183: ; preds = %155
%184 = load ptr, ptr %11, align 8
%185 = load i64, ptr %21, align 8
%186 = getelementptr inbounds float, ptr %184, i64 %185
%187 = load float, ptr %186, align 4
%188 = fpext float %187 to double
%189 = fcmp olt double %188, 0xC3DFFFFFFFFFFFFF
br i1 %189, label %190, label %196
190: ; preds = %183
%191 = load ptr, ptr %20, align 8
store i32 -11, ptr %191, align 4
%192 = load i64, ptr @LONG_MIN, align 8
%193 = load ptr, ptr %19, align 8
%194 = load i64, ptr %21, align 8
%195 = getelementptr inbounds i64, ptr %193, i64 %194
store i64 %192, ptr %195, align 8
br label %219
196: ; preds = %183
%197 = load ptr, ptr %11, align 8
%198 = load i64, ptr %21, align 8
%199 = getelementptr inbounds float, ptr %197, i64 %198
%200 = load float, ptr %199, align 4
%201 = fpext float %200 to double
%202 = fcmp ogt double %201, 0x43DFFFFFFFFFFFFF
br i1 %202, label %203, label %209
203: ; preds = %196
%204 = load ptr, ptr %20, align 8
store i32 -11, ptr %204, align 4
%205 = load i64, ptr @LONG_MAX, align 8
%206 = load ptr, ptr %19, align 8
%207 = load i64, ptr %21, align 8
%208 = getelementptr inbounds i64, ptr %206, i64 %207
store i64 %205, ptr %208, align 8
br label %218
209: ; preds = %196
%210 = load ptr, ptr %11, align 8
%211 = load i64, ptr %21, align 8
%212 = getelementptr inbounds float, ptr %210, i64 %211
%213 = load float, ptr %212, align 4
%214 = fptosi float %213 to i64
%215 = load ptr, ptr %19, align 8
%216 = load i64, ptr %21, align 8
%217 = getelementptr inbounds i64, ptr %215, i64 %216
store i64 %214, ptr %217, align 8
br label %218
218: ; preds = %209, %203
br label %219
219: ; preds = %218, %190
br label %220
220: ; preds = %219, %182
br label %221
221: ; preds = %220
%222 = load i64, ptr %21, align 8
%223 = add nsw i64 %222, 1
store i64 %223, ptr %21, align 8
%224 = load ptr, ptr %23, align 8
%225 = getelementptr inbounds i16, ptr %224, i64 2
store ptr %225, ptr %23, align 8
%226 = load i64, ptr %21, align 8
%227 = load i64, ptr %12, align 8
%228 = icmp slt i64 %226, %227
br i1 %228, label %140, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %221
br label %229
229: ; preds = %._crit_edge3, %136
br label %343
230: ; preds = %133, %127
store i64 0, ptr %21, align 8
%231 = load i64, ptr %21, align 8
%232 = load i64, ptr %12, align 8
%233 = icmp slt i64 %231, %232
br i1 %233, label %.lr.ph, label %342
.lr.ph: ; preds = %230
br label %234
234: ; preds = %.lr.ph, %334
%235 = load ptr, ptr %23, align 8
%236 = load i16, ptr %235, align 2
%237 = sext i16 %236 to i32
%238 = and i32 %237, 32640
%239 = icmp eq i32 %238, 32640
br i1 %239, label %240, label %241
240: ; preds = %234
br label %249
241: ; preds = %234
%242 = load ptr, ptr %23, align 8
%243 = load i16, ptr %242, align 2
%244 = sext i16 %243 to i32
%245 = and i32 %244, 32640
%246 = icmp eq i32 %245, 0
%247 = zext i1 %246 to i64
%248 = select i1 %246, i32 2, i32 0
br label %249
249: ; preds = %241, %240
%250 = phi i32 [ 1, %240 ], [ %248, %241 ]
%251 = trunc i32 %250 to i16
store i16 %251, ptr %24, align 2
%252 = sext i16 %251 to i32
%253 = icmp ne i32 0, %252
br i1 %253, label %254, label %299
254: ; preds = %249
%255 = load i16, ptr %24, align 2
%256 = sext i16 %255 to i32
%257 = icmp eq i32 %256, 1
br i1 %257, label %258, label %272
258: ; preds = %254
%259 = load ptr, ptr %18, align 8
store i32 1, ptr %259, align 4
%260 = load i32, ptr %15, align 4
%261 = icmp eq i32 %260, 1
br i1 %261, label %262, label %267
262: ; preds = %258
%263 = load i64, ptr %16, align 8
%264 = load ptr, ptr %19, align 8
%265 = load i64, ptr %21, align 8
%266 = getelementptr inbounds i64, ptr %264, i64 %265
store i64 %263, ptr %266, align 8
br label %271
267: ; preds = %258
%268 = load ptr, ptr %17, align 8
%269 = load i64, ptr %21, align 8
%270 = getelementptr inbounds i8, ptr %268, i64 %269
store i8 1, ptr %270, align 1
br label %271
271: ; preds = %267, %262
br label %298
272: ; preds = %254
%273 = load double, ptr %14, align 8
%274 = fcmp olt double %273, 0xC3DFFFFFFFFFFFFF
br i1 %274, label %275, label %281
275: ; preds = %272
%276 = load ptr, ptr %20, align 8
store i32 -11, ptr %276, align 4
%277 = load i64, ptr @LONG_MIN, align 8
%278 = load ptr, ptr %19, align 8
%279 = load i64, ptr %21, align 8
%280 = getelementptr inbounds i64, ptr %278, i64 %279
store i64 %277, ptr %280, align 8
br label %297
281: ; preds = %272
%282 = load double, ptr %14, align 8
%283 = fcmp ogt double %282, 0x43DFFFFFFFFFFFFF
br i1 %283, label %284, label %290
284: ; preds = %281
%285 = load ptr, ptr %20, align 8
store i32 -11, ptr %285, align 4
%286 = load i64, ptr @LONG_MAX, align 8
%287 = load ptr, ptr %19, align 8
%288 = load i64, ptr %21, align 8
%289 = getelementptr inbounds i64, ptr %287, i64 %288
store i64 %286, ptr %289, align 8
br label %296
290: ; preds = %281
%291 = load double, ptr %14, align 8
%292 = fptosi double %291 to i64
%293 = load ptr, ptr %19, align 8
%294 = load i64, ptr %21, align 8
%295 = getelementptr inbounds i64, ptr %293, i64 %294
store i64 %292, ptr %295, align 8
br label %296
296: ; preds = %290, %284
br label %297
297: ; preds = %296, %275
br label %298
298: ; preds = %297, %271
br label %333
299: ; preds = %249
%300 = load ptr, ptr %11, align 8
%301 = load i64, ptr %21, align 8
%302 = getelementptr inbounds float, ptr %300, i64 %301
%303 = load float, ptr %302, align 4
%304 = fpext float %303 to double
%305 = load double, ptr %13, align 8
%306 = load double, ptr %14, align 8
%307 = call double @llvm.fmuladd.f64(double %304, double %305, double %306)
store double %307, ptr %22, align 8
%308 = load double, ptr %22, align 8
%309 = fcmp olt double %308, 0xC3DFFFFFFFFFFFFF
br i1 %309, label %310, label %316
310: ; preds = %299
%311 = load ptr, ptr %20, align 8
store i32 -11, ptr %311, align 4
%312 = load i64, ptr @LONG_MIN, align 8
%313 = load ptr, ptr %19, align 8
%314 = load i64, ptr %21, align 8
%315 = getelementptr inbounds i64, ptr %313, i64 %314
store i64 %312, ptr %315, align 8
br label %332
316: ; preds = %299
%317 = load double, ptr %22, align 8
%318 = fcmp ogt double %317, 0x43DFFFFFFFFFFFFF
br i1 %318, label %319, label %325
319: ; preds = %316
%320 = load ptr, ptr %20, align 8
store i32 -11, ptr %320, align 4
%321 = load i64, ptr @LONG_MAX, align 8
%322 = load ptr, ptr %19, align 8
%323 = load i64, ptr %21, align 8
%324 = getelementptr inbounds i64, ptr %322, i64 %323
store i64 %321, ptr %324, align 8
br label %331
325: ; preds = %316
%326 = load double, ptr %22, align 8
%327 = fptosi double %326 to i64
%328 = load ptr, ptr %19, align 8
%329 = load i64, ptr %21, align 8
%330 = getelementptr inbounds i64, ptr %328, i64 %329
store i64 %327, ptr %330, align 8
br label %331
331: ; preds = %325, %319
br label %332
332: ; preds = %331, %310
br label %333
333: ; preds = %332, %298
br label %334
334: ; preds = %333
%335 = load i64, ptr %21, align 8
%336 = add nsw i64 %335, 1
store i64 %336, ptr %21, align 8
%337 = load ptr, ptr %23, align 8
%338 = getelementptr inbounds i16, ptr %337, i64 2
store ptr %338, ptr %23, align 8
%339 = load i64, ptr %21, align 8
%340 = load i64, ptr %12, align 8
%341 = icmp slt i64 %339, %340
br i1 %341, label %234, label %._crit_edge, !llvm.loop !10
._crit_edge: ; preds = %334
br label %342
342: ; preds = %._crit_edge, %230
br label %343
343: ; preds = %342, %229
br label %344
344: ; preds = %343, %126
%345 = load ptr, ptr %20, align 8
%346 = load i32, ptr %345, align 4
ret i32 %346
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpr0gg70yt.c'
source_filename = "/tmp/tmpr0gg70yt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@update_bbs.pulse_point = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @update_bbs() #0 {
%1 = load i32, ptr @update_bbs.pulse_point, align 4
%2 = add nsw i32 %1, -1
store i32 %2, ptr @update_bbs.pulse_point, align 4
%3 = icmp sle i32 %2, 0
br i1 %3, label %4, label %8
4: ; preds = %0
store i32 2400, ptr @update_bbs.pulse_point, align 4
%5 = call i32 (...) @user_update()
%6 = call i32 (...) @shutdown_update()
%7 = call i32 (...) @banish_update()
br label %8
8: ; preds = %4, %0
%9 = call i32 (...) @tail_chain()
ret void
}
declare i32 @user_update(...) #1
declare i32 @shutdown_update(...) #1
declare i32 @banish_update(...) #1
declare i32 @tail_chain(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr0gg70yt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@update_bbs.pulse_point = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @update_bbs() #0 {
%1 = load i32, ptr @update_bbs.pulse_point, align 4
%2 = add nsw i32 %1, -1
store i32 %2, ptr @update_bbs.pulse_point, align 4
%3 = icmp sle i32 %2, 0
br i1 %3, label %4, label %8
4: ; preds = %0
store i32 2400, ptr @update_bbs.pulse_point, align 4
%5 = call i32 (...) @user_update()
%6 = call i32 (...) @shutdown_update()
%7 = call i32 (...) @banish_update()
br label %8
8: ; preds = %4, %0
%9 = call i32 (...) @tail_chain()
ret void
}
declare i32 @user_update(...) #1
declare i32 @shutdown_update(...) #1
declare i32 @banish_update(...) #1
declare i32 @tail_chain(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd76cuu1s.c'
source_filename = "/tmp/tmpd76cuu1s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c" %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @int_input() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%3 = load i32, ptr %1, align 4
%4 = sitofp i32 %3 to double
ret double %4
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd76cuu1s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c" %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @int_input() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%3 = load i32, ptr %1, align 4
%4 = sitofp i32 %3 to double
ret double %4
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpocu6f1ag.c'
source_filename = "/tmp/tmpocu6f1ag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @solve_reduced(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, i32 noundef %10) #0 {
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca ptr, align 8
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca ptr, align 8
%32 = alloca ptr, align 8
store i32 %0, ptr %13, align 4
store i32 %1, ptr %14, align 4
store ptr %2, ptr %15, align 8
store ptr %3, ptr %16, align 8
store ptr %4, ptr %17, align 8
store ptr %5, ptr %18, align 8
store ptr %6, ptr %19, align 8
store ptr %7, ptr %20, align 8
store ptr %8, ptr %21, align 8
store ptr %9, ptr %22, align 8
store i32 %10, ptr %23, align 4
store i32 0, ptr %27, align 4
%33 = load ptr, ptr %22, align 8
store ptr %33, ptr %28, align 8
%34 = load ptr, ptr %28, align 8
%35 = load i32, ptr %13, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, ptr %34, i64 %36
store ptr %37, ptr %29, align 8
%38 = load ptr, ptr %29, align 8
%39 = load i32, ptr %14, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, ptr %38, i64 %40
store ptr %41, ptr %30, align 8
%42 = load ptr, ptr %30, align 8
%43 = load i32, ptr %13, align 4
%44 = load i32, ptr %14, align 4
%45 = mul nsw i32 %43, %44
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, ptr %42, i64 %46
store ptr %47, ptr %31, align 8
%48 = load ptr, ptr %31, align 8
%49 = load i32, ptr %13, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, ptr %48, i64 %50
store ptr %51, ptr %32, align 8
%52 = load i32, ptr %23, align 4
%53 = icmp eq i32 %52, 1
br i1 %53, label %54, label %154
54: ; preds = %11
%55 = load ptr, ptr %15, align 8
%56 = load i32, ptr %13, align 4
%57 = load ptr, ptr %28, align 8
%58 = call i32 @choldc(ptr noundef %55, i32 noundef %56, ptr noundef %57)
store i32 %58, ptr %27, align 4
%59 = load i32, ptr %27, align 4
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %54
%62 = load i32, ptr %27, align 4
store i32 %62, ptr %12, align 4
br label %269
63: ; preds = %54
store i32 0, ptr %24, align 4
br label %64
64: ; preds = %85, %63
%65 = load i32, ptr %24, align 4
%66 = load i32, ptr %14, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %88
68: ; preds = %64
%69 = load ptr, ptr %15, align 8
%70 = load i32, ptr %13, align 4
%71 = load ptr, ptr %28, align 8
%72 = load ptr, ptr %17, align 8
%73 = load i32, ptr %24, align 4
%74 = load i32, ptr %13, align 4
%75 = mul nsw i32 %73, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, ptr %72, i64 %76
%78 = load ptr, ptr %30, align 8
%79 = load i32, ptr %24, align 4
%80 = load i32, ptr %13, align 4
%81 = mul nsw i32 %79, %80
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, ptr %78, i64 %82
%84 = call i32 @chol_forward(ptr noundef %69, i32 noundef %70, ptr noundef %71, ptr noundef %77, ptr noundef %83)
br label %85
85: ; preds = %68
%86 = load i32, ptr %24, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %24, align 4
br label %64, !llvm.loop !6
88: ; preds = %64
store i32 0, ptr %24, align 4
br label %89
89: ; preds = %141, %88
%90 = load i32, ptr %24, align 4
%91 = load i32, ptr %14, align 4
%92 = icmp slt i32 %90, %91
br i1 %92, label %93, label %144
93: ; preds = %89
%94 = load i32, ptr %24, align 4
store i32 %94, ptr %25, align 4
br label %95
95: ; preds = %137, %93
%96 = load i32, ptr %25, align 4
%97 = load i32, ptr %14, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %99, label %140
99: ; preds = %95
store i32 0, ptr %26, align 4
br label %100
100: ; preds = %133, %99
%101 = load i32, ptr %26, align 4
%102 = load i32, ptr %13, align 4
%103 = icmp slt i32 %101, %102
br i1 %103, label %104, label %136
104: ; preds = %100
%105 = load ptr, ptr %30, align 8
%106 = load i32, ptr %13, align 4
%107 = load i32, ptr %25, align 4
%108 = mul nsw i32 %106, %107
%109 = load i32, ptr %26, align 4
%110 = add nsw i32 %108, %109
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double, ptr %105, i64 %111
%113 = load double, ptr %112, align 8
%114 = load ptr, ptr %30, align 8
%115 = load i32, ptr %13, align 4
%116 = load i32, ptr %24, align 4
%117 = mul nsw i32 %115, %116
%118 = load i32, ptr %26, align 4
%119 = add nsw i32 %117, %118
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, ptr %114, i64 %120
%122 = load double, ptr %121, align 8
%123 = load ptr, ptr %16, align 8
%124 = load i32, ptr %14, align 4
%125 = load i32, ptr %24, align 4
%126 = mul nsw i32 %124, %125
%127 = load i32, ptr %25, align 4
%128 = add nsw i32 %126, %127
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds double, ptr %123, i64 %129
%131 = load double, ptr %130, align 8
%132 = call double @llvm.fmuladd.f64(double %113, double %122, double %131)
store double %132, ptr %130, align 8
br label %133
133: ; preds = %104
%134 = load i32, ptr %26, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %26, align 4
br label %100, !llvm.loop !8
136: ; preds = %100
br label %137
137: ; preds = %136
%138 = load i32, ptr %25, align 4
%139 = add nsw i32 %138, 1
store i32 %139, ptr %25, align 4
br label %95, !llvm.loop !9
140: ; preds = %95
br label %141
141: ; preds = %140
%142 = load i32, ptr %24, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %24, align 4
br label %89, !llvm.loop !10
144: ; preds = %89
%145 = load ptr, ptr %16, align 8
%146 = load i32, ptr %14, align 4
%147 = load ptr, ptr %29, align 8
%148 = call i32 @choldc(ptr noundef %145, i32 noundef %146, ptr noundef %147)
store i32 %148, ptr %27, align 4
%149 = load i32, ptr %27, align 4
%150 = icmp ne i32 %149, 0
br i1 %150, label %151, label %153
151: ; preds = %144
%152 = load i32, ptr %27, align 4
store i32 %152, ptr %12, align 4
br label %269
153: ; preds = %144
br label %154
154: ; preds = %153, %11
%155 = load ptr, ptr %15, align 8
%156 = load i32, ptr %13, align 4
%157 = load ptr, ptr %28, align 8
%158 = load ptr, ptr %20, align 8
%159 = load ptr, ptr %31, align 8
%160 = call i32 @chol_forward(ptr noundef %155, i32 noundef %156, ptr noundef %157, ptr noundef %158, ptr noundef %159)
store i32 0, ptr %24, align 4
br label %161
161: ; preds = %204, %154
%162 = load i32, ptr %24, align 4
%163 = load i32, ptr %14, align 4
%164 = icmp slt i32 %162, %163
br i1 %164, label %165, label %207
165: ; preds = %161
%166 = load ptr, ptr %21, align 8
%167 = load i32, ptr %24, align 4
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds double, ptr %166, i64 %168
%170 = load double, ptr %169, align 8
%171 = load ptr, ptr %32, align 8
%172 = load i32, ptr %24, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, ptr %171, i64 %173
store double %170, ptr %174, align 8
store i32 0, ptr %25, align 4
br label %175
175: ; preds = %200, %165
%176 = load i32, ptr %25, align 4
%177 = load i32, ptr %13, align 4
%178 = icmp slt i32 %176, %177
br i1 %178, label %179, label %203
179: ; preds = %175
%180 = load ptr, ptr %30, align 8
%181 = load i32, ptr %24, align 4
%182 = load i32, ptr %13, align 4
%183 = mul nsw i32 %181, %182
%184 = load i32, ptr %25, align 4
%185 = add nsw i32 %183, %184
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double, ptr %180, i64 %186
%188 = load double, ptr %187, align 8
%189 = load ptr, ptr %31, align 8
%190 = load i32, ptr %25, align 4
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds double, ptr %189, i64 %191
%193 = load double, ptr %192, align 8
%194 = load ptr, ptr %32, align 8
%195 = load i32, ptr %24, align 4
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds double, ptr %194, i64 %196
%198 = load double, ptr %197, align 8
%199 = call double @llvm.fmuladd.f64(double %188, double %193, double %198)
store double %199, ptr %197, align 8
br label %200
200: ; preds = %179
%201 = load i32, ptr %25, align 4
%202 = add nsw i32 %201, 1
store i32 %202, ptr %25, align 4
br label %175, !llvm.loop !11
203: ; preds = %175
br label %204
204: ; preds = %203
%205 = load i32, ptr %24, align 4
%206 = add nsw i32 %205, 1
store i32 %206, ptr %24, align 4
br label %161, !llvm.loop !12
207: ; preds = %161
%208 = load ptr, ptr %16, align 8
%209 = load i32, ptr %14, align 4
%210 = load ptr, ptr %29, align 8
%211 = load ptr, ptr %32, align 8
%212 = load ptr, ptr %19, align 8
%213 = call i32 @cholsb(ptr noundef %208, i32 noundef %209, ptr noundef %210, ptr noundef %211, ptr noundef %212)
store i32 0, ptr %24, align 4
br label %214
214: ; preds = %258, %207
%215 = load i32, ptr %24, align 4
%216 = load i32, ptr %13, align 4
%217 = icmp slt i32 %215, %216
br i1 %217, label %218, label %261
218: ; preds = %214
%219 = load ptr, ptr %31, align 8
%220 = load i32, ptr %24, align 4
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds double, ptr %219, i64 %221
%223 = load double, ptr %222, align 8
%224 = fneg double %223
%225 = load ptr, ptr %31, align 8
%226 = load i32, ptr %24, align 4
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds double, ptr %225, i64 %227
store double %224, ptr %228, align 8
store i32 0, ptr %25, align 4
br label %229
229: ; preds = %254, %218
%230 = load i32, ptr %25, align 4
%231 = load i32, ptr %14, align 4
%232 = icmp slt i32 %230, %231
br i1 %232, label %233, label %257
233: ; preds = %229
%234 = load ptr, ptr %30, align 8
%235 = load i32, ptr %25, align 4
%236 = load i32, ptr %13, align 4
%237 = mul nsw i32 %235, %236
%238 = load i32, ptr %24, align 4
%239 = add nsw i32 %237, %238
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds double, ptr %234, i64 %240
%242 = load double, ptr %241, align 8
%243 = load ptr, ptr %19, align 8
%244 = load i32, ptr %25, align 4
%245 = sext i32 %244 to i64
%246 = getelementptr inbounds double, ptr %243, i64 %245
%247 = load double, ptr %246, align 8
%248 = load ptr, ptr %31, align 8
%249 = load i32, ptr %24, align 4
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds double, ptr %248, i64 %250
%252 = load double, ptr %251, align 8
%253 = call double @llvm.fmuladd.f64(double %242, double %247, double %252)
store double %253, ptr %251, align 8
br label %254
254: ; preds = %233
%255 = load i32, ptr %25, align 4
%256 = add nsw i32 %255, 1
store i32 %256, ptr %25, align 4
br label %229, !llvm.loop !13
257: ; preds = %229
br label %258
258: ; preds = %257
%259 = load i32, ptr %24, align 4
%260 = add nsw i32 %259, 1
store i32 %260, ptr %24, align 4
br label %214, !llvm.loop !14
261: ; preds = %214
%262 = load ptr, ptr %15, align 8
%263 = load i32, ptr %13, align 4
%264 = load ptr, ptr %28, align 8
%265 = load ptr, ptr %31, align 8
%266 = load ptr, ptr %18, align 8
%267 = call i32 @chol_backward(ptr noundef %262, i32 noundef %263, ptr noundef %264, ptr noundef %265, ptr noundef %266)
%268 = load i32, ptr %27, align 4
store i32 %268, ptr %12, align 4
br label %269
269: ; preds = %261, %151, %61
%270 = load i32, ptr %12, align 4
ret i32 %270
}
declare i32 @choldc(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @chol_forward(ptr noundef, i32 noundef, 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
declare i32 @cholsb(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @chol_backward(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpocu6f1ag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @solve_reduced(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, i32 noundef %10) #0 {
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca ptr, align 8
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca ptr, align 8
%32 = alloca ptr, align 8
store i32 %0, ptr %13, align 4
store i32 %1, ptr %14, align 4
store ptr %2, ptr %15, align 8
store ptr %3, ptr %16, align 8
store ptr %4, ptr %17, align 8
store ptr %5, ptr %18, align 8
store ptr %6, ptr %19, align 8
store ptr %7, ptr %20, align 8
store ptr %8, ptr %21, align 8
store ptr %9, ptr %22, align 8
store i32 %10, ptr %23, align 4
store i32 0, ptr %27, align 4
%33 = load ptr, ptr %22, align 8
store ptr %33, ptr %28, align 8
%34 = load ptr, ptr %28, align 8
%35 = load i32, ptr %13, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, ptr %34, i64 %36
store ptr %37, ptr %29, align 8
%38 = load ptr, ptr %29, align 8
%39 = load i32, ptr %14, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, ptr %38, i64 %40
store ptr %41, ptr %30, align 8
%42 = load ptr, ptr %30, align 8
%43 = load i32, ptr %13, align 4
%44 = load i32, ptr %14, align 4
%45 = mul nsw i32 %43, %44
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, ptr %42, i64 %46
store ptr %47, ptr %31, align 8
%48 = load ptr, ptr %31, align 8
%49 = load i32, ptr %13, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, ptr %48, i64 %50
store ptr %51, ptr %32, align 8
%52 = load i32, ptr %23, align 4
%53 = icmp eq i32 %52, 1
br i1 %53, label %54, label %162
54: ; preds = %11
%55 = load ptr, ptr %15, align 8
%56 = load i32, ptr %13, align 4
%57 = load ptr, ptr %28, align 8
%58 = call i32 @choldc(ptr noundef %55, i32 noundef %56, ptr noundef %57)
store i32 %58, ptr %27, align 4
%59 = load i32, ptr %27, align 4
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %54
%62 = load i32, ptr %27, align 4
store i32 %62, ptr %12, align 4
br label %285
63: ; preds = %54
store i32 0, ptr %24, align 4
%64 = load i32, ptr %24, align 4
%65 = load i32, ptr %14, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %.lr.ph, label %90
.lr.ph: ; preds = %63
br label %67
67: ; preds = %.lr.ph, %84
%68 = load ptr, ptr %15, align 8
%69 = load i32, ptr %13, align 4
%70 = load ptr, ptr %28, align 8
%71 = load ptr, ptr %17, align 8
%72 = load i32, ptr %24, align 4
%73 = load i32, ptr %13, align 4
%74 = mul nsw i32 %72, %73
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, ptr %71, i64 %75
%77 = load ptr, ptr %30, align 8
%78 = load i32, ptr %24, align 4
%79 = load i32, ptr %13, align 4
%80 = mul nsw i32 %78, %79
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, ptr %77, i64 %81
%83 = call i32 @chol_forward(ptr noundef %68, i32 noundef %69, ptr noundef %70, ptr noundef %76, ptr noundef %82)
br label %84
84: ; preds = %67
%85 = load i32, ptr %24, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %24, align 4
%87 = load i32, ptr %24, align 4
%88 = load i32, ptr %14, align 4
%89 = icmp slt i32 %87, %88
br i1 %89, label %67, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %84
br label %90
90: ; preds = %._crit_edge, %63
store i32 0, ptr %24, align 4
%91 = load i32, ptr %24, align 4
%92 = load i32, ptr %14, align 4
%93 = icmp slt i32 %91, %92
br i1 %93, label %.lr.ph8, label %152
.lr.ph8: ; preds = %90
br label %94
94: ; preds = %.lr.ph8, %146
%95 = load i32, ptr %24, align 4
store i32 %95, ptr %25, align 4
%96 = load i32, ptr %25, align 4
%97 = load i32, ptr %14, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %.lr.ph5, label %145
.lr.ph5: ; preds = %94
br label %99
99: ; preds = %.lr.ph5, %139
store i32 0, ptr %26, align 4
%100 = load i32, ptr %26, align 4
%101 = load i32, ptr %13, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %.lr.ph2, label %138
.lr.ph2: ; preds = %99
br label %103
103: ; preds = %.lr.ph2, %132
%104 = load ptr, ptr %30, align 8
%105 = load i32, ptr %13, align 4
%106 = load i32, ptr %25, align 4
%107 = mul nsw i32 %105, %106
%108 = load i32, ptr %26, align 4
%109 = add nsw i32 %107, %108
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds double, ptr %104, i64 %110
%112 = load double, ptr %111, align 8
%113 = load ptr, ptr %30, align 8
%114 = load i32, ptr %13, align 4
%115 = load i32, ptr %24, align 4
%116 = mul nsw i32 %114, %115
%117 = load i32, ptr %26, align 4
%118 = add nsw i32 %116, %117
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds double, ptr %113, i64 %119
%121 = load double, ptr %120, align 8
%122 = load ptr, ptr %16, align 8
%123 = load i32, ptr %14, align 4
%124 = load i32, ptr %24, align 4
%125 = mul nsw i32 %123, %124
%126 = load i32, ptr %25, align 4
%127 = add nsw i32 %125, %126
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds double, ptr %122, i64 %128
%130 = load double, ptr %129, align 8
%131 = call double @llvm.fmuladd.f64(double %112, double %121, double %130)
store double %131, ptr %129, align 8
br label %132
132: ; preds = %103
%133 = load i32, ptr %26, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %26, align 4
%135 = load i32, ptr %26, align 4
%136 = load i32, ptr %13, align 4
%137 = icmp slt i32 %135, %136
br i1 %137, label %103, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %132
br label %138
138: ; preds = %._crit_edge3, %99
br label %139
139: ; preds = %138
%140 = load i32, ptr %25, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %25, align 4
%142 = load i32, ptr %25, align 4
%143 = load i32, ptr %14, align 4
%144 = icmp slt i32 %142, %143
br i1 %144, label %99, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %139
br label %145
145: ; preds = %._crit_edge6, %94
br label %146
146: ; preds = %145
%147 = load i32, ptr %24, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %24, align 4
%149 = load i32, ptr %24, align 4
%150 = load i32, ptr %14, align 4
%151 = icmp slt i32 %149, %150
br i1 %151, label %94, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %146
br label %152
152: ; preds = %._crit_edge9, %90
%153 = load ptr, ptr %16, align 8
%154 = load i32, ptr %14, align 4
%155 = load ptr, ptr %29, align 8
%156 = call i32 @choldc(ptr noundef %153, i32 noundef %154, ptr noundef %155)
store i32 %156, ptr %27, align 4
%157 = load i32, ptr %27, align 4
%158 = icmp ne i32 %157, 0
br i1 %158, label %159, label %161
159: ; preds = %152
%160 = load i32, ptr %27, align 4
store i32 %160, ptr %12, align 4
br label %285
161: ; preds = %152
br label %162
162: ; preds = %161, %11
%163 = load ptr, ptr %15, align 8
%164 = load i32, ptr %13, align 4
%165 = load ptr, ptr %28, align 8
%166 = load ptr, ptr %20, align 8
%167 = load ptr, ptr %31, align 8
%168 = call i32 @chol_forward(ptr noundef %163, i32 noundef %164, ptr noundef %165, ptr noundef %166, ptr noundef %167)
store i32 0, ptr %24, align 4
%169 = load i32, ptr %24, align 4
%170 = load i32, ptr %14, align 4
%171 = icmp slt i32 %169, %170
br i1 %171, label %.lr.ph14, label %219
.lr.ph14: ; preds = %162
br label %172
172: ; preds = %.lr.ph14, %213
%173 = load ptr, ptr %21, align 8
%174 = load i32, ptr %24, align 4
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds double, ptr %173, i64 %175
%177 = load double, ptr %176, align 8
%178 = load ptr, ptr %32, align 8
%179 = load i32, ptr %24, align 4
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds double, ptr %178, i64 %180
store double %177, ptr %181, align 8
store i32 0, ptr %25, align 4
%182 = load i32, ptr %25, align 4
%183 = load i32, ptr %13, align 4
%184 = icmp slt i32 %182, %183
br i1 %184, label %.lr.ph11, label %212
.lr.ph11: ; preds = %172
br label %185
185: ; preds = %.lr.ph11, %206
%186 = load ptr, ptr %30, align 8
%187 = load i32, ptr %24, align 4
%188 = load i32, ptr %13, align 4
%189 = mul nsw i32 %187, %188
%190 = load i32, ptr %25, align 4
%191 = add nsw i32 %189, %190
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds double, ptr %186, i64 %192
%194 = load double, ptr %193, align 8
%195 = load ptr, ptr %31, align 8
%196 = load i32, ptr %25, align 4
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds double, ptr %195, i64 %197
%199 = load double, ptr %198, align 8
%200 = load ptr, ptr %32, align 8
%201 = load i32, ptr %24, align 4
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds double, ptr %200, i64 %202
%204 = load double, ptr %203, align 8
%205 = call double @llvm.fmuladd.f64(double %194, double %199, double %204)
store double %205, ptr %203, align 8
br label %206
206: ; preds = %185
%207 = load i32, ptr %25, align 4
%208 = add nsw i32 %207, 1
store i32 %208, ptr %25, align 4
%209 = load i32, ptr %25, align 4
%210 = load i32, ptr %13, align 4
%211 = icmp slt i32 %209, %210
br i1 %211, label %185, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %206
br label %212
212: ; preds = %._crit_edge12, %172
br label %213
213: ; preds = %212
%214 = load i32, ptr %24, align 4
%215 = add nsw i32 %214, 1
store i32 %215, ptr %24, align 4
%216 = load i32, ptr %24, align 4
%217 = load i32, ptr %14, align 4
%218 = icmp slt i32 %216, %217
br i1 %218, label %172, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %213
br label %219
219: ; preds = %._crit_edge15, %162
%220 = load ptr, ptr %16, align 8
%221 = load i32, ptr %14, align 4
%222 = load ptr, ptr %29, align 8
%223 = load ptr, ptr %32, align 8
%224 = load ptr, ptr %19, align 8
%225 = call i32 @cholsb(ptr noundef %220, i32 noundef %221, ptr noundef %222, ptr noundef %223, ptr noundef %224)
store i32 0, ptr %24, align 4
%226 = load i32, ptr %24, align 4
%227 = load i32, ptr %13, align 4
%228 = icmp slt i32 %226, %227
br i1 %228, label %.lr.ph20, label %277
.lr.ph20: ; preds = %219
br label %229
229: ; preds = %.lr.ph20, %271
%230 = load ptr, ptr %31, align 8
%231 = load i32, ptr %24, align 4
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds double, ptr %230, i64 %232
%234 = load double, ptr %233, align 8
%235 = fneg double %234
%236 = load ptr, ptr %31, align 8
%237 = load i32, ptr %24, align 4
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds double, ptr %236, i64 %238
store double %235, ptr %239, align 8
store i32 0, ptr %25, align 4
%240 = load i32, ptr %25, align 4
%241 = load i32, ptr %14, align 4
%242 = icmp slt i32 %240, %241
br i1 %242, label %.lr.ph17, label %270
.lr.ph17: ; preds = %229
br label %243
243: ; preds = %.lr.ph17, %264
%244 = load ptr, ptr %30, align 8
%245 = load i32, ptr %25, align 4
%246 = load i32, ptr %13, align 4
%247 = mul nsw i32 %245, %246
%248 = load i32, ptr %24, align 4
%249 = add nsw i32 %247, %248
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds double, ptr %244, i64 %250
%252 = load double, ptr %251, align 8
%253 = load ptr, ptr %19, align 8
%254 = load i32, ptr %25, align 4
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds double, ptr %253, i64 %255
%257 = load double, ptr %256, align 8
%258 = load ptr, ptr %31, align 8
%259 = load i32, ptr %24, align 4
%260 = sext i32 %259 to i64
%261 = getelementptr inbounds double, ptr %258, i64 %260
%262 = load double, ptr %261, align 8
%263 = call double @llvm.fmuladd.f64(double %252, double %257, double %262)
store double %263, ptr %261, align 8
br label %264
264: ; preds = %243
%265 = load i32, ptr %25, align 4
%266 = add nsw i32 %265, 1
store i32 %266, ptr %25, align 4
%267 = load i32, ptr %25, align 4
%268 = load i32, ptr %14, align 4
%269 = icmp slt i32 %267, %268
br i1 %269, label %243, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %264
br label %270
270: ; preds = %._crit_edge18, %229
br label %271
271: ; preds = %270
%272 = load i32, ptr %24, align 4
%273 = add nsw i32 %272, 1
store i32 %273, ptr %24, align 4
%274 = load i32, ptr %24, align 4
%275 = load i32, ptr %13, align 4
%276 = icmp slt i32 %274, %275
br i1 %276, label %229, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %271
br label %277
277: ; preds = %._crit_edge21, %219
%278 = load ptr, ptr %15, align 8
%279 = load i32, ptr %13, align 4
%280 = load ptr, ptr %28, align 8
%281 = load ptr, ptr %31, align 8
%282 = load ptr, ptr %18, align 8
%283 = call i32 @chol_backward(ptr noundef %278, i32 noundef %279, ptr noundef %280, ptr noundef %281, ptr noundef %282)
%284 = load i32, ptr %27, align 4
store i32 %284, ptr %12, align 4
br label %285
285: ; preds = %277, %159, %61
%286 = load i32, ptr %12, align 4
ret i32 %286
}
declare i32 @choldc(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @chol_forward(ptr noundef, i32 noundef, 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
declare i32 @cholsb(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @chol_backward(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpwztkw9cx.c'
source_filename = "/tmp/tmpwztkw9cx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @make_copy_string(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 ptr @mk_copy_string(ptr noundef %3)
ret ptr %4
}
declare ptr @mk_copy_string(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/tmpwztkw9cx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @make_copy_string(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 ptr @mk_copy_string(ptr noundef %3)
ret ptr %4
}
declare ptr @mk_copy_string(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/tmp805djypx.c'
source_filename = "/tmp/tmp805djypx.c"
target datalayout = "e-m:e-p270: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"nothing set\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @find_set(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 1, ptr %6, align 4
br label %7
7: ; preds = %19, %2
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %22
11: ; preds = %7
%12 = load i32, ptr %6, align 4
%13 = load ptr, ptr %4, align 8
%14 = call i64 @FD_ISSET(i32 noundef %12, ptr noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = load i32, ptr %6, align 4
store i32 %17, ptr %3, align 4
br label %24
18: ; preds = %11
br label %19
19: ; preds = %18
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %6, align 4
br label %7, !llvm.loop !6
22: ; preds = %7
%23 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %24
24: ; preds = %22, %16
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp805djypx.c"
target datalayout = "e-m:e-p270: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"nothing set\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @find_set(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 1, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %24
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %18
%11 = load i32, ptr %6, align 4
%12 = load ptr, ptr %4, align 8
%13 = call i64 @FD_ISSET(i32 noundef %11, ptr noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = load i32, ptr %6, align 4
store i32 %16, ptr %3, align 4
br label %26
17: ; preds = %10
br label %18
18: ; preds = %17
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %2
%25 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %26
26: ; preds = %24, %15
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpnjdyi01x.c'
source_filename = "/tmp/tmpnjdyi01x.c"
target datalayout = "e-m:e-p270: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"/proc/uptime\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = load i32, ptr @O_RDONLY, align 4
%9 = call i32 @open(ptr noundef @.str, i32 noundef %8)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp sge i32 %10, 0
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
%14 = load i32, ptr %7, align 4
%15 = call i32 @proc_uptime(i32 noundef %14, ptr noundef %3, ptr noundef %5)
%16 = load i32, ptr %3, align 4
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %32, %0
%18 = load i32, ptr %7, align 4
%19 = call i32 @proc_uptime(i32 noundef %18, ptr noundef %4, ptr noundef %6)
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp sge i32 %20, %21
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 noundef %23)
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp sge i32 %25, %26
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
%30 = load i32, ptr %4, align 4
store i32 %30, ptr %3, align 4
%31 = load i32, ptr %6, align 4
store i32 %31, ptr %5, align 4
br label %32
32: ; preds = %17
%33 = load i32, ptr %4, align 4
%34 = load i32, ptr %2, align 4
%35 = sub nsw i32 %33, %34
%36 = icmp slt i32 %35, 100
br i1 %36, label %17, label %37, !llvm.loop !6
37: ; preds = %32
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @proc_uptime(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnjdyi01x.c"
target datalayout = "e-m:e-p270: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"/proc/uptime\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = load i32, ptr @O_RDONLY, align 4
%9 = call i32 @open(ptr noundef @.str, i32 noundef %8)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp sge i32 %10, 0
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
%14 = load i32, ptr %7, align 4
%15 = call i32 @proc_uptime(i32 noundef %14, ptr noundef %3, ptr noundef %5)
%16 = load i32, ptr %3, align 4
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %32, %0
%18 = load i32, ptr %7, align 4
%19 = call i32 @proc_uptime(i32 noundef %18, ptr noundef %4, ptr noundef %6)
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp sge i32 %20, %21
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 noundef %23)
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp sge i32 %25, %26
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
%30 = load i32, ptr %4, align 4
store i32 %30, ptr %3, align 4
%31 = load i32, ptr %6, align 4
store i32 %31, ptr %5, align 4
br label %32
32: ; preds = %17
%33 = load i32, ptr %4, align 4
%34 = load i32, ptr %2, align 4
%35 = sub nsw i32 %33, %34
%36 = icmp slt i32 %35, 100
br i1 %36, label %17, label %37, !llvm.loop !6
37: ; preds = %32
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @proc_uptime(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp89p9jq4q.c'
source_filename = "/tmp/tmp89p9jq4q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Muovo da %d a %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @move(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
store i32 %0, ptr %5, align 4
store i8 %1, ptr %6, align 1
store i8 %2, ptr %7, align 1
store i8 %3, ptr %8, align 1
%9 = load i32, ptr %5, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %25
11: ; preds = %4
%12 = load i32, ptr %5, align 4
%13 = sub nsw i32 %12, 1
%14 = load i8, ptr %6, align 1
%15 = load i8, ptr %8, align 1
%16 = load i8, ptr %7, align 1
call void @move(i32 noundef %13, i8 noundef signext %14, i8 noundef signext %15, i8 noundef signext %16)
%17 = load i8, ptr %6, align 1
%18 = load i8, ptr %7, align 1
%19 = call i32 @printf(ptr noundef @.str, i8 noundef signext %17, i8 noundef signext %18)
%20 = load i32, ptr %5, align 4
%21 = sub nsw i32 %20, 1
%22 = load i8, ptr %8, align 1
%23 = load i8, ptr %7, align 1
%24 = load i8, ptr %6, align 1
call void @move(i32 noundef %21, i8 noundef signext %22, i8 noundef signext %23, i8 noundef signext %24)
br label %25
25: ; preds = %11, %4
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp89p9jq4q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Muovo da %d a %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @move(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
store i32 %0, ptr %5, align 4
store i8 %1, ptr %6, align 1
store i8 %2, ptr %7, align 1
store i8 %3, ptr %8, align 1
%9 = load i32, ptr %5, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %25
11: ; preds = %4
%12 = load i32, ptr %5, align 4
%13 = sub nsw i32 %12, 1
%14 = load i8, ptr %6, align 1
%15 = load i8, ptr %8, align 1
%16 = load i8, ptr %7, align 1
call void @move(i32 noundef %13, i8 noundef signext %14, i8 noundef signext %15, i8 noundef signext %16)
%17 = load i8, ptr %6, align 1
%18 = load i8, ptr %7, align 1
%19 = call i32 @printf(ptr noundef @.str, i8 noundef signext %17, i8 noundef signext %18)
%20 = load i32, ptr %5, align 4
%21 = sub nsw i32 %20, 1
%22 = load i8, ptr %8, align 1
%23 = load i8, ptr %7, align 1
%24 = load i8, ptr %6, align 1
call void @move(i32 noundef %21, i8 noundef signext %22, i8 noundef signext %23, i8 noundef signext %24)
br label %25
25: ; preds = %11, %4
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp52yxeal8.c'
source_filename = "/tmp/tmp52yxeal8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_REALTIME = 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/tmp52yxeal8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_REALTIME = 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/tmpbhs5rnrp.c'
source_filename = "/tmp/tmpbhs5rnrp.c"
target datalayout = "e-m:e-p270: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/tmpbhs5rnrp.c"
target datalayout = "e-m:e-p270: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/tmp9cnyvq2t.c'
source_filename = "/tmp/tmp9cnyvq2t.c"
target datalayout = "e-m:e-p270: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">>\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"SECTION\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"+>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @line_strip(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [8 x i8], align 1
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i64 @strncmp(ptr noundef %7, ptr noundef @.str, i32 noundef 2)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %62
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 2
store ptr %12, ptr %3, align 8
%13 = load ptr, ptr %3, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 63
br i1 %16, label %17, label %61
17: ; preds = %10
%18 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 1
%21 = call i32 @strncpy(ptr noundef %18, ptr noundef %20, i32 noundef 7)
store i32 0, ptr %4, align 4
br label %22
22: ; preds = %34, %17
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %23, 7
br i1 %24, label %25, label %37
25: ; preds = %22
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = call signext i8 @toupper(i8 noundef signext %29)
%31 = load i32, ptr %4, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 %32
store i8 %30, ptr %33, align 1
br label %34
34: ; preds = %25
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %4, align 4
br label %22, !llvm.loop !6
37: ; preds = %22
%38 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
%39 = call i64 @strncmp(ptr noundef %38, ptr noundef @.str.1, i32 noundef 7)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %60
41: ; preds = %37
%42 = load ptr, ptr %3, align 8
%43 = getelementptr inbounds i8, ptr %42, i64 7
store ptr %43, ptr %3, align 8
br label %44
44: ; preds = %56, %41
%45 = load ptr, ptr %3, align 8
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp ne i32 %47, 10
br i1 %48, label %49, label %54
49: ; preds = %44
%50 = load ptr, ptr %3, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 0
br label %54
54: ; preds = %49, %44
%55 = phi i1 [ false, %44 ], [ %53, %49 ]
br i1 %55, label %56, label %59
56: ; preds = %54
%57 = load ptr, ptr %3, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %3, align 8
br label %44, !llvm.loop !8
59: ; preds = %54
br label %60
60: ; preds = %59, %37
br label %61
61: ; preds = %60, %10
br label %70
62: ; preds = %1
%63 = load ptr, ptr %2, align 8
%64 = call i64 @strncmp(ptr noundef %63, ptr noundef @.str.2, i32 noundef 2)
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %62
%67 = load ptr, ptr %2, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 2
store ptr %68, ptr %3, align 8
br label %69
69: ; preds = %66, %62
br label %70
70: ; preds = %69, %61
%71 = load ptr, ptr %3, align 8
ret ptr %71
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare signext i8 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9cnyvq2t.c"
target datalayout = "e-m:e-p270: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">>\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"SECTION\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"+>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @line_strip(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [8 x i8], align 1
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i64 @strncmp(ptr noundef %7, ptr noundef @.str, i32 noundef 2)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %63
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 2
store ptr %12, ptr %3, align 8
%13 = load ptr, ptr %3, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 63
br i1 %16, label %17, label %62
17: ; preds = %10
%18 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 1
%21 = call i32 @strncpy(ptr noundef %18, ptr noundef %20, i32 noundef 7)
store i32 0, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %22, 7
br i1 %23, label %.lr.ph, label %38
.lr.ph: ; preds = %17
br label %24
24: ; preds = %.lr.ph, %33
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = call signext i8 @toupper(i8 noundef signext %28)
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 %31
store i8 %29, ptr %32, align 1
br label %33
33: ; preds = %24
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %4, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp slt i32 %36, 7
br i1 %37, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %38
38: ; preds = %._crit_edge, %17
%39 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
%40 = call i64 @strncmp(ptr noundef %39, ptr noundef @.str.1, i32 noundef 7)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %61
42: ; preds = %38
%43 = load ptr, ptr %3, align 8
%44 = getelementptr inbounds i8, ptr %43, i64 7
store ptr %44, ptr %3, align 8
br label %45
45: ; preds = %57, %42
%46 = load ptr, ptr %3, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 10
br i1 %49, label %50, label %55
50: ; preds = %45
%51 = load ptr, ptr %3, align 8
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp ne i32 %53, 0
br label %55
55: ; preds = %50, %45
%56 = phi i1 [ false, %45 ], [ %54, %50 ]
br i1 %56, label %57, label %60
57: ; preds = %55
%58 = load ptr, ptr %3, align 8
%59 = getelementptr inbounds i8, ptr %58, i32 1
store ptr %59, ptr %3, align 8
br label %45, !llvm.loop !8
60: ; preds = %55
br label %61
61: ; preds = %60, %38
br label %62
62: ; preds = %61, %10
br label %71
63: ; preds = %1
%64 = load ptr, ptr %2, align 8
%65 = call i64 @strncmp(ptr noundef %64, ptr noundef @.str.2, i32 noundef 2)
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %63
%68 = load ptr, ptr %2, align 8
%69 = getelementptr inbounds i8, ptr %68, i64 2
store ptr %69, ptr %3, align 8
br label %70
70: ; preds = %67, %63
br label %71
71: ; preds = %70, %62
%72 = load ptr, ptr %3, align 8
ret ptr %72
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare signext i8 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpskvbu2zr.c'
source_filename = "/tmp/tmpskvbu2zr.c"
target datalayout = "e-m:e-p270: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/tmpskvbu2zr.c"
target datalayout = "e-m:e-p270: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/tmp831ruw7v.c'
source_filename = "/tmp/tmp831ruw7v.c"
target datalayout = "e-m:e-p270: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.test = private unnamed_addr constant [7 x i32] [i32 1, i32 3, i32 5, i32 7, i32 9, i32 11, i32 13], align 16
@.str = private unnamed_addr constant [26 x i8] c"looking for %d. Index=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [7 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.test, i64 28, i1 false)
store i32 6, ptr %3, align 4
br label %4
4: ; preds = %19, %0
%5 = load i32, ptr %3, align 4
%6 = icmp sge i32 %5, 0
br i1 %6, label %7, label %22
7: ; preds = %4
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 %9
%11 = load i32, ptr %10, align 4
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 %13
%15 = load i32, ptr %14, align 4
%16 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%17 = call i32 @binsearch(i32 noundef %15, ptr noundef %16, i32 noundef 7)
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %11, i32 noundef %17)
br label %19
19: ; preds = %7
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, -1
store i32 %21, ptr %3, align 4
br label %4, !llvm.loop !6
22: ; preds = %4
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @binsearch(i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp831ruw7v.c"
target datalayout = "e-m:e-p270: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.test = private unnamed_addr constant [7 x i32] [i32 1, i32 3, i32 5, i32 7, i32 9, i32 11, i32 13], align 16
@.str = private unnamed_addr constant [26 x i8] c"looking for %d. Index=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [7 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.test, i64 28, i1 false)
store i32 6, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp sge i32 %4, 0
br i1 %5, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %18
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 %8
%10 = load i32, ptr %9, align 4
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 %12
%14 = load i32, ptr %13, align 4
%15 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%16 = call i32 @binsearch(i32 noundef %14, ptr noundef %15, i32 noundef 7)
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %10, i32 noundef %16)
br label %18
18: ; preds = %6
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, -1
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp sge i32 %21, 0
br i1 %22, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %23
23: ; preds = %._crit_edge, %0
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @binsearch(i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4lx6mplw.c'
source_filename = "/tmp/tmp4lx6mplw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [3 x i32] [i32 0, i32 1, i32 2], align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i32], align 4
%3 = alloca i32, 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.a, i64 12, i1 false)
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %11, %0
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 3
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 %9
store i32 0, ptr %10, align 4
br label %11
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
br label %4, !llvm.loop !6
14: ; preds = %4
%15 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 2
%16 = load i32, ptr %15, align 4
%17 = icmp eq i32 %16, 2
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 noundef %18)
%20 = load i32, ptr %1, align 4
ret i32 %20
}
; 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 @assert(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4lx6mplw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [3 x i32] [i32 0, i32 1, i32 2], align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i32], align 4
%3 = alloca i32, 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.a, i64 12, i1 false)
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, 3
br i1 %5, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %10
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 %8
store i32 0, ptr %9, align 4
br label %10
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %13, 3
br i1 %14, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %15
15: ; preds = %._crit_edge, %0
%16 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 2
%17 = load i32, ptr %16, align 4
%18 = icmp eq i32 %17, 2
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 noundef %19)
%21 = load i32, ptr %1, align 4
ret i32 %21
}
; 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 @assert(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpl1521nxb.c'
source_filename = "/tmp/tmpl1521nxb.c"
target datalayout = "e-m:e-p270: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/tmpl1521nxb.c"
target datalayout = "e-m:e-p270: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/tmp8x5k3cix.c'
source_filename = "/tmp/tmp8x5k3cix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"radix: %d\0A\00", align 1
@FLT_RADIX = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"float: %d radix digits\0A\00", align 1
@FLT_MANT_DIG = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [11 x i8] c"\09[%g, %g]\0A\00", align 1
@FLT_MIN = dso_local global double 0.000000e+00, align 8
@FLT_MAX = dso_local global double 0.000000e+00, align 8
@.str.3 = private unnamed_addr constant [25 x i8] c"double: %d radix digits\0A\00", align 1
@DBL_MANT_DIG = dso_local global i32 0, align 4
@DBL_MIN = dso_local global double 0.000000e+00, align 8
@DBL_MAX = dso_local global double 0.000000e+00, align 8
@.str.4 = private unnamed_addr constant [30 x i8] c"long double: %d radix digits\0A\00", align 1
@LDBL_MANT_DIG = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [13 x i8] c"\09[%Lg, %Lg]\0A\00", align 1
@LDBL_MIN = dso_local global double 0.000000e+00, align 8
@LDBL_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr @FLT_RADIX, align 4
%3 = sitofp i32 %2 to double
%4 = call i32 (ptr, double, ...) @printf(ptr noundef @.str, double noundef %3)
%5 = load i32, ptr @FLT_MANT_DIG, align 4
%6 = sitofp i32 %5 to double
%7 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.1, double noundef %6)
%8 = load double, ptr @FLT_MIN, align 8
%9 = load double, ptr @FLT_MAX, align 8
%10 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.2, double noundef %8, double noundef %9)
%11 = load i32, ptr @DBL_MANT_DIG, align 4
%12 = sitofp i32 %11 to double
%13 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.3, double noundef %12)
%14 = load double, ptr @DBL_MIN, align 8
%15 = load double, ptr @DBL_MAX, align 8
%16 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.2, double noundef %14, double noundef %15)
%17 = load i32, ptr @LDBL_MANT_DIG, align 4
%18 = sitofp i32 %17 to double
%19 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.4, double noundef %18)
%20 = load double, ptr @LDBL_MIN, align 8
%21 = load double, ptr @LDBL_MAX, align 8
%22 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.5, double noundef %20, double noundef %21)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8x5k3cix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"radix: %d\0A\00", align 1
@FLT_RADIX = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"float: %d radix digits\0A\00", align 1
@FLT_MANT_DIG = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [11 x i8] c"\09[%g, %g]\0A\00", align 1
@FLT_MIN = dso_local global double 0.000000e+00, align 8
@FLT_MAX = dso_local global double 0.000000e+00, align 8
@.str.3 = private unnamed_addr constant [25 x i8] c"double: %d radix digits\0A\00", align 1
@DBL_MANT_DIG = dso_local global i32 0, align 4
@DBL_MIN = dso_local global double 0.000000e+00, align 8
@DBL_MAX = dso_local global double 0.000000e+00, align 8
@.str.4 = private unnamed_addr constant [30 x i8] c"long double: %d radix digits\0A\00", align 1
@LDBL_MANT_DIG = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [13 x i8] c"\09[%Lg, %Lg]\0A\00", align 1
@LDBL_MIN = dso_local global double 0.000000e+00, align 8
@LDBL_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr @FLT_RADIX, align 4
%3 = sitofp i32 %2 to double
%4 = call i32 (ptr, double, ...) @printf(ptr noundef @.str, double noundef %3)
%5 = load i32, ptr @FLT_MANT_DIG, align 4
%6 = sitofp i32 %5 to double
%7 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.1, double noundef %6)
%8 = load double, ptr @FLT_MIN, align 8
%9 = load double, ptr @FLT_MAX, align 8
%10 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.2, double noundef %8, double noundef %9)
%11 = load i32, ptr @DBL_MANT_DIG, align 4
%12 = sitofp i32 %11 to double
%13 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.3, double noundef %12)
%14 = load double, ptr @DBL_MIN, align 8
%15 = load double, ptr @DBL_MAX, align 8
%16 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.2, double noundef %14, double noundef %15)
%17 = load i32, ptr @LDBL_MANT_DIG, align 4
%18 = sitofp i32 %17 to double
%19 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.4, double noundef %18)
%20 = load double, ptr @LDBL_MIN, align 8
%21 = load double, ptr @LDBL_MAX, align 8
%22 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.5, double noundef %20, double noundef %21)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8r3yhjca.c'
source_filename = "/tmp/tmp8r3yhjca.c"
target datalayout = "e-m:e-p270: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/tmp8r3yhjca.c"
target datalayout = "e-m:e-p270: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/tmp3jetg_by.c'
source_filename = "/tmp/tmp3jetg_by.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = call i64 @malloc(i32 noundef 16)
%4 = inttoptr i64 %3 to ptr
store ptr %4, ptr %1, align 8
%5 = load ptr, ptr %1, align 8
store i32 5, ptr %5, align 4
%6 = load ptr, ptr %1, align 8
%7 = load i32, ptr %6, align 4
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sge i32 %8, 10
%10 = zext i1 %9 to i32
%11 = call i32 @csolve_assert(i32 noundef %10)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @csolve_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/tmp3jetg_by.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = call i64 @malloc(i32 noundef 16)
%4 = inttoptr i64 %3 to ptr
store ptr %4, ptr %1, align 8
%5 = load ptr, ptr %1, align 8
store i32 5, ptr %5, align 4
%6 = load ptr, ptr %1, align 8
%7 = load i32, ptr %6, align 4
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sge i32 %8, 10
%10 = zext i1 %9 to i32
%11 = call i32 @csolve_assert(i32 noundef %10)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @csolve_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/tmpev8g7td3.c'
source_filename = "/tmp/tmpev8g7td3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @time_parse(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 0, ptr %5, align 8
store i64 0, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %6, align 8
br label %8
8: ; preds = %67, %1
%9 = load ptr, ptr %6, align 8
%10 = load i8, ptr %9, align 1
%11 = zext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %8
%14 = load ptr, ptr %6, align 8
%15 = load i8, ptr %14, align 1
%16 = zext i8 %15 to i32
%17 = icmp ne i32 %16, 32
br label %18
18: ; preds = %13, %8
%19 = phi i1 [ false, %8 ], [ %17, %13 ]
br i1 %19, label %20, label %70
20: ; preds = %18
%21 = load ptr, ptr %6, align 8
%22 = load i8, ptr %21, align 1
%23 = call i64 @isdigit(i8 noundef zeroext %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %35
25: ; preds = %20
%26 = load i64, ptr %5, align 8
%27 = mul i64 %26, 10
store i64 %27, ptr %5, align 8
%28 = load ptr, ptr %6, align 8
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = sub nsw i32 %30, 48
%32 = sext i32 %31 to i64
%33 = load i64, ptr %5, align 8
%34 = add i64 %33, %32
store i64 %34, ptr %5, align 8
br label %67
35: ; preds = %20
%36 = load ptr, ptr %6, align 8
%37 = load i8, ptr %36, align 1
%38 = call i64 @isalpha(i8 noundef zeroext %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %65
40: ; preds = %35
%41 = load ptr, ptr %6, align 8
%42 = load i8, ptr %41, align 1
%43 = call i32 @tolower(i8 noundef zeroext %42)
switch i32 %43, label %60 [
i32 121, label %44
i32 119, label %47
i32 100, label %50
i32 104, label %53
i32 109, label %56
i32 115, label %59
]
44: ; preds = %40
%45 = load i64, ptr %5, align 8
%46 = mul i64 %45, 31536000
store i64 %46, ptr %5, align 8
br label %61
47: ; preds = %40
%48 = load i64, ptr %5, align 8
%49 = mul i64 %48, 604800
store i64 %49, ptr %5, align 8
br label %61
50: ; preds = %40
%51 = load i64, ptr %5, align 8
%52 = mul i64 %51, 86400
store i64 %52, ptr %5, align 8
br label %61
53: ; preds = %40
%54 = load i64, ptr %5, align 8
%55 = mul i64 %54, 3600
store i64 %55, ptr %5, align 8
br label %61
56: ; preds = %40
%57 = load i64, ptr %5, align 8
%58 = mul i64 %57, 60
store i64 %58, ptr %5, align 8
br label %61
59: ; preds = %40
br label %61
60: ; preds = %40
store i64 0, ptr %2, align 8
br label %79
61: ; preds = %59, %56, %53, %50, %47, %44
%62 = load i64, ptr %5, align 8
%63 = load i64, ptr %4, align 8
%64 = add i64 %63, %62
store i64 %64, ptr %4, align 8
store i64 0, ptr %5, align 8
br label %66
65: ; preds = %35
br label %70
66: ; preds = %61
br label %67
67: ; preds = %66, %25
%68 = load ptr, ptr %6, align 8
%69 = getelementptr inbounds i8, ptr %68, i32 1
store ptr %69, ptr %6, align 8
br label %8, !llvm.loop !6
70: ; preds = %65, %18
%71 = load i64, ptr %5, align 8
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %77
73: ; preds = %70
%74 = load i64, ptr %5, align 8
%75 = load i64, ptr %4, align 8
%76 = add i64 %75, %74
store i64 %76, ptr %4, align 8
br label %77
77: ; preds = %73, %70
%78 = load i64, ptr %4, align 8
store i64 %78, ptr %2, align 8
br label %79
79: ; preds = %77, %60
%80 = load i64, ptr %2, align 8
ret i64 %80
}
declare i64 @isdigit(i8 noundef zeroext) #1
declare i64 @isalpha(i8 noundef zeroext) #1
declare i32 @tolower(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/tmpev8g7td3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @time_parse(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 0, ptr %5, align 8
store i64 0, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %6, align 8
br label %8
8: ; preds = %67, %1
%9 = load ptr, ptr %6, align 8
%10 = load i8, ptr %9, align 1
%11 = zext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %8
%14 = load ptr, ptr %6, align 8
%15 = load i8, ptr %14, align 1
%16 = zext i8 %15 to i32
%17 = icmp ne i32 %16, 32
br label %18
18: ; preds = %13, %8
%19 = phi i1 [ false, %8 ], [ %17, %13 ]
br i1 %19, label %20, label %.loopexit
20: ; preds = %18
%21 = load ptr, ptr %6, align 8
%22 = load i8, ptr %21, align 1
%23 = call i64 @isdigit(i8 noundef zeroext %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %35
25: ; preds = %20
%26 = load i64, ptr %5, align 8
%27 = mul i64 %26, 10
store i64 %27, ptr %5, align 8
%28 = load ptr, ptr %6, align 8
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = sub nsw i32 %30, 48
%32 = sext i32 %31 to i64
%33 = load i64, ptr %5, align 8
%34 = add i64 %33, %32
store i64 %34, ptr %5, align 8
br label %67
35: ; preds = %20
%36 = load ptr, ptr %6, align 8
%37 = load i8, ptr %36, align 1
%38 = call i64 @isalpha(i8 noundef zeroext %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %65
40: ; preds = %35
%41 = load ptr, ptr %6, align 8
%42 = load i8, ptr %41, align 1
%43 = call i32 @tolower(i8 noundef zeroext %42)
switch i32 %43, label %60 [
i32 121, label %44
i32 119, label %47
i32 100, label %50
i32 104, label %53
i32 109, label %56
i32 115, label %59
]
44: ; preds = %40
%45 = load i64, ptr %5, align 8
%46 = mul i64 %45, 31536000
store i64 %46, ptr %5, align 8
br label %61
47: ; preds = %40
%48 = load i64, ptr %5, align 8
%49 = mul i64 %48, 604800
store i64 %49, ptr %5, align 8
br label %61
50: ; preds = %40
%51 = load i64, ptr %5, align 8
%52 = mul i64 %51, 86400
store i64 %52, ptr %5, align 8
br label %61
53: ; preds = %40
%54 = load i64, ptr %5, align 8
%55 = mul i64 %54, 3600
store i64 %55, ptr %5, align 8
br label %61
56: ; preds = %40
%57 = load i64, ptr %5, align 8
%58 = mul i64 %57, 60
store i64 %58, ptr %5, align 8
br label %61
59: ; preds = %40
br label %61
60: ; preds = %40
store i64 0, ptr %2, align 8
br label %79
61: ; preds = %59, %56, %53, %50, %47, %44
%62 = load i64, ptr %5, align 8
%63 = load i64, ptr %4, align 8
%64 = add i64 %63, %62
store i64 %64, ptr %4, align 8
store i64 0, ptr %5, align 8
br label %66
65: ; preds = %35
br label %70
66: ; preds = %61
br label %67
67: ; preds = %66, %25
%68 = load ptr, ptr %6, align 8
%69 = getelementptr inbounds i8, ptr %68, i32 1
store ptr %69, ptr %6, align 8
br label %8, !llvm.loop !6
.loopexit: ; preds = %18
br label %70
70: ; preds = %.loopexit, %65
%71 = load i64, ptr %5, align 8
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %77
73: ; preds = %70
%74 = load i64, ptr %5, align 8
%75 = load i64, ptr %4, align 8
%76 = add i64 %75, %74
store i64 %76, ptr %4, align 8
br label %77
77: ; preds = %73, %70
%78 = load i64, ptr %4, align 8
store i64 %78, ptr %2, align 8
br label %79
79: ; preds = %77, %60
%80 = load i64, ptr %2, align 8
ret i64 %80
}
declare i64 @isdigit(i8 noundef zeroext) #1
declare i64 @isalpha(i8 noundef zeroext) #1
declare i32 @tolower(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/tmp8g9d2qyg.c'
source_filename = "/tmp/tmp8g9d2qyg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_merge(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%14 = load ptr, ptr %5, align 8
%15 = call i32 @assert(ptr noundef %14)
%16 = load ptr, ptr %7, align 8
%17 = call i32 @assert(ptr noundef %16)
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %8, align 4
%20 = add nsw i32 %18, %19
%21 = zext i32 %20 to i64
%22 = call ptr @llvm.stacksave()
store ptr %22, ptr %9, align 8
%23 = alloca i32, i64 %21, align 16
store i64 %21, ptr %10, align 8
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %24
24: ; preds = %95, %4
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %11, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load i32, ptr %28, align 4
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %12, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = icmp slt i32 %29, %34
br i1 %35, label %36, label %43
36: ; preds = %24
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %11, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %11, align 4
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds i32, ptr %37, i64 %40
%42 = load i32, ptr %41, align 4
br label %50
43: ; preds = %24
%44 = load ptr, ptr %7, align 8
%45 = load i32, ptr %12, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %12, align 4
%47 = sext i32 %45 to i64
%48 = getelementptr inbounds i32, ptr %44, i64 %47
%49 = load i32, ptr %48, align 4
br label %50
50: ; preds = %43, %36
%51 = phi i32 [ %42, %36 ], [ %49, %43 ]
%52 = load i32, ptr %13, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %23, i64 %53
store i32 %51, ptr %54, align 4
%55 = load i32, ptr %11, align 4
%56 = load i32, ptr %6, align 4
%57 = icmp eq i32 %55, %56
br i1 %57, label %58, label %74
58: ; preds = %50
%59 = load i32, ptr %13, align 4
%60 = add nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %23, i64 %61
%63 = load ptr, ptr %7, align 8
%64 = load i32, ptr %12, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %63, i64 %65
%67 = load i32, ptr %8, align 4
%68 = load i32, ptr %12, align 4
%69 = sub nsw i32 %67, %68
%70 = sext i32 %69 to i64
%71 = mul i64 %70, 4
%72 = trunc i64 %71 to i32
%73 = call i32 @memcpy(ptr noundef %62, ptr noundef %66, i32 noundef %72)
br label %98
74: ; preds = %50
%75 = load i32, ptr %12, align 4
%76 = load i32, ptr %8, align 4
%77 = icmp eq i32 %75, %76
br i1 %77, label %78, label %94
78: ; preds = %74
%79 = load i32, ptr %13, align 4
%80 = add nsw i32 %79, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i32, ptr %23, i64 %81
%83 = load ptr, ptr %5, align 8
%84 = load i32, ptr %11, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, ptr %83, i64 %85
%87 = load i32, ptr %6, align 4
%88 = load i32, ptr %11, align 4
%89 = sub nsw i32 %87, %88
%90 = sext i32 %89 to i64
%91 = mul i64 %90, 4
%92 = trunc i64 %91 to i32
%93 = call i32 @memcpy(ptr noundef %82, ptr noundef %86, i32 noundef %92)
br label %98
94: ; preds = %74
br label %95
95: ; preds = %94
%96 = load i32, ptr %13, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %13, align 4
br label %24
98: ; preds = %78, %58
%99 = load ptr, ptr %5, align 8
%100 = load i32, ptr %6, align 4
%101 = load i32, ptr %8, align 4
%102 = add nsw i32 %100, %101
%103 = sext i32 %102 to i64
%104 = mul i64 %103, 4
%105 = trunc i64 %104 to i32
%106 = call i32 @memcpy(ptr noundef %99, ptr noundef %23, i32 noundef %105)
%107 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %107)
ret void
}
declare i32 @assert(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8g9d2qyg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_merge(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%14 = load ptr, ptr %5, align 8
%15 = call i32 @assert(ptr noundef %14)
%16 = load ptr, ptr %7, align 8
%17 = call i32 @assert(ptr noundef %16)
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %8, align 4
%20 = add nsw i32 %18, %19
%21 = zext i32 %20 to i64
%22 = call ptr @llvm.stacksave()
store ptr %22, ptr %9, align 8
%23 = alloca i32, i64 %21, align 16
store i64 %21, ptr %10, align 8
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %24
24: ; preds = %95, %4
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %11, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load i32, ptr %28, align 4
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %12, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = icmp slt i32 %29, %34
br i1 %35, label %36, label %43
36: ; preds = %24
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %11, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %11, align 4
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds i32, ptr %37, i64 %40
%42 = load i32, ptr %41, align 4
br label %50
43: ; preds = %24
%44 = load ptr, ptr %7, align 8
%45 = load i32, ptr %12, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %12, align 4
%47 = sext i32 %45 to i64
%48 = getelementptr inbounds i32, ptr %44, i64 %47
%49 = load i32, ptr %48, align 4
br label %50
50: ; preds = %43, %36
%51 = phi i32 [ %42, %36 ], [ %49, %43 ]
%52 = load i32, ptr %13, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %23, i64 %53
store i32 %51, ptr %54, align 4
%55 = load i32, ptr %11, align 4
%56 = load i32, ptr %6, align 4
%57 = icmp eq i32 %55, %56
br i1 %57, label %58, label %74
58: ; preds = %50
%59 = load i32, ptr %13, align 4
%60 = add nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %23, i64 %61
%63 = load ptr, ptr %7, align 8
%64 = load i32, ptr %12, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %63, i64 %65
%67 = load i32, ptr %8, align 4
%68 = load i32, ptr %12, align 4
%69 = sub nsw i32 %67, %68
%70 = sext i32 %69 to i64
%71 = mul i64 %70, 4
%72 = trunc i64 %71 to i32
%73 = call i32 @memcpy(ptr noundef %62, ptr noundef %66, i32 noundef %72)
br label %98
74: ; preds = %50
%75 = load i32, ptr %12, align 4
%76 = load i32, ptr %8, align 4
%77 = icmp eq i32 %75, %76
br i1 %77, label %78, label %94
78: ; preds = %74
%79 = load i32, ptr %13, align 4
%80 = add nsw i32 %79, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i32, ptr %23, i64 %81
%83 = load ptr, ptr %5, align 8
%84 = load i32, ptr %11, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, ptr %83, i64 %85
%87 = load i32, ptr %6, align 4
%88 = load i32, ptr %11, align 4
%89 = sub nsw i32 %87, %88
%90 = sext i32 %89 to i64
%91 = mul i64 %90, 4
%92 = trunc i64 %91 to i32
%93 = call i32 @memcpy(ptr noundef %82, ptr noundef %86, i32 noundef %92)
br label %98
94: ; preds = %74
br label %95
95: ; preds = %94
%96 = load i32, ptr %13, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %13, align 4
br label %24
98: ; preds = %78, %58
%99 = load ptr, ptr %5, align 8
%100 = load i32, ptr %6, align 4
%101 = load i32, ptr %8, align 4
%102 = add nsw i32 %100, %101
%103 = sext i32 %102 to i64
%104 = mul i64 %103, 4
%105 = trunc i64 %104 to i32
%106 = call i32 @memcpy(ptr noundef %99, ptr noundef %23, i32 noundef %105)
%107 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %107)
ret void
}
declare i32 @assert(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiej837k1.c'
source_filename = "/tmp/tmpiej837k1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strncpyx(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i64 @strlen(ptr noundef %8)
store i64 %9, ptr %7, align 8
%10 = load i64, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %13, label %15
13: ; preds = %3
%14 = load i64, ptr %6, align 8
store i64 %14, ptr %7, align 8
br label %15
15: ; preds = %13, %3
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %5, align 8
%18 = load i64, ptr %7, align 8
%19 = call i32 @memcpy(ptr noundef %16, ptr noundef %17, i64 noundef %18)
%20 = load i64, ptr %7, align 8
%21 = load i64, ptr %6, align 8
%22 = icmp ne i64 %20, %21
br i1 %22, label %23, label %27
23: ; preds = %15
%24 = load ptr, ptr %4, align 8
%25 = load i64, ptr %7, align 8
%26 = getelementptr inbounds i8, ptr %24, i64 %25
store i8 0, ptr %26, align 1
br label %27
27: ; preds = %23, %15
%28 = load ptr, ptr %4, align 8
ret ptr %28
}
declare i64 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiej837k1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strncpyx(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i64 @strlen(ptr noundef %8)
store i64 %9, ptr %7, align 8
%10 = load i64, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %13, label %15
13: ; preds = %3
%14 = load i64, ptr %6, align 8
store i64 %14, ptr %7, align 8
br label %15
15: ; preds = %13, %3
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %5, align 8
%18 = load i64, ptr %7, align 8
%19 = call i32 @memcpy(ptr noundef %16, ptr noundef %17, i64 noundef %18)
%20 = load i64, ptr %7, align 8
%21 = load i64, ptr %6, align 8
%22 = icmp ne i64 %20, %21
br i1 %22, label %23, label %27
23: ; preds = %15
%24 = load ptr, ptr %4, align 8
%25 = load i64, ptr %7, align 8
%26 = getelementptr inbounds i8, ptr %24, i64 %25
store i8 0, ptr %26, align 1
br label %27
27: ; preds = %23, %15
%28 = load ptr, ptr %4, align 8
ret ptr %28
}
declare i64 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2oy1_pq0.c'
source_filename = "/tmp/tmp2oy1_pq0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGKILL = 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/tmp2oy1_pq0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGKILL = 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/tmpafd8xqbv.c'
source_filename = "/tmp/tmpafd8xqbv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@tvheadend_dataroot.cwd = internal global [256 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @tvheadend_dataroot() #0 {
%1 = load i8, ptr @tvheadend_dataroot.cwd, align 16
%2 = icmp ne i8 %1, 0
br i1 %2, label %7, label %3
3: ; preds = %0
%4 = call i32 @getcwd(ptr noundef @tvheadend_dataroot.cwd, i32 noundef 254)
%5 = call i32 @assert(i32 noundef %4)
%6 = call i32 @strcat(ptr noundef @tvheadend_dataroot.cwd, ptr noundef @.str)
br label %7
7: ; preds = %3, %0
ret ptr @tvheadend_dataroot.cwd
}
declare i32 @assert(i32 noundef) #1
declare i32 @getcwd(ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpafd8xqbv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@tvheadend_dataroot.cwd = internal global [256 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @tvheadend_dataroot() #0 {
%1 = load i8, ptr @tvheadend_dataroot.cwd, align 16
%2 = icmp ne i8 %1, 0
br i1 %2, label %7, label %3
3: ; preds = %0
%4 = call i32 @getcwd(ptr noundef @tvheadend_dataroot.cwd, i32 noundef 254)
%5 = call i32 @assert(i32 noundef %4)
%6 = call i32 @strcat(ptr noundef @tvheadend_dataroot.cwd, ptr noundef @.str)
br label %7
7: ; preds = %3, %0
ret ptr @tvheadend_dataroot.cwd
}
declare i32 @assert(i32 noundef) #1
declare i32 @getcwd(ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf_co557k.c'
source_filename = "/tmp/tmpf_co557k.c"
target datalayout = "e-m:e-p270: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/tmpf_co557k.c"
target datalayout = "e-m:e-p270: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/tmpvvnm8lgp.c'
source_filename = "/tmp/tmpvvnm8lgp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @img_getpixel1i(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [3 x i32], align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = load ptr, ptr %8, align 8
%14 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 0
%15 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 0
%16 = getelementptr inbounds i32, ptr %15, i64 1
%17 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 0
%18 = getelementptr inbounds i32, ptr %17, i64 2
%19 = call i32 @img_getpixel4i(ptr noundef %10, i32 noundef %11, i32 noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %16, ptr noundef %18)
ret void
}
declare i32 @img_getpixel4i(ptr noundef, i32 noundef, i32 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/tmpvvnm8lgp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @img_getpixel1i(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [3 x i32], align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = load ptr, ptr %8, align 8
%14 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 0
%15 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 0
%16 = getelementptr inbounds i32, ptr %15, i64 1
%17 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 0
%18 = getelementptr inbounds i32, ptr %17, i64 2
%19 = call i32 @img_getpixel4i(ptr noundef %10, i32 noundef %11, i32 noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %16, ptr noundef %18)
ret void
}
declare i32 @img_getpixel4i(ptr noundef, i32 noundef, i32 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/tmp2sew75p8.c'
source_filename = "/tmp/tmp2sew75p8.c"
target datalayout = "e-m:e-p270: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/tmp2sew75p8.c"
target datalayout = "e-m:e-p270: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/tmpz3d07pjp.c'
source_filename = "/tmp/tmpz3d07pjp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mjson_get_string(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %8, align 4
%16 = load ptr, ptr %9, align 8
%17 = call i32 @mjson_find(ptr noundef %14, i32 noundef %15, ptr noundef %16, ptr noundef %12, ptr noundef %13)
%18 = icmp ne i32 %17, 11
br i1 %18, label %19, label %20
19: ; preds = %5
store i32 -1, ptr %6, align 4
br label %28
20: ; preds = %5
%21 = load ptr, ptr %12, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 1
%23 = load i32, ptr %13, align 4
%24 = sub nsw i32 %23, 2
%25 = load ptr, ptr %10, align 8
%26 = load i32, ptr %11, align 4
%27 = call i32 @mjson_unescape(ptr noundef %22, i32 noundef %24, ptr noundef %25, i32 noundef %26)
store i32 %27, ptr %6, align 4
br label %28
28: ; preds = %20, %19
%29 = load i32, ptr %6, align 4
ret i32 %29
}
declare i32 @mjson_find(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @mjson_unescape(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz3d07pjp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mjson_get_string(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %8, align 4
%16 = load ptr, ptr %9, align 8
%17 = call i32 @mjson_find(ptr noundef %14, i32 noundef %15, ptr noundef %16, ptr noundef %12, ptr noundef %13)
%18 = icmp ne i32 %17, 11
br i1 %18, label %19, label %20
19: ; preds = %5
store i32 -1, ptr %6, align 4
br label %28
20: ; preds = %5
%21 = load ptr, ptr %12, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 1
%23 = load i32, ptr %13, align 4
%24 = sub nsw i32 %23, 2
%25 = load ptr, ptr %10, align 8
%26 = load i32, ptr %11, align 4
%27 = call i32 @mjson_unescape(ptr noundef %22, i32 noundef %24, ptr noundef %25, i32 noundef %26)
store i32 %27, ptr %6, align 4
br label %28
28: ; preds = %20, %19
%29 = load i32, ptr %6, align 4
ret i32 %29
}
declare i32 @mjson_find(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @mjson_unescape(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp45xrw8xq.c'
source_filename = "/tmp/tmp45xrw8xq.c"
target datalayout = "e-m:e-p270: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.x = private unnamed_addr constant [12 x float] [float 1.000000e+00, float 2.000000e+00, float 0x7FF8000000000000, float 3.000000e+00, float 0x7FF8000000000000, float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 0x7FF8000000000000, float 7.000000e+00, float 8.000000e+00, float 0x7FF8000000000000], align 16
@.str = private unnamed_addr constant [21 x i8] c"sample variance: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [12 x float], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.x, i64 48, i1 false)
store i32 6, ptr %2, align 4
store i32 2, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [12 x float], ptr %1, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call float @stdlib_strided_snanvariancetk(i32 noundef %5, float noundef 1.000000e+00, ptr noundef %6, i32 noundef %7)
store float %8, ptr %4, align 4
%9 = load float, ptr %4, align 4
%10 = call i32 @printf(ptr noundef @.str, float noundef %9)
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 float @stdlib_strided_snanvariancetk(i32 noundef, float noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, float 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/tmp45xrw8xq.c"
target datalayout = "e-m:e-p270: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.x = private unnamed_addr constant [12 x float] [float 1.000000e+00, float 2.000000e+00, float 0x7FF8000000000000, float 3.000000e+00, float 0x7FF8000000000000, float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 0x7FF8000000000000, float 7.000000e+00, float 8.000000e+00, float 0x7FF8000000000000], align 16
@.str = private unnamed_addr constant [21 x i8] c"sample variance: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [12 x float], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.x, i64 48, i1 false)
store i32 6, ptr %2, align 4
store i32 2, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [12 x float], ptr %1, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call float @stdlib_strided_snanvariancetk(i32 noundef %5, float noundef 1.000000e+00, ptr noundef %6, i32 noundef %7)
store float %8, ptr %4, align 4
%9 = load float, ptr %4, align 4
%10 = call i32 @printf(ptr noundef @.str, float noundef %9)
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 float @stdlib_strided_snanvariancetk(i32 noundef, float noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, float 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/tmpw916f82y.c'
source_filename = "/tmp/tmpw916f82y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @t5() #0 {
%1 = call ptr (...) @ptr()
%2 = call i32 @free(ptr noundef %1)
ret void
}
declare i32 @free(ptr noundef) #1
declare ptr @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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw916f82y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @t5() #0 {
%1 = call ptr (...) @ptr()
%2 = call i32 @free(ptr noundef %1)
ret void
}
declare i32 @free(ptr noundef) #1
declare ptr @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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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.