llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpy9ceyv11.c'
source_filename = "/tmp/tmpy9ceyv11.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@usage.msg = internal global [5 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr null], align 16
@.str = private unnamed_addr constant [45 x i8] c" [ -d < displayname > ] X server to contact\00", align 1
@.str.1 = private unnamed_addr constant [53 x i8] c" [ -g < geometry > ] size and location of window\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c" [ -t x ] test X11 connection\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"usage: corner [-options ...]\0A\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"where options include:\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = alloca ptr, align 8
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store ptr @usage.msg, ptr %1, align 8
br label %4
4: ; preds = %12, %0
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %5, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %15
8: ; preds = %4
%9 = load ptr, ptr %1, align 8
%10 = load ptr, ptr %9, align 8
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %10)
br label %12
12: ; preds = %8
%13 = load ptr, ptr %1, align 8
%14 = getelementptr inbounds ptr, ptr %13, i32 1
store ptr %14, ptr %1, align 8
br label %4, !llvm.loop !6
15: ; preds = %4
%16 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy9ceyv11.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@usage.msg = internal global [5 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr null], align 16
@.str = private unnamed_addr constant [45 x i8] c" [ -d < displayname > ] X server to contact\00", align 1
@.str.1 = private unnamed_addr constant [53 x i8] c" [ -g < geometry > ] size and location of window\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c" [ -t x ] test X11 connection\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"usage: corner [-options ...]\0A\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"where options include:\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = alloca ptr, align 8
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store ptr @usage.msg, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = load ptr, ptr %4, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %.lr.ph, label %17
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %11
%8 = load ptr, ptr %1, align 8
%9 = load ptr, ptr %8, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %9)
br label %11
11: ; preds = %7
%12 = load ptr, ptr %1, align 8
%13 = getelementptr inbounds ptr, ptr %12, i32 1
store ptr %13, ptr %1, align 8
%14 = load ptr, ptr %1, align 8
%15 = load ptr, ptr %14, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %17
17: ; preds = %._crit_edge, %0
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxjkgkv7f.c'
source_filename = "/tmp/tmpxjkgkv7f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AURAE_Script_Syntax_Find_Extented(ptr noundef %0, i8 noundef signext %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i8 %1, ptr %7, align 1
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%10 = load i8, ptr %7, align 1
%11 = sext i8 %10 to i32
%12 = icmp sgt i32 %11, 32
br i1 %12, label %13, label %24
13: ; preds = %4
%14 = load i8, ptr %7, align 1
%15 = load ptr, ptr %9, align 8
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %16, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %15, i64 %18
store i8 %14, ptr %19, align 1
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %20, align 4
%22 = add nsw i32 %21, 1
%23 = load ptr, ptr %6, align 8
store i32 %22, ptr %23, align 4
br label %43
24: ; preds = %4
%25 = load ptr, ptr %9, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %26, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
store i8 0, ptr %29, align 1
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %30, align 4
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %41
33: ; preds = %24
%34 = load ptr, ptr %6, align 8
store i32 0, ptr %34, align 4
%35 = load ptr, ptr %8, align 8
%36 = load ptr, ptr %9, align 8
%37 = call i64 @strcmp(ptr noundef %35, ptr noundef %36)
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %33
store i32 1, ptr %5, align 4
br label %44
40: ; preds = %33
br label %41
41: ; preds = %40, %24
%42 = load ptr, ptr %6, align 8
store i32 0, ptr %42, align 4
br label %43
43: ; preds = %41, %13
store i32 0, ptr %5, align 4
br label %44
44: ; preds = %43, %39
%45 = load i32, ptr %5, align 4
ret i32 %45
}
declare i64 @strcmp(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/tmpxjkgkv7f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AURAE_Script_Syntax_Find_Extented(ptr noundef %0, i8 noundef signext %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i8 %1, ptr %7, align 1
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%10 = load i8, ptr %7, align 1
%11 = sext i8 %10 to i32
%12 = icmp sgt i32 %11, 32
br i1 %12, label %13, label %24
13: ; preds = %4
%14 = load i8, ptr %7, align 1
%15 = load ptr, ptr %9, align 8
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %16, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %15, i64 %18
store i8 %14, ptr %19, align 1
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %20, align 4
%22 = add nsw i32 %21, 1
%23 = load ptr, ptr %6, align 8
store i32 %22, ptr %23, align 4
br label %43
24: ; preds = %4
%25 = load ptr, ptr %9, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %26, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
store i8 0, ptr %29, align 1
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %30, align 4
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %41
33: ; preds = %24
%34 = load ptr, ptr %6, align 8
store i32 0, ptr %34, align 4
%35 = load ptr, ptr %8, align 8
%36 = load ptr, ptr %9, align 8
%37 = call i64 @strcmp(ptr noundef %35, ptr noundef %36)
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %33
store i32 1, ptr %5, align 4
br label %44
40: ; preds = %33
br label %41
41: ; preds = %40, %24
%42 = load ptr, ptr %6, align 8
store i32 0, ptr %42, align 4
br label %43
43: ; preds = %41, %13
store i32 0, ptr %5, align 4
br label %44
44: ; preds = %43, %39
%45 = load i32, ptr %5, align 4
ret i32 %45
}
declare i64 @strcmp(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/tmpwn3punia.c'
source_filename = "/tmp/tmpwn3punia.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ADCIntClearEx(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = add nsw i64 %6, 12
%8 = inttoptr i64 %7 to ptr
store volatile i64 %5, ptr %8, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwn3punia.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ADCIntClearEx(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = add nsw i64 %6, 12
%8 = inttoptr i64 %7 to ptr
store volatile i64 %5, ptr %8, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqj4ok28z.c'
source_filename = "/tmp/tmpqj4ok28z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"dmeanli\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca 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 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
br label %11
11: ; preds = %41, %0
%12 = load i32, ptr %6, align 4
%13 = icmp sle i32 %12, 6
br i1 %13, label %14, label %44
14: ; preds = %11
%15 = load i32, ptr %6, align 4
%16 = call i32 @pow(i32 noundef 10, i32 noundef %15)
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 1
%19 = call i32 @pow(i32 noundef 10, i32 noundef %18)
%20 = sdiv i32 1000000, %19
store i32 %20, ptr %4, align 4
store i32 0, ptr %7, align 4
br label %21
21: ; preds = %37, %14
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 3
br i1 %23, label %24, label %40
24: ; preds = %21
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %5, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %27)
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %5, align 4
%31 = call double @benchmark(i32 noundef %29, i32 noundef %30)
store double %31, ptr %2, align 8
%32 = load i32, ptr %4, align 4
%33 = load double, ptr %2, align 8
%34 = call i32 @print_results(i32 noundef %32, double noundef %33)
%35 = load i32, ptr %3, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %35)
br label %37
37: ; preds = %24
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
br label %21, !llvm.loop !6
40: ; preds = %21
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %11, !llvm.loop !8
44: ; preds = %11
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %3, align 4
%47 = call i32 @print_summary(i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %1, align 4
ret i32 %48
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqj4ok28z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"dmeanli\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca 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 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %11, 6
br i1 %12, label %.lr.ph2, label %46
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %41
%14 = load i32, ptr %6, align 4
%15 = call i32 @pow(i32 noundef 10, i32 noundef %14)
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %16, 1
%18 = call i32 @pow(i32 noundef 10, i32 noundef %17)
%19 = sdiv i32 1000000, %18
store i32 %19, ptr %4, align 4
store i32 0, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %.lr.ph, label %40
.lr.ph: ; preds = %13
br label %22
22: ; preds = %.lr.ph, %35
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
%25 = load i32, ptr %5, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %25)
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %5, align 4
%29 = call double @benchmark(i32 noundef %27, i32 noundef %28)
store double %29, ptr %2, align 8
%30 = load i32, ptr %4, align 4
%31 = load double, ptr %2, align 8
%32 = call i32 @print_results(i32 noundef %30, double noundef %31)
%33 = load i32, ptr %3, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %33)
br label %35
35: ; preds = %22
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %38, 3
br i1 %39, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %40
40: ; preds = %._crit_edge, %13
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp sle i32 %44, 6
br i1 %45, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %0
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %3, align 4
%49 = call i32 @print_summary(i32 noundef %47, i32 noundef %48)
%50 = load i32, ptr %1, align 4
ret i32 %50
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpp_3i71jf.c'
source_filename = "/tmp/tmpp_3i71jf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTHREAD_CANCEL_ENABLE = 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/tmpp_3i71jf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTHREAD_CANCEL_ENABLE = 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/tmp2x6qi0vz.c'
source_filename = "/tmp/tmp2x6qi0vz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ok\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"exit\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @func1(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @syscall_vga_print_hex(i32 noundef %4)
%6 = call i32 @syscall_vga_print_str(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %17, %1
%8 = load i32, ptr %3, align 4
%9 = icmp ult i32 %8, 200000
br i1 %9, label %10, label %20
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = urem i32 %11, 5000
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @syscall_vga_print_str(ptr noundef @.str.1)
br label %16
16: ; preds = %14, %10
br label %17
17: ; preds = %16
%18 = load i32, ptr %3, align 4
%19 = add i32 %18, 1
store i32 %19, ptr %3, align 4
br label %7, !llvm.loop !6
20: ; preds = %7
%21 = call i32 @syscall_vga_print_str(ptr noundef @.str.2)
%22 = call i32 (...) @syscall_thread_exit()
ret void
}
declare i32 @syscall_vga_print_hex(i32 noundef) #1
declare i32 @syscall_vga_print_str(ptr noundef) #1
declare i32 @syscall_thread_exit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp2x6qi0vz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ok\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"exit\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @func1(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @syscall_vga_print_hex(i32 noundef %4)
%6 = call i32 @syscall_vga_print_str(ptr noundef @.str)
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp ult i32 %7, 200000
br i1 %8, label %.lr.ph, label %21
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %16
%10 = load i32, ptr %3, align 4
%11 = urem i32 %10, 5000
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = call i32 @syscall_vga_print_str(ptr noundef @.str.1)
br label %15
15: ; preds = %13, %9
br label %16
16: ; preds = %15
%17 = load i32, ptr %3, align 4
%18 = add i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp ult i32 %19, 200000
br i1 %20, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %21
21: ; preds = %._crit_edge, %1
%22 = call i32 @syscall_vga_print_str(ptr noundef @.str.2)
%23 = call i32 (...) @syscall_thread_exit()
ret void
}
declare i32 @syscall_vga_print_hex(i32 noundef) #1
declare i32 @syscall_vga_print_str(ptr noundef) #1
declare i32 @syscall_thread_exit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp3v3qzrgw.c'
source_filename = "/tmp/tmp3v3qzrgw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Test FAILED, pthread_rwlockattr_init() returns %d\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [55 x i8] c"process-shared attribute is not available for testing\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @pthread_rwlockattr_init(ptr noundef %2)
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = load i32, ptr %3, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
store i32 1, ptr %1, align 4
br label %13
10: ; preds = %0
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.1)
store i32 4, ptr %1, align 4
br label %13
13: ; preds = %10, %7
%14 = load i32, ptr %1, align 4
ret i32 %14
}
declare i32 @pthread_rwlockattr_init(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3v3qzrgw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Test FAILED, pthread_rwlockattr_init() returns %d\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [55 x i8] c"process-shared attribute is not available for testing\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @pthread_rwlockattr_init(ptr noundef %2)
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = load i32, ptr %3, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
store i32 1, ptr %1, align 4
br label %13
10: ; preds = %0
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.1)
store i32 4, ptr %1, align 4
br label %13
13: ; preds = %10, %7
%14 = load i32, ptr %1, align 4
ret i32 %14
}
declare i32 @pthread_rwlockattr_init(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp739tq2fd.c'
source_filename = "/tmp/tmp739tq2fd.c"
target datalayout = "e-m:e-p270: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.sembuf = type { i32, i32, i32 }
@SEM_UNDO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @semaphore_up(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [1 x %struct.sembuf], align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = getelementptr inbounds [1 x %struct.sembuf], ptr %5, i64 0, i64 0
%8 = getelementptr inbounds %struct.sembuf, ptr %7, i32 0, i32 0
store i32 %6, ptr %8, align 4
%9 = getelementptr inbounds [1 x %struct.sembuf], ptr %5, i64 0, i64 0
%10 = getelementptr inbounds %struct.sembuf, ptr %9, i32 0, i32 1
store i32 1, ptr %10, align 4
%11 = load i32, ptr @SEM_UNDO, align 4
%12 = getelementptr inbounds [1 x %struct.sembuf], ptr %5, i64 0, i64 0
%13 = getelementptr inbounds %struct.sembuf, ptr %12, i32 0, i32 2
store i32 %11, ptr %13, align 4
%14 = load i32, ptr %3, align 4
%15 = getelementptr inbounds [1 x %struct.sembuf], ptr %5, i64 0, i64 0
%16 = call i32 @semop(i32 noundef %14, ptr noundef %15, i32 noundef 1)
ret i32 %16
}
declare i32 @semop(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/tmp739tq2fd.c"
target datalayout = "e-m:e-p270: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.sembuf = type { i32, i32, i32 }
@SEM_UNDO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @semaphore_up(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [1 x %struct.sembuf], align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = getelementptr inbounds [1 x %struct.sembuf], ptr %5, i64 0, i64 0
%8 = getelementptr inbounds %struct.sembuf, ptr %7, i32 0, i32 0
store i32 %6, ptr %8, align 4
%9 = getelementptr inbounds [1 x %struct.sembuf], ptr %5, i64 0, i64 0
%10 = getelementptr inbounds %struct.sembuf, ptr %9, i32 0, i32 1
store i32 1, ptr %10, align 4
%11 = load i32, ptr @SEM_UNDO, align 4
%12 = getelementptr inbounds [1 x %struct.sembuf], ptr %5, i64 0, i64 0
%13 = getelementptr inbounds %struct.sembuf, ptr %12, i32 0, i32 2
store i32 %11, ptr %13, align 4
%14 = load i32, ptr %3, align 4
%15 = getelementptr inbounds [1 x %struct.sembuf], ptr %5, i64 0, i64 0
%16 = call i32 @semop(i32 noundef %14, ptr noundef %15, i32 noundef 1)
ret i32 %16
}
declare i32 @semop(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/tmpi_qtptym.c'
source_filename = "/tmp/tmpi_qtptym.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"inp.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%f \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 ptr, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 10000, ptr %3, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef @.str.2, i32 noundef %7)
%9 = load ptr, ptr %4, align 8
%10 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef @.str.3)
store i32 0, ptr %2, align 4
br label %11
11: ; preds = %27, %0
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %30
15: ; preds = %11
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %2, align 4
%18 = sitofp i32 %17 to float
%19 = fpext float %18 to double
%20 = fmul double 1.000000e-02, %19
%21 = load i32, ptr %3, align 4
%22 = sitofp i32 %21 to float
%23 = fpext float %22 to double
%24 = fdiv double %20, %23
%25 = fadd double 1.000000e+00, %24
%26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef @.str.4, double noundef %25)
br label %27
27: ; preds = %15
%28 = load i32, ptr %2, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %2, align 4
br label %11, !llvm.loop !6
30: ; preds = %11
%31 = load ptr, ptr %4, align 8
%32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.3)
store i32 0, ptr %2, align 4
br label %33
33: ; preds = %49, %30
%34 = load i32, ptr %2, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %52
37: ; preds = %33
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %2, align 4
%40 = sitofp i32 %39 to float
%41 = fpext float %40 to double
%42 = fmul double 1.000000e+01, %41
%43 = load i32, ptr %3, align 4
%44 = sitofp i32 %43 to float
%45 = fpext float %44 to double
%46 = fdiv double %42, %45
%47 = fadd double 1.000000e+02, %46
%48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.4, double noundef %47)
br label %49
49: ; preds = %37
%50 = load i32, ptr %2, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %2, align 4
br label %33, !llvm.loop !8
52: ; preds = %33
%53 = load ptr, ptr %4, align 8
%54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.3)
%55 = load ptr, ptr %4, align 8
%56 = call i32 @fclose(ptr noundef %55)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr 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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi_qtptym.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"inp.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%f \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 ptr, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 10000, ptr %3, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef @.str.2, i32 noundef %7)
%9 = load ptr, ptr %4, align 8
%10 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef @.str.3)
store i32 0, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %32
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %26
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %2, align 4
%17 = sitofp i32 %16 to float
%18 = fpext float %17 to double
%19 = fmul double 1.000000e-02, %18
%20 = load i32, ptr %3, align 4
%21 = sitofp i32 %20 to float
%22 = fpext float %21 to double
%23 = fdiv double %19, %22
%24 = fadd double 1.000000e+00, %23
%25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef @.str.4, double noundef %24)
br label %26
26: ; preds = %14
%27 = load i32, ptr %2, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %2, align 4
%29 = load i32, ptr %2, align 4
%30 = load i32, ptr %3, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %0
%33 = load ptr, ptr %4, align 8
%34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.3)
store i32 0, ptr %2, align 4
%35 = load i32, ptr %2, align 4
%36 = load i32, ptr %3, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %.lr.ph2, label %56
.lr.ph2: ; preds = %32
br label %38
38: ; preds = %.lr.ph2, %50
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %2, align 4
%41 = sitofp i32 %40 to float
%42 = fpext float %41 to double
%43 = fmul double 1.000000e+01, %42
%44 = load i32, ptr %3, align 4
%45 = sitofp i32 %44 to float
%46 = fpext float %45 to double
%47 = fdiv double %43, %46
%48 = fadd double 1.000000e+02, %47
%49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.4, double noundef %48)
br label %50
50: ; preds = %38
%51 = load i32, ptr %2, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %2, align 4
%53 = load i32, ptr %2, align 4
%54 = load i32, ptr %3, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %38, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %56
56: ; preds = %._crit_edge3, %32
%57 = load ptr, ptr %4, align 8
%58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.3)
%59 = load ptr, ptr %4, align 8
%60 = call i32 @fclose(ptr noundef %59)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr 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}
|
; ModuleID = '/tmp/tmphza_7imj.c'
source_filename = "/tmp/tmphza_7imj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"I'm gonna rock your world!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hit() #0 {
%1 = call i32 @say_stop(ptr noundef @.str, i32 noundef 1)
ret void
}
declare i32 @say_stop(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/tmphza_7imj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"I'm gonna rock your world!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hit() #0 {
%1 = call i32 @say_stop(ptr noundef @.str, i32 noundef 1)
ret void
}
declare i32 @say_stop(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/tmpsmv7lzdt.c'
source_filename = "/tmp/tmpsmv7lzdt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Digite a sua nota da apol %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Total: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %22, %0
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 5
br i1 %7, label %8, label %25
8: ; preds = %5
%9 = load i32, ptr %4, align 4
%10 = add nsw i32 %9, 1
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %13
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %14)
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, %19
store i32 %21, ptr %3, align 4
br label %22
22: ; preds = %8
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
br label %5, !llvm.loop !6
25: ; preds = %5
%26 = load i32, ptr %3, align 4
%27 = call i32 @printf(ptr noundef @.str.2, i32 noundef %26)
%28 = load i32, ptr %1, align 4
ret i32 %28
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsmv7lzdt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Digite a sua nota da apol %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Total: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp slt i32 %5, 5
br i1 %6, label %.lr.ph, label %26
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %21
%8 = load i32, ptr %4, align 4
%9 = add nsw i32 %8, 1
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %9)
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %12
%14 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %13)
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, %18
store i32 %20, ptr %3, align 4
br label %21
21: ; preds = %7
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %24, 5
br i1 %25, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %26
26: ; preds = %._crit_edge, %0
%27 = load i32, ptr %3, align 4
%28 = call i32 @printf(ptr noundef @.str.2, i32 noundef %27)
%29 = load i32, ptr %1, align 4
ret i32 %29
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8_l_rmxj.c'
source_filename = "/tmp/tmp8_l_rmxj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_drop_prefix(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i64 @strlen(ptr noundef %7)
store i64 %8, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i64, ptr %6, align 8
%12 = call i64 @strncmp(ptr noundef %9, ptr noundef %10, i64 noundef %11)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %6, align 8
%17 = getelementptr inbounds i8, ptr %15, i64 %16
store ptr %17, ptr %3, align 8
br label %19
18: ; preds = %2
store ptr null, ptr %3, align 8
br label %19
19: ; preds = %18, %14
%20 = load ptr, ptr %3, align 8
ret ptr %20
}
declare i64 @strlen(ptr noundef) #1
declare i64 @strncmp(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/tmp8_l_rmxj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_drop_prefix(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i64 @strlen(ptr noundef %7)
store i64 %8, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i64, ptr %6, align 8
%12 = call i64 @strncmp(ptr noundef %9, ptr noundef %10, i64 noundef %11)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %6, align 8
%17 = getelementptr inbounds i8, ptr %15, i64 %16
store ptr %17, ptr %3, align 8
br label %19
18: ; preds = %2
store ptr null, ptr %3, align 8
br label %19
19: ; preds = %18, %14
%20 = load ptr, ptr %3, align 8
ret ptr %20
}
declare i64 @strlen(ptr noundef) #1
declare i64 @strncmp(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/tmpnhm1rtzd.c'
source_filename = "/tmp/tmpnhm1rtzd.c"
target datalayout = "e-m:e-p270: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/tmpnhm1rtzd.c"
target datalayout = "e-m:e-p270: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/tmp5i4il5l2.c'
source_filename = "/tmp/tmp5i4il5l2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter a number ? \00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"Binary version = %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Result = %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"Hex = %X\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 [17 x i8], align 16
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (...) @getInteger()
store i32 %6, ptr %2, align 4
%7 = getelementptr inbounds [17 x i8], ptr %4, i64 0, i64 0
%8 = load i32, ptr %2, align 4
%9 = call i32 @toBinaryString(ptr noundef %7, i32 noundef %8)
%10 = getelementptr inbounds [17 x i8], ptr %4, i64 0, i64 0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %10)
%12 = getelementptr inbounds [17 x i8], ptr %4, i64 0, i64 0
%13 = call i32 @binaryStringToInteger(ptr noundef %12)
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %14)
%16 = load i32, ptr %3, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %16)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getInteger(...) #1
declare i32 @toBinaryString(ptr noundef, i32 noundef) #1
declare i32 @binaryStringToInteger(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/tmp5i4il5l2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter a number ? \00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"Binary version = %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Result = %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"Hex = %X\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 [17 x i8], align 16
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (...) @getInteger()
store i32 %6, ptr %2, align 4
%7 = getelementptr inbounds [17 x i8], ptr %4, i64 0, i64 0
%8 = load i32, ptr %2, align 4
%9 = call i32 @toBinaryString(ptr noundef %7, i32 noundef %8)
%10 = getelementptr inbounds [17 x i8], ptr %4, i64 0, i64 0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %10)
%12 = getelementptr inbounds [17 x i8], ptr %4, i64 0, i64 0
%13 = call i32 @binaryStringToInteger(ptr noundef %12)
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %14)
%16 = load i32, ptr %3, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %16)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getInteger(...) #1
declare i32 @toBinaryString(ptr noundef, i32 noundef) #1
declare i32 @binaryStringToInteger(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/tmpcybjigvt.c'
source_filename = "/tmp/tmpcybjigvt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"afs\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"fsopen\00", align 1
@FSCONFIG_SET_STRING = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"source\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"#grand.central.org:root.cell.\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"create\00", align 1
@FSCONFIG_CMD_CREATE = dso_local global i32 0, align 4
@MOUNT_ATTR_RDONLY = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [8 x i8] c"fsmount\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"close(fsfd)\00", align 1
@.str.7 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@AT_FDCWD = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [5 x i8] c"/mnt\00", align 1
@MOVE_MOUNT_F_EMPTY_PATH = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [11 x i8] c"move_mount\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"close(mfd)\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @fsopen(ptr noundef @.str, i32 noundef 0)
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = call i32 @perror(ptr noundef @.str.1)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %2
br label %15
15: ; preds = %14
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr @FSCONFIG_SET_STRING, align 4
%18 = call i32 @fsconfig(i32 noundef %16, i32 noundef %17, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 0)
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %23
20: ; preds = %15
%21 = load i32, ptr %6, align 4
%22 = call i32 @mount_error(i32 noundef %21, ptr noundef @.str.2)
br label %23
23: ; preds = %20, %15
br label %24
24: ; preds = %23
br label %25
25: ; preds = %24
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr @FSCONFIG_CMD_CREATE, align 4
%28 = call i32 @fsconfig(i32 noundef %26, i32 noundef %27, ptr noundef null, ptr noundef null, i32 noundef 0)
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %33
30: ; preds = %25
%31 = load i32, ptr %6, align 4
%32 = call i32 @mount_error(i32 noundef %31, ptr noundef @.str.4)
br label %33
33: ; preds = %30, %25
br label %34
34: ; preds = %33
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr @MOUNT_ATTR_RDONLY, align 4
%37 = call i32 @fsmount(i32 noundef %35, i32 noundef 0, i32 noundef %36)
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %34
%41 = load i32, ptr %6, align 4
%42 = call i32 @mount_error(i32 noundef %41, ptr noundef @.str.5)
br label %43
43: ; preds = %40, %34
br label %44
44: ; preds = %43
%45 = load i32, ptr %6, align 4
%46 = call i32 @close(i32 noundef %45)
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %51
48: ; preds = %44
%49 = call i32 @perror(ptr noundef @.str.6)
%50 = call i32 @exit(i32 noundef 1) #3
unreachable
51: ; preds = %44
br label %52
52: ; preds = %51
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr @AT_FDCWD, align 4
%55 = load i32, ptr @MOVE_MOUNT_F_EMPTY_PATH, align 4
%56 = call i64 @move_mount(i32 noundef %53, ptr noundef @.str.7, i32 noundef %54, ptr noundef @.str.8, i32 noundef %55)
%57 = icmp slt i64 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %52
%59 = call i32 @perror(ptr noundef @.str.9)
%60 = call i32 @exit(i32 noundef 1) #3
unreachable
61: ; preds = %52
br label %62
62: ; preds = %61
%63 = load i32, ptr %7, align 4
%64 = call i32 @close(i32 noundef %63)
%65 = icmp eq i32 %64, -1
br i1 %65, label %66, label %69
66: ; preds = %62
%67 = call i32 @perror(ptr noundef @.str.10)
%68 = call i32 @exit(i32 noundef 1) #3
unreachable
69: ; preds = %62
br label %70
70: ; preds = %69
%71 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fsopen(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fsconfig(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @mount_error(i32 noundef, ptr noundef) #1
declare i32 @fsmount(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i64 @move_mount(i32 noundef, 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" }
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/tmpcybjigvt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"afs\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"fsopen\00", align 1
@FSCONFIG_SET_STRING = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"source\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"#grand.central.org:root.cell.\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"create\00", align 1
@FSCONFIG_CMD_CREATE = dso_local global i32 0, align 4
@MOUNT_ATTR_RDONLY = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [8 x i8] c"fsmount\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"close(fsfd)\00", align 1
@.str.7 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@AT_FDCWD = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [5 x i8] c"/mnt\00", align 1
@MOVE_MOUNT_F_EMPTY_PATH = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [11 x i8] c"move_mount\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"close(mfd)\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @fsopen(ptr noundef @.str, i32 noundef 0)
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = call i32 @perror(ptr noundef @.str.1)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %2
br label %15
15: ; preds = %14
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr @FSCONFIG_SET_STRING, align 4
%18 = call i32 @fsconfig(i32 noundef %16, i32 noundef %17, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 0)
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %23
20: ; preds = %15
%21 = load i32, ptr %6, align 4
%22 = call i32 @mount_error(i32 noundef %21, ptr noundef @.str.2)
br label %23
23: ; preds = %20, %15
br label %24
24: ; preds = %23
br label %25
25: ; preds = %24
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr @FSCONFIG_CMD_CREATE, align 4
%28 = call i32 @fsconfig(i32 noundef %26, i32 noundef %27, ptr noundef null, ptr noundef null, i32 noundef 0)
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %33
30: ; preds = %25
%31 = load i32, ptr %6, align 4
%32 = call i32 @mount_error(i32 noundef %31, ptr noundef @.str.4)
br label %33
33: ; preds = %30, %25
br label %34
34: ; preds = %33
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr @MOUNT_ATTR_RDONLY, align 4
%37 = call i32 @fsmount(i32 noundef %35, i32 noundef 0, i32 noundef %36)
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %34
%41 = load i32, ptr %6, align 4
%42 = call i32 @mount_error(i32 noundef %41, ptr noundef @.str.5)
br label %43
43: ; preds = %40, %34
br label %44
44: ; preds = %43
%45 = load i32, ptr %6, align 4
%46 = call i32 @close(i32 noundef %45)
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %51
48: ; preds = %44
%49 = call i32 @perror(ptr noundef @.str.6)
%50 = call i32 @exit(i32 noundef 1) #3
unreachable
51: ; preds = %44
br label %52
52: ; preds = %51
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr @AT_FDCWD, align 4
%55 = load i32, ptr @MOVE_MOUNT_F_EMPTY_PATH, align 4
%56 = call i64 @move_mount(i32 noundef %53, ptr noundef @.str.7, i32 noundef %54, ptr noundef @.str.8, i32 noundef %55)
%57 = icmp slt i64 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %52
%59 = call i32 @perror(ptr noundef @.str.9)
%60 = call i32 @exit(i32 noundef 1) #3
unreachable
61: ; preds = %52
br label %62
62: ; preds = %61
%63 = load i32, ptr %7, align 4
%64 = call i32 @close(i32 noundef %63)
%65 = icmp eq i32 %64, -1
br i1 %65, label %66, label %69
66: ; preds = %62
%67 = call i32 @perror(ptr noundef @.str.10)
%68 = call i32 @exit(i32 noundef 1) #3
unreachable
69: ; preds = %62
br label %70
70: ; preds = %69
%71 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fsopen(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fsconfig(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @mount_error(i32 noundef, ptr noundef) #1
declare i32 @fsmount(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i64 @move_mount(i32 noundef, 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" }
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/tmpui2lj9p6.c'
source_filename = "/tmp/tmpui2lj9p6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_word(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
%6 = load ptr, ptr %4, align 8
store ptr null, ptr %6, align 8
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %29, %2
%8 = load ptr, ptr %3, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 32
br i1 %11, label %12, label %27
12: ; preds = %7
%13 = load ptr, ptr %3, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 46
br i1 %16, label %17, label %27
17: ; preds = %12
%18 = load ptr, ptr %3, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 10
br i1 %21, label %22, label %27
22: ; preds = %17
%23 = load ptr, ptr %3, align 8
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br label %27
27: ; preds = %22, %17, %12, %7
%28 = phi i1 [ false, %17 ], [ false, %12 ], [ false, %7 ], [ %26, %22 ]
br i1 %28, label %29, label %51
29: ; preds = %27
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %32, align 8
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = mul i64 1, %36
%38 = trunc i64 %37 to i32
%39 = call ptr @realloc(ptr noundef %33, i32 noundef %38)
%40 = load ptr, ptr %4, align 8
store ptr %39, ptr %40, align 8
%41 = load ptr, ptr %3, align 8
%42 = load i8, ptr %41, align 1
%43 = load ptr, ptr %4, align 8
%44 = load ptr, ptr %43, align 8
%45 = load i32, ptr %5, align 4
%46 = sub nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %44, i64 %47
store i8 %42, ptr %48, align 1
%49 = load ptr, ptr %3, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %3, align 8
br label %7, !llvm.loop !6
51: ; preds = %27
%52 = load ptr, ptr %4, align 8
%53 = load ptr, ptr %52, align 8
%54 = load i32, ptr %5, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
store i8 0, ptr %56, align 1
%57 = load ptr, ptr %3, align 8
ret ptr %57
}
declare ptr @realloc(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/tmpui2lj9p6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_word(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
%6 = load ptr, ptr %4, align 8
store ptr null, ptr %6, align 8
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %29, %2
%8 = load ptr, ptr %3, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 32
br i1 %11, label %12, label %27
12: ; preds = %7
%13 = load ptr, ptr %3, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 46
br i1 %16, label %17, label %27
17: ; preds = %12
%18 = load ptr, ptr %3, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 10
br i1 %21, label %22, label %27
22: ; preds = %17
%23 = load ptr, ptr %3, align 8
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br label %27
27: ; preds = %22, %17, %12, %7
%28 = phi i1 [ false, %17 ], [ false, %12 ], [ false, %7 ], [ %26, %22 ]
br i1 %28, label %29, label %51
29: ; preds = %27
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %32, align 8
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = mul i64 1, %36
%38 = trunc i64 %37 to i32
%39 = call ptr @realloc(ptr noundef %33, i32 noundef %38)
%40 = load ptr, ptr %4, align 8
store ptr %39, ptr %40, align 8
%41 = load ptr, ptr %3, align 8
%42 = load i8, ptr %41, align 1
%43 = load ptr, ptr %4, align 8
%44 = load ptr, ptr %43, align 8
%45 = load i32, ptr %5, align 4
%46 = sub nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %44, i64 %47
store i8 %42, ptr %48, align 1
%49 = load ptr, ptr %3, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %3, align 8
br label %7, !llvm.loop !6
51: ; preds = %27
%52 = load ptr, ptr %4, align 8
%53 = load ptr, ptr %52, align 8
%54 = load i32, ptr %5, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
store i8 0, ptr %56, align 1
%57 = load ptr, ptr %3, align 8
ret ptr %57
}
declare ptr @realloc(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/tmpcdz8jylq.c'
source_filename = "/tmp/tmpcdz8jylq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isodigit.c\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"isodigit should be 0 for >\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isodigit_0x3e() #0 {
%1 = call i64 @isodigit(i32 noundef 62)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 315, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isodigit(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/tmpcdz8jylq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isodigit.c\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"isodigit should be 0 for >\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isodigit_0x3e() #0 {
%1 = call i64 @isodigit(i32 noundef 62)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 315, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isodigit(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/tmpgqp34229.c'
source_filename = "/tmp/tmpgqp34229.c"
target datalayout = "e-m:e-p270: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/tmpgqp34229.c"
target datalayout = "e-m:e-p270: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/tmpzg_wvl4a.c'
source_filename = "/tmp/tmpzg_wvl4a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strncat(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i64 @strlen(ptr noundef %9)
store i64 %10, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %11
11: ; preds = %34, %3
%12 = load i64, ptr %8, align 8
%13 = load i64, ptr %6, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %15, label %22
15: ; preds = %11
%16 = load ptr, ptr %5, align 8
%17 = load i64, ptr %8, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 0
br label %22
22: ; preds = %15, %11
%23 = phi i1 [ false, %11 ], [ %21, %15 ]
br i1 %23, label %24, label %37
24: ; preds = %22
%25 = load ptr, ptr %5, align 8
%26 = load i64, ptr %8, align 8
%27 = getelementptr inbounds i8, ptr %25, i64 %26
%28 = load i8, ptr %27, align 1
%29 = load ptr, ptr %4, align 8
%30 = load i64, ptr %7, align 8
%31 = load i64, ptr %8, align 8
%32 = add i64 %30, %31
%33 = getelementptr inbounds i8, ptr %29, i64 %32
store i8 %28, ptr %33, align 1
br label %34
34: ; preds = %24
%35 = load i64, ptr %8, align 8
%36 = add i64 %35, 1
store i64 %36, ptr %8, align 8
br label %11, !llvm.loop !6
37: ; preds = %22
%38 = load ptr, ptr %4, align 8
%39 = load i64, ptr %7, align 8
%40 = load i64, ptr %8, align 8
%41 = add i64 %39, %40
%42 = getelementptr inbounds i8, ptr %38, i64 %41
store i8 0, ptr %42, align 1
%43 = load ptr, ptr %4, align 8
ret ptr %43
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzg_wvl4a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strncat(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i64 @strlen(ptr noundef %9)
store i64 %10, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %11
11: ; preds = %34, %3
%12 = load i64, ptr %8, align 8
%13 = load i64, ptr %6, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %15, label %22
15: ; preds = %11
%16 = load ptr, ptr %5, align 8
%17 = load i64, ptr %8, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 0
br label %22
22: ; preds = %15, %11
%23 = phi i1 [ false, %11 ], [ %21, %15 ]
br i1 %23, label %24, label %37
24: ; preds = %22
%25 = load ptr, ptr %5, align 8
%26 = load i64, ptr %8, align 8
%27 = getelementptr inbounds i8, ptr %25, i64 %26
%28 = load i8, ptr %27, align 1
%29 = load ptr, ptr %4, align 8
%30 = load i64, ptr %7, align 8
%31 = load i64, ptr %8, align 8
%32 = add i64 %30, %31
%33 = getelementptr inbounds i8, ptr %29, i64 %32
store i8 %28, ptr %33, align 1
br label %34
34: ; preds = %24
%35 = load i64, ptr %8, align 8
%36 = add i64 %35, 1
store i64 %36, ptr %8, align 8
br label %11, !llvm.loop !6
37: ; preds = %22
%38 = load ptr, ptr %4, align 8
%39 = load i64, ptr %7, align 8
%40 = load i64, ptr %8, align 8
%41 = add i64 %39, %40
%42 = getelementptr inbounds i8, ptr %38, i64 %41
store i8 0, ptr %42, align 1
%43 = load ptr, ptr %4, align 8
ret ptr %43
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp23gw0l8h.c'
source_filename = "/tmp/tmp23gw0l8h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @flt_sgn(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call float @fsgn(float noundef %3)
ret float %4
}
declare float @fsgn(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/tmp23gw0l8h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @flt_sgn(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call float @fsgn(float noundef %3)
ret float %4
}
declare float @fsgn(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/tmpvf8wvwid.c'
source_filename = "/tmp/tmpvf8wvwid.c"
target datalayout = "e-m:e-p270: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.waktu = type { i32, i32, i32 }
@.str = private unnamed_addr constant [37 x i8] c"Waktu mulai dalam format dd:mm:yy : \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 [39 x i8] c"Waktu selesai dalam format dd:mm:yy : \00", align 1
@.str.3 = private unnamed_addr constant [66 x i8] c"Jarak antara dua waktu tersebut yaitu %d tahun, %d bulan, %d hari\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.waktu, align 4
%3 = alloca %struct.waktu, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = getelementptr inbounds %struct.waktu, ptr %2, i32 0, i32 0
%12 = getelementptr inbounds %struct.waktu, ptr %2, i32 0, i32 1
%13 = getelementptr inbounds %struct.waktu, ptr %2, i32 0, i32 2
%14 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %11, ptr noundef %12, ptr noundef %13)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%16 = getelementptr inbounds %struct.waktu, ptr %3, i32 0, i32 0
%17 = getelementptr inbounds %struct.waktu, ptr %3, i32 0, i32 1
%18 = getelementptr inbounds %struct.waktu, ptr %3, i32 0, i32 2
%19 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %16, ptr noundef %17, ptr noundef %18)
%20 = getelementptr inbounds %struct.waktu, ptr %2, i32 0, i32 0
%21 = load i32, ptr %20, align 4
%22 = getelementptr inbounds %struct.waktu, ptr %2, i32 0, i32 1
%23 = load i32, ptr %22, align 4
%24 = mul nsw i32 %23, 30
%25 = add nsw i32 %21, %24
%26 = getelementptr inbounds %struct.waktu, ptr %2, i32 0, i32 2
%27 = load i32, ptr %26, align 4
%28 = mul nsw i32 %27, 365
%29 = add nsw i32 %25, %28
store i32 %29, ptr %4, align 4
%30 = getelementptr inbounds %struct.waktu, ptr %3, i32 0, i32 0
%31 = load i32, ptr %30, align 4
%32 = getelementptr inbounds %struct.waktu, ptr %3, i32 0, i32 1
%33 = load i32, ptr %32, align 4
%34 = mul nsw i32 %33, 30
%35 = add nsw i32 %31, %34
%36 = getelementptr inbounds %struct.waktu, ptr %3, i32 0, i32 2
%37 = load i32, ptr %36, align 4
%38 = mul nsw i32 %37, 365
%39 = add nsw i32 %35, %38
store i32 %39, ptr %5, align 4
%40 = load i32, ptr %5, align 4
%41 = load i32, ptr %4, align 4
%42 = sub nsw i32 %40, %41
store i32 %42, ptr %6, align 4
%43 = load i32, ptr %6, align 4
%44 = sdiv i32 %43, 365
store i32 %44, ptr %7, align 4
%45 = load i32, ptr %6, align 4
%46 = srem i32 %45, 365
%47 = sdiv i32 %46, 30
store i32 %47, ptr %8, align 4
%48 = load i32, ptr %6, align 4
%49 = load i32, ptr %7, align 4
%50 = mul nsw i32 %49, 365
%51 = load i32, ptr %8, align 4
%52 = mul nsw i32 %51, 30
%53 = add nsw i32 %50, %52
%54 = sub nsw i32 %48, %53
store i32 %54, ptr %9, align 4
%55 = load i32, ptr %7, align 4
%56 = load i32, ptr %8, align 4
%57 = load i32, ptr %9, align 4
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %55, i32 noundef %56, i32 noundef %57)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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/tmpvf8wvwid.c"
target datalayout = "e-m:e-p270: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.waktu = type { i32, i32, i32 }
@.str = private unnamed_addr constant [37 x i8] c"Waktu mulai dalam format dd:mm:yy : \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 [39 x i8] c"Waktu selesai dalam format dd:mm:yy : \00", align 1
@.str.3 = private unnamed_addr constant [66 x i8] c"Jarak antara dua waktu tersebut yaitu %d tahun, %d bulan, %d hari\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.waktu, align 4
%3 = alloca %struct.waktu, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = getelementptr inbounds %struct.waktu, ptr %2, i32 0, i32 0
%12 = getelementptr inbounds %struct.waktu, ptr %2, i32 0, i32 1
%13 = getelementptr inbounds %struct.waktu, ptr %2, i32 0, i32 2
%14 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %11, ptr noundef %12, ptr noundef %13)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%16 = getelementptr inbounds %struct.waktu, ptr %3, i32 0, i32 0
%17 = getelementptr inbounds %struct.waktu, ptr %3, i32 0, i32 1
%18 = getelementptr inbounds %struct.waktu, ptr %3, i32 0, i32 2
%19 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %16, ptr noundef %17, ptr noundef %18)
%20 = getelementptr inbounds %struct.waktu, ptr %2, i32 0, i32 0
%21 = load i32, ptr %20, align 4
%22 = getelementptr inbounds %struct.waktu, ptr %2, i32 0, i32 1
%23 = load i32, ptr %22, align 4
%24 = mul nsw i32 %23, 30
%25 = add nsw i32 %21, %24
%26 = getelementptr inbounds %struct.waktu, ptr %2, i32 0, i32 2
%27 = load i32, ptr %26, align 4
%28 = mul nsw i32 %27, 365
%29 = add nsw i32 %25, %28
store i32 %29, ptr %4, align 4
%30 = getelementptr inbounds %struct.waktu, ptr %3, i32 0, i32 0
%31 = load i32, ptr %30, align 4
%32 = getelementptr inbounds %struct.waktu, ptr %3, i32 0, i32 1
%33 = load i32, ptr %32, align 4
%34 = mul nsw i32 %33, 30
%35 = add nsw i32 %31, %34
%36 = getelementptr inbounds %struct.waktu, ptr %3, i32 0, i32 2
%37 = load i32, ptr %36, align 4
%38 = mul nsw i32 %37, 365
%39 = add nsw i32 %35, %38
store i32 %39, ptr %5, align 4
%40 = load i32, ptr %5, align 4
%41 = load i32, ptr %4, align 4
%42 = sub nsw i32 %40, %41
store i32 %42, ptr %6, align 4
%43 = load i32, ptr %6, align 4
%44 = sdiv i32 %43, 365
store i32 %44, ptr %7, align 4
%45 = load i32, ptr %6, align 4
%46 = srem i32 %45, 365
%47 = sdiv i32 %46, 30
store i32 %47, ptr %8, align 4
%48 = load i32, ptr %6, align 4
%49 = load i32, ptr %7, align 4
%50 = mul nsw i32 %49, 365
%51 = load i32, ptr %8, align 4
%52 = mul nsw i32 %51, 30
%53 = add nsw i32 %50, %52
%54 = sub nsw i32 %48, %53
store i32 %54, ptr %9, align 4
%55 = load i32, ptr %7, align 4
%56 = load i32, ptr %8, align 4
%57 = load i32, ptr %9, align 4
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %55, i32 noundef %56, i32 noundef %57)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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/tmpke0zln4n.c'
source_filename = "/tmp/tmpke0zln4n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @destroyRoom(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpke0zln4n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @destroyRoom(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsmarvrdo.c'
source_filename = "/tmp/tmpsmarvrdo.c"
target datalayout = "e-m:e-p270: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/tmpsmarvrdo.c"
target datalayout = "e-m:e-p270: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/tmpje4f6o7k.c'
source_filename = "/tmp/tmpje4f6o7k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
store i32 0, ptr %1, align 4
%3 = call i64 (...) @CalculateNumberOfMatchingXORSets()
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call i32 @printf(ptr noundef @.str, i64 noundef %4)
ret i32 0
}
declare i64 @CalculateNumberOfMatchingXORSets(...) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpje4f6o7k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
store i32 0, ptr %1, align 4
%3 = call i64 (...) @CalculateNumberOfMatchingXORSets()
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call i32 @printf(ptr noundef @.str, i64 noundef %4)
ret i32 0
}
declare i64 @CalculateNumberOfMatchingXORSets(...) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp25s23w5b.c'
source_filename = "/tmp/tmp25s23w5b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_yield() #0 {
%1 = call i32 (...) @sched_yield()
ret i32 %1
}
declare i32 @sched_yield(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp25s23w5b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_yield() #0 {
%1 = call i32 (...) @sched_yield()
ret i32 %1
}
declare i32 @sched_yield(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfx28n1b_.c'
source_filename = "/tmp/tmpfx28n1b_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d.%u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getThreadIdentity() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @malloc(i32 noundef 30)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = call i32 (...) @getpid()
%6 = call i32 (...) @pthread_self()
%7 = call i32 @sprintf(ptr noundef %4, ptr noundef @.str, i32 noundef %5, i32 noundef %6)
%8 = load ptr, ptr %1, align 8
ret ptr %8
}
declare i64 @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @pthread_self(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfx28n1b_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d.%u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getThreadIdentity() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @malloc(i32 noundef 30)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = call i32 (...) @getpid()
%6 = call i32 (...) @pthread_self()
%7 = call i32 @sprintf(ptr noundef %4, ptr noundef @.str, i32 noundef %5, i32 noundef %6)
%8 = load ptr, ptr %1, align 8
ret ptr %8
}
declare i64 @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @pthread_self(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphh0a_3ii.c'
source_filename = "/tmp/tmphh0a_3ii.c"
target datalayout = "e-m:e-p270: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
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"%s: configloader: strtol(): %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"configloader\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @config_get_lint_param(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 0, ptr %4, align 8
store ptr null, ptr %5, align 8
%6 = load ptr, ptr %3, align 8
%7 = call ptr @config_get_str_param(ptr noundef %6)
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %11, label %10
10: ; preds = %1
store i64 0, ptr %2, align 8
br label %23
11: ; preds = %1
store i64 0, ptr @errno, align 8
%12 = load ptr, ptr %5, align 8
%13 = call i64 @strtol(ptr noundef %12, ptr noundef null, i32 noundef 10)
store i64 %13, ptr %4, align 8
%14 = load i64, ptr @errno, align 8
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %11
%17 = load i32, ptr @stderr, align 4
%18 = load i64, ptr @errno, align 8
%19 = call ptr @strerror(i64 noundef %18)
%20 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %19)
br label %21
21: ; preds = %16, %11
%22 = load i64, ptr %4, align 8
store i64 %22, ptr %2, align 8
br label %23
23: ; preds = %21, %10
%24 = load i64, ptr %2, align 8
ret i64 %24
}
declare ptr @config_get_str_param(ptr noundef) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphh0a_3ii.c"
target datalayout = "e-m:e-p270: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
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"%s: configloader: strtol(): %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"configloader\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @config_get_lint_param(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 0, ptr %4, align 8
store ptr null, ptr %5, align 8
%6 = load ptr, ptr %3, align 8
%7 = call ptr @config_get_str_param(ptr noundef %6)
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %11, label %10
10: ; preds = %1
store i64 0, ptr %2, align 8
br label %23
11: ; preds = %1
store i64 0, ptr @errno, align 8
%12 = load ptr, ptr %5, align 8
%13 = call i64 @strtol(ptr noundef %12, ptr noundef null, i32 noundef 10)
store i64 %13, ptr %4, align 8
%14 = load i64, ptr @errno, align 8
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %11
%17 = load i32, ptr @stderr, align 4
%18 = load i64, ptr @errno, align 8
%19 = call ptr @strerror(i64 noundef %18)
%20 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %19)
br label %21
21: ; preds = %16, %11
%22 = load i64, ptr %4, align 8
store i64 %22, ptr %2, align 8
br label %23
23: ; preds = %21, %10
%24 = load i64, ptr %2, align 8
ret i64 %24
}
declare ptr @config_get_str_param(ptr noundef) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpts4awyd3.c'
source_filename = "/tmp/tmpts4awyd3.c"
target datalayout = "e-m:e-p270: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/tmpts4awyd3.c"
target datalayout = "e-m:e-p270: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/tmpdq6rx6ec.c'
source_filename = "/tmp/tmpdq6rx6ec.c"
target datalayout = "e-m:e-p270: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.hostent = type { i64 }
%struct.in_addr = type { i32 }
@.str = private unnamed_addr constant [24 x i8] c"gethostbyname() error: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_ip(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 ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call ptr @gethostbyname(ptr noundef %9)
store ptr %10, ptr %6, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @herror(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %41
14: ; preds = %2
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds %struct.hostent, ptr %15, i32 0, i32 0
%17 = load i64, ptr %16, align 8
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %37, %14
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %40
26: ; preds = %19
%27 = load ptr, ptr %5, align 8
%28 = load ptr, ptr %7, align 8
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = getelementptr inbounds %struct.in_addr, ptr %32, i32 0, i32 0
%34 = load i32, ptr %33, align 4
%35 = call i32 @inet_ntoa(i32 %34)
%36 = call i32 @strcpy(ptr noundef %27, i32 noundef %35)
store i32 0, ptr %3, align 4
br label %41
37: ; No predecessors!
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4
br label %19, !llvm.loop !6
40: ; preds = %19
store i32 -1, ptr %3, align 4
br label %41
41: ; preds = %40, %26, %12
%42 = load i32, ptr %3, align 4
ret i32 %42
}
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @herror(ptr noundef) #1
declare i32 @strcpy(ptr noundef, i32 noundef) #1
declare i32 @inet_ntoa(i32) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpdq6rx6ec.c"
target datalayout = "e-m:e-p270: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.hostent = type { i64 }
%struct.in_addr = type { i32 }
@.str = private unnamed_addr constant [24 x i8] c"gethostbyname() error: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_ip(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 ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call ptr @gethostbyname(ptr noundef %9)
store ptr %10, ptr %6, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @herror(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %41
14: ; preds = %2
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds %struct.hostent, ptr %15, i32 0, i32 0
%17 = load i64, ptr %16, align 8
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %37, %14
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %40
26: ; preds = %19
%27 = load ptr, ptr %5, align 8
%28 = load ptr, ptr %7, align 8
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = getelementptr inbounds %struct.in_addr, ptr %32, i32 0, i32 0
%34 = load i32, ptr %33, align 4
%35 = call i32 @inet_ntoa(i32 %34)
%36 = call i32 @strcpy(ptr noundef %27, i32 noundef %35)
store i32 0, ptr %3, align 4
br label %41
37: ; No predecessors!
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4
br label %19, !llvm.loop !6
40: ; preds = %19
store i32 -1, ptr %3, align 4
br label %41
41: ; preds = %40, %26, %12
%42 = load i32, ptr %3, align 4
ret i32 %42
}
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @herror(ptr noundef) #1
declare i32 @strcpy(ptr noundef, i32 noundef) #1
declare i32 @inet_ntoa(i32) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpcn2g7q09.c'
source_filename = "/tmp/tmpcn2g7q09.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"print_phase_1_data: Bug 1.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_phase_1_data(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
switch i32 %5, label %14 [
i32 0, label %6
i32 2, label %10
i32 3, label %10
]
6: ; preds = %2
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr %4, align 4
%9 = call i32 @print_version_0(ptr noundef %7, i32 noundef %8)
br label %16
10: ; preds = %2, %2
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = call i32 @print_version_2(ptr noundef %11, i32 noundef %12)
br label %16
14: ; preds = %2
%15 = call i32 @fatal(ptr noundef @.str)
br label %16
16: ; preds = %14, %10, %6
ret void
}
declare i32 @print_version_0(ptr noundef, i32 noundef) #1
declare i32 @print_version_2(ptr noundef, i32 noundef) #1
declare i32 @fatal(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/tmpcn2g7q09.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"print_phase_1_data: Bug 1.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_phase_1_data(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
switch i32 %5, label %14 [
i32 0, label %6
i32 2, label %10
i32 3, label %10
]
6: ; preds = %2
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr %4, align 4
%9 = call i32 @print_version_0(ptr noundef %7, i32 noundef %8)
br label %16
10: ; preds = %2, %2
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = call i32 @print_version_2(ptr noundef %11, i32 noundef %12)
br label %16
14: ; preds = %2
%15 = call i32 @fatal(ptr noundef @.str)
br label %16
16: ; preds = %14, %10, %6
ret void
}
declare i32 @print_version_0(ptr noundef, i32 noundef) #1
declare i32 @print_version_2(ptr noundef, i32 noundef) #1
declare i32 @fatal(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/tmpuuwhanz_.c'
source_filename = "/tmp/tmpuuwhanz_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/proc/loadavg\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%f %f %f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gather_loadavg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %18
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds float, ptr %9, i64 0
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds float, ptr %11, i64 1
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds float, ptr %13, i64 2
%15 = call i32 @fscanf(ptr noundef %8, ptr noundef @.str.2, ptr noundef %10, ptr noundef %12, ptr noundef %14)
%16 = load ptr, ptr %3, align 8
%17 = call i32 @fclose(ptr noundef %16)
br label %18
18: ; preds = %7, %1
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr 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/tmpuuwhanz_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/proc/loadavg\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%f %f %f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gather_loadavg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %18
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds float, ptr %9, i64 0
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds float, ptr %11, i64 1
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds float, ptr %13, i64 2
%15 = call i32 @fscanf(ptr noundef %8, ptr noundef @.str.2, ptr noundef %10, ptr noundef %12, ptr noundef %14)
%16 = load ptr, ptr %3, align 8
%17 = call i32 @fclose(ptr noundef %16)
br label %18
18: ; preds = %7, %1
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr 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/tmp9mnrycqu.c'
source_filename = "/tmp/tmp9mnrycqu.c"
target datalayout = "e-m:e-p270: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.test_data_length.str = private unnamed_addr constant [19 x i8] c"Test data length. \00", align 16
@__const.test_data_length.str2 = private unnamed_addr constant [26 x i8] c"Do we have two sentences?\00", align 16
@.str = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"a+\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_data_length() #0 {
%1 = alloca ptr, align 8
%2 = alloca [512 x i8], align 16
%3 = alloca [19 x i8], align 16
%4 = alloca [26 x i8], align 16
%5 = alloca [44 x i8], align 16
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 512, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.test_data_length.str, i64 19, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.test_data_length.str2, i64 26, i1 false)
%10 = getelementptr inbounds [512 x i8], ptr %2, i64 0, i64 0
%11 = call ptr @fmemopen(ptr noundef %10, i32 noundef 512, ptr noundef @.str)
store ptr %11, ptr %1, align 8
%12 = load ptr, ptr %1, align 8
%13 = icmp ne ptr %12, null
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 noundef %14)
%16 = getelementptr inbounds [19 x i8], ptr %3, i64 0, i64 0
%17 = load ptr, ptr %1, align 8
%18 = call i64 @fwrite(ptr noundef %16, i32 noundef 1, i32 noundef 19, ptr noundef %17)
store i64 %18, ptr %7, align 8
%19 = load i64, ptr %7, align 8
%20 = icmp eq i64 %19, 19
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 noundef %21)
%23 = load ptr, ptr %1, align 8
%24 = load i32, ptr @SEEK_END, align 4
%25 = call i32 @fseek(ptr noundef %23, i32 noundef 0, i32 noundef %24)
store i32 %25, ptr %9, align 4
%26 = load i32, ptr %9, align 4
%27 = icmp eq i32 %26, 0
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
%30 = load ptr, ptr %1, align 8
%31 = call i64 @ftell(ptr noundef %30)
store i64 %31, ptr %6, align 8
%32 = load i64, ptr %6, align 8
%33 = icmp eq i64 %32, 19
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 noundef %34)
%36 = load ptr, ptr %1, align 8
%37 = call i32 @fclose(ptr noundef %36)
store i32 %37, ptr %9, align 4
%38 = load i32, ptr %9, align 4
%39 = icmp eq i32 %38, 0
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
%42 = getelementptr inbounds [512 x i8], ptr %2, i64 0, i64 0
%43 = call ptr @fmemopen(ptr noundef %42, i32 noundef 512, ptr noundef @.str.1)
store ptr %43, ptr %1, align 8
%44 = load ptr, ptr %1, align 8
%45 = icmp ne ptr %44, null
%46 = zext i1 %45 to i32
%47 = call i32 @assert(i32 noundef %46)
%48 = getelementptr inbounds [26 x i8], ptr %4, i64 0, i64 0
%49 = load ptr, ptr %1, align 8
%50 = call i64 @fwrite(ptr noundef %48, i32 noundef 1, i32 noundef 26, ptr noundef %49)
store i64 %50, ptr %7, align 8
%51 = load i64, ptr %7, align 8
%52 = icmp eq i64 %51, 26
%53 = zext i1 %52 to i32
%54 = call i32 @assert(i32 noundef %53)
%55 = load ptr, ptr %1, align 8
%56 = load i32, ptr @SEEK_SET, align 4
%57 = call i32 @fseek(ptr noundef %55, i32 noundef 0, i32 noundef %56)
store i32 %57, ptr %9, align 4
%58 = load i32, ptr %9, align 4
%59 = icmp eq i32 %58, 0
%60 = zext i1 %59 to i32
%61 = call i32 @assert(i32 noundef %60)
%62 = load ptr, ptr %1, align 8
%63 = call i64 @ftell(ptr noundef %62)
store i64 %63, ptr %6, align 8
%64 = load i64, ptr %6, align 8
%65 = icmp eq i64 %64, 0
%66 = zext i1 %65 to i32
%67 = call i32 @assert(i32 noundef %66)
%68 = getelementptr inbounds [44 x i8], ptr %5, i64 0, i64 0
%69 = load ptr, ptr %1, align 8
%70 = call i64 @fread(ptr noundef %68, i32 noundef 1, i32 noundef 512, ptr noundef %69)
store i64 %70, ptr %8, align 8
%71 = load i64, ptr %8, align 8
%72 = icmp eq i64 %71, 44
%73 = zext i1 %72 to i32
%74 = call i32 @assert(i32 noundef %73)
%75 = getelementptr inbounds [44 x i8], ptr %5, i64 0, i64 0
%76 = getelementptr inbounds [19 x i8], ptr %3, i64 0, i64 0
%77 = call i64 @strncmp(ptr noundef %75, ptr noundef %76, i32 noundef 18)
%78 = icmp eq i64 %77, 0
%79 = zext i1 %78 to i32
%80 = call i32 @assert(i32 noundef %79)
%81 = getelementptr inbounds [44 x i8], ptr %5, i64 0, i64 0
%82 = getelementptr inbounds i8, ptr %81, i64 19
%83 = getelementptr inbounds i8, ptr %82, i64 -1
%84 = getelementptr inbounds [26 x i8], ptr %4, i64 0, i64 0
%85 = call i64 @strncmp(ptr noundef %83, ptr noundef %84, i32 noundef 26)
%86 = icmp eq i64 %85, 0
%87 = zext i1 %86 to i32
%88 = call i32 @assert(i32 noundef %87)
%89 = load ptr, ptr %1, align 8
%90 = call i32 @fclose(ptr noundef %89)
store i32 %90, ptr %9, align 4
%91 = load i32, ptr %9, align 4
%92 = icmp eq i32 %91, 0
%93 = zext i1 %92 to i32
%94 = call i32 @assert(i32 noundef %93)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare ptr @fmemopen(ptr noundef, i32 noundef, ptr noundef) #3
declare i32 @assert(i32 noundef) #3
declare i64 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #3
declare i64 @ftell(ptr noundef) #3
declare i32 @fclose(ptr noundef) #3
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9mnrycqu.c"
target datalayout = "e-m:e-p270: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.test_data_length.str = private unnamed_addr constant [19 x i8] c"Test data length. \00", align 16
@__const.test_data_length.str2 = private unnamed_addr constant [26 x i8] c"Do we have two sentences?\00", align 16
@.str = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"a+\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_data_length() #0 {
%1 = alloca ptr, align 8
%2 = alloca [512 x i8], align 16
%3 = alloca [19 x i8], align 16
%4 = alloca [26 x i8], align 16
%5 = alloca [44 x i8], align 16
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 512, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.test_data_length.str, i64 19, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.test_data_length.str2, i64 26, i1 false)
%10 = getelementptr inbounds [512 x i8], ptr %2, i64 0, i64 0
%11 = call ptr @fmemopen(ptr noundef %10, i32 noundef 512, ptr noundef @.str)
store ptr %11, ptr %1, align 8
%12 = load ptr, ptr %1, align 8
%13 = icmp ne ptr %12, null
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 noundef %14)
%16 = getelementptr inbounds [19 x i8], ptr %3, i64 0, i64 0
%17 = load ptr, ptr %1, align 8
%18 = call i64 @fwrite(ptr noundef %16, i32 noundef 1, i32 noundef 19, ptr noundef %17)
store i64 %18, ptr %7, align 8
%19 = load i64, ptr %7, align 8
%20 = icmp eq i64 %19, 19
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 noundef %21)
%23 = load ptr, ptr %1, align 8
%24 = load i32, ptr @SEEK_END, align 4
%25 = call i32 @fseek(ptr noundef %23, i32 noundef 0, i32 noundef %24)
store i32 %25, ptr %9, align 4
%26 = load i32, ptr %9, align 4
%27 = icmp eq i32 %26, 0
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
%30 = load ptr, ptr %1, align 8
%31 = call i64 @ftell(ptr noundef %30)
store i64 %31, ptr %6, align 8
%32 = load i64, ptr %6, align 8
%33 = icmp eq i64 %32, 19
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 noundef %34)
%36 = load ptr, ptr %1, align 8
%37 = call i32 @fclose(ptr noundef %36)
store i32 %37, ptr %9, align 4
%38 = load i32, ptr %9, align 4
%39 = icmp eq i32 %38, 0
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
%42 = getelementptr inbounds [512 x i8], ptr %2, i64 0, i64 0
%43 = call ptr @fmemopen(ptr noundef %42, i32 noundef 512, ptr noundef @.str.1)
store ptr %43, ptr %1, align 8
%44 = load ptr, ptr %1, align 8
%45 = icmp ne ptr %44, null
%46 = zext i1 %45 to i32
%47 = call i32 @assert(i32 noundef %46)
%48 = getelementptr inbounds [26 x i8], ptr %4, i64 0, i64 0
%49 = load ptr, ptr %1, align 8
%50 = call i64 @fwrite(ptr noundef %48, i32 noundef 1, i32 noundef 26, ptr noundef %49)
store i64 %50, ptr %7, align 8
%51 = load i64, ptr %7, align 8
%52 = icmp eq i64 %51, 26
%53 = zext i1 %52 to i32
%54 = call i32 @assert(i32 noundef %53)
%55 = load ptr, ptr %1, align 8
%56 = load i32, ptr @SEEK_SET, align 4
%57 = call i32 @fseek(ptr noundef %55, i32 noundef 0, i32 noundef %56)
store i32 %57, ptr %9, align 4
%58 = load i32, ptr %9, align 4
%59 = icmp eq i32 %58, 0
%60 = zext i1 %59 to i32
%61 = call i32 @assert(i32 noundef %60)
%62 = load ptr, ptr %1, align 8
%63 = call i64 @ftell(ptr noundef %62)
store i64 %63, ptr %6, align 8
%64 = load i64, ptr %6, align 8
%65 = icmp eq i64 %64, 0
%66 = zext i1 %65 to i32
%67 = call i32 @assert(i32 noundef %66)
%68 = getelementptr inbounds [44 x i8], ptr %5, i64 0, i64 0
%69 = load ptr, ptr %1, align 8
%70 = call i64 @fread(ptr noundef %68, i32 noundef 1, i32 noundef 512, ptr noundef %69)
store i64 %70, ptr %8, align 8
%71 = load i64, ptr %8, align 8
%72 = icmp eq i64 %71, 44
%73 = zext i1 %72 to i32
%74 = call i32 @assert(i32 noundef %73)
%75 = getelementptr inbounds [44 x i8], ptr %5, i64 0, i64 0
%76 = getelementptr inbounds [19 x i8], ptr %3, i64 0, i64 0
%77 = call i64 @strncmp(ptr noundef %75, ptr noundef %76, i32 noundef 18)
%78 = icmp eq i64 %77, 0
%79 = zext i1 %78 to i32
%80 = call i32 @assert(i32 noundef %79)
%81 = getelementptr inbounds [44 x i8], ptr %5, i64 0, i64 0
%82 = getelementptr inbounds i8, ptr %81, i64 19
%83 = getelementptr inbounds i8, ptr %82, i64 -1
%84 = getelementptr inbounds [26 x i8], ptr %4, i64 0, i64 0
%85 = call i64 @strncmp(ptr noundef %83, ptr noundef %84, i32 noundef 26)
%86 = icmp eq i64 %85, 0
%87 = zext i1 %86 to i32
%88 = call i32 @assert(i32 noundef %87)
%89 = load ptr, ptr %1, align 8
%90 = call i32 @fclose(ptr noundef %89)
store i32 %90, ptr %9, align 4
%91 = load i32, ptr %9, align 4
%92 = icmp eq i32 %91, 0
%93 = zext i1 %92 to i32
%94 = call i32 @assert(i32 noundef %93)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare ptr @fmemopen(ptr noundef, i32 noundef, ptr noundef) #3
declare i32 @assert(i32 noundef) #3
declare i64 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #3
declare i64 @ftell(ptr noundef) #3
declare i32 @fclose(ptr noundef) #3
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzu_l1o9m.c'
source_filename = "/tmp/tmpzu_l1o9m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
%12 = call i32 @atoi(ptr noundef %11)
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = call ptr @FizzBuzz(i32 noundef %13)
store ptr %14, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %15
15: ; preds = %26, %2
%16 = load i32, ptr %8, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %29
19: ; preds = %15
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = call i32 @printf(ptr noundef @.str, ptr noundef %24)
br label %26
26: ; preds = %19
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %8, align 4
br label %15, !llvm.loop !6
29: ; preds = %15
ret i32 0
}
declare i32 @atoi(ptr noundef) #1
declare ptr @FizzBuzz(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzu_l1o9m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
%12 = call i32 @atoi(ptr noundef %11)
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = call ptr @FizzBuzz(i32 noundef %13)
store ptr %14, ptr %7, align 8
store i32 0, ptr %8, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %31
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %25
%19 = load ptr, ptr %7, align 8
%20 = load i32, ptr %8, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = call i32 @printf(ptr noundef @.str, ptr noundef %23)
br label %25
25: ; preds = %18
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %6, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %2
ret i32 0
}
declare i32 @atoi(ptr noundef) #1
declare ptr @FizzBuzz(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"}
|
; ModuleID = '/tmp/tmpm9mdxi95.c'
source_filename = "/tmp/tmpm9mdxi95.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"digite um valor: \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Positivo \0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"Neutro \0A\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"Negativo \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 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%9 = load i32, ptr %6, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %11, label %19
11: ; preds = %2
%12 = load i32, ptr %6, align 4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(ptr noundef @.str.2)
br label %18
16: ; preds = %11
%17 = call i32 @printf(ptr noundef @.str.3)
br label %18
18: ; preds = %16, %14
br label %21
19: ; preds = %2
%20 = call i32 @printf(ptr noundef @.str.4)
br label %21
21: ; preds = %19, %18
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm9mdxi95.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"digite um valor: \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Positivo \0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"Neutro \0A\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"Negativo \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 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%9 = load i32, ptr %6, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %11, label %19
11: ; preds = %2
%12 = load i32, ptr %6, align 4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(ptr noundef @.str.2)
br label %18
16: ; preds = %11
%17 = call i32 @printf(ptr noundef @.str.3)
br label %18
18: ; preds = %16, %14
br label %21
19: ; preds = %2
%20 = call i32 @printf(ptr noundef @.str.4)
br label %21
21: ; preds = %19, %18
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb82jjw6v.c'
source_filename = "/tmp/tmpb82jjw6v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Input String : \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%[^\0A]%*c\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca i8, align 1
%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 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %7)
%9 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %5, align 4
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %38, %0
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %5, align 4
%14 = sdiv i32 %13, 2
%15 = icmp slt i32 %12, %14
br i1 %15, label %16, label %41
16: ; preds = %11
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
store i8 %20, ptr %3, align 1
%21 = load i32, ptr %5, align 4
%22 = sub nsw i32 %21, 1
%23 = load i32, ptr %4, align 4
%24 = sub nsw i32 %22, %23
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %29
store i8 %27, ptr %30, align 1
%31 = load i8, ptr %3, align 1
%32 = load i32, ptr %5, align 4
%33 = sub nsw i32 %32, 1
%34 = load i32, ptr %4, align 4
%35 = sub nsw i32 %33, %34
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %36
store i8 %31, ptr %37, align 1
br label %38
38: ; preds = %16
%39 = load i32, ptr %4, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %4, align 4
br label %11, !llvm.loop !6
41: ; preds = %11
%42 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %42)
%44 = load i32, ptr %1, align 4
ret i32 %44
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb82jjw6v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Input String : \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%[^\0A]%*c\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca i8, align 1
%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 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %7)
%9 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %5, align 4
store i32 0, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %5, align 4
%13 = sdiv i32 %12, 2
%14 = icmp slt i32 %11, %13
br i1 %14, label %.lr.ph, label %44
.lr.ph: ; preds = %0
br label %15
15: ; preds = %.lr.ph, %37
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %17
%19 = load i8, ptr %18, align 1
store i8 %19, ptr %3, align 1
%20 = load i32, ptr %5, align 4
%21 = sub nsw i32 %20, 1
%22 = load i32, ptr %4, align 4
%23 = sub nsw i32 %21, %22
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %24
%26 = load i8, ptr %25, align 1
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %28
store i8 %26, ptr %29, align 1
%30 = load i8, ptr %3, align 1
%31 = load i32, ptr %5, align 4
%32 = sub nsw i32 %31, 1
%33 = load i32, ptr %4, align 4
%34 = sub nsw i32 %32, %33
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %35
store i8 %30, ptr %36, align 1
br label %37
37: ; preds = %15
%38 = load i32, ptr %4, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %4, align 4
%40 = load i32, ptr %4, align 4
%41 = load i32, ptr %5, align 4
%42 = sdiv i32 %41, 2
%43 = icmp slt i32 %40, %42
br i1 %43, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %44
44: ; preds = %._crit_edge, %0
%45 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %45)
%47 = load i32, ptr %1, align 4
ret i32 %47
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1da9l1z5.c'
source_filename = "/tmp/tmp1da9l1z5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"echo \22%s\22 | gnuplot -persist\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gnuplot(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @sprintf(ptr noundef %4, ptr noundef @.str, ptr noundef %5)
%7 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @system(ptr noundef %7)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1da9l1z5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"echo \22%s\22 | gnuplot -persist\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gnuplot(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @sprintf(ptr noundef %4, ptr noundef @.str, ptr noundef %5)
%7 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @system(ptr noundef %7)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxgz9nrpp.c'
source_filename = "/tmp/tmpxgz9nrpp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [51 x i8] c"SET key value Sets <key> to <value>\0A\00", align 1
@.str.2 = private unnamed_addr constant [63 x i8] c"GET key Get the value identified by <key>\0A\00", align 1
@.str.3 = private unnamed_addr constant [71 x i8] c"DEL key key2 .. keyN Delete values identified by <key>..<keyN>\0A\00", align 1
@.str.4 = private unnamed_addr constant [80 x i8] c"INC key qty Increment by <qty> the value idenfied by <key>, if\0A\00", align 1
@.str.5 = private unnamed_addr constant [66 x i8] c" no <qty> is specified increment by 1\0A\00", align 1
@.str.6 = private unnamed_addr constant [80 x i8] c"DEC key qty Decrement by <qty> the value idenfied by <key>, if\0A\00", align 1
@.str.7 = private unnamed_addr constant [66 x i8] c" no <qty> is specified decrement by 1\0A\00", align 1
@.str.8 = private unnamed_addr constant [83 x i8] c"INCF key qty Increment by float <qty> the value identified\0A\00", align 1
@.str.9 = private unnamed_addr constant [81 x i8] c" by <key>, if no <qty> is specified increment by 1.0\0A\00", align 1
@.str.10 = private unnamed_addr constant [87 x i8] c"DECF key qty Decrement by <qty> the value identified by <key>,\0A\00", align 1
@.str.11 = private unnamed_addr constant [71 x i8] c" if no <qty> is specified decrement by 1.0\0A\00", align 1
@.str.12 = private unnamed_addr constant [84 x i8] c"GETP key Get all information of a key-value pair represented by\0A\00", align 1
@.str.13 = private unnamed_addr constant [83 x i8] c" <key>, like key, value, creation time and expire time\0A\00", align 1
@.str.14 = private unnamed_addr constant [53 x i8] c"APPEND key value Append <value> to <key>\0A\00", align 1
@.str.15 = private unnamed_addr constant [54 x i8] c"PREPEND key value Prepend <value> to <key>\0A\00", align 1
@.str.16 = private unnamed_addr constant [70 x i8] c"FLUSH Delete all maps stored inside partitions\0A\00", align 1
@.str.17 = private unnamed_addr constant [46 x i8] c"QUIT/EXIT Close connection\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @printf(ptr noundef @.str.9)
%11 = call i32 @printf(ptr noundef @.str.10)
%12 = call i32 @printf(ptr noundef @.str.11)
%13 = call i32 @printf(ptr noundef @.str.12)
%14 = call i32 @printf(ptr noundef @.str.13)
%15 = call i32 @printf(ptr noundef @.str.14)
%16 = call i32 @printf(ptr noundef @.str.15)
%17 = call i32 @printf(ptr noundef @.str.16)
%18 = call i32 @printf(ptr noundef @.str.17)
%19 = 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/tmpxgz9nrpp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [51 x i8] c"SET key value Sets <key> to <value>\0A\00", align 1
@.str.2 = private unnamed_addr constant [63 x i8] c"GET key Get the value identified by <key>\0A\00", align 1
@.str.3 = private unnamed_addr constant [71 x i8] c"DEL key key2 .. keyN Delete values identified by <key>..<keyN>\0A\00", align 1
@.str.4 = private unnamed_addr constant [80 x i8] c"INC key qty Increment by <qty> the value idenfied by <key>, if\0A\00", align 1
@.str.5 = private unnamed_addr constant [66 x i8] c" no <qty> is specified increment by 1\0A\00", align 1
@.str.6 = private unnamed_addr constant [80 x i8] c"DEC key qty Decrement by <qty> the value idenfied by <key>, if\0A\00", align 1
@.str.7 = private unnamed_addr constant [66 x i8] c" no <qty> is specified decrement by 1\0A\00", align 1
@.str.8 = private unnamed_addr constant [83 x i8] c"INCF key qty Increment by float <qty> the value identified\0A\00", align 1
@.str.9 = private unnamed_addr constant [81 x i8] c" by <key>, if no <qty> is specified increment by 1.0\0A\00", align 1
@.str.10 = private unnamed_addr constant [87 x i8] c"DECF key qty Decrement by <qty> the value identified by <key>,\0A\00", align 1
@.str.11 = private unnamed_addr constant [71 x i8] c" if no <qty> is specified decrement by 1.0\0A\00", align 1
@.str.12 = private unnamed_addr constant [84 x i8] c"GETP key Get all information of a key-value pair represented by\0A\00", align 1
@.str.13 = private unnamed_addr constant [83 x i8] c" <key>, like key, value, creation time and expire time\0A\00", align 1
@.str.14 = private unnamed_addr constant [53 x i8] c"APPEND key value Append <value> to <key>\0A\00", align 1
@.str.15 = private unnamed_addr constant [54 x i8] c"PREPEND key value Prepend <value> to <key>\0A\00", align 1
@.str.16 = private unnamed_addr constant [70 x i8] c"FLUSH Delete all maps stored inside partitions\0A\00", align 1
@.str.17 = private unnamed_addr constant [46 x i8] c"QUIT/EXIT Close connection\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @printf(ptr noundef @.str.9)
%11 = call i32 @printf(ptr noundef @.str.10)
%12 = call i32 @printf(ptr noundef @.str.11)
%13 = call i32 @printf(ptr noundef @.str.12)
%14 = call i32 @printf(ptr noundef @.str.13)
%15 = call i32 @printf(ptr noundef @.str.14)
%16 = call i32 @printf(ptr noundef @.str.15)
%17 = call i32 @printf(ptr noundef @.str.16)
%18 = call i32 @printf(ptr noundef @.str.17)
%19 = 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/tmpv7p9p7xs.c'
source_filename = "/tmp/tmpv7p9p7xs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [81 x i8] c"/home/phred/.thunderbird/ye4urkt7.default/ImapMail/shared5.mainehost-1.net/INBOX\00", align 1
@.str.1 = private unnamed_addr constant [78 x i8] c"/home/olga/.thunderbird/3oz6ykst.default/ImapMail/shared5.mainehost.net/INBOX\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"Subject: 703 ARTSAT \00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"Subject: G96 ARTSAT \00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"Subject: I52 ARTSAT \00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"Subject: V06 ARTSAT \00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"COD G96\00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"COD 703\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"COD I52\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"COD V06\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"From\00", align 1
@.str.14 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [200 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
store ptr @.str.1, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str.2)
store ptr %13, ptr %8, align 8
%14 = load i32, ptr %4, align 4
%15 = icmp sgt i32 %14, 1
br i1 %15, label %16, label %20
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
br label %21
20: ; preds = %2
br label %21
21: ; preds = %20, %16
%22 = phi ptr [ %19, %16 ], [ @.str.3, %20 ]
store ptr %22, ptr %10, align 8
store i32 0, ptr %11, align 4
%23 = load ptr, ptr %8, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %28, label %25
25: ; preds = %21
%26 = load ptr, ptr %7, align 8
%27 = call ptr @fopen(ptr noundef %26, ptr noundef @.str.2)
store ptr %27, ptr %8, align 8
br label %28
28: ; preds = %25, %21
%29 = load ptr, ptr %8, align 8
%30 = call i32 @assert(ptr noundef %29)
br label %31
31: ; preds = %98, %28
%32 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%33 = load ptr, ptr %8, align 8
%34 = call i64 @fgets(ptr noundef %32, i32 noundef 200, ptr noundef %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %99
36: ; preds = %31
%37 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%38 = call i32 @memcmp(ptr noundef %37, ptr noundef @.str.4, i32 noundef 20)
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %52
40: ; preds = %36
%41 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%42 = call i32 @memcmp(ptr noundef %41, ptr noundef @.str.5, i32 noundef 20)
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %52
44: ; preds = %40
%45 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%46 = call i32 @memcmp(ptr noundef %45, ptr noundef @.str.6, i32 noundef 20)
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %52
48: ; preds = %44
%49 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%50 = call i32 @memcmp(ptr noundef %49, ptr noundef @.str.7, i32 noundef 20)
%51 = icmp ne i32 %50, 0
br i1 %51, label %63, label %52
52: ; preds = %48, %44, %40, %36
%53 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%54 = getelementptr inbounds i8, ptr %53, i64 20
%55 = load ptr, ptr %10, align 8
%56 = load ptr, ptr %10, align 8
%57 = call i32 @strlen(ptr noundef %56)
%58 = call i32 @memcmp(ptr noundef %54, ptr noundef %55, i32 noundef %57)
%59 = icmp ne i32 %58, 0
br i1 %59, label %62, label %60
60: ; preds = %52
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
store i32 1, ptr %11, align 4
br label %62
62: ; preds = %60, %52
br label %63
63: ; preds = %62, %48
%64 = load i32, ptr %11, align 4
%65 = icmp eq i32 %64, 1
br i1 %65, label %66, label %84
66: ; preds = %63
%67 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%68 = call i32 @memcmp(ptr noundef %67, ptr noundef @.str.9, i32 noundef 7)
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %82
70: ; preds = %66
%71 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%72 = call i32 @memcmp(ptr noundef %71, ptr noundef @.str.10, i32 noundef 7)
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %82
74: ; preds = %70
%75 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%76 = call i32 @memcmp(ptr noundef %75, ptr noundef @.str.11, i32 noundef 7)
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %82
78: ; preds = %74
%79 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%80 = call i32 @memcmp(ptr noundef %79, ptr noundef @.str.12, i32 noundef 7)
%81 = icmp ne i32 %80, 0
br i1 %81, label %83, label %82
82: ; preds = %78, %74, %70, %66
store i32 2, ptr %11, align 4
br label %83
83: ; preds = %82, %78
br label %84
84: ; preds = %83, %63
%85 = load i32, ptr %11, align 4
%86 = icmp eq i32 %85, 2
br i1 %86, label %87, label %92
87: ; preds = %84
%88 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%89 = call i32 @memcmp(ptr noundef %88, ptr noundef @.str.13, i32 noundef 4)
%90 = icmp ne i32 %89, 0
br i1 %90, label %92, label %91
91: ; preds = %87
store i32 0, ptr %11, align 4
br label %92
92: ; preds = %91, %87, %84
%93 = load i32, ptr %11, align 4
%94 = icmp eq i32 %93, 2
br i1 %94, label %95, label %98
95: ; preds = %92
%96 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %96)
br label %98
98: ; preds = %95, %92
br label %31, !llvm.loop !6
99: ; preds = %31
%100 = load ptr, ptr %8, align 8
%101 = call i32 @fclose(ptr noundef %100)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @assert(ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv7p9p7xs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [81 x i8] c"/home/phred/.thunderbird/ye4urkt7.default/ImapMail/shared5.mainehost-1.net/INBOX\00", align 1
@.str.1 = private unnamed_addr constant [78 x i8] c"/home/olga/.thunderbird/3oz6ykst.default/ImapMail/shared5.mainehost.net/INBOX\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"Subject: 703 ARTSAT \00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"Subject: G96 ARTSAT \00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"Subject: I52 ARTSAT \00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"Subject: V06 ARTSAT \00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"COD G96\00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"COD 703\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"COD I52\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"COD V06\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"From\00", align 1
@.str.14 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [200 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
store ptr @.str.1, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str.2)
store ptr %13, ptr %8, align 8
%14 = load i32, ptr %4, align 4
%15 = icmp sgt i32 %14, 1
br i1 %15, label %16, label %20
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
br label %21
20: ; preds = %2
br label %21
21: ; preds = %20, %16
%22 = phi ptr [ %19, %16 ], [ @.str.3, %20 ]
store ptr %22, ptr %10, align 8
store i32 0, ptr %11, align 4
%23 = load ptr, ptr %8, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %28, label %25
25: ; preds = %21
%26 = load ptr, ptr %7, align 8
%27 = call ptr @fopen(ptr noundef %26, ptr noundef @.str.2)
store ptr %27, ptr %8, align 8
br label %28
28: ; preds = %25, %21
%29 = load ptr, ptr %8, align 8
%30 = call i32 @assert(ptr noundef %29)
%31 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%32 = load ptr, ptr %8, align 8
%33 = call i64 @fgets(ptr noundef %31, i32 noundef 200, ptr noundef %32)
%34 = icmp ne i64 %33, 0
br i1 %34, label %.lr.ph, label %101
.lr.ph: ; preds = %28
br label %35
35: ; preds = %.lr.ph, %97
%36 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%37 = call i32 @memcmp(ptr noundef %36, ptr noundef @.str.4, i32 noundef 20)
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %51
39: ; preds = %35
%40 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%41 = call i32 @memcmp(ptr noundef %40, ptr noundef @.str.5, i32 noundef 20)
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %51
43: ; preds = %39
%44 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%45 = call i32 @memcmp(ptr noundef %44, ptr noundef @.str.6, i32 noundef 20)
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %51
47: ; preds = %43
%48 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%49 = call i32 @memcmp(ptr noundef %48, ptr noundef @.str.7, i32 noundef 20)
%50 = icmp ne i32 %49, 0
br i1 %50, label %62, label %51
51: ; preds = %47, %43, %39, %35
%52 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%53 = getelementptr inbounds i8, ptr %52, i64 20
%54 = load ptr, ptr %10, align 8
%55 = load ptr, ptr %10, align 8
%56 = call i32 @strlen(ptr noundef %55)
%57 = call i32 @memcmp(ptr noundef %53, ptr noundef %54, i32 noundef %56)
%58 = icmp ne i32 %57, 0
br i1 %58, label %61, label %59
59: ; preds = %51
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
store i32 1, ptr %11, align 4
br label %61
61: ; preds = %59, %51
br label %62
62: ; preds = %61, %47
%63 = load i32, ptr %11, align 4
%64 = icmp eq i32 %63, 1
br i1 %64, label %65, label %83
65: ; preds = %62
%66 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%67 = call i32 @memcmp(ptr noundef %66, ptr noundef @.str.9, i32 noundef 7)
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %81
69: ; preds = %65
%70 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%71 = call i32 @memcmp(ptr noundef %70, ptr noundef @.str.10, i32 noundef 7)
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %81
73: ; preds = %69
%74 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%75 = call i32 @memcmp(ptr noundef %74, ptr noundef @.str.11, i32 noundef 7)
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %81
77: ; preds = %73
%78 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%79 = call i32 @memcmp(ptr noundef %78, ptr noundef @.str.12, i32 noundef 7)
%80 = icmp ne i32 %79, 0
br i1 %80, label %82, label %81
81: ; preds = %77, %73, %69, %65
store i32 2, ptr %11, align 4
br label %82
82: ; preds = %81, %77
br label %83
83: ; preds = %82, %62
%84 = load i32, ptr %11, align 4
%85 = icmp eq i32 %84, 2
br i1 %85, label %86, label %91
86: ; preds = %83
%87 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%88 = call i32 @memcmp(ptr noundef %87, ptr noundef @.str.13, i32 noundef 4)
%89 = icmp ne i32 %88, 0
br i1 %89, label %91, label %90
90: ; preds = %86
store i32 0, ptr %11, align 4
br label %91
91: ; preds = %90, %86, %83
%92 = load i32, ptr %11, align 4
%93 = icmp eq i32 %92, 2
br i1 %93, label %94, label %97
94: ; preds = %91
%95 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %95)
br label %97
97: ; preds = %94, %91
%98 = load ptr, ptr %8, align 8
%99 = call i64 @fgets(ptr noundef %31, i32 noundef 200, ptr noundef %98)
%100 = icmp ne i64 %99, 0
br i1 %100, label %35, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %97
br label %101
101: ; preds = %._crit_edge, %28
%102 = load ptr, ptr %8, align 8
%103 = call i32 @fclose(ptr noundef %102)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @assert(ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpp2rawycf.c'
source_filename = "/tmp/tmpp2rawycf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.ifaddrs = type { ptr, ptr }
%struct.TYPE_2__ = type { i32 }
@NI_MAXHOST = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"getifaddrs\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@NI_NUMERICHOST = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"getnameinfo() failed: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @localIP() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = load i32, ptr @NI_MAXHOST, align 4
%10 = zext i32 %9 to i64
%11 = call ptr @llvm.stacksave()
store ptr %11, ptr %6, align 8
%12 = alloca i8, i64 %10, align 16
store i64 %10, ptr %7, align 8
%13 = load i32, ptr @NI_MAXHOST, align 4
%14 = sext i32 %13 to i64
%15 = mul i64 1, %14
%16 = trunc i64 %15 to i32
%17 = call ptr @malloc(i32 noundef %16)
store ptr %17, ptr %8, align 8
%18 = call i32 @getifaddrs(ptr noundef %1)
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %24
20: ; preds = %0
%21 = call i32 @perror(ptr noundef @.str)
%22 = load i32, ptr @EXIT_FAILURE, align 4
%23 = call i32 @exit(i32 noundef %22) #4
unreachable
24: ; preds = %0
%25 = load ptr, ptr %1, align 8
store ptr %25, ptr %2, align 8
store i32 0, ptr %5, align 4
br label %26
26: ; preds = %73, %24
%27 = load ptr, ptr %2, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %29, label %79
29: ; preds = %26
%30 = load ptr, ptr %2, align 8
%31 = getelementptr inbounds %struct.ifaddrs, ptr %30, i32 0, i32 0
%32 = load ptr, ptr %31, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %34, label %35
34: ; preds = %29
br label %73
35: ; preds = %29
%36 = load ptr, ptr %2, align 8
%37 = getelementptr inbounds %struct.ifaddrs, ptr %36, i32 0, i32 0
%38 = load ptr, ptr %37, align 8
%39 = getelementptr inbounds %struct.TYPE_2__, ptr %38, i32 0, i32 0
%40 = load i32, ptr %39, align 4
store i32 %40, ptr %3, align 4
%41 = load i32, ptr %3, align 4
%42 = load i32, ptr @AF_INET, align 4
%43 = icmp eq i32 %41, %42
br i1 %43, label %44, label %72
44: ; preds = %35
%45 = load ptr, ptr %2, align 8
%46 = getelementptr inbounds %struct.ifaddrs, ptr %45, i32 0, i32 0
%47 = load ptr, ptr %46, align 8
%48 = load i32, ptr %3, align 4
%49 = load i32, ptr @AF_INET, align 4
%50 = icmp eq i32 %48, %49
%51 = zext i1 %50 to i64
%52 = select i1 %50, i64 4, i64 4
%53 = trunc i64 %52 to i32
%54 = load i32, ptr @NI_MAXHOST, align 4
%55 = load i32, ptr @NI_NUMERICHOST, align 4
%56 = call i32 @getnameinfo(ptr noundef %47, i32 noundef %53, ptr noundef %12, i32 noundef %54, ptr noundef null, i32 noundef 0, i32 noundef %55)
store i32 %56, ptr %4, align 4
%57 = load i32, ptr %4, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %65
59: ; preds = %44
%60 = load i32, ptr %4, align 4
%61 = call ptr @gai_strerror(i32 noundef %60)
%62 = call i32 @printf(ptr noundef @.str.1, ptr noundef %61)
%63 = load i32, ptr @EXIT_FAILURE, align 4
%64 = call i32 @exit(i32 noundef %63) #4
unreachable
65: ; preds = %44
%66 = call i64 @strcmp(ptr noundef @.str.2, ptr noundef %12)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %71
68: ; preds = %65
%69 = load ptr, ptr %8, align 8
%70 = call i32 @strcpy(ptr noundef %69, ptr noundef %12)
br label %71
71: ; preds = %68, %65
br label %72
72: ; preds = %71, %35
br label %73
73: ; preds = %72, %34
%74 = load ptr, ptr %2, align 8
%75 = getelementptr inbounds %struct.ifaddrs, ptr %74, i32 0, i32 1
%76 = load ptr, ptr %75, align 8
store ptr %76, ptr %2, align 8
%77 = load i32, ptr %5, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %5, align 4
br label %26, !llvm.loop !6
79: ; preds = %26
%80 = load ptr, ptr %1, align 8
%81 = call i32 @freeifaddrs(ptr noundef %80)
%82 = load ptr, ptr %8, align 8
%83 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %83)
ret ptr %82
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare ptr @malloc(i32 noundef) #2
declare i32 @getifaddrs(ptr noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @getnameinfo(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @gai_strerror(i32 noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @freeifaddrs(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp2rawycf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.ifaddrs = type { ptr, ptr }
%struct.TYPE_2__ = type { i32 }
@NI_MAXHOST = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"getifaddrs\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@NI_NUMERICHOST = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"getnameinfo() failed: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @localIP() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = load i32, ptr @NI_MAXHOST, align 4
%10 = zext i32 %9 to i64
%11 = call ptr @llvm.stacksave()
store ptr %11, ptr %6, align 8
%12 = alloca i8, i64 %10, align 16
store i64 %10, ptr %7, align 8
%13 = load i32, ptr @NI_MAXHOST, align 4
%14 = sext i32 %13 to i64
%15 = mul i64 1, %14
%16 = trunc i64 %15 to i32
%17 = call ptr @malloc(i32 noundef %16)
store ptr %17, ptr %8, align 8
%18 = call i32 @getifaddrs(ptr noundef %1)
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %24
20: ; preds = %0
%21 = call i32 @perror(ptr noundef @.str)
%22 = load i32, ptr @EXIT_FAILURE, align 4
%23 = call i32 @exit(i32 noundef %22) #4
unreachable
24: ; preds = %0
%25 = load ptr, ptr %1, align 8
store ptr %25, ptr %2, align 8
store i32 0, ptr %5, align 4
%26 = load ptr, ptr %2, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %.lr.ph, label %80
.lr.ph: ; preds = %24
br label %28
28: ; preds = %.lr.ph, %72
%29 = load ptr, ptr %2, align 8
%30 = getelementptr inbounds %struct.ifaddrs, ptr %29, i32 0, i32 0
%31 = load ptr, ptr %30, align 8
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %34
33: ; preds = %28
br label %72
34: ; preds = %28
%35 = load ptr, ptr %2, align 8
%36 = getelementptr inbounds %struct.ifaddrs, ptr %35, i32 0, i32 0
%37 = load ptr, ptr %36, align 8
%38 = getelementptr inbounds %struct.TYPE_2__, ptr %37, i32 0, i32 0
%39 = load i32, ptr %38, align 4
store i32 %39, ptr %3, align 4
%40 = load i32, ptr %3, align 4
%41 = load i32, ptr @AF_INET, align 4
%42 = icmp eq i32 %40, %41
br i1 %42, label %43, label %71
43: ; preds = %34
%44 = load ptr, ptr %2, align 8
%45 = getelementptr inbounds %struct.ifaddrs, ptr %44, i32 0, i32 0
%46 = load ptr, ptr %45, align 8
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr @AF_INET, align 4
%49 = icmp eq i32 %47, %48
%50 = zext i1 %49 to i64
%51 = select i1 %49, i64 4, i64 4
%52 = trunc i64 %51 to i32
%53 = load i32, ptr @NI_MAXHOST, align 4
%54 = load i32, ptr @NI_NUMERICHOST, align 4
%55 = call i32 @getnameinfo(ptr noundef %46, i32 noundef %52, ptr noundef %12, i32 noundef %53, ptr noundef null, i32 noundef 0, i32 noundef %54)
store i32 %55, ptr %4, align 4
%56 = load i32, ptr %4, align 4
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %64
58: ; preds = %43
%59 = load i32, ptr %4, align 4
%60 = call ptr @gai_strerror(i32 noundef %59)
%61 = call i32 @printf(ptr noundef @.str.1, ptr noundef %60)
%62 = load i32, ptr @EXIT_FAILURE, align 4
%63 = call i32 @exit(i32 noundef %62) #4
unreachable
64: ; preds = %43
%65 = call i64 @strcmp(ptr noundef @.str.2, ptr noundef %12)
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %64
%68 = load ptr, ptr %8, align 8
%69 = call i32 @strcpy(ptr noundef %68, ptr noundef %12)
br label %70
70: ; preds = %67, %64
br label %71
71: ; preds = %70, %34
br label %72
72: ; preds = %71, %33
%73 = load ptr, ptr %2, align 8
%74 = getelementptr inbounds %struct.ifaddrs, ptr %73, i32 0, i32 1
%75 = load ptr, ptr %74, align 8
store ptr %75, ptr %2, align 8
%76 = load i32, ptr %5, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %5, align 4
%78 = load ptr, ptr %2, align 8
%79 = icmp ne ptr %78, null
br i1 %79, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %80
80: ; preds = %._crit_edge, %24
%81 = load ptr, ptr %1, align 8
%82 = call i32 @freeifaddrs(ptr noundef %81)
%83 = load ptr, ptr %8, align 8
%84 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %84)
ret ptr %83
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare ptr @malloc(i32 noundef) #2
declare i32 @getifaddrs(ptr noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @getnameinfo(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @gai_strerror(i32 noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @freeifaddrs(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpkxz3q7la.c'
source_filename = "/tmp/tmpkxz3q7la.c"
target datalayout = "e-m:e-p270: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_RDWR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_rw_short_exist(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr @O_RDWR, align 4
%5 = call i32 @rw_test(ptr noundef %3, i32 noundef 7, i32 noundef 26, i32 noundef %4, i32 noundef 511)
ret i32 %5
}
declare i32 @rw_test(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/tmpkxz3q7la.c"
target datalayout = "e-m:e-p270: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_RDWR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_rw_short_exist(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr @O_RDWR, align 4
%5 = call i32 @rw_test(ptr noundef %3, i32 noundef 7, i32 noundef 26, i32 noundef %4, i32 noundef 511)
ret i32 %5
}
declare i32 @rw_test(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/tmp4ds080pz.c'
source_filename = "/tmp/tmp4ds080pz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [76 x i8] c"\0A ** Calculo das medias: Aritmetica,Harmonica,Geometrica e Quadratica ** \0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"Informe a nota da prova 1: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Informe a nota da prova 2: \00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"Informe a nota da prova 3: \00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c"Informe a nota da prova 4: \00", align 1
@.str.6 = private unnamed_addr constant [119 x i8] c"\0AA media Aritmetica \C3\A9: %.2f;\0AA media Harmonica \C3\A9: %.2f;\0AA media Geometrica \C3\A9: %.2f;\0AA media Quadratica \C3\A9: %.2f.\0A\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"<<Marco Tulio>>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%11 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %1)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%13 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%15 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%17 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %4)
%18 = load float, ptr %1, align 4
%19 = load float, ptr %2, align 4
%20 = fadd float %18, %19
%21 = load float, ptr %3, align 4
%22 = fadd float %20, %21
%23 = load float, ptr %4, align 4
%24 = fadd float %22, %23
%25 = fpext float %24 to double
%26 = fdiv double %25, 4.000000e+00
%27 = fptrunc double %26 to float
store float %27, ptr %5, align 4
%28 = load float, ptr %1, align 4
%29 = fpext float %28 to double
%30 = fdiv double 1.000000e+00, %29
%31 = load float, ptr %2, align 4
%32 = fpext float %31 to double
%33 = fdiv double 1.000000e+00, %32
%34 = fadd double %30, %33
%35 = load float, ptr %3, align 4
%36 = fpext float %35 to double
%37 = fdiv double 1.000000e+00, %36
%38 = fadd double %34, %37
%39 = load float, ptr %4, align 4
%40 = fpext float %39 to double
%41 = fdiv double 1.000000e+00, %40
%42 = fadd double %38, %41
%43 = fdiv double 4.000000e+00, %42
%44 = fptrunc double %43 to float
store float %44, ptr %6, align 4
%45 = load float, ptr %1, align 4
%46 = load float, ptr %2, align 4
%47 = fmul float %45, %46
%48 = load float, ptr %3, align 4
%49 = fmul float %47, %48
%50 = load float, ptr %4, align 4
%51 = fmul float %49, %50
%52 = call double @pow(float noundef %51, double noundef 2.500000e-01)
%53 = fptrunc double %52 to float
store float %53, ptr %7, align 4
%54 = load float, ptr %1, align 4
%55 = call double @pow(float noundef %54, double noundef 2.000000e+00)
%56 = load float, ptr %2, align 4
%57 = call double @pow(float noundef %56, double noundef 2.000000e+00)
%58 = fadd double %55, %57
%59 = load float, ptr %3, align 4
%60 = call double @pow(float noundef %59, double noundef 2.000000e+00)
%61 = fadd double %58, %60
%62 = load float, ptr %4, align 4
%63 = call double @pow(float noundef %62, double noundef 3.000000e+00)
%64 = fadd double %61, %63
%65 = fdiv double %64, 4.000000e+00
%66 = call float @sqrt(double noundef %65)
store float %66, ptr %8, align 4
%67 = load float, ptr %5, align 4
%68 = fpext float %67 to double
%69 = load float, ptr %6, align 4
%70 = fpext float %69 to double
%71 = load float, ptr %7, align 4
%72 = fpext float %71 to double
%73 = load float, ptr %8, align 4
%74 = fpext float %73 to double
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %68, double noundef %70, double noundef %72, double noundef %74)
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%77 = call i32 (...) @getchar()
%78 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @pow(float noundef, double noundef) #1
declare float @sqrt(double noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4ds080pz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [76 x i8] c"\0A ** Calculo das medias: Aritmetica,Harmonica,Geometrica e Quadratica ** \0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"Informe a nota da prova 1: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Informe a nota da prova 2: \00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"Informe a nota da prova 3: \00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c"Informe a nota da prova 4: \00", align 1
@.str.6 = private unnamed_addr constant [119 x i8] c"\0AA media Aritmetica \C3\A9: %.2f;\0AA media Harmonica \C3\A9: %.2f;\0AA media Geometrica \C3\A9: %.2f;\0AA media Quadratica \C3\A9: %.2f.\0A\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"<<Marco Tulio>>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%11 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %1)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%13 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%15 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%17 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %4)
%18 = load float, ptr %1, align 4
%19 = load float, ptr %2, align 4
%20 = fadd float %18, %19
%21 = load float, ptr %3, align 4
%22 = fadd float %20, %21
%23 = load float, ptr %4, align 4
%24 = fadd float %22, %23
%25 = fpext float %24 to double
%26 = fdiv double %25, 4.000000e+00
%27 = fptrunc double %26 to float
store float %27, ptr %5, align 4
%28 = load float, ptr %1, align 4
%29 = fpext float %28 to double
%30 = fdiv double 1.000000e+00, %29
%31 = load float, ptr %2, align 4
%32 = fpext float %31 to double
%33 = fdiv double 1.000000e+00, %32
%34 = fadd double %30, %33
%35 = load float, ptr %3, align 4
%36 = fpext float %35 to double
%37 = fdiv double 1.000000e+00, %36
%38 = fadd double %34, %37
%39 = load float, ptr %4, align 4
%40 = fpext float %39 to double
%41 = fdiv double 1.000000e+00, %40
%42 = fadd double %38, %41
%43 = fdiv double 4.000000e+00, %42
%44 = fptrunc double %43 to float
store float %44, ptr %6, align 4
%45 = load float, ptr %1, align 4
%46 = load float, ptr %2, align 4
%47 = fmul float %45, %46
%48 = load float, ptr %3, align 4
%49 = fmul float %47, %48
%50 = load float, ptr %4, align 4
%51 = fmul float %49, %50
%52 = call double @pow(float noundef %51, double noundef 2.500000e-01)
%53 = fptrunc double %52 to float
store float %53, ptr %7, align 4
%54 = load float, ptr %1, align 4
%55 = call double @pow(float noundef %54, double noundef 2.000000e+00)
%56 = load float, ptr %2, align 4
%57 = call double @pow(float noundef %56, double noundef 2.000000e+00)
%58 = fadd double %55, %57
%59 = load float, ptr %3, align 4
%60 = call double @pow(float noundef %59, double noundef 2.000000e+00)
%61 = fadd double %58, %60
%62 = load float, ptr %4, align 4
%63 = call double @pow(float noundef %62, double noundef 3.000000e+00)
%64 = fadd double %61, %63
%65 = fdiv double %64, 4.000000e+00
%66 = call float @sqrt(double noundef %65)
store float %66, ptr %8, align 4
%67 = load float, ptr %5, align 4
%68 = fpext float %67 to double
%69 = load float, ptr %6, align 4
%70 = fpext float %69 to double
%71 = load float, ptr %7, align 4
%72 = fpext float %71 to double
%73 = load float, ptr %8, align 4
%74 = fpext float %73 to double
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %68, double noundef %70, double noundef %72, double noundef %74)
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%77 = call i32 (...) @getchar()
%78 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @pow(float noundef, double noundef) #1
declare float @sqrt(double noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp867q5i9v.c'
source_filename = "/tmp/tmp867q5i9v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"file.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"This is a string\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [128 x i8], align 16
%8 = 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
%9 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = call i32 @fputs(ptr noundef @.str.2, ptr noundef %10)
%12 = load ptr, ptr %6, align 8
%13 = call i32 @fclose(ptr noundef %12)
%14 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.3)
store ptr %14, ptr %8, align 8
%15 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%16 = load ptr, ptr %8, align 8
%17 = call i32 @fgets(ptr noundef %15, i32 noundef 128, ptr noundef %16)
%18 = load ptr, ptr %8, align 8
%19 = call i32 @fclose(ptr noundef %18)
%20 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%21 = call i32 @printf(ptr noundef %20)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fputs(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fgets(ptr noundef, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp867q5i9v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"file.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"This is a string\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [128 x i8], align 16
%8 = 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
%9 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = call i32 @fputs(ptr noundef @.str.2, ptr noundef %10)
%12 = load ptr, ptr %6, align 8
%13 = call i32 @fclose(ptr noundef %12)
%14 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.3)
store ptr %14, ptr %8, align 8
%15 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%16 = load ptr, ptr %8, align 8
%17 = call i32 @fgets(ptr noundef %15, i32 noundef 128, ptr noundef %16)
%18 = load ptr, ptr %8, align 8
%19 = call i32 @fclose(ptr noundef %18)
%20 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%21 = call i32 @printf(ptr noundef %20)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fputs(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fgets(ptr noundef, 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"}
|
; ModuleID = '/tmp/tmpwpmbua0o.c'
source_filename = "/tmp/tmpwpmbua0o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stb__temp(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %7, align 4
%10 = icmp sge i32 %8, %9
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %4, align 8
br label %16
13: ; preds = %3
%14 = load i32, ptr %7, align 4
%15 = call ptr @malloc(i32 noundef %14)
store ptr %15, ptr %4, align 8
br label %16
16: ; preds = %13, %11
%17 = load ptr, ptr %4, align 8
ret ptr %17
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwpmbua0o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stb__temp(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %7, align 4
%10 = icmp sge i32 %8, %9
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %4, align 8
br label %16
13: ; preds = %3
%14 = load i32, ptr %7, align 4
%15 = call ptr @malloc(i32 noundef %14)
store ptr %15, ptr %4, align 8
br label %16
16: ; preds = %13, %11
%17 = load ptr, ptr %4, align 8
ret ptr %17
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzqa83vfi.c'
source_filename = "/tmp/tmpzqa83vfi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"charString: \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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printAsCharString(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
store i32 %6, ptr %4, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %8
8: ; preds = %20, %1
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %8
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %18)
br label %20
20: ; preds = %12
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
br label %8, !llvm.loop !6
23: ; preds = %8
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @strlen(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/tmpzqa83vfi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"charString: \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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printAsCharString(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
store i32 %6, ptr %4, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %25
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %19
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
br label %19
19: ; preds = %11
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %1
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @strlen(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/tmp0u57ug_1.c'
source_filename = "/tmp/tmp0u57ug_1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getword(i64 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i64 %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%12 = load i32, ptr %9, align 4
%13 = icmp ult i32 %12, 1
br i1 %13, label %14, label %16
14: ; preds = %4
%15 = load ptr, ptr %7, align 8
store ptr %15, ptr %5, align 8
br label %43
16: ; preds = %4
%17 = load ptr, ptr %8, align 8
%18 = call i32 @strlen(ptr noundef %17)
store i32 %18, ptr %10, align 4
%19 = load i64, ptr %6, align 8
%20 = load i32, ptr %10, align 4
%21 = sext i32 %20 to i64
%22 = srem i64 %19, %21
%23 = trunc i64 %22 to i32
store i32 %23, ptr %11, align 4
%24 = load ptr, ptr %8, align 8
%25 = load i32, ptr %11, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i8, ptr %27, align 1
%29 = load ptr, ptr %7, align 8
%30 = load i32, ptr %9, align 4
%31 = sub i32 %30, 1
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %29, i64 %32
store i8 %28, ptr %33, align 1
%34 = load i64, ptr %6, align 8
%35 = load i32, ptr %10, align 4
%36 = sext i32 %35 to i64
%37 = sdiv i64 %34, %36
%38 = load ptr, ptr %7, align 8
%39 = load ptr, ptr %8, align 8
%40 = load i32, ptr %9, align 4
%41 = sub i32 %40, 1
%42 = call ptr @getword(i64 noundef %37, ptr noundef %38, ptr noundef %39, i32 noundef %41)
store ptr %42, ptr %5, align 8
br label %43
43: ; preds = %16, %14
%44 = load ptr, ptr %5, align 8
ret ptr %44
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0u57ug_1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getword(i64 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i64 %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%12 = load i32, ptr %9, align 4
%13 = icmp ult i32 %12, 1
br i1 %13, label %14, label %16
14: ; preds = %4
%15 = load ptr, ptr %7, align 8
store ptr %15, ptr %5, align 8
br label %43
16: ; preds = %4
%17 = load ptr, ptr %8, align 8
%18 = call i32 @strlen(ptr noundef %17)
store i32 %18, ptr %10, align 4
%19 = load i64, ptr %6, align 8
%20 = load i32, ptr %10, align 4
%21 = sext i32 %20 to i64
%22 = srem i64 %19, %21
%23 = trunc i64 %22 to i32
store i32 %23, ptr %11, align 4
%24 = load ptr, ptr %8, align 8
%25 = load i32, ptr %11, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i8, ptr %27, align 1
%29 = load ptr, ptr %7, align 8
%30 = load i32, ptr %9, align 4
%31 = sub i32 %30, 1
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %29, i64 %32
store i8 %28, ptr %33, align 1
%34 = load i64, ptr %6, align 8
%35 = load i32, ptr %10, align 4
%36 = sext i32 %35 to i64
%37 = sdiv i64 %34, %36
%38 = load ptr, ptr %7, align 8
%39 = load ptr, ptr %8, align 8
%40 = load i32, ptr %9, align 4
%41 = sub i32 %40, 1
%42 = call ptr @getword(i64 noundef %37, ptr noundef %38, ptr noundef %39, i32 noundef %41)
store ptr %42, ptr %5, align 8
br label %43
43: ; preds = %16, %14
%44 = load ptr, ptr %5, align 8
ret ptr %44
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz_haky64.c'
source_filename = "/tmp/tmpz_haky64.c"
target datalayout = "e-m:e-p270: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/tmpz_haky64.c"
target datalayout = "e-m:e-p270: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/tmpxcz7ghng.c'
source_filename = "/tmp/tmpxcz7ghng.c"
target datalayout = "e-m:e-p270: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/tmpxcz7ghng.c"
target datalayout = "e-m:e-p270: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/tmps448ojf_.c'
source_filename = "/tmp/tmps448ojf_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"lines = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"[%d] '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [4 x [8 x i8]], align 16
%7 = alloca i32, align 4
%8 = 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
%9 = getelementptr inbounds [4 x [8 x i8]], ptr %6, i64 0, i64 0
%10 = call i32 @readlines(ptr noundef %9, i32 noundef 8, i32 noundef 4)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %11)
store i32 0, ptr %8, align 4
br label %13
13: ; preds = %24, %2
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %7, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %27
17: ; preds = %13
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [4 x [8 x i8]], ptr %6, i64 0, i64 %20
%22 = getelementptr inbounds [8 x i8], ptr %21, i64 0, i64 0
%23 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %18, ptr noundef %22)
br label %24
24: ; preds = %17
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %8, align 4
br label %13, !llvm.loop !6
27: ; preds = %13
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare i32 @readlines(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps448ojf_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"lines = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"[%d] '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [4 x [8 x i8]], align 16
%7 = alloca i32, align 4
%8 = 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
%9 = getelementptr inbounds [4 x [8 x i8]], ptr %6, i64 0, i64 0
%10 = call i32 @readlines(ptr noundef %9, i32 noundef 8, i32 noundef 4)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %11)
store i32 0, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %29
.lr.ph: ; preds = %2
br label %16
16: ; preds = %.lr.ph, %23
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %8, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [4 x [8 x i8]], ptr %6, i64 0, i64 %19
%21 = getelementptr inbounds [8 x i8], ptr %20, i64 0, i64 0
%22 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %17, ptr noundef %21)
br label %23
23: ; preds = %16
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %2
%30 = load i32, ptr %3, align 4
ret i32 %30
}
declare i32 @readlines(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0fn4uoe5.c'
source_filename = "/tmp/tmp0fn4uoe5.c"
target datalayout = "e-m:e-p270: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/tmp0fn4uoe5.c"
target datalayout = "e-m:e-p270: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/tmpzc8oo4z1.c'
source_filename = "/tmp/tmpzc8oo4z1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_rand(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = call i32 @time(ptr noundef null)
store i32 %6, ptr %5, align 4
store i32 3, ptr %3, align 4
store i32 3, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %5, align 4
%9 = mul i32 %7, %8
%10 = load i32, ptr %4, align 4
%11 = add i32 %9, %10
%12 = load i32, ptr %2, align 4
%13 = urem i32 %11, %12
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
ret i32 %14
}
declare i32 @time(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/tmpzc8oo4z1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_rand(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = call i32 @time(ptr noundef null)
store i32 %6, ptr %5, align 4
store i32 3, ptr %3, align 4
store i32 3, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %5, align 4
%9 = mul i32 %7, %8
%10 = load i32, ptr %4, align 4
%11 = add i32 %9, %10
%12 = load i32, ptr %2, align 4
%13 = urem i32 %11, %12
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
ret i32 %14
}
declare i32 @time(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3_2xuzb3.c'
source_filename = "/tmp/tmp3_2xuzb3.c"
target datalayout = "e-m:e-p270: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/tmp3_2xuzb3.c"
target datalayout = "e-m:e-p270: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__u22bp6.c'
source_filename = "/tmp/tmp__u22bp6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @initialise_fluxes(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
store double 0.000000e+00, ptr %14, align 8
store double 0.000000e+00, ptr %15, align 8
%16 = load ptr, ptr %6, align 8
store ptr %16, ptr %11, align 8
br label %17
17: ; preds = %32, %5
%18 = load ptr, ptr %11, align 8
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, ptr %19, i64 %21
%23 = icmp ult ptr %18, %22
br i1 %23, label %24, label %35
24: ; preds = %17
%25 = call i32 (...) @gaussdev()
%26 = call double @fabs(i32 noundef %25)
%27 = load ptr, ptr %11, align 8
store double %26, ptr %27, align 8
%28 = load ptr, ptr %11, align 8
%29 = load double, ptr %28, align 8
%30 = load double, ptr %14, align 8
%31 = fadd double %30, %29
store double %31, ptr %14, align 8
br label %32
32: ; preds = %24
%33 = load ptr, ptr %11, align 8
%34 = getelementptr inbounds double, ptr %33, i32 1
store ptr %34, ptr %11, align 8
br label %17, !llvm.loop !6
35: ; preds = %17
%36 = load ptr, ptr %6, align 8
store ptr %36, ptr %11, align 8
br label %37
37: ; preds = %54, %35
%38 = load ptr, ptr %11, align 8
%39 = load ptr, ptr %6, align 8
%40 = load i32, ptr %7, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %39, i64 %41
%43 = icmp ult ptr %38, %42
br i1 %43, label %44, label %57
44: ; preds = %37
%45 = load i32, ptr %7, align 4
%46 = sitofp i32 %45 to double
%47 = load double, ptr %15, align 8
%48 = fsub double %46, %47
%49 = load double, ptr %14, align 8
%50 = fdiv double %48, %49
%51 = load ptr, ptr %11, align 8
%52 = load double, ptr %51, align 8
%53 = fmul double %52, %50
store double %53, ptr %51, align 8
br label %54
54: ; preds = %44
%55 = load ptr, ptr %11, align 8
%56 = getelementptr inbounds double, ptr %55, i32 1
store ptr %56, ptr %11, align 8
br label %37, !llvm.loop !8
57: ; preds = %37
%58 = load ptr, ptr %10, align 8
store ptr %58, ptr %13, align 8
%59 = load ptr, ptr %8, align 8
store ptr %59, ptr %12, align 8
br label %60
60: ; preds = %74, %57
%61 = load ptr, ptr %12, align 8
%62 = load ptr, ptr %8, align 8
%63 = load i32, ptr %9, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds ptr, ptr %62, i64 %64
%66 = icmp ult ptr %61, %65
br i1 %66, label %67, label %77
67: ; preds = %60
%68 = load ptr, ptr %13, align 8
%69 = load double, ptr %68, align 8
%70 = load ptr, ptr %12, align 8
%71 = load ptr, ptr %70, align 8
store double %69, ptr %71, align 8
%72 = load ptr, ptr %13, align 8
%73 = getelementptr inbounds double, ptr %72, i32 1
store ptr %73, ptr %13, align 8
br label %74
74: ; preds = %67
%75 = load ptr, ptr %12, align 8
%76 = getelementptr inbounds ptr, ptr %75, i32 1
store ptr %76, ptr %12, align 8
br label %60, !llvm.loop !9
77: ; preds = %60
ret void
}
declare double @fabs(i32 noundef) #1
declare i32 @gaussdev(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp__u22bp6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @initialise_fluxes(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
store double 0.000000e+00, ptr %14, align 8
store double 0.000000e+00, ptr %15, align 8
%16 = load ptr, ptr %6, align 8
store ptr %16, ptr %11, align 8
%17 = load ptr, ptr %11, align 8
%18 = load ptr, ptr %6, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds double, ptr %18, i64 %20
%22 = icmp ult ptr %17, %21
br i1 %22, label %.lr.ph, label %40
.lr.ph: ; preds = %5
br label %23
23: ; preds = %.lr.ph, %31
%24 = call i32 (...) @gaussdev()
%25 = call double @fabs(i32 noundef %24)
%26 = load ptr, ptr %11, align 8
store double %25, ptr %26, align 8
%27 = load ptr, ptr %11, align 8
%28 = load double, ptr %27, align 8
%29 = load double, ptr %14, align 8
%30 = fadd double %29, %28
store double %30, ptr %14, align 8
br label %31
31: ; preds = %23
%32 = load ptr, ptr %11, align 8
%33 = getelementptr inbounds double, ptr %32, i32 1
store ptr %33, ptr %11, align 8
%34 = load ptr, ptr %11, align 8
%35 = load ptr, ptr %6, align 8
%36 = load i32, ptr %7, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, ptr %35, i64 %37
%39 = icmp ult ptr %34, %38
br i1 %39, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %40
40: ; preds = %._crit_edge, %5
%41 = load ptr, ptr %6, align 8
store ptr %41, ptr %11, align 8
%42 = load ptr, ptr %11, align 8
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %7, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, ptr %43, i64 %45
%47 = icmp ult ptr %42, %46
br i1 %47, label %.lr.ph2, label %67
.lr.ph2: ; preds = %40
br label %48
48: ; preds = %.lr.ph2, %58
%49 = load i32, ptr %7, align 4
%50 = sitofp i32 %49 to double
%51 = load double, ptr %15, align 8
%52 = fsub double %50, %51
%53 = load double, ptr %14, align 8
%54 = fdiv double %52, %53
%55 = load ptr, ptr %11, align 8
%56 = load double, ptr %55, align 8
%57 = fmul double %56, %54
store double %57, ptr %55, align 8
br label %58
58: ; preds = %48
%59 = load ptr, ptr %11, align 8
%60 = getelementptr inbounds double, ptr %59, i32 1
store ptr %60, ptr %11, align 8
%61 = load ptr, ptr %11, align 8
%62 = load ptr, ptr %6, align 8
%63 = load i32, ptr %7, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, ptr %62, i64 %64
%66 = icmp ult ptr %61, %65
br i1 %66, label %48, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %58
br label %67
67: ; preds = %._crit_edge3, %40
%68 = load ptr, ptr %10, align 8
store ptr %68, ptr %13, align 8
%69 = load ptr, ptr %8, align 8
store ptr %69, ptr %12, align 8
%70 = load ptr, ptr %12, align 8
%71 = load ptr, ptr %8, align 8
%72 = load i32, ptr %9, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds ptr, ptr %71, i64 %73
%75 = icmp ult ptr %70, %74
br i1 %75, label %.lr.ph5, label %92
.lr.ph5: ; preds = %67
br label %76
76: ; preds = %.lr.ph5, %83
%77 = load ptr, ptr %13, align 8
%78 = load double, ptr %77, align 8
%79 = load ptr, ptr %12, align 8
%80 = load ptr, ptr %79, align 8
store double %78, ptr %80, align 8
%81 = load ptr, ptr %13, align 8
%82 = getelementptr inbounds double, ptr %81, i32 1
store ptr %82, ptr %13, align 8
br label %83
83: ; preds = %76
%84 = load ptr, ptr %12, align 8
%85 = getelementptr inbounds ptr, ptr %84, i32 1
store ptr %85, ptr %12, align 8
%86 = load ptr, ptr %12, align 8
%87 = load ptr, ptr %8, align 8
%88 = load i32, ptr %9, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds ptr, ptr %87, i64 %89
%91 = icmp ult ptr %86, %90
br i1 %91, label %76, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %83
br label %92
92: ; preds = %._crit_edge6, %67
ret void
}
declare double @fabs(i32 noundef) #1
declare i32 @gaussdev(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpxn_bajjo.c'
source_filename = "/tmp/tmpxn_bajjo.c"
target datalayout = "e-m:e-p270: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/tmpxn_bajjo.c"
target datalayout = "e-m:e-p270: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/tmpyvnkusab.c'
source_filename = "/tmp/tmpyvnkusab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.anon = type { double }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @my_random_double() #0 {
%1 = alloca i64, align 8
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca %union.anon, align 8
store i64 1022, ptr %3, align 8
store i32 1, ptr %4, align 4
br label %6
6: ; preds = %0, %14
%7 = call i64 (...) @random()
store i64 %7, ptr %1, align 8
%8 = load i64, ptr %1, align 8
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i64, ptr %3, align 8
%12 = sub nsw i64 %11, 63
store i64 %12, ptr %3, align 8
br label %14
13: ; preds = %6
br label %15
14: ; preds = %10
br label %6
15: ; preds = %13
%16 = load i64, ptr %1, align 8
%17 = shl i64 %16, 12
store i64 %17, ptr %1, align 8
%18 = call i64 (...) @random()
%19 = load i64, ptr %1, align 8
%20 = or i64 %19, %18
store i64 %20, ptr %1, align 8
br label %21
21: ; preds = %27, %15
%22 = load i64, ptr %1, align 8
%23 = load i32, ptr %4, align 4
%24 = sext i32 %23 to i64
%25 = and i64 %22, %24
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %21
%28 = load i32, ptr %4, align 4
%29 = shl i32 %28, 1
store i32 %29, ptr %4, align 4
%30 = load i64, ptr %3, align 8
%31 = add nsw i64 %30, -1
store i64 %31, ptr %3, align 8
br label %21, !llvm.loop !6
32: ; preds = %21
%33 = load i64, ptr %1, align 8
%34 = ashr i64 %33, 11
%35 = trunc i64 %34 to i32
store i32 %35, ptr %2, align 4
%36 = load i64, ptr %3, align 8
%37 = shl i64 %36, 52
%38 = load i32, ptr %2, align 4
%39 = sext i32 %38 to i64
%40 = or i64 %37, %39
store i64 %40, ptr %5, align 8
%41 = load double, ptr %5, align 8
ret double %41
}
declare i64 @random(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyvnkusab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.anon = type { double }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @my_random_double() #0 {
%1 = alloca i64, align 8
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca %union.anon, align 8
store i64 1022, ptr %3, align 8
store i32 1, ptr %4, align 4
%6 = call i64 (...) @random()
store i64 %6, ptr %1, align 8
%7 = load i64, ptr %1, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label %.lr.ph, label %12
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %13
%10 = load i64, ptr %3, align 8
%11 = sub nsw i64 %10, 63
store i64 %11, ptr %3, align 8
br label %13
._crit_edge: ; preds = %13
br label %12
12: ; preds = %._crit_edge, %0
br label %17
13: ; preds = %9
%14 = call i64 (...) @random()
store i64 %14, ptr %1, align 8
%15 = load i64, ptr %1, align 8
%16 = icmp eq i64 %15, 0
br i1 %16, label %9, label %._crit_edge
17: ; preds = %12
%18 = load i64, ptr %1, align 8
%19 = shl i64 %18, 12
store i64 %19, ptr %1, align 8
%20 = call i64 (...) @random()
%21 = load i64, ptr %1, align 8
%22 = or i64 %21, %20
store i64 %22, ptr %1, align 8
%23 = load i64, ptr %1, align 8
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = and i64 %23, %25
%27 = icmp ne i64 %26, 0
br i1 %27, label %.lr.ph2, label %38
.lr.ph2: ; preds = %17
br label %28
28: ; preds = %.lr.ph2, %28
%29 = load i32, ptr %4, align 4
%30 = shl i32 %29, 1
store i32 %30, ptr %4, align 4
%31 = load i64, ptr %3, align 8
%32 = add nsw i64 %31, -1
store i64 %32, ptr %3, align 8
%33 = load i64, ptr %1, align 8
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = and i64 %33, %35
%37 = icmp ne i64 %36, 0
br i1 %37, label %28, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %28
br label %38
38: ; preds = %._crit_edge3, %17
%39 = load i64, ptr %1, align 8
%40 = ashr i64 %39, 11
%41 = trunc i64 %40 to i32
store i32 %41, ptr %2, align 4
%42 = load i64, ptr %3, align 8
%43 = shl i64 %42, 52
%44 = load i32, ptr %2, align 4
%45 = sext i32 %44 to i64
%46 = or i64 %43, %45
store i64 %46, ptr %5, align 8
%47 = load double, ptr %5, align 8
ret double %47
}
declare i64 @random(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmplok6hju_.c'
source_filename = "/tmp/tmplok6hju_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"After Converting to Upper Case: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @convertToUpper(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @len(ptr noundef %5)
store i32 %6, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %45, %1
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %48
15: ; preds = %7
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp sge i32 %21, 97
br i1 %22, label %23, label %44
23: ; preds = %15
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp sle i32 %29, 122
br i1 %30, label %31, label %44
31: ; preds = %23
%32 = load ptr, ptr %2, align 8
%33 = load i32, ptr %3, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = sub nsw i32 %37, 32
%39 = trunc i32 %38 to i8
%40 = load ptr, ptr %2, align 8
%41 = load i32, ptr %3, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
store i8 %39, ptr %43, align 1
br label %44
44: ; preds = %31, %23, %15
br label %45
45: ; preds = %44
%46 = load i32, ptr %3, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %3, align 4
br label %7, !llvm.loop !6
48: ; preds = %7
%49 = load ptr, ptr %2, align 8
%50 = call i32 @printf(ptr noundef @.str, ptr noundef %49)
ret void
}
declare i32 @len(ptr 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplok6hju_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"After Converting to Upper Case: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @convertToUpper(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @len(ptr noundef %5)
store i32 %6, ptr %4, align 4
store i32 0, ptr %3, align 4
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %7, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph, label %54
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %44
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp sge i32 %20, 97
br i1 %21, label %22, label %43
22: ; preds = %14
%23 = load ptr, ptr %2, align 8
%24 = load i32, ptr %3, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp sle i32 %28, 122
br i1 %29, label %30, label %43
30: ; preds = %22
%31 = load ptr, ptr %2, align 8
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = sub nsw i32 %36, 32
%38 = trunc i32 %37 to i8
%39 = load ptr, ptr %2, align 8
%40 = load i32, ptr %3, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
store i8 %38, ptr %42, align 1
br label %43
43: ; preds = %30, %22, %14
br label %44
44: ; preds = %43
%45 = load i32, ptr %3, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %3, align 4
%47 = load ptr, ptr %2, align 8
%48 = load i32, ptr %3, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 0
br i1 %53, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %54
54: ; preds = %._crit_edge, %1
%55 = load ptr, ptr %2, align 8
%56 = call i32 @printf(ptr noundef @.str, ptr noundef %55)
ret void
}
declare i32 @len(ptr 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"}
|
; ModuleID = '/tmp/tmp5fhlwp06.c'
source_filename = "/tmp/tmp5fhlwp06.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [28 x i8] c"The number you input is:%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%d=-\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d=\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d*\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 1, ptr %1, align 4
store i32 2, ptr %2, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%4 = load i32, ptr %1, align 4
%5 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4)
%6 = load i32, ptr %1, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i32, ptr %1, align 4
%10 = call i32 @printf(ptr noundef @.str.2, i32 noundef %9)
br label %14
11: ; preds = %0
%12 = load i32, ptr %1, align 4
%13 = call i32 @printf(ptr noundef @.str.3, i32 noundef %12)
br label %14
14: ; preds = %11, %8
%15 = load i32, ptr %1, align 4
%16 = call i32 @abs(i32 noundef %15) #3
store i32 %16, ptr %1, align 4
br label %17
17: ; preds = %40, %14
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %1, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %41
21: ; preds = %17
%22 = load i32, ptr %1, align 4
%23 = load i32, ptr %2, align 4
%24 = srem i32 %22, %23
%25 = icmp eq i32 0, %24
br i1 %25, label %26, label %32
26: ; preds = %21
%27 = load i32, ptr %2, align 4
%28 = call i32 @printf(ptr noundef @.str.4, i32 noundef %27)
%29 = load i32, ptr %1, align 4
%30 = load i32, ptr %2, align 4
%31 = sdiv i32 %29, %30
store i32 %31, ptr %1, align 4
br label %35
32: ; preds = %21
%33 = load i32, ptr %2, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %2, align 4
br label %35
35: ; preds = %32, %26
%36 = load i32, ptr %2, align 4
%37 = load i32, ptr %1, align 4
%38 = icmp eq i32 %36, %37
br i1 %38, label %39, label %40
39: ; preds = %35
br label %41
40: ; preds = %35
br label %17, !llvm.loop !6
41: ; preds = %39, %17
%42 = load i32, ptr %1, align 4
%43 = call i32 @printf(ptr noundef @.str.5, i32 noundef %42)
ret void
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5fhlwp06.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [28 x i8] c"The number you input is:%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%d=-\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d=\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d*\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 1, ptr %1, align 4
store i32 2, ptr %2, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%4 = load i32, ptr %1, align 4
%5 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4)
%6 = load i32, ptr %1, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i32, ptr %1, align 4
%10 = call i32 @printf(ptr noundef @.str.2, i32 noundef %9)
br label %14
11: ; preds = %0
%12 = load i32, ptr %1, align 4
%13 = call i32 @printf(ptr noundef @.str.3, i32 noundef %12)
br label %14
14: ; preds = %11, %8
%15 = load i32, ptr %1, align 4
%16 = call i32 @abs(i32 noundef %15) #3
store i32 %16, ptr %1, align 4
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %1, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %14
br label %24
20: ; preds = %38
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %1, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %..loopexit_crit_edge, !llvm.loop !6
24: ; preds = %.lr.ph, %20
%25 = load i32, ptr %1, align 4
%26 = load i32, ptr %2, align 4
%27 = srem i32 %25, %26
%28 = icmp eq i32 0, %27
br i1 %28, label %29, label %35
29: ; preds = %24
%30 = load i32, ptr %2, align 4
%31 = call i32 @printf(ptr noundef @.str.4, i32 noundef %30)
%32 = load i32, ptr %1, align 4
%33 = load i32, ptr %2, align 4
%34 = sdiv i32 %32, %33
store i32 %34, ptr %1, align 4
br label %38
35: ; preds = %24
%36 = load i32, ptr %2, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %2, align 4
br label %38
38: ; preds = %35, %29
%39 = load i32, ptr %2, align 4
%40 = load i32, ptr %1, align 4
%41 = icmp eq i32 %39, %40
br i1 %41, label %42, label %20
42: ; preds = %38
br label %43
..loopexit_crit_edge: ; preds = %20
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %14
br label %43
43: ; preds = %.loopexit, %42
%44 = load i32, ptr %1, align 4
%45 = call i32 @printf(ptr noundef @.str.5, i32 noundef %44)
ret void
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4s2tndxv.c'
source_filename = "/tmp/tmp4s2tndxv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S_IRWXU = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [54 x i8] c"\09Failed Phase 2: This call did something unexpected.\0A\00", align 1
@.str.1 = private unnamed_addr constant [62 x i8] c"\09Fail Phase 2: Aborting test because of catastrophic failure\0A\00", align 1
@F_OK = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @BasicFile() #0 {
%1 = alloca i32, align 4
%2 = alloca [8192 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 8192, i1 false)
store i32 0, ptr %5, align 4
%6 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @xtmpnam(ptr noundef %6)
%8 = call i32 (...) @testbreak()
%9 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%10 = load i32, ptr @S_IRWXU, align 4
%11 = call i32 @creat_test(ptr noundef %9, i32 noundef %10)
store i32 %11, ptr %3, align 4
%12 = call i32 @expect_gez(i32 noundef 0, i32 noundef %11)
store i32 %12, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %0
%16 = call i32 @printf(ptr noundef @.str)
%17 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %18
18: ; preds = %15, %0
%19 = load i32, ptr %4, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %25
21: ; preds = %18
%22 = call i32 @printf(ptr noundef @.str.1)
%23 = call i32 @fflush(ptr noundef null)
%24 = load i32, ptr %4, align 4
store i32 %24, ptr %1, align 4
br label %125
25: ; preds = %18
%26 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%27 = load i32, ptr @F_OK, align 4
%28 = call i32 @access_test(ptr noundef %26, i32 noundef %27)
%29 = call i32 @expect_zng(i32 noundef 0, i32 noundef %28)
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %25
%33 = call i32 @printf(ptr noundef @.str)
%34 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %35
35: ; preds = %32, %25
%36 = load i32, ptr %3, align 4
%37 = call i32 @close_test(i32 noundef %36)
%38 = call i32 @expect_zng(i32 noundef 0, i32 noundef %37)
store i32 %38, ptr %4, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %35
%42 = call i32 @printf(ptr noundef @.str)
%43 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %44
44: ; preds = %41, %35
%45 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%46 = call i32 @unlink_test(ptr noundef %45)
%47 = call i32 @expect_zng(i32 noundef 0, i32 noundef %46)
store i32 %47, ptr %4, align 4
%48 = load i32, ptr %4, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %53
50: ; preds = %44
%51 = call i32 @printf(ptr noundef @.str)
%52 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %53
53: ; preds = %50, %44
%54 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%55 = load i32, ptr @F_OK, align 4
%56 = call i32 @access_test(ptr noundef %54, i32 noundef %55)
%57 = call i32 @expect_zng(i32 noundef -1, i32 noundef %56)
store i32 %57, ptr %4, align 4
%58 = load i32, ptr %4, align 4
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %53
%61 = call i32 @printf(ptr noundef @.str)
%62 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %63
63: ; preds = %60, %53
%64 = call i32 (...) @testbreak()
%65 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%66 = load i32, ptr @O_CREAT, align 4
%67 = load i32, ptr @O_TRUNC, align 4
%68 = or i32 %66, %67
%69 = load i32, ptr @S_IRWXU, align 4
%70 = call i32 @open_test(ptr noundef %65, i32 noundef %68, i32 noundef %69)
store i32 %70, ptr %3, align 4
%71 = call i32 @expect_gez(i32 noundef 0, i32 noundef %70)
store i32 %71, ptr %4, align 4
%72 = load i32, ptr %4, align 4
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %77
74: ; preds = %63
%75 = call i32 @printf(ptr noundef @.str)
%76 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %77
77: ; preds = %74, %63
%78 = load i32, ptr %4, align 4
%79 = icmp eq i32 %78, -1
br i1 %79, label %80, label %84
80: ; preds = %77
%81 = call i32 @printf(ptr noundef @.str.1)
%82 = call i32 @fflush(ptr noundef null)
%83 = load i32, ptr %4, align 4
store i32 %83, ptr %1, align 4
br label %125
84: ; preds = %77
%85 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%86 = load i32, ptr @F_OK, align 4
%87 = call i32 @access_test(ptr noundef %85, i32 noundef %86)
%88 = call i32 @expect_zng(i32 noundef 0, i32 noundef %87)
store i32 %88, ptr %4, align 4
%89 = load i32, ptr %4, align 4
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %94
91: ; preds = %84
%92 = call i32 @printf(ptr noundef @.str)
%93 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %94
94: ; preds = %91, %84
%95 = load i32, ptr %3, align 4
%96 = call i32 @close_test(i32 noundef %95)
%97 = call i32 @expect_zng(i32 noundef 0, i32 noundef %96)
store i32 %97, ptr %4, align 4
%98 = load i32, ptr %4, align 4
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %103
100: ; preds = %94
%101 = call i32 @printf(ptr noundef @.str)
%102 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %103
103: ; preds = %100, %94
%104 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%105 = call i32 @unlink_test(ptr noundef %104)
%106 = call i32 @expect_zng(i32 noundef 0, i32 noundef %105)
store i32 %106, ptr %4, align 4
%107 = load i32, ptr %4, align 4
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %112
109: ; preds = %103
%110 = call i32 @printf(ptr noundef @.str)
%111 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %112
112: ; preds = %109, %103
%113 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%114 = load i32, ptr @F_OK, align 4
%115 = call i32 @access_test(ptr noundef %113, i32 noundef %114)
%116 = call i32 @expect_zng(i32 noundef -1, i32 noundef %115)
store i32 %116, ptr %4, align 4
%117 = load i32, ptr %4, align 4
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %112
%120 = call i32 @printf(ptr noundef @.str)
%121 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %122
122: ; preds = %119, %112
%123 = call i32 (...) @testbreak()
%124 = load i32, ptr %5, align 4
store i32 %124, ptr %1, align 4
br label %125
125: ; preds = %122, %80, %21
%126 = load i32, ptr %1, align 4
ret i32 %126
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @xtmpnam(ptr noundef) #2
declare i32 @testbreak(...) #2
declare i32 @expect_gez(i32 noundef, i32 noundef) #2
declare i32 @creat_test(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
declare i32 @fflush(ptr noundef) #2
declare i32 @expect_zng(i32 noundef, i32 noundef) #2
declare i32 @access_test(ptr noundef, i32 noundef) #2
declare i32 @close_test(i32 noundef) #2
declare i32 @unlink_test(ptr noundef) #2
declare i32 @open_test(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4s2tndxv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S_IRWXU = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [54 x i8] c"\09Failed Phase 2: This call did something unexpected.\0A\00", align 1
@.str.1 = private unnamed_addr constant [62 x i8] c"\09Fail Phase 2: Aborting test because of catastrophic failure\0A\00", align 1
@F_OK = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @BasicFile() #0 {
%1 = alloca i32, align 4
%2 = alloca [8192 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 8192, i1 false)
store i32 0, ptr %5, align 4
%6 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @xtmpnam(ptr noundef %6)
%8 = call i32 (...) @testbreak()
%9 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%10 = load i32, ptr @S_IRWXU, align 4
%11 = call i32 @creat_test(ptr noundef %9, i32 noundef %10)
store i32 %11, ptr %3, align 4
%12 = call i32 @expect_gez(i32 noundef 0, i32 noundef %11)
store i32 %12, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %0
%16 = call i32 @printf(ptr noundef @.str)
%17 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %18
18: ; preds = %15, %0
%19 = load i32, ptr %4, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %25
21: ; preds = %18
%22 = call i32 @printf(ptr noundef @.str.1)
%23 = call i32 @fflush(ptr noundef null)
%24 = load i32, ptr %4, align 4
store i32 %24, ptr %1, align 4
br label %125
25: ; preds = %18
%26 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%27 = load i32, ptr @F_OK, align 4
%28 = call i32 @access_test(ptr noundef %26, i32 noundef %27)
%29 = call i32 @expect_zng(i32 noundef 0, i32 noundef %28)
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %25
%33 = call i32 @printf(ptr noundef @.str)
%34 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %35
35: ; preds = %32, %25
%36 = load i32, ptr %3, align 4
%37 = call i32 @close_test(i32 noundef %36)
%38 = call i32 @expect_zng(i32 noundef 0, i32 noundef %37)
store i32 %38, ptr %4, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %35
%42 = call i32 @printf(ptr noundef @.str)
%43 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %44
44: ; preds = %41, %35
%45 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%46 = call i32 @unlink_test(ptr noundef %45)
%47 = call i32 @expect_zng(i32 noundef 0, i32 noundef %46)
store i32 %47, ptr %4, align 4
%48 = load i32, ptr %4, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %53
50: ; preds = %44
%51 = call i32 @printf(ptr noundef @.str)
%52 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %53
53: ; preds = %50, %44
%54 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%55 = load i32, ptr @F_OK, align 4
%56 = call i32 @access_test(ptr noundef %54, i32 noundef %55)
%57 = call i32 @expect_zng(i32 noundef -1, i32 noundef %56)
store i32 %57, ptr %4, align 4
%58 = load i32, ptr %4, align 4
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %53
%61 = call i32 @printf(ptr noundef @.str)
%62 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %63
63: ; preds = %60, %53
%64 = call i32 (...) @testbreak()
%65 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%66 = load i32, ptr @O_CREAT, align 4
%67 = load i32, ptr @O_TRUNC, align 4
%68 = or i32 %66, %67
%69 = load i32, ptr @S_IRWXU, align 4
%70 = call i32 @open_test(ptr noundef %65, i32 noundef %68, i32 noundef %69)
store i32 %70, ptr %3, align 4
%71 = call i32 @expect_gez(i32 noundef 0, i32 noundef %70)
store i32 %71, ptr %4, align 4
%72 = load i32, ptr %4, align 4
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %77
74: ; preds = %63
%75 = call i32 @printf(ptr noundef @.str)
%76 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %77
77: ; preds = %74, %63
%78 = load i32, ptr %4, align 4
%79 = icmp eq i32 %78, -1
br i1 %79, label %80, label %84
80: ; preds = %77
%81 = call i32 @printf(ptr noundef @.str.1)
%82 = call i32 @fflush(ptr noundef null)
%83 = load i32, ptr %4, align 4
store i32 %83, ptr %1, align 4
br label %125
84: ; preds = %77
%85 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%86 = load i32, ptr @F_OK, align 4
%87 = call i32 @access_test(ptr noundef %85, i32 noundef %86)
%88 = call i32 @expect_zng(i32 noundef 0, i32 noundef %87)
store i32 %88, ptr %4, align 4
%89 = load i32, ptr %4, align 4
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %94
91: ; preds = %84
%92 = call i32 @printf(ptr noundef @.str)
%93 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %94
94: ; preds = %91, %84
%95 = load i32, ptr %3, align 4
%96 = call i32 @close_test(i32 noundef %95)
%97 = call i32 @expect_zng(i32 noundef 0, i32 noundef %96)
store i32 %97, ptr %4, align 4
%98 = load i32, ptr %4, align 4
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %103
100: ; preds = %94
%101 = call i32 @printf(ptr noundef @.str)
%102 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %103
103: ; preds = %100, %94
%104 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%105 = call i32 @unlink_test(ptr noundef %104)
%106 = call i32 @expect_zng(i32 noundef 0, i32 noundef %105)
store i32 %106, ptr %4, align 4
%107 = load i32, ptr %4, align 4
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %112
109: ; preds = %103
%110 = call i32 @printf(ptr noundef @.str)
%111 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %112
112: ; preds = %109, %103
%113 = getelementptr inbounds [8192 x i8], ptr %2, i64 0, i64 0
%114 = load i32, ptr @F_OK, align 4
%115 = call i32 @access_test(ptr noundef %113, i32 noundef %114)
%116 = call i32 @expect_zng(i32 noundef -1, i32 noundef %115)
store i32 %116, ptr %4, align 4
%117 = load i32, ptr %4, align 4
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %112
%120 = call i32 @printf(ptr noundef @.str)
%121 = call i32 @fflush(ptr noundef null)
store i32 -1, ptr %5, align 4
br label %122
122: ; preds = %119, %112
%123 = call i32 (...) @testbreak()
%124 = load i32, ptr %5, align 4
store i32 %124, ptr %1, align 4
br label %125
125: ; preds = %122, %80, %21
%126 = load i32, ptr %1, align 4
ret i32 %126
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @xtmpnam(ptr noundef) #2
declare i32 @testbreak(...) #2
declare i32 @expect_gez(i32 noundef, i32 noundef) #2
declare i32 @creat_test(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
declare i32 @fflush(ptr noundef) #2
declare i32 @expect_zng(i32 noundef, i32 noundef) #2
declare i32 @access_test(ptr noundef, i32 noundef) #2
declare i32 @close_test(i32 noundef) #2
declare i32 @unlink_test(ptr noundef) #2
declare i32 @open_test(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxmptnug_.c'
source_filename = "/tmp/tmpxmptnug_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp sgt i32 %5, 46
br i1 %6, label %11, label %7
7: ; preds = %0
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = icmp eq i64 %9, -2147483648
br i1 %10, label %11, label %12
11: ; preds = %7, %0
store i32 0, ptr %1, align 4
br label %23
12: ; preds = %7
%13 = load i32, ptr %2, align 4
%14 = call i32 @fibonacci(i32 noundef %13)
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = sub nsw i32 %16, 1
%18 = icmp sge i32 %15, %17
br i1 %18, label %19, label %20
19: ; preds = %12
store i32 0, ptr %1, align 4
br label %23
20: ; preds = %12
br label %21
21: ; preds = %20
%22 = call i32 (...) @__VERIFIER_error()
br label %23
23: ; preds = %11, %19, %21
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @__VERIFIER_nondet_int(...) #1
declare i32 @fibonacci(i32 noundef) #1
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/tmpxmptnug_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp sgt i32 %5, 46
br i1 %6, label %11, label %7
7: ; preds = %0
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = icmp eq i64 %9, -2147483648
br i1 %10, label %11, label %12
11: ; preds = %7, %0
store i32 0, ptr %1, align 4
br label %23
12: ; preds = %7
%13 = load i32, ptr %2, align 4
%14 = call i32 @fibonacci(i32 noundef %13)
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = sub nsw i32 %16, 1
%18 = icmp sge i32 %15, %17
br i1 %18, label %19, label %20
19: ; preds = %12
store i32 0, ptr %1, align 4
br label %23
20: ; preds = %12
br label %21
21: ; preds = %20
%22 = call i32 (...) @__VERIFIER_error()
br label %23
23: ; preds = %21, %19, %11
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @__VERIFIER_nondet_int(...) #1
declare i32 @fibonacci(i32 noundef) #1
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/tmpu1cgrv9u.c'
source_filename = "/tmp/tmpu1cgrv9u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr (...) @active_processes()
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = call i32 @print_process_tree(ptr noundef %8)
%10 = load ptr, ptr %6, align 8
%11 = call i32 @free(ptr noundef %10)
%12 = load i32, ptr @EXIT_SUCCESS, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
}
declare ptr @active_processes(...) #1
declare i32 @print_process_tree(ptr noundef) #1
declare i32 @free(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu1cgrv9u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr (...) @active_processes()
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = call i32 @print_process_tree(ptr noundef %8)
%10 = load ptr, ptr %6, align 8
%11 = call i32 @free(ptr noundef %10)
%12 = load i32, ptr @EXIT_SUCCESS, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
}
declare ptr @active_processes(...) #1
declare i32 @print_process_tree(ptr noundef) #1
declare i32 @free(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8htj9qpb.c'
source_filename = "/tmp/tmp8htj9qpb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcc_dcopy_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr 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 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 ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = load ptr, ptr %9, align 8
%15 = load ptr, ptr %10, align 8
%16 = call i32 @dcopy_(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15)
ret void
}
declare i32 @dcopy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8htj9qpb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcc_dcopy_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr 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 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 ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = load ptr, ptr %9, align 8
%15 = load ptr, ptr %10, align 8
%16 = call i32 @dcopy_(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15)
ret void
}
declare i32 @dcopy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyveho06j.c'
source_filename = "/tmp/tmpyveho06j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"Intercala(%2d, %2d, %2d, v)\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"Inter \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @MergesortI(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 1, ptr %7, align 4
br label %8
8: ; preds = %47, %2
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %52
12: ; preds = %8
store i32 0, ptr %5, align 4
br label %13
13: ; preds = %29, %12
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %7, align 4
%16 = add nsw i32 %14, %15
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %47
19: ; preds = %13
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %7, align 4
%22 = mul nsw i32 2, %21
%23 = add nsw i32 %20, %22
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %3, align 4
%26 = icmp sgt i32 %24, %25
br i1 %26, label %27, label %29
27: ; preds = %19
%28 = load i32, ptr %3, align 4
store i32 %28, ptr %6, align 4
br label %29
29: ; preds = %27, %19
%30 = load i32, ptr %5, align 4
%31 = load i32, ptr %5, align 4
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %31, %32
%34 = load i32, ptr %6, align 4
%35 = call i32 @printf(ptr noundef @.str, i32 noundef %30, i32 noundef %33, i32 noundef %34)
%36 = load i32, ptr %5, align 4
%37 = load i32, ptr %5, align 4
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %37, %38
%40 = load i32, ptr %6, align 4
%41 = load ptr, ptr %4, align 8
%42 = call i32 @Intercala(i32 noundef %36, i32 noundef %39, i32 noundef %40, ptr noundef %41)
%43 = load i32, ptr %5, align 4
%44 = load i32, ptr %7, align 4
%45 = mul nsw i32 2, %44
%46 = add nsw i32 %43, %45
store i32 %46, ptr %5, align 4
br label %13, !llvm.loop !6
47: ; preds = %13
%48 = load i32, ptr %7, align 4
%49 = mul nsw i32 2, %48
store i32 %49, ptr %7, align 4
%50 = load ptr, ptr %4, align 8
%51 = call i32 @debug(ptr noundef @.str.1, ptr noundef %50)
br label %8, !llvm.loop !8
52: ; preds = %8
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @Intercala(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @debug(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/tmpyveho06j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"Intercala(%2d, %2d, %2d, v)\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"Inter \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @MergesortI(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 1, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph2, label %58
.lr.ph2: ; preds = %2
br label %11
11: ; preds = %.lr.ph2, %50
store i32 0, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %7, align 4
%14 = add nsw i32 %12, %13
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %50
.lr.ph: ; preds = %11
br label %17
17: ; preds = %.lr.ph, %27
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %7, align 4
%20 = mul nsw i32 2, %19
%21 = add nsw i32 %18, %20
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp sgt i32 %22, %23
br i1 %24, label %25, label %27
25: ; preds = %17
%26 = load i32, ptr %3, align 4
store i32 %26, ptr %6, align 4
br label %27
27: ; preds = %25, %17
%28 = load i32, ptr %5, align 4
%29 = load i32, ptr %5, align 4
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %29, %30
%32 = load i32, ptr %6, align 4
%33 = call i32 @printf(ptr noundef @.str, i32 noundef %28, i32 noundef %31, i32 noundef %32)
%34 = load i32, ptr %5, align 4
%35 = load i32, ptr %5, align 4
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %35, %36
%38 = load i32, ptr %6, align 4
%39 = load ptr, ptr %4, align 8
%40 = call i32 @Intercala(i32 noundef %34, i32 noundef %37, i32 noundef %38, ptr noundef %39)
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %7, align 4
%43 = mul nsw i32 2, %42
%44 = add nsw i32 %41, %43
store i32 %44, ptr %5, align 4
%45 = load i32, ptr %5, align 4
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %45, %46
%48 = load i32, ptr %3, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %50
50: ; preds = %._crit_edge, %11
%51 = load i32, ptr %7, align 4
%52 = mul nsw i32 2, %51
store i32 %52, ptr %7, align 4
%53 = load ptr, ptr %4, align 8
%54 = call i32 @debug(ptr noundef @.str.1, ptr noundef %53)
%55 = load i32, ptr %7, align 4
%56 = load i32, ptr %3, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %11, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %58
58: ; preds = %._crit_edge3, %2
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @Intercala(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @debug(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/tmpdj1jawv5.c'
source_filename = "/tmp/tmpdj1jawv5.c"
target datalayout = "e-m:e-p270: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 void @_start() #0 {
%1 = alloca %struct.timeval, align 4
%2 = alloca [18 x i8], align 16
%3 = alloca i32, align 4
%4 = call i64 @gettimeofday(ptr noundef %1, ptr noundef null)
%5 = icmp eq i64 0, %4
br i1 %5, label %6, label %31
6: ; preds = %0
%7 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%8 = load i32, ptr %7, align 4
%9 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @itoa(i32 noundef %8, ptr noundef %9, i32 noundef 10)
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = sext i32 %11 to i64
%14 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 %13
store i8 58, ptr %14, align 1
%15 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%16 = load i32, ptr %15, align 4
%17 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 0
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = call i32 @itoa(i32 noundef %16, ptr noundef %20, i32 noundef 6)
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, %21
store i32 %23, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
%26 = sext i32 %24 to i64
%27 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 %26
store i8 10, ptr %27, align 1
%28 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 0
%29 = load i32, ptr %3, align 4
%30 = call i32 @write(i32 noundef 1, ptr noundef %28, i32 noundef %29)
br label %31
31: ; preds = %6, %0
%32 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i64 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @itoa(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdj1jawv5.c"
target datalayout = "e-m:e-p270: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 void @_start() #0 {
%1 = alloca %struct.timeval, align 4
%2 = alloca [18 x i8], align 16
%3 = alloca i32, align 4
%4 = call i64 @gettimeofday(ptr noundef %1, ptr noundef null)
%5 = icmp eq i64 0, %4
br i1 %5, label %6, label %31
6: ; preds = %0
%7 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%8 = load i32, ptr %7, align 4
%9 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @itoa(i32 noundef %8, ptr noundef %9, i32 noundef 10)
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = sext i32 %11 to i64
%14 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 %13
store i8 58, ptr %14, align 1
%15 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%16 = load i32, ptr %15, align 4
%17 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 0
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = call i32 @itoa(i32 noundef %16, ptr noundef %20, i32 noundef 6)
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, %21
store i32 %23, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
%26 = sext i32 %24 to i64
%27 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 %26
store i8 10, ptr %27, align 1
%28 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 0
%29 = load i32, ptr %3, align 4
%30 = call i32 @write(i32 noundef 1, ptr noundef %28, i32 noundef %29)
br label %31
31: ; preds = %6, %0
%32 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i64 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @itoa(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpezohumjk.c'
source_filename = "/tmp/tmpezohumjk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"tuberia\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [10 x i8] c"open:\09%s\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [11 x i8] c"write:\09%s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store ptr @.str, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = load i32, ptr @O_WRONLY, align 4
%11 = call i32 @open(ptr noundef %9, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %21
14: ; preds = %2
%15 = load i32, ptr @errno, align 4
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = call ptr @strerror(i32 noundef %16)
%18 = call i32 @printf(ptr noundef @.str.1, ptr noundef %17)
%19 = load i32, ptr @EXIT_FAILURE, align 4
%20 = call i32 @exit(i32 noundef %19) #3
unreachable
21: ; preds = %2
%22 = load i32, ptr %7, align 4
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 @strlen(ptr noundef %28)
%30 = call i32 @write(i32 noundef %22, ptr noundef %25, i32 noundef %29)
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %40
33: ; preds = %21
%34 = load i32, ptr @errno, align 4
store i32 %34, ptr %5, align 4
%35 = load i32, ptr %5, align 4
%36 = call ptr @strerror(i32 noundef %35)
%37 = call i32 @printf(ptr noundef @.str.2, ptr noundef %36)
%38 = load i32, ptr @EXIT_FAILURE, align 4
%39 = call i32 @exit(i32 noundef %38) #3
unreachable
40: ; preds = %21
%41 = load i32, ptr @EXIT_SUCCESS, align 4
%42 = call i32 @exit(i32 noundef %41) #3
unreachable
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpezohumjk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"tuberia\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [10 x i8] c"open:\09%s\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [11 x i8] c"write:\09%s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store ptr @.str, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = load i32, ptr @O_WRONLY, align 4
%11 = call i32 @open(ptr noundef %9, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %21
14: ; preds = %2
%15 = load i32, ptr @errno, align 4
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = call ptr @strerror(i32 noundef %16)
%18 = call i32 @printf(ptr noundef @.str.1, ptr noundef %17)
%19 = load i32, ptr @EXIT_FAILURE, align 4
%20 = call i32 @exit(i32 noundef %19) #3
unreachable
21: ; preds = %2
%22 = load i32, ptr %7, align 4
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 @strlen(ptr noundef %28)
%30 = call i32 @write(i32 noundef %22, ptr noundef %25, i32 noundef %29)
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %40
33: ; preds = %21
%34 = load i32, ptr @errno, align 4
store i32 %34, ptr %5, align 4
%35 = load i32, ptr %5, align 4
%36 = call ptr @strerror(i32 noundef %35)
%37 = call i32 @printf(ptr noundef @.str.2, ptr noundef %36)
%38 = load i32, ptr @EXIT_FAILURE, align 4
%39 = call i32 @exit(i32 noundef %38) #3
unreachable
40: ; preds = %21
%41 = load i32, ptr @EXIT_SUCCESS, align 4
%42 = call i32 @exit(i32 noundef %41) #3
unreachable
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpu8q7982z.c'
source_filename = "/tmp/tmpu8q7982z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vec_dot_prodi16(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %29, %3
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %32
13: ; preds = %9
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i64, ptr %14, i64 %16
%18 = load i64, ptr %17, align 8
%19 = trunc i64 %18 to i32
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i64, ptr %20, i64 %22
%24 = load i64, ptr %23, align 8
%25 = trunc i64 %24 to i32
%26 = mul nsw i32 %19, %25
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, %26
store i32 %28, ptr %7, align 4
br label %29
29: ; preds = %13
%30 = load i32, ptr %8, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %8, align 4
br label %9, !llvm.loop !6
32: ; preds = %9
%33 = load i32, ptr %7, align 4
ret i32 %33
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpu8q7982z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vec_dot_prodi16(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %34
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %28
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i64, ptr %13, i64 %15
%17 = load i64, ptr %16, align 8
%18 = trunc i64 %17 to i32
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %8, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i64, ptr %19, i64 %21
%23 = load i64, ptr %22, align 8
%24 = trunc i64 %23 to i32
%25 = mul nsw i32 %18, %24
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, %25
store i32 %27, ptr %7, align 4
br label %28
28: ; preds = %12
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %34
34: ; preds = %._crit_edge, %3
%35 = load i32, ptr %7, align 4
ret i32 %35
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp_ldmz144.c'
source_filename = "/tmp/tmp_ldmz144.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"software interrupt\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @do_software_interrupt() #0 {
%1 = call i32 @evil_exception(ptr noundef @.str, i32 noundef 2)
%2 = call i32 (...) @finish_exception()
ret void
}
declare i32 @evil_exception(ptr noundef, i32 noundef) #1
declare i32 @finish_exception(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_ldmz144.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"software interrupt\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @do_software_interrupt() #0 {
%1 = call i32 @evil_exception(ptr noundef @.str, i32 noundef 2)
%2 = call i32 (...) @finish_exception()
ret void
}
declare i32 @evil_exception(ptr noundef, i32 noundef) #1
declare i32 @finish_exception(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpma4j4fwe.c'
source_filename = "/tmp/tmpma4j4fwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d. sayiyi girin\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"En kucuk sayi: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"En buyuk sayi: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %18, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 5
br i1 %9, label %10, label %21
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
%13 = call i32 @printf(ptr noundef @.str, i32 noundef %12)
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %15
%17 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %16)
br label %18
18: ; preds = %10
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%23 = call ptr @arraySort(ptr noundef %22, i32 noundef 5)
store ptr %23, ptr %6, align 8
%24 = load ptr, ptr %6, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 0
%26 = load i32, ptr %25, align 4
%27 = call i32 @printf(ptr noundef @.str.2, i32 noundef %26)
%28 = load ptr, ptr %6, align 8
%29 = getelementptr inbounds i32, ptr %28, i64 4
%30 = load i32, ptr %29, align 4
%31 = call i32 @printf(ptr noundef @.str.3, i32 noundef %30)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @arraySort(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/tmpma4j4fwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d. sayiyi girin\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"En kucuk sayi: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"En buyuk sayi: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 5
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %17
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %14
%16 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %15)
br label %17
17: ; preds = %9
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 5
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
%23 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%24 = call ptr @arraySort(ptr noundef %23, i32 noundef 5)
store ptr %24, ptr %6, align 8
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds i32, ptr %25, i64 0
%27 = load i32, ptr %26, align 4
%28 = call i32 @printf(ptr noundef @.str.2, i32 noundef %27)
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds i32, ptr %29, i64 4
%31 = load i32, ptr %30, align 4
%32 = call i32 @printf(ptr noundef @.str.3, i32 noundef %31)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @arraySort(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/tmpvelm0sl7.c'
source_filename = "/tmp/tmpvelm0sl7.c"
target datalayout = "e-m:e-p270: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.ifreq = type { i32, i32 }
@IFNAMSIZ = dso_local global i32 0, align 4
@SIOCGIFFLAGS = dso_local global i32 0, align 4
@IFF_UP = dso_local global i32 0, align 4
@SIOCSIFFLAGS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @network_iface_down(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 %struct.ifreq, align 4
%9 = alloca i32, align 4
%10 = 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 -1, ptr %9, align 4
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %3
store i32 -1, ptr %4, align 4
br label %57
14: ; preds = %3
%15 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 8)
%16 = getelementptr inbounds %struct.ifreq, ptr %8, i32 0, i32 1
%17 = load i32, ptr %16, align 4
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr @IFNAMSIZ, align 4
%20 = call i32 @strncpy(i32 noundef %17, ptr noundef %18, i32 noundef %19)
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %7, align 4
%23 = call i32 @socket(i32 noundef %21, i32 noundef %22, i32 noundef 0)
store i32 %23, ptr %9, align 4
%24 = load i32, ptr %9, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %14
br label %48
27: ; preds = %14
%28 = load i32, ptr %9, align 4
%29 = load i32, ptr @SIOCGIFFLAGS, align 4
%30 = call i32 @ioctl(i32 noundef %28, i32 noundef %29, ptr noundef %8)
store i32 %30, ptr %10, align 4
%31 = load i32, ptr %10, align 4
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %27
br label %48
34: ; preds = %27
%35 = getelementptr inbounds %struct.ifreq, ptr %8, i32 0, i32 0
%36 = load i32, ptr %35, align 4
%37 = load i32, ptr @IFF_UP, align 4
%38 = xor i32 %37, -1
%39 = and i32 %36, %38
%40 = getelementptr inbounds %struct.ifreq, ptr %8, i32 0, i32 0
store i32 %39, ptr %40, align 4
%41 = load i32, ptr %9, align 4
%42 = load i32, ptr @SIOCSIFFLAGS, align 4
%43 = call i32 @ioctl(i32 noundef %41, i32 noundef %42, ptr noundef %8)
store i32 %43, ptr %10, align 4
%44 = load i32, ptr %10, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %34
br label %48
47: ; preds = %34
store i32 0, ptr %10, align 4
br label %49
48: ; preds = %46, %33, %26
store i32 -1, ptr %10, align 4
br label %49
49: ; preds = %48, %47
%50 = load i32, ptr %9, align 4
%51 = icmp sge i32 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %49
%53 = load i32, ptr %9, align 4
%54 = call i32 @close(i32 noundef %53)
br label %55
55: ; preds = %52, %49
%56 = load i32, ptr %10, align 4
store i32 %56, ptr %4, align 4
br label %57
57: ; preds = %55, %13
%58 = load i32, ptr %4, align 4
ret i32 %58
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvelm0sl7.c"
target datalayout = "e-m:e-p270: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.ifreq = type { i32, i32 }
@IFNAMSIZ = dso_local global i32 0, align 4
@SIOCGIFFLAGS = dso_local global i32 0, align 4
@IFF_UP = dso_local global i32 0, align 4
@SIOCSIFFLAGS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @network_iface_down(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 %struct.ifreq, align 4
%9 = alloca i32, align 4
%10 = 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 -1, ptr %9, align 4
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %3
store i32 -1, ptr %4, align 4
br label %57
14: ; preds = %3
%15 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 8)
%16 = getelementptr inbounds %struct.ifreq, ptr %8, i32 0, i32 1
%17 = load i32, ptr %16, align 4
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr @IFNAMSIZ, align 4
%20 = call i32 @strncpy(i32 noundef %17, ptr noundef %18, i32 noundef %19)
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %7, align 4
%23 = call i32 @socket(i32 noundef %21, i32 noundef %22, i32 noundef 0)
store i32 %23, ptr %9, align 4
%24 = load i32, ptr %9, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %14
br label %48
27: ; preds = %14
%28 = load i32, ptr %9, align 4
%29 = load i32, ptr @SIOCGIFFLAGS, align 4
%30 = call i32 @ioctl(i32 noundef %28, i32 noundef %29, ptr noundef %8)
store i32 %30, ptr %10, align 4
%31 = load i32, ptr %10, align 4
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %27
br label %48
34: ; preds = %27
%35 = getelementptr inbounds %struct.ifreq, ptr %8, i32 0, i32 0
%36 = load i32, ptr %35, align 4
%37 = load i32, ptr @IFF_UP, align 4
%38 = xor i32 %37, -1
%39 = and i32 %36, %38
%40 = getelementptr inbounds %struct.ifreq, ptr %8, i32 0, i32 0
store i32 %39, ptr %40, align 4
%41 = load i32, ptr %9, align 4
%42 = load i32, ptr @SIOCSIFFLAGS, align 4
%43 = call i32 @ioctl(i32 noundef %41, i32 noundef %42, ptr noundef %8)
store i32 %43, ptr %10, align 4
%44 = load i32, ptr %10, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %34
br label %48
47: ; preds = %34
store i32 0, ptr %10, align 4
br label %49
48: ; preds = %46, %33, %26
store i32 -1, ptr %10, align 4
br label %49
49: ; preds = %48, %47
%50 = load i32, ptr %9, align 4
%51 = icmp sge i32 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %49
%53 = load i32, ptr %9, align 4
%54 = call i32 @close(i32 noundef %53)
br label %55
55: ; preds = %52, %49
%56 = load i32, ptr %10, align 4
store i32 %56, ptr %4, align 4
br label %57
57: ; preds = %55, %13
%58 = load i32, ptr %4, align 4
ret i32 %58
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptrn3wvqj.c'
source_filename = "/tmp/tmptrn3wvqj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @snmp_get_random_access() #0 {
%1 = call i32 @ds_get_boolean(i32 noundef 0, i32 noundef 14)
ret i32 %1
}
declare i32 @ds_get_boolean(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/tmptrn3wvqj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @snmp_get_random_access() #0 {
%1 = call i32 @ds_get_boolean(i32 noundef 0, i32 noundef 14)
ret i32 %1
}
declare i32 @ds_get_boolean(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/tmplps01mde.c'
source_filename = "/tmp/tmplps01mde.c"
target datalayout = "e-m:e-p270: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 [17 x i8] c"test driver done\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
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
br label %3
3: ; preds = %7, %0
%4 = load i32, ptr @stdin, align 4
%5 = call i32 @read_line(ptr noundef %2, i32 noundef %4)
%6 = icmp ne i32 %5, -1
br i1 %6, label %7, label %12
7: ; preds = %3
%8 = load ptr, ptr %2, align 8
%9 = call i32 @puts(ptr noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = call i32 @free(ptr noundef %10)
br label %3, !llvm.loop !6
12: ; preds = %3
%13 = call i32 @puts(ptr noundef @.str)
ret i32 0
}
declare i32 @read_line(ptr noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplps01mde.c"
target datalayout = "e-m:e-p270: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 [17 x i8] c"test driver done\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
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
%3 = load i32, ptr @stdin, align 4
%4 = call i32 @read_line(ptr noundef %2, i32 noundef %3)
%5 = icmp ne i32 %4, -1
br i1 %5, label %.lr.ph, label %14
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %6
%7 = load ptr, ptr %2, align 8
%8 = call i32 @puts(ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @free(ptr noundef %9)
%11 = load i32, ptr @stdin, align 4
%12 = call i32 @read_line(ptr noundef %2, i32 noundef %11)
%13 = icmp ne i32 %12, -1
br i1 %13, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %14
14: ; preds = %._crit_edge, %0
%15 = call i32 @puts(ptr noundef @.str)
ret i32 0
}
declare i32 @read_line(ptr noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwzp8ewdl.c'
source_filename = "/tmp/tmpwzp8ewdl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @check_name(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @strlen(ptr noundef %5)
store i32 %6, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = icmp sgt i32 %8, 20
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 101, ptr %2, align 4
br label %18
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = call i32 @find_contact_by_user(ptr noundef %12)
%14 = icmp ne i32 %13, -1
br i1 %14, label %15, label %16
15: ; preds = %11
store i32 102, ptr %2, align 4
br label %18
16: ; preds = %11
br label %17
17: ; preds = %16
store i32 0, ptr %2, align 4
br label %18
18: ; preds = %17, %15, %10
%19 = load i32, ptr %2, align 4
ret i32 %19
}
declare i32 @strlen(ptr noundef) #1
declare i32 @find_contact_by_user(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/tmpwzp8ewdl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @check_name(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @strlen(ptr noundef %5)
store i32 %6, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = icmp sgt i32 %8, 20
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 101, ptr %2, align 4
br label %18
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = call i32 @find_contact_by_user(ptr noundef %12)
%14 = icmp ne i32 %13, -1
br i1 %14, label %15, label %16
15: ; preds = %11
store i32 102, ptr %2, align 4
br label %18
16: ; preds = %11
br label %17
17: ; preds = %16
store i32 0, ptr %2, align 4
br label %18
18: ; preds = %17, %15, %10
%19 = load i32, ptr %2, align 4
ret i32 %19
}
declare i32 @strlen(ptr noundef) #1
declare i32 @find_contact_by_user(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/tmp8t9teasi.c'
source_filename = "/tmp/tmp8t9teasi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @uninitvar_printf(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %8, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef %11, i32 noundef %12)
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %9, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef %14, i32 noundef %15)
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %4, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef %17, i32 noundef %18)
%20 = load ptr, ptr %7, align 8
%21 = call i32 (ptr, ...) @printf(ptr noundef %20, i32 noundef 1)
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %4, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef %22, i32 noundef %23)
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/tmp8t9teasi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @uninitvar_printf(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %8, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef %11, i32 noundef %12)
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %9, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef %14, i32 noundef %15)
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %4, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef %17, i32 noundef %18)
%20 = load ptr, ptr %7, align 8
%21 = call i32 (ptr, ...) @printf(ptr noundef %20, i32 noundef 1)
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %4, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef %22, i32 noundef %23)
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/tmpnwgv3npk.c'
source_filename = "/tmp/tmpnwgv3npk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"Yes\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"t\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"No\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"h\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @one_if(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp sgt i32 %5, %6
br i1 %7, label %8, label %15
8: ; preds = %1
%9 = call i32 @printf(ptr noundef @.str)
%10 = load i32, ptr %3, align 4
%11 = icmp sgt i32 %10, 6
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @printf(ptr noundef @.str.1)
br label %14
14: ; preds = %12, %8
br label %17
15: ; preds = %1
%16 = call i32 @printf(ptr noundef @.str.2)
ret i32 4
17: ; preds = %14
%18 = call i32 @printf(ptr noundef @.str.3)
%19 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnwgv3npk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"Yes\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"t\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"No\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"h\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @one_if(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp sgt i32 %5, %6
br i1 %7, label %8, label %15
8: ; preds = %1
%9 = call i32 @printf(ptr noundef @.str)
%10 = load i32, ptr %3, align 4
%11 = icmp sgt i32 %10, 6
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @printf(ptr noundef @.str.1)
br label %14
14: ; preds = %12, %8
br label %17
15: ; preds = %1
%16 = call i32 @printf(ptr noundef @.str.2)
ret i32 4
17: ; preds = %14
%18 = call i32 @printf(ptr noundef @.str.3)
%19 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbv3ngiax.c'
source_filename = "/tmp/tmpbv3ngiax.c"
target datalayout = "e-m:e-p270: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/tmpbv3ngiax.c"
target datalayout = "e-m:e-p270: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/tmptiwcwjxg.c'
source_filename = "/tmp/tmptiwcwjxg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @findLineLargestPairSum(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = getelementptr inbounds i32, ptr %10, i64 2
store i32 0, ptr %11, align 4
store i32 0, ptr %7, align 4
br label %12
12: ; preds = %67, %3
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %13, 10
br i1 %14, label %15, label %70
15: ; preds = %12
store i32 0, ptr %8, align 4
br label %16
16: ; preds = %63, %15
%17 = load i32, ptr %8, align 4
%18 = icmp slt i32 %17, 10
br i1 %18, label %19, label %66
19: ; preds = %16
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %8, align 4
%22 = icmp ne i32 %20, %21
br i1 %22, label %23, label %62
23: ; preds = %19
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = load i32, ptr %27, align 4
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
%33 = load i32, ptr %32, align 4
%34 = add nsw i32 %28, %33
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %9, align 4
%36 = icmp sle i32 %35, 50
br i1 %36, label %37, label %61
37: ; preds = %23
%38 = load i32, ptr %9, align 4
%39 = load ptr, ptr %6, align 8
%40 = getelementptr inbounds i32, ptr %39, i64 2
%41 = load i32, ptr %40, align 4
%42 = icmp sgt i32 %38, %41
br i1 %42, label %43, label %61
43: ; preds = %37
%44 = load i32, ptr %9, align 4
%45 = load ptr, ptr %6, align 8
%46 = getelementptr inbounds i32, ptr %45, i64 2
store i32 %44, ptr %46, align 4
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %7, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
%52 = load ptr, ptr %6, align 8
%53 = getelementptr inbounds i32, ptr %52, i64 0
store i32 %51, ptr %53, align 4
%54 = load ptr, ptr %5, align 8
%55 = load i32, ptr %8, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %54, i64 %56
%58 = load i32, ptr %57, align 4
%59 = load ptr, ptr %6, align 8
%60 = getelementptr inbounds i32, ptr %59, i64 1
store i32 %58, ptr %60, align 4
br label %61
61: ; preds = %43, %37, %23
br label %62
62: ; preds = %61, %19
br label %63
63: ; preds = %62
%64 = load i32, ptr %8, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %8, align 4
br label %16, !llvm.loop !6
66: ; preds = %16
br label %67
67: ; preds = %66
%68 = load i32, ptr %7, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %7, align 4
br label %12, !llvm.loop !8
70: ; preds = %12
%71 = load ptr, ptr %6, align 8
%72 = getelementptr inbounds i32, ptr %71, i64 3
%73 = load i32, ptr %72, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %72, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptiwcwjxg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @findLineLargestPairSum(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = getelementptr inbounds i32, ptr %10, i64 2
store i32 0, ptr %11, align 4
store i32 0, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 10
br i1 %13, label %.lr.ph2, label %72
.lr.ph2: ; preds = %3
br label %14
14: ; preds = %.lr.ph2, %67
store i32 0, ptr %8, align 4
%15 = load i32, ptr %8, align 4
%16 = icmp slt i32 %15, 10
br i1 %16, label %.lr.ph, label %66
.lr.ph: ; preds = %14
br label %17
17: ; preds = %.lr.ph, %61
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp ne i32 %18, %19
br i1 %20, label %21, label %60
21: ; preds = %17
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = add nsw i32 %26, %31
store i32 %32, ptr %9, align 4
%33 = load i32, ptr %9, align 4
%34 = icmp sle i32 %33, 50
br i1 %34, label %35, label %59
35: ; preds = %21
%36 = load i32, ptr %9, align 4
%37 = load ptr, ptr %6, align 8
%38 = getelementptr inbounds i32, ptr %37, i64 2
%39 = load i32, ptr %38, align 4
%40 = icmp sgt i32 %36, %39
br i1 %40, label %41, label %59
41: ; preds = %35
%42 = load i32, ptr %9, align 4
%43 = load ptr, ptr %6, align 8
%44 = getelementptr inbounds i32, ptr %43, i64 2
store i32 %42, ptr %44, align 4
%45 = load ptr, ptr %5, align 8
%46 = load i32, ptr %7, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %45, i64 %47
%49 = load i32, ptr %48, align 4
%50 = load ptr, ptr %6, align 8
%51 = getelementptr inbounds i32, ptr %50, i64 0
store i32 %49, ptr %51, align 4
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %8, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %52, i64 %54
%56 = load i32, ptr %55, align 4
%57 = load ptr, ptr %6, align 8
%58 = getelementptr inbounds i32, ptr %57, i64 1
store i32 %56, ptr %58, align 4
br label %59
59: ; preds = %41, %35, %21
br label %60
60: ; preds = %59, %17
br label %61
61: ; preds = %60
%62 = load i32, ptr %8, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %8, align 4
%64 = load i32, ptr %8, align 4
%65 = icmp slt i32 %64, 10
br i1 %65, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %61
br label %66
66: ; preds = %._crit_edge, %14
br label %67
67: ; preds = %66
%68 = load i32, ptr %7, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %7, align 4
%70 = load i32, ptr %7, align 4
%71 = icmp slt i32 %70, 10
br i1 %71, label %14, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %67
br label %72
72: ; preds = %._crit_edge3, %3
%73 = load ptr, ptr %6, align 8
%74 = getelementptr inbounds i32, ptr %73, i64 3
%75 = load i32, ptr %74, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %74, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpcxu7nlfq.c'
source_filename = "/tmp/tmpcxu7nlfq.c"
target datalayout = "e-m:e-p270: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 [11 x i8] c"ERROR: %s\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @exit_error(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 = load i32, ptr @EXIT_FAILURE, align 4
%7 = call i32 @exit(i32 noundef %6) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcxu7nlfq.c"
target datalayout = "e-m:e-p270: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 [11 x i8] c"ERROR: %s\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @exit_error(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 = load i32, ptr @EXIT_FAILURE, align 4
%7 = call i32 @exit(i32 noundef %6) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfl83uzvr.c'
source_filename = "/tmp/tmpfl83uzvr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_islower.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"islower should be 0 for 0x88\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_islower_0x88() #0 {
%1 = call i64 @islower(i32 noundef 136)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 685, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @islower(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/tmpfl83uzvr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_islower.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"islower should be 0 for 0x88\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_islower_0x88() #0 {
%1 = call i64 @islower(i32 noundef 136)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 685, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @islower(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/tmpe7n0krw6.c'
source_filename = "/tmp/tmpe7n0krw6.c"
target datalayout = "e-m:e-p270: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_RDONLY = 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/tmpe7n0krw6.c"
target datalayout = "e-m:e-p270: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_RDONLY = 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/tmpln8odco9.c'
source_filename = "/tmp/tmpln8odco9.c"
target datalayout = "e-m:e-p270: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/tmpln8odco9.c"
target datalayout = "e-m:e-p270: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/tmpgdwgakoy.c'
source_filename = "/tmp/tmpgdwgakoy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @SPI1_IRQHandler() #0 section ".after_vectors" {
%1 = call i32 (...) @SPI1_DriverIRQHandler()
ret void
}
declare i32 @SPI1_DriverIRQHandler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgdwgakoy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @SPI1_IRQHandler() #0 section ".after_vectors" {
%1 = call i32 (...) @SPI1_DriverIRQHandler()
ret void
}
declare i32 @SPI1_DriverIRQHandler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5kggt0o6.c'
source_filename = "/tmp/tmp5kggt0o6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [114 x i8] c"PoC for checking if SQLite database has been changed by comparing sqlite header with copy of header in database.\0A\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c"For more information see the README.md file.\0A\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c"Usage: sqlite_unchanged [-s | -c ] [file]\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"\09-s or --set: store header in db\00", align 1
@.str.4 = private unnamed_addr constant [50 x i8] c"\09-c or --check: compare header with stored header\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"\09file: filename or path\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @help() #0 {
%1 = call i32 @puts(ptr noundef @.str)
%2 = call i32 @puts(ptr noundef @.str.1)
%3 = call i32 @puts(ptr noundef @.str.2)
%4 = call i32 @puts(ptr noundef @.str.3)
%5 = call i32 @puts(ptr noundef @.str.4)
%6 = call i32 @puts(ptr noundef @.str.5)
%7 = load i32, ptr @EXIT_FAILURE, align 4
ret i32 %7
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5kggt0o6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [114 x i8] c"PoC for checking if SQLite database has been changed by comparing sqlite header with copy of header in database.\0A\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c"For more information see the README.md file.\0A\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c"Usage: sqlite_unchanged [-s | -c ] [file]\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"\09-s or --set: store header in db\00", align 1
@.str.4 = private unnamed_addr constant [50 x i8] c"\09-c or --check: compare header with stored header\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"\09file: filename or path\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @help() #0 {
%1 = call i32 @puts(ptr noundef @.str)
%2 = call i32 @puts(ptr noundef @.str.1)
%3 = call i32 @puts(ptr noundef @.str.2)
%4 = call i32 @puts(ptr noundef @.str.3)
%5 = call i32 @puts(ptr noundef @.str.4)
%6 = call i32 @puts(ptr noundef @.str.5)
%7 = load i32, ptr @EXIT_FAILURE, align 4
ret i32 %7
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0g9j2gdp.c'
source_filename = "/tmp/tmp0g9j2gdp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Door: CLOSED\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [15 x i8] c"button_clicked\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"Door: OPENING\0A\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"Door: STOPPED_WHILE_OPENING\0A\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"Door: CLOSING\0A\00", align 1
@.str.6 = private unnamed_addr constant [29 x i8] c"Door: STOPPED_WHILE_CLOSING\0A\00", align 1
@.str.7 = private unnamed_addr constant [15 x i8] c"cycle_complete\00", align 1
@.str.8 = private unnamed_addr constant [14 x i8] c"Door: CLOSED\0A\00", align 1
@.str.9 = private unnamed_addr constant [12 x i8] c"Door: OPEN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [30 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 30, i1 false)
store i32 0, ptr %3, align 4
%4 = call i32 @printf(ptr noundef @.str)
br label %5
5: ; preds = %45, %0
%6 = getelementptr inbounds [30 x i8], ptr %2, i64 0, i64 0
%7 = call i64 @scanf(ptr noundef @.str.1, ptr noundef %6)
%8 = load i64, ptr @EOF, align 8
%9 = icmp ne i64 %7, %8
br i1 %9, label %10, label %46
10: ; preds = %5
%11 = getelementptr inbounds [30 x i8], ptr %2, i64 0, i64 0
%12 = call i64 @strcmp(ptr noundef %11, ptr noundef @.str.2)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %30
14: ; preds = %10
%15 = load i32, ptr %3, align 4
switch i32 %15, label %28 [
i32 0, label %16
i32 1, label %18
i32 2, label %20
i32 3, label %22
i32 4, label %24
i32 5, label %26
]
16: ; preds = %14
%17 = call i32 @printf(ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %29
18: ; preds = %14
%19 = call i32 @printf(ptr noundef @.str.4)
store i32 2, ptr %3, align 4
br label %29
20: ; preds = %14
%21 = call i32 @printf(ptr noundef @.str.5)
store i32 3, ptr %3, align 4
br label %29
22: ; preds = %14
%23 = call i32 @printf(ptr noundef @.str.6)
store i32 4, ptr %3, align 4
br label %29
24: ; preds = %14
%25 = call i32 @printf(ptr noundef @.str.3)
store i32 5, ptr %3, align 4
br label %29
26: ; preds = %14
%27 = call i32 @printf(ptr noundef @.str.5)
store i32 6, ptr %3, align 4
br label %29
28: ; preds = %14
br label %29
29: ; preds = %28, %26, %24, %22, %20, %18, %16
br label %30
30: ; preds = %29, %10
%31 = getelementptr inbounds [30 x i8], ptr %2, i64 0, i64 0
%32 = call i64 @strcmp(ptr noundef %31, ptr noundef @.str.7)
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %45
34: ; preds = %30
%35 = load i32, ptr %3, align 4
switch i32 %35, label %44 [
i32 0, label %36
i32 3, label %38
i32 1, label %40
i32 5, label %42
]
36: ; preds = %34
%37 = call i32 @printf(ptr noundef @.str.8)
store i32 0, ptr %3, align 4
br label %44
38: ; preds = %34
%39 = call i32 @printf(ptr noundef @.str.8)
store i32 0, ptr %3, align 4
br label %44
40: ; preds = %34
%41 = call i32 @printf(ptr noundef @.str.9)
store i32 5, ptr %3, align 4
br label %44
42: ; preds = %34
%43 = call i32 @printf(ptr noundef @.str.9)
store i32 5, ptr %3, align 4
br label %44
44: ; preds = %34, %42, %40, %38, %36
br label %45
45: ; preds = %44, %30
br label %5, !llvm.loop !6
46: ; preds = %5
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @printf(ptr noundef) #2
declare i64 @scanf(ptr noundef, ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0g9j2gdp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Door: CLOSED\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [15 x i8] c"button_clicked\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"Door: OPENING\0A\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"Door: STOPPED_WHILE_OPENING\0A\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"Door: CLOSING\0A\00", align 1
@.str.6 = private unnamed_addr constant [29 x i8] c"Door: STOPPED_WHILE_CLOSING\0A\00", align 1
@.str.7 = private unnamed_addr constant [15 x i8] c"cycle_complete\00", align 1
@.str.8 = private unnamed_addr constant [14 x i8] c"Door: CLOSED\0A\00", align 1
@.str.9 = private unnamed_addr constant [12 x i8] c"Door: OPEN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [30 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 30, i1 false)
store i32 0, ptr %3, align 4
%4 = call i32 @printf(ptr noundef @.str)
%5 = getelementptr inbounds [30 x i8], ptr %2, i64 0, i64 0
%6 = call i64 @scanf(ptr noundef @.str.1, ptr noundef %5)
%7 = load i64, ptr @EOF, align 8
%8 = icmp ne i64 %6, %7
br i1 %8, label %.lr.ph, label %48
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %44
%10 = getelementptr inbounds [30 x i8], ptr %2, i64 0, i64 0
%11 = call i64 @strcmp(ptr noundef %10, ptr noundef @.str.2)
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %29
13: ; preds = %9
%14 = load i32, ptr %3, align 4
switch i32 %14, label %27 [
i32 0, label %15
i32 1, label %17
i32 2, label %19
i32 3, label %21
i32 4, label %23
i32 5, label %25
]
15: ; preds = %13
%16 = call i32 @printf(ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %28
17: ; preds = %13
%18 = call i32 @printf(ptr noundef @.str.4)
store i32 2, ptr %3, align 4
br label %28
19: ; preds = %13
%20 = call i32 @printf(ptr noundef @.str.5)
store i32 3, ptr %3, align 4
br label %28
21: ; preds = %13
%22 = call i32 @printf(ptr noundef @.str.6)
store i32 4, ptr %3, align 4
br label %28
23: ; preds = %13
%24 = call i32 @printf(ptr noundef @.str.3)
store i32 5, ptr %3, align 4
br label %28
25: ; preds = %13
%26 = call i32 @printf(ptr noundef @.str.5)
store i32 6, ptr %3, align 4
br label %28
27: ; preds = %13
br label %28
28: ; preds = %27, %25, %23, %21, %19, %17, %15
br label %29
29: ; preds = %28, %9
%30 = getelementptr inbounds [30 x i8], ptr %2, i64 0, i64 0
%31 = call i64 @strcmp(ptr noundef %30, ptr noundef @.str.7)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %44
33: ; preds = %29
%34 = load i32, ptr %3, align 4
switch i32 %34, label %43 [
i32 0, label %35
i32 3, label %37
i32 1, label %39
i32 5, label %41
]
35: ; preds = %33
%36 = call i32 @printf(ptr noundef @.str.8)
store i32 0, ptr %3, align 4
br label %43
37: ; preds = %33
%38 = call i32 @printf(ptr noundef @.str.8)
store i32 0, ptr %3, align 4
br label %43
39: ; preds = %33
%40 = call i32 @printf(ptr noundef @.str.9)
store i32 5, ptr %3, align 4
br label %43
41: ; preds = %33
%42 = call i32 @printf(ptr noundef @.str.9)
store i32 5, ptr %3, align 4
br label %43
43: ; preds = %41, %39, %37, %35, %33
br label %44
44: ; preds = %43, %29
%45 = call i64 @scanf(ptr noundef @.str.1, ptr noundef %5)
%46 = load i64, ptr @EOF, align 8
%47 = icmp ne i64 %45, %46
br i1 %47, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %48
48: ; preds = %._crit_edge, %0
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @printf(ptr noundef) #2
declare i64 @scanf(ptr noundef, ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp18n4zm5z.c'
source_filename = "/tmp/tmp18n4zm5z.c"
target datalayout = "e-m:e-p270: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/tmp18n4zm5z.c"
target datalayout = "e-m:e-p270: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/tmphqd3fv09.c'
source_filename = "/tmp/tmphqd3fv09.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [162 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/stdlib/isqrt.c\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"Integer square root of 103 should be 10\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_sqrt_103() #0 {
%1 = call i32 @isqrt(i32 noundef 103)
%2 = icmp eq i32 %1, 10
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 520, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isqrt(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphqd3fv09.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [162 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/stdlib/isqrt.c\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"Integer square root of 103 should be 10\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_sqrt_103() #0 {
%1 = call i32 @isqrt(i32 noundef 103)
%2 = icmp eq i32 %1, 10
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 520, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isqrt(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplpbg9g4h.c'
source_filename = "/tmp/tmplpbg9g4h.c"
target datalayout = "e-m:e-p270: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/tmplpbg9g4h.c"
target datalayout = "e-m:e-p270: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/tmpz6i8h2t1.c'
source_filename = "/tmp/tmpz6i8h2t1.c"
target datalayout = "e-m:e-p270: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_FILENO = dso_local global i32 0, align 4
@SEEK_CUR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"cannot seek\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"seek OK\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr @STDIN_FILENO, align 4
%3 = load i32, ptr @SEEK_CUR, align 4
%4 = call i32 @lseek(i32 noundef %2, i32 noundef 0, i32 noundef %3)
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str)
br label %10
8: ; preds = %0
%9 = call i32 @printf(ptr noundef @.str.1)
br label %10
10: ; preds = %8, %6
%11 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz6i8h2t1.c"
target datalayout = "e-m:e-p270: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_FILENO = dso_local global i32 0, align 4
@SEEK_CUR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"cannot seek\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"seek OK\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr @STDIN_FILENO, align 4
%3 = load i32, ptr @SEEK_CUR, align 4
%4 = call i32 @lseek(i32 noundef %2, i32 noundef 0, i32 noundef %3)
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str)
br label %10
8: ; preds = %0
%9 = call i32 @printf(ptr noundef @.str.1)
br label %10
10: ; preds = %8, %6
%11 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps8_zw9ol.c'
source_filename = "/tmp/tmps8_zw9ol.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_expect_equal_string(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 %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = call i64 @either_or_both_is_null(ptr noundef %9, ptr noundef %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %18, label %13
13: ; preds = %4
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %6, align 8
%16 = call i32 @is_equal_string(ptr noundef %14, ptr noundef %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %24, label %18
18: ; preds = %13, %4
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %6, align 8
%21 = load ptr, ptr %7, align 8
%22 = load i32, ptr %8, align 4
%23 = call i32 @expect_equal_string_failed(ptr noundef %19, ptr noundef %20, ptr noundef %21, i32 noundef %22)
br label %26
24: ; preds = %13
%25 = call i32 (...) @expectation_passed()
br label %26
26: ; preds = %24, %18
ret void
}
declare i64 @either_or_both_is_null(ptr noundef, ptr noundef) #1
declare i32 @is_equal_string(ptr noundef, ptr noundef) #1
declare i32 @expect_equal_string_failed(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @expectation_passed(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps8_zw9ol.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_expect_equal_string(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 %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = call i64 @either_or_both_is_null(ptr noundef %9, ptr noundef %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %18, label %13
13: ; preds = %4
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %6, align 8
%16 = call i32 @is_equal_string(ptr noundef %14, ptr noundef %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %24, label %18
18: ; preds = %13, %4
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %6, align 8
%21 = load ptr, ptr %7, align 8
%22 = load i32, ptr %8, align 4
%23 = call i32 @expect_equal_string_failed(ptr noundef %19, ptr noundef %20, ptr noundef %21, i32 noundef %22)
br label %26
24: ; preds = %13
%25 = call i32 (...) @expectation_passed()
br label %26
26: ; preds = %24, %18
ret void
}
declare i64 @either_or_both_is_null(ptr noundef, ptr noundef) #1
declare i32 @is_equal_string(ptr noundef, ptr noundef) #1
declare i32 @expect_equal_string_failed(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @expectation_passed(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8mofarxx.c'
source_filename = "/tmp/tmp8mofarxx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @asm_ukk_score2(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 i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 4, ptr %9, align 4
store i32 29, ptr %11, align 4
store i32 -2, ptr %12, align 4
store i32 0, ptr %10, align 4
br label %13
13: ; preds = %31, %4
%14 = load i32, ptr %10, align 4
%15 = load i32, ptr %11, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = load i32, ptr %12, align 4
%19 = icmp slt i32 %18, 0
br label %20
20: ; preds = %17, %13
%21 = phi i1 [ false, %13 ], [ %19, %17 ]
br i1 %21, label %22, label %34
22: ; preds = %20
%23 = load ptr, ptr %5, align 8
%24 = load ptr, ptr %6, align 8
%25 = load i32, ptr %9, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %8, align 4
%28 = call i32 @sa_align_ukk2(ptr noundef null, ptr noundef null, ptr noundef %23, ptr noundef %24, i32 noundef %25, i32 noundef %26, i32 noundef %27, i8 noundef signext 45)
store i32 %28, ptr %12, align 4
%29 = load i32, ptr %9, align 4
%30 = mul nsw i32 %29, 2
store i32 %30, ptr %9, align 4
br label %31
31: ; preds = %22
%32 = load i32, ptr %10, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %10, align 4
br label %13, !llvm.loop !6
34: ; preds = %20
%35 = load i32, ptr %12, align 4
ret i32 %35
}
declare i32 @sa_align_ukk2(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 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/tmp8mofarxx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @asm_ukk_score2(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 i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 4, ptr %9, align 4
store i32 29, ptr %11, align 4
store i32 -2, ptr %12, align 4
store i32 0, ptr %10, align 4
br label %13
13: ; preds = %31, %4
%14 = load i32, ptr %10, align 4
%15 = load i32, ptr %11, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = load i32, ptr %12, align 4
%19 = icmp slt i32 %18, 0
br label %20
20: ; preds = %17, %13
%21 = phi i1 [ false, %13 ], [ %19, %17 ]
br i1 %21, label %22, label %34
22: ; preds = %20
%23 = load ptr, ptr %5, align 8
%24 = load ptr, ptr %6, align 8
%25 = load i32, ptr %9, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %8, align 4
%28 = call i32 @sa_align_ukk2(ptr noundef null, ptr noundef null, ptr noundef %23, ptr noundef %24, i32 noundef %25, i32 noundef %26, i32 noundef %27, i8 noundef signext 45)
store i32 %28, ptr %12, align 4
%29 = load i32, ptr %9, align 4
%30 = mul nsw i32 %29, 2
store i32 %30, ptr %9, align 4
br label %31
31: ; preds = %22
%32 = load i32, ptr %10, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %10, align 4
br label %13, !llvm.loop !6
34: ; preds = %20
%35 = load i32, ptr %12, align 4
ret i32 %35
}
declare i32 @sa_align_ukk2(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 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/tmpb2cd6cph.c'
source_filename = "/tmp/tmpb2cd6cph.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str2upper(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %11, %1
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %3, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %5, i64 %7
%9 = load i8, ptr %8, align 1
%10 = icmp ne i8 %9, 0
br i1 %10, label %11, label %19
11: ; preds = %4
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %3, align 4
%15 = sext i32 %13 to i64
%16 = getelementptr inbounds i8, ptr %12, i64 %15
%17 = load i8, ptr %16, align 1
%18 = call i32 @toupper(i8 noundef signext %17)
br label %4, !llvm.loop !6
19: ; preds = %4
ret void
}
declare i32 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb2cd6cph.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str2upper(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %3, align 4
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, ptr %4, i64 %6
%8 = load i8, ptr %7, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %.lr.ph, label %24
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %10
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
%14 = sext i32 %12 to i64
%15 = getelementptr inbounds i8, ptr %11, i64 %14
%16 = load i8, ptr %15, align 1
%17 = call i32 @toupper(i8 noundef signext %16)
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = icmp ne i8 %22, 0
br i1 %23, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %24
24: ; preds = %._crit_edge, %1
ret void
}
declare i32 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqpjqr67_.c'
source_filename = "/tmp/tmpqpjqr67_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @m_sort(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 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
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %8, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %33
13: ; preds = %4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %8, align 4
%16 = add nsw i32 %14, %15
%17 = sdiv i32 %16, 2
store i32 %17, ptr %9, align 4
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %9, align 4
call void @m_sort(ptr noundef %18, ptr noundef %19, i32 noundef %20, i32 noundef %21)
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %9, align 4
%25 = add nsw i32 %24, 1
%26 = load i32, ptr %8, align 4
call void @m_sort(ptr noundef %22, ptr noundef %23, i32 noundef %25, i32 noundef %26)
%27 = load ptr, ptr %5, align 8
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = call i32 @merge(ptr noundef %27, ptr noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31)
br label %33
33: ; preds = %13, %4
ret void
}
declare i32 @merge(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqpjqr67_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @m_sort(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 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
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %8, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %33
13: ; preds = %4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %8, align 4
%16 = add nsw i32 %14, %15
%17 = sdiv i32 %16, 2
store i32 %17, ptr %9, align 4
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %9, align 4
call void @m_sort(ptr noundef %18, ptr noundef %19, i32 noundef %20, i32 noundef %21)
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %9, align 4
%25 = add nsw i32 %24, 1
%26 = load i32, ptr %8, align 4
call void @m_sort(ptr noundef %22, ptr noundef %23, i32 noundef %25, i32 noundef %26)
%27 = load ptr, ptr %5, align 8
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = call i32 @merge(ptr noundef %27, ptr noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31)
br label %33
33: ; preds = %13, %4
ret void
}
declare i32 @merge(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdm_xt108.c'
source_filename = "/tmp/tmpdm_xt108.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__vector_6() #0 {
%1 = call i32 (...) @HplAtm128InterruptSigP__IntSig5__fired()
ret void
}
declare i32 @HplAtm128InterruptSigP__IntSig5__fired(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdm_xt108.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__vector_6() #0 {
%1 = call i32 (...) @HplAtm128InterruptSigP__IntSig5__fired()
ret void
}
declare i32 @HplAtm128InterruptSigP__IntSig5__fired(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1u_nkfhz.c'
source_filename = "/tmp/tmp1u_nkfhz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pthread_rwlock_unlock(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @ENOSYS, align 4
%4 = sub nsw i32 0, %3
ret i32 %4
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1u_nkfhz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pthread_rwlock_unlock(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @ENOSYS, align 4
%4 = sub nsw i32 0, %3
ret i32 %4
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoz75efow.c'
source_filename = "/tmp/tmpoz75efow.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call i32 (...) @example_func()
%2 = call i32 (...) @sample_state()
%3 = call i32 (...) @another_func()
%4 = call i32 (...) @sample_state()
ret i32 0
}
declare i32 @example_func(...) #1
declare i32 @sample_state(...) #1
declare i32 @another_func(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoz75efow.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call i32 (...) @example_func()
%2 = call i32 (...) @sample_state()
%3 = call i32 (...) @another_func()
%4 = call i32 (...) @sample_state()
ret i32 0
}
declare i32 @example_func(...) #1
declare i32 @sample_state(...) #1
declare i32 @another_func(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzvc82f7s.c'
source_filename = "/tmp/tmpzvc82f7s.c"
target datalayout = "e-m:e-p270: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/tmpzvc82f7s.c"
target datalayout = "e-m:e-p270: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/tmpa1ndyn4z.c'
source_filename = "/tmp/tmpa1ndyn4z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @changecolon(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %10, %1
%4 = load ptr, ptr %2, align 8
%5 = call ptr @strchr(ptr noundef %4, i32 noundef 254)
store ptr %5, ptr %2, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = load ptr, ptr %2, align 8
store i8 58, ptr %8, align 1
br label %9
9: ; preds = %7, %3
br label %10
10: ; preds = %9
%11 = load ptr, ptr %2, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %3, label %13, !llvm.loop !6
13: ; preds = %10
ret void
}
declare ptr @strchr(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/tmpa1ndyn4z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @changecolon(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %10, %1
%4 = load ptr, ptr %2, align 8
%5 = call ptr @strchr(ptr noundef %4, i32 noundef 254)
store ptr %5, ptr %2, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = load ptr, ptr %2, align 8
store i8 58, ptr %8, align 1
br label %9
9: ; preds = %7, %3
br label %10
10: ; preds = %9
%11 = load ptr, ptr %2, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %3, label %13, !llvm.loop !6
13: ; preds = %10
ret void
}
declare ptr @strchr(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/tmp7uu8wihw.c'
source_filename = "/tmp/tmp7uu8wihw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @convert_uint8_to_double(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %22, %3
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %25
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds double, ptr %13, i64 %15
%17 = load double, ptr %16, align 8
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds double, ptr %18, i64 %20
store double %17, ptr %21, align 8
br label %22
22: ; preds = %12
%23 = load i32, ptr %7, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %7, align 4
br label %8, !llvm.loop !6
25: ; preds = %8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7uu8wihw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @convert_uint8_to_double(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %27
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %21
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %7, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds double, ptr %12, i64 %14
%16 = load double, ptr %15, align 8
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds double, ptr %17, i64 %19
store double %16, ptr %20, align 8
br label %21
21: ; preds = %11
%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 %6, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %3
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpa9o49p0t.c'
source_filename = "/tmp/tmpa9o49p0t.c"
target datalayout = "e-m:e-p270: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/tmpa9o49p0t.c"
target datalayout = "e-m:e-p270: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/tmpzl6yrq9d.c'
source_filename = "/tmp/tmpzl6yrq9d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_SETMASK = 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/tmpzl6yrq9d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_SETMASK = 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/tmpi_dgsljb.c'
source_filename = "/tmp/tmpi_dgsljb.c"
target datalayout = "e-m:e-p270: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 i32 0, align 4
@IPC_CREAT = dso_local global i32 0, align 4
@IPC_EXCL = 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/tmpi_dgsljb.c"
target datalayout = "e-m:e-p270: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 i32 0, align 4
@IPC_CREAT = dso_local global i32 0, align 4
@IPC_EXCL = 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/tmpttlxgwf7.c'
source_filename = "/tmp/tmpttlxgwf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [69 x i8] c"attempted to use position %i in an array that only has %i positions\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_error(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = ashr i32 %5, 1
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr %7, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %8)
%10 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpttlxgwf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [69 x i8] c"attempted to use position %i in an array that only has %i positions\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_error(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = ashr i32 %5, 1
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr %7, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %8)
%10 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl8z60u3e.c'
source_filename = "/tmp/tmpl8z60u3e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stbi_png_load_from_file(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 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 i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = call i32 @start_file(ptr noundef %11)
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load i32, ptr %10, align 4
%17 = call ptr @do_png(ptr noundef %13, ptr noundef %14, ptr noundef %15, i32 noundef %16)
ret ptr %17
}
declare i32 @start_file(ptr noundef) #1
declare ptr @do_png(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl8z60u3e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stbi_png_load_from_file(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 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 i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = call i32 @start_file(ptr noundef %11)
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load i32, ptr %10, align 4
%17 = call ptr @do_png(ptr noundef %13, ptr noundef %14, ptr noundef %15, i32 noundef %16)
ret ptr %17
}
declare i32 @start_file(ptr noundef) #1
declare ptr @do_png(ptr noundef, 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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.