llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp1a1ypv8w.c'
source_filename = "/tmp/tmp1a1ypv8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"%d %d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca double, align 8
store i32 0, ptr %1, align 4
br label %7
7: ; preds = %39, %0
%8 = load i64, ptr @EOF, align 8
%9 = call i64 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%10 = icmp ne i64 %8, %9
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = icmp ne i32 %12, 0
br label %14
14: ; preds = %11, %7
%15 = phi i1 [ false, %7 ], [ %13, %11 ]
br i1 %15, label %16, label %44
16: ; preds = %14
store i32 0, ptr %5, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %17
17: ; preds = %38, %16
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, -1
store i32 %19, ptr %2, align 4
%20 = icmp ne i32 %18, 0
br i1 %20, label %21, label %39
21: ; preds = %17
%22 = call i64 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %6)
%23 = load double, ptr %6, align 8
%24 = fcmp ogt double %23, 0.000000e+00
br i1 %24, label %25, label %28
25: ; preds = %21
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %3, align 4
br label %38
28: ; preds = %21
%29 = load double, ptr %6, align 8
%30 = fcmp olt double %29, 0.000000e+00
br i1 %30, label %31, label %34
31: ; preds = %28
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %4, align 4
br label %37
34: ; preds = %28
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %5, align 4
br label %37
37: ; preds = %34, %31
br label %38
38: ; preds = %37, %25
br label %17, !llvm.loop !6
39: ; preds = %17
%40 = load i32, ptr %4, align 4
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %3, align 4
%43 = call i32 @printf(ptr noundef @.str.2, i32 noundef %40, i32 noundef %41, i32 noundef %42)
br label %7, !llvm.loop !8
44: ; preds = %14
ret i32 0
}
declare i64 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1a1ypv8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"%d %d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca double, align 8
store i32 0, ptr %1, align 4
br label %7
7: ; preds = %41, %0
%8 = load i64, ptr @EOF, align 8
%9 = call i64 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%10 = icmp ne i64 %8, %9
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = icmp ne i32 %12, 0
br label %14
14: ; preds = %11, %7
%15 = phi i1 [ false, %7 ], [ %13, %11 ]
br i1 %15, label %16, label %46
16: ; preds = %14
store i32 0, ptr %5, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %3, align 4
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %2, align 4
%19 = icmp ne i32 %17, 0
br i1 %19, label %.lr.ph, label %41
.lr.ph: ; preds = %16
br label %20
20: ; preds = %.lr.ph, %37
%21 = call i64 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %6)
%22 = load double, ptr %6, align 8
%23 = fcmp ogt double %22, 0.000000e+00
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
br label %37
27: ; preds = %20
%28 = load double, ptr %6, align 8
%29 = fcmp olt double %28, 0.000000e+00
br i1 %29, label %30, label %33
30: ; preds = %27
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
br label %36
33: ; preds = %27
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %5, align 4
br label %36
36: ; preds = %33, %30
br label %37
37: ; preds = %36, %24
%38 = load i32, ptr %2, align 4
%39 = add nsw i32 %38, -1
store i32 %39, ptr %2, align 4
%40 = icmp ne i32 %38, 0
br i1 %40, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %41
41: ; preds = %._crit_edge, %16
%42 = load i32, ptr %4, align 4
%43 = load i32, ptr %5, align 4
%44 = load i32, ptr %3, align 4
%45 = call i32 @printf(ptr noundef @.str.2, i32 noundef %42, i32 noundef %43, i32 noundef %44)
br label %7, !llvm.loop !8
46: ; preds = %14
ret i32 0
}
declare i64 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp2pcj6aqz.c'
source_filename = "/tmp/tmp2pcj6aqz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @splitstring(i8 noundef signext %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %5, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %2
store ptr null, ptr %3, align 8
br label %68
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = call ptr @ltrim(ptr noundef %11)
store ptr %12, ptr %5, align 8
br label %13
13: ; preds = %33, %10
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = load i8, ptr %4, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %19, %21
br i1 %22, label %23, label %31
23: ; preds = %13
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %6, 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 ne i32 %29, 0
br label %31
31: ; preds = %23, %13
%32 = phi i1 [ false, %13 ], [ %30, %23 ]
br i1 %32, label %33, label %36
33: ; preds = %31
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %6, align 4
br label %13, !llvm.loop !6
36: ; preds = %31
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %6, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = load i8, ptr %4, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %42, %44
br i1 %45, label %46, label %63
46: ; preds = %36
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %6, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
store i8 0, ptr %50, align 1
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %6, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = getelementptr inbounds i8, ptr %54, i64 1
%56 = call i32 @rtrim(ptr noundef %55)
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %6, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
%61 = getelementptr inbounds i8, ptr %60, i64 1
%62 = call ptr @ltrim(ptr noundef %61)
store ptr %62, ptr %3, align 8
br label %68
63: ; preds = %36
%64 = load ptr, ptr %5, align 8
%65 = load i32, ptr %6, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
store ptr %67, ptr %3, align 8
br label %68
68: ; preds = %63, %46, %9
%69 = load ptr, ptr %3, align 8
ret ptr %69
}
declare ptr @ltrim(ptr noundef) #1
declare i32 @rtrim(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/tmp2pcj6aqz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @splitstring(i8 noundef signext %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %5, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %2
store ptr null, ptr %3, align 8
br label %68
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = call ptr @ltrim(ptr noundef %11)
store ptr %12, ptr %5, align 8
br label %13
13: ; preds = %33, %10
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = load i8, ptr %4, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %19, %21
br i1 %22, label %23, label %31
23: ; preds = %13
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %6, 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 ne i32 %29, 0
br label %31
31: ; preds = %23, %13
%32 = phi i1 [ false, %13 ], [ %30, %23 ]
br i1 %32, label %33, label %36
33: ; preds = %31
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %6, align 4
br label %13, !llvm.loop !6
36: ; preds = %31
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %6, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = load i8, ptr %4, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %42, %44
br i1 %45, label %46, label %63
46: ; preds = %36
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %6, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
store i8 0, ptr %50, align 1
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %6, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = getelementptr inbounds i8, ptr %54, i64 1
%56 = call i32 @rtrim(ptr noundef %55)
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %6, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
%61 = getelementptr inbounds i8, ptr %60, i64 1
%62 = call ptr @ltrim(ptr noundef %61)
store ptr %62, ptr %3, align 8
br label %68
63: ; preds = %36
%64 = load ptr, ptr %5, align 8
%65 = load i32, ptr %6, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
store ptr %67, ptr %3, align 8
br label %68
68: ; preds = %63, %46, %9
%69 = load ptr, ptr %3, align 8
ret ptr %69
}
declare ptr @ltrim(ptr noundef) #1
declare i32 @rtrim(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/tmpzd4wsurm.c'
source_filename = "/tmp/tmpzd4wsurm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \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 i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%10 = load i32, ptr %2, align 4
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %3, align 8
%13 = alloca i32, i64 %11, align 16
store i64 %11, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %14
14: ; preds = %23, %0
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %26
18: ; preds = %14
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %13, i64 %20
%22 = call i32 @scanf(ptr noundef @.str, ptr noundef %21)
br label %23
23: ; preds = %18
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
br label %14, !llvm.loop !6
26: ; preds = %14
store i32 1, ptr %6, align 4
br label %27
27: ; preds = %82, %26
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %2, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %85
31: ; preds = %27
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %13, i64 %33
%35 = load i32, ptr %34, align 4
store i32 %35, ptr %7, align 4
%36 = load i32, ptr %6, align 4
%37 = sub nsw i32 %36, 1
store i32 %37, ptr %5, align 4
br label %38
38: ; preds = %74, %31
%39 = load i32, ptr %5, align 4
%40 = icmp sge i32 %39, 0
br i1 %40, label %41, label %48
41: ; preds = %38
%42 = load i32, ptr %5, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %13, i64 %43
%45 = load i32, ptr %44, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp sgt i32 %45, %46
br label %48
48: ; preds = %41, %38
%49 = phi i1 [ false, %38 ], [ %47, %41 ]
br i1 %49, label %50, label %76
50: ; preds = %48
%51 = load i32, ptr %5, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %13, i64 %52
%54 = load i32, ptr %53, align 4
%55 = load i32, ptr %5, align 4
%56 = add nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %13, i64 %57
store i32 %54, ptr %58, align 4
%59 = load i32, ptr %5, align 4
%60 = sub nsw i32 %59, 1
store i32 %60, ptr %5, align 4
store i32 0, ptr %8, align 4
br label %61
61: ; preds = %71, %50
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %2, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %65, label %74
65: ; preds = %61
%66 = load i32, ptr %8, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i32, ptr %13, i64 %67
%69 = load i32, ptr %68, align 4
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %69)
br label %71
71: ; preds = %65
%72 = load i32, ptr %8, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %8, align 4
br label %61, !llvm.loop !8
74: ; preds = %61
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %38, !llvm.loop !9
76: ; preds = %48
%77 = load i32, ptr %7, align 4
%78 = load i32, ptr %5, align 4
%79 = add nsw i32 %78, 1
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %13, i64 %80
store i32 %77, ptr %81, align 4
br label %82
82: ; preds = %76
%83 = load i32, ptr %6, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %6, align 4
br label %27, !llvm.loop !10
85: ; preds = %27
store i32 0, ptr %8, align 4
br label %86
86: ; preds = %96, %85
%87 = load i32, ptr %8, align 4
%88 = load i32, ptr %2, align 4
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %99
90: ; preds = %86
%91 = load i32, ptr %8, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %13, i64 %92
%94 = load i32, ptr %93, align 4
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %94)
br label %96
96: ; preds = %90
%97 = load i32, ptr %8, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %8, align 4
br label %86, !llvm.loop !11
99: ; preds = %86
store i32 0, ptr %1, align 4
%100 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %100)
%101 = load i32, ptr %1, align 4
ret i32 %101
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzd4wsurm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \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 i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%10 = load i32, ptr %2, align 4
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %3, align 8
%13 = alloca i32, i64 %11, align 16
store i64 %11, ptr %4, align 8
store i32 0, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %17
17: ; preds = %.lr.ph, %22
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %13, i64 %19
%21 = call i32 @scanf(ptr noundef @.str, ptr noundef %20)
br label %22
22: ; preds = %17
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %2, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %0
store i32 1, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %2, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %.lr.ph5, label %91
.lr.ph5: ; preds = %28
br label %32
32: ; preds = %.lr.ph5, %85
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %13, i64 %34
%36 = load i32, ptr %35, align 4
store i32 %36, ptr %7, align 4
%37 = load i32, ptr %6, align 4
%38 = sub nsw i32 %37, 1
store i32 %38, ptr %5, align 4
br label %39
39: ; preds = %77, %32
%40 = load i32, ptr %5, align 4
%41 = icmp sge i32 %40, 0
br i1 %41, label %42, label %49
42: ; preds = %39
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %13, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr %7, align 4
%48 = icmp sgt i32 %46, %47
br label %49
49: ; preds = %42, %39
%50 = phi i1 [ false, %39 ], [ %48, %42 ]
br i1 %50, label %51, label %79
51: ; preds = %49
%52 = load i32, ptr %5, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %13, i64 %53
%55 = load i32, ptr %54, align 4
%56 = load i32, ptr %5, align 4
%57 = add nsw i32 %56, 1
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %13, i64 %58
store i32 %55, ptr %59, align 4
%60 = load i32, ptr %5, align 4
%61 = sub nsw i32 %60, 1
store i32 %61, ptr %5, align 4
store i32 0, ptr %8, align 4
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %2, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %.lr.ph2, label %77
.lr.ph2: ; preds = %51
br label %65
65: ; preds = %.lr.ph2, %71
%66 = load i32, ptr %8, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i32, ptr %13, i64 %67
%69 = load i32, ptr %68, align 4
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %69)
br label %71
71: ; preds = %65
%72 = load i32, ptr %8, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %8, align 4
%74 = load i32, ptr %8, align 4
%75 = load i32, ptr %2, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %65, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %71
br label %77
77: ; preds = %._crit_edge3, %51
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %39, !llvm.loop !9
79: ; preds = %49
%80 = load i32, ptr %7, align 4
%81 = load i32, ptr %5, align 4
%82 = add nsw i32 %81, 1
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, ptr %13, i64 %83
store i32 %80, ptr %84, align 4
br label %85
85: ; preds = %79
%86 = load i32, ptr %6, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %6, align 4
%88 = load i32, ptr %6, align 4
%89 = load i32, ptr %2, align 4
%90 = icmp slt i32 %88, %89
br i1 %90, label %32, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %85
br label %91
91: ; preds = %._crit_edge6, %28
store i32 0, ptr %8, align 4
%92 = load i32, ptr %8, align 4
%93 = load i32, ptr %2, align 4
%94 = icmp slt i32 %92, %93
br i1 %94, label %.lr.ph8, label %107
.lr.ph8: ; preds = %91
br label %95
95: ; preds = %.lr.ph8, %101
%96 = load i32, ptr %8, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %13, i64 %97
%99 = load i32, ptr %98, align 4
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %99)
br label %101
101: ; preds = %95
%102 = load i32, ptr %8, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %8, align 4
%104 = load i32, ptr %8, align 4
%105 = load i32, ptr %2, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %95, label %._crit_edge9, !llvm.loop !11
._crit_edge9: ; preds = %101
br label %107
107: ; preds = %._crit_edge9, %91
store i32 0, ptr %1, align 4
%108 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %108)
%109 = load i32, ptr %1, align 4
ret i32 %109
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpx6lotgj7.c'
source_filename = "/tmp/tmpx6lotgj7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"\0A-------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"\0AFatoracao LU: \0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"A = matriz\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"L encontrado\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"L correto\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"U encontrado\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"U correto\00", align 1
@.str.7 = private unnamed_addr constant [13 x i8] c"P encontrado\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"P correto\00", align 1
@.str.9 = private unnamed_addr constant [38 x i8] c"\0AFatoracao LU executada com sucesso.\0A\00", align 1
@.str.10 = private unnamed_addr constant [38 x i8] c"\0AFatoracao LU nao passou nos testes.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @imprime_teste_fatoracao_lu(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
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = 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 i32 %4, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = call ptr @matriz_quadrada_nula(i32 noundef %15)
store ptr %16, ptr %12, align 8
%17 = load i32, ptr %10, align 4
%18 = call ptr @matriz_quadrada_nula(i32 noundef %17)
store ptr %18, ptr %13, align 8
%19 = load i32, ptr %10, align 4
%20 = call ptr @matriz_quadrada_nula(i32 noundef %19)
store ptr %20, ptr %14, align 8
%21 = call i32 @printf(ptr noundef @.str)
%22 = call i32 @printf(ptr noundef @.str.1)
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %10, align 4
%25 = load i32, ptr %10, align 4
%26 = call i32 @imprime_matriz(ptr noundef %23, i32 noundef %24, i32 noundef %25, ptr noundef @.str.2)
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %10, align 4
%29 = load ptr, ptr %12, align 8
%30 = load ptr, ptr %13, align 8
%31 = load ptr, ptr %14, align 8
%32 = call i32 @fatoracao_lu(ptr noundef %27, i32 noundef %28, ptr noundef %29, ptr noundef %30, ptr noundef %31)
%33 = load ptr, ptr %12, align 8
%34 = load i32, ptr %10, align 4
%35 = load i32, ptr %10, align 4
%36 = call i32 @imprime_matriz(ptr noundef %33, i32 noundef %34, i32 noundef %35, ptr noundef @.str.3)
%37 = load ptr, ptr %7, align 8
%38 = load i32, ptr %10, align 4
%39 = load i32, ptr %10, align 4
%40 = call i32 @imprime_matriz(ptr noundef %37, i32 noundef %38, i32 noundef %39, ptr noundef @.str.4)
%41 = load ptr, ptr %13, align 8
%42 = load i32, ptr %10, align 4
%43 = load i32, ptr %10, align 4
%44 = call i32 @imprime_matriz(ptr noundef %41, i32 noundef %42, i32 noundef %43, ptr noundef @.str.5)
%45 = load ptr, ptr %8, align 8
%46 = load i32, ptr %10, align 4
%47 = load i32, ptr %10, align 4
%48 = call i32 @imprime_matriz(ptr noundef %45, i32 noundef %46, i32 noundef %47, ptr noundef @.str.6)
%49 = load ptr, ptr %14, align 8
%50 = load i32, ptr %10, align 4
%51 = load i32, ptr %10, align 4
%52 = call i32 @imprime_matriz(ptr noundef %49, i32 noundef %50, i32 noundef %51, ptr noundef @.str.7)
%53 = load ptr, ptr %9, align 8
%54 = load i32, ptr %10, align 4
%55 = load i32, ptr %10, align 4
%56 = call i32 @imprime_matriz(ptr noundef %53, i32 noundef %54, i32 noundef %55, ptr noundef @.str.8)
%57 = load ptr, ptr %12, align 8
%58 = load ptr, ptr %13, align 8
%59 = load ptr, ptr %14, align 8
%60 = load ptr, ptr %7, align 8
%61 = load ptr, ptr %8, align 8
%62 = load ptr, ptr %9, align 8
%63 = load i32, ptr %10, align 4
%64 = call i32 @confere_fatoracao_lu(ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %60, ptr noundef %61, ptr noundef %62, i32 noundef %63)
store i32 %64, ptr %11, align 4
%65 = load i32, ptr %11, align 4
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %5
%68 = call i32 @printf(ptr noundef @.str.9)
br label %71
69: ; preds = %5
%70 = call i32 @printf(ptr noundef @.str.10)
br label %71
71: ; preds = %69, %67
%72 = call i32 @printf(ptr noundef @.str)
%73 = load ptr, ptr %12, align 8
%74 = call i32 @free(ptr noundef %73)
store ptr null, ptr %12, align 8
%75 = load ptr, ptr %13, align 8
%76 = call i32 @free(ptr noundef %75)
store ptr null, ptr %13, align 8
%77 = load ptr, ptr %14, align 8
%78 = call i32 @free(ptr noundef %77)
store ptr null, ptr %14, align 8
ret void
}
declare ptr @matriz_quadrada_nula(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @imprime_matriz(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fatoracao_lu(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @confere_fatoracao_lu(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx6lotgj7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"\0A-------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"\0AFatoracao LU: \0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"A = matriz\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"L encontrado\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"L correto\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"U encontrado\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"U correto\00", align 1
@.str.7 = private unnamed_addr constant [13 x i8] c"P encontrado\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"P correto\00", align 1
@.str.9 = private unnamed_addr constant [38 x i8] c"\0AFatoracao LU executada com sucesso.\0A\00", align 1
@.str.10 = private unnamed_addr constant [38 x i8] c"\0AFatoracao LU nao passou nos testes.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @imprime_teste_fatoracao_lu(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
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = 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 i32 %4, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = call ptr @matriz_quadrada_nula(i32 noundef %15)
store ptr %16, ptr %12, align 8
%17 = load i32, ptr %10, align 4
%18 = call ptr @matriz_quadrada_nula(i32 noundef %17)
store ptr %18, ptr %13, align 8
%19 = load i32, ptr %10, align 4
%20 = call ptr @matriz_quadrada_nula(i32 noundef %19)
store ptr %20, ptr %14, align 8
%21 = call i32 @printf(ptr noundef @.str)
%22 = call i32 @printf(ptr noundef @.str.1)
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %10, align 4
%25 = load i32, ptr %10, align 4
%26 = call i32 @imprime_matriz(ptr noundef %23, i32 noundef %24, i32 noundef %25, ptr noundef @.str.2)
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %10, align 4
%29 = load ptr, ptr %12, align 8
%30 = load ptr, ptr %13, align 8
%31 = load ptr, ptr %14, align 8
%32 = call i32 @fatoracao_lu(ptr noundef %27, i32 noundef %28, ptr noundef %29, ptr noundef %30, ptr noundef %31)
%33 = load ptr, ptr %12, align 8
%34 = load i32, ptr %10, align 4
%35 = load i32, ptr %10, align 4
%36 = call i32 @imprime_matriz(ptr noundef %33, i32 noundef %34, i32 noundef %35, ptr noundef @.str.3)
%37 = load ptr, ptr %7, align 8
%38 = load i32, ptr %10, align 4
%39 = load i32, ptr %10, align 4
%40 = call i32 @imprime_matriz(ptr noundef %37, i32 noundef %38, i32 noundef %39, ptr noundef @.str.4)
%41 = load ptr, ptr %13, align 8
%42 = load i32, ptr %10, align 4
%43 = load i32, ptr %10, align 4
%44 = call i32 @imprime_matriz(ptr noundef %41, i32 noundef %42, i32 noundef %43, ptr noundef @.str.5)
%45 = load ptr, ptr %8, align 8
%46 = load i32, ptr %10, align 4
%47 = load i32, ptr %10, align 4
%48 = call i32 @imprime_matriz(ptr noundef %45, i32 noundef %46, i32 noundef %47, ptr noundef @.str.6)
%49 = load ptr, ptr %14, align 8
%50 = load i32, ptr %10, align 4
%51 = load i32, ptr %10, align 4
%52 = call i32 @imprime_matriz(ptr noundef %49, i32 noundef %50, i32 noundef %51, ptr noundef @.str.7)
%53 = load ptr, ptr %9, align 8
%54 = load i32, ptr %10, align 4
%55 = load i32, ptr %10, align 4
%56 = call i32 @imprime_matriz(ptr noundef %53, i32 noundef %54, i32 noundef %55, ptr noundef @.str.8)
%57 = load ptr, ptr %12, align 8
%58 = load ptr, ptr %13, align 8
%59 = load ptr, ptr %14, align 8
%60 = load ptr, ptr %7, align 8
%61 = load ptr, ptr %8, align 8
%62 = load ptr, ptr %9, align 8
%63 = load i32, ptr %10, align 4
%64 = call i32 @confere_fatoracao_lu(ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %60, ptr noundef %61, ptr noundef %62, i32 noundef %63)
store i32 %64, ptr %11, align 4
%65 = load i32, ptr %11, align 4
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %5
%68 = call i32 @printf(ptr noundef @.str.9)
br label %71
69: ; preds = %5
%70 = call i32 @printf(ptr noundef @.str.10)
br label %71
71: ; preds = %69, %67
%72 = call i32 @printf(ptr noundef @.str)
%73 = load ptr, ptr %12, align 8
%74 = call i32 @free(ptr noundef %73)
store ptr null, ptr %12, align 8
%75 = load ptr, ptr %13, align 8
%76 = call i32 @free(ptr noundef %75)
store ptr null, ptr %13, align 8
%77 = load ptr, ptr %14, align 8
%78 = call i32 @free(ptr noundef %77)
store ptr null, ptr %14, align 8
ret void
}
declare ptr @matriz_quadrada_nula(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @imprime_matriz(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fatoracao_lu(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @confere_fatoracao_lu(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqddl1gp_.c'
source_filename = "/tmp/tmpqddl1gp_.c"
target datalayout = "e-m:e-p270: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/tmpqddl1gp_.c"
target datalayout = "e-m:e-p270: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/tmp9zropfm4.c'
source_filename = "/tmp/tmp9zropfm4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"revstr(%s) = \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @revstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %5, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
br label %39
11: ; preds = %1
%12 = load ptr, ptr %2, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
%14 = load ptr, ptr %2, align 8
store ptr %14, ptr %3, align 8
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = getelementptr inbounds i8, ptr %18, i64 -1
store ptr %19, ptr %4, align 8
br label %20
20: ; preds = %24, %11
%21 = load ptr, ptr %3, align 8
%22 = load ptr, ptr %4, align 8
%23 = icmp ult ptr %21, %22
br i1 %23, label %24, label %36
24: ; preds = %20
%25 = load ptr, ptr %3, align 8
%26 = load i8, ptr %25, align 1
store i8 %26, ptr %6, align 1
%27 = load ptr, ptr %4, align 8
%28 = load i8, ptr %27, align 1
%29 = load ptr, ptr %3, align 8
store i8 %28, ptr %29, align 1
%30 = load i8, ptr %6, align 1
%31 = load ptr, ptr %4, align 8
store i8 %30, ptr %31, align 1
%32 = load ptr, ptr %3, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %3, align 8
%34 = load ptr, ptr %4, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 -1
store ptr %35, ptr %4, align 8
br label %20, !llvm.loop !6
36: ; preds = %20
%37 = load ptr, ptr %2, align 8
%38 = call i32 @printf(ptr noundef @.str.1, ptr noundef %37)
br label %39
39: ; preds = %36, %10
ret void
}
declare i32 @strlen(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/tmp9zropfm4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"revstr(%s) = \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @revstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %5, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
br label %41
11: ; preds = %1
%12 = load ptr, ptr %2, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
%14 = load ptr, ptr %2, align 8
store ptr %14, ptr %3, align 8
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = getelementptr inbounds i8, ptr %18, i64 -1
store ptr %19, ptr %4, align 8
%20 = load ptr, ptr %3, align 8
%21 = load ptr, ptr %4, align 8
%22 = icmp ult ptr %20, %21
br i1 %22, label %.lr.ph, label %38
.lr.ph: ; preds = %11
br label %23
23: ; preds = %.lr.ph, %23
%24 = load ptr, ptr %3, align 8
%25 = load i8, ptr %24, align 1
store i8 %25, ptr %6, align 1
%26 = load ptr, ptr %4, align 8
%27 = load i8, ptr %26, align 1
%28 = load ptr, ptr %3, align 8
store i8 %27, ptr %28, align 1
%29 = load i8, ptr %6, align 1
%30 = load ptr, ptr %4, align 8
store i8 %29, ptr %30, align 1
%31 = load ptr, ptr %3, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %3, align 8
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 -1
store ptr %34, ptr %4, align 8
%35 = load ptr, ptr %3, align 8
%36 = load ptr, ptr %4, align 8
%37 = icmp ult ptr %35, %36
br i1 %37, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %38
38: ; preds = %._crit_edge, %11
%39 = load ptr, ptr %2, align 8
%40 = call i32 @printf(ptr noundef @.str.1, ptr noundef %39)
br label %41
41: ; preds = %38, %10
ret void
}
declare i32 @strlen(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/tmpp9kb68pf.c'
source_filename = "/tmp/tmpp9kb68pf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bar2() #0 {
%1 = call i32 (...) @foo_inline()
ret i32 %1
}
declare i32 @foo_inline(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp9kb68pf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bar2() #0 {
%1 = call i32 (...) @foo_inline()
ret i32 %1
}
declare i32 @foo_inline(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpejsjndf5.c'
source_filename = "/tmp/tmpejsjndf5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isodigit_0x44() #0 {
%1 = call i64 @isodigit(i32 noundef 68)
%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 345, 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/tmpejsjndf5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isodigit_0x44() #0 {
%1 = call i64 @isodigit(i32 noundef 68)
%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 345, 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/tmpahhlmas7.c'
source_filename = "/tmp/tmpahhlmas7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mac_hmac_ripemd320(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i64, ptr %8, align 8
%14 = load ptr, ptr %9, align 8
%15 = load i64, ptr %10, align 8
%16 = call ptr @hmac_ripemd320(ptr noundef %11, ptr noundef %12, i64 noundef %13, ptr noundef %14, i64 noundef %15)
ret ptr %16
}
declare ptr @hmac_ripemd320(ptr noundef, ptr noundef, i64 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/tmpahhlmas7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mac_hmac_ripemd320(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i64, ptr %8, align 8
%14 = load ptr, ptr %9, align 8
%15 = load i64, ptr %10, align 8
%16 = call ptr @hmac_ripemd320(ptr noundef %11, ptr noundef %12, i64 noundef %13, ptr noundef %14, i64 noundef %15)
ret ptr %16
}
declare ptr @hmac_ripemd320(ptr noundef, ptr noundef, i64 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/tmplemn79dz.c'
source_filename = "/tmp/tmplemn79dz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca [10001 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 1024, i1 false)
store i32 0, ptr %3, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%9 = getelementptr inbounds [10001 x i8], ptr %4, i64 0, i64 0
%10 = call i32 @gets(ptr noundef %9)
%11 = getelementptr inbounds [10001 x i8], ptr %4, i64 0, i64 0
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %7, align 4
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %28, %0
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %7, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %31
17: ; preds = %13
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10001 x i8], ptr %4, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %25, align 4
br label %28
28: ; preds = %17
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %3, align 4
br label %13, !llvm.loop !6
31: ; preds = %13
%32 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 0
%33 = load i32, ptr %32, align 16
store i32 %33, ptr %5, align 4
store i32 1, ptr %3, align 4
br label %34
34: ; preds = %58, %31
%35 = load i32, ptr %3, align 4
%36 = icmp slt i32 %35, 256
br i1 %36, label %37, label %61
37: ; preds = %34
%38 = load i32, ptr %3, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 %39
%41 = load i32, ptr %40, align 4
%42 = load i32, ptr %5, align 4
%43 = icmp sgt i32 %41, %42
br i1 %43, label %44, label %57
44: ; preds = %37
%45 = load i32, ptr %3, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
%49 = load i32, ptr %5, align 4
%50 = icmp ne i32 %48, %49
br i1 %50, label %51, label %57
51: ; preds = %44
%52 = load i32, ptr %3, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
store i32 %55, ptr %5, align 4
%56 = load i32, ptr %3, align 4
store i32 %56, ptr %6, align 4
br label %57
57: ; preds = %51, %44, %37
br label %58
58: ; preds = %57
%59 = load i32, ptr %3, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %3, align 4
br label %34, !llvm.loop !8
61: ; preds = %34
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr %5, align 4
%64 = call i32 @printf(ptr noundef @.str, i32 noundef %62, i32 noundef %63)
%65 = load i32, ptr %1, align 4
ret i32 %65
}
; 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 @gets(ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplemn79dz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca [10001 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 1024, i1 false)
store i32 0, ptr %3, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%9 = getelementptr inbounds [10001 x i8], ptr %4, i64 0, i64 0
%10 = call i32 @gets(ptr noundef %9)
%11 = getelementptr inbounds [10001 x i8], ptr %4, i64 0, i64 0
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %7, align 4
store i32 0, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %33
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %27
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10001 x i8], ptr %4, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
store i32 %21, ptr %8, align 4
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 %23
%25 = load i32, ptr %24, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %24, align 4
br label %27
27: ; preds = %16
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
%30 = load i32, ptr %3, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %0
%34 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 0
%35 = load i32, ptr %34, align 16
store i32 %35, ptr %5, align 4
store i32 1, ptr %3, align 4
%36 = load i32, ptr %3, align 4
%37 = icmp slt i32 %36, 256
br i1 %37, label %.lr.ph2, label %64
.lr.ph2: ; preds = %33
br label %38
38: ; preds = %.lr.ph2, %59
%39 = load i32, ptr %3, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
%43 = load i32, ptr %5, align 4
%44 = icmp sgt i32 %42, %43
br i1 %44, label %45, label %58
45: ; preds = %38
%46 = load i32, ptr %3, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = load i32, ptr %5, align 4
%51 = icmp ne i32 %49, %50
br i1 %51, label %52, label %58
52: ; preds = %45
%53 = load i32, ptr %3, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 %54
%56 = load i32, ptr %55, align 4
store i32 %56, ptr %5, align 4
%57 = load i32, ptr %3, align 4
store i32 %57, ptr %6, align 4
br label %58
58: ; preds = %52, %45, %38
br label %59
59: ; preds = %58
%60 = load i32, ptr %3, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %3, align 4
%62 = load i32, ptr %3, align 4
%63 = icmp slt i32 %62, 256
br i1 %63, label %38, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %59
br label %64
64: ; preds = %._crit_edge3, %33
%65 = load i32, ptr %6, align 4
%66 = load i32, ptr %5, align 4
%67 = call i32 @printf(ptr noundef @.str, i32 noundef %65, i32 noundef %66)
%68 = load i32, ptr %1, align 4
ret i32 %68
}
; 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 @gets(ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpkbvondqa.c'
source_filename = "/tmp/tmpkbvondqa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Welcome to the game of Nim (version A).\0A\00", align 1
@.str.1 = private unnamed_addr constant [65 x i8] c"In this game, two players alternatley take marbles from a pile.\0A\00", align 1
@.str.2 = private unnamed_addr constant [58 x i8] c"In each move, a player chooses how many marbles to take.\0A\00", align 1
@.str.3 = private unnamed_addr constant [59 x i8] c"The player must take at least one and at most %i marbles.\0A\00", align 1
@.str.4 = private unnamed_addr constant [37 x i8] c"Then the other player takes a turn.\0A\00", align 1
@.str.5 = private unnamed_addr constant [44 x i8] c"The player who takes the last marble wins.\0A\00", align 1
@.str.6 = private unnamed_addr constant [54 x i8] c"====================================================\0A\00", align 1
@.str.7 = private unnamed_addr constant [35 x i8] c"There are %i marbles on the pile.\0A\00", align 1
@.str.8 = private unnamed_addr constant [26 x i8] c"You have the first turn.\0A\00", align 1
@.str.9 = private unnamed_addr constant [18 x i8] c"It is your turn.\0A\00", align 1
@.str.10 = private unnamed_addr constant [71 x i8] c"Please enter how many marbles you would like to remove from the pile: \00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.12 = private unnamed_addr constant [39 x i8] c"There are now %i marbles on the pile.\0A\00", align 1
@.str.13 = private unnamed_addr constant [30 x i8] c"Please enter a valid number.\0A\00", align 1
@.str.14 = private unnamed_addr constant [52 x i8] c"You must take at least one but at most %i marbles.\0A\00", align 1
@.str.15 = private unnamed_addr constant [24 x i8] c"Please enter a number.\0A\00", align 1
@.str.16 = private unnamed_addr constant [34 x i8] c"The computer has the first turn.\0A\00", align 1
@.str.17 = private unnamed_addr constant [27 x i8] c"It is the computers turn.\0A\00", align 1
@.str.18 = private unnamed_addr constant [23 x i8] c"The computer has won.\0A\00", align 1
@.str.19 = private unnamed_addr constant [15 x i8] c"You have won.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 @rrange(i32 noundef 10, i32 noundef 100)
store i32 %10, ptr %2, align 4
%11 = call i32 @rrange(i32 noundef 0, i32 noundef 1)
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = sdiv i32 %12, 3
%14 = call i32 @rrange(i32 noundef 1, i32 noundef %13)
store i32 %14, ptr %4, align 4
store i32 1, ptr %5, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%18 = load i32, ptr %4, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %18)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%23 = load i32, ptr %2, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %23)
br label %25
25: ; preds = %114, %0
%26 = load i32, ptr %3, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25
store i32 1, ptr %3, align 4
br label %30
29: ; preds = %25
store i32 0, ptr %3, align 4
br label %30
30: ; preds = %29, %28
%31 = load i32, ptr %3, align 4
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %90
33: ; preds = %30
%34 = load i32, ptr %5, align 4
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %40
38: ; preds = %33
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %40
40: ; preds = %38, %36
br label %41
41: ; preds = %88, %40
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
store i32 0, ptr %6, align 4
%43 = call i64 @scanf(ptr noundef @.str.11, ptr noundef %6)
%44 = load i64, ptr @EOF, align 8
%45 = icmp ne i64 %43, %44
br i1 %45, label %46, label %85
46: ; preds = %41
%47 = load i32, ptr %2, align 4
%48 = icmp eq i32 %47, 1
br i1 %48, label %49, label %62
49: ; preds = %46
%50 = load i32, ptr %6, align 4
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %55
52: ; preds = %49
store i32 0, ptr %2, align 4
%53 = load i32, ptr %2, align 4
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %53)
br label %89
55: ; preds = %49
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%57 = load i32, ptr %4, align 4
%58 = load i32, ptr %2, align 4
%59 = call i32 @min(i32 noundef %57, i32 noundef %58)
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %59)
br label %61
61: ; preds = %55
br label %84
62: ; preds = %46
%63 = load i32, ptr %6, align 4
%64 = icmp sge i32 %63, 1
br i1 %64, label %65, label %77
65: ; preds = %62
%66 = load i32, ptr %6, align 4
%67 = load i32, ptr %4, align 4
%68 = load i32, ptr %2, align 4
%69 = call i32 @min(i32 noundef %67, i32 noundef %68)
%70 = icmp sle i32 %66, %69
br i1 %70, label %71, label %77
71: ; preds = %65
%72 = load i32, ptr %6, align 4
%73 = load i32, ptr %2, align 4
%74 = sub nsw i32 %73, %72
store i32 %74, ptr %2, align 4
%75 = load i32, ptr %2, align 4
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %75)
br label %89
77: ; preds = %65, %62
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%79 = load i32, ptr %4, align 4
%80 = load i32, ptr %2, align 4
%81 = call i32 @min(i32 noundef %79, i32 noundef %80)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %81)
br label %83
83: ; preds = %77
br label %84
84: ; preds = %83, %61
br label %87
85: ; preds = %41
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
br label %87
87: ; preds = %85, %84
br label %88
88: ; preds = %87
br i1 true, label %41, label %89
89: ; preds = %88, %71, %52
br label %113
90: ; preds = %30
%91 = load i32, ptr %5, align 4
%92 = icmp eq i32 %91, 1
br i1 %92, label %93, label %95
93: ; preds = %90
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
br label %97
95: ; preds = %90
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
br label %97
97: ; preds = %95, %93
%98 = load i32, ptr %4, align 4
%99 = call i32 @rrange(i32 noundef 1, i32 noundef %98)
store i32 %99, ptr %7, align 4
br label %100
100: ; preds = %104, %97
%101 = load i32, ptr %7, align 4
%102 = load i32, ptr %2, align 4
%103 = icmp sgt i32 %101, %102
br i1 %103, label %104, label %107
104: ; preds = %100
%105 = load i32, ptr %4, align 4
%106 = call i32 @rrange(i32 noundef 1, i32 noundef %105)
store i32 %106, ptr %7, align 4
br label %100, !llvm.loop !6
107: ; preds = %100
%108 = load i32, ptr %2, align 4
%109 = load i32, ptr %7, align 4
%110 = sub nsw i32 %108, %109
store i32 %110, ptr %2, align 4
%111 = load i32, ptr %2, align 4
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %111)
br label %113
113: ; preds = %107, %89
store i32 0, ptr %5, align 4
br label %114
114: ; preds = %113
%115 = load i32, ptr %2, align 4
%116 = icmp ne i32 %115, 0
br i1 %116, label %25, label %117, !llvm.loop !8
117: ; preds = %114
%118 = load i32, ptr %3, align 4
%119 = icmp eq i32 %118, 0
br i1 %119, label %120, label %122
120: ; preds = %117
%121 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
br label %124
122: ; preds = %117
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
br label %124
124: ; preds = %122, %120
%125 = load i32, ptr %1, align 4
ret i32 %125
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rrange(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @min(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/tmpkbvondqa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Welcome to the game of Nim (version A).\0A\00", align 1
@.str.1 = private unnamed_addr constant [65 x i8] c"In this game, two players alternatley take marbles from a pile.\0A\00", align 1
@.str.2 = private unnamed_addr constant [58 x i8] c"In each move, a player chooses how many marbles to take.\0A\00", align 1
@.str.3 = private unnamed_addr constant [59 x i8] c"The player must take at least one and at most %i marbles.\0A\00", align 1
@.str.4 = private unnamed_addr constant [37 x i8] c"Then the other player takes a turn.\0A\00", align 1
@.str.5 = private unnamed_addr constant [44 x i8] c"The player who takes the last marble wins.\0A\00", align 1
@.str.6 = private unnamed_addr constant [54 x i8] c"====================================================\0A\00", align 1
@.str.7 = private unnamed_addr constant [35 x i8] c"There are %i marbles on the pile.\0A\00", align 1
@.str.8 = private unnamed_addr constant [26 x i8] c"You have the first turn.\0A\00", align 1
@.str.9 = private unnamed_addr constant [18 x i8] c"It is your turn.\0A\00", align 1
@.str.10 = private unnamed_addr constant [71 x i8] c"Please enter how many marbles you would like to remove from the pile: \00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.12 = private unnamed_addr constant [39 x i8] c"There are now %i marbles on the pile.\0A\00", align 1
@.str.13 = private unnamed_addr constant [30 x i8] c"Please enter a valid number.\0A\00", align 1
@.str.14 = private unnamed_addr constant [52 x i8] c"You must take at least one but at most %i marbles.\0A\00", align 1
@.str.15 = private unnamed_addr constant [24 x i8] c"Please enter a number.\0A\00", align 1
@.str.16 = private unnamed_addr constant [34 x i8] c"The computer has the first turn.\0A\00", align 1
@.str.17 = private unnamed_addr constant [27 x i8] c"It is the computers turn.\0A\00", align 1
@.str.18 = private unnamed_addr constant [23 x i8] c"The computer has won.\0A\00", align 1
@.str.19 = private unnamed_addr constant [15 x i8] c"You have won.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 @rrange(i32 noundef 10, i32 noundef 100)
store i32 %10, ptr %2, align 4
%11 = call i32 @rrange(i32 noundef 0, i32 noundef 1)
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = sdiv i32 %12, 3
%14 = call i32 @rrange(i32 noundef 1, i32 noundef %13)
store i32 %14, ptr %4, align 4
store i32 1, ptr %5, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%18 = load i32, ptr %4, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %18)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%23 = load i32, ptr %2, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %23)
br label %25
25: ; preds = %116, %0
%26 = load i32, ptr %3, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25
store i32 1, ptr %3, align 4
br label %30
29: ; preds = %25
store i32 0, ptr %3, align 4
br label %30
30: ; preds = %29, %28
%31 = load i32, ptr %3, align 4
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %90
33: ; preds = %30
%34 = load i32, ptr %5, align 4
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %40
38: ; preds = %33
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %40
40: ; preds = %38, %36
br label %41
41: ; preds = %88, %40
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
store i32 0, ptr %6, align 4
%43 = call i64 @scanf(ptr noundef @.str.11, ptr noundef %6)
%44 = load i64, ptr @EOF, align 8
%45 = icmp ne i64 %43, %44
br i1 %45, label %46, label %85
46: ; preds = %41
%47 = load i32, ptr %2, align 4
%48 = icmp eq i32 %47, 1
br i1 %48, label %49, label %62
49: ; preds = %46
%50 = load i32, ptr %6, align 4
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %55
52: ; preds = %49
store i32 0, ptr %2, align 4
%53 = load i32, ptr %2, align 4
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %53)
br label %89
55: ; preds = %49
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%57 = load i32, ptr %4, align 4
%58 = load i32, ptr %2, align 4
%59 = call i32 @min(i32 noundef %57, i32 noundef %58)
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %59)
br label %61
61: ; preds = %55
br label %84
62: ; preds = %46
%63 = load i32, ptr %6, align 4
%64 = icmp sge i32 %63, 1
br i1 %64, label %65, label %77
65: ; preds = %62
%66 = load i32, ptr %6, align 4
%67 = load i32, ptr %4, align 4
%68 = load i32, ptr %2, align 4
%69 = call i32 @min(i32 noundef %67, i32 noundef %68)
%70 = icmp sle i32 %66, %69
br i1 %70, label %71, label %77
71: ; preds = %65
%72 = load i32, ptr %6, align 4
%73 = load i32, ptr %2, align 4
%74 = sub nsw i32 %73, %72
store i32 %74, ptr %2, align 4
%75 = load i32, ptr %2, align 4
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %75)
br label %89
77: ; preds = %65, %62
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%79 = load i32, ptr %4, align 4
%80 = load i32, ptr %2, align 4
%81 = call i32 @min(i32 noundef %79, i32 noundef %80)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %81)
br label %83
83: ; preds = %77
br label %84
84: ; preds = %83, %61
br label %87
85: ; preds = %41
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
br label %87
87: ; preds = %85, %84
br label %88
88: ; preds = %87
br i1 true, label %41, label %.loopexit
.loopexit: ; preds = %88
br label %89
89: ; preds = %.loopexit, %71, %52
br label %115
90: ; preds = %30
%91 = load i32, ptr %5, align 4
%92 = icmp eq i32 %91, 1
br i1 %92, label %93, label %95
93: ; preds = %90
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
br label %97
95: ; preds = %90
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
br label %97
97: ; preds = %95, %93
%98 = load i32, ptr %4, align 4
%99 = call i32 @rrange(i32 noundef 1, i32 noundef %98)
store i32 %99, ptr %7, align 4
%100 = load i32, ptr %7, align 4
%101 = load i32, ptr %2, align 4
%102 = icmp sgt i32 %100, %101
br i1 %102, label %.lr.ph, label %109
.lr.ph: ; preds = %97
br label %103
103: ; preds = %.lr.ph, %103
%104 = load i32, ptr %4, align 4
%105 = call i32 @rrange(i32 noundef 1, i32 noundef %104)
store i32 %105, ptr %7, align 4
%106 = load i32, ptr %7, align 4
%107 = load i32, ptr %2, align 4
%108 = icmp sgt i32 %106, %107
br i1 %108, label %103, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %103
br label %109
109: ; preds = %._crit_edge, %97
%110 = load i32, ptr %2, align 4
%111 = load i32, ptr %7, align 4
%112 = sub nsw i32 %110, %111
store i32 %112, ptr %2, align 4
%113 = load i32, ptr %2, align 4
%114 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %113)
br label %115
115: ; preds = %109, %89
store i32 0, ptr %5, align 4
br label %116
116: ; preds = %115
%117 = load i32, ptr %2, align 4
%118 = icmp ne i32 %117, 0
br i1 %118, label %25, label %119, !llvm.loop !8
119: ; preds = %116
%120 = load i32, ptr %3, align 4
%121 = icmp eq i32 %120, 0
br i1 %121, label %122, label %124
122: ; preds = %119
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
br label %126
124: ; preds = %119
%125 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
br label %126
126: ; preds = %124, %122
%127 = load i32, ptr %1, align 4
ret i32 %127
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rrange(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @min(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/tmp5j3x7rky.c'
source_filename = "/tmp/tmp5j3x7rky.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5j3x7rky.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnptllv15.c'
source_filename = "/tmp/tmpnptllv15.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @du_dy(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9, double noundef %10, double noundef %11, double noundef %12, double noundef %13, double noundef %14, double noundef %15, double noundef %16, double noundef %17, double noundef %18, double noundef %19, double noundef %20, double noundef %21, double noundef %22, double noundef %23, double noundef %24, double noundef %25) #0 {
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca double, align 8
%30 = alloca double, align 8
%31 = alloca double, align 8
%32 = alloca double, align 8
%33 = alloca double, align 8
%34 = alloca double, align 8
%35 = alloca double, align 8
%36 = alloca double, align 8
%37 = alloca double, align 8
%38 = alloca double, align 8
%39 = alloca double, align 8
%40 = alloca double, align 8
%41 = alloca double, align 8
%42 = alloca double, align 8
%43 = alloca double, align 8
%44 = alloca double, align 8
%45 = alloca double, align 8
%46 = alloca double, align 8
%47 = alloca double, align 8
%48 = alloca double, align 8
%49 = alloca double, align 8
%50 = alloca double, align 8
%51 = alloca double, align 8
%52 = alloca double, align 8
store double %0, ptr %27, align 8
store double %1, ptr %28, align 8
store double %2, ptr %29, align 8
store double %3, ptr %30, align 8
store double %4, ptr %31, align 8
store double %5, ptr %32, align 8
store double %6, ptr %33, align 8
store double %7, ptr %34, align 8
store double %8, ptr %35, align 8
store double %9, ptr %36, align 8
store double %10, ptr %37, align 8
store double %11, ptr %38, align 8
store double %12, ptr %39, align 8
store double %13, ptr %40, align 8
store double %14, ptr %41, align 8
store double %15, ptr %42, align 8
store double %16, ptr %43, align 8
store double %17, ptr %44, align 8
store double %18, ptr %45, align 8
store double %19, ptr %46, align 8
store double %20, ptr %47, align 8
store double %21, ptr %48, align 8
store double %22, ptr %49, align 8
store double %23, ptr %50, align 8
store double %24, ptr %51, align 8
store double %25, ptr %52, align 8
%53 = load double, ptr %28, align 8
%54 = fneg double %53
%55 = load double, ptr %31, align 8
%56 = fmul double %54, %55
%57 = load double, ptr %48, align 8
%58 = fmul double %56, %57
%59 = load double, ptr %44, align 8
%60 = load double, ptr %41, align 8
%61 = load double, ptr %46, align 8
%62 = call double @llvm.fmuladd.f64(double %60, double %61, double %59)
%63 = call double @cos(double noundef %62) #3
%64 = fmul double %58, %63
%65 = load double, ptr %34, align 8
%66 = load double, ptr %31, align 8
%67 = load double, ptr %48, align 8
%68 = fmul double %66, %67
%69 = load double, ptr %51, align 8
%70 = call double @llvm.fmuladd.f64(double %68, double %69, double %65)
%71 = call double @sin(double noundef %70) #3
%72 = load double, ptr %27, align 8
%73 = load double, ptr %36, align 8
%74 = fmul double %72, %73
%75 = load double, ptr %48, align 8
%76 = fmul double %74, %75
%77 = load double, ptr %33, align 8
%78 = load double, ptr %30, align 8
%79 = load double, ptr %47, align 8
%80 = fmul double %78, %79
%81 = load double, ptr %50, align 8
%82 = call double @llvm.fmuladd.f64(double %80, double %81, double %77)
%83 = call double @cos(double noundef %82) #3
%84 = fmul double %76, %83
%85 = load double, ptr %43, align 8
%86 = load double, ptr %40, align 8
%87 = load double, ptr %46, align 8
%88 = call double @llvm.fmuladd.f64(double %86, double %87, double %85)
%89 = call double @cos(double noundef %88) #3
%90 = fmul double %84, %89
%91 = load double, ptr %38, align 8
%92 = load double, ptr %36, align 8
%93 = load double, ptr %48, align 8
%94 = fmul double %92, %93
%95 = load double, ptr %51, align 8
%96 = call double @llvm.fmuladd.f64(double %94, double %95, double %91)
%97 = call double @sin(double noundef %96) #3
%98 = fmul double %90, %97
%99 = fneg double %98
%100 = call double @llvm.fmuladd.f64(double %64, double %71, double %99)
%101 = load double, ptr %29, align 8
%102 = load double, ptr %32, align 8
%103 = fmul double %101, %102
%104 = load double, ptr %48, align 8
%105 = fmul double %103, %104
%106 = load double, ptr %45, align 8
%107 = load double, ptr %42, align 8
%108 = load double, ptr %46, align 8
%109 = call double @llvm.fmuladd.f64(double %107, double %108, double %106)
%110 = call double @cos(double noundef %109) #3
%111 = fmul double %105, %110
%112 = load double, ptr %39, align 8
%113 = load double, ptr %37, align 8
%114 = load double, ptr %49, align 8
%115 = fmul double %113, %114
%116 = load double, ptr %52, align 8
%117 = call double @llvm.fmuladd.f64(double %115, double %116, double %112)
%118 = call double @cos(double noundef %117) #3
%119 = fmul double %111, %118
%120 = load double, ptr %35, align 8
%121 = load double, ptr %32, align 8
%122 = load double, ptr %48, align 8
%123 = fmul double %121, %122
%124 = load double, ptr %51, align 8
%125 = call double @llvm.fmuladd.f64(double %123, double %124, double %120)
%126 = call double @sin(double noundef %125) #3
%127 = fneg double %119
%128 = call double @llvm.fmuladd.f64(double %127, double %126, double %100)
ret double %128
}
; Function Attrs: nounwind
declare double @cos(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnptllv15.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @du_dy(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9, double noundef %10, double noundef %11, double noundef %12, double noundef %13, double noundef %14, double noundef %15, double noundef %16, double noundef %17, double noundef %18, double noundef %19, double noundef %20, double noundef %21, double noundef %22, double noundef %23, double noundef %24, double noundef %25) #0 {
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca double, align 8
%30 = alloca double, align 8
%31 = alloca double, align 8
%32 = alloca double, align 8
%33 = alloca double, align 8
%34 = alloca double, align 8
%35 = alloca double, align 8
%36 = alloca double, align 8
%37 = alloca double, align 8
%38 = alloca double, align 8
%39 = alloca double, align 8
%40 = alloca double, align 8
%41 = alloca double, align 8
%42 = alloca double, align 8
%43 = alloca double, align 8
%44 = alloca double, align 8
%45 = alloca double, align 8
%46 = alloca double, align 8
%47 = alloca double, align 8
%48 = alloca double, align 8
%49 = alloca double, align 8
%50 = alloca double, align 8
%51 = alloca double, align 8
%52 = alloca double, align 8
store double %0, ptr %27, align 8
store double %1, ptr %28, align 8
store double %2, ptr %29, align 8
store double %3, ptr %30, align 8
store double %4, ptr %31, align 8
store double %5, ptr %32, align 8
store double %6, ptr %33, align 8
store double %7, ptr %34, align 8
store double %8, ptr %35, align 8
store double %9, ptr %36, align 8
store double %10, ptr %37, align 8
store double %11, ptr %38, align 8
store double %12, ptr %39, align 8
store double %13, ptr %40, align 8
store double %14, ptr %41, align 8
store double %15, ptr %42, align 8
store double %16, ptr %43, align 8
store double %17, ptr %44, align 8
store double %18, ptr %45, align 8
store double %19, ptr %46, align 8
store double %20, ptr %47, align 8
store double %21, ptr %48, align 8
store double %22, ptr %49, align 8
store double %23, ptr %50, align 8
store double %24, ptr %51, align 8
store double %25, ptr %52, align 8
%53 = load double, ptr %28, align 8
%54 = fneg double %53
%55 = load double, ptr %31, align 8
%56 = fmul double %54, %55
%57 = load double, ptr %48, align 8
%58 = fmul double %56, %57
%59 = load double, ptr %44, align 8
%60 = load double, ptr %41, align 8
%61 = load double, ptr %46, align 8
%62 = call double @llvm.fmuladd.f64(double %60, double %61, double %59)
%63 = call double @cos(double noundef %62) #3
%64 = fmul double %58, %63
%65 = load double, ptr %34, align 8
%66 = load double, ptr %31, align 8
%67 = load double, ptr %48, align 8
%68 = fmul double %66, %67
%69 = load double, ptr %51, align 8
%70 = call double @llvm.fmuladd.f64(double %68, double %69, double %65)
%71 = call double @sin(double noundef %70) #3
%72 = load double, ptr %27, align 8
%73 = load double, ptr %36, align 8
%74 = fmul double %72, %73
%75 = load double, ptr %48, align 8
%76 = fmul double %74, %75
%77 = load double, ptr %33, align 8
%78 = load double, ptr %30, align 8
%79 = load double, ptr %47, align 8
%80 = fmul double %78, %79
%81 = load double, ptr %50, align 8
%82 = call double @llvm.fmuladd.f64(double %80, double %81, double %77)
%83 = call double @cos(double noundef %82) #3
%84 = fmul double %76, %83
%85 = load double, ptr %43, align 8
%86 = load double, ptr %40, align 8
%87 = load double, ptr %46, align 8
%88 = call double @llvm.fmuladd.f64(double %86, double %87, double %85)
%89 = call double @cos(double noundef %88) #3
%90 = fmul double %84, %89
%91 = load double, ptr %38, align 8
%92 = load double, ptr %36, align 8
%93 = load double, ptr %48, align 8
%94 = fmul double %92, %93
%95 = load double, ptr %51, align 8
%96 = call double @llvm.fmuladd.f64(double %94, double %95, double %91)
%97 = call double @sin(double noundef %96) #3
%98 = fmul double %90, %97
%99 = fneg double %98
%100 = call double @llvm.fmuladd.f64(double %64, double %71, double %99)
%101 = load double, ptr %29, align 8
%102 = load double, ptr %32, align 8
%103 = fmul double %101, %102
%104 = load double, ptr %48, align 8
%105 = fmul double %103, %104
%106 = load double, ptr %45, align 8
%107 = load double, ptr %42, align 8
%108 = load double, ptr %46, align 8
%109 = call double @llvm.fmuladd.f64(double %107, double %108, double %106)
%110 = call double @cos(double noundef %109) #3
%111 = fmul double %105, %110
%112 = load double, ptr %39, align 8
%113 = load double, ptr %37, align 8
%114 = load double, ptr %49, align 8
%115 = fmul double %113, %114
%116 = load double, ptr %52, align 8
%117 = call double @llvm.fmuladd.f64(double %115, double %116, double %112)
%118 = call double @cos(double noundef %117) #3
%119 = fmul double %111, %118
%120 = load double, ptr %35, align 8
%121 = load double, ptr %32, align 8
%122 = load double, ptr %48, align 8
%123 = fmul double %121, %122
%124 = load double, ptr %51, align 8
%125 = call double @llvm.fmuladd.f64(double %123, double %124, double %120)
%126 = call double @sin(double noundef %125) #3
%127 = fneg double %119
%128 = call double @llvm.fmuladd.f64(double %127, double %126, double %100)
ret double %128
}
; Function Attrs: nounwind
declare double @cos(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4khpvw5o.c'
source_filename = "/tmp/tmp4khpvw5o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.number = internal global i32 7, align 4
@.str = private unnamed_addr constant [15 x i8] c"number is: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca 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
br label %7
7: ; preds = %14, %2
%8 = load i32, ptr %6, align 4
%9 = icmp sle i32 %8, 5
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load i32, ptr @main.number, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr @main.number, align 4
%13 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
br label %14
14: ; preds = %10
%15 = load i32, ptr %6, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %6, align 4
br label %7, !llvm.loop !6
17: ; preds = %7
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4khpvw5o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.number = internal global i32 7, align 4
@.str = private unnamed_addr constant [15 x i8] c"number is: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca 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
%7 = load i32, ptr %6, align 4
%8 = icmp sle i32 %7, 5
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %13
%10 = load i32, ptr @main.number, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr @main.number, align 4
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
br label %13
13: ; preds = %9
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp sle i32 %16, 5
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %2
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpeol08vjy.c'
source_filename = "/tmp/tmpeol08vjy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MSG_NOSIGNAL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [43 x i8] c"Routing send to socket (unsupported flags)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @send(i32 noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%10 = load i32, ptr %9, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %16, label %12
12: ; preds = %4
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr @MSG_NOSIGNAL, align 4
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %21
16: ; preds = %12, %4
%17 = load i32, ptr %6, align 4
%18 = load ptr, ptr %7, align 8
%19 = load i64, ptr %8, align 8
%20 = call i32 @write(i32 noundef %17, ptr noundef %18, i64 noundef %19)
store i32 %20, ptr %5, align 4
br label %28
21: ; preds = %12
%22 = call i32 @warn(ptr noundef @.str)
%23 = load i32, ptr %6, align 4
%24 = load ptr, ptr %7, align 8
%25 = load i64, ptr %8, align 8
%26 = load i32, ptr %9, align 4
%27 = call i32 @real_send(i32 noundef %23, ptr noundef %24, i64 noundef %25, i32 noundef %26)
store i32 %27, ptr %5, align 4
br label %28
28: ; preds = %21, %16
%29 = load i32, ptr %5, align 4
ret i32 %29
}
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @warn(ptr noundef) #1
declare i32 @real_send(i32 noundef, ptr noundef, i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeol08vjy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MSG_NOSIGNAL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [43 x i8] c"Routing send to socket (unsupported flags)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @send(i32 noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%10 = load i32, ptr %9, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %16, label %12
12: ; preds = %4
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr @MSG_NOSIGNAL, align 4
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %21
16: ; preds = %12, %4
%17 = load i32, ptr %6, align 4
%18 = load ptr, ptr %7, align 8
%19 = load i64, ptr %8, align 8
%20 = call i32 @write(i32 noundef %17, ptr noundef %18, i64 noundef %19)
store i32 %20, ptr %5, align 4
br label %28
21: ; preds = %12
%22 = call i32 @warn(ptr noundef @.str)
%23 = load i32, ptr %6, align 4
%24 = load ptr, ptr %7, align 8
%25 = load i64, ptr %8, align 8
%26 = load i32, ptr %9, align 4
%27 = call i32 @real_send(i32 noundef %23, ptr noundef %24, i64 noundef %25, i32 noundef %26)
store i32 %27, ptr %5, align 4
br label %28
28: ; preds = %21, %16
%29 = load i32, ptr %5, align 4
ret i32 %29
}
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @warn(ptr noundef) #1
declare i32 @real_send(i32 noundef, ptr noundef, i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkxsdqwly.c'
source_filename = "/tmp/tmpkxsdqwly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uninit2() #0 {
%1 = alloca ptr, align 8
%2 = load ptr, ptr %1, align 8
%3 = call i32 @free(ptr noundef %2)
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/tmpkxsdqwly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uninit2() #0 {
%1 = alloca ptr, align 8
%2 = load ptr, ptr %1, align 8
%3 = call i32 @free(ptr noundef %2)
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/tmpl8cbcooq.c'
source_filename = "/tmp/tmpl8cbcooq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"fanon\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fanon() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
store i32 1, ptr %1, align 4
store i8 32, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = load i32, ptr %1, align 4
%5 = call i32 @portctl(i8 noundef signext %3, i32 noundef %4, ptr noundef @.str)
ret i32 1
}
declare i32 @portctl(i8 noundef signext, 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/tmpl8cbcooq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"fanon\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fanon() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
store i32 1, ptr %1, align 4
store i8 32, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = load i32, ptr %1, align 4
%5 = call i32 @portctl(i8 noundef signext %3, i32 noundef %4, ptr noundef @.str)
ret i32 1
}
declare i32 @portctl(i8 noundef signext, 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/tmpp1893hxi.c'
source_filename = "/tmp/tmpp1893hxi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
br label %6
6: ; preds = %9, %2
%7 = load i32, ptr %4, align 4
%8 = icmp sgt i32 %7, 1
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %12)
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %4, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i32 1
store ptr %17, ptr %5, align 8
br label %6, !llvm.loop !6
18: ; preds = %6
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp1893hxi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp sgt i32 %6, 1
br i1 %7, label %.lr.ph, label %19
.lr.ph: ; preds = %2
br label %8
8: ; preds = %.lr.ph, %8
%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 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %11)
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %4, align 4
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i32 1
store ptr %16, ptr %5, align 8
%17 = load i32, ptr %4, align 4
%18 = icmp sgt i32 %17, 1
br i1 %18, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %19
19: ; preds = %._crit_edge, %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2pf0iefq.c'
source_filename = "/tmp/tmp2pf0iefq.c"
target datalayout = "e-m:e-p270: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/tmp2pf0iefq.c"
target datalayout = "e-m:e-p270: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/tmppx6q5za8.c'
source_filename = "/tmp/tmppx6q5za8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPPROTO_IP = dso_local global i32 0, align 4
@IP_TOS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @os_set_tos(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
store i32 %6, ptr %5, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr @IPPROTO_IP, align 4
%9 = load i32, ptr @IP_TOS, align 4
%10 = call i64 @setsockopt(i32 noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef %5, i32 noundef 4)
%11 = icmp eq i64 0, %10
%12 = zext i1 %11 to i32
ret i32 %12
}
declare i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppx6q5za8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPPROTO_IP = dso_local global i32 0, align 4
@IP_TOS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @os_set_tos(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
store i32 %6, ptr %5, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr @IPPROTO_IP, align 4
%9 = load i32, ptr @IP_TOS, align 4
%10 = call i64 @setsockopt(i32 noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef %5, i32 noundef 4)
%11 = icmp eq i64 0, %10
%12 = zext i1 %11 to i32
ret i32 %12
}
declare i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0suo4j3q.c'
source_filename = "/tmp/tmp0suo4j3q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0x%08lX %-32s\09%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dumpAddr(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %6, align 8
%9 = ptrtoint ptr %8 to i64
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = ptrtoint ptr %11 to i64
%13 = call i32 @fprintf(ptr noundef %7, ptr noundef @.str, i64 noundef %9, ptr noundef %10, i64 noundef %12)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, i64 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/tmp0suo4j3q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0x%08lX %-32s\09%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dumpAddr(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %6, align 8
%9 = ptrtoint ptr %8 to i64
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = ptrtoint ptr %11 to i64
%13 = call i32 @fprintf(ptr noundef %7, ptr noundef @.str, i64 noundef %9, ptr noundef %10, i64 noundef %12)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, i64 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/tmp49akkbo3.c'
source_filename = "/tmp/tmp49akkbo3.c"
target datalayout = "e-m:e-p270: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/tmp49akkbo3.c"
target datalayout = "e-m:e-p270: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/tmpo1sn62aw.c'
source_filename = "/tmp/tmpo1sn62aw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%le\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @GetLength(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [25 x i8], align 16
%4 = alloca i8, align 1
%5 = alloca double, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %6, align 4
store i32 24, ptr %7, align 4
br label %8
8: ; preds = %46, %1
%9 = load ptr, ptr %2, align 8
%10 = load ptr, ptr %9, align 8
%11 = getelementptr inbounds i8, ptr %10, i32 1
store ptr %11, ptr %9, align 8
%12 = load i8, ptr %10, align 1
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %6, align 4
%15 = sext i32 %13 to i64
%16 = getelementptr inbounds [25 x i8], ptr %3, i64 0, i64 %15
store i8 %12, ptr %16, align 1
%17 = load ptr, ptr %2, align 8
%18 = load ptr, ptr %17, align 8
%19 = load i8, ptr %18, align 1
store i8 %19, ptr %4, align 1
br label %20
20: ; preds = %8
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %46
24: ; preds = %20
%25 = load i8, ptr %4, align 1
%26 = call i64 @isdigit(i8 noundef zeroext %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %44, label %28
28: ; preds = %24
%29 = load i8, ptr %4, align 1
%30 = zext i8 %29 to i32
%31 = icmp eq i32 %30, 101
br i1 %31, label %44, label %32
32: ; preds = %28
%33 = load i8, ptr %4, align 1
%34 = zext i8 %33 to i32
%35 = icmp eq i32 %34, 45
br i1 %35, label %44, label %36
36: ; preds = %32
%37 = load i8, ptr %4, align 1
%38 = zext i8 %37 to i32
%39 = icmp eq i32 %38, 46
br i1 %39, label %44, label %40
40: ; preds = %36
%41 = load i8, ptr %4, align 1
%42 = zext i8 %41 to i32
%43 = icmp eq i32 %42, 43
br label %44
44: ; preds = %40, %36, %32, %28, %24
%45 = phi i1 [ true, %36 ], [ true, %32 ], [ true, %28 ], [ true, %24 ], [ %43, %40 ]
br label %46
46: ; preds = %44, %20
%47 = phi i1 [ false, %20 ], [ %45, %44 ]
br i1 %47, label %8, label %48, !llvm.loop !6
48: ; preds = %46
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [25 x i8], ptr %3, i64 0, i64 %50
store i8 0, ptr %51, align 1
br label %52
52: ; preds = %74, %48
%53 = load i8, ptr %4, align 1
%54 = call i64 @isdigit(i8 noundef zeroext %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %72, label %56
56: ; preds = %52
%57 = load i8, ptr %4, align 1
%58 = zext i8 %57 to i32
%59 = icmp eq i32 %58, 101
br i1 %59, label %72, label %60
60: ; preds = %56
%61 = load i8, ptr %4, align 1
%62 = zext i8 %61 to i32
%63 = icmp eq i32 %62, 45
br i1 %63, label %72, label %64
64: ; preds = %60
%65 = load i8, ptr %4, align 1
%66 = zext i8 %65 to i32
%67 = icmp eq i32 %66, 46
br i1 %67, label %72, label %68
68: ; preds = %64
%69 = load i8, ptr %4, align 1
%70 = zext i8 %69 to i32
%71 = icmp eq i32 %70, 43
br label %72
72: ; preds = %68, %64, %60, %56, %52
%73 = phi i1 [ true, %64 ], [ true, %60 ], [ true, %56 ], [ true, %52 ], [ %71, %68 ]
br i1 %73, label %74, label %81
74: ; preds = %72
%75 = load ptr, ptr %2, align 8
%76 = load ptr, ptr %75, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %75, align 8
%78 = load ptr, ptr %2, align 8
%79 = load ptr, ptr %78, align 8
%80 = load i8, ptr %79, align 1
store i8 %80, ptr %4, align 1
br label %52, !llvm.loop !8
81: ; preds = %72
%82 = getelementptr inbounds [25 x i8], ptr %3, i64 0, i64 0
%83 = call i32 @sscanf(ptr noundef %82, ptr noundef @.str, ptr noundef %5)
%84 = load double, ptr %5, align 8
ret double %84
}
declare i64 @isdigit(i8 noundef zeroext) #1
declare i32 @sscanf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo1sn62aw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%le\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @GetLength(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [25 x i8], align 16
%4 = alloca i8, align 1
%5 = alloca double, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %6, align 4
store i32 24, ptr %7, align 4
br label %8
8: ; preds = %46, %1
%9 = load ptr, ptr %2, align 8
%10 = load ptr, ptr %9, align 8
%11 = getelementptr inbounds i8, ptr %10, i32 1
store ptr %11, ptr %9, align 8
%12 = load i8, ptr %10, align 1
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %6, align 4
%15 = sext i32 %13 to i64
%16 = getelementptr inbounds [25 x i8], ptr %3, i64 0, i64 %15
store i8 %12, ptr %16, align 1
%17 = load ptr, ptr %2, align 8
%18 = load ptr, ptr %17, align 8
%19 = load i8, ptr %18, align 1
store i8 %19, ptr %4, align 1
br label %20
20: ; preds = %8
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %46
24: ; preds = %20
%25 = load i8, ptr %4, align 1
%26 = call i64 @isdigit(i8 noundef zeroext %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %44, label %28
28: ; preds = %24
%29 = load i8, ptr %4, align 1
%30 = zext i8 %29 to i32
%31 = icmp eq i32 %30, 101
br i1 %31, label %44, label %32
32: ; preds = %28
%33 = load i8, ptr %4, align 1
%34 = zext i8 %33 to i32
%35 = icmp eq i32 %34, 45
br i1 %35, label %44, label %36
36: ; preds = %32
%37 = load i8, ptr %4, align 1
%38 = zext i8 %37 to i32
%39 = icmp eq i32 %38, 46
br i1 %39, label %44, label %40
40: ; preds = %36
%41 = load i8, ptr %4, align 1
%42 = zext i8 %41 to i32
%43 = icmp eq i32 %42, 43
br label %44
44: ; preds = %40, %36, %32, %28, %24
%45 = phi i1 [ true, %36 ], [ true, %32 ], [ true, %28 ], [ true, %24 ], [ %43, %40 ]
br label %46
46: ; preds = %44, %20
%47 = phi i1 [ false, %20 ], [ %45, %44 ]
br i1 %47, label %8, label %48, !llvm.loop !6
48: ; preds = %46
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [25 x i8], ptr %3, i64 0, i64 %50
store i8 0, ptr %51, align 1
br label %52
52: ; preds = %74, %48
%53 = load i8, ptr %4, align 1
%54 = call i64 @isdigit(i8 noundef zeroext %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %72, label %56
56: ; preds = %52
%57 = load i8, ptr %4, align 1
%58 = zext i8 %57 to i32
%59 = icmp eq i32 %58, 101
br i1 %59, label %72, label %60
60: ; preds = %56
%61 = load i8, ptr %4, align 1
%62 = zext i8 %61 to i32
%63 = icmp eq i32 %62, 45
br i1 %63, label %72, label %64
64: ; preds = %60
%65 = load i8, ptr %4, align 1
%66 = zext i8 %65 to i32
%67 = icmp eq i32 %66, 46
br i1 %67, label %72, label %68
68: ; preds = %64
%69 = load i8, ptr %4, align 1
%70 = zext i8 %69 to i32
%71 = icmp eq i32 %70, 43
br label %72
72: ; preds = %68, %64, %60, %56, %52
%73 = phi i1 [ true, %64 ], [ true, %60 ], [ true, %56 ], [ true, %52 ], [ %71, %68 ]
br i1 %73, label %74, label %81
74: ; preds = %72
%75 = load ptr, ptr %2, align 8
%76 = load ptr, ptr %75, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %75, align 8
%78 = load ptr, ptr %2, align 8
%79 = load ptr, ptr %78, align 8
%80 = load i8, ptr %79, align 1
store i8 %80, ptr %4, align 1
br label %52, !llvm.loop !8
81: ; preds = %72
%82 = getelementptr inbounds [25 x i8], ptr %3, i64 0, i64 0
%83 = call i32 @sscanf(ptr noundef %82, ptr noundef @.str, ptr noundef %5)
%84 = load double, ptr %5, align 8
ret double %84
}
declare i64 @isdigit(i8 noundef zeroext) #1
declare i32 @sscanf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp7s_xcud2.c'
source_filename = "/tmp/tmp7s_xcud2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i16 @get_XFontStruct_max_bounds_ascent(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_4__, ptr %3, i32 0, i32 0
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %4, i32 0, i32 0
%6 = load i64, ptr %5, align 8
%7 = trunc i64 %6 to i16
ret i16 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7s_xcud2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i16 @get_XFontStruct_max_bounds_ascent(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_4__, ptr %3, i32 0, i32 0
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %4, i32 0, i32 0
%6 = load i64, ptr %5, align 8
%7 = trunc i64 %6 to i16
ret i16 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe7nfgnf5.c'
source_filename = "/tmp/tmpe7nfgnf5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @SumPoisson(i64 noundef %0, double noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store double %1, ptr %4, align 8
%7 = load i64, ptr %3, align 8
%8 = icmp sge i64 %7, 20
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = load i64, ptr %3, align 8
%11 = load double, ptr %4, align 8
%12 = call double @SumPoisson20(i64 noundef %10, double noundef %11)
store double %12, ptr %5, align 8
br label %45
13: ; preds = %2
store double 0.000000e+00, ptr %5, align 8
store i64 0, ptr %6, align 8
br label %14
14: ; preds = %39, %13
%15 = load i64, ptr %6, align 8
%16 = load i64, ptr %3, align 8
%17 = icmp sle i64 %15, %16
br i1 %17, label %18, label %40
18: ; preds = %14
%19 = load i64, ptr %6, align 8
%20 = icmp slt i64 %19, 12
br i1 %20, label %21, label %30
21: ; preds = %18
%22 = load i64, ptr %6, align 8
%23 = add nsw i64 %22, 1
store i64 %23, ptr %6, align 8
%24 = trunc i64 %22 to i32
%25 = load double, ptr %4, align 8
%26 = call i64 @Poisson(i32 noundef %24, double noundef %25)
%27 = sitofp i64 %26 to double
%28 = load double, ptr %5, align 8
%29 = fadd double %28, %27
store double %29, ptr %5, align 8
br label %39
30: ; preds = %18
%31 = load i64, ptr %6, align 8
%32 = add nsw i64 %31, 1
store i64 %32, ptr %6, align 8
%33 = trunc i64 %31 to i32
%34 = load double, ptr %4, align 8
%35 = call i64 @Poisson1(i32 noundef %33, double noundef %34)
%36 = sitofp i64 %35 to double
%37 = load double, ptr %5, align 8
%38 = fadd double %37, %36
store double %38, ptr %5, align 8
br label %39
39: ; preds = %30, %21
br label %14, !llvm.loop !6
40: ; preds = %14
%41 = load double, ptr %5, align 8
%42 = fcmp ogt double %41, 1.000000e+00
br i1 %42, label %43, label %44
43: ; preds = %40
store double 1.000000e+00, ptr %5, align 8
br label %44
44: ; preds = %43, %40
br label %45
45: ; preds = %44, %9
%46 = load double, ptr %5, align 8
ret double %46
}
declare double @SumPoisson20(i64 noundef, double noundef) #1
declare i64 @Poisson(i32 noundef, double noundef) #1
declare i64 @Poisson1(i32 noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe7nfgnf5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @SumPoisson(i64 noundef %0, double noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store double %1, ptr %4, align 8
%7 = load i64, ptr %3, align 8
%8 = icmp sge i64 %7, 20
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = load i64, ptr %3, align 8
%11 = load double, ptr %4, align 8
%12 = call double @SumPoisson20(i64 noundef %10, double noundef %11)
store double %12, ptr %5, align 8
br label %47
13: ; preds = %2
store double 0.000000e+00, ptr %5, align 8
store i64 0, ptr %6, align 8
%14 = load i64, ptr %6, align 8
%15 = load i64, ptr %3, align 8
%16 = icmp sle i64 %14, %15
br i1 %16, label %.lr.ph, label %42
.lr.ph: ; preds = %13
br label %17
17: ; preds = %.lr.ph, %38
%18 = load i64, ptr %6, align 8
%19 = icmp slt i64 %18, 12
br i1 %19, label %20, label %29
20: ; preds = %17
%21 = load i64, ptr %6, align 8
%22 = add nsw i64 %21, 1
store i64 %22, ptr %6, align 8
%23 = trunc i64 %21 to i32
%24 = load double, ptr %4, align 8
%25 = call i64 @Poisson(i32 noundef %23, double noundef %24)
%26 = sitofp i64 %25 to double
%27 = load double, ptr %5, align 8
%28 = fadd double %27, %26
store double %28, ptr %5, align 8
br label %38
29: ; preds = %17
%30 = load i64, ptr %6, align 8
%31 = add nsw i64 %30, 1
store i64 %31, ptr %6, align 8
%32 = trunc i64 %30 to i32
%33 = load double, ptr %4, align 8
%34 = call i64 @Poisson1(i32 noundef %32, double noundef %33)
%35 = sitofp i64 %34 to double
%36 = load double, ptr %5, align 8
%37 = fadd double %36, %35
store double %37, ptr %5, align 8
br label %38
38: ; preds = %29, %20
%39 = load i64, ptr %6, align 8
%40 = load i64, ptr %3, align 8
%41 = icmp sle i64 %39, %40
br i1 %41, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %42
42: ; preds = %._crit_edge, %13
%43 = load double, ptr %5, align 8
%44 = fcmp ogt double %43, 1.000000e+00
br i1 %44, label %45, label %46
45: ; preds = %42
store double 1.000000e+00, ptr %5, align 8
br label %46
46: ; preds = %45, %42
br label %47
47: ; preds = %46, %9
%48 = load double, ptr %5, align 8
ret double %48
}
declare double @SumPoisson20(i64 noundef, double noundef) #1
declare i64 @Poisson(i32 noundef, double noundef) #1
declare i64 @Poisson1(i32 noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpost9y9b5.c'
source_filename = "/tmp/tmpost9y9b5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdscr = dso_local global i32 0, align 4
@TRUE = dso_local global i32 0, align 4
@COLOR_BLACK = dso_local global i32 0, align 4
@COLOR_BLUE = dso_local global i32 0, align 4
@COLOR_CYAN = dso_local global i32 0, align 4
@COLOR_GREEN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @initscr()
%5 = call i32 (...) @cbreak()
%6 = call i32 (...) @noecho()
%7 = load i32, ptr @stdscr, align 4
%8 = load i32, ptr @TRUE, align 4
%9 = call i32 @keypad(i32 noundef %7, i32 noundef %8)
%10 = call i32 (...) @start_color()
%11 = load i32, ptr @COLOR_BLACK, align 4
%12 = load i32, ptr @COLOR_BLUE, align 4
%13 = call i32 @init_pair(i32 noundef 1, i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr @COLOR_BLACK, align 4
%15 = load i32, ptr @COLOR_CYAN, align 4
%16 = call i32 @init_pair(i32 noundef 2, i32 noundef %14, i32 noundef %15)
%17 = load i32, ptr @COLOR_BLACK, align 4
%18 = load i32, ptr @COLOR_GREEN, align 4
%19 = call i32 @init_pair(i32 noundef 3, i32 noundef %17, i32 noundef %18)
%20 = load i32, ptr @stdscr, align 4
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %2, align 4
%23 = call i32 @getmaxyx(i32 noundef %20, i32 noundef %21, i32 noundef %22)
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %2, align 4
%26 = call i32 @draw(i32 noundef %24, i32 noundef %25)
%27 = call i32 (...) @getchar()
%28 = call i32 (...) @endwin()
ret i32 0
}
declare i32 @initscr(...) #1
declare i32 @cbreak(...) #1
declare i32 @noecho(...) #1
declare i32 @keypad(i32 noundef, i32 noundef) #1
declare i32 @start_color(...) #1
declare i32 @init_pair(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @getmaxyx(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @draw(i32 noundef, i32 noundef) #1
declare i32 @getchar(...) #1
declare i32 @endwin(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpost9y9b5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdscr = dso_local global i32 0, align 4
@TRUE = dso_local global i32 0, align 4
@COLOR_BLACK = dso_local global i32 0, align 4
@COLOR_BLUE = dso_local global i32 0, align 4
@COLOR_CYAN = dso_local global i32 0, align 4
@COLOR_GREEN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @initscr()
%5 = call i32 (...) @cbreak()
%6 = call i32 (...) @noecho()
%7 = load i32, ptr @stdscr, align 4
%8 = load i32, ptr @TRUE, align 4
%9 = call i32 @keypad(i32 noundef %7, i32 noundef %8)
%10 = call i32 (...) @start_color()
%11 = load i32, ptr @COLOR_BLACK, align 4
%12 = load i32, ptr @COLOR_BLUE, align 4
%13 = call i32 @init_pair(i32 noundef 1, i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr @COLOR_BLACK, align 4
%15 = load i32, ptr @COLOR_CYAN, align 4
%16 = call i32 @init_pair(i32 noundef 2, i32 noundef %14, i32 noundef %15)
%17 = load i32, ptr @COLOR_BLACK, align 4
%18 = load i32, ptr @COLOR_GREEN, align 4
%19 = call i32 @init_pair(i32 noundef 3, i32 noundef %17, i32 noundef %18)
%20 = load i32, ptr @stdscr, align 4
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %2, align 4
%23 = call i32 @getmaxyx(i32 noundef %20, i32 noundef %21, i32 noundef %22)
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %2, align 4
%26 = call i32 @draw(i32 noundef %24, i32 noundef %25)
%27 = call i32 (...) @getchar()
%28 = call i32 (...) @endwin()
ret i32 0
}
declare i32 @initscr(...) #1
declare i32 @cbreak(...) #1
declare i32 @noecho(...) #1
declare i32 @keypad(i32 noundef, i32 noundef) #1
declare i32 @start_color(...) #1
declare i32 @init_pair(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @getmaxyx(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @draw(i32 noundef, i32 noundef) #1
declare i32 @getchar(...) #1
declare i32 @endwin(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxc8st10h.c'
source_filename = "/tmp/tmpxc8st10h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [11 x i8] c"dsnansumpw\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 10000000, %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/tmpxc8st10h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [11 x i8] c"dsnansumpw\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 10000000, %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/tmpblyw8ut5.c'
source_filename = "/tmp/tmpblyw8ut5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGALRM = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"[parent] recv SIGALRM signal!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sig_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @SIGALRM, align 4
%5 = icmp eq i32 %3, %4
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str)
br label %9
9: ; preds = %6, %1
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpblyw8ut5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGALRM = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"[parent] recv SIGALRM signal!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sig_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @SIGALRM, align 4
%5 = icmp eq i32 %3, %4
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str)
br label %9
9: ; preds = %6, %1
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplvswp3h1.c'
source_filename = "/tmp/tmplvswp3h1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init_interrupt_handling() #0 {
%1 = call i32 (...) @setup_ivt()
%2 = call i32 (...) @setup_irq_stack()
%3 = call i32 (...) @init_interrupt_controller()
%4 = call i32 (...) @enable_irq()
ret void
}
declare i32 @setup_ivt(...) #1
declare i32 @setup_irq_stack(...) #1
declare i32 @init_interrupt_controller(...) #1
declare i32 @enable_irq(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplvswp3h1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init_interrupt_handling() #0 {
%1 = call i32 (...) @setup_ivt()
%2 = call i32 (...) @setup_irq_stack()
%3 = call i32 (...) @init_interrupt_controller()
%4 = call i32 (...) @enable_irq()
ret void
}
declare i32 @setup_ivt(...) #1
declare i32 @setup_irq_stack(...) #1
declare i32 @init_interrupt_controller(...) #1
declare i32 @enable_irq(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjekmpkhn.c'
source_filename = "/tmp/tmpjekmpkhn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"This is a testing program for gdb.\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %3, align 8
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %12, %0
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %2, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %5, i64 %7
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %21
12: ; preds = %4
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %2, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = call i32 @putchar(i8 noundef signext %17)
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
br label %4, !llvm.loop !6
21: ; preds = %4
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %2, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
store i8 33, ptr %25, align 1
%26 = call i32 @putchar(i8 noundef signext 10)
store i32 1, ptr %2, align 4
br label %27
27: ; preds = %33, %21
%28 = load i32, ptr %2, align 4
%29 = icmp sle i32 %28, 11
br i1 %29, label %30, label %36
30: ; preds = %27
%31 = load i32, ptr %2, align 4
%32 = call i32 @printf(ptr noundef @.str.1, i32 noundef %31)
br label %33
33: ; preds = %30
%34 = load i32, ptr %2, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %2, align 4
br label %27, !llvm.loop !8
36: ; preds = %27
%37 = call i32 @putchar(i8 noundef signext 10)
store i32 1, ptr %2, align 4
br label %38
38: ; preds = %50, %36
%39 = load i32, ptr %2, align 4
%40 = icmp sle i32 %39, 11
br i1 %40, label %41, label %53
41: ; preds = %38
%42 = load i32, ptr %2, align 4
%43 = srem i32 %42, 3
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %41
%46 = call i32 @putchar(i8 noundef signext 36)
br label %49
47: ; preds = %41
%48 = call i32 @putchar(i8 noundef signext 42)
br label %49
49: ; preds = %47, %45
br label %50
50: ; preds = %49
%51 = load i32, ptr %2, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %2, align 4
br label %38, !llvm.loop !9
53: ; preds = %38
%54 = call i32 @putchar(i8 noundef signext 10)
ret i32 0
}
declare i32 @putchar(i8 noundef signext) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjekmpkhn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"This is a testing program for gdb.\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %3, align 8
store i32 0, ptr %2, align 4
%4 = load ptr, ptr %3, align 8
%5 = load i32, ptr %2, align 4
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, ptr %4, i64 %6
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %.lr.ph, label %27
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %11
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %2, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = call i32 @putchar(i8 noundef signext %16)
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %2, align 4
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %2, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br i1 %26, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %27
27: ; preds = %._crit_edge, %0
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %2, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
store i8 33, ptr %31, align 1
%32 = call i32 @putchar(i8 noundef signext 10)
store i32 1, ptr %2, align 4
%33 = load i32, ptr %2, align 4
%34 = icmp sle i32 %33, 11
br i1 %34, label %.lr.ph2, label %43
.lr.ph2: ; preds = %27
br label %35
35: ; preds = %.lr.ph2, %38
%36 = load i32, ptr %2, align 4
%37 = call i32 @printf(ptr noundef @.str.1, i32 noundef %36)
br label %38
38: ; preds = %35
%39 = load i32, ptr %2, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %2, align 4
%41 = load i32, ptr %2, align 4
%42 = icmp sle i32 %41, 11
br i1 %42, label %35, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %38
br label %43
43: ; preds = %._crit_edge3, %27
%44 = call i32 @putchar(i8 noundef signext 10)
store i32 1, ptr %2, align 4
%45 = load i32, ptr %2, align 4
%46 = icmp sle i32 %45, 11
br i1 %46, label %.lr.ph5, label %61
.lr.ph5: ; preds = %43
br label %47
47: ; preds = %.lr.ph5, %56
%48 = load i32, ptr %2, align 4
%49 = srem i32 %48, 3
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %47
%52 = call i32 @putchar(i8 noundef signext 36)
br label %55
53: ; preds = %47
%54 = call i32 @putchar(i8 noundef signext 42)
br label %55
55: ; preds = %53, %51
br label %56
56: ; preds = %55
%57 = load i32, ptr %2, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %2, align 4
%59 = load i32, ptr %2, align 4
%60 = icmp sle i32 %59, 11
br i1 %60, label %47, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %56
br label %61
61: ; preds = %._crit_edge6, %43
%62 = call i32 @putchar(i8 noundef signext 10)
ret i32 0
}
declare i32 @putchar(i8 noundef signext) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp5_x6rgpm.c'
source_filename = "/tmp/tmp5_x6rgpm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"iptables -v -n -x -t mangle -L POSTROUTING\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/lynxis/nodogsplash/refs/heads/master/src/fw_iptables.c\00", align 1
@LOG_ERR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [12 x i8] c"popen(): %s\00", align 1
@errno = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [13 x i8] c"%*s %llu %s \00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"ndsINC\00", align 1
@LOG_DEBUG = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [26 x i8] c"Total incoming Bytes=%llu\00", align 1
@LOG_WARNING = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [37 x i8] c"Can't find target %s in mangle table\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @iptables_fw_total_download() #0 {
%1 = alloca i64, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [4096 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store ptr @.str, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call ptr @popen(ptr noundef %7, ptr noundef @.str.1)
store ptr %8, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %16, label %11
11: ; preds = %0
%12 = load i32, ptr @LOG_ERR, align 4
%13 = load i32, ptr @errno, align 4
%14 = call ptr @strerror(i32 noundef %13)
%15 = call i32 (ptr, i32, i32, ptr, ...) @_debug(ptr noundef @.str.2, i32 noundef 963, i32 noundef %12, ptr noundef @.str.3, ptr noundef %14)
store i64 0, ptr %1, align 8
br label %87
16: ; preds = %0
br label %17
17: ; preds = %29, %16
%18 = load ptr, ptr %2, align 8
%19 = call signext i8 @fgetc(ptr noundef %18)
%20 = sext i8 %19 to i32
%21 = icmp ne i32 10, %20
br i1 %21, label %22, label %27
22: ; preds = %17
%23 = load ptr, ptr %2, align 8
%24 = call i32 @feof(ptr noundef %23)
%25 = icmp ne i32 %24, 0
%26 = xor i1 %25, true
br label %27
27: ; preds = %22, %17
%28 = phi i1 [ false, %17 ], [ %26, %22 ]
br i1 %28, label %29, label %30
29: ; preds = %27
br label %17, !llvm.loop !6
30: ; preds = %27
br label %31
31: ; preds = %43, %30
%32 = load ptr, ptr %2, align 8
%33 = call signext i8 @fgetc(ptr noundef %32)
%34 = sext i8 %33 to i32
%35 = icmp ne i32 10, %34
br i1 %35, label %36, label %41
36: ; preds = %31
%37 = load ptr, ptr %2, align 8
%38 = call i32 @feof(ptr noundef %37)
%39 = icmp ne i32 %38, 0
%40 = xor i1 %39, true
br label %41
41: ; preds = %36, %31
%42 = phi i1 [ false, %31 ], [ %40, %36 ]
br i1 %42, label %43, label %44
43: ; preds = %41
br label %31, !llvm.loop !8
44: ; preds = %41
br label %45
45: ; preds = %81, %44
%46 = load ptr, ptr %2, align 8
%47 = call i32 @feof(ptr noundef %46)
%48 = icmp ne i32 %47, 0
%49 = xor i1 %48, true
br i1 %49, label %50, label %82
50: ; preds = %45
%51 = load ptr, ptr %2, align 8
%52 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%53 = call i32 @fscanf(ptr noundef %51, ptr noundef @.str.4, ptr noundef %6, ptr noundef %52)
store i32 %53, ptr %5, align 4
%54 = load i32, ptr %5, align 4
%55 = icmp eq i32 2, %54
br i1 %55, label %56, label %67
56: ; preds = %50
%57 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%58 = call i32 @strcmp(ptr noundef %57, ptr noundef @.str.5)
%59 = icmp ne i32 %58, 0
br i1 %59, label %67, label %60
60: ; preds = %56
%61 = load i32, ptr @LOG_DEBUG, align 4
%62 = load i64, ptr %6, align 8
%63 = call i32 (ptr, i32, i32, ptr, ...) @_debug(ptr noundef @.str.2, i32 noundef 974, i32 noundef %61, ptr noundef @.str.6, i64 noundef %62)
%64 = load ptr, ptr %2, align 8
%65 = call i32 @pclose(ptr noundef %64)
%66 = load i64, ptr %6, align 8
store i64 %66, ptr %1, align 8
br label %87
67: ; preds = %56, %50
br label %68
68: ; preds = %80, %67
%69 = load ptr, ptr %2, align 8
%70 = call signext i8 @fgetc(ptr noundef %69)
%71 = sext i8 %70 to i32
%72 = icmp ne i32 10, %71
br i1 %72, label %73, label %78
73: ; preds = %68
%74 = load ptr, ptr %2, align 8
%75 = call i32 @feof(ptr noundef %74)
%76 = icmp ne i32 %75, 0
%77 = xor i1 %76, true
br label %78
78: ; preds = %73, %68
%79 = phi i1 [ false, %68 ], [ %77, %73 ]
br i1 %79, label %80, label %81
80: ; preds = %78
br label %68, !llvm.loop !9
81: ; preds = %78
br label %45, !llvm.loop !10
82: ; preds = %45
%83 = load ptr, ptr %2, align 8
%84 = call i32 @pclose(ptr noundef %83)
%85 = load i32, ptr @LOG_WARNING, align 4
%86 = call i32 (ptr, i32, i32, ptr, ...) @_debug(ptr noundef @.str.2, i32 noundef 983, i32 noundef %85, ptr noundef @.str.7, ptr noundef @.str.5)
store i64 0, ptr %1, align 8
br label %87
87: ; preds = %82, %60, %11
%88 = load i64, ptr %1, align 8
ret i64 %88
}
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @_debug(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5_x6rgpm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"iptables -v -n -x -t mangle -L POSTROUTING\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/lynxis/nodogsplash/refs/heads/master/src/fw_iptables.c\00", align 1
@LOG_ERR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [12 x i8] c"popen(): %s\00", align 1
@errno = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [13 x i8] c"%*s %llu %s \00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"ndsINC\00", align 1
@LOG_DEBUG = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [26 x i8] c"Total incoming Bytes=%llu\00", align 1
@LOG_WARNING = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [37 x i8] c"Can't find target %s in mangle table\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @iptables_fw_total_download() #0 {
%1 = alloca i64, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [4096 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store ptr @.str, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call ptr @popen(ptr noundef %7, ptr noundef @.str.1)
store ptr %8, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %16, label %11
11: ; preds = %0
%12 = load i32, ptr @LOG_ERR, align 4
%13 = load i32, ptr @errno, align 4
%14 = call ptr @strerror(i32 noundef %13)
%15 = call i32 (ptr, i32, i32, ptr, ...) @_debug(ptr noundef @.str.2, i32 noundef 963, i32 noundef %12, ptr noundef @.str.3, ptr noundef %14)
store i64 0, ptr %1, align 8
br label %87
16: ; preds = %0
br label %17
17: ; preds = %27, %16
%18 = load ptr, ptr %2, align 8
%19 = call signext i8 @fgetc(ptr noundef %18)
%20 = sext i8 %19 to i32
%21 = icmp ne i32 10, %20
br i1 %21, label %22, label %27
22: ; preds = %17
%23 = load ptr, ptr %2, align 8
%24 = call i32 @feof(ptr noundef %23)
%25 = icmp ne i32 %24, 0
%26 = xor i1 %25, true
br label %27
27: ; preds = %22, %17
%28 = phi i1 [ false, %17 ], [ %26, %22 ]
br i1 %28, label %17, label %29, !llvm.loop !6
29: ; preds = %27
br label %30
30: ; preds = %40, %29
%31 = load ptr, ptr %2, align 8
%32 = call signext i8 @fgetc(ptr noundef %31)
%33 = sext i8 %32 to i32
%34 = icmp ne i32 10, %33
br i1 %34, label %35, label %40
35: ; preds = %30
%36 = load ptr, ptr %2, align 8
%37 = call i32 @feof(ptr noundef %36)
%38 = icmp ne i32 %37, 0
%39 = xor i1 %38, true
br label %40
40: ; preds = %35, %30
%41 = phi i1 [ false, %30 ], [ %39, %35 ]
br i1 %41, label %30, label %42, !llvm.loop !8
42: ; preds = %40
%43 = load ptr, ptr %2, align 8
%44 = call i32 @feof(ptr noundef %43)
%45 = icmp ne i32 %44, 0
%46 = xor i1 %45, true
br i1 %46, label %.lr.ph, label %82
.lr.ph: ; preds = %42
br label %47
47: ; preds = %.lr.ph, %77
%48 = load ptr, ptr %2, align 8
%49 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%50 = call i32 @fscanf(ptr noundef %48, ptr noundef @.str.4, ptr noundef %6, ptr noundef %49)
store i32 %50, ptr %5, align 4
%51 = load i32, ptr %5, align 4
%52 = icmp eq i32 2, %51
br i1 %52, label %53, label %64
53: ; preds = %47
%54 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%55 = call i32 @strcmp(ptr noundef %54, ptr noundef @.str.5)
%56 = icmp ne i32 %55, 0
br i1 %56, label %64, label %57
57: ; preds = %53
%58 = load i32, ptr @LOG_DEBUG, align 4
%59 = load i64, ptr %6, align 8
%60 = call i32 (ptr, i32, i32, ptr, ...) @_debug(ptr noundef @.str.2, i32 noundef 974, i32 noundef %58, ptr noundef @.str.6, i64 noundef %59)
%61 = load ptr, ptr %2, align 8
%62 = call i32 @pclose(ptr noundef %61)
%63 = load i64, ptr %6, align 8
store i64 %63, ptr %1, align 8
br label %87
64: ; preds = %53, %47
br label %65
65: ; preds = %75, %64
%66 = load ptr, ptr %2, align 8
%67 = call signext i8 @fgetc(ptr noundef %66)
%68 = sext i8 %67 to i32
%69 = icmp ne i32 10, %68
br i1 %69, label %70, label %75
70: ; preds = %65
%71 = load ptr, ptr %2, align 8
%72 = call i32 @feof(ptr noundef %71)
%73 = icmp ne i32 %72, 0
%74 = xor i1 %73, true
br label %75
75: ; preds = %70, %65
%76 = phi i1 [ false, %65 ], [ %74, %70 ]
br i1 %76, label %65, label %77, !llvm.loop !9
77: ; preds = %75
%78 = load ptr, ptr %2, align 8
%79 = call i32 @feof(ptr noundef %78)
%80 = icmp ne i32 %79, 0
%81 = xor i1 %80, true
br i1 %81, label %47, label %._crit_edge, !llvm.loop !10
._crit_edge: ; preds = %77
br label %82
82: ; preds = %._crit_edge, %42
%83 = load ptr, ptr %2, align 8
%84 = call i32 @pclose(ptr noundef %83)
%85 = load i32, ptr @LOG_WARNING, align 4
%86 = call i32 (ptr, i32, i32, ptr, ...) @_debug(ptr noundef @.str.2, i32 noundef 983, i32 noundef %85, ptr noundef @.str.7, ptr noundef @.str.5)
store i64 0, ptr %1, align 8
br label %87
87: ; preds = %82, %57, %11
%88 = load i64, ptr %1, align 8
ret i64 %88
}
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @_debug(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpzn1t2cyo.c'
source_filename = "/tmp/tmpzn1t2cyo.c"
target datalayout = "e-m:e-p270: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/tmpzn1t2cyo.c"
target datalayout = "e-m:e-p270: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/tmpjp7l63p0.c'
source_filename = "/tmp/tmpjp7l63p0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i8], align 1
%7 = alloca [1 x i8], align 1
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i8
store i8 %30, ptr %9, align 1
%31 = load i8, ptr %9, align 1
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 %33
store i8 %31, ptr %34, align 1
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 0
%42 = load i8, ptr %41, align 1
%43 = zext i8 %42 to i32
%44 = icmp eq i32 %43, 203
br i1 %44, label %45, label %47
45: ; preds = %37
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %37
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
br label %49
49: ; preds = %52, %48
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %52, label %61
52: ; preds = %49
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
%57 = zext i8 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
br label %49, !llvm.loop !8
61: ; preds = %49
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjp7l63p0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i8], align 1
%7 = alloca [1 x i8], align 1
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i8
store i8 %29, ptr %9, align 1
%30 = load i8, ptr %9, align 1
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 %32
store i8 %30, ptr %33, align 1
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 0
%43 = load i8, ptr %42, align 1
%44 = zext i8 %43 to i32
%45 = icmp eq i32 %44, 203
br i1 %45, label %46, label %48
46: ; preds = %38
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %49
48: ; preds = %38
br label %49
49: ; preds = %48, %46
store i32 0, ptr %10, align 4
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %.lr.ph2, label %63
.lr.ph2: ; preds = %49
br label %52
52: ; preds = %.lr.ph2, %52
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
%57 = zext i8 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %10, align 4
%62 = icmp slt i32 %61, 1
br i1 %62, label %52, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %52
br label %63
63: ; preds = %._crit_edge3, %49
%64 = load i32, ptr %3, align 4
ret i32 %64
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp9uaks7om.c'
source_filename = "/tmp/tmp9uaks7om.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"\0A-------------\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 ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call ptr @genRootDesc(ptr noundef %7)
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr @stdout, align 4
%14 = call i32 @xml_pretty_print(ptr noundef %11, i32 noundef %12, i32 noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = call i32 @free(ptr noundef %15)
%17 = call i32 @printf(ptr noundef @.str)
%18 = call ptr @genWANIPCn(ptr noundef %9)
store ptr %18, ptr %8, align 8
%19 = load ptr, ptr %8, align 8
%20 = load i32, ptr %9, align 4
%21 = load i32, ptr @stdout, align 4
%22 = call i32 @xml_pretty_print(ptr noundef %19, i32 noundef %20, i32 noundef %21)
%23 = load ptr, ptr %8, align 8
%24 = call i32 @free(ptr noundef %23)
%25 = call i32 @printf(ptr noundef @.str)
%26 = call ptr @genWANCfg(ptr noundef %9)
store ptr %26, ptr %8, align 8
%27 = load ptr, ptr %8, align 8
%28 = load i32, ptr %9, align 4
%29 = load i32, ptr @stdout, align 4
%30 = call i32 @xml_pretty_print(ptr noundef %27, i32 noundef %28, i32 noundef %29)
%31 = load ptr, ptr %8, align 8
%32 = call i32 @free(ptr noundef %31)
%33 = call i32 @printf(ptr noundef @.str)
%34 = call ptr @genL3F(ptr noundef %9)
store ptr %34, ptr %8, align 8
%35 = load ptr, ptr %8, align 8
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr @stdout, align 4
%38 = call i32 @xml_pretty_print(ptr noundef %35, i32 noundef %36, i32 noundef %37)
%39 = load ptr, ptr %8, align 8
%40 = call i32 @free(ptr noundef %39)
%41 = call i32 @printf(ptr noundef @.str)
%42 = call ptr @getVarsWANIPCn(ptr noundef %9)
store ptr %42, ptr %8, align 8
%43 = load ptr, ptr %8, align 8
%44 = load i32, ptr %9, align 4
%45 = load i32, ptr @stdout, align 4
%46 = call i32 @xml_pretty_print(ptr noundef %43, i32 noundef %44, i32 noundef %45)
%47 = load ptr, ptr %8, align 8
%48 = call i32 @free(ptr noundef %47)
%49 = call i32 @printf(ptr noundef @.str)
%50 = call ptr @getVarsWANCfg(ptr noundef %9)
store ptr %50, ptr %8, align 8
%51 = load ptr, ptr %8, align 8
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr @stdout, align 4
%54 = call i32 @xml_pretty_print(ptr noundef %51, i32 noundef %52, i32 noundef %53)
%55 = load ptr, ptr %8, align 8
%56 = call i32 @free(ptr noundef %55)
%57 = call i32 @printf(ptr noundef @.str)
%58 = call ptr @getVarsL3F(ptr noundef %9)
store ptr %58, ptr %8, align 8
%59 = load ptr, ptr %8, align 8
%60 = load i32, ptr %9, align 4
%61 = load i32, ptr @stdout, align 4
%62 = call i32 @xml_pretty_print(ptr noundef %59, i32 noundef %60, i32 noundef %61)
%63 = load ptr, ptr %8, align 8
%64 = call i32 @free(ptr noundef %63)
%65 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare ptr @genRootDesc(ptr noundef) #1
declare i32 @xml_pretty_print(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare ptr @genWANIPCn(ptr noundef) #1
declare ptr @genWANCfg(ptr noundef) #1
declare ptr @genL3F(ptr noundef) #1
declare ptr @getVarsWANIPCn(ptr noundef) #1
declare ptr @getVarsWANCfg(ptr noundef) #1
declare ptr @getVarsL3F(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/tmp9uaks7om.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"\0A-------------\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 ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call ptr @genRootDesc(ptr noundef %7)
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr @stdout, align 4
%14 = call i32 @xml_pretty_print(ptr noundef %11, i32 noundef %12, i32 noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = call i32 @free(ptr noundef %15)
%17 = call i32 @printf(ptr noundef @.str)
%18 = call ptr @genWANIPCn(ptr noundef %9)
store ptr %18, ptr %8, align 8
%19 = load ptr, ptr %8, align 8
%20 = load i32, ptr %9, align 4
%21 = load i32, ptr @stdout, align 4
%22 = call i32 @xml_pretty_print(ptr noundef %19, i32 noundef %20, i32 noundef %21)
%23 = load ptr, ptr %8, align 8
%24 = call i32 @free(ptr noundef %23)
%25 = call i32 @printf(ptr noundef @.str)
%26 = call ptr @genWANCfg(ptr noundef %9)
store ptr %26, ptr %8, align 8
%27 = load ptr, ptr %8, align 8
%28 = load i32, ptr %9, align 4
%29 = load i32, ptr @stdout, align 4
%30 = call i32 @xml_pretty_print(ptr noundef %27, i32 noundef %28, i32 noundef %29)
%31 = load ptr, ptr %8, align 8
%32 = call i32 @free(ptr noundef %31)
%33 = call i32 @printf(ptr noundef @.str)
%34 = call ptr @genL3F(ptr noundef %9)
store ptr %34, ptr %8, align 8
%35 = load ptr, ptr %8, align 8
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr @stdout, align 4
%38 = call i32 @xml_pretty_print(ptr noundef %35, i32 noundef %36, i32 noundef %37)
%39 = load ptr, ptr %8, align 8
%40 = call i32 @free(ptr noundef %39)
%41 = call i32 @printf(ptr noundef @.str)
%42 = call ptr @getVarsWANIPCn(ptr noundef %9)
store ptr %42, ptr %8, align 8
%43 = load ptr, ptr %8, align 8
%44 = load i32, ptr %9, align 4
%45 = load i32, ptr @stdout, align 4
%46 = call i32 @xml_pretty_print(ptr noundef %43, i32 noundef %44, i32 noundef %45)
%47 = load ptr, ptr %8, align 8
%48 = call i32 @free(ptr noundef %47)
%49 = call i32 @printf(ptr noundef @.str)
%50 = call ptr @getVarsWANCfg(ptr noundef %9)
store ptr %50, ptr %8, align 8
%51 = load ptr, ptr %8, align 8
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr @stdout, align 4
%54 = call i32 @xml_pretty_print(ptr noundef %51, i32 noundef %52, i32 noundef %53)
%55 = load ptr, ptr %8, align 8
%56 = call i32 @free(ptr noundef %55)
%57 = call i32 @printf(ptr noundef @.str)
%58 = call ptr @getVarsL3F(ptr noundef %9)
store ptr %58, ptr %8, align 8
%59 = load ptr, ptr %8, align 8
%60 = load i32, ptr %9, align 4
%61 = load i32, ptr @stdout, align 4
%62 = call i32 @xml_pretty_print(ptr noundef %59, i32 noundef %60, i32 noundef %61)
%63 = load ptr, ptr %8, align 8
%64 = call i32 @free(ptr noundef %63)
%65 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare ptr @genRootDesc(ptr noundef) #1
declare i32 @xml_pretty_print(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare ptr @genWANIPCn(ptr noundef) #1
declare ptr @genWANCfg(ptr noundef) #1
declare ptr @genL3F(ptr noundef) #1
declare ptr @getVarsWANIPCn(ptr noundef) #1
declare ptr @getVarsWANCfg(ptr noundef) #1
declare ptr @getVarsL3F(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/tmp8ljrlsh6.c'
source_filename = "/tmp/tmp8ljrlsh6.c"
target datalayout = "e-m:e-p270: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/tmp8ljrlsh6.c"
target datalayout = "e-m:e-p270: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/tmpiyudccpc.c'
source_filename = "/tmp/tmpiyudccpc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"Usage: %s [port]\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"Could not create socket!\0A\00", align 1
@INADDR_ANY = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [24 x i8] c"Could not bind socket!\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Could not listen on socket!\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"Server is listening on %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [36 x i8] c"Could not establish new connection\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"Client read failed!\0A\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"Client write failed!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca %struct.sockaddr_in, align 4
%12 = alloca [1024 x i8], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = 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
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %27
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 0
%22 = load ptr, ptr %21, align 8
%23 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str, ptr noundef %22)
%24 = load i32, ptr @stderr, align 4
%25 = call i32 @fflush(i32 noundef %24)
%26 = call i32 @exit(i32 noundef 1) #3
unreachable
27: ; preds = %2
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = load ptr, ptr %29, align 8
%31 = call i32 @atoi(ptr noundef %30)
store i32 %31, ptr %6, align 4
%32 = load i32, ptr @AF_INET, align 4
%33 = load i32, ptr @SOCK_STREAM, align 4
%34 = call i32 @socket(i32 noundef %32, i32 noundef %33, i32 noundef 0)
store i32 %34, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %27
%38 = load i32, ptr @stderr, align 4
%39 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %38, ptr noundef @.str.1)
%40 = load i32, ptr @stderr, align 4
%41 = call i32 @fflush(i32 noundef %40)
%42 = call i32 @exit(i32 noundef 1) #3
unreachable
43: ; preds = %27
%44 = load i32, ptr @AF_INET, align 4
%45 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %44, ptr %45, align 4
%46 = load i32, ptr %6, align 4
%47 = call i32 @htons(i32 noundef %46)
%48 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
store i32 %47, ptr %48, align 4
%49 = load i32, ptr @INADDR_ANY, align 4
%50 = call i32 @htonl(i32 noundef %49)
%51 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
%52 = getelementptr inbounds %struct.TYPE_2__, ptr %51, i32 0, i32 0
store i32 %50, ptr %52, align 4
store i32 1, ptr %13, align 4
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr @SOL_SOCKET, align 4
%55 = load i32, ptr @SO_REUSEADDR, align 4
%56 = call i32 @setsockopt(i32 noundef %53, i32 noundef %54, i32 noundef %55, ptr noundef %13, i32 noundef 4)
%57 = load i32, ptr %7, align 4
%58 = call i32 @bind(i32 noundef %57, ptr noundef %10, i32 noundef 12)
store i32 %58, ptr %9, align 4
%59 = load i32, ptr %9, align 4
%60 = icmp slt i32 %59, 0
br i1 %60, label %61, label %67
61: ; preds = %43
%62 = load i32, ptr @stderr, align 4
%63 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %62, ptr noundef @.str.2)
%64 = load i32, ptr @stderr, align 4
%65 = call i32 @fflush(i32 noundef %64)
%66 = call i32 @exit(i32 noundef 1) #3
unreachable
67: ; preds = %43
%68 = load i32, ptr %7, align 4
%69 = call i32 @listen(i32 noundef %68, i32 noundef 128)
store i32 %69, ptr %9, align 4
%70 = load i32, ptr %9, align 4
%71 = icmp slt i32 %70, 0
br i1 %71, label %72, label %78
72: ; preds = %67
%73 = load i32, ptr @stderr, align 4
%74 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %73, ptr noundef @.str.3)
%75 = load i32, ptr @stderr, align 4
%76 = call i32 @fflush(i32 noundef %75)
%77 = call i32 @exit(i32 noundef 1) #3
unreachable
78: ; preds = %67
%79 = load i32, ptr %6, align 4
%80 = call i32 @printf(ptr noundef @.str.4, i32 noundef %79)
br label %81
81: ; preds = %78, %123
store i32 12, ptr %14, align 4
%82 = load i32, ptr %7, align 4
%83 = call i32 @accept(i32 noundef %82, ptr noundef %8, ptr noundef %14)
store i32 %83, ptr %8, align 4
%84 = load i32, ptr %8, align 4
%85 = icmp slt i32 %84, 0
br i1 %85, label %86, label %92
86: ; preds = %81
%87 = load i32, ptr @stderr, align 4
%88 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %87, ptr noundef @.str.5)
%89 = load i32, ptr @stderr, align 4
%90 = call i32 @fflush(i32 noundef %89)
%91 = call i32 @exit(i32 noundef 1) #3
unreachable
92: ; preds = %81
br label %93
93: ; preds = %92, %122
%94 = load i32, ptr %8, align 4
%95 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%96 = call i32 @recv(i32 noundef %94, ptr noundef %95, i32 noundef 1024, i32 noundef 0)
store i32 %96, ptr %15, align 4
%97 = load i32, ptr %15, align 4
%98 = icmp ne i32 %97, 0
br i1 %98, label %100, label %99
99: ; preds = %93
br label %123
100: ; preds = %93
%101 = load i32, ptr %15, align 4
%102 = icmp slt i32 %101, 0
br i1 %102, label %103, label %109
103: ; preds = %100
%104 = load i32, ptr @stderr, align 4
%105 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %104, ptr noundef @.str.6)
%106 = load i32, ptr @stderr, align 4
%107 = call i32 @fflush(i32 noundef %106)
%108 = call i32 @exit(i32 noundef 1) #3
unreachable
109: ; preds = %100
%110 = load i32, ptr %8, align 4
%111 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%112 = load i32, ptr %15, align 4
%113 = call i32 @send(i32 noundef %110, ptr noundef %111, i32 noundef %112, i32 noundef 0)
store i32 %113, ptr %9, align 4
%114 = load i32, ptr %9, align 4
%115 = icmp slt i32 %114, 0
br i1 %115, label %116, label %122
116: ; preds = %109
%117 = load i32, ptr @stderr, align 4
%118 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %117, ptr noundef @.str.7)
%119 = load i32, ptr @stderr, align 4
%120 = call i32 @fflush(i32 noundef %119)
%121 = call i32 @exit(i32 noundef 1) #3
unreachable
122: ; preds = %109
br label %93
123: ; preds = %99
br label %81
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @fflush(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpiyudccpc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"Usage: %s [port]\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"Could not create socket!\0A\00", align 1
@INADDR_ANY = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [24 x i8] c"Could not bind socket!\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Could not listen on socket!\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"Server is listening on %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [36 x i8] c"Could not establish new connection\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"Client read failed!\0A\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"Client write failed!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca %struct.sockaddr_in, align 4
%12 = alloca [1024 x i8], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = 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
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %27
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 0
%22 = load ptr, ptr %21, align 8
%23 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str, ptr noundef %22)
%24 = load i32, ptr @stderr, align 4
%25 = call i32 @fflush(i32 noundef %24)
%26 = call i32 @exit(i32 noundef 1) #3
unreachable
27: ; preds = %2
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = load ptr, ptr %29, align 8
%31 = call i32 @atoi(ptr noundef %30)
store i32 %31, ptr %6, align 4
%32 = load i32, ptr @AF_INET, align 4
%33 = load i32, ptr @SOCK_STREAM, align 4
%34 = call i32 @socket(i32 noundef %32, i32 noundef %33, i32 noundef 0)
store i32 %34, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %27
%38 = load i32, ptr @stderr, align 4
%39 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %38, ptr noundef @.str.1)
%40 = load i32, ptr @stderr, align 4
%41 = call i32 @fflush(i32 noundef %40)
%42 = call i32 @exit(i32 noundef 1) #3
unreachable
43: ; preds = %27
%44 = load i32, ptr @AF_INET, align 4
%45 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %44, ptr %45, align 4
%46 = load i32, ptr %6, align 4
%47 = call i32 @htons(i32 noundef %46)
%48 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
store i32 %47, ptr %48, align 4
%49 = load i32, ptr @INADDR_ANY, align 4
%50 = call i32 @htonl(i32 noundef %49)
%51 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
%52 = getelementptr inbounds %struct.TYPE_2__, ptr %51, i32 0, i32 0
store i32 %50, ptr %52, align 4
store i32 1, ptr %13, align 4
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr @SOL_SOCKET, align 4
%55 = load i32, ptr @SO_REUSEADDR, align 4
%56 = call i32 @setsockopt(i32 noundef %53, i32 noundef %54, i32 noundef %55, ptr noundef %13, i32 noundef 4)
%57 = load i32, ptr %7, align 4
%58 = call i32 @bind(i32 noundef %57, ptr noundef %10, i32 noundef 12)
store i32 %58, ptr %9, align 4
%59 = load i32, ptr %9, align 4
%60 = icmp slt i32 %59, 0
br i1 %60, label %61, label %67
61: ; preds = %43
%62 = load i32, ptr @stderr, align 4
%63 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %62, ptr noundef @.str.2)
%64 = load i32, ptr @stderr, align 4
%65 = call i32 @fflush(i32 noundef %64)
%66 = call i32 @exit(i32 noundef 1) #3
unreachable
67: ; preds = %43
%68 = load i32, ptr %7, align 4
%69 = call i32 @listen(i32 noundef %68, i32 noundef 128)
store i32 %69, ptr %9, align 4
%70 = load i32, ptr %9, align 4
%71 = icmp slt i32 %70, 0
br i1 %71, label %72, label %78
72: ; preds = %67
%73 = load i32, ptr @stderr, align 4
%74 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %73, ptr noundef @.str.3)
%75 = load i32, ptr @stderr, align 4
%76 = call i32 @fflush(i32 noundef %75)
%77 = call i32 @exit(i32 noundef 1) #3
unreachable
78: ; preds = %67
%79 = load i32, ptr %6, align 4
%80 = call i32 @printf(ptr noundef @.str.4, i32 noundef %79)
store i32 12, ptr %14, align 4
%81 = load i32, ptr %7, align 4
%82 = call i32 @accept(i32 noundef %81, ptr noundef %8, ptr noundef %14)
store i32 %82, ptr %8, align 4
%83 = load i32, ptr %8, align 4
%84 = icmp slt i32 %83, 0
br i1 %84, label %85, label %.lr.ph2
.lr.ph2: ; preds = %78
br label %91
._crit_edge3: ; preds = %125
br label %85
85: ; preds = %._crit_edge3, %78
%86 = load i32, ptr @stderr, align 4
%87 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %86, ptr noundef @.str.5)
%88 = load i32, ptr @stderr, align 4
%89 = call i32 @fflush(i32 noundef %88)
%90 = call i32 @exit(i32 noundef 1) #3
unreachable
91: ; preds = %.lr.ph2, %125
%92 = load i32, ptr %8, align 4
%93 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%94 = call i32 @recv(i32 noundef %92, ptr noundef %93, i32 noundef 1024, i32 noundef 0)
store i32 %94, ptr %15, align 4
%95 = load i32, ptr %15, align 4
%96 = icmp ne i32 %95, 0
br i1 %96, label %.lr.ph, label %102
.lr.ph: ; preds = %91
br label %103
97: ; preds = %112
%98 = load i32, ptr %8, align 4
%99 = call i32 @recv(i32 noundef %98, ptr noundef %93, i32 noundef 1024, i32 noundef 0)
store i32 %99, ptr %15, align 4
%100 = load i32, ptr %15, align 4
%101 = icmp ne i32 %100, 0
br i1 %101, label %103, label %._crit_edge
._crit_edge: ; preds = %97
br label %102
102: ; preds = %._crit_edge, %91
br label %125
103: ; preds = %.lr.ph, %97
%104 = load i32, ptr %15, align 4
%105 = icmp slt i32 %104, 0
br i1 %105, label %106, label %112
106: ; preds = %103
%107 = load i32, ptr @stderr, align 4
%108 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %107, ptr noundef @.str.6)
%109 = load i32, ptr @stderr, align 4
%110 = call i32 @fflush(i32 noundef %109)
%111 = call i32 @exit(i32 noundef 1) #3
unreachable
112: ; preds = %103
%113 = load i32, ptr %8, align 4
%114 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%115 = load i32, ptr %15, align 4
%116 = call i32 @send(i32 noundef %113, ptr noundef %114, i32 noundef %115, i32 noundef 0)
store i32 %116, ptr %9, align 4
%117 = load i32, ptr %9, align 4
%118 = icmp slt i32 %117, 0
br i1 %118, label %119, label %97
119: ; preds = %112
%120 = load i32, ptr @stderr, align 4
%121 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %120, ptr noundef @.str.7)
%122 = load i32, ptr @stderr, align 4
%123 = call i32 @fflush(i32 noundef %122)
%124 = call i32 @exit(i32 noundef 1) #3
unreachable
125: ; preds = %102
store i32 12, ptr %14, align 4
%126 = load i32, ptr %7, align 4
%127 = call i32 @accept(i32 noundef %126, ptr noundef %8, ptr noundef %14)
store i32 %127, ptr %8, align 4
%128 = load i32, ptr %8, align 4
%129 = icmp slt i32 %128, 0
br i1 %129, label %._crit_edge3, label %91
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @fflush(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpbjqn4a35.c'
source_filename = "/tmp/tmpbjqn4a35.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @messager()
%2 = call i32 (...) @loop()
ret i32 0
}
declare i32 @messager(...) #1
declare i32 @loop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbjqn4a35.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @messager()
%2 = call i32 (...) @loop()
ret i32 0
}
declare i32 @messager(...) #1
declare i32 @loop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz407ecq7.c'
source_filename = "/tmp/tmpz407ecq7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ERROR\00", align 1
@.str.1 = private unnamed_addr constant [61 x i8] c"Could not prepare MySQL connection in am_mysql_simple_query\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"Failed to expand query %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @am_mysql_simple_query(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr null, ptr %13, align 8
store i32 -1, ptr %14, align 4
%15 = load ptr, ptr %8, align 8
%16 = call i64 @am_mysql_prepare_mysql(ptr noundef %12, ptr noundef %15)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %5
%19 = call i32 (ptr, ptr, ...) @_log(ptr noundef @.str, ptr noundef @.str.1)
store i32 -1, ptr %6, align 4
br label %43
20: ; preds = %5
%21 = load ptr, ptr %7, align 8
%22 = load ptr, ptr %9, align 8
%23 = load ptr, ptr %10, align 8
%24 = load ptr, ptr %11, align 8
%25 = call ptr @am_mysql_prepare_query(ptr noundef %12, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24)
store ptr %25, ptr %13, align 8
%26 = load ptr, ptr %13, align 8
%27 = icmp eq ptr %26, null
br i1 %27, label %28, label %31
28: ; preds = %20
store i32 -1, ptr %14, align 4
%29 = load ptr, ptr %7, align 8
%30 = call i32 (ptr, ptr, ...) @_log(ptr noundef @.str, ptr noundef @.str.2, ptr noundef %29)
br label %34
31: ; preds = %20
%32 = load ptr, ptr %13, align 8
%33 = call i32 @_am_mysql_simple_query(ptr noundef %12, ptr noundef %32)
store i32 %33, ptr %14, align 4
br label %34
34: ; preds = %31, %28
%35 = call i32 @mysql_close(ptr noundef %12)
%36 = load ptr, ptr %13, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load ptr, ptr %13, align 8
%40 = call i32 @am_free(ptr noundef %39)
br label %41
41: ; preds = %38, %34
%42 = load i32, ptr %14, align 4
store i32 %42, ptr %6, align 4
br label %43
43: ; preds = %41, %18
%44 = load i32, ptr %6, align 4
ret i32 %44
}
declare i64 @am_mysql_prepare_mysql(ptr noundef, ptr noundef) #1
declare i32 @_log(ptr noundef, ptr noundef, ...) #1
declare ptr @am_mysql_prepare_query(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @_am_mysql_simple_query(ptr noundef, ptr noundef) #1
declare i32 @mysql_close(ptr noundef) #1
declare i32 @am_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/tmpz407ecq7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ERROR\00", align 1
@.str.1 = private unnamed_addr constant [61 x i8] c"Could not prepare MySQL connection in am_mysql_simple_query\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"Failed to expand query %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @am_mysql_simple_query(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr null, ptr %13, align 8
store i32 -1, ptr %14, align 4
%15 = load ptr, ptr %8, align 8
%16 = call i64 @am_mysql_prepare_mysql(ptr noundef %12, ptr noundef %15)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %5
%19 = call i32 (ptr, ptr, ...) @_log(ptr noundef @.str, ptr noundef @.str.1)
store i32 -1, ptr %6, align 4
br label %43
20: ; preds = %5
%21 = load ptr, ptr %7, align 8
%22 = load ptr, ptr %9, align 8
%23 = load ptr, ptr %10, align 8
%24 = load ptr, ptr %11, align 8
%25 = call ptr @am_mysql_prepare_query(ptr noundef %12, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24)
store ptr %25, ptr %13, align 8
%26 = load ptr, ptr %13, align 8
%27 = icmp eq ptr %26, null
br i1 %27, label %28, label %31
28: ; preds = %20
store i32 -1, ptr %14, align 4
%29 = load ptr, ptr %7, align 8
%30 = call i32 (ptr, ptr, ...) @_log(ptr noundef @.str, ptr noundef @.str.2, ptr noundef %29)
br label %34
31: ; preds = %20
%32 = load ptr, ptr %13, align 8
%33 = call i32 @_am_mysql_simple_query(ptr noundef %12, ptr noundef %32)
store i32 %33, ptr %14, align 4
br label %34
34: ; preds = %31, %28
%35 = call i32 @mysql_close(ptr noundef %12)
%36 = load ptr, ptr %13, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load ptr, ptr %13, align 8
%40 = call i32 @am_free(ptr noundef %39)
br label %41
41: ; preds = %38, %34
%42 = load i32, ptr %14, align 4
store i32 %42, ptr %6, align 4
br label %43
43: ; preds = %41, %18
%44 = load i32, ptr %6, align 4
ret i32 %44
}
declare i64 @am_mysql_prepare_mysql(ptr noundef, ptr noundef) #1
declare i32 @_log(ptr noundef, ptr noundef, ...) #1
declare ptr @am_mysql_prepare_query(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @_am_mysql_simple_query(ptr noundef, ptr noundef) #1
declare i32 @mysql_close(ptr noundef) #1
declare i32 @am_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/tmpco6ynaaz.c'
source_filename = "/tmp/tmpco6ynaaz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @validate_main(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 -1, ptr %2, align 4
br label %8
7: ; preds = %1
store i32 0, ptr %2, align 4
br label %8
8: ; preds = %7, %6
%9 = load i32, ptr %2, align 4
ret i32 %9
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpco6ynaaz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @validate_main(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 -1, ptr %2, align 4
br label %8
7: ; preds = %1
store i32 0, ptr %2, align 4
br label %8
8: ; preds = %7, %6
%9 = load i32, ptr %2, align 4
ret i32 %9
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp57fn1o46.c'
source_filename = "/tmp/tmp57fn1o46.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"\0AStart executing %s\0A\00", align 1
@__const.RunKernel.local_size = private unnamed_addr constant [2 x i64] [i64 16, i64 16], align 16
@CL_SUCCESS = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [21 x i8] c"Finish executing %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @RunKernel(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca [2 x i64], align 16
%14 = alloca [2 x i64], align 16
%15 = alloca i64, align 8
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%16 = load ptr, ptr %10, align 8
%17 = call i32 @printf(ptr noundef @.str, ptr noundef %16)
%18 = load i32, ptr %8, align 4
store i32 %18, ptr %11, align 4
%19 = load i32, ptr %9, align 4
store i32 %19, ptr %12, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.RunKernel.local_size, i64 16, i1 false)
%20 = getelementptr inbounds [2 x i64], ptr %14, i64 0, i64 0
%21 = load i32, ptr %12, align 4
%22 = add nsw i32 %21, 15
%23 = sdiv i32 %22, 16
%24 = mul nsw i32 %23, 16
%25 = sext i32 %24 to i64
store i64 %25, ptr %20, align 8
%26 = getelementptr inbounds i64, ptr %20, i64 1
%27 = load i32, ptr %11, align 4
%28 = add nsw i32 %27, 15
%29 = sdiv i32 %28, 16
%30 = mul nsw i32 %29, 16
%31 = sext i32 %30 to i64
store i64 %31, ptr %26, align 8
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %7, align 4
%34 = getelementptr inbounds [2 x i64], ptr %14, i64 0, i64 0
%35 = getelementptr inbounds [2 x i64], ptr %13, i64 0, i64 0
%36 = call i64 @clEnqueueNDRangeKernel(i32 noundef %32, i32 noundef %33, i32 noundef 2, ptr noundef null, ptr noundef %34, ptr noundef %35, i32 noundef 0, ptr noundef null, ptr noundef null)
store i64 %36, ptr %15, align 8
%37 = load i64, ptr %15, align 8
%38 = load i64, ptr @CL_SUCCESS, align 8
%39 = icmp eq i64 %37, %38
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
%42 = load i32, ptr %6, align 4
%43 = call i64 @clFinish(i32 noundef %42)
store i64 %43, ptr %15, align 8
%44 = load i64, ptr %15, align 8
%45 = load i64, ptr @CL_SUCCESS, align 8
%46 = icmp eq i64 %44, %45
%47 = zext i1 %46 to i32
%48 = call i32 @assert(i32 noundef %47)
%49 = load ptr, ptr %10, align 8
%50 = call i32 @printf(ptr noundef @.str.1, ptr noundef %49)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i64 @clEnqueueNDRangeKernel(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i64 @clFinish(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp57fn1o46.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"\0AStart executing %s\0A\00", align 1
@__const.RunKernel.local_size = private unnamed_addr constant [2 x i64] [i64 16, i64 16], align 16
@CL_SUCCESS = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [21 x i8] c"Finish executing %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @RunKernel(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca [2 x i64], align 16
%14 = alloca [2 x i64], align 16
%15 = alloca i64, align 8
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%16 = load ptr, ptr %10, align 8
%17 = call i32 @printf(ptr noundef @.str, ptr noundef %16)
%18 = load i32, ptr %8, align 4
store i32 %18, ptr %11, align 4
%19 = load i32, ptr %9, align 4
store i32 %19, ptr %12, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.RunKernel.local_size, i64 16, i1 false)
%20 = getelementptr inbounds [2 x i64], ptr %14, i64 0, i64 0
%21 = load i32, ptr %12, align 4
%22 = add nsw i32 %21, 15
%23 = sdiv i32 %22, 16
%24 = mul nsw i32 %23, 16
%25 = sext i32 %24 to i64
store i64 %25, ptr %20, align 8
%26 = getelementptr inbounds i64, ptr %20, i64 1
%27 = load i32, ptr %11, align 4
%28 = add nsw i32 %27, 15
%29 = sdiv i32 %28, 16
%30 = mul nsw i32 %29, 16
%31 = sext i32 %30 to i64
store i64 %31, ptr %26, align 8
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %7, align 4
%34 = getelementptr inbounds [2 x i64], ptr %14, i64 0, i64 0
%35 = getelementptr inbounds [2 x i64], ptr %13, i64 0, i64 0
%36 = call i64 @clEnqueueNDRangeKernel(i32 noundef %32, i32 noundef %33, i32 noundef 2, ptr noundef null, ptr noundef %34, ptr noundef %35, i32 noundef 0, ptr noundef null, ptr noundef null)
store i64 %36, ptr %15, align 8
%37 = load i64, ptr %15, align 8
%38 = load i64, ptr @CL_SUCCESS, align 8
%39 = icmp eq i64 %37, %38
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
%42 = load i32, ptr %6, align 4
%43 = call i64 @clFinish(i32 noundef %42)
store i64 %43, ptr %15, align 8
%44 = load i64, ptr %15, align 8
%45 = load i64, ptr @CL_SUCCESS, align 8
%46 = icmp eq i64 %44, %45
%47 = zext i1 %46 to i32
%48 = call i32 @assert(i32 noundef %47)
%49 = load ptr, ptr %10, align 8
%50 = call i32 @printf(ptr noundef @.str.1, ptr noundef %49)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i64 @clEnqueueNDRangeKernel(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i64 @clFinish(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfmxdsc1g.c'
source_filename = "/tmp/tmpfmxdsc1g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/XXXXXX\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ace_tu_fs_create_temp_file_at(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = call ptr @ace_str_join_2(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = call ptr @mktemp(ptr noundef %9)
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %4, align 8
%13 = call i32 @ace_tu_fs_append_str_to_file(ptr noundef %11, ptr noundef %12)
%14 = load ptr, ptr %6, align 8
ret ptr %14
}
declare ptr @ace_str_join_2(ptr noundef, ptr noundef) #1
declare ptr @mktemp(ptr noundef) #1
declare i32 @ace_tu_fs_append_str_to_file(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/tmpfmxdsc1g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/XXXXXX\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ace_tu_fs_create_temp_file_at(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = call ptr @ace_str_join_2(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = call ptr @mktemp(ptr noundef %9)
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %4, align 8
%13 = call i32 @ace_tu_fs_append_str_to_file(ptr noundef %11, ptr noundef %12)
%14 = load ptr, ptr %6, align 8
ret ptr %14
}
declare ptr @ace_str_join_2(ptr noundef, ptr noundef) #1
declare ptr @mktemp(ptr noundef) #1
declare i32 @ace_tu_fs_append_str_to_file(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/tmpl57xub3a.c'
source_filename = "/tmp/tmpl57xub3a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hasInvalidChars(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i16, align 2
store ptr %0, ptr %3, align 8
store i16 0, ptr %4, align 2
br label %5
5: ; preds = %30, %1
%6 = load i16, ptr %4, align 2
%7 = sext i16 %6 to i32
%8 = load ptr, ptr %3, align 8
%9 = call signext i16 @strlen(ptr noundef %8)
%10 = sext i16 %9 to i32
%11 = icmp slt i32 %7, %10
br i1 %11, label %12, label %33
12: ; preds = %5
%13 = load ptr, ptr %3, align 8
%14 = load i16, ptr %4, align 2
%15 = sext i16 %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 = icmp slt i32 %18, 97
br i1 %19, label %28, label %20
20: ; preds = %12
%21 = load ptr, ptr %3, align 8
%22 = load i16, ptr %4, align 2
%23 = sext i16 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp sgt i32 %26, 122
br i1 %27, label %28, label %29
28: ; preds = %20, %12
store i32 1, ptr %2, align 4
br label %34
29: ; preds = %20
br label %30
30: ; preds = %29
%31 = load i16, ptr %4, align 2
%32 = add i16 %31, 1
store i16 %32, ptr %4, align 2
br label %5, !llvm.loop !6
33: ; preds = %5
store i32 0, ptr %2, align 4
br label %34
34: ; preds = %33, %28
%35 = load i32, ptr %2, align 4
ret i32 %35
}
declare signext i16 @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/tmpl57xub3a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hasInvalidChars(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i16, align 2
store ptr %0, ptr %3, align 8
store i16 0, ptr %4, align 2
%5 = load i16, ptr %4, align 2
%6 = sext i16 %5 to i32
%7 = load ptr, ptr %3, align 8
%8 = call signext i16 @strlen(ptr noundef %7)
%9 = sext i16 %8 to i32
%10 = icmp slt i32 %6, %9
br i1 %10, label %.lr.ph, label %38
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %29
%12 = load ptr, ptr %3, align 8
%13 = load i16, ptr %4, align 2
%14 = sext i16 %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 = icmp slt i32 %17, 97
br i1 %18, label %27, label %19
19: ; preds = %11
%20 = load ptr, ptr %3, align 8
%21 = load i16, ptr %4, align 2
%22 = sext i16 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp sgt i32 %25, 122
br i1 %26, label %27, label %28
27: ; preds = %19, %11
store i32 1, ptr %2, align 4
br label %39
28: ; preds = %19
br label %29
29: ; preds = %28
%30 = load i16, ptr %4, align 2
%31 = add i16 %30, 1
store i16 %31, ptr %4, align 2
%32 = load i16, ptr %4, align 2
%33 = sext i16 %32 to i32
%34 = load ptr, ptr %3, align 8
%35 = call signext i16 @strlen(ptr noundef %34)
%36 = sext i16 %35 to i32
%37 = icmp slt i32 %33, %36
br i1 %37, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %38
38: ; preds = %._crit_edge, %1
store i32 0, ptr %2, align 4
br label %39
39: ; preds = %38, %27
%40 = load i32, ptr %2, align 4
ret i32 %40
}
declare signext i16 @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/tmpg0hgsnff.c'
source_filename = "/tmp/tmpg0hgsnff.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sudoku_group_free(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/tmpg0hgsnff.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sudoku_group_free(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/tmp08bou1qh.c'
source_filename = "/tmp/tmp08bou1qh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @float_array_realloc(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = mul i64 %8, 4
%10 = call ptr @realloc(ptr noundef %7, i64 noundef %9) #3
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr %11, null
%13 = zext i1 %12 to i32
%14 = load ptr, ptr %6, align 8
%15 = call i32 @check(i32 noundef %13, ptr noundef %14)
%16 = load ptr, ptr %4, align 8
ret ptr %16
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @check(i32 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 = { allocsize(1) "frame-pointer"="all" "no-trapping-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 = { "frame-pointer"="all" "no-trapping-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 = { allocsize(1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp08bou1qh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @float_array_realloc(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = mul i64 %8, 4
%10 = call ptr @realloc(ptr noundef %7, i64 noundef %9) #3
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr %11, null
%13 = zext i1 %12 to i32
%14 = load ptr, ptr %6, align 8
%15 = call i32 @check(i32 noundef %13, ptr noundef %14)
%16 = load ptr, ptr %4, align 8
ret ptr %16
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @check(i32 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 = { allocsize(1) "frame-pointer"="all" "no-trapping-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 = { "frame-pointer"="all" "no-trapping-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 = { allocsize(1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpevcpbio6.c'
source_filename = "/tmp/tmpevcpbio6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d.%d.%d.%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ip2str(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [4 x i32], align 16
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 0
store i32 %8, ptr %9, align 16
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 3
%13 = load i32, ptr %12, align 4
%14 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 2
%15 = load i32, ptr %14, align 8
%16 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 1
%17 = load i32, ptr %16, align 4
%18 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 0
%19 = load i32, ptr %18, align 16
%20 = call i32 @snprintf(ptr noundef %10, i32 noundef %11, ptr noundef @.str, i32 noundef %13, i32 noundef %15, i32 noundef %17, i32 noundef %19)
%21 = load ptr, ptr %5, align 8
ret ptr %21
}
declare i32 @snprintf(ptr noundef, i32 noundef, 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/tmpevcpbio6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d.%d.%d.%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ip2str(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [4 x i32], align 16
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 0
store i32 %8, ptr %9, align 16
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 3
%13 = load i32, ptr %12, align 4
%14 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 2
%15 = load i32, ptr %14, align 8
%16 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 1
%17 = load i32, ptr %16, align 4
%18 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 0
%19 = load i32, ptr %18, align 16
%20 = call i32 @snprintf(ptr noundef %10, i32 noundef %11, ptr noundef @.str, i32 noundef %13, i32 noundef %15, i32 noundef %17, i32 noundef %19)
%21 = load ptr, ptr %5, align 8
ret ptr %21
}
declare i32 @snprintf(ptr noundef, i32 noundef, 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/tmpi02_i1n4.c'
source_filename = "/tmp/tmpi02_i1n4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vfs_opendir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call ptr @vfs_translate_path(ptr noundef %6)
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %11, label %10
10: ; preds = %1
store ptr null, ptr %2, align 8
br label %17
11: ; preds = %1
%12 = load ptr, ptr %4, align 8
%13 = call ptr @opendir(ptr noundef %12)
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %4, align 8
%15 = call i32 @free(ptr noundef %14)
%16 = load ptr, ptr %5, align 8
store ptr %16, ptr %2, align 8
br label %17
17: ; preds = %11, %10
%18 = load ptr, ptr %2, align 8
ret ptr %18
}
declare ptr @vfs_translate_path(ptr noundef) #1
declare ptr @opendir(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi02_i1n4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vfs_opendir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call ptr @vfs_translate_path(ptr noundef %6)
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %11, label %10
10: ; preds = %1
store ptr null, ptr %2, align 8
br label %17
11: ; preds = %1
%12 = load ptr, ptr %4, align 8
%13 = call ptr @opendir(ptr noundef %12)
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %4, align 8
%15 = call i32 @free(ptr noundef %14)
%16 = load ptr, ptr %5, align 8
store ptr %16, ptr %2, align 8
br label %17
17: ; preds = %11, %10
%18 = load ptr, ptr %2, align 8
ret ptr %18
}
declare ptr @vfs_translate_path(ptr noundef) #1
declare ptr @opendir(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1zx9yv4c.c'
source_filename = "/tmp/tmp1zx9yv4c.c"
target datalayout = "e-m:e-p270: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/tmp1zx9yv4c.c"
target datalayout = "e-m:e-p270: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/tmpl49wcwem.c'
source_filename = "/tmp/tmpl49wcwem.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl49wcwem.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplksoarpa.c'
source_filename = "/tmp/tmplksoarpa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s\0A%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
br label %7
7: ; preds = %15, %0
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %7
br label %15
15: ; preds = %14
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %4, align 4
br label %7, !llvm.loop !6
18: ; preds = %7
store i32 0, ptr %5, align 4
br label %19
19: ; preds = %38, %18
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %41
23: ; preds = %19
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 %28, %29
%31 = sub nsw i32 %30, 97
%32 = srem i32 %31, 26
%33 = add nsw i32 %32, 97
%34 = trunc i32 %33 to i8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %36
store i8 %34, ptr %37, align 1
br label %38
38: ; preds = %23
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %5, align 4
br label %19, !llvm.loop !8
41: ; preds = %19
%42 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%43 = call i32 @printf(ptr noundef @.str.1, ptr noundef %42)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, 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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplksoarpa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s\0A%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %14
br label %14
14: ; preds = %13
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br i1 %22, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %23
23: ; preds = %._crit_edge, %0
store i32 0, ptr %5, align 4
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph2, label %48
.lr.ph2: ; preds = %23
br label %27
27: ; preds = %.lr.ph2, %42
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %32, %33
%35 = sub nsw i32 %34, 97
%36 = srem i32 %35, 26
%37 = add nsw i32 %36, 97
%38 = trunc i32 %37 to i8
%39 = load i32, ptr %5, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %40
store i8 %38, ptr %41, align 1
br label %42
42: ; preds = %27
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %5, align 4
%45 = load i32, ptr %5, align 4
%46 = load i32, ptr %4, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %48
48: ; preds = %._crit_edge3, %23
%49 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%50 = call i32 @printf(ptr noundef @.str.1, ptr noundef %49)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, 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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp52binlgp.c'
source_filename = "/tmp/tmp52binlgp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%s : %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"abcabcabcabc\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @GetMinPeriod(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @GetMinPeriod(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/tmp52binlgp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%s : %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"abcabcabcabc\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @GetMinPeriod(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @GetMinPeriod(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/tmpy9af0iig.c'
source_filename = "/tmp/tmpy9af0iig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stripe_cem_matrix(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%17 = load i32, ptr %9, align 4
%18 = sdiv i32 %17, 4
%19 = load i32, ptr %10, align 4
%20 = mul nsw i32 %18, %19
store i32 %20, ptr %13, align 4
%21 = load i32, ptr %9, align 4
%22 = sdiv i32 %21, 2
%23 = load i32, ptr %10, align 4
%24 = mul nsw i32 %22, %23
store i32 %24, ptr %14, align 4
%25 = load i32, ptr %10, align 4
%26 = load i32, ptr %9, align 4
%27 = mul nsw i32 %25, %26
%28 = call ptr @malloc(i32 noundef %27)
store ptr %28, ptr %15, align 8
%29 = load ptr, ptr %15, align 8
%30 = load i32, ptr %13, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i32, ptr %14, align 4
%34 = load ptr, ptr %11, align 8
%35 = load i32, ptr %12, align 4
%36 = load i32, ptr %10, align 4
%37 = mul nsw i32 %35, %36
%38 = call i32 @repeat_mem(ptr noundef %32, i32 noundef %33, ptr noundef %34, i32 noundef %37)
%39 = load ptr, ptr %15, align 8
%40 = load i32, ptr %10, align 4
%41 = load i32, ptr %9, align 4
%42 = call i32 @apply_periodic_boundary(ptr noundef %39, i32 noundef %40, i32 noundef %41)
store i32 0, ptr %16, align 4
br label %43
43: ; preds = %58, %6
%44 = load i32, ptr %16, align 4
%45 = load i32, ptr %8, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %61
47: ; preds = %43
%48 = load ptr, ptr %7, align 8
%49 = load i32, ptr %16, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds ptr, ptr %48, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = load ptr, ptr %15, align 8
%54 = load i32, ptr %10, align 4
%55 = load i32, ptr %9, align 4
%56 = mul nsw i32 %54, %55
%57 = call i32 @memcpy(ptr noundef %52, ptr noundef %53, i32 noundef %56)
br label %58
58: ; preds = %47
%59 = load i32, ptr %16, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %16, align 4
br label %43, !llvm.loop !6
61: ; preds = %43
%62 = load ptr, ptr %15, align 8
%63 = call i32 @free(ptr noundef %62)
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @repeat_mem(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @apply_periodic_boundary(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy9af0iig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stripe_cem_matrix(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%17 = load i32, ptr %9, align 4
%18 = sdiv i32 %17, 4
%19 = load i32, ptr %10, align 4
%20 = mul nsw i32 %18, %19
store i32 %20, ptr %13, align 4
%21 = load i32, ptr %9, align 4
%22 = sdiv i32 %21, 2
%23 = load i32, ptr %10, align 4
%24 = mul nsw i32 %22, %23
store i32 %24, ptr %14, align 4
%25 = load i32, ptr %10, align 4
%26 = load i32, ptr %9, align 4
%27 = mul nsw i32 %25, %26
%28 = call ptr @malloc(i32 noundef %27)
store ptr %28, ptr %15, align 8
%29 = load ptr, ptr %15, align 8
%30 = load i32, ptr %13, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i32, ptr %14, align 4
%34 = load ptr, ptr %11, align 8
%35 = load i32, ptr %12, align 4
%36 = load i32, ptr %10, align 4
%37 = mul nsw i32 %35, %36
%38 = call i32 @repeat_mem(ptr noundef %32, i32 noundef %33, ptr noundef %34, i32 noundef %37)
%39 = load ptr, ptr %15, align 8
%40 = load i32, ptr %10, align 4
%41 = load i32, ptr %9, align 4
%42 = call i32 @apply_periodic_boundary(ptr noundef %39, i32 noundef %40, i32 noundef %41)
store i32 0, ptr %16, align 4
%43 = load i32, ptr %16, align 4
%44 = load i32, ptr %8, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %.lr.ph, label %63
.lr.ph: ; preds = %6
br label %46
46: ; preds = %.lr.ph, %57
%47 = load ptr, ptr %7, align 8
%48 = load i32, ptr %16, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %47, i64 %49
%51 = load ptr, ptr %50, align 8
%52 = load ptr, ptr %15, align 8
%53 = load i32, ptr %10, align 4
%54 = load i32, ptr %9, align 4
%55 = mul nsw i32 %53, %54
%56 = call i32 @memcpy(ptr noundef %51, ptr noundef %52, i32 noundef %55)
br label %57
57: ; preds = %46
%58 = load i32, ptr %16, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %16, align 4
%60 = load i32, ptr %16, align 4
%61 = load i32, ptr %8, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %46, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %57
br label %63
63: ; preds = %._crit_edge, %6
%64 = load ptr, ptr %15, align 8
%65 = call i32 @free(ptr noundef %64)
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @repeat_mem(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @apply_periodic_boundary(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbvhccbbn.c'
source_filename = "/tmp/tmpbvhccbbn.c"
target datalayout = "e-m:e-p270: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/tmpbvhccbbn.c"
target datalayout = "e-m:e-p270: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/tmpyll333fs.c'
source_filename = "/tmp/tmpyll333fs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI_2 = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cartesianToPolar(float noundef %0, float noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca float, align 4
store float %0, ptr %5, align 4
store float %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %7, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %21
12: ; preds = %4
%13 = load float, ptr %5, align 4
%14 = load float, ptr %5, align 4
%15 = load float, ptr %6, align 4
%16 = load float, ptr %6, align 4
%17 = fmul float %15, %16
%18 = call float @llvm.fmuladd.f32(float %13, float %14, float %17)
%19 = call double @sqrt(float noundef %18)
%20 = load ptr, ptr %7, align 8
store double %19, ptr %20, align 8
br label %21
21: ; preds = %12, %4
%22 = load ptr, ptr %8, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %25, label %24
24: ; preds = %21
br label %53
25: ; preds = %21
%26 = load float, ptr %5, align 4
%27 = fpext float %26 to double
%28 = fcmp oeq double %27, 0.000000e+00
br i1 %28, label %29, label %44
29: ; preds = %25
%30 = load float, ptr %6, align 4
%31 = fpext float %30 to double
%32 = fcmp oeq double %31, 0.000000e+00
br i1 %32, label %33, label %34
33: ; preds = %29
store float 0.000000e+00, ptr %9, align 4
br label %43
34: ; preds = %29
%35 = load float, ptr %6, align 4
%36 = fcmp ogt float %35, 0.000000e+00
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = load float, ptr @M_PI_2, align 4
store float %38, ptr %9, align 4
br label %42
39: ; preds = %34
%40 = load float, ptr @M_PI_2, align 4
%41 = fneg float %40
store float %41, ptr %9, align 4
br label %42
42: ; preds = %39, %37
br label %43
43: ; preds = %42, %33
br label %49
44: ; preds = %25
%45 = load float, ptr %6, align 4
%46 = load float, ptr %5, align 4
%47 = fdiv float %45, %46
%48 = call float @atan(float noundef %47)
store float %48, ptr %9, align 4
br label %49
49: ; preds = %44, %43
%50 = load float, ptr %9, align 4
%51 = fpext float %50 to double
%52 = load ptr, ptr %8, align 8
store double %51, ptr %52, align 8
br label %53
53: ; preds = %49, %24
ret void
}
declare double @sqrt(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare float @atan(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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyll333fs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI_2 = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cartesianToPolar(float noundef %0, float noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca float, align 4
store float %0, ptr %5, align 4
store float %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %7, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %21
12: ; preds = %4
%13 = load float, ptr %5, align 4
%14 = load float, ptr %5, align 4
%15 = load float, ptr %6, align 4
%16 = load float, ptr %6, align 4
%17 = fmul float %15, %16
%18 = call float @llvm.fmuladd.f32(float %13, float %14, float %17)
%19 = call double @sqrt(float noundef %18)
%20 = load ptr, ptr %7, align 8
store double %19, ptr %20, align 8
br label %21
21: ; preds = %12, %4
%22 = load ptr, ptr %8, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %25, label %24
24: ; preds = %21
br label %53
25: ; preds = %21
%26 = load float, ptr %5, align 4
%27 = fpext float %26 to double
%28 = fcmp oeq double %27, 0.000000e+00
br i1 %28, label %29, label %44
29: ; preds = %25
%30 = load float, ptr %6, align 4
%31 = fpext float %30 to double
%32 = fcmp oeq double %31, 0.000000e+00
br i1 %32, label %33, label %34
33: ; preds = %29
store float 0.000000e+00, ptr %9, align 4
br label %43
34: ; preds = %29
%35 = load float, ptr %6, align 4
%36 = fcmp ogt float %35, 0.000000e+00
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = load float, ptr @M_PI_2, align 4
store float %38, ptr %9, align 4
br label %42
39: ; preds = %34
%40 = load float, ptr @M_PI_2, align 4
%41 = fneg float %40
store float %41, ptr %9, align 4
br label %42
42: ; preds = %39, %37
br label %43
43: ; preds = %42, %33
br label %49
44: ; preds = %25
%45 = load float, ptr %6, align 4
%46 = load float, ptr %5, align 4
%47 = fdiv float %45, %46
%48 = call float @atan(float noundef %47)
store float %48, ptr %9, align 4
br label %49
49: ; preds = %44, %43
%50 = load float, ptr %9, align 4
%51 = fpext float %50 to double
%52 = load ptr, ptr %8, align 8
store double %51, ptr %52, align 8
br label %53
53: ; preds = %49, %24
ret void
}
declare double @sqrt(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare float @atan(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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjf_9hirx.c'
source_filename = "/tmp/tmpjf_9hirx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjf_9hirx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwig20fhx.c'
source_filename = "/tmp/tmpwig20fhx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [139 x i8] c" Please provide the following arguments: simulation time, mean time between arrivals, mean service time, initial buf size, step buf size \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"{\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"\22P-Buf\22: %d,\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"\22buf-size\22: %d,\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"\22max-buf\22: %d,\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"\22hitting\22: %3.2f\0A\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"}\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = 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
%26 = load i32, ptr %4, align 4
%27 = icmp ne i32 %26, 6
br i1 %27, label %28, label %31
28: ; preds = %2
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%30 = call i32 @exit(i32 noundef 1) #4
unreachable
31: ; preds = %2
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 4
%34 = load ptr, ptr %33, align 8
%35 = call i32 @atoi(ptr noundef %34)
store i32 %35, ptr %6, align 4
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 5
%38 = load ptr, ptr %37, align 8
%39 = call i32 @atoi(ptr noundef %38)
store i32 %39, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %40
40: ; preds = %144, %31
%41 = load i32, ptr %8, align 4
%42 = icmp slt i32 %41, 10
br i1 %42, label %43, label %147
43: ; preds = %40
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds ptr, ptr %44, i64 1
%46 = load ptr, ptr %45, align 8
%47 = call double @strtod(ptr noundef %46, ptr noundef null)
store double %47, ptr %9, align 8
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds ptr, ptr %48, i64 2
%50 = load ptr, ptr %49, align 8
%51 = call double @strtod(ptr noundef %50, ptr noundef null)
store double %51, ptr %10, align 8
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds ptr, ptr %52, i64 3
%54 = load ptr, ptr %53, align 8
%55 = call double @strtod(ptr noundef %54, ptr noundef null)
store double %55, ptr %11, align 8
store double 0.000000e+00, ptr %12, align 8
store double 0.000000e+00, ptr %13, align 8
store double 1.000000e+06, ptr %14, align 8
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
store double 0.000000e+00, ptr %17, align 8
store double 0.000000e+00, ptr %18, align 8
%56 = load double, ptr %12, align 8
store double %56, ptr %19, align 8
%57 = call i32 @rand_val(i32 noundef 1)
store i32 0, ptr %25, align 4
br label %58
58: ; preds = %130, %43
%59 = load double, ptr %12, align 8
%60 = load double, ptr %9, align 8
%61 = fcmp olt double %59, %60
br i1 %61, label %62, label %131
62: ; preds = %58
%63 = load double, ptr %13, align 8
%64 = load double, ptr %14, align 8
%65 = fcmp olt double %63, %64
br i1 %65, label %66, label %91
66: ; preds = %62
%67 = load double, ptr %13, align 8
store double %67, ptr %12, align 8
%68 = load double, ptr %18, align 8
%69 = load i32, ptr %15, align 4
%70 = uitofp i32 %69 to double
%71 = load double, ptr %12, align 8
%72 = load double, ptr %19, align 8
%73 = fsub double %71, %72
%74 = call double @llvm.fmuladd.f64(double %70, double %73, double %68)
store double %74, ptr %18, align 8
%75 = load i32, ptr %15, align 4
%76 = add i32 %75, 1
store i32 %76, ptr %15, align 4
%77 = load double, ptr %12, align 8
store double %77, ptr %19, align 8
%78 = load double, ptr %12, align 8
%79 = load double, ptr %10, align 8
%80 = call double @exponential(double noundef %79)
%81 = fadd double %78, %80
store double %81, ptr %13, align 8
%82 = load i32, ptr %15, align 4
%83 = icmp eq i32 %82, 1
br i1 %83, label %84, label %90
84: ; preds = %66
%85 = load double, ptr %12, align 8
store double %85, ptr %20, align 8
%86 = load double, ptr %12, align 8
%87 = load double, ptr %11, align 8
%88 = call double @exponential(double noundef %87)
%89 = fadd double %86, %88
store double %89, ptr %14, align 8
br label %90
90: ; preds = %84, %66
br label %119
91: ; preds = %62
%92 = load double, ptr %14, align 8
store double %92, ptr %12, align 8
%93 = load double, ptr %18, align 8
%94 = load i32, ptr %15, align 4
%95 = uitofp i32 %94 to double
%96 = load double, ptr %12, align 8
%97 = load double, ptr %19, align 8
%98 = fsub double %96, %97
%99 = call double @llvm.fmuladd.f64(double %95, double %98, double %93)
store double %99, ptr %18, align 8
%100 = load i32, ptr %15, align 4
%101 = add i32 %100, -1
store i32 %101, ptr %15, align 4
%102 = load double, ptr %12, align 8
store double %102, ptr %19, align 8
%103 = load i32, ptr %16, align 4
%104 = add i32 %103, 1
store i32 %104, ptr %16, align 4
%105 = load i32, ptr %15, align 4
%106 = icmp ugt i32 %105, 0
br i1 %106, label %107, label %112
107: ; preds = %91
%108 = load double, ptr %12, align 8
%109 = load double, ptr %11, align 8
%110 = call double @exponential(double noundef %109)
%111 = fadd double %108, %110
store double %111, ptr %14, align 8
br label %118
112: ; preds = %91
store double 1.000000e+06, ptr %14, align 8
%113 = load double, ptr %17, align 8
%114 = load double, ptr %12, align 8
%115 = fadd double %113, %114
%116 = load double, ptr %20, align 8
%117 = fsub double %115, %116
store double %117, ptr %17, align 8
br label %118
118: ; preds = %112, %107
br label %119
119: ; preds = %118, %90
%120 = load i32, ptr %25, align 4
%121 = load i32, ptr %15, align 4
%122 = icmp ult i32 %120, %121
br i1 %122, label %123, label %125
123: ; preds = %119
%124 = load i32, ptr %15, align 4
store i32 %124, ptr %25, align 4
br label %125
125: ; preds = %123, %119
%126 = load i32, ptr %15, align 4
%127 = load i32, ptr %6, align 4
%128 = icmp ugt i32 %126, %127
br i1 %128, label %129, label %130
129: ; preds = %125
br label %131
130: ; preds = %125
br label %58, !llvm.loop !6
131: ; preds = %129, %58
%132 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%133 = load i32, ptr %6, align 4
%134 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %133)
%135 = load i32, ptr %15, align 4
%136 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %135)
%137 = load i32, ptr %25, align 4
%138 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %137)
%139 = load double, ptr %12, align 8
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %139)
%141 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%142 = load i32, ptr %6, align 4
%143 = add i32 %142, 1000
store i32 %143, ptr %6, align 4
br label %144
144: ; preds = %131
%145 = load i32, ptr %8, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %8, align 4
br label %40, !llvm.loop !8
147: ; preds = %40
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare double @strtod(ptr noundef, ptr noundef) #1
declare i32 @rand_val(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare double @exponential(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwig20fhx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [139 x i8] c" Please provide the following arguments: simulation time, mean time between arrivals, mean service time, initial buf size, step buf size \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"{\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"\22P-Buf\22: %d,\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"\22buf-size\22: %d,\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"\22max-buf\22: %d,\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"\22hitting\22: %3.2f\0A\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"}\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = 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
%26 = load i32, ptr %4, align 4
%27 = icmp ne i32 %26, 6
br i1 %27, label %28, label %31
28: ; preds = %2
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%30 = call i32 @exit(i32 noundef 1) #4
unreachable
31: ; preds = %2
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 4
%34 = load ptr, ptr %33, align 8
%35 = call i32 @atoi(ptr noundef %34)
store i32 %35, ptr %6, align 4
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 5
%38 = load ptr, ptr %37, align 8
%39 = call i32 @atoi(ptr noundef %38)
store i32 %39, ptr %7, align 4
store i32 0, ptr %8, align 4
%40 = load i32, ptr %8, align 4
%41 = icmp slt i32 %40, 10
br i1 %41, label %.lr.ph1, label %150
.lr.ph1: ; preds = %31
br label %42
42: ; preds = %.lr.ph1, %145
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds ptr, ptr %43, i64 1
%45 = load ptr, ptr %44, align 8
%46 = call double @strtod(ptr noundef %45, ptr noundef null)
store double %46, ptr %9, align 8
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds ptr, ptr %47, i64 2
%49 = load ptr, ptr %48, align 8
%50 = call double @strtod(ptr noundef %49, ptr noundef null)
store double %50, ptr %10, align 8
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds ptr, ptr %51, i64 3
%53 = load ptr, ptr %52, align 8
%54 = call double @strtod(ptr noundef %53, ptr noundef null)
store double %54, ptr %11, align 8
store double 0.000000e+00, ptr %12, align 8
store double 0.000000e+00, ptr %13, align 8
store double 1.000000e+06, ptr %14, align 8
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
store double 0.000000e+00, ptr %17, align 8
store double 0.000000e+00, ptr %18, align 8
%55 = load double, ptr %12, align 8
store double %55, ptr %19, align 8
%56 = call i32 @rand_val(i32 noundef 1)
store i32 0, ptr %25, align 4
%57 = load double, ptr %12, align 8
%58 = load double, ptr %9, align 8
%59 = fcmp olt double %57, %58
br i1 %59, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %42
br label %64
60: ; preds = %127
%61 = load double, ptr %12, align 8
%62 = load double, ptr %9, align 8
%63 = fcmp olt double %61, %62
br i1 %63, label %64, label %..loopexit_crit_edge, !llvm.loop !6
64: ; preds = %.lr.ph, %60
%65 = load double, ptr %13, align 8
%66 = load double, ptr %14, align 8
%67 = fcmp olt double %65, %66
br i1 %67, label %68, label %93
68: ; preds = %64
%69 = load double, ptr %13, align 8
store double %69, ptr %12, align 8
%70 = load double, ptr %18, align 8
%71 = load i32, ptr %15, align 4
%72 = uitofp i32 %71 to double
%73 = load double, ptr %12, align 8
%74 = load double, ptr %19, align 8
%75 = fsub double %73, %74
%76 = call double @llvm.fmuladd.f64(double %72, double %75, double %70)
store double %76, ptr %18, align 8
%77 = load i32, ptr %15, align 4
%78 = add i32 %77, 1
store i32 %78, ptr %15, align 4
%79 = load double, ptr %12, align 8
store double %79, ptr %19, align 8
%80 = load double, ptr %12, align 8
%81 = load double, ptr %10, align 8
%82 = call double @exponential(double noundef %81)
%83 = fadd double %80, %82
store double %83, ptr %13, align 8
%84 = load i32, ptr %15, align 4
%85 = icmp eq i32 %84, 1
br i1 %85, label %86, label %92
86: ; preds = %68
%87 = load double, ptr %12, align 8
store double %87, ptr %20, align 8
%88 = load double, ptr %12, align 8
%89 = load double, ptr %11, align 8
%90 = call double @exponential(double noundef %89)
%91 = fadd double %88, %90
store double %91, ptr %14, align 8
br label %92
92: ; preds = %86, %68
br label %121
93: ; preds = %64
%94 = load double, ptr %14, align 8
store double %94, ptr %12, align 8
%95 = load double, ptr %18, align 8
%96 = load i32, ptr %15, align 4
%97 = uitofp i32 %96 to double
%98 = load double, ptr %12, align 8
%99 = load double, ptr %19, align 8
%100 = fsub double %98, %99
%101 = call double @llvm.fmuladd.f64(double %97, double %100, double %95)
store double %101, ptr %18, align 8
%102 = load i32, ptr %15, align 4
%103 = add i32 %102, -1
store i32 %103, ptr %15, align 4
%104 = load double, ptr %12, align 8
store double %104, ptr %19, align 8
%105 = load i32, ptr %16, align 4
%106 = add i32 %105, 1
store i32 %106, ptr %16, align 4
%107 = load i32, ptr %15, align 4
%108 = icmp ugt i32 %107, 0
br i1 %108, label %109, label %114
109: ; preds = %93
%110 = load double, ptr %12, align 8
%111 = load double, ptr %11, align 8
%112 = call double @exponential(double noundef %111)
%113 = fadd double %110, %112
store double %113, ptr %14, align 8
br label %120
114: ; preds = %93
store double 1.000000e+06, ptr %14, align 8
%115 = load double, ptr %17, align 8
%116 = load double, ptr %12, align 8
%117 = fadd double %115, %116
%118 = load double, ptr %20, align 8
%119 = fsub double %117, %118
store double %119, ptr %17, align 8
br label %120
120: ; preds = %114, %109
br label %121
121: ; preds = %120, %92
%122 = load i32, ptr %25, align 4
%123 = load i32, ptr %15, align 4
%124 = icmp ult i32 %122, %123
br i1 %124, label %125, label %127
125: ; preds = %121
%126 = load i32, ptr %15, align 4
store i32 %126, ptr %25, align 4
br label %127
127: ; preds = %125, %121
%128 = load i32, ptr %15, align 4
%129 = load i32, ptr %6, align 4
%130 = icmp ugt i32 %128, %129
br i1 %130, label %131, label %60
131: ; preds = %127
br label %132
..loopexit_crit_edge: ; preds = %60
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %42
br label %132
132: ; preds = %.loopexit, %131
%133 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%134 = load i32, ptr %6, align 4
%135 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %134)
%136 = load i32, ptr %15, align 4
%137 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %136)
%138 = load i32, ptr %25, align 4
%139 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %138)
%140 = load double, ptr %12, align 8
%141 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %140)
%142 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%143 = load i32, ptr %6, align 4
%144 = add i32 %143, 1000
store i32 %144, ptr %6, align 4
br label %145
145: ; preds = %132
%146 = load i32, ptr %8, align 4
%147 = add nsw i32 %146, 1
store i32 %147, ptr %8, align 4
%148 = load i32, ptr %8, align 4
%149 = icmp slt i32 %148, 10
br i1 %149, label %42, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %145
br label %150
150: ; preds = %._crit_edge, %31
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare double @strtod(ptr noundef, ptr noundef) #1
declare i32 @rand_val(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare double @exponential(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp8q4qztq0.c'
source_filename = "/tmp/tmp8q4qztq0.c"
target datalayout = "e-m:e-p270: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.Rodrigues.rodrigusSize = private unnamed_addr constant [2 x i32] [i32 3, i32 1], align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Rodrigues(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [2 x i32], align 4
%6 = alloca float, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 @__const.Rodrigues.rodrigusSize, i64 8, i1 false)
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%9 = call float @NormofMatrix(ptr noundef %7, ptr noundef %8)
store float %9, ptr %6, align 4
%10 = load float, ptr %6, align 4
%11 = load ptr, ptr %4, align 8
store float %10, ptr %11, align 4
%12 = load ptr, ptr %3, align 8
%13 = load float, ptr %12, align 4
%14 = load float, ptr %6, align 4
%15 = fdiv float %13, %14
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds float, ptr %16, i64 1
store float %15, ptr %17, align 4
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds float, ptr %18, i64 1
%20 = load float, ptr %19, align 4
%21 = load float, ptr %6, align 4
%22 = fdiv float %20, %21
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds float, ptr %23, i64 2
store float %22, ptr %24, align 4
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds float, ptr %25, i64 2
%27 = load float, ptr %26, align 4
%28 = load float, ptr %6, align 4
%29 = fdiv float %27, %28
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds float, ptr %30, i64 3
store float %29, ptr %31, align 4
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare float @NormofMatrix(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8q4qztq0.c"
target datalayout = "e-m:e-p270: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.Rodrigues.rodrigusSize = private unnamed_addr constant [2 x i32] [i32 3, i32 1], align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Rodrigues(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [2 x i32], align 4
%6 = alloca float, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 @__const.Rodrigues.rodrigusSize, i64 8, i1 false)
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%9 = call float @NormofMatrix(ptr noundef %7, ptr noundef %8)
store float %9, ptr %6, align 4
%10 = load float, ptr %6, align 4
%11 = load ptr, ptr %4, align 8
store float %10, ptr %11, align 4
%12 = load ptr, ptr %3, align 8
%13 = load float, ptr %12, align 4
%14 = load float, ptr %6, align 4
%15 = fdiv float %13, %14
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds float, ptr %16, i64 1
store float %15, ptr %17, align 4
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds float, ptr %18, i64 1
%20 = load float, ptr %19, align 4
%21 = load float, ptr %6, align 4
%22 = fdiv float %20, %21
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds float, ptr %23, i64 2
store float %22, ptr %24, align 4
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds float, ptr %25, i64 2
%27 = load float, ptr %26, align 4
%28 = load float, ptr %6, align 4
%29 = fdiv float %27, %28
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds float, ptr %30, i64 3
store float %29, ptr %31, align 4
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare float @NormofMatrix(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp11ee0rip.c'
source_filename = "/tmp/tmp11ee0rip.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @ln_get_mercury_disk(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %2, align 8
%6 = load double, ptr %2, align 8
%7 = call double @ln_get_earth_solar_dist(double noundef %6)
store double %7, ptr %5, align 8
%8 = load double, ptr %2, align 8
%9 = call double @ln_get_mercury_solar_dist(double noundef %8)
store double %9, ptr %3, align 8
%10 = load double, ptr %2, align 8
%11 = call double @ln_get_mercury_earth_dist(double noundef %10)
store double %11, ptr %4, align 8
%12 = load double, ptr %3, align 8
%13 = load double, ptr %4, align 8
%14 = fadd double %12, %13
%15 = load double, ptr %3, align 8
%16 = load double, ptr %4, align 8
%17 = fadd double %15, %16
%18 = load double, ptr %5, align 8
%19 = load double, ptr %5, align 8
%20 = fmul double %18, %19
%21 = fneg double %20
%22 = call double @llvm.fmuladd.f64(double %14, double %17, double %21)
%23 = load double, ptr %3, align 8
%24 = fmul double 4.000000e+00, %23
%25 = load double, ptr %4, align 8
%26 = fmul double %24, %25
%27 = fdiv double %22, %26
ret double %27
}
declare double @ln_get_earth_solar_dist(double noundef) #1
declare double @ln_get_mercury_solar_dist(double noundef) #1
declare double @ln_get_mercury_earth_dist(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp11ee0rip.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @ln_get_mercury_disk(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %2, align 8
%6 = load double, ptr %2, align 8
%7 = call double @ln_get_earth_solar_dist(double noundef %6)
store double %7, ptr %5, align 8
%8 = load double, ptr %2, align 8
%9 = call double @ln_get_mercury_solar_dist(double noundef %8)
store double %9, ptr %3, align 8
%10 = load double, ptr %2, align 8
%11 = call double @ln_get_mercury_earth_dist(double noundef %10)
store double %11, ptr %4, align 8
%12 = load double, ptr %3, align 8
%13 = load double, ptr %4, align 8
%14 = fadd double %12, %13
%15 = load double, ptr %3, align 8
%16 = load double, ptr %4, align 8
%17 = fadd double %15, %16
%18 = load double, ptr %5, align 8
%19 = load double, ptr %5, align 8
%20 = fmul double %18, %19
%21 = fneg double %20
%22 = call double @llvm.fmuladd.f64(double %14, double %17, double %21)
%23 = load double, ptr %3, align 8
%24 = fmul double 4.000000e+00, %23
%25 = load double, ptr %4, align 8
%26 = fmul double %24, %25
%27 = fdiv double %22, %26
ret double %27
}
declare double @ln_get_earth_solar_dist(double noundef) #1
declare double @ln_get_mercury_solar_dist(double noundef) #1
declare double @ln_get_mercury_earth_dist(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3ly2suy_.c'
source_filename = "/tmp/tmp3ly2suy_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Please enter 3 numbers separated by spaces > \00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d%d%d\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"%d is the median\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %7, %8
br i1 %9, label %10, label %17
10: ; preds = %0
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = load i32, ptr %2, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
br label %17
17: ; preds = %14, %10, %0
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp sgt i32 %18, %19
br i1 %20, label %21, label %28
21: ; preds = %17
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %28
25: ; preds = %21
%26 = load i32, ptr %2, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %26)
br label %28
28: ; preds = %25, %21, %17
%29 = load i32, ptr %3, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp sgt i32 %29, %30
br i1 %31, label %32, label %39
32: ; preds = %28
%33 = load i32, ptr %3, align 4
%34 = load i32, ptr %2, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %39
36: ; preds = %32
%37 = load i32, ptr %3, align 4
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %37)
br label %39
39: ; preds = %36, %32, %28
%40 = load i32, ptr %3, align 4
%41 = load i32, ptr %2, align 4
%42 = icmp sgt i32 %40, %41
br i1 %42, label %43, label %50
43: ; preds = %39
%44 = load i32, ptr %3, align 4
%45 = load i32, ptr %4, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %50
47: ; preds = %43
%48 = load i32, ptr %3, align 4
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %48)
br label %50
50: ; preds = %47, %43, %39
%51 = load i32, ptr %4, align 4
%52 = load i32, ptr %2, align 4
%53 = icmp sgt i32 %51, %52
br i1 %53, label %54, label %61
54: ; preds = %50
%55 = load i32, ptr %4, align 4
%56 = load i32, ptr %3, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = load i32, ptr %4, align 4
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %59)
br label %61
61: ; preds = %58, %54, %50
%62 = load i32, ptr %4, align 4
%63 = load i32, ptr %3, align 4
%64 = icmp sgt i32 %62, %63
br i1 %64, label %65, label %72
65: ; preds = %61
%66 = load i32, ptr %4, align 4
%67 = load i32, ptr %2, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %72
69: ; preds = %65
%70 = load i32, ptr %4, align 4
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %70)
br label %72
72: ; preds = %69, %65, %61
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/tmp3ly2suy_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Please enter 3 numbers separated by spaces > \00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d%d%d\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"%d is the median\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %7, %8
br i1 %9, label %10, label %17
10: ; preds = %0
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = load i32, ptr %2, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
br label %17
17: ; preds = %14, %10, %0
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp sgt i32 %18, %19
br i1 %20, label %21, label %28
21: ; preds = %17
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %28
25: ; preds = %21
%26 = load i32, ptr %2, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %26)
br label %28
28: ; preds = %25, %21, %17
%29 = load i32, ptr %3, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp sgt i32 %29, %30
br i1 %31, label %32, label %39
32: ; preds = %28
%33 = load i32, ptr %3, align 4
%34 = load i32, ptr %2, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %39
36: ; preds = %32
%37 = load i32, ptr %3, align 4
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %37)
br label %39
39: ; preds = %36, %32, %28
%40 = load i32, ptr %3, align 4
%41 = load i32, ptr %2, align 4
%42 = icmp sgt i32 %40, %41
br i1 %42, label %43, label %50
43: ; preds = %39
%44 = load i32, ptr %3, align 4
%45 = load i32, ptr %4, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %50
47: ; preds = %43
%48 = load i32, ptr %3, align 4
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %48)
br label %50
50: ; preds = %47, %43, %39
%51 = load i32, ptr %4, align 4
%52 = load i32, ptr %2, align 4
%53 = icmp sgt i32 %51, %52
br i1 %53, label %54, label %61
54: ; preds = %50
%55 = load i32, ptr %4, align 4
%56 = load i32, ptr %3, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = load i32, ptr %4, align 4
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %59)
br label %61
61: ; preds = %58, %54, %50
%62 = load i32, ptr %4, align 4
%63 = load i32, ptr %3, align 4
%64 = icmp sgt i32 %62, %63
br i1 %64, label %65, label %72
65: ; preds = %61
%66 = load i32, ptr %4, align 4
%67 = load i32, ptr %2, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %72
69: ; preds = %65
%70 = load i32, ptr %4, align 4
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %70)
br label %72
72: ; preds = %69, %65, %61
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/tmpt1_bya8w.c'
source_filename = "/tmp/tmpt1_bya8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sift_down(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %5, align 4
store i32 %9, ptr %7, align 4
br label %10
10: ; preds = %64, %3
%11 = load i32, ptr %7, align 4
%12 = mul nsw i32 %11, 2
%13 = add nsw i32 %12, 1
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %65
16: ; preds = %10
%17 = load i32, ptr %7, align 4
%18 = mul nsw i32 2, %17
%19 = add nsw i32 %18, 1
store i32 %19, ptr %8, align 4
%20 = load i32, ptr %8, align 4
%21 = add nsw i32 %20, 1
%22 = load i32, ptr %6, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %40
24: ; preds = %16
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %8, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, ptr %25, i64 %27
%29 = load double, ptr %28, align 8
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %8, align 4
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, ptr %30, i64 %33
%35 = load double, ptr %34, align 8
%36 = fcmp olt double %29, %35
br i1 %36, label %37, label %40
37: ; preds = %24
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4
br label %40
40: ; preds = %37, %24, %16
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds double, ptr %41, i64 %43
%45 = load double, ptr %44, align 8
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %8, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, ptr %46, i64 %48
%50 = load double, ptr %49, align 8
%51 = fcmp olt double %45, %50
br i1 %51, label %52, label %63
52: ; preds = %40
%53 = load ptr, ptr %4, align 8
%54 = load i32, ptr %8, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, ptr %53, i64 %55
%57 = load ptr, ptr %4, align 8
%58 = load i32, ptr %7, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, ptr %57, i64 %59
%61 = call i32 @swap(ptr noundef %56, ptr noundef %60)
%62 = load i32, ptr %8, align 4
store i32 %62, ptr %7, align 4
br label %64
63: ; preds = %40
br label %65
64: ; preds = %52
br label %10, !llvm.loop !6
65: ; preds = %63, %10
ret void
}
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt1_bya8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sift_down(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %5, align 4
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = mul nsw i32 %10, 2
%12 = add nsw i32 %11, 1
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %63
%16 = load i32, ptr %7, align 4
%17 = mul nsw i32 2, %16
%18 = add nsw i32 %17, 1
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = add nsw i32 %19, 1
%21 = load i32, ptr %6, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %39
23: ; preds = %15
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %8, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds double, ptr %24, i64 %26
%28 = load double, ptr %27, align 8
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %8, align 4
%31 = add nsw i32 %30, 1
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, ptr %29, i64 %32
%34 = load double, ptr %33, align 8
%35 = fcmp olt double %28, %34
br i1 %35, label %36, label %39
36: ; preds = %23
%37 = load i32, ptr %8, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %8, align 4
br label %39
39: ; preds = %36, %23, %15
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, ptr %40, i64 %42
%44 = load double, ptr %43, align 8
%45 = load ptr, ptr %4, align 8
%46 = load i32, ptr %8, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, ptr %45, i64 %47
%49 = load double, ptr %48, align 8
%50 = fcmp olt double %44, %49
br i1 %50, label %51, label %62
51: ; preds = %39
%52 = load ptr, ptr %4, align 8
%53 = load i32, ptr %8, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, ptr %52, i64 %54
%56 = load ptr, ptr %4, align 8
%57 = load i32, ptr %7, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, ptr %56, i64 %58
%60 = call i32 @swap(ptr noundef %55, ptr noundef %59)
%61 = load i32, ptr %8, align 4
store i32 %61, ptr %7, align 4
br label %63
62: ; preds = %39
br label %69
63: ; preds = %51
%64 = load i32, ptr %7, align 4
%65 = mul nsw i32 %64, 2
%66 = add nsw i32 %65, 1
%67 = load i32, ptr %6, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %15, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %63
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %69
69: ; preds = %.loopexit, %62
ret void
}
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbb6xryf9.c'
source_filename = "/tmp/tmpbb6xryf9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"ERROR writing to socket\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @send_msg(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %7, align 4
%12 = call i32 @write(i32 noundef %9, ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = call i32 @error(ptr noundef @.str)
br label %17
17: ; preds = %15, %3
%18 = load i32, ptr %4, align 4
ret i32 %18
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @error(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/tmpbb6xryf9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"ERROR writing to socket\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @send_msg(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %7, align 4
%12 = call i32 @write(i32 noundef %9, ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = call i32 @error(ptr noundef @.str)
br label %17
17: ; preds = %15, %3
%18 = load i32, ptr %4, align 4
ret i32 %18
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @error(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/tmpazzzt28h.c'
source_filename = "/tmp/tmpazzzt28h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"\09\1B[1m-?%s--help \1B[m\0A\09\09Displays this help.\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"--help\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c", \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printExtendedUsage() #0 {
%1 = call i32 (...) @printUsage()
%2 = call i64 @strcmp(ptr noundef @.str.1, ptr noundef @.str.2)
%3 = icmp eq i64 %2, 0
%4 = zext i1 %3 to i64
%5 = select i1 %3, ptr @.str.1, ptr @.str.3
%6 = call i32 @printf(ptr noundef @.str, ptr noundef %5)
ret void
}
declare i32 @printUsage(...) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
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/tmpazzzt28h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"\09\1B[1m-?%s--help \1B[m\0A\09\09Displays this help.\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"--help\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c", \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printExtendedUsage() #0 {
%1 = call i32 (...) @printUsage()
%2 = call i64 @strcmp(ptr noundef @.str.1, ptr noundef @.str.2)
%3 = icmp eq i64 %2, 0
%4 = zext i1 %3 to i64
%5 = select i1 %3, ptr @.str.1, ptr @.str.3
%6 = call i32 @printf(ptr noundef @.str, ptr noundef %5)
ret void
}
declare i32 @printUsage(...) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
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/tmpgtxb5t8v.c'
source_filename = "/tmp/tmpgtxb5t8v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @testIndirection() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store i32 5, ptr %1, align 4
store i32 10, ptr %2, align 4
store ptr %1, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %8, align 4
%10 = icmp eq i32 %7, %9
%11 = zext i1 %10 to i32
%12 = call i32 @test(i32 noundef %11)
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %13, align 4
%15 = load i32, ptr %1, align 4
%16 = icmp eq i32 %14, %15
%17 = zext i1 %16 to i32
%18 = call i32 @test(i32 noundef %17)
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %19, align 4
%21 = load i32, ptr %2, align 4
%22 = icmp ne i32 %20, %21
%23 = zext i1 %22 to i32
%24 = call i32 @test(i32 noundef %23)
%25 = load i32, ptr %2, align 4
store i32 %25, ptr %1, align 4
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %26, align 4
%28 = load i32, ptr %2, align 4
%29 = icmp eq i32 %27, %28
%30 = zext i1 %29 to i32
%31 = call i32 @test(i32 noundef %30)
ret void
}
declare i32 @test(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgtxb5t8v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @testIndirection() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store i32 5, ptr %1, align 4
store i32 10, ptr %2, align 4
store ptr %1, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %8, align 4
%10 = icmp eq i32 %7, %9
%11 = zext i1 %10 to i32
%12 = call i32 @test(i32 noundef %11)
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %13, align 4
%15 = load i32, ptr %1, align 4
%16 = icmp eq i32 %14, %15
%17 = zext i1 %16 to i32
%18 = call i32 @test(i32 noundef %17)
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %19, align 4
%21 = load i32, ptr %2, align 4
%22 = icmp ne i32 %20, %21
%23 = zext i1 %22 to i32
%24 = call i32 @test(i32 noundef %23)
%25 = load i32, ptr %2, align 4
store i32 %25, ptr %1, align 4
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %26, align 4
%28 = load i32, ptr %2, align 4
%29 = icmp eq i32 %27, %28
%30 = zext i1 %29 to i32
%31 = call i32 @test(i32 noundef %30)
ret void
}
declare i32 @test(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptu4l6hxb.c'
source_filename = "/tmp/tmptu4l6hxb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ICPrintParents() #0 {
%1 = call i32 (...) @ICPrintMama()
%2 = call i32 (...) @ICPrintPapa()
ret void
}
declare i32 @ICPrintMama(...) #1
declare i32 @ICPrintPapa(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptu4l6hxb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ICPrintParents() #0 {
%1 = call i32 (...) @ICPrintMama()
%2 = call i32 (...) @ICPrintPapa()
ret void
}
declare i32 @ICPrintMama(...) #1
declare i32 @ICPrintPapa(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu8xvljg6.c'
source_filename = "/tmp/tmpu8xvljg6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @set_val(ptr noundef %0, i16 noundef zeroext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i16, align 2
store ptr %0, ptr %3, align 8
store i16 %1, ptr %4, align 2
%5 = load i16, ptr %4, align 2
store i16 %5, ptr %4, align 2
%6 = load ptr, ptr %3, align 8
%7 = call i32 @memcpy(ptr noundef %6, ptr noundef %4, i32 noundef 2)
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu8xvljg6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @set_val(ptr noundef %0, i16 noundef zeroext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i16, align 2
store ptr %0, ptr %3, align 8
store i16 %1, ptr %4, align 2
%5 = load i16, ptr %4, align 2
store i16 %5, ptr %4, align 2
%6 = load ptr, ptr %3, align 8
%7 = call i32 @memcpy(ptr noundef %6, ptr noundef %4, i32 noundef 2)
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp34etbuzk.c'
source_filename = "/tmp/tmp34etbuzk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AESDataReadNonBlocking(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load i64, ptr %4, align 8
%7 = add i64 %6, 80
%8 = inttoptr i64 %7 to ptr
%9 = load volatile i64, ptr %8, align 8
%10 = and i64 1, %9
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %2
store i32 0, ptr %3, align 4
br label %38
13: ; preds = %2
%14 = load i64, ptr %4, align 8
%15 = add i64 %14, 108
%16 = inttoptr i64 %15 to ptr
%17 = load volatile i64, ptr %16, align 8
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds i64, ptr %18, i64 0
store i64 %17, ptr %19, align 8
%20 = load i64, ptr %4, align 8
%21 = add i64 %20, 104
%22 = inttoptr i64 %21 to ptr
%23 = load volatile i64, ptr %22, align 8
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i64, ptr %24, i64 1
store i64 %23, ptr %25, align 8
%26 = load i64, ptr %4, align 8
%27 = add i64 %26, 100
%28 = inttoptr i64 %27 to ptr
%29 = load volatile i64, ptr %28, align 8
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds i64, ptr %30, i64 2
store i64 %29, ptr %31, align 8
%32 = load i64, ptr %4, align 8
%33 = add i64 %32, 96
%34 = inttoptr i64 %33 to ptr
%35 = load volatile i64, ptr %34, align 8
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds i64, ptr %36, i64 3
store i64 %35, ptr %37, align 8
store i32 1, ptr %3, align 4
br label %38
38: ; preds = %13, %12
%39 = load i32, ptr %3, align 4
ret i32 %39
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp34etbuzk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AESDataReadNonBlocking(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load i64, ptr %4, align 8
%7 = add i64 %6, 80
%8 = inttoptr i64 %7 to ptr
%9 = load volatile i64, ptr %8, align 8
%10 = and i64 1, %9
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %2
store i32 0, ptr %3, align 4
br label %38
13: ; preds = %2
%14 = load i64, ptr %4, align 8
%15 = add i64 %14, 108
%16 = inttoptr i64 %15 to ptr
%17 = load volatile i64, ptr %16, align 8
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds i64, ptr %18, i64 0
store i64 %17, ptr %19, align 8
%20 = load i64, ptr %4, align 8
%21 = add i64 %20, 104
%22 = inttoptr i64 %21 to ptr
%23 = load volatile i64, ptr %22, align 8
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i64, ptr %24, i64 1
store i64 %23, ptr %25, align 8
%26 = load i64, ptr %4, align 8
%27 = add i64 %26, 100
%28 = inttoptr i64 %27 to ptr
%29 = load volatile i64, ptr %28, align 8
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds i64, ptr %30, i64 2
store i64 %29, ptr %31, align 8
%32 = load i64, ptr %4, align 8
%33 = add i64 %32, 96
%34 = inttoptr i64 %33 to ptr
%35 = load volatile i64, ptr %34, align 8
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds i64, ptr %36, i64 3
store i64 %35, ptr %37, align 8
store i32 1, ptr %3, align 4
br label %38
38: ; preds = %13, %12
%39 = load i32, ptr %3, align 4
ret i32 %39
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwbmcgvtc.c'
source_filename = "/tmp/tmpwbmcgvtc.c"
target datalayout = "e-m:e-p270: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
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwbmcgvtc.c"
target datalayout = "e-m:e-p270: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
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr_869wtt.c'
source_filename = "/tmp/tmpr_869wtt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"cd\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Could not change directory\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@.str.3 = private unnamed_addr constant [40 x i8] c"Could not read %s environment variable\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_cd(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = getelementptr inbounds ptr, ptr %5, i64 0
%7 = load ptr, ptr %6, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %44
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 @strcmp(ptr noundef %12, ptr noundef @.str)
%14 = icmp ne i32 %13, 0
br i1 %14, label %44, label %15
15: ; preds = %9
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %29
20: ; preds = %15
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i32 @chdir(ptr noundef %23)
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %20
%27 = call i32 @perror(ptr noundef @.str.1)
br label %28
28: ; preds = %26, %20
br label %43
29: ; preds = %15
%30 = call ptr @getenv(ptr noundef @.str.2)
store ptr %30, ptr %4, align 8
%31 = load ptr, ptr %4, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %33, label %40
33: ; preds = %29
%34 = load ptr, ptr %4, align 8
%35 = call i32 @chdir(ptr noundef %34)
%36 = icmp eq i32 %35, -1
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 @perror(ptr noundef @.str.1)
br label %39
39: ; preds = %37, %33
br label %42
40: ; preds = %29
%41 = call i32 @printf(ptr noundef @.str.3, ptr noundef @.str.2)
br label %42
42: ; preds = %40, %39
br label %43
43: ; preds = %42, %28
store i32 1, ptr %2, align 4
br label %45
44: ; preds = %9, %1
store i32 0, ptr %2, align 4
br label %45
45: ; preds = %44, %43
%46 = load i32, ptr %2, align 4
ret i32 %46
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @getenv(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr_869wtt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"cd\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Could not change directory\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@.str.3 = private unnamed_addr constant [40 x i8] c"Could not read %s environment variable\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_cd(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = getelementptr inbounds ptr, ptr %5, i64 0
%7 = load ptr, ptr %6, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %44
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 @strcmp(ptr noundef %12, ptr noundef @.str)
%14 = icmp ne i32 %13, 0
br i1 %14, label %44, label %15
15: ; preds = %9
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %29
20: ; preds = %15
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i32 @chdir(ptr noundef %23)
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %20
%27 = call i32 @perror(ptr noundef @.str.1)
br label %28
28: ; preds = %26, %20
br label %43
29: ; preds = %15
%30 = call ptr @getenv(ptr noundef @.str.2)
store ptr %30, ptr %4, align 8
%31 = load ptr, ptr %4, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %33, label %40
33: ; preds = %29
%34 = load ptr, ptr %4, align 8
%35 = call i32 @chdir(ptr noundef %34)
%36 = icmp eq i32 %35, -1
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 @perror(ptr noundef @.str.1)
br label %39
39: ; preds = %37, %33
br label %42
40: ; preds = %29
%41 = call i32 @printf(ptr noundef @.str.3, ptr noundef @.str.2)
br label %42
42: ; preds = %40, %39
br label %43
43: ; preds = %42, %28
store i32 1, ptr %2, align 4
br label %45
44: ; preds = %9, %1
store i32 0, ptr %2, align 4
br label %45
45: ; preds = %44, %43
%46 = load i32, ptr %2, align 4
ret i32 %46
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @getenv(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"}
|
; ModuleID = '/tmp/tmp7g294smp.c'
source_filename = "/tmp/tmp7g294smp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @slaCc2s(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 double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds float, ptr %11, i64 0
%13 = load float, ptr %12, align 4
%14 = fpext float %13 to double
store double %14, ptr %7, align 8
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds float, ptr %15, i64 1
%17 = load float, ptr %16, align 4
%18 = fpext float %17 to double
store double %18, ptr %8, align 8
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds float, ptr %19, i64 2
%21 = load float, ptr %20, align 4
%22 = fpext float %21 to double
store double %22, ptr %9, align 8
%23 = load double, ptr %7, align 8
%24 = load double, ptr %7, align 8
%25 = load double, ptr %8, align 8
%26 = load double, ptr %8, align 8
%27 = fmul double %25, %26
%28 = call double @llvm.fmuladd.f64(double %23, double %24, double %27)
%29 = call double @sqrt(double noundef %28) #4
store double %29, ptr %10, align 8
%30 = load double, ptr %10, align 8
%31 = fcmp une double %30, 0.000000e+00
br i1 %31, label %32, label %37
32: ; preds = %3
%33 = load double, ptr %8, align 8
%34 = load double, ptr %7, align 8
%35 = call i64 @atan2(double noundef %33, double noundef %34)
%36 = sitofp i64 %35 to float
br label %38
37: ; preds = %3
br label %38
38: ; preds = %37, %32
%39 = phi float [ %36, %32 ], [ 0.000000e+00, %37 ]
%40 = load ptr, ptr %5, align 8
store float %39, ptr %40, align 4
%41 = load double, ptr %9, align 8
%42 = fcmp une double %41, 0.000000e+00
br i1 %42, label %43, label %48
43: ; preds = %38
%44 = load double, ptr %9, align 8
%45 = load double, ptr %10, align 8
%46 = call i64 @atan2(double noundef %44, double noundef %45)
%47 = sitofp i64 %46 to float
br label %49
48: ; preds = %38
br label %49
49: ; preds = %48, %43
%50 = phi float [ %47, %43 ], [ 0.000000e+00, %48 ]
%51 = load ptr, ptr %6, align 8
store float %50, ptr %51, align 4
ret void
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i64 @atan2(double noundef, double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7g294smp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @slaCc2s(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 double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds float, ptr %11, i64 0
%13 = load float, ptr %12, align 4
%14 = fpext float %13 to double
store double %14, ptr %7, align 8
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds float, ptr %15, i64 1
%17 = load float, ptr %16, align 4
%18 = fpext float %17 to double
store double %18, ptr %8, align 8
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds float, ptr %19, i64 2
%21 = load float, ptr %20, align 4
%22 = fpext float %21 to double
store double %22, ptr %9, align 8
%23 = load double, ptr %7, align 8
%24 = load double, ptr %7, align 8
%25 = load double, ptr %8, align 8
%26 = load double, ptr %8, align 8
%27 = fmul double %25, %26
%28 = call double @llvm.fmuladd.f64(double %23, double %24, double %27)
%29 = call double @sqrt(double noundef %28) #4
store double %29, ptr %10, align 8
%30 = load double, ptr %10, align 8
%31 = fcmp une double %30, 0.000000e+00
br i1 %31, label %32, label %37
32: ; preds = %3
%33 = load double, ptr %8, align 8
%34 = load double, ptr %7, align 8
%35 = call i64 @atan2(double noundef %33, double noundef %34)
%36 = sitofp i64 %35 to float
br label %38
37: ; preds = %3
br label %38
38: ; preds = %37, %32
%39 = phi float [ %36, %32 ], [ 0.000000e+00, %37 ]
%40 = load ptr, ptr %5, align 8
store float %39, ptr %40, align 4
%41 = load double, ptr %9, align 8
%42 = fcmp une double %41, 0.000000e+00
br i1 %42, label %43, label %48
43: ; preds = %38
%44 = load double, ptr %9, align 8
%45 = load double, ptr %10, align 8
%46 = call i64 @atan2(double noundef %44, double noundef %45)
%47 = sitofp i64 %46 to float
br label %49
48: ; preds = %38
br label %49
49: ; preds = %48, %43
%50 = phi float [ %47, %43 ], [ 0.000000e+00, %48 ]
%51 = load ptr, ptr %6, align 8
store float %50, ptr %51, align 4
ret void
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i64 @atan2(double noundef, double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2mu_2iox.c'
source_filename = "/tmp/tmp2mu_2iox.c"
target datalayout = "e-m:e-p270: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/tmp2mu_2iox.c"
target datalayout = "e-m:e-p270: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/tmp1y3anw4n.c'
source_filename = "/tmp/tmp1y3anw4n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/proc/%d/status\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"error_result\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parse_proc_status_val_by_tag(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [512 x i8], align 16
%10 = alloca [512 x i8], align 16
%11 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %8, align 4
%12 = getelementptr inbounds [512 x i8], ptr %10, i64 0, i64 0
%13 = load i32, ptr %4, align 4
%14 = call i32 @sprintf(ptr noundef %12, ptr noundef @.str, i32 noundef %13)
%15 = getelementptr inbounds [512 x i8], ptr %10, i64 0, i64 0
%16 = call ptr @fopen(ptr noundef %15, ptr noundef @.str.1)
store ptr %16, ptr %7, align 8
br label %17
17: ; preds = %56, %3
%18 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%19 = load ptr, ptr %7, align 8
%20 = call i64 @fgets(ptr noundef %18, i32 noundef 512, ptr noundef %19)
%21 = icmp sgt i64 %20, 0
br i1 %21, label %22, label %57
22: ; preds = %17
%23 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%24 = load ptr, ptr %5, align 8
%25 = load ptr, ptr %5, align 8
%26 = call i32 @strlen(ptr noundef %25)
%27 = call i64 @strncmp(ptr noundef %23, ptr noundef %24, i32 noundef %26)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %56
29: ; preds = %22
%30 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%31 = call i32 @strlen(ptr noundef %30)
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 %33
store i8 0, ptr %34, align 1
store i32 1, ptr %8, align 4
%35 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
store ptr %35, ptr %11, align 8
br label %36
36: ; preds = %49, %29
%37 = load ptr, ptr %11, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp sge i32 %39, 48
br i1 %40, label %41, label %46
41: ; preds = %36
%42 = load ptr, ptr %11, align 8
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp sle i32 %44, 57
br label %46
46: ; preds = %41, %36
%47 = phi i1 [ false, %36 ], [ %45, %41 ]
%48 = xor i1 %47, true
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = load ptr, ptr %11, align 8
%51 = getelementptr inbounds i8, ptr %50, i32 1
store ptr %51, ptr %11, align 8
br label %36, !llvm.loop !6
52: ; preds = %46
%53 = load ptr, ptr %6, align 8
%54 = load ptr, ptr %11, align 8
%55 = call i32 @strcpy(ptr noundef %53, ptr noundef %54)
br label %57
56: ; preds = %22
br label %17, !llvm.loop !8
57: ; preds = %52, %17
%58 = load ptr, ptr %7, align 8
%59 = call i32 @fclose(ptr noundef %58)
%60 = load i32, ptr %8, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %65, label %62
62: ; preds = %57
%63 = load ptr, ptr %6, align 8
%64 = call i32 @strcpy(ptr noundef %63, ptr noundef @.str.2)
br label %65
65: ; preds = %62, %57
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(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/tmp1y3anw4n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/proc/%d/status\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"error_result\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parse_proc_status_val_by_tag(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [512 x i8], align 16
%10 = alloca [512 x i8], align 16
%11 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %8, align 4
%12 = getelementptr inbounds [512 x i8], ptr %10, i64 0, i64 0
%13 = load i32, ptr %4, align 4
%14 = call i32 @sprintf(ptr noundef %12, ptr noundef @.str, i32 noundef %13)
%15 = getelementptr inbounds [512 x i8], ptr %10, i64 0, i64 0
%16 = call ptr @fopen(ptr noundef %15, ptr noundef @.str.1)
store ptr %16, ptr %7, align 8
%17 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%18 = load ptr, ptr %7, align 8
%19 = call i64 @fgets(ptr noundef %17, i32 noundef 512, ptr noundef %18)
%20 = icmp sgt i64 %19, 0
br i1 %20, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %25
21: ; preds = %25
%22 = load ptr, ptr %7, align 8
%23 = call i64 @fgets(ptr noundef %17, i32 noundef 512, ptr noundef %22)
%24 = icmp sgt i64 %23, 0
br i1 %24, label %25, label %..loopexit_crit_edge, !llvm.loop !6
25: ; preds = %.lr.ph, %21
%26 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%27 = load ptr, ptr %5, align 8
%28 = load ptr, ptr %5, align 8
%29 = call i32 @strlen(ptr noundef %28)
%30 = call i64 @strncmp(ptr noundef %26, ptr noundef %27, i32 noundef %29)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %21
32: ; preds = %25
%33 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%34 = call i32 @strlen(ptr noundef %33)
%35 = sub nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 %36
store i8 0, ptr %37, align 1
store i32 1, ptr %8, align 4
%38 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
store ptr %38, ptr %11, align 8
br label %39
39: ; preds = %52, %32
%40 = load ptr, ptr %11, align 8
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp sge i32 %42, 48
br i1 %43, label %44, label %49
44: ; preds = %39
%45 = load ptr, ptr %11, align 8
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp sle i32 %47, 57
br label %49
49: ; preds = %44, %39
%50 = phi i1 [ false, %39 ], [ %48, %44 ]
%51 = xor i1 %50, true
br i1 %51, label %52, label %55
52: ; preds = %49
%53 = load ptr, ptr %11, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %11, align 8
br label %39, !llvm.loop !8
55: ; preds = %49
%56 = load ptr, ptr %6, align 8
%57 = load ptr, ptr %11, align 8
%58 = call i32 @strcpy(ptr noundef %56, ptr noundef %57)
br label %59
..loopexit_crit_edge: ; preds = %21
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %59
59: ; preds = %.loopexit, %55
%60 = load ptr, ptr %7, align 8
%61 = call i32 @fclose(ptr noundef %60)
%62 = load i32, ptr %8, align 4
%63 = icmp ne i32 %62, 0
br i1 %63, label %67, label %64
64: ; preds = %59
%65 = load ptr, ptr %6, align 8
%66 = call i32 @strcpy(ptr noundef %65, ptr noundef @.str.2)
br label %67
67: ; preds = %64, %59
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(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/tmpfm5f3vsm.c'
source_filename = "/tmp/tmpfm5f3vsm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"../temp/test-h.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"Hello, World!\0A(fopen/fwrite/fclose)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %5, align 8
store ptr @.str.2, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = load ptr, ptr %5, align 8
%12 = call i32 @fwrite(ptr noundef %8, i32 noundef 1, i32 noundef %10, ptr noundef %11)
%13 = load ptr, ptr %5, align 8
%14 = call i32 @fclose(ptr noundef %13)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(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/tmpfm5f3vsm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"../temp/test-h.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"Hello, World!\0A(fopen/fwrite/fclose)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %5, align 8
store ptr @.str.2, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = load ptr, ptr %5, align 8
%12 = call i32 @fwrite(ptr noundef %8, i32 noundef 1, i32 noundef %10, ptr noundef %11)
%13 = load ptr, ptr %5, align 8
%14 = call i32 @fclose(ptr noundef %13)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(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/tmps2told9o.c'
source_filename = "/tmp/tmps2told9o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FLT_MAX = dso_local global x86_fp80 0xK00000000000000000000, align 16
@.str = private unnamed_addr constant [13 x i8] c"3.402823e+38\00", align 1
@FLT_MIN = dso_local global x86_fp80 0xK00000000000000000000, align 16
@.str.1 = private unnamed_addr constant [13 x i8] c"1.175494e-38\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_ldbltoa(x86_fp80 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca x86_fp80, align 16
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store x86_fp80 %0, ptr %3, align 16
store i32 0, ptr %5, align 4
%8 = load x86_fp80, ptr %3, align 16
%9 = load x86_fp80, ptr @FLT_MAX, align 16
%10 = fcmp oeq x86_fp80 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %1
store ptr @.str, ptr %2, align 8
br label %69
12: ; preds = %1
%13 = load x86_fp80, ptr %3, align 16
%14 = load x86_fp80, ptr @FLT_MIN, align 16
%15 = fcmp oeq x86_fp80 %13, %14
br i1 %15, label %16, label %17
16: ; preds = %12
store ptr @.str.1, ptr %2, align 8
br label %69
17: ; preds = %12
%18 = load x86_fp80, ptr %3, align 16
%19 = call ptr @ft_itoa(x86_fp80 noundef %18)
%20 = call ptr @ft_strjoin_frs1(ptr noundef %19, ptr noundef @.str.2)
store ptr %20, ptr %4, align 8
%21 = load x86_fp80, ptr %3, align 16
%22 = fptosi x86_fp80 %21 to i32
%23 = sitofp i32 %22 to x86_fp80
%24 = load x86_fp80, ptr %3, align 16
%25 = fsub x86_fp80 %24, %23
store x86_fp80 %25, ptr %3, align 16
%26 = load x86_fp80, ptr %3, align 16
%27 = fcmp olt x86_fp80 %26, 0xK00000000000000000000
br i1 %27, label %28, label %31
28: ; preds = %17
%29 = load x86_fp80, ptr %3, align 16
%30 = fneg x86_fp80 %29
store x86_fp80 %30, ptr %3, align 16
br label %32
31: ; preds = %17
br label %32
32: ; preds = %31, %28
%33 = phi x86_fp80 [ %30, %28 ], [ 0xK00000000000000000000, %31 ]
%34 = load x86_fp80, ptr %3, align 16
%35 = fmul x86_fp80 %34, 0xK4002A000000000000000
store x86_fp80 %35, ptr %3, align 16
store i32 0, ptr %7, align 4
br label %36
36: ; preds = %40, %32
%37 = load x86_fp80, ptr %3, align 16
%38 = fmul x86_fp80 %37, 0xK4002A000000000000000
%39 = fcmp une x86_fp80 %38, 0xK00000000000000000000
br i1 %39, label %40, label %55
40: ; preds = %36
%41 = load x86_fp80, ptr %3, align 16
%42 = fptosi x86_fp80 %41 to i32
store i32 %42, ptr %6, align 4
%43 = load ptr, ptr %4, align 8
%44 = load x86_fp80, ptr %3, align 16
%45 = call ptr @ft_itoa(x86_fp80 noundef %44)
%46 = call ptr @ft_strjoin_frs1(ptr noundef %43, ptr noundef %45)
store ptr %46, ptr %4, align 8
%47 = load i32, ptr %6, align 4
%48 = sitofp i32 %47 to x86_fp80
%49 = load x86_fp80, ptr %3, align 16
%50 = fsub x86_fp80 %49, %48
store x86_fp80 %50, ptr %3, align 16
%51 = load x86_fp80, ptr %3, align 16
%52 = fmul x86_fp80 %51, 0xK4002A000000000000000
store x86_fp80 %52, ptr %3, align 16
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %7, align 4
br label %36, !llvm.loop !6
55: ; preds = %36
%56 = load i32, ptr %7, align 4
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %65
58: ; preds = %55
%59 = load x86_fp80, ptr %3, align 16
%60 = fmul x86_fp80 %59, 0xK4002A000000000000000
%61 = fcmp oeq x86_fp80 %60, 0xK00000000000000000000
br i1 %61, label %62, label %65
62: ; preds = %58
%63 = load ptr, ptr %4, align 8
%64 = call ptr @ft_strjoin_frs1(ptr noundef %63, ptr noundef @.str.3)
store ptr %64, ptr %4, align 8
br label %66
65: ; preds = %58, %55
br label %66
66: ; preds = %65, %62
%67 = phi ptr [ %64, %62 ], [ null, %65 ]
%68 = load ptr, ptr %4, align 8
store ptr %68, ptr %2, align 8
br label %69
69: ; preds = %66, %16, %11
%70 = load ptr, ptr %2, align 8
ret ptr %70
}
declare ptr @ft_strjoin_frs1(ptr noundef, ptr noundef) #1
declare ptr @ft_itoa(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps2told9o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FLT_MAX = dso_local global x86_fp80 0xK00000000000000000000, align 16
@.str = private unnamed_addr constant [13 x i8] c"3.402823e+38\00", align 1
@FLT_MIN = dso_local global x86_fp80 0xK00000000000000000000, align 16
@.str.1 = private unnamed_addr constant [13 x i8] c"1.175494e-38\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_ldbltoa(x86_fp80 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca x86_fp80, align 16
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store x86_fp80 %0, ptr %3, align 16
store i32 0, ptr %5, align 4
%8 = load x86_fp80, ptr %3, align 16
%9 = load x86_fp80, ptr @FLT_MAX, align 16
%10 = fcmp oeq x86_fp80 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %1
store ptr @.str, ptr %2, align 8
br label %71
12: ; preds = %1
%13 = load x86_fp80, ptr %3, align 16
%14 = load x86_fp80, ptr @FLT_MIN, align 16
%15 = fcmp oeq x86_fp80 %13, %14
br i1 %15, label %16, label %17
16: ; preds = %12
store ptr @.str.1, ptr %2, align 8
br label %71
17: ; preds = %12
%18 = load x86_fp80, ptr %3, align 16
%19 = call ptr @ft_itoa(x86_fp80 noundef %18)
%20 = call ptr @ft_strjoin_frs1(ptr noundef %19, ptr noundef @.str.2)
store ptr %20, ptr %4, align 8
%21 = load x86_fp80, ptr %3, align 16
%22 = fptosi x86_fp80 %21 to i32
%23 = sitofp i32 %22 to x86_fp80
%24 = load x86_fp80, ptr %3, align 16
%25 = fsub x86_fp80 %24, %23
store x86_fp80 %25, ptr %3, align 16
%26 = load x86_fp80, ptr %3, align 16
%27 = fcmp olt x86_fp80 %26, 0xK00000000000000000000
br i1 %27, label %28, label %31
28: ; preds = %17
%29 = load x86_fp80, ptr %3, align 16
%30 = fneg x86_fp80 %29
store x86_fp80 %30, ptr %3, align 16
br label %32
31: ; preds = %17
br label %32
32: ; preds = %31, %28
%33 = phi x86_fp80 [ %30, %28 ], [ 0xK00000000000000000000, %31 ]
%34 = load x86_fp80, ptr %3, align 16
%35 = fmul x86_fp80 %34, 0xK4002A000000000000000
store x86_fp80 %35, ptr %3, align 16
store i32 0, ptr %7, align 4
%36 = load x86_fp80, ptr %3, align 16
%37 = fmul x86_fp80 %36, 0xK4002A000000000000000
%38 = fcmp une x86_fp80 %37, 0xK00000000000000000000
br i1 %38, label %.lr.ph, label %57
.lr.ph: ; preds = %32
br label %39
39: ; preds = %.lr.ph, %39
%40 = load x86_fp80, ptr %3, align 16
%41 = fptosi x86_fp80 %40 to i32
store i32 %41, ptr %6, align 4
%42 = load ptr, ptr %4, align 8
%43 = load x86_fp80, ptr %3, align 16
%44 = call ptr @ft_itoa(x86_fp80 noundef %43)
%45 = call ptr @ft_strjoin_frs1(ptr noundef %42, ptr noundef %44)
store ptr %45, ptr %4, align 8
%46 = load i32, ptr %6, align 4
%47 = sitofp i32 %46 to x86_fp80
%48 = load x86_fp80, ptr %3, align 16
%49 = fsub x86_fp80 %48, %47
store x86_fp80 %49, ptr %3, align 16
%50 = load x86_fp80, ptr %3, align 16
%51 = fmul x86_fp80 %50, 0xK4002A000000000000000
store x86_fp80 %51, ptr %3, align 16
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %7, align 4
%54 = load x86_fp80, ptr %3, align 16
%55 = fmul x86_fp80 %54, 0xK4002A000000000000000
%56 = fcmp une x86_fp80 %55, 0xK00000000000000000000
br i1 %56, label %39, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %57
57: ; preds = %._crit_edge, %32
%58 = load i32, ptr %7, align 4
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %67
60: ; preds = %57
%61 = load x86_fp80, ptr %3, align 16
%62 = fmul x86_fp80 %61, 0xK4002A000000000000000
%63 = fcmp oeq x86_fp80 %62, 0xK00000000000000000000
br i1 %63, label %64, label %67
64: ; preds = %60
%65 = load ptr, ptr %4, align 8
%66 = call ptr @ft_strjoin_frs1(ptr noundef %65, ptr noundef @.str.3)
store ptr %66, ptr %4, align 8
br label %68
67: ; preds = %60, %57
br label %68
68: ; preds = %67, %64
%69 = phi ptr [ %66, %64 ], [ null, %67 ]
%70 = load ptr, ptr %4, align 8
store ptr %70, ptr %2, align 8
br label %71
71: ; preds = %68, %16, %11
%72 = load ptr, ptr %2, align 8
ret ptr %72
}
declare ptr @ft_strjoin_frs1(ptr noundef, ptr noundef) #1
declare ptr @ft_itoa(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_ah65976.c'
source_filename = "/tmp/tmp_ah65976.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@bgrat.bm1 = internal global double 0.000000e+00, align 8
@bgrat.bp2n = internal global double 0.000000e+00, align 8
@bgrat.cn = internal global double 0.000000e+00, align 8
@bgrat.coef = internal global double 0.000000e+00, align 8
@bgrat.dj = internal global double 0.000000e+00, align 8
@bgrat.j = internal global double 0.000000e+00, align 8
@bgrat.l = internal global double 0.000000e+00, align 8
@bgrat.lnx = internal global double 0.000000e+00, align 8
@bgrat.n2 = internal global double 0.000000e+00, align 8
@bgrat.nu = internal global double 0.000000e+00, align 8
@bgrat.p = internal global double 0.000000e+00, align 8
@bgrat.q = internal global double 0.000000e+00, align 8
@bgrat.r = internal global double 0.000000e+00, align 8
@bgrat.s = internal global double 0.000000e+00, align 8
@bgrat.sum = internal global double 0.000000e+00, align 8
@bgrat.t = internal global double 0.000000e+00, align 8
@bgrat.t2 = internal global double 0.000000e+00, align 8
@bgrat.u = internal global double 0.000000e+00, align 8
@bgrat.v = internal global double 0.000000e+00, align 8
@bgrat.z = internal global double 0.000000e+00, align 8
@bgrat.i = internal global i32 0, align 4
@bgrat.n = internal global i32 0, align 4
@bgrat.nm1 = internal global i32 0, align 4
@bgrat.c = internal global [30 x double] zeroinitializer, align 16
@bgrat.d = internal global [30 x double] zeroinitializer, align 16
@bgrat.T1 = internal global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bgrat(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
%15 = load ptr, ptr %9, align 8
%16 = load double, ptr %15, align 8
%17 = fsub double %16, 5.000000e-01
%18 = fsub double %17, 5.000000e-01
store double %18, ptr @bgrat.bm1, align 8
%19 = load ptr, ptr %8, align 8
%20 = load double, ptr %19, align 8
%21 = load double, ptr @bgrat.bm1, align 8
%22 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %21, double %20)
store double %22, ptr @bgrat.nu, align 8
%23 = load ptr, ptr %11, align 8
%24 = load double, ptr %23, align 8
%25 = fcmp ogt double %24, 3.750000e-01
br i1 %25, label %26, label %27
26: ; preds = %7
br label %32
27: ; preds = %7
%28 = load ptr, ptr %11, align 8
%29 = load double, ptr %28, align 8
%30 = fneg double %29
store double %30, ptr @bgrat.T1, align 8
%31 = call double @alnrel(ptr noundef @bgrat.T1)
store double %31, ptr @bgrat.lnx, align 8
br label %36
32: ; preds = %26
%33 = load ptr, ptr %10, align 8
%34 = load double, ptr %33, align 8
%35 = call double @log(double noundef %34) #4
store double %35, ptr @bgrat.lnx, align 8
br label %36
36: ; preds = %32, %27
%37 = load double, ptr @bgrat.nu, align 8
%38 = load double, ptr @bgrat.lnx, align 8
%39 = fmul double %37, %38
%40 = fneg double %39
store double %40, ptr @bgrat.z, align 8
%41 = load ptr, ptr %9, align 8
%42 = load double, ptr %41, align 8
%43 = load double, ptr @bgrat.z, align 8
%44 = fmul double %42, %43
%45 = fcmp oeq double %44, 0.000000e+00
br i1 %45, label %46, label %47
46: ; preds = %36
br label %236
47: ; preds = %36
%48 = load ptr, ptr %9, align 8
%49 = load double, ptr %48, align 8
%50 = load ptr, ptr %9, align 8
%51 = call double @gam1(ptr noundef %50)
%52 = fadd double 1.000000e+00, %51
%53 = fmul double %49, %52
%54 = load ptr, ptr %9, align 8
%55 = load double, ptr %54, align 8
%56 = load double, ptr @bgrat.z, align 8
%57 = call double @log(double noundef %56) #4
%58 = fmul double %55, %57
%59 = call double @exp(double noundef %58) #4
%60 = fmul double %53, %59
store double %60, ptr @bgrat.r, align 8
%61 = load ptr, ptr %8, align 8
%62 = load double, ptr %61, align 8
%63 = load double, ptr @bgrat.lnx, align 8
%64 = fmul double %62, %63
%65 = call double @exp(double noundef %64) #4
%66 = load double, ptr @bgrat.bm1, align 8
%67 = fmul double 5.000000e-01, %66
%68 = load double, ptr @bgrat.lnx, align 8
%69 = fmul double %67, %68
%70 = call double @exp(double noundef %69) #4
%71 = fmul double %65, %70
%72 = load double, ptr @bgrat.r, align 8
%73 = fmul double %72, %71
store double %73, ptr @bgrat.r, align 8
%74 = load ptr, ptr %9, align 8
%75 = load ptr, ptr %8, align 8
%76 = call double @algdiv(ptr noundef %74, ptr noundef %75)
%77 = load ptr, ptr %9, align 8
%78 = load double, ptr %77, align 8
%79 = load double, ptr @bgrat.nu, align 8
%80 = call double @log(double noundef %79) #4
%81 = call double @llvm.fmuladd.f64(double %78, double %80, double %76)
store double %81, ptr @bgrat.u, align 8
%82 = load double, ptr @bgrat.r, align 8
%83 = load double, ptr @bgrat.u, align 8
%84 = fneg double %83
%85 = call double @exp(double noundef %84) #4
%86 = fmul double %82, %85
store double %86, ptr @bgrat.u, align 8
%87 = load double, ptr @bgrat.u, align 8
%88 = fcmp oeq double %87, 0.000000e+00
br i1 %88, label %89, label %90
89: ; preds = %47
br label %236
90: ; preds = %47
%91 = load ptr, ptr %9, align 8
%92 = load ptr, ptr %13, align 8
%93 = call i32 @grat1(ptr noundef %91, ptr noundef @bgrat.z, ptr noundef @bgrat.r, ptr noundef @bgrat.p, ptr noundef @bgrat.q, ptr noundef %92)
%94 = load double, ptr @bgrat.nu, align 8
%95 = fdiv double 1.000000e+00, %94
%96 = call double @pow(double noundef %95, double noundef 2.000000e+00) #4
%97 = fmul double 2.500000e-01, %96
store double %97, ptr @bgrat.v, align 8
%98 = load double, ptr @bgrat.lnx, align 8
%99 = fmul double 2.500000e-01, %98
%100 = load double, ptr @bgrat.lnx, align 8
%101 = fmul double %99, %100
store double %101, ptr @bgrat.t2, align 8
%102 = load ptr, ptr %12, align 8
%103 = load double, ptr %102, align 8
%104 = load double, ptr @bgrat.u, align 8
%105 = fdiv double %103, %104
store double %105, ptr @bgrat.l, align 8
%106 = load double, ptr @bgrat.q, align 8
%107 = load double, ptr @bgrat.r, align 8
%108 = fdiv double %106, %107
store double %108, ptr @bgrat.j, align 8
%109 = load double, ptr @bgrat.j, align 8
store double %109, ptr @bgrat.sum, align 8
store double 1.000000e+00, ptr @bgrat.cn, align 8
store double 1.000000e+00, ptr @bgrat.t, align 8
store double 0.000000e+00, ptr @bgrat.n2, align 8
store i32 1, ptr @bgrat.n, align 4
br label %110
110: ; preds = %225, %90
%111 = load i32, ptr @bgrat.n, align 4
%112 = icmp sle i32 %111, 30
br i1 %112, label %113, label %228
113: ; preds = %110
%114 = load ptr, ptr %9, align 8
%115 = load double, ptr %114, align 8
%116 = load double, ptr @bgrat.n2, align 8
%117 = fadd double %115, %116
store double %117, ptr @bgrat.bp2n, align 8
%118 = load double, ptr @bgrat.bp2n, align 8
%119 = load double, ptr @bgrat.bp2n, align 8
%120 = fadd double %119, 1.000000e+00
%121 = fmul double %118, %120
%122 = load double, ptr @bgrat.j, align 8
%123 = load double, ptr @bgrat.z, align 8
%124 = load double, ptr @bgrat.bp2n, align 8
%125 = fadd double %123, %124
%126 = fadd double %125, 1.000000e+00
%127 = load double, ptr @bgrat.t, align 8
%128 = fmul double %126, %127
%129 = call double @llvm.fmuladd.f64(double %121, double %122, double %128)
%130 = load double, ptr @bgrat.v, align 8
%131 = fmul double %129, %130
store double %131, ptr @bgrat.j, align 8
%132 = load double, ptr @bgrat.n2, align 8
%133 = fadd double %132, 2.000000e+00
store double %133, ptr @bgrat.n2, align 8
%134 = load double, ptr @bgrat.t2, align 8
%135 = load double, ptr @bgrat.t, align 8
%136 = fmul double %135, %134
store double %136, ptr @bgrat.t, align 8
%137 = load double, ptr @bgrat.n2, align 8
%138 = load double, ptr @bgrat.n2, align 8
%139 = fadd double %138, 1.000000e+00
%140 = fmul double %137, %139
%141 = load double, ptr @bgrat.cn, align 8
%142 = fdiv double %141, %140
store double %142, ptr @bgrat.cn, align 8
%143 = load double, ptr @bgrat.cn, align 8
%144 = load i32, ptr @bgrat.n, align 4
%145 = sub nsw i32 %144, 1
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [30 x double], ptr @bgrat.c, i64 0, i64 %146
store double %143, ptr %147, align 8
store double 0.000000e+00, ptr @bgrat.s, align 8
%148 = load i32, ptr @bgrat.n, align 4
%149 = icmp eq i32 %148, 1
br i1 %149, label %150, label %151
150: ; preds = %113
br label %188
151: ; preds = %113
%152 = load i32, ptr @bgrat.n, align 4
%153 = sub nsw i32 %152, 1
store i32 %153, ptr @bgrat.nm1, align 4
%154 = load ptr, ptr %9, align 8
%155 = load double, ptr %154, align 8
%156 = load i32, ptr @bgrat.n, align 4
%157 = sitofp i32 %156 to double
%158 = fsub double %155, %157
store double %158, ptr @bgrat.coef, align 8
store i32 1, ptr @bgrat.i, align 4
br label %159
159: ; preds = %184, %151
%160 = load i32, ptr @bgrat.i, align 4
%161 = load i32, ptr @bgrat.nm1, align 4
%162 = icmp sle i32 %160, %161
br i1 %162, label %163, label %187
163: ; preds = %159
%164 = load double, ptr @bgrat.coef, align 8
%165 = load i32, ptr @bgrat.i, align 4
%166 = sub nsw i32 %165, 1
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds [30 x double], ptr @bgrat.c, i64 0, i64 %167
%169 = load double, ptr %168, align 8
%170 = fmul double %164, %169
%171 = load i32, ptr @bgrat.n, align 4
%172 = load i32, ptr @bgrat.i, align 4
%173 = sub nsw i32 %171, %172
%174 = sub nsw i32 %173, 1
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds [30 x double], ptr @bgrat.d, i64 0, i64 %175
%177 = load double, ptr %176, align 8
%178 = load double, ptr @bgrat.s, align 8
%179 = call double @llvm.fmuladd.f64(double %170, double %177, double %178)
store double %179, ptr @bgrat.s, align 8
%180 = load ptr, ptr %9, align 8
%181 = load double, ptr %180, align 8
%182 = load double, ptr @bgrat.coef, align 8
%183 = fadd double %182, %181
store double %183, ptr @bgrat.coef, align 8
br label %184
184: ; preds = %163
%185 = load i32, ptr @bgrat.i, align 4
%186 = add nsw i32 %185, 1
store i32 %186, ptr @bgrat.i, align 4
br label %159, !llvm.loop !6
187: ; preds = %159
br label %188
188: ; preds = %187, %150
%189 = load double, ptr @bgrat.bm1, align 8
%190 = load double, ptr @bgrat.cn, align 8
%191 = load double, ptr @bgrat.s, align 8
%192 = load i32, ptr @bgrat.n, align 4
%193 = sitofp i32 %192 to double
%194 = fdiv double %191, %193
%195 = call double @llvm.fmuladd.f64(double %189, double %190, double %194)
%196 = load i32, ptr @bgrat.n, align 4
%197 = sub nsw i32 %196, 1
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds [30 x double], ptr @bgrat.d, i64 0, i64 %198
store double %195, ptr %199, align 8
%200 = load i32, ptr @bgrat.n, align 4
%201 = sub nsw i32 %200, 1
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds [30 x double], ptr @bgrat.d, i64 0, i64 %202
%204 = load double, ptr %203, align 8
%205 = load double, ptr @bgrat.j, align 8
%206 = fmul double %204, %205
store double %206, ptr @bgrat.dj, align 8
%207 = load double, ptr @bgrat.dj, align 8
%208 = load double, ptr @bgrat.sum, align 8
%209 = fadd double %208, %207
store double %209, ptr @bgrat.sum, align 8
%210 = load double, ptr @bgrat.sum, align 8
%211 = fcmp ole double %210, 0.000000e+00
br i1 %211, label %212, label %213
212: ; preds = %188
br label %236
213: ; preds = %188
%214 = load double, ptr @bgrat.dj, align 8
%215 = call double @llvm.fabs.f64(double %214)
%216 = load ptr, ptr %13, align 8
%217 = load double, ptr %216, align 8
%218 = load double, ptr @bgrat.sum, align 8
%219 = load double, ptr @bgrat.l, align 8
%220 = fadd double %218, %219
%221 = fmul double %217, %220
%222 = fcmp ole double %215, %221
br i1 %222, label %223, label %224
223: ; preds = %213
br label %229
224: ; preds = %213
br label %225
225: ; preds = %224
%226 = load i32, ptr @bgrat.n, align 4
%227 = add nsw i32 %226, 1
store i32 %227, ptr @bgrat.n, align 4
br label %110, !llvm.loop !8
228: ; preds = %110
br label %229
229: ; preds = %228, %223
%230 = load ptr, ptr %14, align 8
store i32 0, ptr %230, align 4
%231 = load double, ptr @bgrat.u, align 8
%232 = load double, ptr @bgrat.sum, align 8
%233 = load ptr, ptr %12, align 8
%234 = load double, ptr %233, align 8
%235 = call double @llvm.fmuladd.f64(double %231, double %232, double %234)
store double %235, ptr %233, align 8
br label %238
236: ; preds = %212, %89, %46
%237 = load ptr, ptr %14, align 8
store i32 1, ptr %237, align 4
br label %238
238: ; preds = %236, %229
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare double @alnrel(ptr noundef) #2
; Function Attrs: nounwind
declare double @log(double noundef) #3
declare double @gam1(ptr noundef) #2
; Function Attrs: nounwind
declare double @exp(double noundef) #3
declare double @algdiv(ptr noundef, ptr noundef) #2
declare i32 @grat1(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ah65976.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@bgrat.bm1 = internal global double 0.000000e+00, align 8
@bgrat.bp2n = internal global double 0.000000e+00, align 8
@bgrat.cn = internal global double 0.000000e+00, align 8
@bgrat.coef = internal global double 0.000000e+00, align 8
@bgrat.dj = internal global double 0.000000e+00, align 8
@bgrat.j = internal global double 0.000000e+00, align 8
@bgrat.l = internal global double 0.000000e+00, align 8
@bgrat.lnx = internal global double 0.000000e+00, align 8
@bgrat.n2 = internal global double 0.000000e+00, align 8
@bgrat.nu = internal global double 0.000000e+00, align 8
@bgrat.p = internal global double 0.000000e+00, align 8
@bgrat.q = internal global double 0.000000e+00, align 8
@bgrat.r = internal global double 0.000000e+00, align 8
@bgrat.s = internal global double 0.000000e+00, align 8
@bgrat.sum = internal global double 0.000000e+00, align 8
@bgrat.t = internal global double 0.000000e+00, align 8
@bgrat.t2 = internal global double 0.000000e+00, align 8
@bgrat.u = internal global double 0.000000e+00, align 8
@bgrat.v = internal global double 0.000000e+00, align 8
@bgrat.z = internal global double 0.000000e+00, align 8
@bgrat.i = internal global i32 0, align 4
@bgrat.n = internal global i32 0, align 4
@bgrat.nm1 = internal global i32 0, align 4
@bgrat.c = internal global [30 x double] zeroinitializer, align 16
@bgrat.d = internal global [30 x double] zeroinitializer, align 16
@bgrat.T1 = internal global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bgrat(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
%15 = load ptr, ptr %9, align 8
%16 = load double, ptr %15, align 8
%17 = fsub double %16, 5.000000e-01
%18 = fsub double %17, 5.000000e-01
store double %18, ptr @bgrat.bm1, align 8
%19 = load ptr, ptr %8, align 8
%20 = load double, ptr %19, align 8
%21 = load double, ptr @bgrat.bm1, align 8
%22 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %21, double %20)
store double %22, ptr @bgrat.nu, align 8
%23 = load ptr, ptr %11, align 8
%24 = load double, ptr %23, align 8
%25 = fcmp ogt double %24, 3.750000e-01
br i1 %25, label %26, label %27
26: ; preds = %7
br label %32
27: ; preds = %7
%28 = load ptr, ptr %11, align 8
%29 = load double, ptr %28, align 8
%30 = fneg double %29
store double %30, ptr @bgrat.T1, align 8
%31 = call double @alnrel(ptr noundef @bgrat.T1)
store double %31, ptr @bgrat.lnx, align 8
br label %36
32: ; preds = %26
%33 = load ptr, ptr %10, align 8
%34 = load double, ptr %33, align 8
%35 = call double @log(double noundef %34) #4
store double %35, ptr @bgrat.lnx, align 8
br label %36
36: ; preds = %32, %27
%37 = load double, ptr @bgrat.nu, align 8
%38 = load double, ptr @bgrat.lnx, align 8
%39 = fmul double %37, %38
%40 = fneg double %39
store double %40, ptr @bgrat.z, align 8
%41 = load ptr, ptr %9, align 8
%42 = load double, ptr %41, align 8
%43 = load double, ptr @bgrat.z, align 8
%44 = fmul double %42, %43
%45 = fcmp oeq double %44, 0.000000e+00
br i1 %45, label %46, label %47
46: ; preds = %36
br label %239
47: ; preds = %36
%48 = load ptr, ptr %9, align 8
%49 = load double, ptr %48, align 8
%50 = load ptr, ptr %9, align 8
%51 = call double @gam1(ptr noundef %50)
%52 = fadd double 1.000000e+00, %51
%53 = fmul double %49, %52
%54 = load ptr, ptr %9, align 8
%55 = load double, ptr %54, align 8
%56 = load double, ptr @bgrat.z, align 8
%57 = call double @log(double noundef %56) #4
%58 = fmul double %55, %57
%59 = call double @exp(double noundef %58) #4
%60 = fmul double %53, %59
store double %60, ptr @bgrat.r, align 8
%61 = load ptr, ptr %8, align 8
%62 = load double, ptr %61, align 8
%63 = load double, ptr @bgrat.lnx, align 8
%64 = fmul double %62, %63
%65 = call double @exp(double noundef %64) #4
%66 = load double, ptr @bgrat.bm1, align 8
%67 = fmul double 5.000000e-01, %66
%68 = load double, ptr @bgrat.lnx, align 8
%69 = fmul double %67, %68
%70 = call double @exp(double noundef %69) #4
%71 = fmul double %65, %70
%72 = load double, ptr @bgrat.r, align 8
%73 = fmul double %72, %71
store double %73, ptr @bgrat.r, align 8
%74 = load ptr, ptr %9, align 8
%75 = load ptr, ptr %8, align 8
%76 = call double @algdiv(ptr noundef %74, ptr noundef %75)
%77 = load ptr, ptr %9, align 8
%78 = load double, ptr %77, align 8
%79 = load double, ptr @bgrat.nu, align 8
%80 = call double @log(double noundef %79) #4
%81 = call double @llvm.fmuladd.f64(double %78, double %80, double %76)
store double %81, ptr @bgrat.u, align 8
%82 = load double, ptr @bgrat.r, align 8
%83 = load double, ptr @bgrat.u, align 8
%84 = fneg double %83
%85 = call double @exp(double noundef %84) #4
%86 = fmul double %82, %85
store double %86, ptr @bgrat.u, align 8
%87 = load double, ptr @bgrat.u, align 8
%88 = fcmp oeq double %87, 0.000000e+00
br i1 %88, label %89, label %90
89: ; preds = %47
br label %239
90: ; preds = %47
%91 = load ptr, ptr %9, align 8
%92 = load ptr, ptr %13, align 8
%93 = call i32 @grat1(ptr noundef %91, ptr noundef @bgrat.z, ptr noundef @bgrat.r, ptr noundef @bgrat.p, ptr noundef @bgrat.q, ptr noundef %92)
%94 = load double, ptr @bgrat.nu, align 8
%95 = fdiv double 1.000000e+00, %94
%96 = call double @pow(double noundef %95, double noundef 2.000000e+00) #4
%97 = fmul double 2.500000e-01, %96
store double %97, ptr @bgrat.v, align 8
%98 = load double, ptr @bgrat.lnx, align 8
%99 = fmul double 2.500000e-01, %98
%100 = load double, ptr @bgrat.lnx, align 8
%101 = fmul double %99, %100
store double %101, ptr @bgrat.t2, align 8
%102 = load ptr, ptr %12, align 8
%103 = load double, ptr %102, align 8
%104 = load double, ptr @bgrat.u, align 8
%105 = fdiv double %103, %104
store double %105, ptr @bgrat.l, align 8
%106 = load double, ptr @bgrat.q, align 8
%107 = load double, ptr @bgrat.r, align 8
%108 = fdiv double %106, %107
store double %108, ptr @bgrat.j, align 8
%109 = load double, ptr @bgrat.j, align 8
store double %109, ptr @bgrat.sum, align 8
store double 1.000000e+00, ptr @bgrat.cn, align 8
store double 1.000000e+00, ptr @bgrat.t, align 8
store double 0.000000e+00, ptr @bgrat.n2, align 8
store i32 1, ptr @bgrat.n, align 4
%110 = load i32, ptr @bgrat.n, align 4
%111 = icmp sle i32 %110, 30
br i1 %111, label %.lr.ph2, label %231
.lr.ph2: ; preds = %90
br label %112
112: ; preds = %.lr.ph2, %226
%113 = load ptr, ptr %9, align 8
%114 = load double, ptr %113, align 8
%115 = load double, ptr @bgrat.n2, align 8
%116 = fadd double %114, %115
store double %116, ptr @bgrat.bp2n, align 8
%117 = load double, ptr @bgrat.bp2n, align 8
%118 = load double, ptr @bgrat.bp2n, align 8
%119 = fadd double %118, 1.000000e+00
%120 = fmul double %117, %119
%121 = load double, ptr @bgrat.j, align 8
%122 = load double, ptr @bgrat.z, align 8
%123 = load double, ptr @bgrat.bp2n, align 8
%124 = fadd double %122, %123
%125 = fadd double %124, 1.000000e+00
%126 = load double, ptr @bgrat.t, align 8
%127 = fmul double %125, %126
%128 = call double @llvm.fmuladd.f64(double %120, double %121, double %127)
%129 = load double, ptr @bgrat.v, align 8
%130 = fmul double %128, %129
store double %130, ptr @bgrat.j, align 8
%131 = load double, ptr @bgrat.n2, align 8
%132 = fadd double %131, 2.000000e+00
store double %132, ptr @bgrat.n2, align 8
%133 = load double, ptr @bgrat.t2, align 8
%134 = load double, ptr @bgrat.t, align 8
%135 = fmul double %134, %133
store double %135, ptr @bgrat.t, align 8
%136 = load double, ptr @bgrat.n2, align 8
%137 = load double, ptr @bgrat.n2, align 8
%138 = fadd double %137, 1.000000e+00
%139 = fmul double %136, %138
%140 = load double, ptr @bgrat.cn, align 8
%141 = fdiv double %140, %139
store double %141, ptr @bgrat.cn, align 8
%142 = load double, ptr @bgrat.cn, align 8
%143 = load i32, ptr @bgrat.n, align 4
%144 = sub nsw i32 %143, 1
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds [30 x double], ptr @bgrat.c, i64 0, i64 %145
store double %142, ptr %146, align 8
store double 0.000000e+00, ptr @bgrat.s, align 8
%147 = load i32, ptr @bgrat.n, align 4
%148 = icmp eq i32 %147, 1
br i1 %148, label %149, label %150
149: ; preds = %112
br label %189
150: ; preds = %112
%151 = load i32, ptr @bgrat.n, align 4
%152 = sub nsw i32 %151, 1
store i32 %152, ptr @bgrat.nm1, align 4
%153 = load ptr, ptr %9, align 8
%154 = load double, ptr %153, align 8
%155 = load i32, ptr @bgrat.n, align 4
%156 = sitofp i32 %155 to double
%157 = fsub double %154, %156
store double %157, ptr @bgrat.coef, align 8
store i32 1, ptr @bgrat.i, align 4
%158 = load i32, ptr @bgrat.i, align 4
%159 = load i32, ptr @bgrat.nm1, align 4
%160 = icmp sle i32 %158, %159
br i1 %160, label %.lr.ph, label %188
.lr.ph: ; preds = %150
br label %161
161: ; preds = %.lr.ph, %182
%162 = load double, ptr @bgrat.coef, align 8
%163 = load i32, ptr @bgrat.i, align 4
%164 = sub nsw i32 %163, 1
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [30 x double], ptr @bgrat.c, i64 0, i64 %165
%167 = load double, ptr %166, align 8
%168 = fmul double %162, %167
%169 = load i32, ptr @bgrat.n, align 4
%170 = load i32, ptr @bgrat.i, align 4
%171 = sub nsw i32 %169, %170
%172 = sub nsw i32 %171, 1
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds [30 x double], ptr @bgrat.d, i64 0, i64 %173
%175 = load double, ptr %174, align 8
%176 = load double, ptr @bgrat.s, align 8
%177 = call double @llvm.fmuladd.f64(double %168, double %175, double %176)
store double %177, ptr @bgrat.s, align 8
%178 = load ptr, ptr %9, align 8
%179 = load double, ptr %178, align 8
%180 = load double, ptr @bgrat.coef, align 8
%181 = fadd double %180, %179
store double %181, ptr @bgrat.coef, align 8
br label %182
182: ; preds = %161
%183 = load i32, ptr @bgrat.i, align 4
%184 = add nsw i32 %183, 1
store i32 %184, ptr @bgrat.i, align 4
%185 = load i32, ptr @bgrat.i, align 4
%186 = load i32, ptr @bgrat.nm1, align 4
%187 = icmp sle i32 %185, %186
br i1 %187, label %161, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %182
br label %188
188: ; preds = %._crit_edge, %150
br label %189
189: ; preds = %188, %149
%190 = load double, ptr @bgrat.bm1, align 8
%191 = load double, ptr @bgrat.cn, align 8
%192 = load double, ptr @bgrat.s, align 8
%193 = load i32, ptr @bgrat.n, align 4
%194 = sitofp i32 %193 to double
%195 = fdiv double %192, %194
%196 = call double @llvm.fmuladd.f64(double %190, double %191, double %195)
%197 = load i32, ptr @bgrat.n, align 4
%198 = sub nsw i32 %197, 1
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds [30 x double], ptr @bgrat.d, i64 0, i64 %199
store double %196, ptr %200, align 8
%201 = load i32, ptr @bgrat.n, align 4
%202 = sub nsw i32 %201, 1
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds [30 x double], ptr @bgrat.d, i64 0, i64 %203
%205 = load double, ptr %204, align 8
%206 = load double, ptr @bgrat.j, align 8
%207 = fmul double %205, %206
store double %207, ptr @bgrat.dj, align 8
%208 = load double, ptr @bgrat.dj, align 8
%209 = load double, ptr @bgrat.sum, align 8
%210 = fadd double %209, %208
store double %210, ptr @bgrat.sum, align 8
%211 = load double, ptr @bgrat.sum, align 8
%212 = fcmp ole double %211, 0.000000e+00
br i1 %212, label %213, label %214
213: ; preds = %189
br label %239
214: ; preds = %189
%215 = load double, ptr @bgrat.dj, align 8
%216 = call double @llvm.fabs.f64(double %215)
%217 = load ptr, ptr %13, align 8
%218 = load double, ptr %217, align 8
%219 = load double, ptr @bgrat.sum, align 8
%220 = load double, ptr @bgrat.l, align 8
%221 = fadd double %219, %220
%222 = fmul double %218, %221
%223 = fcmp ole double %216, %222
br i1 %223, label %224, label %225
224: ; preds = %214
br label %232
225: ; preds = %214
br label %226
226: ; preds = %225
%227 = load i32, ptr @bgrat.n, align 4
%228 = add nsw i32 %227, 1
store i32 %228, ptr @bgrat.n, align 4
%229 = load i32, ptr @bgrat.n, align 4
%230 = icmp sle i32 %229, 30
br i1 %230, label %112, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %226
br label %231
231: ; preds = %._crit_edge3, %90
br label %232
232: ; preds = %231, %224
%233 = load ptr, ptr %14, align 8
store i32 0, ptr %233, align 4
%234 = load double, ptr @bgrat.u, align 8
%235 = load double, ptr @bgrat.sum, align 8
%236 = load ptr, ptr %12, align 8
%237 = load double, ptr %236, align 8
%238 = call double @llvm.fmuladd.f64(double %234, double %235, double %237)
store double %238, ptr %236, align 8
br label %241
239: ; preds = %213, %89, %46
%240 = load ptr, ptr %14, align 8
store i32 1, ptr %240, align 4
br label %241
241: ; preds = %239, %232
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare double @alnrel(ptr noundef) #2
; Function Attrs: nounwind
declare double @log(double noundef) #3
declare double @gam1(ptr noundef) #2
; Function Attrs: nounwind
declare double @exp(double noundef) #3
declare double @algdiv(ptr noundef, ptr noundef) #2
declare i32 @grat1(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpcxfls5e0.c'
source_filename = "/tmp/tmpcxfls5e0.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcxfls5e0.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx_qrk9og.c'
source_filename = "/tmp/tmpx_qrk9og.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [59 x i8] c"\0A*******************************************************\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"\0AProgram: distcalc -- \00", align 1
@.str.2 = private unnamed_addr constant [51 x i8] c"Calculates offsets between pairs of coordinates.\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"Usage: distcalc -i\0A\00", align 1
@.str.4 = private unnamed_addr constant [45 x i8] c" distcalc -c input_file [output_file]\0A\00", align 1
@.str.5 = private unnamed_addr constant [46 x i8] c" distcalc -p input_file [output_file]\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [66 x i8] c"Note that the output filename is optional for both the -c and -p \00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"options.\0A\0A\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"OPTIONS:\0A\00", align 1
@.str.9 = private unnamed_addr constant [26 x i8] c" -i Interactive mode.\0A\0A\00", align 1
@.str.10 = private unnamed_addr constant [65 x i8] c" -c Compute a set of offsets from a given CENTRAL position in\0A\00", align 1
@.str.11 = private unnamed_addr constant [65 x i8] c" batch mode. For this option, the first line of the input\0A\00", align 1
@.str.12 = private unnamed_addr constant [62 x i8] c" file contains the position of the central source. All\0A\00", align 1
@.str.13 = private unnamed_addr constant [62 x i8] c" other lines in the input file contain positions of the\0A\00", align 1
@.str.14 = private unnamed_addr constant [63 x i8] c" sources for which offsets from the central source will.\0A\00", align 1
@.str.15 = private unnamed_addr constant [20 x i8] c" be computed.\0A\00", align 1
@.str.16 = private unnamed_addr constant [69 x i8] c" Input file format: label ra_hr ra_min ra_sec dec_deg dec_amin \00", align 1
@.str.17 = private unnamed_addr constant [11 x i8] c"dec_asec\0A\0A\00", align 1
@.str.18 = private unnamed_addr constant [65 x i8] c" -p Compute offsets between PAIRS of positions in batch mode.\0A\00", align 1
@.str.19 = private unnamed_addr constant [63 x i8] c" For this file, each line of the input file contains the\0A\00", align 1
@.str.20 = private unnamed_addr constant [37 x i8] c" two positions to be compared.\0A\00", align 1
@.str.21 = private unnamed_addr constant [54 x i8] c" Input file format: label ra_1 dec_1 ra_2 dec_2\0A\00", align 1
@.str.22 = private unnamed_addr constant [55 x i8] c" where ra_i has the format: ra_hr ra_min ra_sec\0A\00", align 1
@.str.23 = private unnamed_addr constant [63 x i8] c" and dec_i has the format: dec_deg dec_amin dec_asec.\0A\0A\00", align 1
@.str.24 = private unnamed_addr constant [58 x i8] c"*******************************************************\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @distcalc_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.18)
%20 = call i32 @printf(ptr noundef @.str.19)
%21 = call i32 @printf(ptr noundef @.str.20)
%22 = call i32 @printf(ptr noundef @.str.21)
%23 = call i32 @printf(ptr noundef @.str.22)
%24 = call i32 @printf(ptr noundef @.str.23)
%25 = call i32 @printf(ptr noundef @.str.24)
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/tmpx_qrk9og.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [59 x i8] c"\0A*******************************************************\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"\0AProgram: distcalc -- \00", align 1
@.str.2 = private unnamed_addr constant [51 x i8] c"Calculates offsets between pairs of coordinates.\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"Usage: distcalc -i\0A\00", align 1
@.str.4 = private unnamed_addr constant [45 x i8] c" distcalc -c input_file [output_file]\0A\00", align 1
@.str.5 = private unnamed_addr constant [46 x i8] c" distcalc -p input_file [output_file]\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [66 x i8] c"Note that the output filename is optional for both the -c and -p \00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"options.\0A\0A\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"OPTIONS:\0A\00", align 1
@.str.9 = private unnamed_addr constant [26 x i8] c" -i Interactive mode.\0A\0A\00", align 1
@.str.10 = private unnamed_addr constant [65 x i8] c" -c Compute a set of offsets from a given CENTRAL position in\0A\00", align 1
@.str.11 = private unnamed_addr constant [65 x i8] c" batch mode. For this option, the first line of the input\0A\00", align 1
@.str.12 = private unnamed_addr constant [62 x i8] c" file contains the position of the central source. All\0A\00", align 1
@.str.13 = private unnamed_addr constant [62 x i8] c" other lines in the input file contain positions of the\0A\00", align 1
@.str.14 = private unnamed_addr constant [63 x i8] c" sources for which offsets from the central source will.\0A\00", align 1
@.str.15 = private unnamed_addr constant [20 x i8] c" be computed.\0A\00", align 1
@.str.16 = private unnamed_addr constant [69 x i8] c" Input file format: label ra_hr ra_min ra_sec dec_deg dec_amin \00", align 1
@.str.17 = private unnamed_addr constant [11 x i8] c"dec_asec\0A\0A\00", align 1
@.str.18 = private unnamed_addr constant [65 x i8] c" -p Compute offsets between PAIRS of positions in batch mode.\0A\00", align 1
@.str.19 = private unnamed_addr constant [63 x i8] c" For this file, each line of the input file contains the\0A\00", align 1
@.str.20 = private unnamed_addr constant [37 x i8] c" two positions to be compared.\0A\00", align 1
@.str.21 = private unnamed_addr constant [54 x i8] c" Input file format: label ra_1 dec_1 ra_2 dec_2\0A\00", align 1
@.str.22 = private unnamed_addr constant [55 x i8] c" where ra_i has the format: ra_hr ra_min ra_sec\0A\00", align 1
@.str.23 = private unnamed_addr constant [63 x i8] c" and dec_i has the format: dec_deg dec_amin dec_asec.\0A\0A\00", align 1
@.str.24 = private unnamed_addr constant [58 x i8] c"*******************************************************\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @distcalc_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.18)
%20 = call i32 @printf(ptr noundef @.str.19)
%21 = call i32 @printf(ptr noundef @.str.20)
%22 = call i32 @printf(ptr noundef @.str.21)
%23 = call i32 @printf(ptr noundef @.str.22)
%24 = call i32 @printf(ptr noundef @.str.23)
%25 = call i32 @printf(ptr noundef @.str.24)
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/tmpbm5ourop.c'
source_filename = "/tmp/tmpbm5ourop.c"
target datalayout = "e-m:e-p270: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/tmpbm5ourop.c"
target datalayout = "e-m:e-p270: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/tmp5km6jajw.c'
source_filename = "/tmp/tmp5km6jajw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32, ptr }
@.str = private unnamed_addr constant [13 x i8] c"Setup Serial\00", align 1
@CLOCAL = dso_local global i32 0, align 4
@CREAD = dso_local global i32 0, align 4
@CSIZE = dso_local global i32 0, align 4
@CS8 = dso_local global i32 0, align 4
@PARENB = dso_local global i32 0, align 4
@B19200 = dso_local global i32 0, align 4
@CSTOPB = dso_local global i32 0, align 4
@VTIME = dso_local global i64 0, align 8
@VMIN = dso_local global i64 0, align 8
@TCIOFLUSH = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"com set error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_opt(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.termios, align 8
%5 = alloca %struct.termios, align 8
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i64 @tcgetattr(i32 noundef %6, ptr noundef %5)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %2, align 4
br label %60
11: ; preds = %1
%12 = call i32 @bzero(ptr noundef %4, i32 noundef 16)
%13 = load i32, ptr @CLOCAL, align 4
%14 = load i32, ptr @CREAD, align 4
%15 = or i32 %13, %14
%16 = getelementptr inbounds %struct.termios, ptr %4, i32 0, i32 0
%17 = load i32, ptr %16, align 8
%18 = or i32 %17, %15
store i32 %18, ptr %16, align 8
%19 = load i32, ptr @CSIZE, align 4
%20 = xor i32 %19, -1
%21 = getelementptr inbounds %struct.termios, ptr %4, i32 0, i32 0
%22 = load i32, ptr %21, align 8
%23 = and i32 %22, %20
store i32 %23, ptr %21, align 8
%24 = load i32, ptr @CS8, align 4
%25 = getelementptr inbounds %struct.termios, ptr %4, i32 0, i32 0
%26 = load i32, ptr %25, align 8
%27 = or i32 %26, %24
store i32 %27, ptr %25, align 8
%28 = load i32, ptr @PARENB, align 4
%29 = xor i32 %28, -1
%30 = getelementptr inbounds %struct.termios, ptr %4, i32 0, i32 0
%31 = load i32, ptr %30, align 8
%32 = and i32 %31, %29
store i32 %32, ptr %30, align 8
%33 = load i32, ptr @B19200, align 4
%34 = call i32 @cfsetispeed(ptr noundef %4, i32 noundef %33)
%35 = load i32, ptr @B19200, align 4
%36 = call i32 @cfsetospeed(ptr noundef %4, i32 noundef %35)
%37 = load i32, ptr @CSTOPB, align 4
%38 = xor i32 %37, -1
%39 = getelementptr inbounds %struct.termios, ptr %4, i32 0, i32 0
%40 = load i32, ptr %39, align 8
%41 = and i32 %40, %38
store i32 %41, ptr %39, align 8
%42 = getelementptr inbounds %struct.termios, ptr %4, i32 0, i32 1
%43 = load ptr, ptr %42, align 8
%44 = load i64, ptr @VTIME, align 8
%45 = getelementptr inbounds i64, ptr %43, i64 %44
store i64 0, ptr %45, align 8
%46 = getelementptr inbounds %struct.termios, ptr %4, i32 0, i32 1
%47 = load ptr, ptr %46, align 8
%48 = load i64, ptr @VMIN, align 8
%49 = getelementptr inbounds i64, ptr %47, i64 %48
store i64 0, ptr %49, align 8
%50 = load i32, ptr %3, align 4
%51 = load i32, ptr @TCIOFLUSH, align 4
%52 = call i32 @tcflush(i32 noundef %50, i32 noundef %51)
%53 = load i32, ptr %3, align 4
%54 = load i32, ptr @TCSANOW, align 4
%55 = call i64 @tcsetattr(i32 noundef %53, i32 noundef %54, ptr noundef %4)
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %11
%58 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %2, align 4
br label %60
59: ; preds = %11
store i32 0, ptr %2, align 4
br label %60
60: ; preds = %59, %57, %9
%61 = load i32, ptr %2, align 4
ret i32 %61
}
declare i64 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @cfsetispeed(ptr noundef, i32 noundef) #1
declare i32 @cfsetospeed(ptr noundef, i32 noundef) #1
declare i32 @tcflush(i32 noundef, i32 noundef) #1
declare i64 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5km6jajw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32, ptr }
@.str = private unnamed_addr constant [13 x i8] c"Setup Serial\00", align 1
@CLOCAL = dso_local global i32 0, align 4
@CREAD = dso_local global i32 0, align 4
@CSIZE = dso_local global i32 0, align 4
@CS8 = dso_local global i32 0, align 4
@PARENB = dso_local global i32 0, align 4
@B19200 = dso_local global i32 0, align 4
@CSTOPB = dso_local global i32 0, align 4
@VTIME = dso_local global i64 0, align 8
@VMIN = dso_local global i64 0, align 8
@TCIOFLUSH = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"com set error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_opt(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.termios, align 8
%5 = alloca %struct.termios, align 8
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i64 @tcgetattr(i32 noundef %6, ptr noundef %5)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %2, align 4
br label %60
11: ; preds = %1
%12 = call i32 @bzero(ptr noundef %4, i32 noundef 16)
%13 = load i32, ptr @CLOCAL, align 4
%14 = load i32, ptr @CREAD, align 4
%15 = or i32 %13, %14
%16 = getelementptr inbounds %struct.termios, ptr %4, i32 0, i32 0
%17 = load i32, ptr %16, align 8
%18 = or i32 %17, %15
store i32 %18, ptr %16, align 8
%19 = load i32, ptr @CSIZE, align 4
%20 = xor i32 %19, -1
%21 = getelementptr inbounds %struct.termios, ptr %4, i32 0, i32 0
%22 = load i32, ptr %21, align 8
%23 = and i32 %22, %20
store i32 %23, ptr %21, align 8
%24 = load i32, ptr @CS8, align 4
%25 = getelementptr inbounds %struct.termios, ptr %4, i32 0, i32 0
%26 = load i32, ptr %25, align 8
%27 = or i32 %26, %24
store i32 %27, ptr %25, align 8
%28 = load i32, ptr @PARENB, align 4
%29 = xor i32 %28, -1
%30 = getelementptr inbounds %struct.termios, ptr %4, i32 0, i32 0
%31 = load i32, ptr %30, align 8
%32 = and i32 %31, %29
store i32 %32, ptr %30, align 8
%33 = load i32, ptr @B19200, align 4
%34 = call i32 @cfsetispeed(ptr noundef %4, i32 noundef %33)
%35 = load i32, ptr @B19200, align 4
%36 = call i32 @cfsetospeed(ptr noundef %4, i32 noundef %35)
%37 = load i32, ptr @CSTOPB, align 4
%38 = xor i32 %37, -1
%39 = getelementptr inbounds %struct.termios, ptr %4, i32 0, i32 0
%40 = load i32, ptr %39, align 8
%41 = and i32 %40, %38
store i32 %41, ptr %39, align 8
%42 = getelementptr inbounds %struct.termios, ptr %4, i32 0, i32 1
%43 = load ptr, ptr %42, align 8
%44 = load i64, ptr @VTIME, align 8
%45 = getelementptr inbounds i64, ptr %43, i64 %44
store i64 0, ptr %45, align 8
%46 = getelementptr inbounds %struct.termios, ptr %4, i32 0, i32 1
%47 = load ptr, ptr %46, align 8
%48 = load i64, ptr @VMIN, align 8
%49 = getelementptr inbounds i64, ptr %47, i64 %48
store i64 0, ptr %49, align 8
%50 = load i32, ptr %3, align 4
%51 = load i32, ptr @TCIOFLUSH, align 4
%52 = call i32 @tcflush(i32 noundef %50, i32 noundef %51)
%53 = load i32, ptr %3, align 4
%54 = load i32, ptr @TCSANOW, align 4
%55 = call i64 @tcsetattr(i32 noundef %53, i32 noundef %54, ptr noundef %4)
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %11
%58 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %2, align 4
br label %60
59: ; preds = %11
store i32 0, ptr %2, align 4
br label %60
60: ; preds = %59, %57, %9
%61 = load i32, ptr %2, align 4
ret i32 %61
}
declare i64 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @cfsetispeed(ptr noundef, i32 noundef) #1
declare i32 @cfsetospeed(ptr noundef, i32 noundef) #1
declare i32 @tcflush(i32 noundef, i32 noundef) #1
declare i64 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpft18rga7.c'
source_filename = "/tmp/tmpft18rga7.c"
target datalayout = "e-m:e-p270: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/tmpft18rga7.c"
target datalayout = "e-m:e-p270: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/tmpnm42xy6w.c'
source_filename = "/tmp/tmpnm42xy6w.c"
target datalayout = "e-m:e-p270: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/tmpnm42xy6w.c"
target datalayout = "e-m:e-p270: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/tmpky0twl4m.c'
source_filename = "/tmp/tmpky0twl4m.c"
target datalayout = "e-m:e-p270: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/tmpky0twl4m.c"
target datalayout = "e-m:e-p270: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/tmp0t17dlva.c'
source_filename = "/tmp/tmp0t17dlva.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"%d %d\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Case %d:\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %39, %0
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %42
13: ; preds = %9
%14 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %6, ptr noundef %7)
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
store i32 1, ptr %4, align 4
br label %18
18: ; preds = %35, %13
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %22, label %38
22: ; preds = %18
store i32 0, ptr %5, align 4
br label %23
23: ; preds = %30, %22
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %33
27: ; preds = %23
%28 = load i32, ptr %6, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %28)
br label %30
30: ; preds = %27
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %5, align 4
br label %23, !llvm.loop !6
33: ; preds = %23
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %35
35: ; preds = %33
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %4, align 4
br label %18, !llvm.loop !8
38: ; preds = %18
br label %39
39: ; preds = %38
%40 = load i32, ptr %2, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %2, align 4
br label %9, !llvm.loop !9
42: ; preds = %9
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0t17dlva.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"%d %d\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Case %d:\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
store i32 0, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph5, label %48
.lr.ph5: ; preds = %0
br label %12
12: ; preds = %.lr.ph5, %42
%13 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %6, ptr noundef %7)
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
store i32 1, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %.lr.ph2, label %41
.lr.ph2: ; preds = %12
br label %20
20: ; preds = %.lr.ph2, %35
store i32 0, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph, label %33
.lr.ph: ; preds = %20
br label %24
24: ; preds = %.lr.ph, %27
%25 = load i32, ptr %6, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %25)
br label %27
27: ; preds = %24
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4
%30 = load i32, ptr %5, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %20
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %35
35: ; preds = %33
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %4, align 4
%38 = load i32, ptr %4, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp sle i32 %38, %39
br i1 %40, label %20, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %41
41: ; preds = %._crit_edge3, %12
br label %42
42: ; preds = %41
%43 = load i32, ptr %2, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %2, align 4
%45 = load i32, ptr %2, align 4
%46 = load i32, ptr %3, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %12, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %42
br label %48
48: ; preds = %._crit_edge6, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp0nb_rl7i.c'
source_filename = "/tmp/tmp0nb_rl7i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, i32, i64, i32, i32, ptr, i32 }
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@AI_PASSIVE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"getaddrinfo: %s\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EPERM = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [5 x i8] c"bind\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Could not bind\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"listen\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @net_listen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca %struct.addrinfo, align 8
store ptr %0, ptr %2, align 8
store ptr null, ptr %6, align 8
%8 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 40)
%9 = load i32, ptr @AF_UNSPEC, align 4
%10 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 4
store i32 %9, ptr %10, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 3
store i32 %11, ptr %12, align 8
%13 = load i32, ptr @AI_PASSIVE, align 4
%14 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 6
store i32 %13, ptr %14, align 8
%15 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 2
store i64 0, ptr %15, align 8
%16 = load ptr, ptr %2, align 8
%17 = call i32 @getaddrinfo(ptr noundef null, ptr noundef %16, ptr noundef %7, ptr noundef %6)
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %1
%21 = load i32, ptr @stderr, align 4
%22 = load i32, ptr %4, align 4
%23 = call ptr @gai_strerror(i32 noundef %22)
%24 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str, ptr noundef %23)
%25 = load i32, ptr @EXIT_FAILURE, align 4
%26 = call i32 @exit(i32 noundef %25) #3
unreachable
27: ; preds = %1
%28 = load ptr, ptr %6, align 8
store ptr %28, ptr %5, align 8
br label %29
29: ; preds = %70, %27
%30 = load ptr, ptr %5, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %74
32: ; preds = %29
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds %struct.addrinfo, ptr %33, i32 0, i32 4
%35 = load i32, ptr %34, align 4
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds %struct.addrinfo, ptr %36, i32 0, i32 3
%38 = load i32, ptr %37, align 8
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds %struct.addrinfo, ptr %39, i32 0, i32 2
%41 = load i64, ptr %40, align 8
%42 = call i32 @socket(i32 noundef %35, i32 noundef %38, i64 noundef %41)
store i32 %42, ptr %3, align 4
%43 = load i32, ptr %3, align 4
%44 = icmp slt i32 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %32
br label %70
46: ; preds = %32
%47 = load i32, ptr %3, align 4
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds %struct.addrinfo, ptr %48, i32 0, i32 1
%50 = load i32, ptr %49, align 4
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds %struct.addrinfo, ptr %51, i32 0, i32 0
%53 = load i32, ptr %52, align 8
%54 = call i32 @bind(i32 noundef %47, i32 noundef %50, i32 noundef %53)
store i32 %54, ptr %4, align 4
%55 = load i32, ptr %4, align 4
%56 = icmp ne i32 %55, 0
br i1 %56, label %58, label %57
57: ; preds = %46
br label %74
58: ; preds = %46
%59 = load i32, ptr %4, align 4
%60 = icmp slt i32 %59, 0
br i1 %60, label %61, label %67
61: ; preds = %58
%62 = load i64, ptr @errno, align 8
%63 = load i64, ptr @EPERM, align 8
%64 = icmp eq i64 %62, %63
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = call i32 @net_sys_err(ptr noundef @.str.1)
br label %67
67: ; preds = %65, %61, %58
%68 = load i32, ptr %3, align 4
%69 = call i32 @close(i32 noundef %68)
br label %70
70: ; preds = %67, %45
%71 = load ptr, ptr %5, align 8
%72 = getelementptr inbounds %struct.addrinfo, ptr %71, i32 0, i32 5
%73 = load ptr, ptr %72, align 8
store ptr %73, ptr %5, align 8
br label %29, !llvm.loop !6
74: ; preds = %57, %29
%75 = load ptr, ptr %5, align 8
%76 = icmp ne ptr %75, null
br i1 %76, label %82, label %77
77: ; preds = %74
%78 = load i32, ptr @stderr, align 4
%79 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %78, ptr noundef @.str.2)
%80 = load i32, ptr @EXIT_FAILURE, align 4
%81 = call i32 @exit(i32 noundef %80) #3
unreachable
82: ; preds = %74
%83 = load ptr, ptr %6, align 8
%84 = call i32 @freeaddrinfo(ptr noundef %83)
%85 = load i32, ptr %3, align 4
%86 = call i32 @listen(i32 noundef %85, i32 noundef 128)
store i32 %86, ptr %4, align 4
%87 = load i32, ptr %4, align 4
%88 = icmp slt i32 %87, 0
br i1 %88, label %89, label %91
89: ; preds = %82
%90 = call i32 @net_sys_err(ptr noundef @.str.3)
br label %91
91: ; preds = %89, %82
%92 = load i32, ptr %3, align 4
ret i32 %92
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @gai_strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i64 noundef) #1
declare i32 @bind(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @net_sys_err(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp0nb_rl7i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, i32, i64, i32, i32, ptr, i32 }
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@AI_PASSIVE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"getaddrinfo: %s\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EPERM = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [5 x i8] c"bind\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Could not bind\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"listen\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @net_listen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca %struct.addrinfo, align 8
store ptr %0, ptr %2, align 8
store ptr null, ptr %6, align 8
%8 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 40)
%9 = load i32, ptr @AF_UNSPEC, align 4
%10 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 4
store i32 %9, ptr %10, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 3
store i32 %11, ptr %12, align 8
%13 = load i32, ptr @AI_PASSIVE, align 4
%14 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 6
store i32 %13, ptr %14, align 8
%15 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 2
store i64 0, ptr %15, align 8
%16 = load ptr, ptr %2, align 8
%17 = call i32 @getaddrinfo(ptr noundef null, ptr noundef %16, ptr noundef %7, ptr noundef %6)
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %1
%21 = load i32, ptr @stderr, align 4
%22 = load i32, ptr %4, align 4
%23 = call ptr @gai_strerror(i32 noundef %22)
%24 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str, ptr noundef %23)
%25 = load i32, ptr @EXIT_FAILURE, align 4
%26 = call i32 @exit(i32 noundef %25) #3
unreachable
27: ; preds = %1
%28 = load ptr, ptr %6, align 8
store ptr %28, ptr %5, align 8
%29 = load ptr, ptr %5, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %27
br label %31
31: ; preds = %.lr.ph, %69
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds %struct.addrinfo, ptr %32, i32 0, i32 4
%34 = load i32, ptr %33, align 4
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds %struct.addrinfo, ptr %35, i32 0, i32 3
%37 = load i32, ptr %36, align 8
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds %struct.addrinfo, ptr %38, i32 0, i32 2
%40 = load i64, ptr %39, align 8
%41 = call i32 @socket(i32 noundef %34, i32 noundef %37, i64 noundef %40)
store i32 %41, ptr %3, align 4
%42 = load i32, ptr %3, align 4
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %31
br label %69
45: ; preds = %31
%46 = load i32, ptr %3, align 4
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds %struct.addrinfo, ptr %47, i32 0, i32 1
%49 = load i32, ptr %48, align 4
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds %struct.addrinfo, ptr %50, i32 0, i32 0
%52 = load i32, ptr %51, align 8
%53 = call i32 @bind(i32 noundef %46, i32 noundef %49, i32 noundef %52)
store i32 %53, ptr %4, align 4
%54 = load i32, ptr %4, align 4
%55 = icmp ne i32 %54, 0
br i1 %55, label %57, label %56
56: ; preds = %45
br label %75
57: ; preds = %45
%58 = load i32, ptr %4, align 4
%59 = icmp slt i32 %58, 0
br i1 %59, label %60, label %66
60: ; preds = %57
%61 = load i64, ptr @errno, align 8
%62 = load i64, ptr @EPERM, align 8
%63 = icmp eq i64 %61, %62
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = call i32 @net_sys_err(ptr noundef @.str.1)
br label %66
66: ; preds = %64, %60, %57
%67 = load i32, ptr %3, align 4
%68 = call i32 @close(i32 noundef %67)
br label %69
69: ; preds = %66, %44
%70 = load ptr, ptr %5, align 8
%71 = getelementptr inbounds %struct.addrinfo, ptr %70, i32 0, i32 5
%72 = load ptr, ptr %71, align 8
store ptr %72, ptr %5, align 8
%73 = load ptr, ptr %5, align 8
%74 = icmp ne ptr %73, null
br i1 %74, label %31, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %69
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %27
br label %75
75: ; preds = %.loopexit, %56
%76 = load ptr, ptr %5, align 8
%77 = icmp ne ptr %76, null
br i1 %77, label %83, label %78
78: ; preds = %75
%79 = load i32, ptr @stderr, align 4
%80 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %79, ptr noundef @.str.2)
%81 = load i32, ptr @EXIT_FAILURE, align 4
%82 = call i32 @exit(i32 noundef %81) #3
unreachable
83: ; preds = %75
%84 = load ptr, ptr %6, align 8
%85 = call i32 @freeaddrinfo(ptr noundef %84)
%86 = load i32, ptr %3, align 4
%87 = call i32 @listen(i32 noundef %86, i32 noundef 128)
store i32 %87, ptr %4, align 4
%88 = load i32, ptr %4, align 4
%89 = icmp slt i32 %88, 0
br i1 %89, label %90, label %92
90: ; preds = %83
%91 = call i32 @net_sys_err(ptr noundef @.str.3)
br label %92
92: ; preds = %90, %83
%93 = load i32, ptr %3, align 4
ret i32 %93
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @gai_strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i64 noundef) #1
declare i32 @bind(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @net_sys_err(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpov905jup.c'
source_filename = "/tmp/tmpov905jup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test.in\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stdin = dso_local global ptr null, align 8
@.str.3 = private unnamed_addr constant [9 x i8] c"test.out\00", align 1
@stdout = dso_local global ptr null, align 8
@.str.4 = private unnamed_addr constant [9 x i8] c"test.err\00", align 1
@stderr = dso_local global ptr null, align 8
@EXIT_SUCCESS = dso_local global i64 0, align 8
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @run_test(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%8 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i32 @fprintf(ptr noundef %9, ptr noundef %10)
%12 = load ptr, ptr %7, align 8
%13 = call i32 @fclose(ptr noundef %12)
%14 = load ptr, ptr @stdin, align 8
%15 = call i32 @freopen(ptr noundef @.str, ptr noundef @.str.2, ptr noundef %14)
%16 = load ptr, ptr @stdout, align 8
%17 = call i32 @freopen(ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef %16)
%18 = load ptr, ptr @stderr, align 8
%19 = call i32 @freopen(ptr noundef @.str.4, ptr noundef @.str.1, ptr noundef %18)
br label %20
20: ; preds = %3
%21 = load i32, ptr %5, align 4
%22 = load ptr, ptr %6, align 8
%23 = call i64 @main(i32 noundef %21, ptr noundef %22)
%24 = load i64, ptr @EXIT_SUCCESS, align 8
%25 = icmp ne i64 %23, %24
br i1 %25, label %26, label %29
26: ; preds = %20
%27 = load i32, ptr @EXIT_FAILURE, align 4
%28 = call i32 @exit(i32 noundef %27) #3
unreachable
29: ; preds = %20
br label %30
30: ; preds = %29
%31 = load ptr, ptr @stdout, align 8
%32 = call i32 @fclose(ptr noundef %31)
%33 = load ptr, ptr @stderr, align 8
%34 = call i32 @fclose(ptr noundef %33)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @freopen(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @main(i32 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/tmpov905jup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test.in\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stdin = dso_local global ptr null, align 8
@.str.3 = private unnamed_addr constant [9 x i8] c"test.out\00", align 1
@stdout = dso_local global ptr null, align 8
@.str.4 = private unnamed_addr constant [9 x i8] c"test.err\00", align 1
@stderr = dso_local global ptr null, align 8
@EXIT_SUCCESS = dso_local global i64 0, align 8
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @run_test(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%8 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i32 @fprintf(ptr noundef %9, ptr noundef %10)
%12 = load ptr, ptr %7, align 8
%13 = call i32 @fclose(ptr noundef %12)
%14 = load ptr, ptr @stdin, align 8
%15 = call i32 @freopen(ptr noundef @.str, ptr noundef @.str.2, ptr noundef %14)
%16 = load ptr, ptr @stdout, align 8
%17 = call i32 @freopen(ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef %16)
%18 = load ptr, ptr @stderr, align 8
%19 = call i32 @freopen(ptr noundef @.str.4, ptr noundef @.str.1, ptr noundef %18)
br label %20
20: ; preds = %3
%21 = load i32, ptr %5, align 4
%22 = load ptr, ptr %6, align 8
%23 = call i64 @main(i32 noundef %21, ptr noundef %22)
%24 = load i64, ptr @EXIT_SUCCESS, align 8
%25 = icmp ne i64 %23, %24
br i1 %25, label %26, label %29
26: ; preds = %20
%27 = load i32, ptr @EXIT_FAILURE, align 4
%28 = call i32 @exit(i32 noundef %27) #3
unreachable
29: ; preds = %20
br label %30
30: ; preds = %29
%31 = load ptr, ptr @stdout, align 8
%32 = call i32 @fclose(ptr noundef %31)
%33 = load ptr, ptr @stderr, align 8
%34 = call i32 @fclose(ptr noundef %33)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @freopen(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @main(i32 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/tmpgbm61fkv.c'
source_filename = "/tmp/tmpgbm61fkv.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgbm61fkv.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp53u04bi1.c'
source_filename = "/tmp/tmp53u04bi1.c"
target datalayout = "e-m:e-p270: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/tmp53u04bi1.c"
target datalayout = "e-m:e-p270: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/tmpalcosu4p.c'
source_filename = "/tmp/tmpalcosu4p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_19__ = type { i32, %struct.TYPE_15__, %struct.TYPE_17__ }
%struct.TYPE_15__ = type { i32 }
%struct.TYPE_17__ = type { %struct.TYPE_16__, i32 }
%struct.TYPE_16__ = type { ptr }
%struct.timespec = type { double, i32 }
%struct.TYPE_18__ = type { i32, i32, i32, i32, ptr }
@EXIT_FAILURE = dso_local global i32 0, align 4
@InputHint = dso_local global i32 0, align 4
@StateHint = dso_local global i32 0, align 4
@True = dso_local global ptr null, align 8
@NormalState = dso_local global i32 0, align 4
@PMinSize = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [9 x i8] c"Phase 01\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@ExposureMask = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [13 x i8] c"WM_PROTOCOLS\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"WM_DELETE_WINDOW\00", align 1
@KeyPressMask = dso_local global i32 0, align 4
@False = dso_local global ptr null, align 8
@CLOCK_MONOTONIC_RAW = dso_local global i32 0, align 4
@XK_Return = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [18 x i8] c"\0A-Done Chatting-\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"Message: \0A\00", align 1
@XK_Escape = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [27 x i8] c"Pressed Escape, quitting.\0A\00", align 1
@XK_q = dso_local global i32 0, align 4
@ControlMask = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [27 x i8] c"Pressed Ctrl+q, quitting.\0A\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.9 = private unnamed_addr constant [21 x i8] c"Key pressed: %s - %s\00", align 1
@ShiftMask = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [9 x i8] c" | Shift\00", align 1
@LockMask = dso_local global i32 0, align 4
@.str.11 = private unnamed_addr constant [8 x i8] c" | Lock\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c" | Ctrl\00", align 1
@Mod1Mask = dso_local global i32 0, align 4
@.str.13 = private unnamed_addr constant [7 x i8] c" | Alt\00", align 1
@Mod2Mask = dso_local global i32 0, align 4
@.str.14 = private unnamed_addr constant [12 x i8] c" | Num Lock\00", align 1
@Mod3Mask = dso_local global i32 0, align 4
@.str.15 = private unnamed_addr constant [8 x i8] c" | Mod3\00", align 1
@Mod4Mask = dso_local global i32 0, align 4
@.str.16 = private unnamed_addr constant [8 x i8] c" | Mod4\00", align 1
@Mod5Mask = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [8 x i8] c" | Mod5\00", align 1
@.str.18 = private unnamed_addr constant [18 x i8] c" | Cursor Key (0)\00", align 1
@.str.19 = private unnamed_addr constant [18 x i8] c" | Cursor Key (1)\00", align 1
@.str.20 = private unnamed_addr constant [20 x i8] c" | Function key (0)\00", align 1
@.str.21 = private unnamed_addr constant [20 x i8] c" | Function key (1)\00", align 1
@.str.22 = private unnamed_addr constant [14 x i8] c" | keypad (0)\00", align 1
@.str.23 = private unnamed_addr constant [14 x i8] c" | keypad (1)\00", align 1
@.str.24 = private unnamed_addr constant [10 x i8] c" | Fn (0)\00", align 1
@.str.25 = private unnamed_addr constant [10 x i8] c" | Fn (1)\00", align 1
@.str.26 = private unnamed_addr constant [16 x i8] c" | Modifier (0)\00", align 1
@.str.27 = private unnamed_addr constant [16 x i8] c" | Modifier (1)\00", align 1
@.str.28 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca %struct.TYPE_19__, align 8
%14 = alloca ptr, align 8
%15 = alloca %struct.timespec, align 8
%16 = alloca %struct.timespec, align 8
%17 = alloca double, align 8
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca [20 x i8], align 16
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca ptr, align 8
%27 = alloca %struct.timespec, align 8
%28 = alloca %struct.timespec, align 8
%29 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%30 = call ptr @XOpenDisplay(ptr noundef null)
store ptr %30, ptr %6, align 8
%31 = load ptr, ptr %6, align 8
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %35
33: ; preds = %2
%34 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %34, ptr %3, align 4
br label %410
35: ; preds = %2
%36 = load ptr, ptr %6, align 8
%37 = load ptr, ptr %6, align 8
%38 = call i32 @DefaultScreen(ptr noundef %37)
%39 = call i64 @BlackPixel(ptr noundef %36, i32 noundef %38)
store i64 %39, ptr %7, align 8
%40 = load ptr, ptr %6, align 8
%41 = load ptr, ptr %6, align 8
%42 = call i32 @DefaultRootWindow(ptr noundef %41)
%43 = load i64, ptr %7, align 8
%44 = load i64, ptr %7, align 8
%45 = call i32 @XCreateSimpleWindow(ptr noundef %40, i32 noundef %42, i32 noundef 0, i32 noundef 0, i32 noundef 800, i32 noundef 600, i32 noundef 0, i64 noundef %43, i64 noundef %44)
store i32 %45, ptr %8, align 4
%46 = call ptr (...) @XAllocWMHints()
store ptr %46, ptr %9, align 8
%47 = load i32, ptr @InputHint, align 4
%48 = load i32, ptr @StateHint, align 4
%49 = or i32 %47, %48
%50 = load ptr, ptr %9, align 8
%51 = getelementptr inbounds %struct.TYPE_18__, ptr %50, i32 0, i32 0
store i32 %49, ptr %51, align 8
%52 = load ptr, ptr @True, align 8
%53 = load ptr, ptr %9, align 8
%54 = getelementptr inbounds %struct.TYPE_18__, ptr %53, i32 0, i32 4
store ptr %52, ptr %54, align 8
%55 = load i32, ptr @NormalState, align 4
%56 = load ptr, ptr %9, align 8
%57 = getelementptr inbounds %struct.TYPE_18__, ptr %56, i32 0, i32 3
store i32 %55, ptr %57, align 4
%58 = call ptr (...) @XAllocSizeHints()
store ptr %58, ptr %10, align 8
%59 = load i32, ptr @PMinSize, align 4
%60 = load ptr, ptr %10, align 8
%61 = getelementptr inbounds %struct.TYPE_18__, ptr %60, i32 0, i32 0
store i32 %59, ptr %61, align 8
%62 = load ptr, ptr %10, align 8
%63 = getelementptr inbounds %struct.TYPE_18__, ptr %62, i32 0, i32 1
store i32 400, ptr %63, align 4
%64 = load ptr, ptr %10, align 8
%65 = getelementptr inbounds %struct.TYPE_18__, ptr %64, i32 0, i32 2
store i32 300, ptr %65, align 8
%66 = load ptr, ptr %6, align 8
%67 = load i32, ptr %8, align 4
%68 = load ptr, ptr %10, align 8
%69 = load ptr, ptr %9, align 8
%70 = call i32 @Xutf8SetWMProperties(ptr noundef %66, i32 noundef %67, ptr noundef @.str, ptr noundef @.str.1, ptr noundef null, i32 noundef 0, ptr noundef %68, ptr noundef %69, ptr noundef null)
%71 = load ptr, ptr %6, align 8
%72 = load i32, ptr %8, align 4
%73 = load i32, ptr @ExposureMask, align 4
%74 = call i32 @XSelectInput(ptr noundef %71, i32 noundef %72, i32 noundef %73)
%75 = load ptr, ptr %6, align 8
%76 = load ptr, ptr @True, align 8
%77 = call i32 @XInternAtom(ptr noundef %75, ptr noundef @.str.2, ptr noundef %76)
store i32 %77, ptr %11, align 4
%78 = load ptr, ptr %6, align 8
%79 = load ptr, ptr @True, align 8
%80 = call i32 @XInternAtom(ptr noundef %78, ptr noundef @.str.3, ptr noundef %79)
store i32 %80, ptr %12, align 4
%81 = load ptr, ptr %6, align 8
%82 = load i32, ptr %8, align 4
%83 = call i32 @XSetWMProtocols(ptr noundef %81, i32 noundef %82, ptr noundef %12, i32 noundef 1)
%84 = load ptr, ptr %6, align 8
%85 = load i32, ptr %8, align 4
%86 = call i32 @XMapWindow(ptr noundef %84, i32 noundef %85)
%87 = load ptr, ptr %6, align 8
%88 = load i32, ptr %8, align 4
%89 = load i32, ptr @ExposureMask, align 4
%90 = call i32 @XWindowEvent(ptr noundef %87, i32 noundef %88, i32 noundef %89, ptr noundef %13)
%91 = load ptr, ptr %6, align 8
%92 = load i32, ptr %8, align 4
%93 = load i32, ptr @KeyPressMask, align 4
%94 = call i32 @XSelectInput(ptr noundef %91, i32 noundef %92, i32 noundef %93)
%95 = load ptr, ptr @False, align 8
store ptr %95, ptr %14, align 8
%96 = load i32, ptr @CLOCK_MONOTONIC_RAW, align 4
%97 = call i32 @clock_gettime(i32 noundef %96, ptr noundef %16)
%98 = getelementptr inbounds %struct.timespec, ptr %16, i32 0, i32 0
%99 = load double, ptr %98, align 8
%100 = getelementptr inbounds %struct.timespec, ptr %15, i32 0, i32 0
store double %99, ptr %100, align 8
%101 = getelementptr inbounds %struct.timespec, ptr %16, i32 0, i32 1
%102 = load i32, ptr %101, align 8
%103 = getelementptr inbounds %struct.timespec, ptr %15, i32 0, i32 1
store i32 %102, ptr %103, align 8
store double 0.000000e+00, ptr %17, align 8
store ptr null, ptr %21, align 8
store ptr null, ptr %22, align 8
store i32 20, ptr %24, align 4
store i32 0, ptr %25, align 4
%104 = load ptr, ptr @False, align 8
store ptr %104, ptr %26, align 8
br label %105
105: ; preds = %398, %35
%106 = load ptr, ptr %14, align 8
%107 = icmp ne ptr %106, null
%108 = xor i1 %107, true
br i1 %108, label %109, label %399
109: ; preds = %105
%110 = load i32, ptr @CLOCK_MONOTONIC_RAW, align 4
%111 = call i32 @clock_gettime(i32 noundef %110, ptr noundef %16)
%112 = call i64 @timespec_diff(ptr noundef %16, ptr noundef %15)
%113 = sitofp i64 %112 to double
%114 = load double, ptr %17, align 8
%115 = fadd double %114, %113
store double %115, ptr %17, align 8
br label %116
116: ; preds = %337, %188, %174, %109
%117 = load ptr, ptr %6, align 8
%118 = call i64 @XPending(ptr noundef %117)
%119 = icmp sgt i64 %118, 0
br i1 %119, label %120, label %338
120: ; preds = %116
%121 = load ptr, ptr %6, align 8
%122 = call i32 @XNextEvent(ptr noundef %121, ptr noundef %13)
%123 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 0
%124 = load i32, ptr %123, align 8
switch i32 %124, label %337 [
i32 129, label %125
i32 128, label %144
]
125: ; preds = %120
%126 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 2
%127 = getelementptr inbounds %struct.TYPE_17__, ptr %126, i32 0, i32 1
%128 = load i32, ptr %127, align 8
%129 = load i32, ptr %11, align 4
%130 = icmp eq i32 %128, %129
br i1 %130, label %131, label %143
131: ; preds = %125
%132 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 2
%133 = getelementptr inbounds %struct.TYPE_17__, ptr %132, i32 0, i32 0
%134 = getelementptr inbounds %struct.TYPE_16__, ptr %133, i32 0, i32 0
%135 = load ptr, ptr %134, align 8
%136 = getelementptr inbounds i32, ptr %135, i64 0
%137 = load i32, ptr %136, align 4
%138 = load i32, ptr %12, align 4
%139 = icmp eq i32 %137, %138
br i1 %139, label %140, label %142
140: ; preds = %131
%141 = load ptr, ptr @True, align 8
store ptr %141, ptr %14, align 8
br label %142
142: ; preds = %140, %131
br label %143
143: ; preds = %142, %125
br label %337
144: ; preds = %120
%145 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%146 = getelementptr inbounds [20 x i8], ptr %23, i64 0, i64 0
%147 = load i32, ptr %24, align 4
%148 = call i32 @XLookupString(ptr noundef %145, ptr noundef %146, i32 noundef %147, ptr noundef %20, ptr noundef null)
store i32 %148, ptr %25, align 4
%149 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%150 = call i32 @XLookupKeysym(ptr noundef %149, i32 noundef 0)
store i32 %150, ptr %18, align 4
%151 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%152 = call i32 @XLookupKeysym(ptr noundef %151, i32 noundef 1)
store i32 %152, ptr %19, align 4
%153 = load i32, ptr %18, align 4
%154 = call ptr @XKeysymToString(i32 noundef %153)
store ptr %154, ptr %21, align 8
%155 = load i32, ptr %19, align 4
%156 = call ptr @XKeysymToString(i32 noundef %155)
store ptr %156, ptr %22, align 8
%157 = load i32, ptr @XK_Return, align 4
%158 = load i32, ptr %18, align 4
%159 = icmp eq i32 %157, %158
br i1 %159, label %160, label %170
160: ; preds = %144
%161 = load ptr, ptr %26, align 8
%162 = icmp ne ptr %161, null
br i1 %162, label %163, label %166
163: ; preds = %160
%164 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%165 = load ptr, ptr @False, align 8
store ptr %165, ptr %26, align 8
br label %169
166: ; preds = %160
%167 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%168 = load ptr, ptr @True, align 8
store ptr %168, ptr %26, align 8
br label %169
169: ; preds = %166, %163
br label %193
170: ; preds = %144
%171 = load i32, ptr %18, align 4
%172 = load i32, ptr @XK_Escape, align 4
%173 = icmp eq i32 %171, %172
br i1 %173, label %174, label %177
174: ; preds = %170
%175 = load ptr, ptr @True, align 8
store ptr %175, ptr %14, align 8
%176 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %116, !llvm.loop !6
177: ; preds = %170
%178 = load i32, ptr @XK_q, align 4
%179 = load i32, ptr %18, align 4
%180 = icmp eq i32 %178, %179
br i1 %180, label %181, label %191
181: ; preds = %177
%182 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%183 = getelementptr inbounds %struct.TYPE_15__, ptr %182, i32 0, i32 0
%184 = load i32, ptr %183, align 4
%185 = load i32, ptr @ControlMask, align 4
%186 = and i32 %184, %185
%187 = icmp ne i32 %186, 0
br i1 %187, label %188, label %191
188: ; preds = %181
%189 = load ptr, ptr @True, align 8
store ptr %189, ptr %14, align 8
%190 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %116, !llvm.loop !6
191: ; preds = %181, %177
br label %192
192: ; preds = %191
br label %193
193: ; preds = %192, %169
%194 = load ptr, ptr %26, align 8
%195 = icmp ne ptr %194, null
br i1 %195, label %196, label %199
196: ; preds = %193
%197 = getelementptr inbounds [20 x i8], ptr %23, i64 0, i64 0
%198 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %197)
br label %336
199: ; preds = %193
%200 = load ptr, ptr %21, align 8
%201 = load ptr, ptr %22, align 8
%202 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %200, ptr noundef %201)
%203 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%204 = getelementptr inbounds %struct.TYPE_15__, ptr %203, i32 0, i32 0
%205 = load i32, ptr %204, align 4
%206 = load i32, ptr @ShiftMask, align 4
%207 = and i32 %205, %206
%208 = icmp ne i32 %207, 0
br i1 %208, label %209, label %211
209: ; preds = %199
%210 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %211
211: ; preds = %209, %199
%212 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%213 = getelementptr inbounds %struct.TYPE_15__, ptr %212, i32 0, i32 0
%214 = load i32, ptr %213, align 4
%215 = load i32, ptr @LockMask, align 4
%216 = and i32 %214, %215
%217 = icmp ne i32 %216, 0
br i1 %217, label %218, label %220
218: ; preds = %211
%219 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %220
220: ; preds = %218, %211
%221 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%222 = getelementptr inbounds %struct.TYPE_15__, ptr %221, i32 0, i32 0
%223 = load i32, ptr %222, align 4
%224 = load i32, ptr @ControlMask, align 4
%225 = and i32 %223, %224
%226 = icmp ne i32 %225, 0
br i1 %226, label %227, label %229
227: ; preds = %220
%228 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %229
229: ; preds = %227, %220
%230 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%231 = getelementptr inbounds %struct.TYPE_15__, ptr %230, i32 0, i32 0
%232 = load i32, ptr %231, align 4
%233 = load i32, ptr @Mod1Mask, align 4
%234 = and i32 %232, %233
%235 = icmp ne i32 %234, 0
br i1 %235, label %236, label %238
236: ; preds = %229
%237 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %238
238: ; preds = %236, %229
%239 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%240 = getelementptr inbounds %struct.TYPE_15__, ptr %239, i32 0, i32 0
%241 = load i32, ptr %240, align 4
%242 = load i32, ptr @Mod2Mask, align 4
%243 = and i32 %241, %242
%244 = icmp ne i32 %243, 0
br i1 %244, label %245, label %247
245: ; preds = %238
%246 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
br label %247
247: ; preds = %245, %238
%248 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%249 = getelementptr inbounds %struct.TYPE_15__, ptr %248, i32 0, i32 0
%250 = load i32, ptr %249, align 4
%251 = load i32, ptr @Mod3Mask, align 4
%252 = and i32 %250, %251
%253 = icmp ne i32 %252, 0
br i1 %253, label %254, label %256
254: ; preds = %247
%255 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
br label %256
256: ; preds = %254, %247
%257 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%258 = getelementptr inbounds %struct.TYPE_15__, ptr %257, i32 0, i32 0
%259 = load i32, ptr %258, align 4
%260 = load i32, ptr @Mod4Mask, align 4
%261 = and i32 %259, %260
%262 = icmp ne i32 %261, 0
br i1 %262, label %263, label %265
263: ; preds = %256
%264 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
br label %265
265: ; preds = %263, %256
%266 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%267 = getelementptr inbounds %struct.TYPE_15__, ptr %266, i32 0, i32 0
%268 = load i32, ptr %267, align 4
%269 = load i32, ptr @Mod5Mask, align 4
%270 = and i32 %268, %269
%271 = icmp ne i32 %270, 0
br i1 %271, label %272, label %274
272: ; preds = %265
%273 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
br label %274
274: ; preds = %272, %265
%275 = load i32, ptr %18, align 4
%276 = call i32 @IsCursorKey(i32 noundef %275)
%277 = icmp ne i32 %276, 0
br i1 %277, label %278, label %280
278: ; preds = %274
%279 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
br label %280
280: ; preds = %278, %274
%281 = load i32, ptr %19, align 4
%282 = call i32 @IsCursorKey(i32 noundef %281)
%283 = icmp ne i32 %282, 0
br i1 %283, label %284, label %286
284: ; preds = %280
%285 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
br label %286
286: ; preds = %284, %280
%287 = load i32, ptr %18, align 4
%288 = call i32 @IsFunctionKey(i32 noundef %287)
%289 = icmp ne i32 %288, 0
br i1 %289, label %290, label %292
290: ; preds = %286
%291 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
br label %292
292: ; preds = %290, %286
%293 = load i32, ptr %19, align 4
%294 = call i32 @IsFunctionKey(i32 noundef %293)
%295 = icmp ne i32 %294, 0
br i1 %295, label %296, label %298
296: ; preds = %292
%297 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
br label %298
298: ; preds = %296, %292
%299 = load i32, ptr %18, align 4
%300 = call i32 @IsKeypadKey(i32 noundef %299)
%301 = icmp ne i32 %300, 0
br i1 %301, label %302, label %304
302: ; preds = %298
%303 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
br label %304
304: ; preds = %302, %298
%305 = load i32, ptr %19, align 4
%306 = call i32 @IsKeypadKey(i32 noundef %305)
%307 = icmp ne i32 %306, 0
br i1 %307, label %308, label %310
308: ; preds = %304
%309 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
br label %310
310: ; preds = %308, %304
%311 = load i32, ptr %18, align 4
%312 = call i32 @IsMiscFunctionKey(i32 noundef %311)
%313 = icmp ne i32 %312, 0
br i1 %313, label %314, label %316
314: ; preds = %310
%315 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
br label %316
316: ; preds = %314, %310
%317 = load i32, ptr %19, align 4
%318 = call i32 @IsMiscFunctionKey(i32 noundef %317)
%319 = icmp ne i32 %318, 0
br i1 %319, label %320, label %322
320: ; preds = %316
%321 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
br label %322
322: ; preds = %320, %316
%323 = load i32, ptr %18, align 4
%324 = call i32 @IsModifierKey(i32 noundef %323)
%325 = icmp ne i32 %324, 0
br i1 %325, label %326, label %328
326: ; preds = %322
%327 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
br label %328
328: ; preds = %326, %322
%329 = load i32, ptr %19, align 4
%330 = call i32 @IsModifierKey(i32 noundef %329)
%331 = icmp ne i32 %330, 0
br i1 %331, label %332, label %334
332: ; preds = %328
%333 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
br label %334
334: ; preds = %332, %328
%335 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
br label %336
336: ; preds = %334, %196
br label %337
337: ; preds = %120, %336, %143
br label %116, !llvm.loop !6
338: ; preds = %116
%339 = load double, ptr %17, align 8
%340 = fcmp ogt double %339, 1.660000e+01
br i1 %340, label %341, label %359
341: ; preds = %338
%342 = load ptr, ptr %14, align 8
%343 = icmp ne ptr %342, null
br i1 %343, label %359, label %344
344: ; preds = %341
br label %345
345: ; preds = %355, %344
%346 = load double, ptr %17, align 8
%347 = fcmp ogt double %346, 1.660000e+01
br i1 %347, label %348, label %352
348: ; preds = %345
%349 = load ptr, ptr %14, align 8
%350 = icmp ne ptr %349, null
%351 = xor i1 %350, true
br label %352
352: ; preds = %348, %345
%353 = phi i1 [ false, %345 ], [ %351, %348 ]
br i1 %353, label %354, label %358
354: ; preds = %352
br label %355
355: ; preds = %354
%356 = load double, ptr %17, align 8
%357 = fsub double %356, 1.660000e+01
store double %357, ptr %17, align 8
br label %345, !llvm.loop !8
358: ; preds = %352
br label %359
359: ; preds = %358, %341, %338
%360 = getelementptr inbounds %struct.timespec, ptr %16, i32 0, i32 0
%361 = load double, ptr %360, align 8
%362 = getelementptr inbounds %struct.timespec, ptr %15, i32 0, i32 0
store double %361, ptr %362, align 8
%363 = getelementptr inbounds %struct.timespec, ptr %16, i32 0, i32 1
%364 = load i32, ptr %363, align 8
%365 = getelementptr inbounds %struct.timespec, ptr %15, i32 0, i32 1
store i32 %364, ptr %365, align 8
%366 = load double, ptr %17, align 8
%367 = fcmp olt double %366, 1.660000e+01
br i1 %367, label %368, label %398
368: ; preds = %359
%369 = load ptr, ptr %14, align 8
%370 = icmp ne ptr %369, null
br i1 %370, label %398, label %371
371: ; preds = %368
store i32 0, ptr %29, align 4
%372 = load double, ptr %17, align 8
%373 = fdiv double %372, 1.000000e+03
%374 = getelementptr inbounds %struct.timespec, ptr %28, i32 0, i32 0
store double %373, ptr %374, align 8
%375 = load double, ptr %17, align 8
%376 = fptosi double %375 to i32
%377 = srem i32 %376, 1000
%378 = mul nsw i32 %377, 1000000
%379 = getelementptr inbounds %struct.timespec, ptr %28, i32 0, i32 1
store i32 %378, ptr %379, align 8
br label %380
380: ; preds = %395, %371
%381 = getelementptr inbounds %struct.timespec, ptr %28, i32 0, i32 0
%382 = load double, ptr %381, align 8
%383 = getelementptr inbounds %struct.timespec, ptr %27, i32 0, i32 0
store double %382, ptr %383, align 8
%384 = getelementptr inbounds %struct.timespec, ptr %28, i32 0, i32 1
%385 = load i32, ptr %384, align 8
%386 = getelementptr inbounds %struct.timespec, ptr %27, i32 0, i32 1
store i32 %385, ptr %386, align 8
store i64 0, ptr @errno, align 8
%387 = call i32 @nanosleep(ptr noundef %27, ptr noundef %28)
store i32 %387, ptr %29, align 4
br label %388
388: ; preds = %380
%389 = load i32, ptr %29, align 4
%390 = icmp eq i32 %389, -1
br i1 %390, label %391, label %395
391: ; preds = %388
%392 = load i64, ptr @errno, align 8
%393 = load i64, ptr @EINTR, align 8
%394 = icmp eq i64 %392, %393
br label %395
395: ; preds = %391, %388
%396 = phi i1 [ false, %388 ], [ %394, %391 ]
br i1 %396, label %380, label %397, !llvm.loop !9
397: ; preds = %395
br label %398
398: ; preds = %397, %368, %359
br label %105, !llvm.loop !10
399: ; preds = %105
%400 = load ptr, ptr %10, align 8
%401 = call i32 @XFree(ptr noundef %400)
store ptr null, ptr %10, align 8
%402 = load ptr, ptr %9, align 8
%403 = call i32 @XFree(ptr noundef %402)
store ptr null, ptr %9, align 8
%404 = load ptr, ptr %6, align 8
%405 = load i32, ptr %8, align 4
%406 = call i32 @XDestroyWindow(ptr noundef %404, i32 noundef %405)
%407 = load ptr, ptr %6, align 8
%408 = call i32 @XCloseDisplay(ptr noundef %407)
store ptr null, ptr %6, align 8
%409 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %409, ptr %3, align 4
br label %410
410: ; preds = %399, %33
%411 = load i32, ptr %3, align 4
ret i32 %411
}
declare ptr @XOpenDisplay(ptr noundef) #1
declare i64 @BlackPixel(ptr noundef, i32 noundef) #1
declare i32 @DefaultScreen(ptr noundef) #1
declare i32 @XCreateSimpleWindow(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, i64 noundef) #1
declare i32 @DefaultRootWindow(ptr noundef) #1
declare ptr @XAllocWMHints(...) #1
declare ptr @XAllocSizeHints(...) #1
declare i32 @Xutf8SetWMProperties(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @XSelectInput(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @XInternAtom(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @XSetWMProtocols(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @XMapWindow(ptr noundef, i32 noundef) #1
declare i32 @XWindowEvent(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @clock_gettime(i32 noundef, ptr noundef) #1
declare i64 @timespec_diff(ptr noundef, ptr noundef) #1
declare i64 @XPending(ptr noundef) #1
declare i32 @XNextEvent(ptr noundef, ptr noundef) #1
declare i32 @XLookupString(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @XLookupKeysym(ptr noundef, i32 noundef) #1
declare ptr @XKeysymToString(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @IsCursorKey(i32 noundef) #1
declare i32 @IsFunctionKey(i32 noundef) #1
declare i32 @IsKeypadKey(i32 noundef) #1
declare i32 @IsMiscFunctionKey(i32 noundef) #1
declare i32 @IsModifierKey(i32 noundef) #1
declare i32 @nanosleep(ptr noundef, ptr noundef) #1
declare i32 @XFree(ptr noundef) #1
declare i32 @XDestroyWindow(ptr noundef, i32 noundef) #1
declare i32 @XCloseDisplay(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpalcosu4p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_19__ = type { i32, %struct.TYPE_15__, %struct.TYPE_17__ }
%struct.TYPE_15__ = type { i32 }
%struct.TYPE_17__ = type { %struct.TYPE_16__, i32 }
%struct.TYPE_16__ = type { ptr }
%struct.timespec = type { double, i32 }
%struct.TYPE_18__ = type { i32, i32, i32, i32, ptr }
@EXIT_FAILURE = dso_local global i32 0, align 4
@InputHint = dso_local global i32 0, align 4
@StateHint = dso_local global i32 0, align 4
@True = dso_local global ptr null, align 8
@NormalState = dso_local global i32 0, align 4
@PMinSize = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [9 x i8] c"Phase 01\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@ExposureMask = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [13 x i8] c"WM_PROTOCOLS\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"WM_DELETE_WINDOW\00", align 1
@KeyPressMask = dso_local global i32 0, align 4
@False = dso_local global ptr null, align 8
@CLOCK_MONOTONIC_RAW = dso_local global i32 0, align 4
@XK_Return = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [18 x i8] c"\0A-Done Chatting-\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"Message: \0A\00", align 1
@XK_Escape = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [27 x i8] c"Pressed Escape, quitting.\0A\00", align 1
@XK_q = dso_local global i32 0, align 4
@ControlMask = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [27 x i8] c"Pressed Ctrl+q, quitting.\0A\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.9 = private unnamed_addr constant [21 x i8] c"Key pressed: %s - %s\00", align 1
@ShiftMask = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [9 x i8] c" | Shift\00", align 1
@LockMask = dso_local global i32 0, align 4
@.str.11 = private unnamed_addr constant [8 x i8] c" | Lock\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c" | Ctrl\00", align 1
@Mod1Mask = dso_local global i32 0, align 4
@.str.13 = private unnamed_addr constant [7 x i8] c" | Alt\00", align 1
@Mod2Mask = dso_local global i32 0, align 4
@.str.14 = private unnamed_addr constant [12 x i8] c" | Num Lock\00", align 1
@Mod3Mask = dso_local global i32 0, align 4
@.str.15 = private unnamed_addr constant [8 x i8] c" | Mod3\00", align 1
@Mod4Mask = dso_local global i32 0, align 4
@.str.16 = private unnamed_addr constant [8 x i8] c" | Mod4\00", align 1
@Mod5Mask = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [8 x i8] c" | Mod5\00", align 1
@.str.18 = private unnamed_addr constant [18 x i8] c" | Cursor Key (0)\00", align 1
@.str.19 = private unnamed_addr constant [18 x i8] c" | Cursor Key (1)\00", align 1
@.str.20 = private unnamed_addr constant [20 x i8] c" | Function key (0)\00", align 1
@.str.21 = private unnamed_addr constant [20 x i8] c" | Function key (1)\00", align 1
@.str.22 = private unnamed_addr constant [14 x i8] c" | keypad (0)\00", align 1
@.str.23 = private unnamed_addr constant [14 x i8] c" | keypad (1)\00", align 1
@.str.24 = private unnamed_addr constant [10 x i8] c" | Fn (0)\00", align 1
@.str.25 = private unnamed_addr constant [10 x i8] c" | Fn (1)\00", align 1
@.str.26 = private unnamed_addr constant [16 x i8] c" | Modifier (0)\00", align 1
@.str.27 = private unnamed_addr constant [16 x i8] c" | Modifier (1)\00", align 1
@.str.28 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca %struct.TYPE_19__, align 8
%14 = alloca ptr, align 8
%15 = alloca %struct.timespec, align 8
%16 = alloca %struct.timespec, align 8
%17 = alloca double, align 8
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca [20 x i8], align 16
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca ptr, align 8
%27 = alloca %struct.timespec, align 8
%28 = alloca %struct.timespec, align 8
%29 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%30 = call ptr @XOpenDisplay(ptr noundef null)
store ptr %30, ptr %6, align 8
%31 = load ptr, ptr %6, align 8
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %35
33: ; preds = %2
%34 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %34, ptr %3, align 4
br label %414
35: ; preds = %2
%36 = load ptr, ptr %6, align 8
%37 = load ptr, ptr %6, align 8
%38 = call i32 @DefaultScreen(ptr noundef %37)
%39 = call i64 @BlackPixel(ptr noundef %36, i32 noundef %38)
store i64 %39, ptr %7, align 8
%40 = load ptr, ptr %6, align 8
%41 = load ptr, ptr %6, align 8
%42 = call i32 @DefaultRootWindow(ptr noundef %41)
%43 = load i64, ptr %7, align 8
%44 = load i64, ptr %7, align 8
%45 = call i32 @XCreateSimpleWindow(ptr noundef %40, i32 noundef %42, i32 noundef 0, i32 noundef 0, i32 noundef 800, i32 noundef 600, i32 noundef 0, i64 noundef %43, i64 noundef %44)
store i32 %45, ptr %8, align 4
%46 = call ptr (...) @XAllocWMHints()
store ptr %46, ptr %9, align 8
%47 = load i32, ptr @InputHint, align 4
%48 = load i32, ptr @StateHint, align 4
%49 = or i32 %47, %48
%50 = load ptr, ptr %9, align 8
%51 = getelementptr inbounds %struct.TYPE_18__, ptr %50, i32 0, i32 0
store i32 %49, ptr %51, align 8
%52 = load ptr, ptr @True, align 8
%53 = load ptr, ptr %9, align 8
%54 = getelementptr inbounds %struct.TYPE_18__, ptr %53, i32 0, i32 4
store ptr %52, ptr %54, align 8
%55 = load i32, ptr @NormalState, align 4
%56 = load ptr, ptr %9, align 8
%57 = getelementptr inbounds %struct.TYPE_18__, ptr %56, i32 0, i32 3
store i32 %55, ptr %57, align 4
%58 = call ptr (...) @XAllocSizeHints()
store ptr %58, ptr %10, align 8
%59 = load i32, ptr @PMinSize, align 4
%60 = load ptr, ptr %10, align 8
%61 = getelementptr inbounds %struct.TYPE_18__, ptr %60, i32 0, i32 0
store i32 %59, ptr %61, align 8
%62 = load ptr, ptr %10, align 8
%63 = getelementptr inbounds %struct.TYPE_18__, ptr %62, i32 0, i32 1
store i32 400, ptr %63, align 4
%64 = load ptr, ptr %10, align 8
%65 = getelementptr inbounds %struct.TYPE_18__, ptr %64, i32 0, i32 2
store i32 300, ptr %65, align 8
%66 = load ptr, ptr %6, align 8
%67 = load i32, ptr %8, align 4
%68 = load ptr, ptr %10, align 8
%69 = load ptr, ptr %9, align 8
%70 = call i32 @Xutf8SetWMProperties(ptr noundef %66, i32 noundef %67, ptr noundef @.str, ptr noundef @.str.1, ptr noundef null, i32 noundef 0, ptr noundef %68, ptr noundef %69, ptr noundef null)
%71 = load ptr, ptr %6, align 8
%72 = load i32, ptr %8, align 4
%73 = load i32, ptr @ExposureMask, align 4
%74 = call i32 @XSelectInput(ptr noundef %71, i32 noundef %72, i32 noundef %73)
%75 = load ptr, ptr %6, align 8
%76 = load ptr, ptr @True, align 8
%77 = call i32 @XInternAtom(ptr noundef %75, ptr noundef @.str.2, ptr noundef %76)
store i32 %77, ptr %11, align 4
%78 = load ptr, ptr %6, align 8
%79 = load ptr, ptr @True, align 8
%80 = call i32 @XInternAtom(ptr noundef %78, ptr noundef @.str.3, ptr noundef %79)
store i32 %80, ptr %12, align 4
%81 = load ptr, ptr %6, align 8
%82 = load i32, ptr %8, align 4
%83 = call i32 @XSetWMProtocols(ptr noundef %81, i32 noundef %82, ptr noundef %12, i32 noundef 1)
%84 = load ptr, ptr %6, align 8
%85 = load i32, ptr %8, align 4
%86 = call i32 @XMapWindow(ptr noundef %84, i32 noundef %85)
%87 = load ptr, ptr %6, align 8
%88 = load i32, ptr %8, align 4
%89 = load i32, ptr @ExposureMask, align 4
%90 = call i32 @XWindowEvent(ptr noundef %87, i32 noundef %88, i32 noundef %89, ptr noundef %13)
%91 = load ptr, ptr %6, align 8
%92 = load i32, ptr %8, align 4
%93 = load i32, ptr @KeyPressMask, align 4
%94 = call i32 @XSelectInput(ptr noundef %91, i32 noundef %92, i32 noundef %93)
%95 = load ptr, ptr @False, align 8
store ptr %95, ptr %14, align 8
%96 = load i32, ptr @CLOCK_MONOTONIC_RAW, align 4
%97 = call i32 @clock_gettime(i32 noundef %96, ptr noundef %16)
%98 = getelementptr inbounds %struct.timespec, ptr %16, i32 0, i32 0
%99 = load double, ptr %98, align 8
%100 = getelementptr inbounds %struct.timespec, ptr %15, i32 0, i32 0
store double %99, ptr %100, align 8
%101 = getelementptr inbounds %struct.timespec, ptr %16, i32 0, i32 1
%102 = load i32, ptr %101, align 8
%103 = getelementptr inbounds %struct.timespec, ptr %15, i32 0, i32 1
store i32 %102, ptr %103, align 8
store double 0.000000e+00, ptr %17, align 8
store ptr null, ptr %21, align 8
store ptr null, ptr %22, align 8
store i32 20, ptr %24, align 4
store i32 0, ptr %25, align 4
%104 = load ptr, ptr @False, align 8
store ptr %104, ptr %26, align 8
%105 = load ptr, ptr %14, align 8
%106 = icmp ne ptr %105, null
%107 = xor i1 %106, true
br i1 %107, label %.lr.ph2, label %403
.lr.ph2: ; preds = %35
br label %108
108: ; preds = %.lr.ph2, %399
%109 = load i32, ptr @CLOCK_MONOTONIC_RAW, align 4
%110 = call i32 @clock_gettime(i32 noundef %109, ptr noundef %16)
%111 = call i64 @timespec_diff(ptr noundef %16, ptr noundef %15)
%112 = sitofp i64 %111 to double
%113 = load double, ptr %17, align 8
%114 = fadd double %113, %112
store double %114, ptr %17, align 8
%115 = load ptr, ptr %6, align 8
%116 = call i64 @XPending(ptr noundef %115)
%117 = icmp sgt i64 %116, 0
br i1 %117, label %.lr.ph, label %339
.lr.ph: ; preds = %108
br label %118
118: ; preds = %.lr.ph, %.backedge
%119 = load ptr, ptr %6, align 8
%120 = call i32 @XNextEvent(ptr noundef %119, ptr noundef %13)
%121 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 0
%122 = load i32, ptr %121, align 8
switch i32 %122, label %338 [
i32 129, label %123
i32 128, label %142
]
123: ; preds = %118
%124 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 2
%125 = getelementptr inbounds %struct.TYPE_17__, ptr %124, i32 0, i32 1
%126 = load i32, ptr %125, align 8
%127 = load i32, ptr %11, align 4
%128 = icmp eq i32 %126, %127
br i1 %128, label %129, label %141
129: ; preds = %123
%130 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 2
%131 = getelementptr inbounds %struct.TYPE_17__, ptr %130, i32 0, i32 0
%132 = getelementptr inbounds %struct.TYPE_16__, ptr %131, i32 0, i32 0
%133 = load ptr, ptr %132, align 8
%134 = getelementptr inbounds i32, ptr %133, i64 0
%135 = load i32, ptr %134, align 4
%136 = load i32, ptr %12, align 4
%137 = icmp eq i32 %135, %136
br i1 %137, label %138, label %140
138: ; preds = %129
%139 = load ptr, ptr @True, align 8
store ptr %139, ptr %14, align 8
br label %140
140: ; preds = %138, %129
br label %141
141: ; preds = %140, %123
br label %338
142: ; preds = %118
%143 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%144 = getelementptr inbounds [20 x i8], ptr %23, i64 0, i64 0
%145 = load i32, ptr %24, align 4
%146 = call i32 @XLookupString(ptr noundef %143, ptr noundef %144, i32 noundef %145, ptr noundef %20, ptr noundef null)
store i32 %146, ptr %25, align 4
%147 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%148 = call i32 @XLookupKeysym(ptr noundef %147, i32 noundef 0)
store i32 %148, ptr %18, align 4
%149 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%150 = call i32 @XLookupKeysym(ptr noundef %149, i32 noundef 1)
store i32 %150, ptr %19, align 4
%151 = load i32, ptr %18, align 4
%152 = call ptr @XKeysymToString(i32 noundef %151)
store ptr %152, ptr %21, align 8
%153 = load i32, ptr %19, align 4
%154 = call ptr @XKeysymToString(i32 noundef %153)
store ptr %154, ptr %22, align 8
%155 = load i32, ptr @XK_Return, align 4
%156 = load i32, ptr %18, align 4
%157 = icmp eq i32 %155, %156
br i1 %157, label %158, label %168
158: ; preds = %142
%159 = load ptr, ptr %26, align 8
%160 = icmp ne ptr %159, null
br i1 %160, label %161, label %164
161: ; preds = %158
%162 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%163 = load ptr, ptr @False, align 8
store ptr %163, ptr %26, align 8
br label %167
164: ; preds = %158
%165 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%166 = load ptr, ptr @True, align 8
store ptr %166, ptr %26, align 8
br label %167
167: ; preds = %164, %161
br label %194
168: ; preds = %142
%169 = load i32, ptr %18, align 4
%170 = load i32, ptr @XK_Escape, align 4
%171 = icmp eq i32 %169, %170
br i1 %171, label %172, label %178
172: ; preds = %168
%173 = load ptr, ptr @True, align 8
store ptr %173, ptr %14, align 8
%174 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %.backedge
.backedge: ; preds = %172, %189, %338
%175 = load ptr, ptr %6, align 8
%176 = call i64 @XPending(ptr noundef %175)
%177 = icmp sgt i64 %176, 0
br i1 %177, label %118, label %._crit_edge, !llvm.loop !6
178: ; preds = %168
%179 = load i32, ptr @XK_q, align 4
%180 = load i32, ptr %18, align 4
%181 = icmp eq i32 %179, %180
br i1 %181, label %182, label %192
182: ; preds = %178
%183 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%184 = getelementptr inbounds %struct.TYPE_15__, ptr %183, i32 0, i32 0
%185 = load i32, ptr %184, align 4
%186 = load i32, ptr @ControlMask, align 4
%187 = and i32 %185, %186
%188 = icmp ne i32 %187, 0
br i1 %188, label %189, label %192
189: ; preds = %182
%190 = load ptr, ptr @True, align 8
store ptr %190, ptr %14, align 8
%191 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %.backedge
192: ; preds = %182, %178
br label %193
193: ; preds = %192
br label %194
194: ; preds = %193, %167
%195 = load ptr, ptr %26, align 8
%196 = icmp ne ptr %195, null
br i1 %196, label %197, label %200
197: ; preds = %194
%198 = getelementptr inbounds [20 x i8], ptr %23, i64 0, i64 0
%199 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %198)
br label %337
200: ; preds = %194
%201 = load ptr, ptr %21, align 8
%202 = load ptr, ptr %22, align 8
%203 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %201, ptr noundef %202)
%204 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%205 = getelementptr inbounds %struct.TYPE_15__, ptr %204, i32 0, i32 0
%206 = load i32, ptr %205, align 4
%207 = load i32, ptr @ShiftMask, align 4
%208 = and i32 %206, %207
%209 = icmp ne i32 %208, 0
br i1 %209, label %210, label %212
210: ; preds = %200
%211 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %212
212: ; preds = %210, %200
%213 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%214 = getelementptr inbounds %struct.TYPE_15__, ptr %213, i32 0, i32 0
%215 = load i32, ptr %214, align 4
%216 = load i32, ptr @LockMask, align 4
%217 = and i32 %215, %216
%218 = icmp ne i32 %217, 0
br i1 %218, label %219, label %221
219: ; preds = %212
%220 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %221
221: ; preds = %219, %212
%222 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%223 = getelementptr inbounds %struct.TYPE_15__, ptr %222, i32 0, i32 0
%224 = load i32, ptr %223, align 4
%225 = load i32, ptr @ControlMask, align 4
%226 = and i32 %224, %225
%227 = icmp ne i32 %226, 0
br i1 %227, label %228, label %230
228: ; preds = %221
%229 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %230
230: ; preds = %228, %221
%231 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%232 = getelementptr inbounds %struct.TYPE_15__, ptr %231, i32 0, i32 0
%233 = load i32, ptr %232, align 4
%234 = load i32, ptr @Mod1Mask, align 4
%235 = and i32 %233, %234
%236 = icmp ne i32 %235, 0
br i1 %236, label %237, label %239
237: ; preds = %230
%238 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %239
239: ; preds = %237, %230
%240 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%241 = getelementptr inbounds %struct.TYPE_15__, ptr %240, i32 0, i32 0
%242 = load i32, ptr %241, align 4
%243 = load i32, ptr @Mod2Mask, align 4
%244 = and i32 %242, %243
%245 = icmp ne i32 %244, 0
br i1 %245, label %246, label %248
246: ; preds = %239
%247 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
br label %248
248: ; preds = %246, %239
%249 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%250 = getelementptr inbounds %struct.TYPE_15__, ptr %249, i32 0, i32 0
%251 = load i32, ptr %250, align 4
%252 = load i32, ptr @Mod3Mask, align 4
%253 = and i32 %251, %252
%254 = icmp ne i32 %253, 0
br i1 %254, label %255, label %257
255: ; preds = %248
%256 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
br label %257
257: ; preds = %255, %248
%258 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%259 = getelementptr inbounds %struct.TYPE_15__, ptr %258, i32 0, i32 0
%260 = load i32, ptr %259, align 4
%261 = load i32, ptr @Mod4Mask, align 4
%262 = and i32 %260, %261
%263 = icmp ne i32 %262, 0
br i1 %263, label %264, label %266
264: ; preds = %257
%265 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
br label %266
266: ; preds = %264, %257
%267 = getelementptr inbounds %struct.TYPE_19__, ptr %13, i32 0, i32 1
%268 = getelementptr inbounds %struct.TYPE_15__, ptr %267, i32 0, i32 0
%269 = load i32, ptr %268, align 4
%270 = load i32, ptr @Mod5Mask, align 4
%271 = and i32 %269, %270
%272 = icmp ne i32 %271, 0
br i1 %272, label %273, label %275
273: ; preds = %266
%274 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
br label %275
275: ; preds = %273, %266
%276 = load i32, ptr %18, align 4
%277 = call i32 @IsCursorKey(i32 noundef %276)
%278 = icmp ne i32 %277, 0
br i1 %278, label %279, label %281
279: ; preds = %275
%280 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
br label %281
281: ; preds = %279, %275
%282 = load i32, ptr %19, align 4
%283 = call i32 @IsCursorKey(i32 noundef %282)
%284 = icmp ne i32 %283, 0
br i1 %284, label %285, label %287
285: ; preds = %281
%286 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
br label %287
287: ; preds = %285, %281
%288 = load i32, ptr %18, align 4
%289 = call i32 @IsFunctionKey(i32 noundef %288)
%290 = icmp ne i32 %289, 0
br i1 %290, label %291, label %293
291: ; preds = %287
%292 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
br label %293
293: ; preds = %291, %287
%294 = load i32, ptr %19, align 4
%295 = call i32 @IsFunctionKey(i32 noundef %294)
%296 = icmp ne i32 %295, 0
br i1 %296, label %297, label %299
297: ; preds = %293
%298 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
br label %299
299: ; preds = %297, %293
%300 = load i32, ptr %18, align 4
%301 = call i32 @IsKeypadKey(i32 noundef %300)
%302 = icmp ne i32 %301, 0
br i1 %302, label %303, label %305
303: ; preds = %299
%304 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
br label %305
305: ; preds = %303, %299
%306 = load i32, ptr %19, align 4
%307 = call i32 @IsKeypadKey(i32 noundef %306)
%308 = icmp ne i32 %307, 0
br i1 %308, label %309, label %311
309: ; preds = %305
%310 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
br label %311
311: ; preds = %309, %305
%312 = load i32, ptr %18, align 4
%313 = call i32 @IsMiscFunctionKey(i32 noundef %312)
%314 = icmp ne i32 %313, 0
br i1 %314, label %315, label %317
315: ; preds = %311
%316 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
br label %317
317: ; preds = %315, %311
%318 = load i32, ptr %19, align 4
%319 = call i32 @IsMiscFunctionKey(i32 noundef %318)
%320 = icmp ne i32 %319, 0
br i1 %320, label %321, label %323
321: ; preds = %317
%322 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
br label %323
323: ; preds = %321, %317
%324 = load i32, ptr %18, align 4
%325 = call i32 @IsModifierKey(i32 noundef %324)
%326 = icmp ne i32 %325, 0
br i1 %326, label %327, label %329
327: ; preds = %323
%328 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
br label %329
329: ; preds = %327, %323
%330 = load i32, ptr %19, align 4
%331 = call i32 @IsModifierKey(i32 noundef %330)
%332 = icmp ne i32 %331, 0
br i1 %332, label %333, label %335
333: ; preds = %329
%334 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
br label %335
335: ; preds = %333, %329
%336 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
br label %337
337: ; preds = %335, %197
br label %338
338: ; preds = %337, %141, %118
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %339
339: ; preds = %._crit_edge, %108
%340 = load double, ptr %17, align 8
%341 = fcmp ogt double %340, 1.660000e+01
br i1 %341, label %342, label %360
342: ; preds = %339
%343 = load ptr, ptr %14, align 8
%344 = icmp ne ptr %343, null
br i1 %344, label %360, label %345
345: ; preds = %342
br label %346
346: ; preds = %356, %345
%347 = load double, ptr %17, align 8
%348 = fcmp ogt double %347, 1.660000e+01
br i1 %348, label %349, label %353
349: ; preds = %346
%350 = load ptr, ptr %14, align 8
%351 = icmp ne ptr %350, null
%352 = xor i1 %351, true
br label %353
353: ; preds = %349, %346
%354 = phi i1 [ false, %346 ], [ %352, %349 ]
br i1 %354, label %355, label %359
355: ; preds = %353
br label %356
356: ; preds = %355
%357 = load double, ptr %17, align 8
%358 = fsub double %357, 1.660000e+01
store double %358, ptr %17, align 8
br label %346, !llvm.loop !8
359: ; preds = %353
br label %360
360: ; preds = %359, %342, %339
%361 = getelementptr inbounds %struct.timespec, ptr %16, i32 0, i32 0
%362 = load double, ptr %361, align 8
%363 = getelementptr inbounds %struct.timespec, ptr %15, i32 0, i32 0
store double %362, ptr %363, align 8
%364 = getelementptr inbounds %struct.timespec, ptr %16, i32 0, i32 1
%365 = load i32, ptr %364, align 8
%366 = getelementptr inbounds %struct.timespec, ptr %15, i32 0, i32 1
store i32 %365, ptr %366, align 8
%367 = load double, ptr %17, align 8
%368 = fcmp olt double %367, 1.660000e+01
br i1 %368, label %369, label %399
369: ; preds = %360
%370 = load ptr, ptr %14, align 8
%371 = icmp ne ptr %370, null
br i1 %371, label %399, label %372
372: ; preds = %369
store i32 0, ptr %29, align 4
%373 = load double, ptr %17, align 8
%374 = fdiv double %373, 1.000000e+03
%375 = getelementptr inbounds %struct.timespec, ptr %28, i32 0, i32 0
store double %374, ptr %375, align 8
%376 = load double, ptr %17, align 8
%377 = fptosi double %376 to i32
%378 = srem i32 %377, 1000
%379 = mul nsw i32 %378, 1000000
%380 = getelementptr inbounds %struct.timespec, ptr %28, i32 0, i32 1
store i32 %379, ptr %380, align 8
br label %381
381: ; preds = %396, %372
%382 = getelementptr inbounds %struct.timespec, ptr %28, i32 0, i32 0
%383 = load double, ptr %382, align 8
%384 = getelementptr inbounds %struct.timespec, ptr %27, i32 0, i32 0
store double %383, ptr %384, align 8
%385 = getelementptr inbounds %struct.timespec, ptr %28, i32 0, i32 1
%386 = load i32, ptr %385, align 8
%387 = getelementptr inbounds %struct.timespec, ptr %27, i32 0, i32 1
store i32 %386, ptr %387, align 8
store i64 0, ptr @errno, align 8
%388 = call i32 @nanosleep(ptr noundef %27, ptr noundef %28)
store i32 %388, ptr %29, align 4
br label %389
389: ; preds = %381
%390 = load i32, ptr %29, align 4
%391 = icmp eq i32 %390, -1
br i1 %391, label %392, label %396
392: ; preds = %389
%393 = load i64, ptr @errno, align 8
%394 = load i64, ptr @EINTR, align 8
%395 = icmp eq i64 %393, %394
br label %396
396: ; preds = %392, %389
%397 = phi i1 [ false, %389 ], [ %395, %392 ]
br i1 %397, label %381, label %398, !llvm.loop !9
398: ; preds = %396
br label %399
399: ; preds = %398, %369, %360
%400 = load ptr, ptr %14, align 8
%401 = icmp ne ptr %400, null
%402 = xor i1 %401, true
br i1 %402, label %108, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %399
br label %403
403: ; preds = %._crit_edge3, %35
%404 = load ptr, ptr %10, align 8
%405 = call i32 @XFree(ptr noundef %404)
store ptr null, ptr %10, align 8
%406 = load ptr, ptr %9, align 8
%407 = call i32 @XFree(ptr noundef %406)
store ptr null, ptr %9, align 8
%408 = load ptr, ptr %6, align 8
%409 = load i32, ptr %8, align 4
%410 = call i32 @XDestroyWindow(ptr noundef %408, i32 noundef %409)
%411 = load ptr, ptr %6, align 8
%412 = call i32 @XCloseDisplay(ptr noundef %411)
store ptr null, ptr %6, align 8
%413 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %413, ptr %3, align 4
br label %414
414: ; preds = %403, %33
%415 = load i32, ptr %3, align 4
ret i32 %415
}
declare ptr @XOpenDisplay(ptr noundef) #1
declare i64 @BlackPixel(ptr noundef, i32 noundef) #1
declare i32 @DefaultScreen(ptr noundef) #1
declare i32 @XCreateSimpleWindow(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, i64 noundef) #1
declare i32 @DefaultRootWindow(ptr noundef) #1
declare ptr @XAllocWMHints(...) #1
declare ptr @XAllocSizeHints(...) #1
declare i32 @Xutf8SetWMProperties(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @XSelectInput(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @XInternAtom(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @XSetWMProtocols(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @XMapWindow(ptr noundef, i32 noundef) #1
declare i32 @XWindowEvent(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @clock_gettime(i32 noundef, ptr noundef) #1
declare i64 @timespec_diff(ptr noundef, ptr noundef) #1
declare i64 @XPending(ptr noundef) #1
declare i32 @XNextEvent(ptr noundef, ptr noundef) #1
declare i32 @XLookupString(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @XLookupKeysym(ptr noundef, i32 noundef) #1
declare ptr @XKeysymToString(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @IsCursorKey(i32 noundef) #1
declare i32 @IsFunctionKey(i32 noundef) #1
declare i32 @IsKeypadKey(i32 noundef) #1
declare i32 @IsMiscFunctionKey(i32 noundef) #1
declare i32 @IsModifierKey(i32 noundef) #1
declare i32 @nanosleep(ptr noundef, ptr noundef) #1
declare i32 @XFree(ptr noundef) #1
declare i32 @XDestroyWindow(ptr noundef, i32 noundef) #1
declare i32 @XCloseDisplay(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmps0tmckyo.c'
source_filename = "/tmp/tmps0tmckyo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Voltages off: bad response: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @programmer_voltages_off(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i8, align 1
store i32 %0, ptr %3, align 4
store i8 5, ptr %4, align 1
%6 = load i32, ptr %3, align 4
%7 = call i32 @write(i32 noundef %6, ptr noundef %4, i32 noundef 1)
%8 = load i32, ptr %3, align 4
%9 = call i32 @read(i32 noundef %8, ptr noundef %5, i32 noundef 1)
%10 = load i8, ptr %5, align 1
%11 = zext i8 %10 to i32
%12 = icmp ne i32 %11, 118
br i1 %12, label %13, label %16
13: ; preds = %1
%14 = load i8, ptr %5, align 1
%15 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %14)
store i32 -1, ptr %2, align 4
br label %17
16: ; preds = %1
store i32 0, ptr %2, align 4
br label %17
17: ; preds = %16, %13
%18 = load i32, ptr %2, align 4
ret i32 %18
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps0tmckyo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Voltages off: bad response: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @programmer_voltages_off(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i8, align 1
store i32 %0, ptr %3, align 4
store i8 5, ptr %4, align 1
%6 = load i32, ptr %3, align 4
%7 = call i32 @write(i32 noundef %6, ptr noundef %4, i32 noundef 1)
%8 = load i32, ptr %3, align 4
%9 = call i32 @read(i32 noundef %8, ptr noundef %5, i32 noundef 1)
%10 = load i8, ptr %5, align 1
%11 = zext i8 %10 to i32
%12 = icmp ne i32 %11, 118
br i1 %12, label %13, label %16
13: ; preds = %1
%14 = load i8, ptr %5, align 1
%15 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %14)
store i32 -1, ptr %2, align 4
br label %17
16: ; preds = %1
store i32 0, ptr %2, align 4
br label %17
17: ; preds = %16, %13
%18 = load i32, ptr %2, align 4
ret i32 %18
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcctj_smc.c'
source_filename = "/tmp/tmpcctj_smc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 218, ptr %3, align 4
store i32 209, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 %5, %6
store i32 %7, ptr %2, align 4
store i32 3, ptr %3, align 4
store i32 5, ptr %4, align 4
%8 = call i32 @s(ptr noundef %2)
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 13
%11 = zext i1 %10 to i32
%12 = call i32 @test_assert(i32 noundef %11)
ret i32 0
}
declare i32 @s(ptr noundef) #1
declare i32 @test_assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcctj_smc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 218, ptr %3, align 4
store i32 209, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 %5, %6
store i32 %7, ptr %2, align 4
store i32 3, ptr %3, align 4
store i32 5, ptr %4, align 4
%8 = call i32 @s(ptr noundef %2)
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 13
%11 = zext i1 %10 to i32
%12 = call i32 @test_assert(i32 noundef %11)
ret i32 0
}
declare i32 @s(ptr noundef) #1
declare i32 @test_assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9tgji5h_.c'
source_filename = "/tmp/tmp9tgji5h_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @balance(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 ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = sub nsw i32 %6, 1
%8 = call ptr @do_balance(ptr noundef %5, i32 noundef 0, i32 noundef %7)
ret ptr %8
}
declare ptr @do_balance(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9tgji5h_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @balance(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 ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = sub nsw i32 %6, 1
%8 = call ptr @do_balance(ptr noundef %5, i32 noundef 0, i32 noundef %7)
ret ptr %8
}
declare ptr @do_balance(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyk06fv9o.c'
source_filename = "/tmp/tmpyk06fv9o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nrf24_powerUpTx() #0 {
%1 = call i32 @nrf24_configRegister(i32 noundef 7, i32 noundef 112)
%2 = call i32 @nrf24_configRegister(i32 noundef 0, i32 noundef 10)
ret void
}
declare i32 @nrf24_configRegister(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/tmpyk06fv9o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nrf24_powerUpTx() #0 {
%1 = call i32 @nrf24_configRegister(i32 noundef 7, i32 noundef 112)
%2 = call i32 @nrf24_configRegister(i32 noundef 0, i32 noundef 10)
ret void
}
declare i32 @nrf24_configRegister(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/tmpaioezych.c'
source_filename = "/tmp/tmpaioezych.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@_IOLBF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"f:\00", align 1
@optarg = dso_local global ptr null, align 8
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stdin = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [26 x i8] c"%s: ERROR: Too large: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"%s: ERROR: Too large..: %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c" \09\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"%s: unable to read tokens\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"OK\0A\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"ERR\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 ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca [1024 x i8], align 16
%13 = alloca ptr, align 8
%14 = 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 null, ptr %7, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
store ptr %17, ptr %8, align 8
%18 = load i32, ptr @stdout, align 4
%19 = load i32, ptr @_IOLBF, align 4
%20 = call i32 @setvbuf(i32 noundef %18, ptr noundef null, i32 noundef %19, i32 noundef 0)
br label %21
21: ; preds = %34, %2
%22 = load i32, ptr %4, align 4
%23 = load ptr, ptr %5, align 8
%24 = call i32 @getopt(i32 noundef %22, ptr noundef %23, ptr noundef @.str)
store i32 %24, ptr %14, align 4
%25 = icmp ne i32 %24, -1
br i1 %25, label %26, label %35
26: ; preds = %21
%27 = load i32, ptr %14, align 4
switch i32 %27, label %30 [
i32 102, label %28
]
28: ; preds = %26
%29 = load ptr, ptr @optarg, align 8
store ptr %29, ptr %7, align 8
br label %34
30: ; preds = %26
%31 = load ptr, ptr %8, align 8
%32 = call i32 @usage(ptr noundef %31)
%33 = call i32 @exit(i32 noundef 1) #3
unreachable
34: ; preds = %28
br label %21, !llvm.loop !6
35: ; preds = %21
%36 = load ptr, ptr %7, align 8
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %42
38: ; preds = %35
%39 = load ptr, ptr %8, align 8
%40 = call i32 @usage(ptr noundef %39)
%41 = call i32 @exit(i32 noundef 1) #3
unreachable
42: ; preds = %35
%43 = load ptr, ptr %7, align 8
%44 = call ptr @fopen(ptr noundef %43, ptr noundef @.str.1)
store ptr %44, ptr %6, align 8
%45 = load ptr, ptr %6, align 8
%46 = call ptr @load_dict(ptr noundef %45)
store ptr %46, ptr %13, align 8
br label %47
47: ; preds = %112, %42
%48 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%49 = load i32, ptr @stdin, align 4
%50 = call i64 @fgets(ptr noundef %48, i32 noundef 1024, i32 noundef %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %113
52: ; preds = %47
%53 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%54 = call ptr @strchr(ptr noundef %53, i8 noundef signext 10)
store ptr %54, ptr %9, align 8
%55 = icmp eq ptr %54, null
br i1 %55, label %56, label %81
56: ; preds = %52
%57 = load i32, ptr @stderr, align 4
%58 = load ptr, ptr %5, align 8
%59 = getelementptr inbounds ptr, ptr %58, i64 0
%60 = load ptr, ptr %59, align 8
%61 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%62 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %57, ptr noundef @.str.2, ptr noundef %60, ptr noundef %61)
br label %63
63: ; preds = %79, %56
%64 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%65 = load i32, ptr @stdin, align 4
%66 = call i64 @fgets(ptr noundef %64, i32 noundef 1024, i32 noundef %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %80
68: ; preds = %63
%69 = load i32, ptr @stderr, align 4
%70 = load ptr, ptr %5, align 8
%71 = getelementptr inbounds ptr, ptr %70, i64 0
%72 = load ptr, ptr %71, align 8
%73 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%74 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %69, ptr noundef @.str.3, ptr noundef %72, ptr noundef %73)
%75 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%76 = call ptr @strchr(ptr noundef %75, i8 noundef signext 10)
%77 = icmp ne ptr %76, null
br i1 %77, label %78, label %79
78: ; preds = %68
br label %80
79: ; preds = %68
br label %63, !llvm.loop !8
80: ; preds = %78, %63
br label %110
81: ; preds = %52
%82 = load ptr, ptr %9, align 8
store i8 0, ptr %82, align 1
%83 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%84 = call ptr @strtok(ptr noundef %83, ptr noundef @.str.4)
store ptr %84, ptr %11, align 8
%85 = call ptr @strtok(ptr noundef null, ptr noundef @.str.4)
store ptr %85, ptr %10, align 8
%86 = load ptr, ptr %11, align 8
%87 = icmp ne ptr %86, null
br i1 %87, label %88, label %91
88: ; preds = %81
%89 = load ptr, ptr %10, align 8
%90 = icmp ne ptr %89, null
br i1 %90, label %97, label %91
91: ; preds = %88, %81
%92 = load i32, ptr @stderr, align 4
%93 = load ptr, ptr %5, align 8
%94 = getelementptr inbounds ptr, ptr %93, i64 0
%95 = load ptr, ptr %94, align 8
%96 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %92, ptr noundef @.str.5, ptr noundef %95)
br label %110
97: ; preds = %88
%98 = load ptr, ptr %11, align 8
%99 = call i32 @rfc1738_unescape(ptr noundef %98)
%100 = load ptr, ptr %10, align 8
%101 = call i32 @rfc1738_unescape(ptr noundef %100)
%102 = load ptr, ptr %13, align 8
%103 = load ptr, ptr %10, align 8
%104 = load ptr, ptr %11, align 8
%105 = call i64 @dict_lookup(ptr noundef %102, ptr noundef %103, ptr noundef %104)
%106 = icmp ne i64 %105, 0
br i1 %106, label %107, label %109
107: ; preds = %97
%108 = call i32 @printf(ptr noundef @.str.6)
br label %112
109: ; preds = %97
br label %110
110: ; preds = %109, %91, %80
%111 = call i32 @printf(ptr noundef @.str.7)
br label %112
112: ; preds = %110, %107
br label %47, !llvm.loop !9
113: ; preds = %47
%114 = load ptr, ptr %6, align 8
%115 = call i32 @fclose(ptr noundef %114)
ret i32 0
}
declare i32 @setvbuf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @usage(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare ptr @load_dict(ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @rfc1738_unescape(ptr noundef) #1
declare i64 @dict_lookup(ptr noundef, ptr noundef, 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" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaioezych.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@_IOLBF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"f:\00", align 1
@optarg = dso_local global ptr null, align 8
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stdin = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [26 x i8] c"%s: ERROR: Too large: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"%s: ERROR: Too large..: %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c" \09\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"%s: unable to read tokens\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"OK\0A\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"ERR\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 ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca [1024 x i8], align 16
%13 = alloca ptr, align 8
%14 = 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 null, ptr %7, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
store ptr %17, ptr %8, align 8
%18 = load i32, ptr @stdout, align 4
%19 = load i32, ptr @_IOLBF, align 4
%20 = call i32 @setvbuf(i32 noundef %18, ptr noundef null, i32 noundef %19, i32 noundef 0)
%21 = load i32, ptr %4, align 4
%22 = load ptr, ptr %5, align 8
%23 = call i32 @getopt(i32 noundef %21, ptr noundef %22, ptr noundef @.str)
store i32 %23, ptr %14, align 4
%24 = icmp ne i32 %23, -1
br i1 %24, label %.lr.ph, label %38
.lr.ph: ; preds = %2
br label %25
25: ; preds = %.lr.ph, %33
%26 = load i32, ptr %14, align 4
switch i32 %26, label %29 [
i32 102, label %27
]
27: ; preds = %25
%28 = load ptr, ptr @optarg, align 8
store ptr %28, ptr %7, align 8
br label %33
29: ; preds = %25
%30 = load ptr, ptr %8, align 8
%31 = call i32 @usage(ptr noundef %30)
%32 = call i32 @exit(i32 noundef 1) #3
unreachable
33: ; preds = %27
%34 = load i32, ptr %4, align 4
%35 = load ptr, ptr %5, align 8
%36 = call i32 @getopt(i32 noundef %34, ptr noundef %35, ptr noundef @.str)
store i32 %36, ptr %14, align 4
%37 = icmp ne i32 %36, -1
br i1 %37, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %38
38: ; preds = %._crit_edge, %2
%39 = load ptr, ptr %7, align 8
%40 = icmp eq ptr %39, null
br i1 %40, label %41, label %45
41: ; preds = %38
%42 = load ptr, ptr %8, align 8
%43 = call i32 @usage(ptr noundef %42)
%44 = call i32 @exit(i32 noundef 1) #3
unreachable
45: ; preds = %38
%46 = load ptr, ptr %7, align 8
%47 = call ptr @fopen(ptr noundef %46, ptr noundef @.str.1)
store ptr %47, ptr %6, align 8
%48 = load ptr, ptr %6, align 8
%49 = call ptr @load_dict(ptr noundef %48)
store ptr %49, ptr %13, align 8
%50 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%51 = load i32, ptr @stdin, align 4
%52 = call i64 @fgets(ptr noundef %50, i32 noundef 1024, i32 noundef %51)
%53 = icmp ne i64 %52, 0
br i1 %53, label %.lr.ph4, label %120
.lr.ph4: ; preds = %45
br label %54
54: ; preds = %.lr.ph4, %116
%55 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%56 = call ptr @strchr(ptr noundef %55, i8 noundef signext 10)
store ptr %56, ptr %9, align 8
%57 = icmp eq ptr %56, null
br i1 %57, label %58, label %85
58: ; preds = %54
%59 = load i32, ptr @stderr, align 4
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds ptr, ptr %60, i64 0
%62 = load ptr, ptr %61, align 8
%63 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%64 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %59, ptr noundef @.str.2, ptr noundef %62, ptr noundef %63)
%65 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%66 = load i32, ptr @stdin, align 4
%67 = call i64 @fgets(ptr noundef %65, i32 noundef 1024, i32 noundef %66)
%68 = icmp ne i64 %67, 0
br i1 %68, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %58
br label %73
69: ; preds = %73
%70 = load i32, ptr @stdin, align 4
%71 = call i64 @fgets(ptr noundef %65, i32 noundef 1024, i32 noundef %70)
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %..loopexit_crit_edge, !llvm.loop !8
73: ; preds = %.lr.ph2, %69
%74 = load i32, ptr @stderr, align 4
%75 = load ptr, ptr %5, align 8
%76 = getelementptr inbounds ptr, ptr %75, i64 0
%77 = load ptr, ptr %76, align 8
%78 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%79 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %74, ptr noundef @.str.3, ptr noundef %77, ptr noundef %78)
%80 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%81 = call ptr @strchr(ptr noundef %80, i8 noundef signext 10)
%82 = icmp ne ptr %81, null
br i1 %82, label %83, label %69
83: ; preds = %73
br label %84
..loopexit_crit_edge: ; preds = %69
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %58
br label %84
84: ; preds = %.loopexit, %83
br label %114
85: ; preds = %54
%86 = load ptr, ptr %9, align 8
store i8 0, ptr %86, align 1
%87 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%88 = call ptr @strtok(ptr noundef %87, ptr noundef @.str.4)
store ptr %88, ptr %11, align 8
%89 = call ptr @strtok(ptr noundef null, ptr noundef @.str.4)
store ptr %89, ptr %10, align 8
%90 = load ptr, ptr %11, align 8
%91 = icmp ne ptr %90, null
br i1 %91, label %92, label %95
92: ; preds = %85
%93 = load ptr, ptr %10, align 8
%94 = icmp ne ptr %93, null
br i1 %94, label %101, label %95
95: ; preds = %92, %85
%96 = load i32, ptr @stderr, align 4
%97 = load ptr, ptr %5, align 8
%98 = getelementptr inbounds ptr, ptr %97, i64 0
%99 = load ptr, ptr %98, align 8
%100 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %96, ptr noundef @.str.5, ptr noundef %99)
br label %114
101: ; preds = %92
%102 = load ptr, ptr %11, align 8
%103 = call i32 @rfc1738_unescape(ptr noundef %102)
%104 = load ptr, ptr %10, align 8
%105 = call i32 @rfc1738_unescape(ptr noundef %104)
%106 = load ptr, ptr %13, align 8
%107 = load ptr, ptr %10, align 8
%108 = load ptr, ptr %11, align 8
%109 = call i64 @dict_lookup(ptr noundef %106, ptr noundef %107, ptr noundef %108)
%110 = icmp ne i64 %109, 0
br i1 %110, label %111, label %113
111: ; preds = %101
%112 = call i32 @printf(ptr noundef @.str.6)
br label %116
113: ; preds = %101
br label %114
114: ; preds = %113, %95, %84
%115 = call i32 @printf(ptr noundef @.str.7)
br label %116
116: ; preds = %114, %111
%117 = load i32, ptr @stdin, align 4
%118 = call i64 @fgets(ptr noundef %50, i32 noundef 1024, i32 noundef %117)
%119 = icmp ne i64 %118, 0
br i1 %119, label %54, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %116
br label %120
120: ; preds = %._crit_edge5, %45
%121 = load ptr, ptr %6, align 8
%122 = call i32 @fclose(ptr noundef %121)
ret i32 0
}
declare i32 @setvbuf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @usage(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare ptr @load_dict(ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @rfc1738_unescape(ptr noundef) #1
declare i64 @dict_lookup(ptr noundef, ptr noundef, 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" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpgx6o44zu.c'
source_filename = "/tmp/tmpgx6o44zu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @utils_zero(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
store ptr %6, ptr %5, align 8
br label %7
7: ; preds = %11, %2
%8 = load i64, ptr %4, align 8
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %7
br label %11
11: ; preds = %10
%12 = load ptr, ptr %5, align 8
%13 = load i64, ptr %4, align 8
%14 = add i64 %13, -1
store i64 %14, ptr %4, align 8
%15 = getelementptr inbounds i8, ptr %12, i64 %14
store volatile i8 0, ptr %15, align 1
br label %7, !llvm.loop !6
16: ; preds = %7
%17 = load ptr, ptr %3, align 8
ret ptr %17
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgx6o44zu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @utils_zero(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
store ptr %6, ptr %5, align 8
%7 = load i64, ptr %4, align 8
%8 = icmp ne i64 %7, 0
br i1 %8, label %.lr.ph, label %17
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %10
br label %10
10: ; preds = %9
%11 = load ptr, ptr %5, align 8
%12 = load i64, ptr %4, align 8
%13 = add i64 %12, -1
store i64 %13, ptr %4, align 8
%14 = getelementptr inbounds i8, ptr %11, i64 %13
store volatile i8 0, ptr %14, align 1
%15 = load i64, ptr %4, align 8
%16 = icmp ne i64 %15, 0
br i1 %16, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %17
17: ; preds = %._crit_edge, %2
%18 = load ptr, ptr %3, align 8
ret ptr %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpn67nrt1h.c'
source_filename = "/tmp/tmpn67nrt1h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pbl_LongToVarBuf(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%6 = load i64, ptr %5, align 8
%7 = icmp ule i64 %6, 127
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load i64, ptr %5, align 8
%10 = trunc i64 %9 to i8
%11 = load ptr, ptr %4, align 8
store i8 %10, ptr %11, align 1
store i32 1, ptr %3, align 4
br label %90
12: ; preds = %2
%13 = load i64, ptr %5, align 8
%14 = icmp ule i64 %13, 16383
br i1 %14, label %15, label %30
15: ; preds = %12
%16 = load i64, ptr %5, align 8
%17 = udiv i64 %16, 256
%18 = trunc i64 %17 to i8
%19 = zext i8 %18 to i32
%20 = or i32 %19, 128
%21 = trunc i32 %20 to i8
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %4, align 8
store i8 %21, ptr %22, align 1
%24 = load i64, ptr %5, align 8
%25 = trunc i64 %24 to i8
%26 = zext i8 %25 to i32
%27 = and i32 %26, 255
%28 = trunc i32 %27 to i8
%29 = load ptr, ptr %4, align 8
store i8 %28, ptr %29, align 1
store i32 2, ptr %3, align 4
br label %90
30: ; preds = %12
%31 = load i64, ptr %5, align 8
%32 = icmp ule i64 %31, 2097151
br i1 %32, label %33, label %54
33: ; preds = %30
%34 = load i64, ptr %5, align 8
%35 = udiv i64 %34, 65536
%36 = trunc i64 %35 to i8
%37 = zext i8 %36 to i32
%38 = or i32 %37, 128
%39 = or i32 %38, 64
%40 = trunc i32 %39 to i8
%41 = load ptr, ptr %4, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %4, align 8
store i8 %40, ptr %41, align 1
%43 = load i64, ptr %5, align 8
%44 = udiv i64 %43, 256
%45 = trunc i64 %44 to i8
%46 = load ptr, ptr %4, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %4, align 8
store i8 %45, ptr %46, align 1
%48 = load i64, ptr %5, align 8
%49 = trunc i64 %48 to i8
%50 = zext i8 %49 to i32
%51 = and i32 %50, 255
%52 = trunc i32 %51 to i8
%53 = load ptr, ptr %4, align 8
store i8 %52, ptr %53, align 1
store i32 3, ptr %3, align 4
br label %90
54: ; preds = %30
%55 = load i64, ptr %5, align 8
%56 = icmp ule i64 %55, 268435455
br i1 %56, label %57, label %84
57: ; preds = %54
%58 = load i64, ptr %5, align 8
%59 = udiv i64 %58, 16777216
%60 = trunc i64 %59 to i8
%61 = zext i8 %60 to i32
%62 = or i32 %61, 128
%63 = or i32 %62, 64
%64 = or i32 %63, 32
%65 = trunc i32 %64 to i8
%66 = load ptr, ptr %4, align 8
%67 = getelementptr inbounds i8, ptr %66, i32 1
store ptr %67, ptr %4, align 8
store i8 %65, ptr %66, align 1
%68 = load i64, ptr %5, align 8
%69 = udiv i64 %68, 65536
%70 = trunc i64 %69 to i8
%71 = load ptr, ptr %4, align 8
%72 = getelementptr inbounds i8, ptr %71, i32 1
store ptr %72, ptr %4, align 8
store i8 %70, ptr %71, align 1
%73 = load i64, ptr %5, align 8
%74 = udiv i64 %73, 256
%75 = trunc i64 %74 to i8
%76 = load ptr, ptr %4, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %4, align 8
store i8 %75, ptr %76, align 1
%78 = load i64, ptr %5, align 8
%79 = trunc i64 %78 to i8
%80 = zext i8 %79 to i32
%81 = and i32 %80, 255
%82 = trunc i32 %81 to i8
%83 = load ptr, ptr %4, align 8
store i8 %82, ptr %83, align 1
store i32 4, ptr %3, align 4
br label %90
84: ; preds = %54
%85 = load ptr, ptr %4, align 8
%86 = getelementptr inbounds i8, ptr %85, i32 1
store ptr %86, ptr %4, align 8
store i8 -16, ptr %85, align 1
%87 = load ptr, ptr %4, align 8
%88 = load i64, ptr %5, align 8
%89 = call i32 @pbl_LongToBuf(ptr noundef %87, i64 noundef %88)
store i32 5, ptr %3, align 4
br label %90
90: ; preds = %84, %57, %33, %15, %8
%91 = load i32, ptr %3, align 4
ret i32 %91
}
declare i32 @pbl_LongToBuf(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/tmpn67nrt1h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pbl_LongToVarBuf(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%6 = load i64, ptr %5, align 8
%7 = icmp ule i64 %6, 127
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load i64, ptr %5, align 8
%10 = trunc i64 %9 to i8
%11 = load ptr, ptr %4, align 8
store i8 %10, ptr %11, align 1
store i32 1, ptr %3, align 4
br label %90
12: ; preds = %2
%13 = load i64, ptr %5, align 8
%14 = icmp ule i64 %13, 16383
br i1 %14, label %15, label %30
15: ; preds = %12
%16 = load i64, ptr %5, align 8
%17 = udiv i64 %16, 256
%18 = trunc i64 %17 to i8
%19 = zext i8 %18 to i32
%20 = or i32 %19, 128
%21 = trunc i32 %20 to i8
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %4, align 8
store i8 %21, ptr %22, align 1
%24 = load i64, ptr %5, align 8
%25 = trunc i64 %24 to i8
%26 = zext i8 %25 to i32
%27 = and i32 %26, 255
%28 = trunc i32 %27 to i8
%29 = load ptr, ptr %4, align 8
store i8 %28, ptr %29, align 1
store i32 2, ptr %3, align 4
br label %90
30: ; preds = %12
%31 = load i64, ptr %5, align 8
%32 = icmp ule i64 %31, 2097151
br i1 %32, label %33, label %54
33: ; preds = %30
%34 = load i64, ptr %5, align 8
%35 = udiv i64 %34, 65536
%36 = trunc i64 %35 to i8
%37 = zext i8 %36 to i32
%38 = or i32 %37, 128
%39 = or i32 %38, 64
%40 = trunc i32 %39 to i8
%41 = load ptr, ptr %4, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %4, align 8
store i8 %40, ptr %41, align 1
%43 = load i64, ptr %5, align 8
%44 = udiv i64 %43, 256
%45 = trunc i64 %44 to i8
%46 = load ptr, ptr %4, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %4, align 8
store i8 %45, ptr %46, align 1
%48 = load i64, ptr %5, align 8
%49 = trunc i64 %48 to i8
%50 = zext i8 %49 to i32
%51 = and i32 %50, 255
%52 = trunc i32 %51 to i8
%53 = load ptr, ptr %4, align 8
store i8 %52, ptr %53, align 1
store i32 3, ptr %3, align 4
br label %90
54: ; preds = %30
%55 = load i64, ptr %5, align 8
%56 = icmp ule i64 %55, 268435455
br i1 %56, label %57, label %84
57: ; preds = %54
%58 = load i64, ptr %5, align 8
%59 = udiv i64 %58, 16777216
%60 = trunc i64 %59 to i8
%61 = zext i8 %60 to i32
%62 = or i32 %61, 128
%63 = or i32 %62, 64
%64 = or i32 %63, 32
%65 = trunc i32 %64 to i8
%66 = load ptr, ptr %4, align 8
%67 = getelementptr inbounds i8, ptr %66, i32 1
store ptr %67, ptr %4, align 8
store i8 %65, ptr %66, align 1
%68 = load i64, ptr %5, align 8
%69 = udiv i64 %68, 65536
%70 = trunc i64 %69 to i8
%71 = load ptr, ptr %4, align 8
%72 = getelementptr inbounds i8, ptr %71, i32 1
store ptr %72, ptr %4, align 8
store i8 %70, ptr %71, align 1
%73 = load i64, ptr %5, align 8
%74 = udiv i64 %73, 256
%75 = trunc i64 %74 to i8
%76 = load ptr, ptr %4, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %4, align 8
store i8 %75, ptr %76, align 1
%78 = load i64, ptr %5, align 8
%79 = trunc i64 %78 to i8
%80 = zext i8 %79 to i32
%81 = and i32 %80, 255
%82 = trunc i32 %81 to i8
%83 = load ptr, ptr %4, align 8
store i8 %82, ptr %83, align 1
store i32 4, ptr %3, align 4
br label %90
84: ; preds = %54
%85 = load ptr, ptr %4, align 8
%86 = getelementptr inbounds i8, ptr %85, i32 1
store ptr %86, ptr %4, align 8
store i8 -16, ptr %85, align 1
%87 = load ptr, ptr %4, align 8
%88 = load i64, ptr %5, align 8
%89 = call i32 @pbl_LongToBuf(ptr noundef %87, i64 noundef %88)
store i32 5, ptr %3, align 4
br label %90
90: ; preds = %84, %57, %33, %15, %8
%91 = load i32, ptr %3, align 4
ret i32 %91
}
declare i32 @pbl_LongToBuf(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/tmpcpyxmy2w.c'
source_filename = "/tmp/tmpcpyxmy2w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @syscon_add_dobldobl_term(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [2 x i32], align 4
%10 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%11 = load i32, ptr %6, align 4
%12 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
store i32 %11, ptr %12, align 4
%13 = load i32, ptr %5, align 4
%14 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
store i32 %13, ptr %14, align 4
%15 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%16 = load ptr, ptr %7, align 8
%17 = load ptr, ptr %8, align 8
%18 = call i32 @_ada_use_c2phc4c(i32 noundef 336, ptr noundef %15, ptr noundef %16, ptr noundef %17, i32 noundef 0)
store i32 %18, ptr %10, align 4
%19 = load i32, ptr %10, align 4
ret i32 %19
}
declare i32 @_ada_use_c2phc4c(i32 noundef, 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/tmpcpyxmy2w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @syscon_add_dobldobl_term(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [2 x i32], align 4
%10 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%11 = load i32, ptr %6, align 4
%12 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
store i32 %11, ptr %12, align 4
%13 = load i32, ptr %5, align 4
%14 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
store i32 %13, ptr %14, align 4
%15 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%16 = load ptr, ptr %7, align 8
%17 = load ptr, ptr %8, align 8
%18 = call i32 @_ada_use_c2phc4c(i32 noundef 336, ptr noundef %15, ptr noundef %16, ptr noundef %17, i32 noundef 0)
store i32 %18, ptr %10, align 4
%19 = load i32, ptr %10, align 4
ret i32 %19
}
declare i32 @_ada_use_c2phc4c(i32 noundef, 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 = '/tmp/tmpykfhix8v.c'
source_filename = "/tmp/tmpykfhix8v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"If x = %d, y = %d and z = x+y then z= %hd \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 i16, align 2
store i32 0, ptr %1, align 4
store i32 111111, ptr %2, align 4
store i32 123456, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = add nsw i32 %5, %6
%8 = trunc i32 %7 to i16
store i16 %8, ptr %4, align 2
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = load i16, ptr %4, align 2
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %9, i32 noundef %10, i16 noundef signext %11)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i16 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpykfhix8v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"If x = %d, y = %d and z = x+y then z= %hd \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 i16, align 2
store i32 0, ptr %1, align 4
store i32 111111, ptr %2, align 4
store i32 123456, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = add nsw i32 %5, %6
%8 = trunc i32 %7 to i16
store i16 %8, ptr %4, align 2
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = load i16, ptr %4, align 2
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %9, i32 noundef %10, i16 noundef signext %11)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i16 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp242huonp.c'
source_filename = "/tmp/tmp242huonp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @core___core__Byte___rsh(i8 noundef zeroext %0, i64 noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i64, align 8
%5 = alloca i8, align 1
%6 = alloca i8, align 1
store i8 %0, ptr %3, align 1
store i64 %1, ptr %4, align 8
%7 = load i8, ptr %3, align 1
%8 = load i64, ptr %4, align 8
%9 = call zeroext i8 @kernel___Byte_rsh___impl(i8 noundef zeroext %7, i64 noundef %8)
store i8 %9, ptr %6, align 1
%10 = load i8, ptr %6, align 1
store i8 %10, ptr %5, align 1
br label %11
11: ; preds = %2
%12 = load i8, ptr %5, align 1
ret i8 %12
}
declare zeroext i8 @kernel___Byte_rsh___impl(i8 noundef zeroext, 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/tmp242huonp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @core___core__Byte___rsh(i8 noundef zeroext %0, i64 noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i64, align 8
%5 = alloca i8, align 1
%6 = alloca i8, align 1
store i8 %0, ptr %3, align 1
store i64 %1, ptr %4, align 8
%7 = load i8, ptr %3, align 1
%8 = load i64, ptr %4, align 8
%9 = call zeroext i8 @kernel___Byte_rsh___impl(i8 noundef zeroext %7, i64 noundef %8)
store i8 %9, ptr %6, align 1
%10 = load i8, ptr %6, align 1
store i8 %10, ptr %5, align 1
br label %11
11: ; preds = %2
%12 = load i8, ptr %5, align 1
ret i8 %12
}
declare zeroext i8 @kernel___Byte_rsh___impl(i8 noundef zeroext, 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/tmp0l9qv_zr.c'
source_filename = "/tmp/tmp0l9qv_zr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [226 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/femtoio/femto-usb-blink-example/refs/heads/master/blinky/blinky/asf-3.21.0/avr32/services/dsp/dsplib/utils/programs/data_extract/main.c\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"ASSERT(_path)\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"ASSERT(_file)\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [16 x i8] c"ASSERT(_buffer)\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @format_data(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 ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %15, label %13
13: ; preds = %3
%14 = call i32 @gestion_erreurs_set(i32 noundef 55, ptr noundef @.str, ptr noundef @.str.1)
br label %15
15: ; preds = %13, %3
%16 = load ptr, ptr %4, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str.2)
store ptr %17, ptr %10, align 8
%18 = load ptr, ptr %10, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %22, label %20
20: ; preds = %15
%21 = call i32 @gestion_erreurs_set(i32 noundef 59, ptr noundef @.str, ptr noundef @.str.3)
br label %22
22: ; preds = %20, %15
%23 = load ptr, ptr %10, align 8
%24 = load i32, ptr @SEEK_END, align 4
%25 = call i32 @fseek(ptr noundef %23, i32 noundef 0, i32 noundef %24)
%26 = load ptr, ptr %10, align 8
%27 = call i32 @ftell(ptr noundef %26)
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, 1
%30 = call i64 @malloc(i32 noundef %29)
%31 = inttoptr i64 %30 to ptr
store ptr %31, ptr %7, align 8
%32 = load ptr, ptr %7, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %36, label %34
34: ; preds = %22
%35 = call i32 @gestion_erreurs_set(i32 noundef 65, ptr noundef @.str, ptr noundef @.str.4)
br label %36
36: ; preds = %34, %22
%37 = load ptr, ptr %7, align 8
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
store i8 0, ptr %40, align 1
%41 = load ptr, ptr %10, align 8
%42 = load i32, ptr @SEEK_SET, align 4
%43 = call i32 @fseek(ptr noundef %41, i32 noundef 0, i32 noundef %42)
%44 = load ptr, ptr %7, align 8
%45 = load i32, ptr %8, align 4
%46 = load ptr, ptr %10, align 8
%47 = call i32 @fread(ptr noundef %44, i32 noundef 1, i32 noundef %45, ptr noundef %46)
%48 = load ptr, ptr %10, align 8
%49 = call i32 @fclose(ptr noundef %48)
%50 = load ptr, ptr %7, align 8
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %6, align 4
%53 = call i32 @format_data_get_data(ptr noundef %50, ptr noundef %51, i32 noundef %52)
store i32 %53, ptr %9, align 4
%54 = load ptr, ptr %7, align 8
%55 = call i32 @free(ptr noundef %54)
ret void
}
declare i32 @gestion_erreurs_set(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @format_data_get_data(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0l9qv_zr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [226 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/femtoio/femto-usb-blink-example/refs/heads/master/blinky/blinky/asf-3.21.0/avr32/services/dsp/dsplib/utils/programs/data_extract/main.c\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"ASSERT(_path)\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"ASSERT(_file)\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [16 x i8] c"ASSERT(_buffer)\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @format_data(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 ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %15, label %13
13: ; preds = %3
%14 = call i32 @gestion_erreurs_set(i32 noundef 55, ptr noundef @.str, ptr noundef @.str.1)
br label %15
15: ; preds = %13, %3
%16 = load ptr, ptr %4, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str.2)
store ptr %17, ptr %10, align 8
%18 = load ptr, ptr %10, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %22, label %20
20: ; preds = %15
%21 = call i32 @gestion_erreurs_set(i32 noundef 59, ptr noundef @.str, ptr noundef @.str.3)
br label %22
22: ; preds = %20, %15
%23 = load ptr, ptr %10, align 8
%24 = load i32, ptr @SEEK_END, align 4
%25 = call i32 @fseek(ptr noundef %23, i32 noundef 0, i32 noundef %24)
%26 = load ptr, ptr %10, align 8
%27 = call i32 @ftell(ptr noundef %26)
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, 1
%30 = call i64 @malloc(i32 noundef %29)
%31 = inttoptr i64 %30 to ptr
store ptr %31, ptr %7, align 8
%32 = load ptr, ptr %7, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %36, label %34
34: ; preds = %22
%35 = call i32 @gestion_erreurs_set(i32 noundef 65, ptr noundef @.str, ptr noundef @.str.4)
br label %36
36: ; preds = %34, %22
%37 = load ptr, ptr %7, align 8
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
store i8 0, ptr %40, align 1
%41 = load ptr, ptr %10, align 8
%42 = load i32, ptr @SEEK_SET, align 4
%43 = call i32 @fseek(ptr noundef %41, i32 noundef 0, i32 noundef %42)
%44 = load ptr, ptr %7, align 8
%45 = load i32, ptr %8, align 4
%46 = load ptr, ptr %10, align 8
%47 = call i32 @fread(ptr noundef %44, i32 noundef 1, i32 noundef %45, ptr noundef %46)
%48 = load ptr, ptr %10, align 8
%49 = call i32 @fclose(ptr noundef %48)
%50 = load ptr, ptr %7, align 8
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %6, align 4
%53 = call i32 @format_data_get_data(ptr noundef %50, ptr noundef %51, i32 noundef %52)
store i32 %53, ptr %9, align 4
%54 = load ptr, ptr %7, align 8
%55 = call i32 @free(ptr noundef %54)
ret void
}
declare i32 @gestion_erreurs_set(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @format_data_get_data(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_u4bu8on.c'
source_filename = "/tmp/tmp_u4bu8on.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @put_end_params(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = add nsw i32 %7, 1
%9 = sext i32 %8 to i64
%10 = mul i64 8, %9
%11 = trunc i64 %10 to i32
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %13
13: ; preds = %27, %2
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %30
17: ; preds = %13
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %18, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
store ptr %22, ptr %26, align 8
br label %27
27: ; preds = %17
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
br label %13, !llvm.loop !6
30: ; preds = %13
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %4, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %31, i64 %33
store ptr null, ptr %34, align 8
%35 = load ptr, ptr %5, align 8
ret ptr %35
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_u4bu8on.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @put_end_params(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = add nsw i32 %7, 1
%9 = sext i32 %8 to i64
%10 = mul i64 8, %9
%11 = trunc i64 %10 to i32
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %5, align 8
store i32 0, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %16
16: ; preds = %.lr.ph, %26
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
store ptr %21, ptr %25, align 8
br label %26
26: ; preds = %16
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %2
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds ptr, ptr %33, i64 %35
store ptr null, ptr %36, align 8
%37 = load ptr, ptr %5, align 8
ret ptr %37
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpds1pws60.c'
source_filename = "/tmp/tmpds1pws60.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ReadWord(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %3, %20, %49, %64
%10 = load ptr, ptr %5, align 8
%11 = call i32 @fgetc_unlocked(ptr noundef %10)
store i32 %11, ptr %8, align 4
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr @EOF, align 4
%14 = icmp eq i32 %12, %13
br i1 %14, label %15, label %17
15: ; preds = %9
%16 = load ptr, ptr %6, align 8
store i8 1, ptr %16, align 1
br label %65
17: ; preds = %9
%18 = load i32, ptr %8, align 4
%19 = icmp eq i32 %18, 13
br i1 %19, label %20, label %21
20: ; preds = %17
br label %9
21: ; preds = %17
%22 = load i32, ptr %8, align 4
%23 = icmp eq i32 %22, 32
br i1 %23, label %30, label %24
24: ; preds = %21
%25 = load i32, ptr %8, align 4
%26 = icmp eq i32 %25, 9
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = load i32, ptr %8, align 4
%29 = icmp eq i32 %28, 10
br i1 %29, label %30, label %50
30: ; preds = %27, %24, %21
%31 = load i32, ptr %7, align 4
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %41
33: ; preds = %30
%34 = load i32, ptr %8, align 4
%35 = icmp eq i32 %34, 10
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = load i32, ptr %8, align 4
%38 = load ptr, ptr %5, align 8
%39 = call i32 @ungetc(i32 noundef %37, ptr noundef %38)
br label %40
40: ; preds = %36, %33
br label %65
41: ; preds = %30
%42 = load i32, ptr %8, align 4
%43 = icmp eq i32 %42, 10
br i1 %43, label %44, label %49
44: ; preds = %41
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 0
store i8 10, ptr %46, align 1
%47 = load ptr, ptr %4, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 1
store i8 0, ptr %48, align 1
br label %70
49: ; preds = %41
br label %9
50: ; preds = %27
%51 = load i32, ptr %8, align 4
%52 = trunc i32 %51 to i8
%53 = load ptr, ptr %4, align 8
%54 = load i32, ptr %7, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
store i8 %52, ptr %56, align 1
%57 = load i32, ptr %7, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %7, align 4
%59 = load i32, ptr %7, align 4
%60 = icmp sge i32 %59, 59
br i1 %60, label %61, label %64
61: ; preds = %50
%62 = load i32, ptr %7, align 4
%63 = add nsw i32 %62, -1
store i32 %63, ptr %7, align 4
br label %64
64: ; preds = %61, %50
br label %9
65: ; preds = %40, %15
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %7, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %66, i64 %68
store i8 0, ptr %69, align 1
br label %70
70: ; preds = %65, %44
ret void
}
declare i32 @fgetc_unlocked(ptr noundef) #1
declare i32 @ungetc(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/tmpds1pws60.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ReadWord(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i32 @fgetc_unlocked(ptr noundef %9)
store i32 %10, ptr %8, align 4
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr @EOF, align 4
%13 = icmp eq i32 %11, %12
br i1 %13, label %14, label %.lr.ph
.lr.ph: ; preds = %3
br label %16
._crit_edge: ; preds = %.backedge
br label %14
14: ; preds = %._crit_edge, %3
%15 = load ptr, ptr %6, align 8
store i8 1, ptr %15, align 1
br label %69
16: ; preds = %.lr.ph, %.backedge
%17 = load i32, ptr %8, align 4
%18 = icmp eq i32 %17, 13
br i1 %18, label %19, label %25
19: ; preds = %16
br label %.backedge
.backedge: ; preds = %19, %53, %68
%20 = load ptr, ptr %5, align 8
%21 = call i32 @fgetc_unlocked(ptr noundef %20)
store i32 %21, ptr %8, align 4
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr @EOF, align 4
%24 = icmp eq i32 %22, %23
br i1 %24, label %._crit_edge, label %16
25: ; preds = %16
%26 = load i32, ptr %8, align 4
%27 = icmp eq i32 %26, 32
br i1 %27, label %34, label %28
28: ; preds = %25
%29 = load i32, ptr %8, align 4
%30 = icmp eq i32 %29, 9
br i1 %30, label %34, label %31
31: ; preds = %28
%32 = load i32, ptr %8, align 4
%33 = icmp eq i32 %32, 10
br i1 %33, label %34, label %54
34: ; preds = %31, %28, %25
%35 = load i32, ptr %7, align 4
%36 = icmp sgt i32 %35, 0
br i1 %36, label %37, label %45
37: ; preds = %34
%38 = load i32, ptr %8, align 4
%39 = icmp eq i32 %38, 10
br i1 %39, label %40, label %44
40: ; preds = %37
%41 = load i32, ptr %8, align 4
%42 = load ptr, ptr %5, align 8
%43 = call i32 @ungetc(i32 noundef %41, ptr noundef %42)
br label %44
44: ; preds = %40, %37
br label %69
45: ; preds = %34
%46 = load i32, ptr %8, align 4
%47 = icmp eq i32 %46, 10
br i1 %47, label %48, label %53
48: ; preds = %45
%49 = load ptr, ptr %4, align 8
%50 = getelementptr inbounds i8, ptr %49, i64 0
store i8 10, ptr %50, align 1
%51 = load ptr, ptr %4, align 8
%52 = getelementptr inbounds i8, ptr %51, i64 1
store i8 0, ptr %52, align 1
br label %74
53: ; preds = %45
br label %.backedge
54: ; preds = %31
%55 = load i32, ptr %8, align 4
%56 = trunc i32 %55 to i8
%57 = load ptr, ptr %4, align 8
%58 = load i32, ptr %7, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
store i8 %56, ptr %60, align 1
%61 = load i32, ptr %7, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %7, align 4
%63 = load i32, ptr %7, align 4
%64 = icmp sge i32 %63, 59
br i1 %64, label %65, label %68
65: ; preds = %54
%66 = load i32, ptr %7, align 4
%67 = add nsw i32 %66, -1
store i32 %67, ptr %7, align 4
br label %68
68: ; preds = %65, %54
br label %.backedge
69: ; preds = %44, %14
%70 = load ptr, ptr %4, align 8
%71 = load i32, ptr %7, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
store i8 0, ptr %73, align 1
br label %74
74: ; preds = %69, %48
ret void
}
declare i32 @fgetc_unlocked(ptr noundef) #1
declare i32 @ungetc(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/tmp0tis7kox.c'
source_filename = "/tmp/tmp0tis7kox.c"
target datalayout = "e-m:e-p270: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/tmp0tis7kox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.